summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLizi <li.zi30@zte.com.cn>2018-01-18 09:24:19 +0000
committerLizi <li.zi30@zte.com.cn>2018-01-18 09:32:07 +0000
commite02cfb1940c721efa29d7766763e5d5beaf46189 (patch)
tree4b813c85bc4296733c5ec4a16169d0d8eada7176
parent38fda27a24d9ceac0d6499fe60396954e647f2ca (diff)
Remove the redundancy packages
Change-Id: I1c04ad98a1fc0351b69c125c7afc8b6ee8ad64af Issue-ID: AAI-591 Signed-off-by: Lizi <li.zi30@zte.com.cn>
-rw-r--r--common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css319
-rw-r--r--common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js1257
-rw-r--r--common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js2808
-rw-r--r--common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js6
-rw-r--r--common/src/main/webapp/thirdparty/css/magic-check.css246
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css240
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js363
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/DataTableICT.js1459
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js1215
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js1312
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json51
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json89
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json90
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/dataTable.html155
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css331
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gifbin5203 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/images/sort_asc.pngbin1118 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/images/sort_both.pngbin1136 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/images/sort_desc.pngbin1127 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js12101
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.min.js155
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.js15268
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.css1
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.js166
-rw-r--r--common/src/main/webapp/thirdparty/data-tables/style-datatable.css154
-rw-r--r--common/src/main/webapp/thirdparty/echarts/echarts-all.js50
-rw-r--r--common/src/main/webapp/thirdparty/echarts/echarts.js54502
-rw-r--r--common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.eotbin10031 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.svg146
-rw-r--r--common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.ttfbin21736 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.woffbin11632 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.eotbin56006 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.svg520
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.ttfbin112160 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.woffbin65452 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontomas-webfont.eotbin3336 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontomas-webfont.svg31
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontomas-webfont.ttfbin3128 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/fontomas-webfont.woffbin2280 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.eotbin29144 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.svg175
-rw-r--r--common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.ttfbin28788 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.woffbin14972 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.eotbin20127 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.svg288
-rw-r--r--common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.ttfbin45404 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woffbin23424 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff2bin18028 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/bower.json42
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/Thumbs.dbbin5120 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/banner.jpgbin32768 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/custom.css261
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/custom.styl1191
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/icheck.pngbin2382 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-bottom.pngbin184 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-top.pngbin175 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/header-line.pngbin611 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-fork.pngbin213 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-github.pngbin634 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-lab.pngbin683 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-options.pngbin666 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-star.pngbin348 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.eotbin13099 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.svg1490
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.ttfbin32768 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.woffbin15736 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.eotbin13114 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.svg1365
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.ttfbin32768 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.woffbin15692 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/css/normalize.css527
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/index.html1544
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/js/custom.js109
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/js/custom.min.js5
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/js/jquery.js4
-rw-r--r--common/src/main/webapp/thirdparty/icheck/demo/js/zepto.js41
-rw-r--r--common/src/main/webapp/thirdparty/icheck/icheck.jquery.json48
-rw-r--r--common/src/main/webapp/thirdparty/icheck/icheck.js509
-rw-r--r--common/src/main/webapp/thirdparty/icheck/icheck.min.js11
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/all.css61
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/_all.css530
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/aero.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/aero.pngbin1520 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/aero@2x.pngbin3218 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/blue.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/blue.pngbin1518 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/blue@2x.pngbin3217 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/flat.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/flat.pngbin1515 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/flat@2x.pngbin3217 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/green.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/green.pngbin1444 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/green@2x.pngbin3117 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/grey.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/grey.pngbin1516 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/grey@2x.pngbin3217 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/orange.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/orange.pngbin1518 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/orange@2x.pngbin3275 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/pink.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/pink.pngbin1522 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/pink@2x.pngbin3218 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/purple.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/purple.pngbin1519 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/purple@2x.pngbin3218 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/red.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/red.pngbin1516 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/red@2x.pngbin3276 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.pngbin1516 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/flat/yellow@2x.pngbin3216 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.css53
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.pngbin1734 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico@2x.pngbin3446 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/Thumbs.dbbin4608 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/_all.css710
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/aero.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/blue.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/green.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/grey.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/line.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/line.pngbin588 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/line@2x.pngbin1073 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/orange.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/pink.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/purple.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/red.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/line/yellow.css71
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/_all.css590
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.pngbin1151 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/aero@2x.pngbin1409 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.pngbin1132 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/blue@2x.pngbin1410 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/green.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/green.pngbin1143 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/green@2x.pngbin1408 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.pngbin1142 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/grey@2x.pngbin1407 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.pngbin1114 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal@2x.pngbin1410 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.pngbin1139 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/orange@2x.pngbin1407 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.pngbin1150 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/pink@2x.pngbin1409 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.pngbin1132 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/purple@2x.pngbin1409 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/red.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/red.pngbin1130 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/red@2x.pngbin1410 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.pngbin1135 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow@2x.pngbin1406 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.pngbin6401 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris@2x.pngbin32768 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/Thumbs.dbbin32768 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/_all.css590
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/aero.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/aero.pngbin4436 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/aero@2x.pngbin4455 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/blue.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/blue.pngbin2185 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/blue@2x.pngbin4485 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/green.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/green.pngbin2193 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/green@2x.pngbin4498 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/grey.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/grey.pngbin2186 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/grey@2x.pngbin4483 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/orange.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/orange.pngbin2181 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/orange@2x.pngbin4474 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/pink.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/pink.pngbin2189 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/pink@2x.pngbin4479 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/purple.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/purple.pngbin2188 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/purple@2x.pngbin4501 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/red.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/red.pngbin2190 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/red@2x.pngbin4490 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/square.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/square.pngbin2175 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/square@2x.pngbin4478 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/yellow.css59
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/yellow.pngbin2131 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/icheck/skins/square/yellow@2x.pngbin4385 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/css/jquery.fileupload.css37
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/img/loading.gifbin3897 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/img/progressbar.gifbin3323 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.fileupload.js1477
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.iframe-transport.js217
-rw-r--r--common/src/main/webapp/thirdparty/jQuery-File-Upload/js/vendor/jquery.ui.widget.js572
-rw-r--r--common/src/main/webapp/thirdparty/jquery-cokie/jquery.cokie.min.js9
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/API_cn.html103
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/API_en.html102
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/api.js592
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/common.css219
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/common_ie6.css23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.gifbin1736 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.pngbin3954 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/background.jpgbin36520 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/chinese.pngbin1556 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/close.pngbin1908 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/contact-bg.pngbin177 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/english.pngbin1356 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/header-bg.pngbin148 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/lightbulb.pngbin27355 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.gifbin625 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.pngbin830 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_bg.pngbin109 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_close_IE6.gifbin441 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.gifbin6851 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.pngbin12573 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery-1.6.2.min.js18
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery.ztree.core-3.5.js69
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/apiCss/zTreeStyleForApi.css49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html13
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html74
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html36
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html46
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html46
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html36
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html59
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html58
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html58
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html51
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html14
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html14
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html46
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html15
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html63
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html46
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html13
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html13
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html75
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html36
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html46
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html38
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html36
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html60
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html59
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html59
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html39
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html48
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html52
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html14
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html14
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html40
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html45
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html47
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html15
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html63
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html19
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html35
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html47
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html25
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html50
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html28
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html30
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html26
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html43
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html23
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html49
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html42
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html24
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html32
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html14
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html31
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html29
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html27
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html44
-rw-r--r--common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html37
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/demo.css33
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/ReadMe.txt1
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/Thumbs.dbbin23552 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_close.pngbin601 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_open.pngbin580 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/2.pngbin570 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/3.pngbin762 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/4.pngbin399 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/5.pngbin710 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/6.pngbin432 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/7.pngbin534 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/8.pngbin529 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/9.pngbin467 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/Thumbs.dbbin19968 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/line_conn.gifbin45 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/loading.gifbin381 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbin5564 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbakbin5564 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbin11206 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbakbin11173 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.psdbin93494 -> 0 bytes
-rw-r--r--common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/zTreeStyle.css107
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.js3506
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.min.js160
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.js1684
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.min.js69
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.js629
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.min.js34
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.js1191
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.min.js53
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.js363
-rw-r--r--common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.min.js22
-rw-r--r--common/src/main/webapp/thirdparty/zTree/zTree.v3.jquery.json35
-rw-r--r--portal/src/main/webapp/extsys/vim/js/vimChart.js430
-rw-r--r--portal/src/main/webapp/extsys/vim/js/vimChartController.js160
-rw-r--r--portal/src/main/webapp/extsys/vim/js/vimController.js3
584 files changed, 123 insertions, 128317 deletions
diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css
deleted file mode 100644
index 71111cf..0000000
--- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css
+++ /dev/null
@@ -1,319 +0,0 @@
-/*!
- * Stylesheet for the Date Range Picker, for use with Bootstrap 3.x
- *
- * Copyright 2013-2015 Dan Grossman ( http://www.dangrossman.info )
- * Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
- *
- * Built for http://www.improvely.com
- */
-
- .daterangepicker.dropdown-menu {
- max-width: none;
- z-index: 3000;
-}
-
-.daterangepicker.opensleft .ranges, .daterangepicker.opensleft .calendar {
- float: left;
- margin: 4px;
-}
-
-.daterangepicker.opensright .ranges, .daterangepicker.opensright .calendar,
-.daterangepicker.openscenter .ranges, .daterangepicker.openscenter .calendar {
- float: right;
- margin: 4px;
-}
-
-.daterangepicker.single .ranges, .daterangepicker.single .calendar {
- float: none;
-}
-
-.daterangepicker .ranges {
- width: 165px;
- text-align: left;
-}
-
-.daterangepicker .ranges .range_inputs>div {
- float: left;
-}
-
-.daterangepicker .ranges .range_inputs>div:nth-child(2) {
- padding-left: 11px;
-}
-
-.daterangepicker .calendar {
- display: none;
- max-width: 270px;
-}
-
-.daterangepicker.show-calendar .calendar {
- display: block;
-}
-
-.daterangepicker .calendar.single .calendar-date {
- border: none;
-}
-
-.daterangepicker .calendar th, .daterangepicker .calendar td {
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
- white-space: nowrap;
- text-align: center;
- min-width: 32px;
-}
-
-.daterangepicker .daterangepicker_start_input label,
-.daterangepicker .daterangepicker_end_input label {
- color: #333;
- display: block;
- font-size: 11px;
- font-weight: normal;
- height: 20px;
- line-height: 20px;
- margin-bottom: 2px;
- text-shadow: #fff 1px 1px 0px;
- text-transform: uppercase;
- width: 74px;
-}
-
-.daterangepicker .ranges input {
- font-size: 11px;
-}
-
-.daterangepicker .ranges .input-mini {
- border: 1px solid #ccc;
- border-radius: 4px;
- color: #555;
- display: block;
- font-size: 11px;
- height: 30px;
- line-height: 30px;
- vertical-align: middle;
- margin: 0 0 10px 0;
- padding: 0 6px;
- width: 77px;
-}
-
-.daterangepicker .ranges ul {
- list-style: none;
- margin: 0;
- padding: 0;
-}
-
-.daterangepicker .ranges li {
- font-size: 13px;
- background: #f5f5f5;
- border: 1px solid #f5f5f5;
- color: #08c;
- padding: 3px 12px;
- margin-bottom: 8px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- cursor: pointer;
-}
-
-.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover {
- background: #08c;
- border: 1px solid #08c;
- color: #fff;
-}
-
-.daterangepicker .calendar-date {
- border: 1px solid #ddd;
- padding: 4px;
- border-radius: 4px;
- background: #fff;
-}
-
-.daterangepicker .calendar-time {
- text-align: center;
- margin: 8px auto 0 auto;
- line-height: 30px;
-}
-
-.daterangepicker {
- position: absolute;
- background: #fff;
- top: 100px;
- left: 20px;
- padding: 4px;
- margin-top: 1px;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
-}
-
-.daterangepicker.opensleft:before {
- position: absolute;
- top: -7px;
- right: 9px;
- display: inline-block;
- border-right: 7px solid transparent;
- border-bottom: 7px solid #ccc;
- border-left: 7px solid transparent;
- border-bottom-color: rgba(0, 0, 0, 0.2);
- content: '';
-}
-
-.daterangepicker.opensleft:after {
- position: absolute;
- top: -6px;
- right: 10px;
- display: inline-block;
- border-right: 6px solid transparent;
- border-bottom: 6px solid #fff;
- border-left: 6px solid transparent;
- content: '';
-}
-
-.daterangepicker.openscenter:before {
- position: absolute;
- top: -7px;
- left: 0;
- right: 0;
- width: 0;
- margin-left: auto;
- margin-right: auto;
- display: inline-block;
- border-right: 7px solid transparent;
- border-bottom: 7px solid #ccc;
- border-left: 7px solid transparent;
- border-bottom-color: rgba(0, 0, 0, 0.2);
- content: '';
-}
-
-.daterangepicker.openscenter:after {
- position: absolute;
- top: -6px;
- left: 0;
- right: 0;
- width: 0;
- margin-left: auto;
- margin-right: auto;
- display: inline-block;
- border-right: 6px solid transparent;
- border-bottom: 6px solid #fff;
- border-left: 6px solid transparent;
- content: '';
-}
-
-.daterangepicker.opensright:before {
- position: absolute;
- top: -7px;
- left: 9px;
- display: inline-block;
- border-right: 7px solid transparent;
- border-bottom: 7px solid #ccc;
- border-left: 7px solid transparent;
- border-bottom-color: rgba(0, 0, 0, 0.2);
- content: '';
-}
-
-.daterangepicker.opensright:after {
- position: absolute;
- top: -6px;
- left: 10px;
- display: inline-block;
- border-right: 6px solid transparent;
- border-bottom: 6px solid #fff;
- border-left: 6px solid transparent;
- content: '';
-}
-
-.daterangepicker table {
- width: 100%;
- margin: 0;
-}
-
-.daterangepicker td, .daterangepicker th {
- text-align: center;
- width: 20px;
- height: 20px;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
- cursor: pointer;
- white-space: nowrap;
-}
-
-.daterangepicker td.off {
- color: #999;
-}
-
-.daterangepicker td.disabled, .daterangepicker option.disabled {
- color: #999;
-}
-
-.daterangepicker td.available:hover, .daterangepicker th.available:hover {
- background: #eee;
-}
-
-.daterangepicker td.in-range {
- background: #ebf4f8;
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
-}
-
-.daterangepicker td.start-date {
- -webkit-border-radius: 4px 0 0 4px;
- -moz-border-radius: 4px 0 0 4px;
- border-radius: 4px 0 0 4px;
-}
-
-.daterangepicker td.end-date {
- -webkit-border-radius: 0 4px 4px 0;
- -moz-border-radius: 0 4px 4px 0;
- border-radius: 0 4px 4px 0;
-}
-
-.daterangepicker td.start-date.end-date {
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
-}
-
-.daterangepicker td.active, .daterangepicker td.active:hover {
- background-color: #357ebd;
- border-color: #3071a9;
- color: #fff;
-}
-
-.daterangepicker td.week, .daterangepicker th.week {
- font-size: 80%;
- color: #ccc;
-}
-
-.daterangepicker select.monthselect, .daterangepicker select.yearselect {
- font-size: 12px;
- padding: 1px;
- height: auto;
- margin: 0;
- cursor: default;
-}
-
-.daterangepicker select.monthselect {
- margin-right: 2%;
- width: 56%;
-}
-
-.daterangepicker select.yearselect {
- width: 40%;
-}
-
-.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect {
- width: 50px;
- margin-bottom: 0;
-}
-
-.daterangepicker_start_input {
- float: left;
-}
-
-.daterangepicker_end_input {
- float: left;
- padding-left: 11px
-}
-
-.daterangepicker th.month {
- width: auto;
-}
diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js
deleted file mode 100644
index c24c0ad..0000000
--- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js
+++ /dev/null
@@ -1,1257 +0,0 @@
-/**
-* @version: 1.3.17
-* @author: Dan Grossman http://www.dangrossman.info/
-* @date: 2014-11-25
-* @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved.
-* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
-* @website: http://www.improvely.com/
-*/
-
-(function(root, factory) {
-
- if (typeof define === 'function' && define.amd) {
- define(['moment', 'jquery', 'exports'], function(momentjs, $, exports) {
- root.daterangepicker = factory(root, exports, momentjs, $);
- });
-
- } else if (typeof exports !== 'undefined') {
- var momentjs = require('moment');
- var jQuery;
- try {
- jQuery = require('jquery');
- } catch (err) {
- jQuery = window.jQuery;
- if (!jQuery) throw new Error('jQuery dependency not found');
- }
-
- factory(root, exports, momentjs, jQuery);
-
- // Finally, as a browser global.
- } else {
- root.daterangepicker = factory(root, {}, root.moment, (root.jQuery || root.Zepto || root.ender || root.$));
- }
-
-}(this, function(root, daterangepicker, moment, $) {
-
- var DateRangePicker = function (element, options, cb) {
-
- // by default, the daterangepicker element is placed at the bottom of HTML body
- this.parentEl = 'body';
-
- //element that triggered the date range picker
- this.element = $(element);
-
- //tracks visible state
- this.isShowing = false;
-
- //create the picker HTML object
- var DRPTemplate = '<div class="daterangepicker dropdown-menu">' +
- '<div class="calendar first left"></div>' +
- '<div class="calendar second right"></div>' +
- '<div class="ranges">' +
- '<div class="range_inputs">' +
- '<div class="daterangepicker_start_input">' +
- '<label for="daterangepicker_start"></label>' +
- '<input class="input-mini" type="text" name="daterangepicker_start" value="" />' +
- '</div>' +
- '<div class="daterangepicker_end_input">' +
- '<label for="daterangepicker_end"></label>' +
- '<input class="input-mini" type="text" name="daterangepicker_end" value="" />' +
- '</div>' +
- '<button class="applyBtn" disabled="disabled"></button>&nbsp;' +
- '<button class="cancelBtn"></button>' +
- '</div>' +
- '</div>' +
- '</div>';
-
- //custom options
- if (typeof options !== 'object' || options === null)
- options = {};
-
- this.parentEl = (typeof options === 'object' && options.parentEl && $(options.parentEl).length) ? $(options.parentEl) : $(this.parentEl);
- this.container = $(DRPTemplate).appendTo(this.parentEl);
-
- this.setOptions(options, cb);
-
- //apply CSS classes and labels to buttons
- var c = this.container;
- $.each(this.buttonClasses, function (idx, val) {
- c.find('button').addClass(val);
- });
- this.container.find('.daterangepicker_start_input label').html(this.locale.fromLabel);
- this.container.find('.daterangepicker_end_input label').html(this.locale.toLabel);
- if (this.applyClass.length)
- this.container.find('.applyBtn').addClass(this.applyClass);
- if (this.cancelClass.length)
- this.container.find('.cancelBtn').addClass(this.cancelClass);
- this.container.find('.applyBtn').html(this.locale.applyLabel);
- this.container.find('.cancelBtn').html(this.locale.cancelLabel);
-
- //event listeners
-
- this.container.find('.calendar')
- .on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
- .on('click.daterangepicker', '.next', $.proxy(this.clickNext, this))
- .on('click.daterangepicker', 'td.available', $.proxy(this.clickDate, this))
- .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
- .on('mouseleave.daterangepicker', 'td.available', $.proxy(this.updateFormInputs, this))
- .on('change.daterangepicker', 'select.yearselect', $.proxy(this.updateMonthYear, this))
- .on('change.daterangepicker', 'select.monthselect', $.proxy(this.updateMonthYear, this))
- .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.updateTime, this));
-
- this.container.find('.ranges')
- .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
- .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
- .on('click.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.showCalendars, this))
- .on('change.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsChanged, this))
- .on('keydown.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsKeydown, this))
- .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this))
- .on('mouseenter.daterangepicker', 'li', $.proxy(this.enterRange, this))
- .on('mouseleave.daterangepicker', 'li', $.proxy(this.updateFormInputs, this));
-
- if (this.element.is('input')) {
- this.element.on({
- 'click.daterangepicker': $.proxy(this.show, this),
- 'focus.daterangepicker': $.proxy(this.show, this),
- 'keyup.daterangepicker': $.proxy(this.updateFromControl, this)
- });
- } else {
- this.element.on('click.daterangepicker', $.proxy(this.toggle, this));
- }
-
- };
-
- DateRangePicker.prototype = {
-
- constructor: DateRangePicker,
-
- setOptions: function(options, callback) {
-
- this.startDate = moment().startOf('day');
- this.endDate = moment().endOf('day');
- this.timeZone = moment().zone();
- this.minDate = false;
- this.maxDate = false;
- this.dateLimit = false;
-
- this.showDropdowns = false;
- this.showWeekNumbers = false;
- this.timePicker = false;
- this.timePickerSeconds = false;
- this.timePickerIncrement = 30;
- this.timePicker12Hour = true;
- this.singleDatePicker = false;
- this.ranges = {};
-
- this.opens = 'right';
- if (this.element.hasClass('pull-right'))
- this.opens = 'left';
-
- this.buttonClasses = ['btn', 'btn-small btn-sm'];
- this.applyClass = 'btn-success';
- this.cancelClass = 'btn-default';
-
- this.format = 'MM/DD/YYYY';
- this.separator = ' - ';
-
- this.locale = {
- applyLabel: 'Apply',
- cancelLabel: 'Cancel',
- fromLabel: 'From',
- toLabel: 'To',
- weekLabel: 'W',
- customRangeLabel: 'Custom Range',
- daysOfWeek: moment.weekdaysMin(),
- monthNames: moment.monthsShort(),
- firstDay: moment.localeData()._week.dow
- };
-
- this.cb = function () { };
-
- if (typeof options.format === 'string')
- this.format = options.format;
-
- if (typeof options.separator === 'string')
- this.separator = options.separator;
-
- if (typeof options.startDate === 'string')
- this.startDate = moment(options.startDate, this.format);
-
- if (typeof options.endDate === 'string')
- this.endDate = moment(options.endDate, this.format);
-
- if (typeof options.minDate === 'string')
- this.minDate = moment(options.minDate, this.format);
-
- if (typeof options.maxDate === 'string')
- this.maxDate = moment(options.maxDate, this.format);
-
- if (typeof options.startDate === 'object')
- this.startDate = moment(options.startDate);
-
- if (typeof options.endDate === 'object')
- this.endDate = moment(options.endDate);
-
- if (typeof options.minDate === 'object')
- this.minDate = moment(options.minDate);
-
- if (typeof options.maxDate === 'object')
- this.maxDate = moment(options.maxDate);
-
- if (typeof options.applyClass === 'string')
- this.applyClass = options.applyClass;
-
- if (typeof options.cancelClass === 'string')
- this.cancelClass = options.cancelClass;
-
- if (typeof options.dateLimit === 'object')
- this.dateLimit = options.dateLimit;
-
- if (typeof options.locale === 'object') {
-
- if (typeof options.locale.daysOfWeek === 'object') {
- // Create a copy of daysOfWeek to avoid modification of original
- // options object for reusability in multiple daterangepicker instances
- this.locale.daysOfWeek = options.locale.daysOfWeek.slice();
- }
-
- if (typeof options.locale.monthNames === 'object') {
- this.locale.monthNames = options.locale.monthNames.slice();
- }
-
- if (typeof options.locale.firstDay === 'number') {
- this.locale.firstDay = options.locale.firstDay;
- }
-
- if (typeof options.locale.applyLabel === 'string') {
- this.locale.applyLabel = options.locale.applyLabel;
- }
-
- if (typeof options.locale.cancelLabel === 'string') {
- this.locale.cancelLabel = options.locale.cancelLabel;
- }
-
- if (typeof options.locale.fromLabel === 'string') {
- this.locale.fromLabel = options.locale.fromLabel;
- }
-
- if (typeof options.locale.toLabel === 'string') {
- this.locale.toLabel = options.locale.toLabel;
- }
-
- if (typeof options.locale.weekLabel === 'string') {
- this.locale.weekLabel = options.locale.weekLabel;
- }
-
- if (typeof options.locale.customRangeLabel === 'string') {
- this.locale.customRangeLabel = options.locale.customRangeLabel;
- }
- }
-
- if (typeof options.opens === 'string')
- this.opens = options.opens;
-
- if (typeof options.showWeekNumbers === 'boolean') {
- this.showWeekNumbers = options.showWeekNumbers;
- }
-
- if (typeof options.buttonClasses === 'string') {
- this.buttonClasses = [options.buttonClasses];
- }
-
- if (typeof options.buttonClasses === 'object') {
- this.buttonClasses = options.buttonClasses;
- }
-
- if (typeof options.showDropdowns === 'boolean') {
- this.showDropdowns = options.showDropdowns;
- }
-
- if (typeof options.singleDatePicker === 'boolean') {
- this.singleDatePicker = options.singleDatePicker;
- if (this.singleDatePicker) {
- this.endDate = this.startDate.clone();
- }
- }
-
- if (typeof options.timePicker === 'boolean') {
- this.timePicker = options.timePicker;
- }
-
- if (typeof options.timePickerSeconds === 'boolean') {
- this.timePickerSeconds = options.timePickerSeconds;
- }
-
- if (typeof options.timePickerIncrement === 'number') {
- this.timePickerIncrement = options.timePickerIncrement;
- }
-
- if (typeof options.timePicker12Hour === 'boolean') {
- this.timePicker12Hour = options.timePicker12Hour;
- }
-
- // update day names order to firstDay
- if (this.locale.firstDay != 0) {
- var iterator = this.locale.firstDay;
- while (iterator > 0) {
- this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());
- iterator--;
- }
- }
-
- var start, end, range;
-
- //if no start/end dates set, check if an input element contains initial values
- if (typeof options.startDate === 'undefined' && typeof options.endDate === 'undefined') {
- if ($(this.element).is('input[type=text]')) {
- var val = $(this.element).val(),
- split = val.split(this.separator);
-
- start = end = null;
-
- if (split.length == 2) {
- start = moment(split[0], this.format);
- end = moment(split[1], this.format);
- } else if (this.singleDatePicker && val !== "") {
- start = moment(val, this.format);
- end = moment(val, this.format);
- }
- if (start !== null && end !== null) {
- this.startDate = start;
- this.endDate = end;
- }
- }
- }
-
- // bind the time zone used to build the calendar to either the timeZone passed in through the options or the zone of the startDate (which will be the local time zone by default)
- if (typeof options.timeZone === 'string' || typeof options.timeZone === 'number') {
- this.timeZone = options.timeZone;
- this.startDate.zone(this.timeZone);
- this.endDate.zone(this.timeZone);
- } else {
- this.timeZone = moment(this.startDate).zone();
- }
-
- if (typeof options.ranges === 'object') {
- for (range in options.ranges) {
-
- if (typeof options.ranges[range][0] === 'string')
- start = moment(options.ranges[range][0], this.format);
- else
- start = moment(options.ranges[range][0]);
-
- if (typeof options.ranges[range][1] === 'string')
- end = moment(options.ranges[range][1], this.format);
- else
- end = moment(options.ranges[range][1]);
-
- // If we have a min/max date set, bound this range
- // to it, but only if it would otherwise fall
- // outside of the min/max.
- if (this.minDate && start.isBefore(this.minDate))
- start = moment(this.minDate);
-
- if (this.maxDate && end.isAfter(this.maxDate))
- end = moment(this.maxDate);
-
- // If the end of the range is before the minimum (if min is set) OR
- // the start of the range is after the max (also if set) don't display this
- // range option.
- if ((this.minDate && end.isBefore(this.minDate)) || (this.maxDate && start.isAfter(this.maxDate))) {
- continue;
- }
-
- this.ranges[range] = [start, end];
- }
-
- var list = '<ul>';
- for (range in this.ranges) {
- list += '<li>' + range + '</li>';
- }
- list += '<li>' + this.locale.customRangeLabel + '</li>';
- list += '</ul>';
- this.container.find('.ranges ul').remove();
- this.container.find('.ranges').prepend(list);
- }
-
- if (typeof callback === 'function') {
- this.cb = callback;
- }
-
- if (!this.timePicker) {
- this.startDate = this.startDate.startOf('day');
- this.endDate = this.endDate.endOf('day');
- }
-
- if (this.singleDatePicker) {
- this.opens = 'right';
- this.container.addClass('single');
- this.container.find('.calendar.right').show();
- this.container.find('.calendar.left').hide();
- if (!this.timePicker) {
- this.container.find('.ranges').hide();
- } else {
- this.container.find('.ranges .daterangepicker_start_input, .ranges .daterangepicker_end_input').hide();
- }
- if (!this.container.find('.calendar.right').hasClass('single'))
- this.container.find('.calendar.right').addClass('single');
- } else {
- this.container.removeClass('single');
- this.container.find('.calendar.right').removeClass('single');
- this.container.find('.ranges').show();
- }
-
- this.oldStartDate = this.startDate.clone();
- this.oldEndDate = this.endDate.clone();
- this.oldChosenLabel = this.chosenLabel;
-
- this.leftCalendar = {
- month: moment([this.startDate.year(), this.startDate.month(), 1, this.startDate.hour(), this.startDate.minute(), this.startDate.second()]),
- calendar: []
- };
-
- this.rightCalendar = {
- month: moment([this.endDate.year(), this.endDate.month(), 1, this.endDate.hour(), this.endDate.minute(), this.endDate.second()]),
- calendar: []
- };
-
- if (this.opens == 'right' || this.opens == 'center') {
- //swap calendar positions
- var first = this.container.find('.calendar.first');
- var second = this.container.find('.calendar.second');
-
- if (second.hasClass('single')) {
- second.removeClass('single');
- first.addClass('single');
- }
-
- first.removeClass('left').addClass('right');
- second.removeClass('right').addClass('left');
-
- if (this.singleDatePicker) {
- first.show();
- second.hide();
- }
- }
-
- if (typeof options.ranges === 'undefined' && !this.singleDatePicker) {
- this.container.addClass('show-calendar');
- }
-
- this.container.addClass('opens' + this.opens);
-
- this.updateView();
- this.updateCalendars();
-
- },
-
- setStartDate: function(startDate) {
- if (typeof startDate === 'string')
- this.startDate = moment(startDate, this.format).zone(this.timeZone);
-
- if (typeof startDate === 'object')
- this.startDate = moment(startDate);
-
- if (!this.timePicker)
- this.startDate = this.startDate.startOf('day');
-
- this.oldStartDate = this.startDate.clone();
-
- this.updateView();
- this.updateCalendars();
- this.updateInputText();
- },
-
- setEndDate: function(endDate) {
- if (typeof endDate === 'string')
- this.endDate = moment(endDate, this.format).zone(this.timeZone);
-
- if (typeof endDate === 'object')
- this.endDate = moment(endDate);
-
- if (!this.timePicker)
- this.endDate = this.endDate.endOf('day');
-
- this.oldEndDate = this.endDate.clone();
-
- this.updateView();
- this.updateCalendars();
- this.updateInputText();
- },
-
- updateView: function () {
- this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute());
- this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute());
- this.updateFormInputs();
- },
-
- updateFormInputs: function () {
- this.container.find('input[name=daterangepicker_start]').val(this.startDate.format(this.format));
- this.container.find('input[name=daterangepicker_end]').val(this.endDate.format(this.format));
-
- if (this.startDate.isSame(this.endDate) || this.startDate.isBefore(this.endDate)) {
- this.container.find('button.applyBtn').removeAttr('disabled');
- } else {
- this.container.find('button.applyBtn').attr('disabled', 'disabled');
- }
- },
-
- updateFromControl: function () {
- if (!this.element.is('input')) return;
- if (!this.element.val().length) return;
-
- var dateString = this.element.val().split(this.separator),
- start = null,
- end = null;
-
- if(dateString.length === 2) {
- start = moment(dateString[0], this.format).zone(this.timeZone);
- end = moment(dateString[1], this.format).zone(this.timeZone);
- }
-
- if (this.singleDatePicker || start === null || end === null) {
- start = moment(this.element.val(), this.format).zone(this.timeZone);
- end = start;
- }
-
- if (end.isBefore(start)) return;
-
- this.oldStartDate = this.startDate.clone();
- this.oldEndDate = this.endDate.clone();
-
- this.startDate = start;
- this.endDate = end;
-
- if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
- this.notify();
-
- this.updateCalendars();
- },
-
- notify: function () {
- this.updateView();
- this.cb(this.startDate, this.endDate, this.chosenLabel);
- },
-
- move: function () {
- var parentOffset = { top: 0, left: 0 };
- var parentRightEdge = $(window).width();
- if (!this.parentEl.is('body')) {
- parentOffset = {
- top: this.parentEl.offset().top - this.parentEl.scrollTop(),
- left: this.parentEl.offset().left - this.parentEl.scrollLeft()
- };
- parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left;
- }
-
- if (this.opens == 'left') {
- this.container.css({
- top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
- right: parentRightEdge - this.element.offset().left - this.element.outerWidth(),
- left: 'auto'
- });
- if (this.container.offset().left < 0) {
- this.container.css({
- right: 'auto',
- left: 9
- });
- }
- } else if (this.opens == 'center') {
- this.container.css({
- top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
- left: this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2
- - this.container.outerWidth() / 2,
- right: 'auto'
- });
- if (this.container.offset().left < 0) {
- this.container.css({
- right: 'auto',
- left: 9
- });
- }
- } else {
- this.container.css({
- top: this.element.offset().top + this.element.outerHeight() - parentOffset.top,
- left: this.element.offset().left - parentOffset.left,
- right: 'auto'
- });
- if (this.container.offset().left + this.container.outerWidth() > $(window).width()) {
- this.container.css({
- left: 'auto',
- right: 0
- });
- }
- }
- },
-
- toggle: function (e) {
- if (this.element.hasClass('active')) {
- this.hide();
- } else {
- this.show();
- }
- },
-
- show: function (e) {
- if (this.isShowing) return;
-
- this.element.addClass('active');
- this.container.show();
- this.move();
-
- // Create a click proxy that is private to this instance of datepicker, for unbinding
- this._outsideClickProxy = $.proxy(function (e) { this.outsideClick(e); }, this);
- // Bind global datepicker mousedown for hiding and
- $(document)
- .on('mousedown.daterangepicker', this._outsideClickProxy)
- // also support mobile devices
- .on('touchend.daterangepicker', this._outsideClickProxy)
- // also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them
- .on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy)
- // and also close when focus changes to outside the picker (eg. tabbing between controls)
- .on('focusin.daterangepicker', this._outsideClickProxy);
-
- this.isShowing = true;
- this.element.trigger('show.daterangepicker', this);
- },
-
- outsideClick: function (e) {
- var target = $(e.target);
- // if the page is clicked anywhere except within the daterangerpicker/button
- // itself then call this.hide()
- if (
- // ie modal dialog fix
- e.type == "focusin" ||
- target.closest(this.element).length ||
- target.closest(this.container).length ||
- target.closest('.calendar-date').length
- ) return;
- this.hide();
- },
-
- hide: function (e) {
- if (!this.isShowing) return;
-
- $(document)
- .off('.daterangepicker');
-
- this.element.removeClass('active');
- this.container.hide();
-
- if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
- this.notify();
-
- this.oldStartDate = this.startDate.clone();
- this.oldEndDate = this.endDate.clone();
-
- this.isShowing = false;
- this.element.trigger('hide.daterangepicker', this);
- },
-
- enterRange: function (e) {
- // mouse pointer has entered a range label
- var label = e.target.innerHTML;
- if (label == this.locale.customRangeLabel) {
- this.updateView();
- } else {
- var dates = this.ranges[label];
- this.container.find('input[name=daterangepicker_start]').val(dates[0].format(this.format));
- this.container.find('input[name=daterangepicker_end]').val(dates[1].format(this.format));
- }
- },
-
- showCalendars: function() {
- this.container.addClass('show-calendar');
- this.move();
- this.element.trigger('showCalendar.daterangepicker', this);
- },
-
- hideCalendars: function() {
- this.container.removeClass('show-calendar');
- this.element.trigger('hideCalendar.daterangepicker', this);
- },
-
- // when a date is typed into the start to end date textboxes
- inputsChanged: function (e) {
- var el = $(e.target);
- var date = moment(el.val(), this.format);
- if (!date.isValid()) return;
-
- var startDate, endDate;
- if (el.attr('name') === 'daterangepicker_start') {
- startDate = date;
- endDate = this.endDate;
- } else {
- startDate = this.startDate;
- endDate = date;
- }
- this.setCustomDates(startDate, endDate);
- },
-
- inputsKeydown: function(e) {
- if (e.keyCode === 13) {
- this.inputsChanged(e);
- this.notify();
- }
- },
-
- updateInputText: function() {
- if (this.element.is('input') && !this.singleDatePicker) {
- this.element.val(this.startDate.format(this.format) + this.separator + this.endDate.format(this.format));
- } else if (this.element.is('input')) {
- this.element.val(this.endDate.format(this.format));
- }
- },
-
- clickRange: function (e) {
- var label = e.target.innerHTML;
- this.chosenLabel = label;
- if (label == this.locale.customRangeLabel) {
- this.showCalendars();
- } else {
- var dates = this.ranges[label];
-
- this.startDate = dates[0];
- this.endDate = dates[1];
-
- if (!this.timePicker) {
- this.startDate.startOf('day');
- this.endDate.endOf('day');
- }
-
- this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute());
- this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute());
- this.updateCalendars();
-
- this.updateInputText();
-
- this.hideCalendars();
- this.hide();
- this.element.trigger('apply.daterangepicker', this);
- }
- },
-
- clickPrev: function (e) {
- var cal = $(e.target).parents('.calendar');
- if (cal.hasClass('left')) {
- this.leftCalendar.month.subtract(1, 'month');
- } else {
- this.rightCalendar.month.subtract(1, 'month');
- }
- this.updateCalendars();
- },
-
- clickNext: function (e) {
- var cal = $(e.target).parents('.calendar');
- if (cal.hasClass('left')) {
- this.leftCalendar.month.add(1, 'month');
- } else {
- this.rightCalendar.month.add(1, 'month');
- }
- this.updateCalendars();
- },
-
- hoverDate: function (e) {
- var title = $(e.target).attr('data-title');
- var row = title.substr(1, 1);
- var col = title.substr(3, 1);
- var cal = $(e.target).parents('.calendar');
-
- if (cal.hasClass('left')) {
- this.container.find('input[name=daterangepicker_start]').val(this.leftCalendar.calendar[row][col].format(this.format));
- } else {
- this.container.find('input[name=daterangepicker_end]').val(this.rightCalendar.calendar[row][col].format(this.format));
- }
- },
-
- setCustomDates: function(startDate, endDate) {
- this.chosenLabel = this.locale.customRangeLabel;
- if (startDate.isAfter(endDate)) {
- var difference = this.endDate.diff(this.startDate);
- endDate = moment(startDate).add(difference, 'ms');
- if (this.maxDate && endDate.isAfter(this.maxDate)) {
- endDate = this.maxDate;
- }
- }
- this.startDate = startDate;
- this.endDate = endDate;
-
- this.updateView();
- this.updateCalendars();
- },
-
- clickDate: function (e) {
- var title = $(e.target).attr('data-title');
- var row = title.substr(1, 1);
- var col = title.substr(3, 1);
- var cal = $(e.target).parents('.calendar');
-
- var startDate, endDate;
- if (cal.hasClass('left')) {
- startDate = this.leftCalendar.calendar[row][col];
- endDate = this.endDate;
- if (typeof this.dateLimit === 'object') {
- var maxDate = moment(startDate).add(this.dateLimit).startOf('day');
- if (endDate.isAfter(maxDate)) {
- endDate = maxDate;
- }
- }
- } else {
- startDate = this.startDate;
- endDate = this.rightCalendar.calendar[row][col];
- if (typeof this.dateLimit === 'object') {
- var minDate = moment(endDate).subtract(this.dateLimit).startOf('day');
- if (startDate.isBefore(minDate)) {
- startDate = minDate;
- }
- }
- }
-
- if (this.singleDatePicker && cal.hasClass('left')) {
- endDate = startDate.clone();
- } else if (this.singleDatePicker && cal.hasClass('right')) {
- startDate = endDate.clone();
- }
-
- cal.find('td').removeClass('active');
-
- $(e.target).addClass('active');
-
- this.setCustomDates(startDate, endDate);
-
- if (!this.timePicker)
- endDate.endOf('day');
-
- if (this.singleDatePicker && !this.timePicker)
- this.clickApply();
- },
-
- clickApply: function (e) {
- this.updateInputText();
- this.hide();
- this.element.trigger('apply.daterangepicker', this);
- },
-
- clickCancel: function (e) {
- this.startDate = this.oldStartDate;
- this.endDate = this.oldEndDate;
- this.chosenLabel = this.oldChosenLabel;
- this.updateView();
- this.updateCalendars();
- this.hide();
- this.element.trigger('cancel.daterangepicker', this);
- },
-
- updateMonthYear: function (e) {
- var isLeft = $(e.target).closest('.calendar').hasClass('left'),
- leftOrRight = isLeft ? 'left' : 'right',
- cal = this.container.find('.calendar.'+leftOrRight);
-
- // Month must be Number for new moment versions
- var month = parseInt(cal.find('.monthselect').val(), 10);
- var year = cal.find('.yearselect').val();
-
- this[leftOrRight+'Calendar'].month.month(month).year(year);
- this.updateCalendars();
- },
-
- updateTime: function(e) {
-
- var cal = $(e.target).closest('.calendar'),
- isLeft = cal.hasClass('left');
-
- var hour = parseInt(cal.find('.hourselect').val(), 10);
- var minute = parseInt(cal.find('.minuteselect').val(), 10);
- var second = 0;
-
- if (this.timePickerSeconds) {
- second = parseInt(cal.find('.secondselect').val(), 10);
- }
-
- if (this.timePicker12Hour) {
- var ampm = cal.find('.ampmselect').val();
- if (ampm === 'PM' && hour < 12)
- hour += 12;
- if (ampm === 'AM' && hour === 12)
- hour = 0;
- }
-
- if (isLeft) {
- var start = this.startDate.clone();
- start.hour(hour);
- start.minute(minute);
- start.second(second);
- this.startDate = start;
- this.leftCalendar.month.hour(hour).minute(minute).second(second);
- if (this.singleDatePicker)
- this.endDate = start.clone();
- } else {
- var end = this.endDate.clone();
- end.hour(hour);
- end.minute(minute);
- end.second(second);
- this.endDate = end;
- if (this.singleDatePicker)
- this.startDate = end.clone();
- this.rightCalendar.month.hour(hour).minute(minute).second(second);
- }
-
- this.updateView();
- this.updateCalendars();
- },
-
- updateCalendars: function () {
- this.leftCalendar.calendar = this.buildCalendar(this.leftCalendar.month.month(), this.leftCalendar.month.year(), this.leftCalendar.month.hour(), this.leftCalendar.month.minute(), this.leftCalendar.month.second(), 'left');
- this.rightCalendar.calendar = this.buildCalendar(this.rightCalendar.month.month(), this.rightCalendar.month.year(), this.rightCalendar.month.hour(), this.rightCalendar.month.minute(), this.rightCalendar.month.second(), 'right');
- this.container.find('.calendar.left').empty().html(this.renderCalendar(this.leftCalendar.calendar, this.startDate, this.minDate, this.maxDate, 'left'));
- this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, this.singleDatePicker ? this.minDate : this.startDate, this.maxDate, 'right'));
-
- this.container.find('.ranges li').removeClass('active');
- var customRange = true;
- var i = 0;
- for (var range in this.ranges) {
- if (this.timePicker) {
- if (this.startDate.isSame(this.ranges[range][0]) && this.endDate.isSame(this.ranges[range][1])) {
- customRange = false;
- this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')')
- .addClass('active').html();
- }
- } else {
- //ignore times when comparing dates if time picker is not enabled
- if (this.startDate.format('YYYY-MM-DD') == this.ranges[range][0].format('YYYY-MM-DD') && this.endDate.format('YYYY-MM-DD') == this.ranges[range][1].format('YYYY-MM-DD')) {
- customRange = false;
- this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')')
- .addClass('active').html();
- }
- }
- i++;
- }
- if (customRange) {
- this.chosenLabel = this.container.find('.ranges li:last').addClass('active').html();
- this.showCalendars();
- }
- },
-
- buildCalendar: function (month, year, hour, minute, second, side) {
- var daysInMonth = moment([year, month]).daysInMonth();
- var firstDay = moment([year, month, 1]);
- var lastDay = moment([year, month, daysInMonth]);
- var lastMonth = moment(firstDay).subtract(1, 'month').month();
- var lastYear = moment(firstDay).subtract(1, 'month').year();
-
- var daysInLastMonth = moment([lastYear, lastMonth]).daysInMonth();
-
- var dayOfWeek = firstDay.day();
-
- var i;
-
- //initialize a 6 rows x 7 columns array for the calendar
- var calendar = [];
- calendar.firstDay = firstDay;
- calendar.lastDay = lastDay;
-
- for (i = 0; i < 6; i++) {
- calendar[i] = [];
- }
-
- //populate the calendar with date objects
- var startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1;
- if (startDay > daysInLastMonth)
- startDay -= 7;
-
- if (dayOfWeek == this.locale.firstDay)
- startDay = daysInLastMonth - 6;
-
- var curDate = moment([lastYear, lastMonth, startDay, 12, minute, second]).zone(this.timeZone);
-
- var col, row;
- for (i = 0, col = 0, row = 0; i < 42; i++, col++, curDate = moment(curDate).add(24, 'hour')) {
- if (i > 0 && col % 7 === 0) {
- col = 0;
- row++;
- }
- calendar[row][col] = curDate.clone().hour(hour);
- curDate.hour(12);
-
- if (this.minDate && calendar[row][col].format('YYYY-MM-DD') == this.minDate.format('YYYY-MM-DD') && calendar[row][col].isBefore(this.minDate) && side == 'left') {
- calendar[row][col] = this.minDate.clone();
- }
-
- if (this.maxDate && calendar[row][col].format('YYYY-MM-DD') == this.maxDate.format('YYYY-MM-DD') && calendar[row][col].isAfter(this.maxDate) && side == 'right') {
- calendar[row][col] = this.maxDate.clone();
- }
-
- }
-
- return calendar;
- },
-
- renderDropdowns: function (selected, minDate, maxDate) {
- var currentMonth = selected.month();
- var currentYear = selected.year();
- var maxYear = (maxDate && maxDate.year()) || (currentYear + 5);
- var minYear = (minDate && minDate.year()) || (currentYear - 50);
-
- var monthHtml = '<select class="monthselect">';
- var inMinYear = currentYear == minYear;
- var inMaxYear = currentYear == maxYear;
-
- for (var m = 0; m < 12; m++) {
- if ((!inMinYear || m >= minDate.month()) && (!inMaxYear || m <= maxDate.month())) {
- monthHtml += "<option value='" + m + "'" +
- (m === currentMonth ? " selected='selected'" : "") +
- ">" + this.locale.monthNames[m] + "</option>";
- }
- }
- monthHtml += "</select>";
-
- var yearHtml = '<select class="yearselect">';
-
- for (var y = minYear; y <= maxYear; y++) {
- yearHtml += '<option value="' + y + '"' +
- (y === currentYear ? ' selected="selected"' : '') +
- '>' + y + '</option>';
- }
-
- yearHtml += '</select>';
-
- return monthHtml + yearHtml;
- },
-
- renderCalendar: function (calendar, selected, minDate, maxDate, side) {
-
- var html = '<div class="calendar-date">';
- html += '<table class="table-condensed">';
- html += '<thead>';
- html += '<tr>';
-
- // add empty cell for week number
- if (this.showWeekNumbers)
- html += '<th></th>';
-
- if (!minDate || minDate.isBefore(calendar.firstDay)) {
- html += '<th class="prev available"><i class="fa fa-arrow-left icon icon-arrow-left glyphicon glyphicon-arrow-left"></i></th>';
- } else {
- html += '<th></th>';
- }
-
- var dateHtml = this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY");
-
- if (this.showDropdowns) {
- dateHtml = this.renderDropdowns(calendar[1][1], minDate, maxDate);
- }
-
- html += '<th colspan="5" class="month">' + dateHtml + '</th>';
- if (!maxDate || maxDate.isAfter(calendar.lastDay)) {
- html += '<th class="next available"><i class="fa fa-arrow-right icon icon-arrow-right glyphicon glyphicon-arrow-right"></i></th>';
- } else {
- html += '<th></th>';
- }
-
- html += '</tr>';
- html += '<tr>';
-
- // add week number label
- if (this.showWeekNumbers)
- html += '<th class="week">' + this.locale.weekLabel + '</th>';
-
- $.each(this.locale.daysOfWeek, function (index, dayOfWeek) {
- html += '<th>' + dayOfWeek + '</th>';
- });
-
- html += '</tr>';
- html += '</thead>';
- html += '<tbody>';
-
- for (var row = 0; row < 6; row++) {
- html += '<tr>';
-
- // add week number
- if (this.showWeekNumbers)
- html += '<td class="week">' + calendar[row][0].week() + '</td>';
-
- for (var col = 0; col < 7; col++) {
- var cname = 'available ';
- cname += (calendar[row][col].month() == calendar[1][1].month()) ? '' : 'off';
-
- if ((minDate && calendar[row][col].isBefore(minDate, 'day')) || (maxDate && calendar[row][col].isAfter(maxDate, 'day'))) {
- cname = ' off disabled ';
- } else if (calendar[row][col].format('YYYY-MM-DD') == selected.format('YYYY-MM-DD')) {
- cname += ' active ';
- if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD')) {
- cname += ' start-date ';
- }
- if (calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD')) {
- cname += ' end-date ';
- }
- } else if (calendar[row][col] >= this.startDate && calendar[row][col] <= this.endDate) {
- cname += ' in-range ';
- if (calendar[row][col].isSame(this.startDate)) { cname += ' start-date '; }
- if (calendar[row][col].isSame(this.endDate)) { cname += ' end-date '; }
- }
-
- var title = 'r' + row + 'c' + col;
- html += '<td class="' + cname.replace(/\s+/g, ' ').replace(/^\s?(.*?)\s?$/, '$1') + '" data-title="' + title + '">' + calendar[row][col].date() + '</td>';
- }
- html += '</tr>';
- }
-
- html += '</tbody>';
- html += '</table>';
- html += '</div>';
-
- var i;
- if (this.timePicker) {
-
- html += '<div class="calendar-time">';
- html += '<select class="hourselect">';
-
- // Disallow selections before the minDate or after the maxDate
- var min_hour = 0;
- var max_hour = 23;
-
- if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == minDate.format('YYYY-MM-DD')) {
- min_hour = minDate.hour();
- if (selected.hour() < min_hour)
- selected.hour(min_hour);
- if (this.timePicker12Hour && min_hour >= 12 && selected.hour() >= 12)
- min_hour -= 12;
- if (this.timePicker12Hour && min_hour == 12)
- min_hour = 1;
- }
-
- if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == maxDate.format('YYYY-MM-DD')) {
- max_hour = maxDate.hour();
- if (selected.hour() > max_hour)
- selected.hour(max_hour);
- if (this.timePicker12Hour && max_hour >= 12 && selected.hour() >= 12)
- max_hour -= 12;
- }
-
- var start = 0;
- var end = 23;
- var selected_hour = selected.hour();
- if (this.timePicker12Hour) {
- start = 1;
- end = 12;
- if (selected_hour >= 12)
- selected_hour -= 12;
- if (selected_hour === 0)
- selected_hour = 12;
- }
-
- for (i = start; i <= end; i++) {
-
- if (i == selected_hour) {
- html += '<option value="' + i + '" selected="selected">' + i + '</option>';
- } else if (i < min_hour || i > max_hour) {
- html += '<option value="' + i + '" disabled="disabled" class="disabled">' + i + '</option>';
- } else {
- html += '<option value="' + i + '">' + i + '</option>';
- }
- }
-
- html += '</select> : ';
-
- html += '<select class="minuteselect">';
-
- // Disallow selections before the minDate or after the maxDate
- var min_minute = 0;
- var max_minute = 59;
-
- if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD h A') == minDate.format('YYYY-MM-DD h A')) {
- min_minute = minDate.minute();
- if (selected.minute() < min_minute)
- selected.minute(min_minute);
- }
-
- if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD h A') == maxDate.format('YYYY-MM-DD h A')) {
- max_minute = maxDate.minute();
- if (selected.minute() > max_minute)
- selected.minute(max_minute);
- }
-
- for (i = 0; i < 60; i += this.timePickerIncrement) {
- var num = i;
- if (num < 10)
- num = '0' + num;
- if (i == selected.minute()) {
- html += '<option value="' + i + '" selected="selected">' + num + '</option>';
- } else if (i < min_minute || i > max_minute) {
- html += '<option value="' + i + '" disabled="disabled" class="disabled">' + num + '</option>';
- } else {
- html += '<option value="' + i + '">' + num + '</option>';
- }
- }
-
- html += '</select> ';
-
- if (this.timePickerSeconds) {
- html += ': <select class="secondselect">';
-
- for (i = 0; i < 60; i += this.timePickerIncrement) {
- var num = i;
- if (num < 10)
- num = '0' + num;
- if (i == selected.second()) {
- html += '<option value="' + i + '" selected="selected">' + num + '</option>';
- } else {
- html += '<option value="' + i + '">' + num + '</option>';
- }
- }
-
- html += '</select>';
- }
-
- if (this.timePicker12Hour) {
- html += '<select class="ampmselect">';
-
- // Disallow selection before the minDate or after the maxDate
- var am_html = '';
- var pm_html = '';
-
- if (minDate && (side == 'left' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == minDate.format('YYYY-MM-DD') && minDate.hour() >= 12) {
- am_html = ' disabled="disabled" class="disabled"';
- }
-
- if (maxDate && (side == 'right' || this.singleDatePicker) && selected.format('YYYY-MM-DD') == maxDate.format('YYYY-MM-DD') && maxDate.hour() < 12) {
- pm_html = ' disabled="disabled" class="disabled"';
- }
-
- if (selected.hour() >= 12) {
- html += '<option value="AM"' + am_html + '>AM</option><option value="PM" selected="selected"' + pm_html + '>PM</option>';
- } else {
- html += '<option value="AM" selected="selected"' + am_html + '>AM</option><option value="PM"' + pm_html + '>PM</option>';
- }
- html += '</select>';
- }
-
- html += '</div>';
-
- }
-
- return html;
-
- },
-
- remove: function() {
-
- this.container.remove();
- this.element.off('.daterangepicker');
- this.element.removeData('daterangepicker');
-
- }
-
- };
-
- $.fn.daterangepicker = function (options, cb) {
- this.each(function () {
- var el = $(this);
- if (el.data('daterangepicker'))
- el.data('daterangepicker').remove();
- el.data('daterangepicker', new DateRangePicker(el, options, cb));
- });
- return this;
- };
-
-}));
diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js
deleted file mode 100644
index 1800b5d..0000000
--- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js
+++ /dev/null
@@ -1,2808 +0,0 @@
-//! moment.js
-//! version : 2.8.1
-//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
-//! license : MIT
-//! momentjs.com
-
-(function (undefined) {
- /************************************
- Constants
- ************************************/
-
- var moment,
- VERSION = '2.8.1',
- // the global-scope this is NOT the global object in Node.js
- globalScope = typeof global !== 'undefined' ? global : this,
- oldGlobalMoment,
- round = Math.round,
- i,
-
- YEAR = 0,
- MONTH = 1,
- DATE = 2,
- HOUR = 3,
- MINUTE = 4,
- SECOND = 5,
- MILLISECOND = 6,
-
- // internal storage for locale config files
- locales = {},
-
- // extra moment internal properties (plugins register props here)
- momentProperties = [],
-
- // check for nodeJS
- hasModule = (typeof module !== 'undefined' && module.exports),
-
- // ASP.NET json date format regex
- aspNetJsonRegex = /^\/?Date\((\-?\d+)/i,
- aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,
-
- // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
- // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
- isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,
-
- // format tokens
- formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,
- localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,
-
- // parsing token regexes
- parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99
- parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999
- parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999
- parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999
- parseTokenDigits = /\d+/, // nonzero number of digits
- parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic.
- parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
- parseTokenT = /T/i, // T (ISO separator)
- parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
- parseTokenOrdinal = /\d{1,2}/,
-
- //strict parsing regexes
- parseTokenOneDigit = /\d/, // 0 - 9
- parseTokenTwoDigits = /\d\d/, // 00 - 99
- parseTokenThreeDigits = /\d{3}/, // 000 - 999
- parseTokenFourDigits = /\d{4}/, // 0000 - 9999
- parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999
- parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf
-
- // iso 8601 regex
- // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
- isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
-
- isoFormat = 'YYYY-MM-DDTHH:mm:ssZ',
-
- isoDates = [
- ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/],
- ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/],
- ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/],
- ['GGGG-[W]WW', /\d{4}-W\d{2}/],
- ['YYYY-DDD', /\d{4}-\d{3}/]
- ],
-
- // iso time formats and regexes
- isoTimes = [
- ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/],
- ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/],
- ['HH:mm', /(T| )\d\d:\d\d/],
- ['HH', /(T| )\d\d/]
- ],
-
- // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"]
- parseTimezoneChunker = /([\+\-]|\d\d)/gi,
-
- // getter and setter names
- proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'),
- unitMillisecondFactors = {
- 'Milliseconds' : 1,
- 'Seconds' : 1e3,
- 'Minutes' : 6e4,
- 'Hours' : 36e5,
- 'Days' : 864e5,
- 'Months' : 2592e6,
- 'Years' : 31536e6
- },
-
- unitAliases = {
- ms : 'millisecond',
- s : 'second',
- m : 'minute',
- h : 'hour',
- d : 'day',
- D : 'date',
- w : 'week',
- W : 'isoWeek',
- M : 'month',
- Q : 'quarter',
- y : 'year',
- DDD : 'dayOfYear',
- e : 'weekday',
- E : 'isoWeekday',
- gg: 'weekYear',
- GG: 'isoWeekYear'
- },
-
- camelFunctions = {
- dayofyear : 'dayOfYear',
- isoweekday : 'isoWeekday',
- isoweek : 'isoWeek',
- weekyear : 'weekYear',
- isoweekyear : 'isoWeekYear'
- },
-
- // format function strings
- formatFunctions = {},
-
- // default relative time thresholds
- relativeTimeThresholds = {
- s: 45, // seconds to minute
- m: 45, // minutes to hour
- h: 22, // hours to day
- d: 26, // days to month
- M: 11 // months to year
- },
-
- // tokens to ordinalize and pad
- ordinalizeTokens = 'DDD w W M D d'.split(' '),
- paddedTokens = 'M D H h m s w W'.split(' '),
-
- formatTokenFunctions = {
- M : function () {
- return this.month() + 1;
- },
- MMM : function (format) {
- return this.localeData().monthsShort(this, format);
- },
- MMMM : function (format) {
- return this.localeData().months(this, format);
- },
- D : function () {
- return this.date();
- },
- DDD : function () {
- return this.dayOfYear();
- },
- d : function () {
- return this.day();
- },
- dd : function (format) {
- return this.localeData().weekdaysMin(this, format);
- },
- ddd : function (format) {
- return this.localeData().weekdaysShort(this, format);
- },
- dddd : function (format) {
- return this.localeData().weekdays(this, format);
- },
- w : function () {
- return this.week();
- },
- W : function () {
- return this.isoWeek();
- },
- YY : function () {
- return leftZeroFill(this.year() % 100, 2);
- },
- YYYY : function () {
- return leftZeroFill(this.year(), 4);
- },
- YYYYY : function () {
- return leftZeroFill(this.year(), 5);
- },
- YYYYYY : function () {
- var y = this.year(), sign = y >= 0 ? '+' : '-';
- return sign + leftZeroFill(Math.abs(y), 6);
- },
- gg : function () {
- return leftZeroFill(this.weekYear() % 100, 2);
- },
- gggg : function () {
- return leftZeroFill(this.weekYear(), 4);
- },
- ggggg : function () {
- return leftZeroFill(this.weekYear(), 5);
- },
- GG : function () {
- return leftZeroFill(this.isoWeekYear() % 100, 2);
- },
- GGGG : function () {
- return leftZeroFill(this.isoWeekYear(), 4);
- },
- GGGGG : function () {
- return leftZeroFill(this.isoWeekYear(), 5);
- },
- e : function () {
- return this.weekday();
- },
- E : function () {
- return this.isoWeekday();
- },
- a : function () {
- return this.localeData().meridiem(this.hours(), this.minutes(), true);
- },
- A : function () {
- return this.localeData().meridiem(this.hours(), this.minutes(), false);
- },
- H : function () {
- return this.hours();
- },
- h : function () {
- return this.hours() % 12 || 12;
- },
- m : function () {
- return this.minutes();
- },
- s : function () {
- return this.seconds();
- },
- S : function () {
- return toInt(this.milliseconds() / 100);
- },
- SS : function () {
- return leftZeroFill(toInt(this.milliseconds() / 10), 2);
- },
- SSS : function () {
- return leftZeroFill(this.milliseconds(), 3);
- },
- SSSS : function () {
- return leftZeroFill(this.milliseconds(), 3);
- },
- Z : function () {
- var a = -this.zone(),
- b = '+';
- if (a < 0) {
- a = -a;
- b = '-';
- }
- return b + leftZeroFill(toInt(a / 60), 2) + ':' + leftZeroFill(toInt(a) % 60, 2);
- },
- ZZ : function () {
- var a = -this.zone(),
- b = '+';
- if (a < 0) {
- a = -a;
- b = '-';
- }
- return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2);
- },
- z : function () {
- return this.zoneAbbr();
- },
- zz : function () {
- return this.zoneName();
- },
- X : function () {
- return this.unix();
- },
- Q : function () {
- return this.quarter();
- }
- },
-
- deprecations = {},
-
- lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin'];
-
- // Pick the first defined of two or three arguments. dfl comes from
- // default.
- function dfl(a, b, c) {
- switch (arguments.length) {
- case 2: return a != null ? a : b;
- case 3: return a != null ? a : b != null ? b : c;
- default: throw new Error('Implement me');
- }
- }
-
- function defaultParsingFlags() {
- // We need to deep clone this object, and es5 standard is not very
- // helpful.
- return {
- empty : false,
- unusedTokens : [],
- unusedInput : [],
- overflow : -2,
- charsLeftOver : 0,
- nullInput : false,
- invalidMonth : null,
- invalidFormat : false,
- userInvalidated : false,
- iso: false
- };
- }
-
- function printMsg(msg) {
- if (moment.suppressDeprecationWarnings === false &&
- typeof console !== 'undefined' && console.warn) {
- console.warn("Deprecation warning: " + msg);
- }
- }
-
- function deprecate(msg, fn) {
- var firstTime = true;
- return extend(function () {
- if (firstTime) {
- printMsg(msg);
- firstTime = false;
- }
- return fn.apply(this, arguments);
- }, fn);
- }
-
- function deprecateSimple(name, msg) {
- if (!deprecations[name]) {
- printMsg(msg);
- deprecations[name] = true;
- }
- }
-
- function padToken(func, count) {
- return function (a) {
- return leftZeroFill(func.call(this, a), count);
- };
- }
- function ordinalizeToken(func, period) {
- return function (a) {
- return this.localeData().ordinal(func.call(this, a), period);
- };
- }
-
- while (ordinalizeTokens.length) {
- i = ordinalizeTokens.pop();
- formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i);
- }
- while (paddedTokens.length) {
- i = paddedTokens.pop();
- formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2);
- }
- formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3);
-
-
- /************************************
- Constructors
- ************************************/
-
- function Locale() {
- }
-
- // Moment prototype object
- function Moment(config, skipOverflow) {
- if (skipOverflow !== false) {
- checkOverflow(config);
- }
- copyConfig(this, config);
- this._d = new Date(+config._d);
- }
-
- // Duration Constructor
- function Duration(duration) {
- var normalizedInput = normalizeObjectUnits(duration),
- years = normalizedInput.year || 0,
- quarters = normalizedInput.quarter || 0,
- months = normalizedInput.month || 0,
- weeks = normalizedInput.week || 0,
- days = normalizedInput.day || 0,
- hours = normalizedInput.hour || 0,
- minutes = normalizedInput.minute || 0,
- seconds = normalizedInput.second || 0,
- milliseconds = normalizedInput.millisecond || 0;
-
- // representation for dateAddRemove
- this._milliseconds = +milliseconds +
- seconds * 1e3 + // 1000
- minutes * 6e4 + // 1000 * 60
- hours * 36e5; // 1000 * 60 * 60
- // Because of dateAddRemove treats 24 hours as different from a
- // day when working around DST, we need to store them separately
- this._days = +days +
- weeks * 7;
- // It is impossible translate months into days without knowing
- // which months you are are talking about, so we have to store
- // it separately.
- this._months = +months +
- quarters * 3 +
- years * 12;
-
- this._data = {};
-
- this._locale = moment.localeData();
-
- this._bubble();
- }
-
- /************************************
- Helpers
- ************************************/
-
-
- function extend(a, b) {
- for (var i in b) {
- if (b.hasOwnProperty(i)) {
- a[i] = b[i];
- }
- }
-
- if (b.hasOwnProperty('toString')) {
- a.toString = b.toString;
- }
-
- if (b.hasOwnProperty('valueOf')) {
- a.valueOf = b.valueOf;
- }
-
- return a;
- }
-
- function copyConfig(to, from) {
- var i, prop, val;
-
- if (typeof from._isAMomentObject !== 'undefined') {
- to._isAMomentObject = from._isAMomentObject;
- }
- if (typeof from._i !== 'undefined') {
- to._i = from._i;
- }
- if (typeof from._f !== 'undefined') {
- to._f = from._f;
- }
- if (typeof from._l !== 'undefined') {
- to._l = from._l;
- }
- if (typeof from._strict !== 'undefined') {
- to._strict = from._strict;
- }
- if (typeof from._tzm !== 'undefined') {
- to._tzm = from._tzm;
- }
- if (typeof from._isUTC !== 'undefined') {
- to._isUTC = from._isUTC;
- }
- if (typeof from._offset !== 'undefined') {
- to._offset = from._offset;
- }
- if (typeof from._pf !== 'undefined') {
- to._pf = from._pf;
- }
- if (typeof from._locale !== 'undefined') {
- to._locale = from._locale;
- }
-
- if (momentProperties.length > 0) {
- for (i in momentProperties) {
- prop = momentProperties[i];
- val = from[prop];
- if (typeof val !== 'undefined') {
- to[prop] = val;
- }
- }
- }
-
- return to;
- }
-
- function absRound(number) {
- if (number < 0) {
- return Math.ceil(number);
- } else {
- return Math.floor(number);
- }
- }
-
- // left zero fill a number
- // see http://jsperf.com/left-zero-filling for performance comparison
- function leftZeroFill(number, targetLength, forceSign) {
- var output = '' + Math.abs(number),
- sign = number >= 0;
-
- while (output.length < targetLength) {
- output = '0' + output;
- }
- return (sign ? (forceSign ? '+' : '') : '-') + output;
- }
-
- function positiveMomentsDifference(base, other) {
- var res = {milliseconds: 0, months: 0};
-
- res.months = other.month() - base.month() +
- (other.year() - base.year()) * 12;
- if (base.clone().add(res.months, 'M').isAfter(other)) {
- --res.months;
- }
-
- res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
-
- return res;
- }
-
- function momentsDifference(base, other) {
- var res;
- other = makeAs(other, base);
- if (base.isBefore(other)) {
- res = positiveMomentsDifference(base, other);
- } else {
- res = positiveMomentsDifference(other, base);
- res.milliseconds = -res.milliseconds;
- res.months = -res.months;
- }
-
- return res;
- }
-
- // TODO: remove 'name' arg after deprecation is removed
- function createAdder(direction, name) {
- return function (val, period) {
- var dur, tmp;
- //invert the arguments, but complain about it
- if (period !== null && !isNaN(+period)) {
- deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period).");
- tmp = val; val = period; period = tmp;
- }
-
- val = typeof val === 'string' ? +val : val;
- dur = moment.duration(val, period);
- addOrSubtractDurationFromMoment(this, dur, direction);
- return this;
- };
- }
-
- function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) {
- var milliseconds = duration._milliseconds,
- days = duration._days,
- months = duration._months;
- updateOffset = updateOffset == null ? true : updateOffset;
-
- if (milliseconds) {
- mom._d.setTime(+mom._d + milliseconds * isAdding);
- }
- if (days) {
- rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding);
- }
- if (months) {
- rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding);
- }
- if (updateOffset) {
- moment.updateOffset(mom, days || months);
- }
- }
-
- // check if is an array
- function isArray(input) {
- return Object.prototype.toString.call(input) === '[object Array]';
- }
-
- function isDate(input) {
- return Object.prototype.toString.call(input) === '[object Date]' ||
- input instanceof Date;
- }
-
- // compare two arrays, return the number of differences
- function compareArrays(array1, array2, dontConvert) {
- var len = Math.min(array1.length, array2.length),
- lengthDiff = Math.abs(array1.length - array2.length),
- diffs = 0,
- i;
- for (i = 0; i < len; i++) {
- if ((dontConvert && array1[i] !== array2[i]) ||
- (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
- diffs++;
- }
- }
- return diffs + lengthDiff;
- }
-
- function normalizeUnits(units) {
- if (units) {
- var lowered = units.toLowerCase().replace(/(.)s$/, '$1');
- units = unitAliases[units] || camelFunctions[lowered] || lowered;
- }
- return units;
- }
-
- function normalizeObjectUnits(inputObject) {
- var normalizedInput = {},
- normalizedProp,
- prop;
-
- for (prop in inputObject) {
- if (inputObject.hasOwnProperty(prop)) {
- normalizedProp = normalizeUnits(prop);
- if (normalizedProp) {
- normalizedInput[normalizedProp] = inputObject[prop];
- }
- }
- }
-
- return normalizedInput;
- }
-
- function makeList(field) {
- var count, setter;
-
- if (field.indexOf('week') === 0) {
- count = 7;
- setter = 'day';
- }
- else if (field.indexOf('month') === 0) {
- count = 12;
- setter = 'month';
- }
- else {
- return;
- }
-
- moment[field] = function (format, index) {
- var i, getter,
- method = moment._locale[field],
- results = [];
-
- if (typeof format === 'number') {
- index = format;
- format = undefined;
- }
-
- getter = function (i) {
- var m = moment().utc().set(setter, i);
- return method.call(moment._locale, m, format || '');
- };
-
- if (index != null) {
- return getter(index);
- }
- else {
- for (i = 0; i < count; i++) {
- results.push(getter(i));
- }
- return results;
- }
- };
- }
-
- function toInt(argumentForCoercion) {
- var coercedNumber = +argumentForCoercion,
- value = 0;
-
- if (coercedNumber !== 0 && isFinite(coercedNumber)) {
- if (coercedNumber >= 0) {
- value = Math.floor(coercedNumber);
- } else {
- value = Math.ceil(coercedNumber);
- }
- }
-
- return value;
- }
-
- function daysInMonth(year, month) {
- return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
- }
-
- function weeksInYear(year, dow, doy) {
- return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week;
- }
-
- function daysInYear(year) {
- return isLeapYear(year) ? 366 : 365;
- }
-
- function isLeapYear(year) {
- return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
- }
-
- function checkOverflow(m) {
- var overflow;
- if (m._a && m._pf.overflow === -2) {
- overflow =
- m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH :
- m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE :
- m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR :
- m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE :
- m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND :
- m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND :
- -1;
-
- if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
- overflow = DATE;
- }
-
- m._pf.overflow = overflow;
- }
- }
-
- function isValid(m) {
- if (m._isValid == null) {
- m._isValid = !isNaN(m._d.getTime()) &&
- m._pf.overflow < 0 &&
- !m._pf.empty &&
- !m._pf.invalidMonth &&
- !m._pf.nullInput &&
- !m._pf.invalidFormat &&
- !m._pf.userInvalidated;
-
- if (m._strict) {
- m._isValid = m._isValid &&
- m._pf.charsLeftOver === 0 &&
- m._pf.unusedTokens.length === 0;
- }
- }
- return m._isValid;
- }
-
- function normalizeLocale(key) {
- return key ? key.toLowerCase().replace('_', '-') : key;
- }
-
- // pick the locale from the array
- // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
- // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
- function chooseLocale(names) {
- var i = 0, j, next, locale, split;
-
- while (i < names.length) {
- split = normalizeLocale(names[i]).split('-');
- j = split.length;
- next = normalizeLocale(names[i + 1]);
- next = next ? next.split('-') : null;
- while (j > 0) {
- locale = loadLocale(split.slice(0, j).join('-'));
- if (locale) {
- return locale;
- }
- if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
- //the next array item is better than a shallower substring of this one
- break;
- }
- j--;
- }
- i++;
- }
- return null;
- }
-
- function loadLocale(name) {
- var oldLocale = null;
- if (!locales[name] && hasModule) {
- try {
- oldLocale = moment.locale();
- require('./locale/' + name);
- // because defineLocale currently also sets the global locale, we want to undo that for lazy loaded locales
- moment.locale(oldLocale);
- } catch (e) { }
- }
- return locales[name];
- }
-
- // Return a moment from input, that is local/utc/zone equivalent to model.
- function makeAs(input, model) {
- return model._isUTC ? moment(input).zone(model._offset || 0) :
- moment(input).local();
- }
-
- /************************************
- Locale
- ************************************/
-
-
- extend(Locale.prototype, {
-
- set : function (config) {
- var prop, i;
- for (i in config) {
- prop = config[i];
- if (typeof prop === 'function') {
- this[i] = prop;
- } else {
- this['_' + i] = prop;
- }
- }
- },
-
- _months : '1_2_3_4_May_June_July_August_September_October_November_December'.split('_'),
- months : function (m) {
- return this._months[m.month()];
- },
-
- _monthsShort : '1_2_3_4_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
- monthsShort : function (m) {
- return this._monthsShort[m.month()];
- },
-
- monthsParse : function (monthName) {
- var i, mom, regex;
-
- if (!this._monthsParse) {
- this._monthsParse = [];
- }
-
- for (i = 0; i < 12; i++) {
- // make the regex if we don't have it already
- if (!this._monthsParse[i]) {
- mom = moment.utc([2000, i]);
- regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
- this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
- }
- // test the regex
- if (this._monthsParse[i].test(monthName)) {
- return i;
- }
- }
- },
-
- _weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
- weekdays : function (m) {
- return this._weekdays[m.day()];
- },
-
- _weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
- weekdaysShort : function (m) {
- return this._weekdaysShort[m.day()];
- },
-
- _weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
- weekdaysMin : function (m) {
- return this._weekdaysMin[m.day()];
- },
-
- weekdaysParse : function (weekdayName) {
- var i, mom, regex;
-
- if (!this._weekdaysParse) {
- this._weekdaysParse = [];
- }
-
- for (i = 0; i < 7; i++) {
- // make the regex if we don't have it already
- if (!this._weekdaysParse[i]) {
- mom = moment([2000, 1]).day(i);
- regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
- this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
- }
- // test the regex
- if (this._weekdaysParse[i].test(weekdayName)) {
- return i;
- }
- }
- },
-
- _longDateFormat : {
- LT : 'h:mm A',
- L : 'MM/DD/YYYY',
- LL : 'MMMM D, YYYY',
- LLL : 'MMMM D, YYYY LT',
- LLLL : 'dddd, MMMM D, YYYY LT'
- },
- longDateFormat : function (key) {
- var output = this._longDateFormat[key];
- if (!output && this._longDateFormat[key.toUpperCase()]) {
- output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) {
- return val.slice(1);
- });
- this._longDateFormat[key] = output;
- }
- return output;
- },
-
- isPM : function (input) {
- // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
- // Using charAt should be more compatible.
- return ((input + '').toLowerCase().charAt(0) === 'p');
- },
-
- _meridiemParse : /[ap]\.?m?\.?/i,
- meridiem : function (hours, minutes, isLower) {
- if (hours > 11) {
- return isLower ? 'pm' : 'PM';
- } else {
- return isLower ? 'am' : 'AM';
- }
- },
-
- _calendar : {
- sameDay : '[Today at] LT',
- nextDay : '[Tomorrow at] LT',
- nextWeek : 'dddd [at] LT',
- lastDay : '[Yesterday at] LT',
- lastWeek : '[Last] dddd [at] LT',
- sameElse : 'L'
- },
- calendar : function (key, mom) {
- var output = this._calendar[key];
- return typeof output === 'function' ? output.apply(mom) : output;
- },
-
- _relativeTime : {
- future : 'in %s',
- past : '%s ago',
- s : 'a few 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'
- },
-
- relativeTime : function (number, withoutSuffix, string, isFuture) {
- var output = this._relativeTime[string];
- return (typeof output === 'function') ?
- output(number, withoutSuffix, string, isFuture) :
- output.replace(/%d/i, number);
- },
-
- pastFuture : function (diff, output) {
- var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
- return typeof format === 'function' ? format(output) : format.replace(/%s/i, output);
- },
-
- ordinal : function (number) {
- return this._ordinal.replace('%d', number);
- },
- _ordinal : '%d',
-
- preparse : function (string) {
- return string;
- },
-
- postformat : function (string) {
- return string;
- },
-
- week : function (mom) {
- return weekOfYear(mom, this._week.dow, this._week.doy).week;
- },
-
- _week : {
- dow : 0, // Sunday is the first day of the week.
- doy : 6 // The week that contains Jan 1st is the first week of the year.
- },
-
- _invalidDate: 'Invalid date',
- invalidDate: function () {
- return this._invalidDate;
- }
- });
-
- /************************************
- Formatting
- ************************************/
-
-
- function removeFormattingTokens(input) {
- if (input.match(/\[[\s\S]/)) {
- return input.replace(/^\[|\]$/g, '');
- }
- return input.replace(/\\/g, '');
- }
-
- function makeFormatFunction(format) {
- var array = format.match(formattingTokens), i, length;
-
- for (i = 0, length = array.length; i < length; i++) {
- if (formatTokenFunctions[array[i]]) {
- array[i] = formatTokenFunctions[array[i]];
- } else {
- array[i] = removeFormattingTokens(array[i]);
- }
- }
-
- return function (mom) {
- var output = '';
- for (i = 0; i < length; i++) {
- output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
- }
- return output;
- };
- }
-
- // format date using native date object
- function formatMoment(m, format) {
- if (!m.isValid()) {
- return m.localeData().invalidDate();
- }
-
- format = expandFormat(format, m.localeData());
-
- if (!formatFunctions[format]) {
- formatFunctions[format] = makeFormatFunction(format);
- }
-
- return formatFunctions[format](m);
- }
-
- function expandFormat(format, locale) {
- var i = 5;
-
- function replaceLongDateFormatTokens(input) {
- return locale.longDateFormat(input) || input;
- }
-
- localFormattingTokens.lastIndex = 0;
- while (i >= 0 && localFormattingTokens.test(format)) {
- format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
- localFormattingTokens.lastIndex = 0;
- i -= 1;
- }
-
- return format;
- }
-
-
- /************************************
- Parsing
- ************************************/
-
-
- // get the regex to find the next token
- function getParseRegexForToken(token, config) {
- var a, strict = config._strict;
- switch (token) {
- case 'Q':
- return parseTokenOneDigit;
- case 'DDDD':
- return parseTokenThreeDigits;
- case 'YYYY':
- case 'GGGG':
- case 'gggg':
- return strict ? parseTokenFourDigits : parseTokenOneToFourDigits;
- case 'Y':
- case 'G':
- case 'g':
- return parseTokenSignedNumber;
- case 'YYYYYY':
- case 'YYYYY':
- case 'GGGGG':
- case 'ggggg':
- return strict ? parseTokenSixDigits : parseTokenOneToSixDigits;
- case 'S':
- if (strict) {
- return parseTokenOneDigit;
- }
- /* falls through */
- case 'SS':
- if (strict) {
- return parseTokenTwoDigits;
- }
- /* falls through */
- case 'SSS':
- if (strict) {
- return parseTokenThreeDigits;
- }
- /* falls through */
- case 'DDD':
- return parseTokenOneToThreeDigits;
- case 'MMM':
- case 'MMMM':
- case 'dd':
- case 'ddd':
- case 'dddd':
- return parseTokenWord;
- case 'a':
- case 'A':
- return config._locale._meridiemParse;
- case 'X':
- return parseTokenTimestampMs;
- case 'Z':
- case 'ZZ':
- return parseTokenTimezone;
- case 'T':
- return parseTokenT;
- case 'SSSS':
- return parseTokenDigits;
- case 'MM':
- case 'DD':
- case 'YY':
- case 'GG':
- case 'gg':
- case 'HH':
- case 'hh':
- case 'mm':
- case 'ss':
- case 'ww':
- case 'WW':
- return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits;
- case 'M':
- case 'D':
- case 'd':
- case 'H':
- case 'h':
- case 'm':
- case 's':
- case 'w':
- case 'W':
- case 'e':
- case 'E':
- return parseTokenOneOrTwoDigits;
- case 'Do':
- return parseTokenOrdinal;
- default :
- a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), 'i'));
- return a;
- }
- }
-
- function timezoneMinutesFromString(string) {
- string = string || '';
- var possibleTzMatches = (string.match(parseTokenTimezone) || []),
- tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [],
- parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0],
- minutes = +(parts[1] * 60) + toInt(parts[2]);
-
- return parts[0] === '+' ? -minutes : minutes;
- }
-
- // function to convert string input to date
- function addTimeToArrayFromToken(token, input, config) {
- var a, datePartArray = config._a;
-
- switch (token) {
- // QUARTER
- case 'Q':
- if (input != null) {
- datePartArray[MONTH] = (toInt(input) - 1) * 3;
- }
- break;
- // MONTH
- case 'M' : // fall through to MM
- case 'MM' :
- if (input != null) {
- datePartArray[MONTH] = toInt(input) - 1;
- }
- break;
- case 'MMM' : // fall through to MMMM
- case 'MMMM' :
- a = config._locale.monthsParse(input);
- // if we didn't find a month name, mark the date as invalid.
- if (a != null) {
- datePartArray[MONTH] = a;
- } else {
- config._pf.invalidMonth = input;
- }
- break;
- // DAY OF MONTH
- case 'D' : // fall through to DD
- case 'DD' :
- if (input != null) {
- datePartArray[DATE] = toInt(input);
- }
- break;
- case 'Do' :
- if (input != null) {
- datePartArray[DATE] = toInt(parseInt(input, 10));
- }
- break;
- // DAY OF YEAR
- case 'DDD' : // fall through to DDDD
- case 'DDDD' :
- if (input != null) {
- config._dayOfYear = toInt(input);
- }
-
- break;
- // YEAR
- case 'YY' :
- datePartArray[YEAR] = moment.parseTwoDigitYear(input);
- break;
- case 'YYYY' :
- case 'YYYYY' :
- case 'YYYYYY' :
- datePartArray[YEAR] = toInt(input);
- break;
- // AM / PM
- case 'a' : // fall through to A
- case 'A' :
- config._isPm = config._locale.isPM(input);
- break;
- // 24 HOUR
- case 'H' : // fall through to hh
- case 'HH' : // fall through to hh
- case 'h' : // fall through to hh
- case 'hh' :
- datePartArray[HOUR] = toInt(input);
- break;
- // MINUTE
- case 'm' : // fall through to mm
- case 'mm' :
- datePartArray[MINUTE] = toInt(input);
- break;
- // SECOND
- case 's' : // fall through to ss
- case 'ss' :
- datePartArray[SECOND] = toInt(input);
- break;
- // MILLISECOND
- case 'S' :
- case 'SS' :
- case 'SSS' :
- case 'SSSS' :
- datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000);
- break;
- // UNIX TIMESTAMP WITH MS
- case 'X':
- config._d = new Date(parseFloat(input) * 1000);
- break;
- // TIMEZONE
- case 'Z' : // fall through to ZZ
- case 'ZZ' :
- config._useUTC = true;
- config._tzm = timezoneMinutesFromString(input);
- break;
- // WEEKDAY - human
- case 'dd':
- case 'ddd':
- case 'dddd':
- a = config._locale.weekdaysParse(input);
- // if we didn't get a weekday name, mark the date as invalid
- if (a != null) {
- config._w = config._w || {};
- config._w['d'] = a;
- } else {
- config._pf.invalidWeekday = input;
- }
- break;
- // WEEK, WEEK DAY - numeric
- case 'w':
- case 'ww':
- case 'W':
- case 'WW':
- case 'd':
- case 'e':
- case 'E':
- token = token.substr(0, 1);
- /* falls through */
- case 'gggg':
- case 'GGGG':
- case 'GGGGG':
- token = token.substr(0, 2);
- if (input) {
- config._w = config._w || {};
- config._w[token] = toInt(input);
- }
- break;
- case 'gg':
- case 'GG':
- config._w = config._w || {};
- config._w[token] = moment.parseTwoDigitYear(input);
- }
- }
-
- function dayOfYearFromWeekInfo(config) {
- var w, weekYear, week, weekday, dow, doy, temp;
-
- w = config._w;
- if (w.GG != null || w.W != null || w.E != null) {
- dow = 1;
- doy = 4;
-
- // TODO: We need to take the current isoWeekYear, but that depends on
- // how we interpret now (local, utc, fixed offset). So create
- // a now version of current config (take local/utc/offset flags, and
- // create now).
- weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year);
- week = dfl(w.W, 1);
- weekday = dfl(w.E, 1);
- } else {
- dow = config._locale._week.dow;
- doy = config._locale._week.doy;
-
- weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year);
- week = dfl(w.w, 1);
-
- if (w.d != null) {
- // weekday -- low day numbers are considered next week
- weekday = w.d;
- if (weekday < dow) {
- ++week;
- }
- } else if (w.e != null) {
- // local weekday -- counting starts from begining of week
- weekday = w.e + dow;
- } else {
- // default to begining of week
- weekday = dow;
- }
- }
- temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow);
-
- config._a[YEAR] = temp.year;
- config._dayOfYear = temp.dayOfYear;
- }
-
- // convert an array to a date.
- // the array should mirror the parameters below
- // note: all values past the year are optional and will default to the lowest possible value.
- // [year, month, day , hour, minute, second, millisecond]
- function dateFromConfig(config) {
- var i, date, input = [], currentDate, yearToUse;
-
- if (config._d) {
- return;
- }
-
- currentDate = currentDateArray(config);
-
- //compute day of the year from weeks and weekdays
- if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
- dayOfYearFromWeekInfo(config);
- }
-
- //if the day of the year is set, figure out what it is
- if (config._dayOfYear) {
- yearToUse = dfl(config._a[YEAR], currentDate[YEAR]);
-
- if (config._dayOfYear > daysInYear(yearToUse)) {
- config._pf._overflowDayOfYear = true;
- }
-
- date = makeUTCDate(yearToUse, 0, config._dayOfYear);
- config._a[MONTH] = date.getUTCMonth();
- config._a[DATE] = date.getUTCDate();
- }
-
- // Default to current date.
- // * if no year, month, day of month are given, default to today
- // * if day of month is given, default month and year
- // * if month is given, default only year
- // * if year is given, don't default anything
- for (i = 0; i < 3 && config._a[i] == null; ++i) {
- config._a[i] = input[i] = currentDate[i];
- }
-
- // Zero out whatever was not defaulted, including time
- for (; i < 7; i++) {
- config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
- }
-
- config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input);
- // Apply timezone offset from input. The actual zone can be changed
- // with parseZone.
- if (config._tzm != null) {
- config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm);
- }
- }
-
- function dateFromObject(config) {
- var normalizedInput;
-
- if (config._d) {
- return;
- }
-
- normalizedInput = normalizeObjectUnits(config._i);
- config._a = [
- normalizedInput.year,
- normalizedInput.month,
- normalizedInput.day,
- normalizedInput.hour,
- normalizedInput.minute,
- normalizedInput.second,
- normalizedInput.millisecond
- ];
-
- dateFromConfig(config);
- }
-
- function currentDateArray(config) {
- var now = new Date();
- if (config._useUTC) {
- return [
- now.getUTCFullYear(),
- now.getUTCMonth(),
- now.getUTCDate()
- ];
- } else {
- return [now.getFullYear(), now.getMonth(), now.getDate()];
- }
- }
-
- // date from string and format string
- function makeDateFromStringAndFormat(config) {
- if (config._f === moment.ISO_8601) {
- parseISO(config);
- return;
- }
-
- config._a = [];
- config._pf.empty = true;
-
- // This array is used to make a Date, either with `new Date` or `Date.UTC`
- var string = '' + config._i,
- i, parsedInput, tokens, token, skipped,
- stringLength = string.length,
- totalParsedInputLength = 0;
-
- tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
-
- for (i = 0; i < tokens.length; i++) {
- token = tokens[i];
- parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
- if (parsedInput) {
- skipped = string.substr(0, string.indexOf(parsedInput));
- if (skipped.length > 0) {
- config._pf.unusedInput.push(skipped);
- }
- string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
- totalParsedInputLength += parsedInput.length;
- }
- // don't parse if it's not a known token
- if (formatTokenFunctions[token]) {
- if (parsedInput) {
- config._pf.empty = false;
- }
- else {
- config._pf.unusedTokens.push(token);
- }
- addTimeToArrayFromToken(token, parsedInput, config);
- }
- else if (config._strict && !parsedInput) {
- config._pf.unusedTokens.push(token);
- }
- }
-
- // add remaining unparsed input length to the string
- config._pf.charsLeftOver = stringLength - totalParsedInputLength;
- if (string.length > 0) {
- config._pf.unusedInput.push(string);
- }
-
- // handle am pm
- if (config._isPm && config._a[HOUR] < 12) {
- config._a[HOUR] += 12;
- }
- // if is 12 am, change hours to 0
- if (config._isPm === false && config._a[HOUR] === 12) {
- config._a[HOUR] = 0;
- }
-
- dateFromConfig(config);
- checkOverflow(config);
- }
-
- function unescapeFormat(s) {
- return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
- return p1 || p2 || p3 || p4;
- });
- }
-
- // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
- function regexpEscape(s) {
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
- }
-
- // date from string and array of format strings
- function makeDateFromStringAndArray(config) {
- var tempConfig,
- bestMoment,
-
- scoreToBeat,
- i,
- currentScore;
-
- if (config._f.length === 0) {
- config._pf.invalidFormat = true;
- config._d = new Date(NaN);
- return;
- }
-
- for (i = 0; i < config._f.length; i++) {
- currentScore = 0;
- tempConfig = copyConfig({}, config);
- tempConfig._pf = defaultParsingFlags();
- tempConfig._f = config._f[i];
- makeDateFromStringAndFormat(tempConfig);
-
- if (!isValid(tempConfig)) {
- continue;
- }
-
- // if there is any input that was not parsed add a penalty for that format
- currentScore += tempConfig._pf.charsLeftOver;
-
- //or tokens
- currentScore += tempConfig._pf.unusedTokens.length * 10;
-
- tempConfig._pf.score = currentScore;
-
- if (scoreToBeat == null || currentScore < scoreToBeat) {
- scoreToBeat = currentScore;
- bestMoment = tempConfig;
- }
- }
-
- extend(config, bestMoment || tempConfig);
- }
-
- // date from iso format
- function parseISO(config) {
- var i, l,
- string = config._i,
- match = isoRegex.exec(string);
-
- if (match) {
- config._pf.iso = true;
- for (i = 0, l = isoDates.length; i < l; i++) {
- if (isoDates[i][1].exec(string)) {
- // match[5] should be "T" or undefined
- config._f = isoDates[i][0] + (match[6] || ' ');
- break;
- }
- }
- for (i = 0, l = isoTimes.length; i < l; i++) {
- if (isoTimes[i][1].exec(string)) {
- config._f += isoTimes[i][0];
- break;
- }
- }
- if (string.match(parseTokenTimezone)) {
- config._f += 'Z';
- }
- makeDateFromStringAndFormat(config);
- } else {
- config._isValid = false;
- }
- }
-
- // date from iso format or fallback
- function makeDateFromString(config) {
- parseISO(config);
- if (config._isValid === false) {
- delete config._isValid;
- moment.createFromInputFallback(config);
- }
- }
-
- function makeDateFromInput(config) {
- var input = config._i, matched;
- if (input === undefined) {
- config._d = new Date();
- } else if (isDate(input)) {
- config._d = new Date(+input);
- } else if ((matched = aspNetJsonRegex.exec(input)) !== null) {
- config._d = new Date(+matched[1]);
- } else if (typeof input === 'string') {
- makeDateFromString(config);
- } else if (isArray(input)) {
- config._a = input.slice(0);
- dateFromConfig(config);
- } else if (typeof(input) === 'object') {
- dateFromObject(config);
- } else if (typeof(input) === 'number') {
- // from milliseconds
- config._d = new Date(input);
- } else {
- moment.createFromInputFallback(config);
- }
- }
-
- function makeDate(y, m, d, h, M, s, ms) {
- //can't just apply() to create a date:
- //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
- var date = new Date(y, m, d, h, M, s, ms);
-
- //the date constructor doesn't accept years < 1970
- if (y < 1970) {
- date.setFullYear(y);
- }
- return date;
- }
-
- function makeUTCDate(y) {
- var date = new Date(Date.UTC.apply(null, arguments));
- if (y < 1970) {
- date.setUTCFullYear(y);
- }
- return date;
- }
-
- function parseWeekday(input, locale) {
- if (typeof input === 'string') {
- if (!isNaN(input)) {
- input = parseInt(input, 10);
- }
- else {
- input = locale.weekdaysParse(input);
- if (typeof input !== 'number') {
- return null;
- }
- }
- }
- return input;
- }
-
- /************************************
- Relative Time
- ************************************/
-
-
- // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
- function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
- return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
- }
-
- function relativeTime(posNegDuration, withoutSuffix, locale) {
- var duration = moment.duration(posNegDuration).abs(),
- seconds = round(duration.as('s')),
- minutes = round(duration.as('m')),
- hours = round(duration.as('h')),
- days = round(duration.as('d')),
- months = round(duration.as('M')),
- years = round(duration.as('y')),
-
- args = seconds < relativeTimeThresholds.s && ['s', seconds] ||
- minutes === 1 && ['m'] ||
- minutes < relativeTimeThresholds.m && ['mm', minutes] ||
- hours === 1 && ['h'] ||
- hours < relativeTimeThresholds.h && ['hh', hours] ||
- days === 1 && ['d'] ||
- days < relativeTimeThresholds.d && ['dd', days] ||
- months === 1 && ['M'] ||
- months < relativeTimeThresholds.M && ['MM', months] ||
- years === 1 && ['y'] || ['yy', years];
-
- args[2] = withoutSuffix;
- args[3] = +posNegDuration > 0;
- args[4] = locale;
- return substituteTimeAgo.apply({}, args);
- }
-
-
- /************************************
- Week of Year
- ************************************/
-
-
- // firstDayOfWeek 0 = sun, 6 = sat
- // the day of the week that starts the week
- // (usually sunday or monday)
- // firstDayOfWeekOfYear 0 = sun, 6 = sat
- // the first week is the week that contains the first
- // of this day of the week
- // (eg. ISO weeks use thursday (4))
- function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) {
- var end = firstDayOfWeekOfYear - firstDayOfWeek,
- daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(),
- adjustedMoment;
-
-
- if (daysToDayOfWeek > end) {
- daysToDayOfWeek -= 7;
- }
-
- if (daysToDayOfWeek < end - 7) {
- daysToDayOfWeek += 7;
- }
-
- adjustedMoment = moment(mom).add(daysToDayOfWeek, 'd');
- return {
- week: Math.ceil(adjustedMoment.dayOfYear() / 7),
- year: adjustedMoment.year()
- };
- }
-
- //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
- function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) {
- var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear;
-
- d = d === 0 ? 7 : d;
- weekday = weekday != null ? weekday : firstDayOfWeek;
- daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0);
- dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1;
-
- return {
- year: dayOfYear > 0 ? year : year - 1,
- dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear
- };
- }
-
- /************************************
- Top Level Functions
- ************************************/
-
- function makeMoment(config) {
- var input = config._i,
- format = config._f;
-
- config._locale = config._locale || moment.localeData(config._l);
-
- if (input === null || (format === undefined && input === '')) {
- return moment.invalid({nullInput: true});
- }
-
- if (typeof input === 'string') {
- config._i = input = config._locale.preparse(input);
- }
-
- if (moment.isMoment(input)) {
- return new Moment(input, true);
- } else if (format) {
- if (isArray(format)) {
- makeDateFromStringAndArray(config);
- } else {
- makeDateFromStringAndFormat(config);
- }
- } else {
- makeDateFromInput(config);
- }
-
- return new Moment(config);
- }
-
- moment = function (input, format, locale, strict) {
- var c;
-
- if (typeof(locale) === "boolean") {
- strict = locale;
- locale = undefined;
- }
- // object construction must be done this way.
- // https://github.com/moment/moment/issues/1423
- c = {};
- c._isAMomentObject = true;
- c._i = input;
- c._f = format;
- c._l = locale;
- c._strict = strict;
- c._isUTC = false;
- c._pf = defaultParsingFlags();
-
- return makeMoment(c);
- };
-
- moment.suppressDeprecationWarnings = false;
-
- moment.createFromInputFallback = deprecate(
- 'moment construction falls back to js Date. This is ' +
- 'discouraged and will be removed in upcoming major ' +
- 'release. Please refer to ' +
- 'https://github.com/moment/moment/issues/1407 for more info.',
- function (config) {
- config._d = new Date(config._i);
- }
- );
-
- // Pick a moment m from moments so that m[fn](other) is true for all
- // other. This relies on the function fn to be transitive.
- //
- // moments should either be an array of moment objects or an array, whose
- // first element is an array of moment objects.
- function pickBy(fn, moments) {
- var res, i;
- if (moments.length === 1 && isArray(moments[0])) {
- moments = moments[0];
- }
- if (!moments.length) {
- return moment();
- }
- res = moments[0];
- for (i = 1; i < moments.length; ++i) {
- if (moments[i][fn](res)) {
- res = moments[i];
- }
- }
- return res;
- }
-
- moment.min = function () {
- var args = [].slice.call(arguments, 0);
-
- return pickBy('isBefore', args);
- };
-
- moment.max = function () {
- var args = [].slice.call(arguments, 0);
-
- return pickBy('isAfter', args);
- };
-
- // creating with utc
- moment.utc = function (input, format, locale, strict) {
- var c;
-
- if (typeof(locale) === "boolean") {
- strict = locale;
- locale = undefined;
- }
- // object construction must be done this way.
- // https://github.com/moment/moment/issues/1423
- c = {};
- c._isAMomentObject = true;
- c._useUTC = true;
- c._isUTC = true;
- c._l = locale;
- c._i = input;
- c._f = format;
- c._strict = strict;
- c._pf = defaultParsingFlags();
-
- return makeMoment(c).utc();
- };
-
- // creating with unix timestamp (in seconds)
- moment.unix = function (input) {
- return moment(input * 1000);
- };
-
- // duration
- moment.duration = function (input, key) {
- var duration = input,
- // matching against regexp is expensive, do it on demand
- match = null,
- sign,
- ret,
- parseIso,
- diffRes;
-
- if (moment.isDuration(input)) {
- duration = {
- ms: input._milliseconds,
- d: input._days,
- M: input._months
- };
- } else if (typeof input === 'number') {
- duration = {};
- if (key) {
- duration[key] = input;
- } else {
- duration.milliseconds = input;
- }
- } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) {
- sign = (match[1] === '-') ? -1 : 1;
- duration = {
- y: 0,
- d: toInt(match[DATE]) * sign,
- h: toInt(match[HOUR]) * sign,
- m: toInt(match[MINUTE]) * sign,
- s: toInt(match[SECOND]) * sign,
- ms: toInt(match[MILLISECOND]) * sign
- };
- } else if (!!(match = isoDurationRegex.exec(input))) {
- sign = (match[1] === '-') ? -1 : 1;
- parseIso = function (inp) {
- // We'd normally use ~~inp for this, but unfortunately it also
- // converts floats to ints.
- // inp may be undefined, so careful calling replace on it.
- var res = inp && parseFloat(inp.replace(',', '.'));
- // apply sign while we're at it
- return (isNaN(res) ? 0 : res) * sign;
- };
- duration = {
- y: parseIso(match[2]),
- M: parseIso(match[3]),
- d: parseIso(match[4]),
- h: parseIso(match[5]),
- m: parseIso(match[6]),
- s: parseIso(match[7]),
- w: parseIso(match[8])
- };
- } else if (typeof duration === 'object' &&
- ('from' in duration || 'to' in duration)) {
- diffRes = momentsDifference(moment(duration.from), moment(duration.to));
-
- duration = {};
- duration.ms = diffRes.milliseconds;
- duration.M = diffRes.months;
- }
-
- ret = new Duration(duration);
-
- if (moment.isDuration(input) && input.hasOwnProperty('_locale')) {
- ret._locale = input._locale;
- }
-
- return ret;
- };
-
- // version number
- moment.version = VERSION;
-
- // default format
- moment.defaultFormat = isoFormat;
-
- // constant that refers to the ISO standard
- moment.ISO_8601 = function () {};
-
- // Plugins that add properties should also add the key here (null value),
- // so we can properly clone ourselves.
- moment.momentProperties = momentProperties;
-
- // This function will be called whenever a moment is mutated.
- // It is intended to keep the offset in sync with the timezone.
- moment.updateOffset = function () {};
-
- // This function allows you to set a threshold for relative time strings
- moment.relativeTimeThreshold = function (threshold, limit) {
- if (relativeTimeThresholds[threshold] === undefined) {
- return false;
- }
- if (limit === undefined) {
- return relativeTimeThresholds[threshold];
- }
- relativeTimeThresholds[threshold] = limit;
- return true;
- };
-
- moment.lang = deprecate(
- "moment.lang is deprecated. Use moment.locale instead.",
- function (key, value) {
- return moment.locale(key, value);
- }
- );
-
- // This function will load locale and then set the global locale. If
- // no arguments are passed in, it will simply return the current global
- // locale key.
- moment.locale = function (key, values) {
- var data;
- if (key) {
- if (typeof(values) !== "undefined") {
- data = moment.defineLocale(key, values);
- }
- else {
- data = moment.localeData(key);
- }
-
- if (data) {
- moment.duration._locale = moment._locale = data;
- }
- }
-
- return moment._locale._abbr;
- };
-
- moment.defineLocale = function (name, values) {
- if (values !== null) {
- values.abbr = name;
- if (!locales[name]) {
- locales[name] = new Locale();
- }
- locales[name].set(values);
-
- // backwards compat for now: also set the locale
- moment.locale(name);
-
- return locales[name];
- } else {
- // useful for testing
- delete locales[name];
- return null;
- }
- };
-
- moment.langData = deprecate(
- "moment.langData is deprecated. Use moment.localeData instead.",
- function (key) {
- return moment.localeData(key);
- }
- );
-
- // returns locale data
- moment.localeData = function (key) {
- var locale;
-
- if (key && key._locale && key._locale._abbr) {
- key = key._locale._abbr;
- }
-
- if (!key) {
- return moment._locale;
- }
-
- if (!isArray(key)) {
- //short-circuit everything else
- locale = loadLocale(key);
- if (locale) {
- return locale;
- }
- key = [key];
- }
-
- return chooseLocale(key);
- };
-
- // compare moment object
- moment.isMoment = function (obj) {
- return obj instanceof Moment ||
- (obj != null && obj.hasOwnProperty('_isAMomentObject'));
- };
-
- // for typechecking Duration objects
- moment.isDuration = function (obj) {
- return obj instanceof Duration;
- };
-
- for (i = lists.length - 1; i >= 0; --i) {
- makeList(lists[i]);
- }
-
- moment.normalizeUnits = function (units) {
- return normalizeUnits(units);
- };
-
- moment.invalid = function (flags) {
- var m = moment.utc(NaN);
- if (flags != null) {
- extend(m._pf, flags);
- }
- else {
- m._pf.userInvalidated = true;
- }
-
- return m;
- };
-
- moment.parseZone = function () {
- return moment.apply(null, arguments).parseZone();
- };
-
- moment.parseTwoDigitYear = function (input) {
- return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
- };
-
- /************************************
- Moment Prototype
- ************************************/
-
-
- extend(moment.fn = Moment.prototype, {
-
- clone : function () {
- return moment(this);
- },
-
- valueOf : function () {
- return +this._d + ((this._offset || 0) * 60000);
- },
-
- unix : function () {
- return Math.floor(+this / 1000);
- },
-
- toString : function () {
- return this.clone().locale('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
- },
-
- toDate : function () {
- return this._offset ? new Date(+this) : this._d;
- },
-
- toISOString : function () {
- var m = moment(this).utc();
- if (0 < m.year() && m.year() <= 9999) {
- return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
- } else {
- return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
- }
- },
-
- toArray : function () {
- var m = this;
- return [
- m.year(),
- m.month(),
- m.date(),
- m.hours(),
- m.minutes(),
- m.seconds(),
- m.milliseconds()
- ];
- },
-
- isValid : function () {
- return isValid(this);
- },
-
- isDSTShifted : function () {
- if (this._a) {
- return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0;
- }
-
- return false;
- },
-
- parsingFlags : function () {
- return extend({}, this._pf);
- },
-
- invalidAt: function () {
- return this._pf.overflow;
- },
-
- utc : function (keepLocalTime) {
- return this.zone(0, keepLocalTime);
- },
-
- local : function (keepLocalTime) {
- if (this._isUTC) {
- this.zone(0, keepLocalTime);
- this._isUTC = false;
-
- if (keepLocalTime) {
- this.add(this._d.getTimezoneOffset(), 'm');
- }
- }
- return this;
- },
-
- format : function (inputString) {
- var output = formatMoment(this, inputString || moment.defaultFormat);
- return this.localeData().postformat(output);
- },
-
- add : createAdder(1, 'add'),
-
- subtract : createAdder(-1, 'subtract'),
-
- diff : function (input, units, asFloat) {
- var that = makeAs(input, this),
- zoneDiff = (this.zone() - that.zone()) * 6e4,
- diff, output;
-
- units = normalizeUnits(units);
-
- if (units === 'year' || units === 'month') {
- // average number of days in the months in the given dates
- diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2
- // difference in months
- output = ((this.year() - that.year()) * 12) + (this.month() - that.month());
- // adjust by taking difference in days, average number of days
- // and dst in the given months.
- output += ((this - moment(this).startOf('month')) -
- (that - moment(that).startOf('month'))) / diff;
- // same as above but with zones, to negate all dst
- output -= ((this.zone() - moment(this).startOf('month').zone()) -
- (that.zone() - moment(that).startOf('month').zone())) * 6e4 / diff;
- if (units === 'year') {
- output = output / 12;
- }
- } else {
- diff = (this - that);
- output = units === 'second' ? diff / 1e3 : // 1000
- units === 'minute' ? diff / 6e4 : // 1000 * 60
- units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60
- units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
- units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
- diff;
- }
- return asFloat ? output : absRound(output);
- },
-
- from : function (time, withoutSuffix) {
- return moment.duration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
- },
-
- fromNow : function (withoutSuffix) {
- return this.from(moment(), withoutSuffix);
- },
-
- calendar : function (time) {
- // We want to compare the start of today, vs this.
- // Getting start-of-today depends on whether we're zone'd or not.
- var now = time || moment(),
- sod = makeAs(now, this).startOf('day'),
- diff = this.diff(sod, 'days', true),
- format = diff < -6 ? 'sameElse' :
- diff < -1 ? 'lastWeek' :
- diff < 0 ? 'lastDay' :
- diff < 1 ? 'sameDay' :
- diff < 2 ? 'nextDay' :
- diff < 7 ? 'nextWeek' : 'sameElse';
- return this.format(this.localeData().calendar(format, this));
- },
-
- isLeapYear : function () {
- return isLeapYear(this.year());
- },
-
- isDST : function () {
- return (this.zone() < this.clone().month(0).zone() ||
- this.zone() < this.clone().month(5).zone());
- },
-
- day : function (input) {
- var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
- if (input != null) {
- input = parseWeekday(input, this.localeData());
- return this.add(input - day, 'd');
- } else {
- return day;
- }
- },
-
- month : makeAccessor('Month', true),
-
- startOf : function (units) {
- units = normalizeUnits(units);
- // the following switch intentionally omits break keywords
- // to utilize falling through the cases.
- switch (units) {
- case 'year':
- this.month(0);
- /* falls through */
- case 'quarter':
- case 'month':
- this.date(1);
- /* falls through */
- case 'week':
- case 'isoWeek':
- case 'day':
- this.hours(0);
- /* falls through */
- case 'hour':
- this.minutes(0);
- /* falls through */
- case 'minute':
- this.seconds(0);
- /* falls through */
- case 'second':
- this.milliseconds(0);
- /* falls through */
- }
-
- // weeks are a special case
- if (units === 'week') {
- this.weekday(0);
- } else if (units === 'isoWeek') {
- this.isoWeekday(1);
- }
-
- // quarters are also special
- if (units === 'quarter') {
- this.month(Math.floor(this.month() / 3) * 3);
- }
-
- return this;
- },
-
- endOf: function (units) {
- units = normalizeUnits(units);
- return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
- },
-
- isAfter: function (input, units) {
- units = typeof units !== 'undefined' ? units : 'millisecond';
- return +this.clone().startOf(units) > +moment(input).startOf(units);
- },
-
- isBefore: function (input, units) {
- units = typeof units !== 'undefined' ? units : 'millisecond';
- return +this.clone().startOf(units) < +moment(input).startOf(units);
- },
-
- isSame: function (input, units) {
- units = units || 'ms';
- return +this.clone().startOf(units) === +makeAs(input, this).startOf(units);
- },
-
- min: deprecate(
- 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
- function (other) {
- other = moment.apply(null, arguments);
- return other < this ? this : other;
- }
- ),
-
- max: deprecate(
- 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
- function (other) {
- other = moment.apply(null, arguments);
- return other > this ? this : other;
- }
- ),
-
- // keepLocalTime = true means only change the timezone, without
- // affecting the local hour. So 5:31:26 +0300 --[zone(2, true)]-->
- // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist int zone
- // +0200, so we adjust the time as needed, to be valid.
- //
- // Keeping the time actually adds/subtracts (one hour)
- // from the actual represented time. That is why we call updateOffset
- // a second time. In case it wants us to change the offset again
- // _changeInProgress == true case, then we have to adjust, because
- // there is no such time in the given timezone.
- zone : function (input, keepLocalTime) {
- var offset = this._offset || 0,
- localAdjust;
- if (input != null) {
- if (typeof input === 'string') {
- input = timezoneMinutesFromString(input);
- }
- if (Math.abs(input) < 16) {
- input = input * 60;
- }
- if (!this._isUTC && keepLocalTime) {
- localAdjust = this._d.getTimezoneOffset();
- }
- this._offset = input;
- this._isUTC = true;
- if (localAdjust != null) {
- this.subtract(localAdjust, 'm');
- }
- if (offset !== input) {
- if (!keepLocalTime || this._changeInProgress) {
- addOrSubtractDurationFromMoment(this,
- moment.duration(offset - input, 'm'), 1, false);
- } else if (!this._changeInProgress) {
- this._changeInProgress = true;
- moment.updateOffset(this, true);
- this._changeInProgress = null;
- }
- }
- } else {
- return this._isUTC ? offset : this._d.getTimezoneOffset();
- }
- return this;
- },
-
- zoneAbbr : function () {
- return this._isUTC ? 'UTC' : '';
- },
-
- zoneName : function () {
- return this._isUTC ? 'Coordinated Universal Time' : '';
- },
-
- parseZone : function () {
- if (this._tzm) {
- this.zone(this._tzm);
- } else if (typeof this._i === 'string') {
- this.zone(this._i);
- }
- return this;
- },
-
- hasAlignedHourOffset : function (input) {
- if (!input) {
- input = 0;
- }
- else {
- input = moment(input).zone();
- }
-
- return (this.zone() - input) % 60 === 0;
- },
-
- daysInMonth : function () {
- return daysInMonth(this.year(), this.month());
- },
-
- dayOfYear : function (input) {
- var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1;
- return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
- },
-
- quarter : function (input) {
- return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
- },
-
- weekYear : function (input) {
- var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year;
- return input == null ? year : this.add((input - year), 'y');
- },
-
- isoWeekYear : function (input) {
- var year = weekOfYear(this, 1, 4).year;
- return input == null ? year : this.add((input - year), 'y');
- },
-
- week : function (input) {
- var week = this.localeData().week(this);
- return input == null ? week : this.add((input - week) * 7, 'd');
- },
-
- isoWeek : function (input) {
- var week = weekOfYear(this, 1, 4).week;
- return input == null ? week : this.add((input - week) * 7, 'd');
- },
-
- weekday : function (input) {
- var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
- return input == null ? weekday : this.add(input - weekday, 'd');
- },
-
- isoWeekday : function (input) {
- // behaves the same as moment#day except
- // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
- // as a setter, sunday should belong to the previous week.
- return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
- },
-
- isoWeeksInYear : function () {
- return weeksInYear(this.year(), 1, 4);
- },
-
- weeksInYear : function () {
- var weekInfo = this.localeData()._week;
- return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
- },
-
- get : function (units) {
- units = normalizeUnits(units);
- return this[units]();
- },
-
- set : function (units, value) {
- units = normalizeUnits(units);
- if (typeof this[units] === 'function') {
- this[units](value);
- }
- return this;
- },
-
- // If passed a locale key, it will set the locale for this
- // instance. Otherwise, it will return the locale configuration
- // variables for this instance.
- locale : function (key) {
- if (key === undefined) {
- return this._locale._abbr;
- } else {
- this._locale = moment.localeData(key);
- return this;
- }
- },
-
- lang : deprecate(
- "moment().lang() is deprecated. Use moment().localeData() instead.",
- function (key) {
- if (key === undefined) {
- return this.localeData();
- } else {
- this._locale = moment.localeData(key);
- return this;
- }
- }
- ),
-
- localeData : function () {
- return this._locale;
- }
- });
-
- function rawMonthSetter(mom, value) {
- var dayOfMonth;
-
- // TODO: Move this out of here!
- if (typeof value === 'string') {
- value = mom.localeData().monthsParse(value);
- // TODO: Another silent failure?
- if (typeof value !== 'number') {
- return mom;
- }
- }
-
- dayOfMonth = Math.min(mom.date(),
- daysInMonth(mom.year(), value));
- mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
- return mom;
- }
-
- function rawGetter(mom, unit) {
- return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]();
- }
-
- function rawSetter(mom, unit, value) {
- if (unit === 'Month') {
- return rawMonthSetter(mom, value);
- } else {
- return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
- }
- }
-
- function makeAccessor(unit, keepTime) {
- return function (value) {
- if (value != null) {
- rawSetter(this, unit, value);
- moment.updateOffset(this, keepTime);
- return this;
- } else {
- return rawGetter(this, unit);
- }
- };
- }
-
- moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false);
- moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false);
- moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false);
- // Setting the hour should keep the time, because the user explicitly
- // specified which hour he wants. So trying to maintain the same hour (in
- // a new timezone) makes sense. Adding/subtracting hours does not follow
- // this rule.
- moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true);
- // moment.fn.month is defined separately
- moment.fn.date = makeAccessor('Date', true);
- moment.fn.dates = deprecate('dates accessor is deprecated. Use date instead.', makeAccessor('Date', true));
- moment.fn.year = makeAccessor('FullYear', true);
- moment.fn.years = deprecate('years accessor is deprecated. Use year instead.', makeAccessor('FullYear', true));
-
- // add plural methods
- moment.fn.days = moment.fn.day;
- moment.fn.months = moment.fn.month;
- moment.fn.weeks = moment.fn.week;
- moment.fn.isoWeeks = moment.fn.isoWeek;
- moment.fn.quarters = moment.fn.quarter;
-
- // add aliased format methods
- moment.fn.toJSON = moment.fn.toISOString;
-
- /************************************
- Duration Prototype
- ************************************/
-
-
- function daysToYears (days) {
- // 400 years have 146097 days (taking into account leap year rules)
- return days * 400 / 146097;
- }
-
- function yearsToDays (years) {
- // years * 365 + absRound(years / 4) -
- // absRound(years / 100) + absRound(years / 400);
- return years * 146097 / 400;
- }
-
- extend(moment.duration.fn = Duration.prototype, {
-
- _bubble : function () {
- var milliseconds = this._milliseconds,
- days = this._days,
- months = this._months,
- data = this._data,
- seconds, minutes, hours, years = 0;
-
- // The following code bubbles up values, see the tests for
- // examples of what that means.
- data.milliseconds = milliseconds % 1000;
-
- seconds = absRound(milliseconds / 1000);
- data.seconds = seconds % 60;
-
- minutes = absRound(seconds / 60);
- data.minutes = minutes % 60;
-
- hours = absRound(minutes / 60);
- data.hours = hours % 24;
-
- days += absRound(hours / 24);
-
- // Accurately convert days to years, assume start from year 0.
- years = absRound(daysToYears(days));
- days -= absRound(yearsToDays(years));
-
- // 30 days to a month
- // TODO (iskren): Use anchor date (like 1st Jan) to compute this.
- months += absRound(days / 30);
- days %= 30;
-
- // 12 months -> 1 year
- years += absRound(months / 12);
- months %= 12;
-
- data.days = days;
- data.months = months;
- data.years = years;
- },
-
- abs : function () {
- this._milliseconds = Math.abs(this._milliseconds);
- this._days = Math.abs(this._days);
- this._months = Math.abs(this._months);
-
- this._data.milliseconds = Math.abs(this._data.milliseconds);
- this._data.seconds = Math.abs(this._data.seconds);
- this._data.minutes = Math.abs(this._data.minutes);
- this._data.hours = Math.abs(this._data.hours);
- this._data.months = Math.abs(this._data.months);
- this._data.years = Math.abs(this._data.years);
-
- return this;
- },
-
- weeks : function () {
- return absRound(this.days() / 7);
- },
-
- valueOf : function () {
- return this._milliseconds +
- this._days * 864e5 +
- (this._months % 12) * 2592e6 +
- toInt(this._months / 12) * 31536e6;
- },
-
- humanize : function (withSuffix) {
- var output = relativeTime(this, !withSuffix, this.localeData());
-
- if (withSuffix) {
- output = this.localeData().pastFuture(+this, output);
- }
-
- return this.localeData().postformat(output);
- },
-
- add : function (input, val) {
- // supports only 2.0-style add(1, 's') or add(moment)
- var dur = moment.duration(input, val);
-
- this._milliseconds += dur._milliseconds;
- this._days += dur._days;
- this._months += dur._months;
-
- this._bubble();
-
- return this;
- },
-
- subtract : function (input, val) {
- var dur = moment.duration(input, val);
-
- this._milliseconds -= dur._milliseconds;
- this._days -= dur._days;
- this._months -= dur._months;
-
- this._bubble();
-
- return this;
- },
-
- get : function (units) {
- units = normalizeUnits(units);
- return this[units.toLowerCase() + 's']();
- },
-
- as : function (units) {
- var days, months;
- units = normalizeUnits(units);
-
- days = this._days + this._milliseconds / 864e5;
- if (units === 'month' || units === 'year') {
- months = this._months + daysToYears(days) * 12;
- return units === 'month' ? months : months / 12;
- } else {
- days += yearsToDays(this._months / 12);
- switch (units) {
- case 'week': return days / 7;
- case 'day': return days;
- case 'hour': return days * 24;
- case 'minute': return days * 24 * 60;
- case 'second': return days * 24 * 60 * 60;
- case 'millisecond': return days * 24 * 60 * 60 * 1000;
- default: throw new Error('Unknown unit ' + units);
- }
- }
- },
-
- lang : moment.fn.lang,
- locale : moment.fn.locale,
-
- toIsoString : deprecate(
- "toIsoString() is deprecated. Please use toISOString() instead " +
- "(notice the capitals)",
- function () {
- return this.toISOString();
- }
- ),
-
- toISOString : function () {
- // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
- var years = Math.abs(this.years()),
- months = Math.abs(this.months()),
- days = Math.abs(this.days()),
- hours = Math.abs(this.hours()),
- minutes = Math.abs(this.minutes()),
- seconds = Math.abs(this.seconds() + this.milliseconds() / 1000);
-
- if (!this.asSeconds()) {
- // this is the same as C#'s (Noda) and python (isodate)...
- // but not other JS (goog.date)
- return 'P0D';
- }
-
- return (this.asSeconds() < 0 ? '-' : '') +
- 'P' +
- (years ? years + 'Y' : '') +
- (months ? months + 'M' : '') +
- (days ? days + 'D' : '') +
- ((hours || minutes || seconds) ? 'T' : '') +
- (hours ? hours + 'H' : '') +
- (minutes ? minutes + 'M' : '') +
- (seconds ? seconds + 'S' : '');
- },
-
- localeData : function () {
- return this._locale;
- }
- });
-
- function makeDurationGetter(name) {
- moment.duration.fn[name] = function () {
- return this._data[name];
- };
- }
-
- for (i in unitMillisecondFactors) {
- if (unitMillisecondFactors.hasOwnProperty(i)) {
- makeDurationGetter(i.toLowerCase());
- }
- }
-
- moment.duration.fn.asMilliseconds = function () {
- return this.as('ms');
- };
- moment.duration.fn.asSeconds = function () {
- return this.as('s');
- };
- moment.duration.fn.asMinutes = function () {
- return this.as('m');
- };
- moment.duration.fn.asHours = function () {
- return this.as('h');
- };
- moment.duration.fn.asDays = function () {
- return this.as('d');
- };
- moment.duration.fn.asWeeks = function () {
- return this.as('weeks');
- };
- moment.duration.fn.asMonths = function () {
- return this.as('M');
- };
- moment.duration.fn.asYears = function () {
- return this.as('y');
- };
-
- /************************************
- Default Locale
- ************************************/
-
-
- // Set default locale, other locale will inherit from English.
- moment.locale('en', {
- ordinal : function (number) {
- var b = number % 10,
- output = (toInt(number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- return number + output;
- }
- });
-
- /* EMBED_LOCALES */
-
- /************************************
- Exposing Moment
- ************************************/
-
- function makeGlobal(shouldDeprecate) {
- /*global ender:false */
- if (typeof ender !== 'undefined') {
- return;
- }
- oldGlobalMoment = globalScope.moment;
- if (shouldDeprecate) {
- globalScope.moment = deprecate(
- 'Accessing Moment through the global scope is ' +
- 'deprecated, and will be removed in an upcoming ' +
- 'release.',
- moment);
- } else {
- globalScope.moment = moment;
- }
- }
-
- // CommonJS module is defined
- if (hasModule) {
- module.exports = moment;
- } else if (typeof define === 'function' && define.amd) {
- define('moment', function (require, exports, module) {
- if (module.config && module.config() && module.config().noGlobal === true) {
- // release the global variable
- globalScope.moment = oldGlobalMoment;
- }
-
- return moment;
- });
- makeGlobal(true);
- } else {
- makeGlobal();
- }
-}).call(this); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js
deleted file mode 100644
index c30bbff..0000000
--- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js
+++ /dev/null
@@ -1,6 +0,0 @@
-//! moment.js
-//! version : 2.8.1
-//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
-//! license : MIT
-//! momentjs.com
-(function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(a){rb.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function e(a,b){var c=!0;return l(function(){return c&&(d(a),c=!1),b.apply(this,arguments)},b)}function f(a,b){nc[a]||(d(b),nc[a]=!0)}function g(a,b){return function(c){return o(a.call(this,c),b)}}function h(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function i(){}function j(a,b){b!==!1&&E(a),m(this,a),this._d=new Date(+a._d)}function k(a){var b=x(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=rb.localeData(),this._bubble()}function l(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return b.hasOwnProperty("toString")&&(a.toString=b.toString),b.hasOwnProperty("valueOf")&&(a.valueOf=b.valueOf),a}function m(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Fb.length>0)for(c in Fb)d=Fb[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function n(a){return 0>a?Math.ceil(a):Math.floor(a)}function o(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function p(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function q(a,b){var c;return b=J(b,a),a.isBefore(b)?c=p(a,b):(c=p(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function r(a,b){return function(c,d){var e,g;return null===d||isNaN(+d)||(f(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),g=c,c=d,d=g),c="string"==typeof c?+c:c,e=rb.duration(c,d),s(this,e,a),this}}function s(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&lb(a,"Date",kb(a,"Date")+f*c),g&&jb(a,kb(a,"Month")+g*c),d&&rb.updateOffset(a,f||g)}function t(a){return"[object Array]"===Object.prototype.toString.call(a)}function u(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function v(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&z(a[d])!==z(b[d]))&&g++;return g+f}function w(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=gc[a]||hc[b]||b}return a}function x(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&&(b=w(c),b&&(d[b]=a[c]));return d}function y(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}rb[b]=function(e,f){var g,h,i=rb._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=rb().utc().set(d,a);return i.call(rb._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function z(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function A(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function B(a,b,c){return fb(rb([a,11,31+b-c]),b,c).week}function C(a){return D(a)?366:365}function D(a){return a%4===0&&a%100!==0||a%400===0}function E(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[yb]<0||a._a[yb]>11?yb:a._a[zb]<1||a._a[zb]>A(a._a[xb],a._a[yb])?zb:a._a[Ab]<0||a._a[Ab]>23?Ab:a._a[Bb]<0||a._a[Bb]>59?Bb:a._a[Cb]<0||a._a[Cb]>59?Cb:a._a[Db]<0||a._a[Db]>999?Db:-1,a._pf._overflowDayOfYear&&(xb>b||b>zb)&&(b=zb),a._pf.overflow=b)}function F(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function G(a){return a?a.toLowerCase().replace("_","-"):a}function H(a){for(var b,c,d,e,f=0;f<a.length;){for(e=G(a[f]).split("-"),b=e.length,c=G(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=I(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&v(e,c,!0)>=b-1)break;b--}f++}return null}function I(a){var b=null;if(!Eb[a]&&Gb)try{b=rb.locale(),require("./locale/"+a),rb.locale(b)}catch(c){}return Eb[a]}function J(a,b){return b._isUTC?rb(a).zone(b._offset||0):rb(a).local()}function K(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function L(a){var b,c,d=a.match(Kb);for(b=0,c=d.length;c>b;b++)d[b]=mc[d[b]]?mc[d[b]]:K(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function M(a,b){return a.isValid()?(b=N(b,a.localeData()),ic[b]||(ic[b]=L(b)),ic[b](a)):a.localeData().invalidDate()}function N(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Lb.lastIndex=0;d>=0&&Lb.test(a);)a=a.replace(Lb,c),Lb.lastIndex=0,d-=1;return a}function O(a,b){var c,d=b._strict;switch(a){case"Q":return Wb;case"DDDD":return Yb;case"YYYY":case"GGGG":case"gggg":return d?Zb:Ob;case"Y":case"G":case"g":return _b;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?$b:Pb;case"S":if(d)return Wb;case"SS":if(d)return Xb;case"SSS":if(d)return Yb;case"DDD":return Nb;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Rb;case"a":case"A":return b._locale._meridiemParse;case"X":return Ub;case"Z":case"ZZ":return Sb;case"T":return Tb;case"SSSS":return Qb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?Xb:Mb;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Mb;case"Do":return Vb;default:return c=new RegExp(X(W(a.replace("\\","")),"i"))}}function P(a){a=a||"";var b=a.match(Sb)||[],c=b[b.length-1]||[],d=(c+"").match(ec)||["-",0,0],e=+(60*d[1])+z(d[2]);return"+"===d[0]?-e:e}function Q(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[yb]=3*(z(b)-1));break;case"M":case"MM":null!=b&&(e[yb]=z(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b),null!=d?e[yb]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[zb]=z(b));break;case"Do":null!=b&&(e[zb]=z(parseInt(b,10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=z(b));break;case"YY":e[xb]=rb.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[xb]=z(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"H":case"HH":case"h":case"hh":e[Ab]=z(b);break;case"m":case"mm":e[Bb]=z(b);break;case"s":case"ss":e[Cb]=z(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Db]=z(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=P(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=z(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=rb.parseTwoDigitYear(b)}}function R(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[xb],fb(rb(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[xb],fb(rb(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=gb(d,e,f,h,g),a._a[xb]=i.year,a._dayOfYear=i.dayOfYear}function S(a){var c,d,e,f,g=[];if(!a._d){for(e=U(a),a._w&&null==a._a[zb]&&null==a._a[yb]&&R(a),a._dayOfYear&&(f=b(a._a[xb],e[xb]),a._dayOfYear>C(f)&&(a._pf._overflowDayOfYear=!0),d=bb(f,0,a._dayOfYear),a._a[yb]=d.getUTCMonth(),a._a[zb]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];a._d=(a._useUTC?bb:ab).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function T(a){var b;a._d||(b=x(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],S(a))}function U(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function V(a){if(a._f===rb.ISO_8601)return void Z(a);a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=""+a._i,h=g.length,i=0;for(d=N(a._f,a._locale).match(Kb)||[],b=0;b<d.length;b++)e=d[b],c=(g.match(O(e,a))||[])[0],c&&(f=g.substr(0,g.indexOf(c)),f.length>0&&a._pf.unusedInput.push(f),g=g.slice(g.indexOf(c)+c.length),i+=c.length),mc[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),Q(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=h-i,g.length>0&&a._pf.unusedInput.push(g),a._isPm&&a._a[Ab]<12&&(a._a[Ab]+=12),a._isPm===!1&&12===a._a[Ab]&&(a._a[Ab]=0),S(a),E(a)}function W(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function X(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Y(a){var b,d,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;f<a._f.length;f++)g=0,b=m({},a),b._pf=c(),b._f=a._f[f],V(b),F(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,d=b));l(a,d||b)}function Z(a){var b,c,d=a._i,e=ac.exec(d);if(e){for(a._pf.iso=!0,b=0,c=cc.length;c>b;b++)if(cc[b][1].exec(d)){a._f=cc[b][0]+(e[6]||" ");break}for(b=0,c=dc.length;c>b;b++)if(dc[b][1].exec(d)){a._f+=dc[b][0];break}d.match(Sb)&&(a._f+="Z"),V(a)}else a._isValid=!1}function $(a){Z(a),a._isValid===!1&&(delete a._isValid,rb.createFromInputFallback(a))}function _(b){var c,d=b._i;d===a?b._d=new Date:u(d)?b._d=new Date(+d):null!==(c=Hb.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?$(b):t(d)?(b._a=d.slice(0),S(b)):"object"==typeof d?T(b):"number"==typeof d?b._d=new Date(d):rb.createFromInputFallback(b)}function ab(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function bb(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function cb(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function db(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function eb(a,b,c){var d=rb.duration(a).abs(),e=wb(d.as("s")),f=wb(d.as("m")),g=wb(d.as("h")),h=wb(d.as("d")),i=wb(d.as("M")),j=wb(d.as("y")),k=e<jc.s&&["s",e]||1===f&&["m"]||f<jc.m&&["mm",f]||1===g&&["h"]||g<jc.h&&["hh",g]||1===h&&["d"]||h<jc.d&&["dd",h]||1===i&&["M"]||i<jc.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,db.apply({},k)}function fb(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=rb(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function gb(a,b,c,d,e){var f,g,h=bb(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:C(a-1)+g}}function hb(b){var c=b._i,d=b._f;return b._locale=b._locale||rb.localeData(b._l),null===c||d===a&&""===c?rb.invalid({nullInput:!0}):("string"==typeof c&&(b._i=c=b._locale.preparse(c)),rb.isMoment(c)?new j(c,!0):(d?t(d)?Y(b):V(b):_(b),new j(b)))}function ib(a,b){var c,d;if(1===b.length&&t(b[0])&&(b=b[0]),!b.length)return rb();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function jb(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),A(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function kb(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function lb(a,b,c){return"Month"===b?jb(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function mb(a,b){return function(c){return null!=c?(lb(this,a,c),rb.updateOffset(this,b),this):kb(this,a)}}function nb(a){return 400*a/146097}function ob(a){return 146097*a/400}function pb(a){rb.duration.fn[a]=function(){return this._data[a]}}function qb(a){"undefined"==typeof ender&&(sb=vb.moment,vb.moment=a?e("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",rb):rb)}for(var rb,sb,tb,ub="2.8.1",vb="undefined"!=typeof global?global:this,wb=Math.round,xb=0,yb=1,zb=2,Ab=3,Bb=4,Cb=5,Db=6,Eb={},Fb=[],Gb="undefined"!=typeof module&&module.exports,Hb=/^\/?Date\((\-?\d+)/i,Ib=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Jb=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Kb=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,Lb=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Mb=/\d\d?/,Nb=/\d{1,3}/,Ob=/\d{1,4}/,Pb=/[+\-]?\d{1,6}/,Qb=/\d+/,Rb=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Sb=/Z|[\+\-]\d\d:?\d\d/gi,Tb=/T/i,Ub=/[\+\-]?\d+(\.\d{1,3})?/,Vb=/\d{1,2}/,Wb=/\d/,Xb=/\d\d/,Yb=/\d{3}/,Zb=/\d{4}/,$b=/[+-]?\d{6}/,_b=/[+-]?\d+/,ac=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bc="YYYY-MM-DDTHH:mm:ssZ",cc=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],dc=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],ec=/([\+\-]|\d\d)/gi,fc=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),gc={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},hc={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},ic={},jc={s:45,m:45,h:22,d:26,M:11},kc="DDD w W M D d".split(" "),lc="M D H h m s w W".split(" "),mc={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return o(this.year()%100,2)},YYYY:function(){return o(this.year(),4)},YYYYY:function(){return o(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+o(Math.abs(a),6)},gg:function(){return o(this.weekYear()%100,2)},gggg:function(){return o(this.weekYear(),4)},ggggg:function(){return o(this.weekYear(),5)},GG:function(){return o(this.isoWeekYear()%100,2)},GGGG:function(){return o(this.isoWeekYear(),4)},GGGGG:function(){return o(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return z(this.milliseconds()/100)},SS:function(){return o(z(this.milliseconds()/10),2)},SSS:function(){return o(this.milliseconds(),3)},SSSS:function(){return o(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+o(z(a/60),2)+":"+o(z(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+o(z(a/60),2)+o(z(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},nc={},oc=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];kc.length;)tb=kc.pop(),mc[tb+"o"]=h(mc[tb],tb);for(;lc.length;)tb=lc.pop(),mc[tb+tb]=g(mc[tb],2);mc.DDDD=g(mc.DDD,3),l(i.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=rb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=rb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return fb(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),rb=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=d,g._l=e,g._strict=f,g._isUTC=!1,g._pf=c(),hb(g)},rb.suppressDeprecationWarnings=!1,rb.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i)}),rb.min=function(){var a=[].slice.call(arguments,0);return ib("isBefore",a)},rb.max=function(){var a=[].slice.call(arguments,0);return ib("isAfter",a)},rb.utc=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=d,g._strict=f,g._pf=c(),hb(g).utc()},rb.unix=function(a){return rb(1e3*a)},rb.duration=function(a,b){var c,d,e,f,g=a,h=null;return rb.isDuration(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(g={},b?g[b]=a:g.milliseconds=a):(h=Ib.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:z(h[zb])*c,h:z(h[Ab])*c,m:z(h[Bb])*c,s:z(h[Cb])*c,ms:z(h[Db])*c}):(h=Jb.exec(a))?(c="-"===h[1]?-1:1,e=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*c},g={y:e(h[2]),M:e(h[3]),d:e(h[4]),h:e(h[5]),m:e(h[6]),s:e(h[7]),w:e(h[8])}):"object"==typeof g&&("from"in g||"to"in g)&&(f=q(rb(g.from),rb(g.to)),g={},g.ms=f.milliseconds,g.M=f.months),d=new k(g),rb.isDuration(a)&&a.hasOwnProperty("_locale")&&(d._locale=a._locale),d},rb.version=ub,rb.defaultFormat=bc,rb.ISO_8601=function(){},rb.momentProperties=Fb,rb.updateOffset=function(){},rb.relativeTimeThreshold=function(b,c){return jc[b]===a?!1:c===a?jc[b]:(jc[b]=c,!0)},rb.lang=e("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return rb.locale(a,b)}),rb.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?rb.defineLocale(a,b):rb.localeData(a),c&&(rb.duration._locale=rb._locale=c)),rb._locale._abbr},rb.defineLocale=function(a,b){return null!==b?(b.abbr=a,Eb[a]||(Eb[a]=new i),Eb[a].set(b),rb.locale(a),Eb[a]):(delete Eb[a],null)},rb.langData=e("moment.langData is deprecated. Use moment.localeData instead.",function(a){return rb.localeData(a)}),rb.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return rb._locale;if(!t(a)){if(b=I(a))return b;a=[a]}return H(a)},rb.isMoment=function(a){return a instanceof j||null!=a&&a.hasOwnProperty("_isAMomentObject")},rb.isDuration=function(a){return a instanceof k};for(tb=oc.length-1;tb>=0;--tb)y(oc[tb]);rb.normalizeUnits=function(a){return w(a)},rb.invalid=function(a){var b=rb.utc(0/0);return null!=a?l(b._pf,a):b._pf.userInvalidated=!0,b},rb.parseZone=function(){return rb.apply(null,arguments).parseZone()},rb.parseTwoDigitYear=function(a){return z(a)+(z(a)>68?1900:2e3)},l(rb.fn=j.prototype,{clone:function(){return rb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=rb(this).utc();return 0<a.year()&&a.year()<=9999?M(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):M(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return F(this)},isDSTShifted:function(){return this._a?this.isValid()&&v(this._a,(this._isUTC?rb.utc(this._a):rb(this._a)).toArray())>0:!1},parsingFlags:function(){return l({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(a){var b=M(this,a||rb.defaultFormat);return this.localeData().postformat(b)},add:r(1,"add"),subtract:r(-1,"subtract"),diff:function(a,b,c){var d,e,f=J(a,this),g=6e4*(this.zone()-f.zone());return b=w(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-rb(this).startOf("month")-(f-rb(f).startOf("month")))/d,e-=6e4*(this.zone()-rb(this).startOf("month").zone()-(f.zone()-rb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:n(e)},from:function(a,b){return rb.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(rb(),a)},calendar:function(a){var b=a||rb(),c=J(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this))},isLeapYear:function(){return D(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=cb(a,this.localeData()),this.add(a-b,"d")):b},month:mb("Month",!0),startOf:function(a){switch(a=w(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(a){return a=w(a),this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms")},isAfter:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)>+rb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+rb(a).startOf(b)},isSame:function(a,b){return b=b||"ms",+this.clone().startOf(b)===+J(a,this).startOf(b)},min:e("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=rb.apply(null,arguments),this>a?this:a}),max:e("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=rb.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c,d=this._offset||0;return null==a?this._isUTC?d:this._d.getTimezoneOffset():("string"==typeof a&&(a=P(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._d.getTimezoneOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.subtract(c,"m"),d!==a&&(!b||this._changeInProgress?s(this,rb.duration(d-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rb.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?rb(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return A(this.year(),this.month())},dayOfYear:function(a){var b=wb((rb(this).startOf("day")-rb(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=fb(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=fb(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=fb(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return B(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return B(this.year(),a.dow,a.doy)},get:function(a){return a=w(a),this[a]()},set:function(a,b){return a=w(a),"function"==typeof this[a]&&this[a](b),this},locale:function(b){return b===a?this._locale._abbr:(this._locale=rb.localeData(b),this)},lang:e("moment().lang() is deprecated. Use moment().localeData() instead.",function(b){return b===a?this.localeData():(this._locale=rb.localeData(b),this)}),localeData:function(){return this._locale}}),rb.fn.millisecond=rb.fn.milliseconds=mb("Milliseconds",!1),rb.fn.second=rb.fn.seconds=mb("Seconds",!1),rb.fn.minute=rb.fn.minutes=mb("Minutes",!1),rb.fn.hour=rb.fn.hours=mb("Hours",!0),rb.fn.date=mb("Date",!0),rb.fn.dates=e("dates accessor is deprecated. Use date instead.",mb("Date",!0)),rb.fn.year=mb("FullYear",!0),rb.fn.years=e("years accessor is deprecated. Use year instead.",mb("FullYear",!0)),rb.fn.days=rb.fn.day,rb.fn.months=rb.fn.month,rb.fn.weeks=rb.fn.week,rb.fn.isoWeeks=rb.fn.isoWeek,rb.fn.quarters=rb.fn.quarter,rb.fn.toJSON=rb.fn.toISOString,l(rb.duration.fn=k.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=n(d/1e3),g.seconds=a%60,b=n(a/60),g.minutes=b%60,c=n(b/60),g.hours=c%24,e+=n(c/24),h=n(nb(e)),e-=n(ob(h)),f+=n(e/30),e%=30,h+=n(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return n(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12)},humanize:function(a){var b=eb(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=rb.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=rb.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=w(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=w(a),b=this._days+this._milliseconds/864e5,"month"===a||"year"===a)return c=this._months+12*nb(b),"month"===a?c:c/12;switch(b+=ob(this._months/12),a){case"week":return b/7;case"day":return b;case"hour":return 24*b;case"minute":return 24*b*60;case"second":return 24*b*60*60;case"millisecond":return 24*b*60*60*1e3;default:throw new Error("Unknown unit "+a)}},lang:rb.fn.lang,locale:rb.fn.locale,toIsoString:e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}});for(tb in fc)fc.hasOwnProperty(tb)&&pb(tb.toLowerCase());rb.duration.fn.asMilliseconds=function(){return this.as("ms")},rb.duration.fn.asSeconds=function(){return this.as("s")},rb.duration.fn.asMinutes=function(){return this.as("m")},rb.duration.fn.asHours=function(){return this.as("h")},rb.duration.fn.asDays=function(){return this.as("d")},rb.duration.fn.asWeeks=function(){return this.as("weeks")},rb.duration.fn.asMonths=function(){return this.as("M")},rb.duration.fn.asYears=function(){return this.as("y")},rb.locale("en",{ordinal:function(a){var b=a%10,c=1===z(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),Gb?module.exports=rb:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(vb.moment=sb),rb}),qb(!0)):qb()}).call(this); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/css/magic-check.css b/common/src/main/webapp/thirdparty/css/magic-check.css
index 10178af..4a4ccf7 100644
--- a/common/src/main/webapp/thirdparty/css/magic-check.css
+++ b/common/src/main/webapp/thirdparty/css/magic-check.css
@@ -1,123 +1,123 @@
-@keyframes hover-color {
- from {
- border-color: #c0c0c0; }
- to {
- border-color: #3e97eb; } }
-
-.magic-radio,
-.magic-checkbox {
- position: absolute;
- display: none; }
-
-.magic-radio[disabled],
-.magic-checkbox[disabled] {
- cursor: not-allowed; }
-
-.magic-radio + label,
-.magic-checkbox + label {
- position: relative;
- display: block;
- padding-left: 30px;
- cursor: pointer;
- vertical-align: middle;
- font-weight:normal;
- text-align: left;}
-.magic-radio + label:hover:before,
-.magic-checkbox + label:hover:before {
- animation-duration: 0.4s;
- animation-fill-mode: both;
- animation-name: hover-color; }
-.magic-radio + label:before,
-.magic-checkbox + label:before {
- position: absolute;
- top: 0;
- left: 0;
- display: inline-block;
- width: 20px;
- height: 20px;
- content: '';
- border: 1px solid #4ac9ff; }
-.magic-radio + label:after,
-.magic-checkbox + label:after {
- position: absolute;
- display: none;
- content: ''; }
-
-.magic-radio[disabled] + label,
-.magic-checkbox[disabled] + label {
- cursor: not-allowed;
- color: #e4e4e4; }
-.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after,
-.magic-checkbox[disabled] + label:hover,
-.magic-checkbox[disabled] + label:before,
-.magic-checkbox[disabled] + label:after {
- cursor: not-allowed; }
-.magic-radio[disabled] + label:hover:before,
-.magic-checkbox[disabled] + label:hover:before {
- border: 1px solid #e4e4e4;
- animation-name: none; }
-.magic-radio[disabled] + label:before,
-.magic-checkbox[disabled] + label:before {
- border-color: #e4e4e4; }
-
-.magic-radio:checked + label:before,
-.magic-checkbox:checked + label:before {
- animation-name: none; }
-
-.magic-radio:checked + label:after,
-.magic-checkbox:checked + label:after {
- display: block; }
-
-.magic-radio + label:before {
- border-radius: 50%; }
-
-.magic-radio + label:after {
- top: 6px;
- left: 6px;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: #3e97eb; }
-
-.magic-radio:checked + label:before {
- border: 1px solid #3e97eb; }
-
-.magic-radio:checked[disabled] + label:before {
- border: 1px solid #c9e2f9; }
-
-.magic-radio:checked[disabled] + label:after {
- background: #c9e2f9; }
-
-.magic-checkbox + label:before {
- border-radius: 3px; }
-
-.magic-checkbox + label:after {
- top: 2px;
- left: 7px;
- box-sizing: border-box;
- width: 6px;
- height: 12px;
- transform: rotate(45deg);
- border-width: 2px;
- border-style: solid;
- border-color: #fff;
- border-top: 0;
- border-left: 0; }
-
-.magic-checkbox:checked + label:before {
- border: #3e97eb;
- background: #3e97eb; }
-
-.magic-checkbox:checked[disabled] + label:before {
- border: #c9e2f9;
- background: #c9e2f9; }
-
-.radio-toolbar label {
- background:Red;
- border:1px solid green;
- padding:2px 10px;
-}
-
-.magic-radio:checked + label {
- font-weight: bold;
-}
+@keyframes hover-color {
+ from {
+ border-color: #c0c0c0; }
+ to {
+ border-color: #3e97eb; } }
+
+.magic-radio,
+.magic-checkbox {
+ position: absolute;
+ display: none; }
+
+.magic-radio[disabled],
+.magic-checkbox[disabled] {
+ cursor: not-allowed; }
+
+.magic-radio + label,
+.magic-checkbox + label {
+ position: relative;
+ display: block;
+ padding-left: 30px;
+ cursor: pointer;
+ vertical-align: middle;
+ font-weight:normal;
+ text-align: left;}
+.magic-radio + label:hover:before,
+.magic-checkbox + label:hover:before {
+ animation-duration: 0.4s;
+ animation-fill-mode: both;
+ animation-name: hover-color; }
+.magic-radio + label:before,
+.magic-checkbox + label:before {
+ position: absolute;
+ top: 0;
+ left: 0;
+ display: inline-block;
+ width: 20px;
+ height: 20px;
+ content: '';
+ border: 1px solid #4ac9ff; }
+.magic-radio + label:after,
+.magic-checkbox + label:after {
+ position: absolute;
+ display: none;
+ content: ''; }
+
+.magic-radio[disabled] + label,
+.magic-checkbox[disabled] + label {
+ cursor: not-allowed;
+ color: #e4e4e4; }
+.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after,
+.magic-checkbox[disabled] + label:hover,
+.magic-checkbox[disabled] + label:before,
+.magic-checkbox[disabled] + label:after {
+ cursor: not-allowed; }
+.magic-radio[disabled] + label:hover:before,
+.magic-checkbox[disabled] + label:hover:before {
+ border: 1px solid #e4e4e4;
+ animation-name: none; }
+.magic-radio[disabled] + label:before,
+.magic-checkbox[disabled] + label:before {
+ border-color: #e4e4e4; }
+
+.magic-radio:checked + label:before,
+.magic-checkbox:checked + label:before {
+ animation-name: none; }
+
+.magic-radio:checked + label:after,
+.magic-checkbox:checked + label:after {
+ display: block; }
+
+.magic-radio + label:before {
+ border-radius: 50%; }
+
+.magic-radio + label:after {
+ top: 6px;
+ left: 6px;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ background: #3e97eb; }
+
+.magic-radio:checked + label:before {
+ border: 1px solid #3e97eb; }
+
+.magic-radio:checked[disabled] + label:before {
+ border: 1px solid #c9e2f9; }
+
+.magic-radio:checked[disabled] + label:after {
+ background: #c9e2f9; }
+
+.magic-checkbox + label:before {
+ border-radius: 3px; }
+
+.magic-checkbox + label:after {
+ top: 2px;
+ left: 7px;
+ box-sizing: border-box;
+ width: 6px;
+ height: 12px;
+ transform: rotate(45deg);
+ border-width: 2px;
+ border-style: solid;
+ border-color: #fff;
+ border-top: 0;
+ border-left: 0; }
+
+.magic-checkbox:checked + label:before {
+ border: #3e97eb;
+ background: #3e97eb; }
+
+.magic-checkbox:checked[disabled] + label:before {
+ border: #c9e2f9;
+ background: #c9e2f9; }
+
+.radio-toolbar label {
+ background:Red;
+ border:1px solid green;
+ padding:2px 10px;
+}
+
+.magic-radio:checked + label {
+ font-weight: bold;
+}
diff --git a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css b/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css
deleted file mode 100644
index 599fb0d..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css
+++ /dev/null
@@ -1,240 +0,0 @@
-div.dataTables_length label {
- float: left;
- text-align: left;
-}
-
-div.dataTables_length label .form-control {
- display: inline-block;
- width: auto;
- vertical-align: middle;
-}
-
-div.dataTables_length select {
- width: 75px;
-}
-
-div.dataTables_filter label {
- float: right;
-}
-
-div.dataTables_info {
- position: relative;
- top:15px;
-}
-
-div.dataTables_paginate {
- float: right;
- margin: 0;
-}
-
-table.table {
- clear: both;
- margin-bottom: 6px !important;
- max-width: none !important;
-}
-
-table.table thead .sorting,
-table.table thead .sorting_asc,
-table.table thead .sorting_desc,
-table.table thead .sorting_asc_disabled,
-table.table thead .sorting_desc_disabled {
- cursor: pointer;
- *cursor: hand;
-}
-
-table.table thead .sorting { background: url('images/sort_both.png') no-repeat center right; }
-table.table thead .sorting_asc { background: url('images/sort_asc.png') no-repeat center right; }
-table.table thead .sorting_desc { background: url('images/sort_desc.png') no-repeat center right; }
-
-table.table thead .sorting_asc_disabled { background: url('images/sort_asc_disabled.png') no-repeat center right; }
-table.table thead .sorting_desc_disabled { background: url('images/sort_desc_disabled.png') no-repeat center right; }
-
-table.dataTable th:active {
- outline: none;
-}
-
-table.dataTable tbody {
- font-size:13px;
-}
-
-/* Scrolling */
-div.dataTables_scroll {
- margin-bottom: 5px;
- margin-top: 5px;
-}
-div.dataTables_scrollHead table {
- margin-bottom: 0 !important;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-div.dataTables_scrollHead table thead tr:last-child th:first-child,
-div.dataTables_scrollHead table thead tr:last-child td:first-child {
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.dataTables_scrollBody table {
- border-top: none;
- margin-bottom: 0 !important;
-}
-
-div.dataTables_scrollBody tbody tr:first-child th,
-div.dataTables_scrollBody tbody tr:first-child td {
- border-top: none;
-}
-
-/*
-div.dataTables_scrollBody tbody tr td {
- padding-left: 10px !important;
- padding-right: 10px !important;
-}
-div.dataTables_scrollHeadInner table thead tr th,
-div.dataTables_scrollBody table thead tr th{
- padding-left: 10px !important;
- padding-right: 18px !important;
- text-align: center !important;
-}*/
-
-div.dataTables_scrollFoot table {
- border-top: none;
-}
-
-/*
- * TableTools styles
- */
-
-table.DTTT_selectable tbody tr {
- cursor: pointer;
- *cursor: hand;
-}
-
-div.DTTT .btn {
- color: #333 !important;
- font-size: 12px;
-}
-
-div.DTTT .btn:hover {
- text-decoration: none !important;
-}
-
-
-ul.DTTT_dropdown.dropdown-menu a {
- color: #333 !important; /* needed only when demo_page.css is included */
-}
-
-ul.DTTT_dropdown.dropdown-menu li:hover a {
- background-color: #0088cc;
- color: white !important;
-}
-
-/* TableTools information display */
-div.DTTT_print_info.modal {
- height: 150px;
- margin-top: -75px;
- text-align: center;
-}
-
-div.DTTT_print_info h6 {
- font-weight: normal;
- font-size: 28px;
- line-height: 28px;
- margin: 1em;
-}
-
-div.DTTT_print_info p {
- font-size: 14px;
- line-height: 20px;
-}
-
-
-
-/*
- * FixedColumns styles
- */
-div.DTFC_LeftHeadWrapper table,
-div.DTFC_LeftFootWrapper table,
-table.DTFC_Cloned tr.even {
- background-color: white;
-}
-
-div.DTFC_LeftHeadWrapper table {
- margin-bottom: 0 !important;
- border-top-right-radius: 0 !important;
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
-div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.DTFC_LeftBodyWrapper table {
- border-top: none;
- margin-bottom: 0 !important;
-}
-
-div.DTFC_LeftBodyWrapper tbody tr:first-child th,
-div.DTFC_LeftBodyWrapper tbody tr:first-child td {
- border-top: none;
-}
-
-div.DTFC_LeftFootWrapper table {
- border-top: none;
-}
-
-/*浮动的确认反确认样式 */
-td.buttonRounded {
- background-color: #e5e5e5;
- color: #333333;
- border: 0px solid #b15a59;
- -webkit-border-radius: 0px;
- -moz-border-radius: 0px;
- -ms-border-radius: 0px;
- -o-border-radius: 0px;
- border-radius: 0px;
- font-family: Arial, Verdana, sans-serif;
- font-size: 12px;
- /*padding: 0 3px;*/
- padding-left:5px !important;
- padding-right:5px !important;
- height:30px !important;
-}
-
-td.buttonRoundedDisabled {
- opacity: .65;
- height:30px !important;
-}
-
-div.buttonConfirm{
- position: absolute; left: 0px; top: 0px; width: 120px; height: 30px; z-index: 201224; overflow: visible;
- font-size: 13px;
-}
-div.buttonUnConfirm{
- position: absolute; left: 120px; top: 0px; width: 100px; height: 30px; z-index: 201242; overflow: visible;
- font-size: 13px;
-}
-div.buttonDelete{
- position: absolute; left: 250px; top: 0px; width: 60px; height: 30px; z-index: 201260; overflow: visible;
- font-size: 13px;
-}
-
-button.btn-confirm {
- width:90px;
-}
-
-/***
-Extended pagination
-***/
-.paging_bootstrap_extended {
- margin: 0 !important;
- padding: 0 !important;
- float: none !important;
- font-size: 13px;
-}
-
-.modal-body {
- font-size: 13px;
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js b/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js
deleted file mode 100644
index 5b95e4a..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js
+++ /dev/null
@@ -1,363 +0,0 @@
-/* Set the defaults for DataTables initialisation */
-
-$.extend( true, $.fn.dataTable.defaults, {
- "sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // horizobtal scrollable datatable
- //"sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r>t<'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // defaukt datatable without horizobtal scroll
- "sPaginationType": "bootstrap",
- "oLanguage": {
- "sLengthMenu": " _MENU_ records ",
- }
-} );
-
-
-/* Default class modification */
-
-$.extend( $.fn.dataTableExt.oStdClasses, {
- "sWrapper": "dataTables_wrapper"
-} );
-
-
-/* API method to get paging information */
-
-$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
-{
- return {
- "iStart": oSettings._iDisplayStart,
- "iEnd": oSettings.fnDisplayEnd(),
- "iLength": oSettings._iDisplayLength,
- "iTotal": oSettings.fnRecordsTotal(),
- "iFilteredTotal": oSettings.fnRecordsDisplay(),
- "iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
- "iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
- };
-};
-
-
-/* Bootstrap style pagination control */
-$.extend( $.fn.dataTableExt.oPagination, {
- "bootstrap": {
- "fnInit": function( oSettings, nPaging, fnDraw ) {
- var oLang = oSettings.oLanguage.oPaginate;
- var fnClickHandler = function ( e ) {
- e.preventDefault();
- if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
- fnDraw( oSettings );
- }
- };
-
- // pagination with prev, next link icons
- $(nPaging).append(
- '<ul class="pagination">'+
- '<li class="prev disabled"><a href="#" title="'+oLang.sPrevious+'"><i class="fa fa-angle-left"></i></a></li>'+
- '<li class="next disabled"><a href="#" title="'+oLang.sNext+'"><i class="fa fa-angle-right"></i></a></li>'+
- '</ul>'
- );
-
- var els = $('a', nPaging);
- $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
- $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
- },
-
- "fnUpdate": function ( oSettings, fnDraw ) {
- var iListLength = 5;
- var oPaging = oSettings.oInstance.fnPagingInfo();
- var an = oSettings.aanFeatures.p;
- var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
-
- if ( oPaging.iTotalPages < iListLength) {
- iStart = 1;
- iEnd = oPaging.iTotalPages;
- }
- else if ( oPaging.iPage <= iHalf ) {
- iStart = 1;
- iEnd = iListLength;
- } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
- iStart = oPaging.iTotalPages - iListLength + 1;
- iEnd = oPaging.iTotalPages;
- } else {
- iStart = oPaging.iPage - iHalf + 1;
- iEnd = iStart + iListLength - 1;
- }
-
- for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
-
- if (oPaging.iTotalPages < 0) {
- $('.pagination', an[i]).css('visibility', 'hidden');
- } else {
- $('.pagination', an[i]).css('visibility', 'visible');
- }
-
- // Remove the middle elements
- $('li:gt(0)', an[i]).filter(':not(:last)').remove();
-
- // Add the new list items and their event handlers
- for ( j=iStart ; j<=iEnd ; j++ ) {
- sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
- $('<li '+sClass+'><a href="#">'+j+'</a></li>')
- .insertBefore( $('li:last', an[i])[0] )
- .bind('click', function (e) {
- e.preventDefault();
- oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
- fnDraw( oSettings );
- } );
- }
-
- // Add / remove disabled classes from the static elements
- if ( oPaging.iPage === 0 ) {
- $('li:first', an[i]).addClass('disabled');
- } else {
- $('li:first', an[i]).removeClass('disabled');
- }
-
- if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
- $('li:last', an[i]).addClass('disabled');
- } else {
- $('li:last', an[i]).removeClass('disabled');
- }
- }
- }
- }
-} );
-
-/* Bootstrap style full number pagination control */
-$.extend( $.fn.dataTableExt.oPagination, {
- "bootstrap_full_number": {
- "fnInit": function( oSettings, nPaging, fnDraw ) {
- var oLang = oSettings.oLanguage.oPaginate;
- var fnClickHandler = function ( e ) {
- e.preventDefault();
- if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
- fnDraw( oSettings );
- }
- };
-
- $(nPaging).append(
- '<ul class="pagination">' +
- '<li class="prev disabled"><a href="#" title="' + oLang.sFirst + '"><i class="fa fa-angle-double-left"></i></a></li>' +
- '<li class="prev disabled"><a href="#" title="' + oLang.sPrevious + '"><i class="fa fa-angle-left"></i></a></li>'+
- '<li class="next disabled"><a href="#" title="' + oLang.sNext + '"><i class="fa fa-angle-right"></i></a></li>' +
- '<li class="next disabled"><a href="#" title="' + oLang.sLast + '"><i class="fa fa-angle-double-right"></i></a></li>' +
- '</ul>'
- );
- var els = $('a', nPaging);
- $(els[0]).bind('click.DT', { action: "first" }, fnClickHandler);
- $(els[1]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
- $(els[2]).bind('click.DT', { action: "next" }, fnClickHandler);
- $(els[3]).bind('click.DT', { action: "last" }, fnClickHandler);
- },
-
- "fnUpdate": function ( oSettings, fnDraw ) {
- var iListLength = 5;
- var oPaging = oSettings.oInstance.fnPagingInfo();
- var an = oSettings.aanFeatures.p;
- var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
-
- if ( oPaging.iTotalPages < iListLength) {
- iStart = 1;
- iEnd = oPaging.iTotalPages;
- }
- else if ( oPaging.iPage <= iHalf ) {
- iStart = 1;
- iEnd = iListLength;
- } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
- iStart = oPaging.iTotalPages - iListLength + 1;
- iEnd = oPaging.iTotalPages;
- } else {
- iStart = oPaging.iPage - iHalf + 1;
- iEnd = iStart + iListLength - 1;
- }
-
-
-
- for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
- if (oPaging.iTotalPages < 0) {
- $('.pagination', an[i]).css('visibility', 'hidden');
- } else {
- $('.pagination', an[i]).css('visibility', 'visible');
- }
-
- // Remove the middle elements
- $('li:gt(1)', an[i]).filter(':not(.next)').remove();
-
- // Add the new list items and their event handlers
- for ( j=iStart ; j<=iEnd ; j++ ) {
- sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
- $('<li '+sClass+'><a href="#">'+j+'</a></li>')
- .insertBefore( $('li.next:first', an[i])[0] )
- .bind('click', function (e) {
- e.preventDefault();
- oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
- fnDraw( oSettings );
- } );
- }
-
- // Add / remove disabled classes from the static elements
- if ( oPaging.iPage === 0 ) {
- $('li.prev', an[i]).addClass('disabled');
- } else {
- $('li.prev', an[i]).removeClass('disabled');
- }
-
- if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
- $('li.next', an[i]).addClass('disabled');
- } else {
- $('li.next', an[i]).removeClass('disabled');
- }
- }
- }
- }
-} );
-
-/* Bootstrap style full number pagination control */
-$.extend( $.fn.dataTableExt.oPagination, {
- "bootstrap_extended": {
- "fnInit": function( oSettings, nPaging, fnDraw ) {
- var oLang = oSettings.oLanguage.oPaginate;
- var oPaging = oSettings.oInstance.fnPagingInfo();
-
- var fnClickHandler = function ( e ) {
- e.preventDefault();
- if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
- fnDraw( oSettings );
- }
- };
-
- $(nPaging).append(
- '<div class="pagination-panel"> ' + oLang.sPage + ' ' +
- '<a href="#" class="btn btn-sm default prev disabled" title="' + oLang.sPrevious + '"><i class="fa fa-angle-left"></i></a>' +
- '<input type="text" class="pagination-panel-input form-control input-mini input-inline input-sm" maxlenght="5" style="text-align:center; margin: 0 5px;">' +
- '<a href="#" class="btn btn-sm default next disabled" title="' + oLang.sNext + '"><i class="fa fa-angle-right"></i></a> ' +
- oLang.sPageOf + ' <span class="pagination-panel-total"></span>' +
- '</div>'
- );
-
- var els = $('a', nPaging);
-
- $(els[0]).bind('click.DT', { action: "previous" }, fnClickHandler );
- $(els[1]).bind('click.DT', { action: "next" }, fnClickHandler);
-
- $('.pagination-panel-input', nPaging).bind('change.DT', function(e) {
- var oPaging = oSettings.oInstance.fnPagingInfo();
- e.preventDefault();
- var page = parseInt($(this).val());
- if (page > 0 && page < oPaging.iTotalPages) {
- if ( oSettings.oApi._fnPageChange(oSettings, page-1) ) {
- fnDraw( oSettings );
- }
- } else {
- $(this).val(oPaging.iPage + 1);
- }
- });
-
- $('.pagination-panel-input', nPaging).bind('keypress.DT', function(e) {
- var oPaging = oSettings.oInstance.fnPagingInfo();
- if (e.which == 13) {
- var page = parseInt($(this).val());
- if (page > 0 && page < oSettings.oInstance.fnPagingInfo().iTotalPages) {
- if ( oSettings.oApi._fnPageChange(oSettings, page-1) ) {
- fnDraw( oSettings );
- }
- } else {
- $(this).val(oPaging.iPage + 1);
- }
- e.preventDefault();
- }
- });
- },
-
- "fnUpdate": function ( oSettings, fnDraw ) {
- var iListLength = 5;
- var oPaging = oSettings.oInstance.fnPagingInfo();
- var an = oSettings.aanFeatures.p;
- var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
-
- if ( oPaging.iTotalPages < iListLength) {
- iStart = 1;
- iEnd = oPaging.iTotalPages;
- }
- else if ( oPaging.iPage <= iHalf ) {
- iStart = 1;
- iEnd = iListLength;
- } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
- iStart = oPaging.iTotalPages - iListLength + 1;
- iEnd = oPaging.iTotalPages;
- } else {
- iStart = oPaging.iPage - iHalf + 1;
- iEnd = iStart + iListLength - 1;
- }
-
-
- for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
- var wrapper = $(an[i]).parents(".dataTables_wrapper");
-
- if (oPaging.iTotalPages <= 0) {
- $('.pagination-panel, .dataTables_length', wrapper).hide();
- } else {
- $('.pagination-panel, .dataTables_length', wrapper).show();
- }
-
- $('.pagination-panel-total', an[i]).html(oPaging.iTotalPages);
- $('.pagination-panel-input', an[i]).val(oPaging.iPage + 1);
-
- // Remove the middle elements
- $('li:gt(1)', an[i]).filter(':not(.next)').remove();
-
- // Add the new list items and their event handlers
- for ( j=iStart ; j<=iEnd ; j++ ) {
- sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
- $('<li '+sClass+'><a href="#">'+j+'</a></li>')
- .insertBefore( $('li.next:first', an[i])[0] )
- .bind('click', function (e) {
- e.preventDefault();
- oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
- fnDraw( oSettings );
- } );
- }
-
- // Add / remove disabled classes from the static elements
- if ( oPaging.iPage === 0 ) {
- $('a.prev', an[i]).addClass('disabled');
- } else {
- $('a.prev', an[i]).removeClass('disabled');
- }
-
- if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
- $('a.next', an[i]).addClass('disabled');
- } else {
- $('a.next', an[i]).removeClass('disabled');
- }
- }
- }
- }
-} );
-
-/*
- * TableTools Bootstrap compatibility
- * Required TableTools 2.1+
- */
-if ( $.fn.DataTable.TableTools ) {
- // Set the classes that TableTools uses to something suitable for Bootstrap
- $.extend( true, $.fn.DataTable.TableTools.classes, {
- "container": "btn-group",
- "buttons": {
- "normal": "btn default",
- "disabled": "btn disabled"
- },
- "collection": {
- "container": "DTTT_dropdown dropdown-menu",
- "buttons": {
- "normal": "",
- "disabled": "disabled"
- }
- }
- } );
-
- // Have the collection use a bootstrap compatible dropdown
- $.extend( true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
- "collection": {
- "container": "ul",
- "button": "li",
- "liner": "a"
- }
- } );
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js b/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js
deleted file mode 100644
index 6ee0d27..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js
+++ /dev/null
@@ -1,1459 +0,0 @@
-/***
- Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
- ***/
-var DatatableICT = function () {
-
- var contextData;
- var tableOptions; // main options
- var dataTable; // datatable object
- var table; // actual table jquery object
- var tableContainer; // actual table container object
- var tableWrapper; // actual table wrapper jquery object
- var tableInitialized = false;
- var ajaxParams = []; // set filter mode
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnMaxLength = 30;
- var columnsTooLong;
- var hidden_xs_maxWidth = 768;
- var hidden_sm_maxWidth = 991;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
-
- var aTargetsAll;
- var sTotalRecordsSource;
- var totalRecords;
- var tableHeight;
-
- var requestType="GET";
- var callbackList = [];
- var checkedRowDatas = [];
- var currentPageData;
-
- var includedInXsHiddenColumns = function(columnId){
- for(var i=0;i<xsHiddenColumns.length; i++ ){
- var column = xsHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var includedInSmHiddenColumns = function(columnId){
- for(var i=0;i<smHiddenColumns.length; i++ ){
- var column = smHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var countSelectedRecords = function() {
- var selected = $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- var text = tableOptions.dataTable.oLanguage.sGroupActions;
- if (selected > 0) {
- $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected));
- } else {
- $('.table-group-actions > span', tableWrapper).text("");
- }
- }
-
- var jsonObjectToArray = function(json, columns, iDraw){
- var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 };
- //获取数据的属性
- var dataField;
- //性能的情况
- if(json.data){
- dataField = json.data;
- }
- //告警的情况
- if(json.response && json.response.data){
- dataField = json.response.data;
- }
- for(var i=0; i<dataField.length; i++){
- jsonToDatatable.aaData[i] = [];
- var resRowObject;
- //性能的情况
- if(json.data){
- resRowObject = json.data[i].data;
- }
- //告警的情况
- if(json.response && json.response.data){
- resRowObject = json.response.data[i];
- }
- if(rowCheckable){
- jsonToDatatable.aaData[i].push("<input type=\"checkbox\" name=\"id[]\" rowDataNo='rowNo_" + i + "' value=\"1\">");
- }
- if(openRowFlag){
- jsonToDatatable.aaData[i].push("<span class=\"row-details row-details-close\"></span>");
- }
- for(var j=0; j<columns.length; j++){
-
- if($(window).width() >= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){
- /*隐藏pad尺寸需要隐藏的列*/
- }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){
- /*隐藏手机尺寸需要隐藏的列*/
- }else{
- var currentColumnId = columns[j].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...');
- }else{
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
- } else {
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
-
- }
- }
- }
- jsonToDatatable.sEcho++;
- //取得总行数
- var totalRow = 0;
- if(requestType == "POST"){ //性能的情况单独发请求获得总行数
- totalRow = totalRecords;
- }else{
- var totalRecordsSource = eval('json.' + sTotalRecordsSource);
- if(totalRecordsSource && totalRecordsSource.length >0){
- totalRow = parseInt(totalRecordsSource);
- }
- }
- if(isNaN(totalRow)){
- alert('All rows counting number got fail!');
- }else{
- jsonToDatatable.iTotalRecords = totalRow;
- jsonToDatatable.iTotalDisplayRecords = totalRow;
- }
- return jsonToDatatable;
- }
-
- var singleAlarmDel = function(divOverlay){
-
- //根据浮动框的当前id获取需要删除的行
- var trId = divOverlay.attr('id_tr');
- tr=$('tr#' + trId);
- var tds = $(tr).children();
- var tdAlarmId = "";
- if(rowCheckable){
- tdAlarmId = $(tds.eq(2)).text();
- }else{
- tdAlarmId = $(tds.eq(1)).text();
- }
-
- var data= {
- "alarmId":[parseInt(tdAlarmId)]
- };
-
- var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "DELETE",
- "url": sSource,
- "data" : null,
- "contentType" : 'application/json; charset=utf-8',
- "success": function(json) {
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- //alert('删除成功');
- }
- if(json.response.status == -1){
- //alert('删除失败');
- }
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var singleAlarmAckUnAck = function(divOverlay, ackType){
-
- //根据浮动框的当前id获取需要确认的行
- var trId = divOverlay.attr('id_tr');
- var tr = $('tr#' + trId);
-
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', contextData.wrapperDivContext);
- //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead);
- var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead);
- var tdDivs = $('td > div', trHead);
-
- var tds = $(tr).children();
- var tdAlarmId = "";
- if(rowCheckable){
- tdAlarmId = $(tds.eq(2)).text();
- }else{
- tdAlarmId = $(tds.eq(1)).text();
- }
-
- var aoData =
- {
- "dataSource":"isc_PageRestDataSource_0",
- "operationType":"update",
- "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0",
- "data":{
- "viewType":1,
- "state":ackType,
- "alarmId":[
- parseInt(tdAlarmId)
- ]
- },
- "oldValues":null
- };
-
- var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "PUT",
- "url": sSource,
- "contentType": 'application/json; charset=utf-8',
- "data": JSON.stringify(aoData),
- "success": function(json) {
- if(callbackList[1]){
- json = callbackList[1](json);
- }
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- var columnsCopy = $.extend(true, [], columns);
- //隐藏列的情况下需要特殊处理
- if($(window).width()>=hidden_xs_maxWidth && $(window).width()<hidden_sm_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInSmHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- } else if($(window).width()<hidden_xs_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInXsHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- }
- var iIndex = 1;
- if(rowCheckable){
- iIndex = 2;
- }
- for(var i=iIndex;i<tds.length && (i-iIndex)<columnsCopy.length;i++){
- var currentColumnId = columnsCopy[i-iIndex].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1) {
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- }else{
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- } else {
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- }
- //更新缓存中的当前行数据
- for (var t = 0; t < dataTable.datas.length; t++) {
- var temp = dataTable.datas[t];
- if (temp.alarmId == resRowObject['alarmId']) {
- dataTable.datas[t] = resRowObject;
- break;
- }
- }
- }
- if(json.response.status == -1){
- $('div#myModalConfirm' + contextData.curentDatableId).modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('span#alarm_number' + contextData.curentDatableId).html(tdAlarmId);
- //国际化信息
- if(ackType==1){
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok').replace(/\"/g,"").replace(";", ""));
- }else{
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un').replace(/\"/g,"").replace(";", ""));
- }
- }
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var addRowOverlap = function(){
- var $tableData = $('table#datatable_ajax' + contextData.curentDatableId);
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', contextData.wrapperDivContext);
- var trHeads = $tableHead.find('tr').get();
- $.each( trHeads, function( index, trHead ){
- $(trHead).attr('id', 'headTableTR' + index);
- });
- //取得浮动div
- var $divOverlay = $('div#divOverlay' + contextData.curentDatableId);
- var divScrollHead = $('div.dataTables_scrollHead', contextData.wrapperDivContext);
- var divRightPadding = $('div#divRightPadding' + contextData.curentDatableId);
- //取表头下边沿位置
- var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height();
- var tableBottom = $tableData.position().top + $tableData.height() + 3;
- //取表格右边沿位置
- var tableRightEdgePosition = $(divRightPadding).position().left;
- var trs = $tableData.find('tr').get();
- $.each( trs, function( index, tr ){
- var tdEmpty = $('td.dataTables_empty',tr);
- if(!tdEmpty || tdEmpty.length ==0 ){
- $(tr).attr('id', 'bodyTableTR' + index + contextData.curentDatableId);
- //$divOverlay.attr('id_tr', 'bodyTableTR' + index);
- $(tr).one('hover', function(){
- var rowPos = $(tr).position();
- var currentTrTop = rowPos.top;
- //var bottomLeft = rowPos.left;
- $divOverlay.attr('id_tr', 'bodyTableTR' + index + contextData.curentDatableId);
- $divOverlay.css({
- display: 'block',
- position: 'absolute',
- 'background-color': '#e5e5e5',
- //opacity: 0.7,
- border: 'solid 0px',
- top: currentTrTop + 6,
- left: tableRightEdgePosition - 308,
- width: 300,
- height: 30
- });
- //防止浮动框跳出表格内容区域
- if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){
- $divOverlay.css('display', 'none');
- }
- var buttonConfirm = $('div#buttonConfirm', $divOverlay);
- var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay);
- $(buttonConfirm).one('click', function(){
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded');
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 1);
- }
- });
- $(buttonUnConfirm).one('click', function(){
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded');
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 2);
- }
- });
- var buttonDelete = $('div#buttonDelete', $divOverlay);
- $(buttonDelete).die().live('click', function(){
- //弹出删除确认对话框
- $('div#myModal' + contextData.curentDatableId).modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('#delConfirm' + contextData.curentDatableId).die().live('click', function(){
- $divOverlay.css('display', 'none');
- dataTable.fnClose(tr);
- $(tr).remove();
- //删除表头表格的相应行
- $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove();
- //删除后端数据
- singleAlarmDel($divOverlay);
- //刷新表格
- dataTable.fnAdjustColumnSizing();
- });
- });
- //展开行的情况隐藏
- $('td.details > table.detailTable').on('hover', function(){
- $divOverlay.css('display', 'none');
- });
- });
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) {
-
- if (!$().dataTable) {
- return;
- }
-
- var the = this;
-
- //记录需要禁掉默认排序的列
- var aTargets = [];
- var targetsLength = columnsDefined.length;
- if(rowCheckable)targetsLength++;
- if(openRowFlag)targetsLength++;
- for(var i=0;i<targetsLength;i++){
- aTargets.push(i);
- }
- aTargetsAll = aTargets;
-
- // default settings
- options = $.extend(true, {
- src: "", // actual table
- filterApplyAction: "filter",
- filterCancelAction: "filter_cancel",
- resetGroupActionInputOnSuccess: true,
- dataTable: {
- //"sDom" : "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout
-
- "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column)
- 'bSortable' : false,
- 'aTargets' : aTargets
- }],
-
- "bAutoWidth": false, // disable fixed width and enable fluid table
- //"bSortCellsTop": true, // make sortable only the first row in thead
- "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended)
- "bProcessing": true, // enable/disable display message box on record load
- "bServerSide": true, // enable/disable server side ajax loading
- "sAjaxSource": "", // define ajax source URL
- //"sServerMethod": "GET",
-
- // handle ajax request
- "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
- //for ICT Paging
- //var startIndex = aoData[3].value;//"iDisplayStart"
- //var pageLength = aoData[4].value;//"iDisplayLength"
- var oPaging = oSettings.oInstance.fnPagingInfo();
- //var startIndex = oPaging.iStart;
- var pageLength = oPaging.iLength;
- var curPageNo = oPaging.iPage + 1;
-
- for(var k=aoData.length-1;k>=0;k--){
- var flag = -1;
- if(aoData[k].name=='pageSize'){
- aoData[k].value=pageLength;
- flag++;
- }
- if(aoData[k].name=='pageNo'){
- aoData[k].value=curPageNo;
- flag++
- }
- if(flag == 1)break;
- }
-
- if(requestType == "POST"){
-
- var postData;
- for(var k=aoData.length-1;k>=0;k--){
- if(aoData[k].name=='data'){
- postData = aoData[k].value;
- postData.pageSize = pageLength;
- postData.pageNo = curPageNo;
- break;
- }
- }
-
- oSettings.jqXHR = $.ajax( {
- "dataType": 'json',
- "type": "POST",
- "url": sSource,
- "data": JSON.stringify(postData),
- "contentType": 'application/json; charset=utf-8',
- "success": function(res, textStatus, jqXHR) {
- if (res.sMessage) {
- onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'});
- }
- if ($('.group-checkable', tableContainer).size() === 1) {
- $('.group-checkable', tableContainer).attr("checked", false);
- $.uniform.update($('.group-checkable', tableContainer));
- }
- if (tableOptions.onSuccess) {
- tableOptions.onSuccess.call(the);
- }
-
- if(callbackList[1]){
- res = callbackList[1](res);
- }
-
- //转换返回数据给datatable
- res = jsonObjectToArray(res, columns, oSettings.iDraw);
-
- //重绘表格
- fnCallback(res, textStatus, jqXHR);
- },
- "error": function() {
- if (tableOptions.onError) {
- tableOptions.onError.call(the);
- }
- onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'});
- $('.dataTables_processing', tableWrapper).remove();
- }
- } );
-
- } else {
-
- oSettings.jqXHR = $.ajax( {
- "dataType": 'json',
- "type": "GET",
- "url": sSource,
- "data": aoData,
- "success": function(res, textStatus, jqXHR) {
- if (res.sMessage) {
- onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'});
- }
- if ($('.group-checkable', tableContainer).size() === 1) {
- $('.group-checkable', tableContainer).attr("checked", false);
- $.uniform.update($('.group-checkable', tableContainer));
- }
- if (tableOptions.onSuccess) {
- tableOptions.onSuccess.call(the);
- }
- //保存数据在dataTable对象中给行详细信息面板用
- if(res.response){ //告警的情况,返回数据在response属性里
- dataTable.datas = res.response.data;
- if(res.response.status < 0){
- alert(res.response.data);
- return;
- }
- }
-
- //保存当前页原始数据的备份
- currentPageData = $.extend(true, {}, res.response.data);;
-
- if(callbackList[1]){
- res = callbackList[1](res);
- }
-
- //转换返回数据给datatable
- res = jsonObjectToArray(res, columns, oSettings.iDraw);
-
- //重绘表格
- fnCallback(res, textStatus, jqXHR);
- },
- "error": function() {
- if (tableOptions.onError) {
- tableOptions.onError.call(the);
- }
- onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'});
- $('.dataTables_processing', tableWrapper).remove();
- }
- } );
- }
-
- },
-
- // pass additional parameter
- "fnServerParams": function ( aoData ) {
- //here can be added an external ajax request parameters.
- //for(var i in ajaxParams) {
- for(var i=0; i<ajaxParams.length; i++){
- var param = ajaxParams[i];
- aoData.push({"name" : param.name, "value": param.value});
- }
- },
-
- "fnDrawCallback": function( oSettings ) { // run some code on table redraw
- if (tableInitialized === false) { // check if table has been initialized
- tableInitialized = true; // set table initialized
- table.show(); // display table
- }
- onapFrameWork.initUniform($('input[type="checkbox"]', tableContainer)); // reinitialize uniform checkboxes on each table reload
- countSelectedRecords(); // reset selected records indicator
- //所有td不换行
- $('table#datatable_ajax' + contextData.curentDatableId).find('td').css('white-space', 'nowrap');
-
- //自适应对齐表头
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var tbodyHead = $('tbody', $tableHead);
- if(tbodyHead && tbodyHead.length >0){
- $(tbodyHead).remove();
- }
-
- var $tableBody = $('table#datatable_ajax' + contextData.curentDatableId, tableWrapper);
- var trIn = $('thead > tr:nth-child(1)', $tableHead);
- var trBodyHead = $('thead > tr:nth-child(1)', $tableBody);
- var tds = $(trIn).children();
- var ths = $(trBodyHead).children();
- for(var k=0;k<tds.length;k++){
- $(ths.eq(k)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(k).html() + '</div>');
- }
- var bodyRows = $('tbody > tr', $tableBody);
- for(var i=0;i<bodyRows.length;i++){
- var rowClone = $(bodyRows.eq(i)).clone();
- var tds = $(rowClone).children();
- for(var j=0;j<tds.length;j++){
- $(tds.eq(j)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(j).html() + '</div>');
- $(tds.eq(j)).height('0px');
- $(tds.eq(j)).css('padding-top','0px');
- $(tds.eq(j)).css('padding-bottom','0px');
- $(tds.eq(j)).css('border-top-width','0px');
- $(tds.eq(j)).css('border-bottom-width','0px');
- }
- $(rowClone).height('0px');
- $tableHead.append($(rowClone).prop("outerHTML"));
- }
-
- $('div.dataTables_scrollBody', tableWrapper).css('width','100%');
- $('div.dataTables_scrollHead', tableWrapper).css('width','98.5%');
- $('div.dataTables_scrollHeadInner', tableWrapper).css('padding-right', 0);
-
- //添加浮动确认反确认按钮
- if(rowOverFlag){
- addRowOverlap();
- }
-
- //设置表格本体高度
- $('div.dataTables_scrollBody', tableWrapper).css('height', tableHeight);
- }
- }
- }, options);
-
- tableOptions = options;
-
- columns = columnsDefined;
- xsHiddenColumns = xsHiddenColumnsDefined;
- smHiddenColumns = smHiddenColumnsDefined;
- // create table's jquery object
- table = $(options.src);
- tableContainer = table.parents("div#table-container" + contextData.curentDatableId);
- // apply the special class that used to restyle the default datatable
-
- $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper";
-
- // initialize a datatable
- dataTable = table.dataTable(options.dataTable);
-
- tableWrapper = table.parents('div.dataTables_wrapper', tableContainer);
-
- // modify table per page dropdown input by appliying some classes
- $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm");
-
- // handle group checkboxes check/uncheck
- $('.group-checkable', tableContainer).change(function () {
- var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table);
- var checked = $(this).is(":checked");
- $(set).each(function () {
- $(this).attr("checked", checked);
- });
- $.uniform.update(set);
- countSelectedRecords();
- });
-
- // handle row's checkbox click
- table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){
- countSelectedRecords();
- });
-
- //if ($.browser.safari) {
- // $('.table-container').css('width','100%');
- //}
- //填充表头右边界
- $('div.dataTables_scrollHead', tableContainer).css('display','inline-block');
- //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" );
- $("div.dataTables_scrollHead", tableContainer).after("<div id='divRightPadding" + contextData.curentDatableId + "' style='overflow: hidden; background:#eee; position: relative; float:right; border: 1px solid #ddd; height:" + 38 + "px; width: 1.4%;'></div>");
- if($.browser.mozilla){
- $('div#divRightPadding', tableContainer).css('height', '40');
- }
-
- //隐藏掉某些列
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableBody = $('table#datatable_ajax' + contextData.curentDatableId, tableWrapper);
-
- for(var i=0;i<xsHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(xsHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs');
- break;
- }
- }
- }
-
- for(var i=0;i<smHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(smHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm');
- break;
- }
- }
- }
- },//end init------------------------------------------------------------------------------------
-
- getSelectedRowsCount: function() {
- return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- },
-
- getSelectedRows: function() {
- var rows = [];
- $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){
- rows.push({rowDataNo: $(this).attr("rowDataNo"), name: $(this).attr("name"), value: $(this).val()});
- });
-
- return rows;
- },
-
- addAjaxParam: function(name, value) {
- ajaxParams.push({"name": name, "value": value});
- },
-
- clearAjaxParams: function(name, value) {
- ajaxParams = [];
- },
-
- getDataTable: function() {
- return dataTable;
- },
-
- getTableWrapper: function() {
- return tableWrapper;
- },
-
- gettableContainer: function() {
- return tableContainer;
- },
-
- getTable: function() {
- return table;
- },
-
- setOpenRowFlag: function(openRowFlagInput) {
- openRowFlag = openRowFlagInput;
- },
-
- setRowOverFlag: function(rowOverFlagInput) {
- rowOverFlag = rowOverFlagInput;
- },
-
- setRowCheckable: function(rowCheckableInput) {
- rowCheckable = rowCheckableInput;
- },
-
- setColumnsTooLong: function(columnsTooLongInput) {
- columnsTooLong = columnsTooLongInput;
- },
-
- setSTotalRecordsSource: function(sTotalRecordsSourceInput){
- sTotalRecordsSource = sTotalRecordsSourceInput;
- },
-
- setTotalRecords: function(totalRecordsInput){
- totalRecords = totalRecordsInput;
- },
-
- setTableHeight: function(tableHeightInput){
- tableHeight = tableHeightInput;
- },
-
- setCallbackList: function(list){
- if($.isArray(list)){
- callbackList = list;
- }
- },
-
- getCheckedRowDatas:function(){
- checkedRowDatas = [];
- $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){
- var rowNoId = $(this).attr("rowDataNo");
- var rowNoIndex = rowNoId.slice(rowNoId.indexOf("_") + 1);
- checkedRowDatas.push(currentPageData[parseInt(rowNoIndex)]);
- });
- return checkedRowDatas;
- },
-
- setRequestType: function(requestTypeInput){
- requestType = requestTypeInput;
- },
-
- setContextData: function(newContextData){
- contextData = newContextData;
- },
-
- setTotalPage: function(newTotalPage){
- $("#datatable_ajax" + contextData.curentDatableId + "_info").html(tableOptions.dataTable.oLanguage.sInfo.replace("_TOTAL_", newTotalPage + ""));
- }
-
- };
-
-};
-
-var TableAjaxICT = function () {
-
- var contextData;
-
- var initPickers = function () {
- //init date pickers
- $('.date-picker').datepicker({
- //rtl: App.isRTL(),
- autoclose: true
- });
- }
-
- //判断a数组是否包含b数组
- function isContained(largeArray, smallArray){
- if(!(largeArray instanceof Array) || !(smallArray instanceof Array))
- return false;
- if(largeArray.length < smallArray.length)
- return false;
- for(var i = 0; i < smallArray.length; i++){
- var flag = false;
- for(j=0;j<largeArray.length;j++){
- if(largeArray[j].columnId == smallArray[i].columnId){
- flag = true;
- break;
- }
- }
- if(flag==false)return false;
- }
- return true;
- }
-
- //var grid = DatatableICT();
- var grid;
-
- /* Formatting function for row details */
- function fnFormatDetails(oTable, nTr, columns, rowCheckable) {
- //取得当前行显示数据
- var tds = $(nTr).children();
- var alarmId="";
- if(rowCheckable){
- alarmId = $(tds.eq(2)).html();
- }else{
- alarmId = $(tds.eq(1)).html();
- }
- //取得当前行完整数据
- var systemType = 0;
- var code = 0;
- //所有字段
- var resDisplayName="";
- var moc="";
- var alarmRaisedTime="";
- var perceivedSeverity="";
- var probableCauseDesc="";
- var neip="";
- var alarmType="";
- var ackState="";
- var ackTime="";
- var ackUserId="";
- var ackSystemId="";
- var alarmChangedTime="";
- var componentname="";
- var position1="";
- var specificproblem="";
- var additionalText="";
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == alarmId) {
- alarmId = temp.alarmId;
- resDisplayName = temp.resDisplayName;
- alarmRaisedTime = temp.alarmRaisedTime;
- perceivedSeverity = temp.perceivedSeverity;
- probableCauseDesc = temp.probableCauseDesc;
- neip = temp.neip;
- alarmType = temp.alarmType;
- ackState = temp.ackState;
- ackTime = temp.ackTime;
- ackUserId = temp.ackUserId;
- ackSystemId = temp.ackSystemId;
- alarmChangedTime = temp.alarmChangedTime;
-
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- moc = temp.moc;
- componentname = temp.componentname;
- position1 = temp.position1;
- specificproblem = temp.specificproblem;
- additionalText = temp.additionalText;
- break;
- }
- }
-
- var id = alarmId;
- var sOut = '<table class = "detailTable" width = 900>';
- sOut += '<tr><td class = "detailTitleStyle" width = 80><span class = "label label-primary">' + columns[0].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmId + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "label label-primary">' + columns[4].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + perceivedSeverity + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "label label-primary">' + columns[9].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmType + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "label label-primary">' + columns[3].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmRaisedTime + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[5].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + probableCauseDesc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[15].columnTitle + '</span></td><td class = "detailCellStyle">' + alarmChangedTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[11].columnTitle + '</span></td><td class = "detailCellStyle">' + ackState + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[12].columnTitle + '</span></td><td class = "detailCellStyle">' + ackTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[13].columnTitle + '</span></td><td class = "detailCellStyle">' + ackUserId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[14].columnTitle + '</span></td><td class = "detailCellStyle">' + ackSystemId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[7].columnTitle + '</span></td><td class = "detailCellStyle">' + neip + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[2].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + moc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[1].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + resDisplayName + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[8].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + componentname + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "label label-primary">' + columns[16].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + position1 + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[10].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 7>' + specificproblem + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + columns[6].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 7>' + additionalText + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "defaulInfo' + id + '" class = "detailCellStyle" colspan = 7>' + '</td></tr>';
-
- sOut += '<tr><td class = "detailTitleStyle"><span class = "label label-primary">' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "customInfo' + id + '" class = "detailCellStyle" colspan = 7><td align="right"><button id = "customInfoModify' + id + '" class="btn-toolbar" type="button"><span id = "modifyBtnSpan' + id + '"class="fa fa-pencil-square-o"></span></button></td><td id="cancelDiv' + id + '"></td></td></tr>';
-
- sOut += '</table>';
-
- /*
- var systemType = 0;
- var code = 0;
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == oTr['alarmId'].value) {
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- }
- }*/
- var data = {
- "systemType" : systemType,
- "code" : code
- };
- var sendData = JSON.stringify(data);
- $.ajax({
- "dataType" : 'json',
- "type" : "GET",
- "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData,
- "contentType" : 'application/json; charset=utf-8',
- "data" : null,
- "success" : function (json) {
- $('tr').find('td#defaulInfo' + id).text(json.defaulInfo);
- $('tr').find('td#customInfo' + id).text(json.customInfo);
- var modify = $('#customInfoModify' + id);
- modify.on('click', function () {
- var span = $('#modifyBtnSpan' + id);
- var customInfo = $('tr').find('td#customInfo' + id);
- var cancel = $('#cancelDiv' + id);
- if (span['0'].className === 'fa fa-pencil-square-o') {
- var value = customInfo['0'].textContent;
- customInfo['0'].textContent = '';
- customInfo['0'].innerHTML = '<textarea id="customInfoInput' + id + '" type="textarea" cols=100 rows=4>' + value + '</textarea>';
- span['0'].className = 'fa fa-floppy-o';
- cancel['0'].innerHTML = '<button id = "cancelBtn' + id + '" class="btn-toolbar" type="button"><span class="fa fa-sign-out"></span></button>';
- $('#cancelBtn' + id).on('click', function () {
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = value;
- cancel['0'].innerHTML = '';
- span['0'].className = 'fa fa-pencil-square-o';
- });
- } else {
- var inputValue = $('#customInfoInput' + id)['0'].value;
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = inputValue;
- span['0'].className = 'fa fa-pencil-square-o';
- cancel['0'].innerHTML = '';
- var modifyData = {
- "systemType" : systemType,
- "code" : code,
- "defaulInfo" : json.defaulInfo,
- "customInfo" : inputValue
- };
- $.ajax({
- "dataType" : 'json',
- "type" : "PUT",
- "url" : "/web/rest/web/fm/Maintenance",
- "contentType" : 'application/json; charset=utf-8',
- "data" : JSON.stringify(modifyData),
- "error" : function () {
- alert('Modify Error!');
- }
- });
- }
- });
- },
- "error" : function () {
- alert('Communication Error!');
- }
- });
-
- return sOut;
- }
-
- var generateColumns = function(columns, openRowFlag, rowCheckable){
- var $tableData = $('table#datatable_ajax' + contextData.curentDatableId);
- var theadTR = $('thead > tr', $tableData);
- if(rowCheckable){
- theadTR.append('<th><input type="checkbox" class="group-checkable"></th>');
- }
- if(openRowFlag){
- theadTR.append('<th>&nbsp;&nbsp;</th>');
- }
- for(var i=0;i<columns.length;i++){
- theadTR.append('<TH id="' + columns[i].columnId + '" style="white-space: nowrap;">' + columns[i].columnTitle + '</TH>');
- }
- }
-
- var sortHandling = function(oTable, openRowFlag, rowCheckable){
- var indexSkip = -1;
- if(openRowFlag&&rowCheckable){
- indexSkip = 1;
- }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){
- indexSkip = 0;
- }
- var $sortOrder = 0; //排序类型 1表示升序,0表示降序
- var tableWrapper = $('div.dataTables_wrapper', contextData.wrapperDivContext);
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableData = $('table#datatable_ajax' + contextData.curentDatableId);
- var clearSort = function(currentTh){
- var ths = $tableHead.find('th').get();
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- if(index > indexSkip){
- if($(th).text() != currentTh.text()){
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- }
- }
- });
- }
-
- $('th', $tableHead).each(function( column )
- {
- if(column>indexSkip){
- //处理三种有可能存在的排序字段,比较方法
- var findSortKey;
- if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') )
- {
- findSortKey = function( $cell )
- {
- var cellText = $cell.text();
- if(isNaN(cellText)){
- return $cell.text().toUpperCase();
- }else{
- return parseFloat(cellText);
- }
- //return $cell.text().toUpperCase();
- }
- }
- else if( $(this).is('.sort-date') )
- {
- findSortKey = function( $cell )
- {
- return Date.parse('1' + $cell.text());
- }
- }
- else if( $(this).is('.sort-price') )
- {
- findSortKey = function( $cell )
- {
- var key = parseFloat($cell.text().replace(/^[^\d.]*/, ''))
- return isNaN(key) ? 0 : key;
- }
- }
-
- //排序
- if( findSortKey )
- {
- $(this).click(function()
- {
- $sortOrder = $sortOrder == 0 ? 1 : 0;
- var tableDataHeadTHs = $tableData.find('th').get();
-
- if($sortOrder == 1){
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }else{
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }
- clearSort($(this));
-
- var rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- //先关掉所有行
- if ( oTable.fnIsOpen(row) )
- {
- $(row).find('.row-details').click();
- }
- });
-
- //重新取得所有行,否则排序后表格显示异常
- rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- row.sortKey = findSortKey($(row).children('td').eq(column));
- });
- //排序方法
- rows.sort(function( a, b )
- {
- if( $sortOrder == 1 )
- {
- //升序
- if(a.sortKey < b.sortKey) return -1;
- if(a.sortKey > b.sortKey) return 1;
- return 0;
- }
- else
- {
- //降序
- if(a.sortKey < b.sortKey) return 1;
- if(a.sortKey > b.sortKey) return -1;
- return 0;
- }
- });
- //排序后的对象添加给$table
- $.each( rows, function( index, row )
- {
- $tableData.children('tbody').append(row);
- row.sortKey = null;
- });
- });
- }
- }
- });
- }
-
- var handleRecords = function(requestDatas, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList, totalRecords, requestType) {
-
- /*
- jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json',
- function(data) {
- oLanguage = data;
- });
- */
- grid = DatatableICT();
- grid.setCallbackList(callbackList);
- grid.setContextData(contextData);
- grid.setOpenRowFlag(openRowFlag);
- grid.setRowCheckable(rowCheckable);
- grid.setRowOverFlag(rowOverFlag);
- grid.setColumnsTooLong(columnsTooLong);
- grid.setSTotalRecordsSource(sTotalRecordsSource);
- grid.setTotalRecords(totalRecords);
- grid.setTableHeight(tableHeight);
- grid.setRequestType(requestType);
- //取得查询条件
-// if(!requestStr || requestStr.length == 0){
-// requestStr = JSON.stringify(requestAllData);
-// }
- grid.clearAjaxParams();
- if(requestType == "GET"){
- grid.addAjaxParam('data', JSON.stringify(requestDatas));
- }else{
- grid.addAjaxParam('data', requestDatas);
- }
- //取得其他参数
- for(var i=0;i<requestParameters.length;i++){
- grid.addAjaxParam(requestParameters[i].paraId,requestParameters[i].paraValue);
- }
-
- grid.init({
- src: $("table#datatable_ajax" + contextData.curentDatableId),
- onSuccess: function(grid) {
- // execute some code after table records loaded
- var tableWrapper = $('div#datatable_ajax_wrapper', contextData.wrapperDivContext);
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var ths = $tableHead.find('th').get();
- var $tableData = $('table#datatable_ajax' + contextData.curentDatableId);
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- //clear all sort direction
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- });
-
- },
- onError: function(grid) {
- // execute some code on network or other general error
- },
- dataTable: {
- "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout
- "oLanguage": oLanguage,
- //"bAutoWidth": true,
- "sScrollY": tableHeight,
- "bScrollCollapse": true,
- "sScrollX": "100%",
- //"sScrollXInner": "110%",
- "aLengthMenu": [
- [20, 50, 100],
- [20, 50, 100] // change per page values here
- ],
- "iDisplayLength": 100, // default record count per page
- "bServerSide": true, // server side processing
- "sAjaxSource": requestURL // ajax source
- }
- }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable);
- }
-
- /*
- * Insert a 'details' column to the table
- */
- var insertDetails = function (oTable, columns, rowCheckable) {
-
- var $tableData = $('table#datatable_ajax' + contextData.curentDatableId);
-
- $tableData.on('click', ' tbody td .row-details', function () {
- var nTr = $(this).parents('tr')[0];
- if (oTable.fnIsOpen(nTr)) {
- /* This row is already open - close it */
- $(this).addClass("row-details-close").removeClass("row-details-open");
- oTable.fnClose(nTr);
- } else {
- /* Open this row */
- $(this).addClass("row-details-open").removeClass("row-details-close");
- oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details');
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (requestDatas, lang, configPathPrefix, callbackList, newColumns, totalPage) {
-
- var oLanguage;
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnsAll;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
- var requestURL="";
- var requestAllData;
- var requestParameters;
-
- var tableHeight;
- var tableWidth;
-
- var columnsTooLong;
- var sTotalRecordsSource="";
- var totalRecords = 0;
-
- var requestType = "GET";
-
- //取得当前配置及国际化信息
- $.ajax({
- dataType: 'json',
- url: configPathPrefix + '-' + lang + '.json',
- async: false,
- contentType:'application/json; charset=utf-8',
- "success": function(data) {
- oLanguage = data.language;
- columns = data.columns;
- if(newColumns){
- columns = newColumns;
- }
- xsHiddenColumns = data.xsHiddenColumns;
- smHiddenColumns = data.smHiddenColumns;
- columnsAll = data.columnsAll;
- if(newColumns){
- columnsAll = newColumns;
- }
- openRowFlag = data.openRowFlag == 'true'? true: false;
- rowOverFlag = data.rowOverFlag == 'true'? true: false;
- rowCheckable = data.rowCheckable == 'true'? true: false;
- requestURL = data.requestURL;
- //requestAllData = data.requestAllData;
- requestParameters = data.requestParameters;
- tableHeight = data.tableHeight;
- tableWidth = data.tableWidth;
- columnsTooLong = data.columnsTooLong;
- sTotalRecordsSource = data.sTotalRecordsSource;
- if(data.sTotalRecords){ //性能的情况直接指定总行数
- totalRecords = parseInt(data.sTotalRecords);
- }
- if(totalPage){ //可以从参数指定总行数,适用于单独发请求获得总行数的场景
- totalRecords = totalPage;
- }
- if(data.requestType){
- requestType = data.requestType;
- }
- },
- "error" : function (xhr, info) {
- alert('Communication Error! Error reason:' + info);
- }
- });
-
- $('div#dataTableWrapperDiv' + contextData.curentDatableId).css('width', tableWidth);
-
- if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){
- alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!');
- return;
- }
-
- generateColumns(columns, openRowFlag, rowCheckable);
- //initPickers();
- handleRecords(requestDatas, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList, totalRecords, requestType);
- //获得初始化完毕的DataTable对象
- var oTable = grid.getDataTable();
- if(openRowFlag){
- insertDetails(oTable, columnsAll, rowCheckable);
- }
- sortHandling(oTable, openRowFlag, rowCheckable);
- //oTable.fnAdjustColumnSizing(true);
- return oTable;
- },
-
- getDataGrid: function(){
- return grid;
- },
-
- setContextData: function(newContextData){
- contextData = newContextData;
- }
-
- };
-
-}();
-
-var addTableElementsId = function(){
-
- var outterDivs = $('div.dataTableWrapperDiv');
- var currentId;
-
- if(outterDivs && outterDivs.length > 0) {
- var maxId = -1;
- var divIdNo;
- $.each(outterDivs, function (index, div) {
- var divId = $(div).attr("id");
- divIdNo = divId.substring(20);
- if (divIdNo || divIdNo.length > 0){
- if (parseInt(divIdNo) > maxId) {
- maxId = parseInt(divIdNo);
- }
- }
- });
- currentId = maxId + 1;
- }
-
- var curentDatableId = "_" + currentId;
-
- var dataTableWrapperDiv = $('div#dataTableWrapperDiv');//新添加的outterDiv
- $(dataTableWrapperDiv).attr("id", "dataTableWrapperDiv" + curentDatableId);
- var dataTableWrapperDivContext = dataTableWrapperDiv;
- $('div.table-container', dataTableWrapperDiv).attr("id", "table-container" + curentDatableId);
- $('table#datatable_ajax', dataTableWrapperDiv).attr("id", "datatable_ajax" + curentDatableId);
- $('div#divOverlay', dataTableWrapperDiv).attr("id", "divOverlay" + curentDatableId);
- //$('div#buttonConfirm', dataTableWrapperDiv).attr("id", "buttonConfirm" + curentDatableId);
- //$('div#buttonUnConfirm', dataTableWrapperDiv).attr("id", "buttonUnConfirm" + curentDatableId);
- $('div#myModal', dataTableWrapperDiv).attr("id", "myModal" + curentDatableId);
- $('div#myModalConfirm', dataTableWrapperDiv).attr("id", "myModalConfirm" + curentDatableId);
- $('span#alarm_number', dataTableWrapperDiv).attr("id", "alarm_number" + curentDatableId);
-
- return {
- "curentDatableId": curentDatableId,
- "wrapperDivContext":dataTableWrapperDivContext
- }
-}
-
-var DataTableICT = function(requestDatas, tableDivId, tableDivPath, configPathPrefix, callbackList, newColumns, totalPage){
-
- /* var requestStr = "";
- if(datas){
- requestStr = JSON.stringify(datas);
- } */
-
- var lang = getLanguage();
- //lang = 'en-US';
-
- /**取得表格组件所需html片段 **/
- /*jQuery('div#' + tableDivId).load(tableDivPath, function() {
- var contextData = addTableElementsId();
- TableAjaxICT.setContextData(contextData);
-
- var lang = getLanguage();
- //lang = 'en-US';
- var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix);
-
- //重新调节列宽以适应window resize
- $(window).bind('resize', function () {
- //oTable.DataTable.models.oSettings.bAjaxDataGet = false;
- oTable.fnAdjustColumnSizing();
- } );
- });*/
-
- /**同步取得表格组件所需html片段 **/
- $.ajax({
- async : false,
- "dataType" : "html",
- "type" : "GET",
- "url" : tableDivPath,
- "data" : null,
- "success" : function (html, textStatus, jqXHR) {
- $('div#' + tableDivId).html(html);
- },
- "error" : function () {
- alert("Communication error!");
- }
- });
-
- var contextData = addTableElementsId();
- TableAjaxICT.setContextData(contextData);
-
- var oTable = TableAjaxICT.init(requestDatas, lang, configPathPrefix, callbackList, newColumns, totalPage);
-
- //重新调节列宽以适应window resize
- $(window).bind('resize', function () {
- //oTable.DataTable.models.oSettings.bAjaxDataGet = false;
- oTable.fnAdjustColumnSizing();
- } );
-
- return TableAjaxICT.getDataGrid();
-}
diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js b/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js
deleted file mode 100644
index 5fa69e5..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js
+++ /dev/null
@@ -1,1215 +0,0 @@
-/***
- Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
- ***/
-var DatatableICT = function () {
-
- var tableOptions; // main options
- var dataTable; // datatable object
- var table; // actual table jquery object
- var tableContainer; // actual table container object
- var tableWrapper; // actual table wrapper jquery object
- var tableInitialized = false;
- var ajaxParams = []; // set filter mode
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnMaxLength = 30;
- var columnsTooLong;
- var hidden_xs_maxWidth = 768;
- var hidden_sm_maxWidth = 991;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
-
- var aTargetsAll;
- var sTotalRecordsSource;
- var tableHeight;
-
- var includedInXsHiddenColumns = function(columnId){
- for(var i=0;i<xsHiddenColumns.length; i++ ){
- var column = xsHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var includedInSmHiddenColumns = function(columnId){
- for(var i=0;i<smHiddenColumns.length; i++ ){
- var column = smHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var countSelectedRecords = function() {
- var selected = $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- var text = tableOptions.dataTable.oLanguage.sGroupActions;
- if (selected > 0) {
- $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected));
- } else {
- $('.table-group-actions > span', tableWrapper).text("");
- }
- }
-
- var jsonObjectToArray = function(json, columns, iDraw){
- var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 };
- for(var i=0; i<json.response.data.length; i++){
- jsonToDatatable.aaData[i] = [];
- var resRowObject = json.response.data[i];
- if(rowCheckable){
- jsonToDatatable.aaData[i].push("<input type=\"checkbox\" name=\"id[]\" value=\"1\">");
- }
- if(openRowFlag){
- jsonToDatatable.aaData[i].push("<span class=\"row-details row-details-close\"></span>");
- }
- for(var j=0; j<columns.length; j++){
-
- if($(window).width() >= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){
- /*隐藏pad尺寸需要隐藏的列*/
- }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){
- /*隐藏手机尺寸需要隐藏的列*/
- }else{
- var currentColumnId = columns[j].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...');
- }else{
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
- } else {
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
-
- }
- }
- }
- jsonToDatatable.sEcho++;
- var totalRow = 0;
- var totalRecordsSource = eval('json.' + sTotalRecordsSource);
- if(totalRecordsSource && totalRecordsSource.length >0){
- totalRow = parseInt(totalRecordsSource);
- }
- if(isNaN(totalRow)){
- alert('All rows counting number got fail!');
- }else{
- jsonToDatatable.iTotalRecords = totalRow;
- jsonToDatatable.iTotalDisplayRecords = totalRow;
- }
- return jsonToDatatable;
- }
-
- var singleAlarmDel = function(divOverlay){
-
- //根据浮动框的当前id获取需要删除的行
- var trId = divOverlay.attr('id_tr');
- tr=$('tr#' + trId);
- var tds = $(tr).children();
- var tdAlarmId = $(tds.eq(2)).text();
-
- var data= {
- "alarmId":[parseInt(tdAlarmId)]
- };
-
- var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "DELETE",
- "url": sSource,
- "data" : null,
- "contentType" : 'application/json; charset=utf-8',
- "success": function(json) {
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- //alert('删除成功');
- }
- if(json.response.status == -1){
- //alert('删除失败');
- }
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var singleAlarmAckUnAck = function(divOverlay, ackType){
-
- //根据浮动框的当前id获取需要确认的行
- var trId = divOverlay.attr('id_tr');
- var tr = $('tr#' + trId);
-
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable');
- //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead);
- var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead);
- var tdDivs = $('td > div', trHead);
-
- var tds = $(tr).children();
- var tdAlarmId = "";
- if(rowCheckable){
- tdAlarmId = $(tds.eq(2)).text();
- }else{
- tdAlarmId = $(tds.eq(1)).text();
- }
-
- var aoData =
- {
- "dataSource":"isc_PageRestDataSource_0",
- "operationType":"update",
- "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0",
- "data":{
- "viewType":1,
- "state":ackType,
- "alarmId":[
- parseInt(tdAlarmId)
- ]
- },
- "oldValues":null
- };
-
- var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "PUT",
- "url": sSource,
- "contentType": 'application/json; charset=utf-8',
- "data": JSON.stringify(aoData),
- "success": function(json) {
- json = AlarmLabels.transformFieldNames(json);
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- var columnsCopy = $.extend(true, [], columns);
- //隐藏列的情况下需要特殊处理
- if($(window).width()>=hidden_xs_maxWidth && $(window).width()<hidden_sm_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInSmHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- } else if($(window).width()<hidden_xs_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInXsHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- }
- var iIndex = 1;
- if(rowCheckable){
- iIndex = 2;
- }
- for(var i=iIndex;i<tds.length && (i-iIndex)<columnsCopy.length;i++){
- var currentColumnId = columnsCopy[i-iIndex].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1) {
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- }else{
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- } else {
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- }
- //更新缓存中的当前行数据
- for (var t = 0; t < dataTable.datas.length; t++) {
- var temp = dataTable.datas[t];
- if (temp.alarmId == resRowObject['alarmId']) {
- dataTable.datas[t] = resRowObject;
- break;
- }
- }
- }
- if(json.response.status == -1){
- $('div#myModalConfirm').modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('span#alarm_number').html(tdAlarmId);
- //国际化信息
- if(ackType==1){
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok'));
- }else{
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un'));
- }
- }
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var addRowOverlap = function(){
- var $tableData = $('table#datatable_ajax');
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable');
- var trHeads = $tableHead.find('tr').get();
- $.each( trHeads, function( index, trHead ){
- $(trHead).attr('id', 'headTableTR' + index);
- });
- //取得浮动div
- var $divOverlay = $('div#divOverlay');
- var divScrollHead = $('div.dataTables_scrollHead');
- var divRightPadding = $('div#divRightPadding');
- //取表头下边沿位置
- var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height();
- var tableBottom = $tableData.position().top + $tableData.height();
- //取表格右边沿位置
- var tableRightEdgePosition = $(divRightPadding).position().left;
- var trs = $tableData.find('tr').get();
- $.each( trs, function( index, tr ){
- var tdEmpty = $('td.dataTables_empty',tr);
- if(!tdEmpty || tdEmpty.length ==0 ){
- $(tr).attr('id', 'bodyTableTR' + index);
- //$divOverlay.attr('id_tr', 'bodyTableTR' + index);
- $(tr).one('hover', function(){
- var rowPos = $(tr).position();
- var currentTrTop = rowPos.top;
- //var bottomLeft = rowPos.left;
- $divOverlay.attr('id_tr', 'bodyTableTR' + index);
- $divOverlay.css({
- display: 'block',
- position: 'absolute',
- 'background-color': '#e5e5e5',
- //opacity: 0.7,
- border: 'solid 0px',
- top: currentTrTop + 6,
- left: tableRightEdgePosition - 308,
- width: 300,
- height: 30
- });
- //防止浮动框跳出表格内容区域
- if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){
- $divOverlay.css('display', 'none');
- }
- var buttonConfirm = $('div#buttonConfirm', $divOverlay);
- var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay);
- $(buttonConfirm).one('click', function(){
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded');
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 1);
- }
- });
- $(buttonUnConfirm).one('click', function(){
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded');
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 2);
- }
- });
- var buttonDelete = $('div#buttonDelete', $divOverlay);
- $(buttonDelete).die().live('click', function(){
- //弹出删除确认对话框
- $('div#myModal').modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('#delConfirm').die().live('click', function(){
- $divOverlay.css('display', 'none');
- dataTable.fnClose(tr);
- $(tr).remove();
- //删除表头表格的相应行
- $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove();
- //删除后端数据
- singleAlarmDel($divOverlay);
- //刷新表格
- dataTable.fnAdjustColumnSizing();
- });
- });
- //展开行的情况隐藏
- $('td.details > table.detailTable').on('hover', function(){
- $divOverlay.css('display', 'none');
- });
- });
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) {
-
- if (!$().dataTable) {
- return;
- }
-
- var the = this;
-
- //记录需要禁掉默认排序的列
- var aTargets = [];
- var targetsLength = columnsDefined.length;
- if(rowCheckable)targetsLength++;
- if(openRowFlag)targetsLength++;
- for(var i=0;i<targetsLength;i++){
- aTargets.push(i);
- }
- aTargetsAll = aTargets;
-
- // default settings
- options = $.extend(true, {
- src: "", // actual table
- filterApplyAction: "filter",
- filterCancelAction: "filter_cancel",
- resetGroupActionInputOnSuccess: true,
- dataTable: {
- //"sDom" : "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout
-
- "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column)
- 'bSortable' : false,
- 'aTargets' : aTargets
- }],
-
- "bAutoWidth": false, // disable fixed width and enable fluid table
- //"bSortCellsTop": true, // make sortable only the first row in thead
- "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended)
- "bProcessing": true, // enable/disable display message box on record load
- "bServerSide": true, // enable/disable server side ajax loading
- "sAjaxSource": "", // define ajax source URL
- //"sServerMethod": "GET",
-
- // handle ajax request
- "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
- //for ICT Paging
- //var startIndex = aoData[3].value;//"iDisplayStart"
- //var pageLength = aoData[4].value;//"iDisplayLength"
- var oPaging = oSettings.oInstance.fnPagingInfo();
- //var startIndex = oPaging.iStart;
- var pageLength = oPaging.iLength;
- var curPageNo = oPaging.iPage + 1;
-
- for(var k=aoData.length-1;k>=0;k--){
- var flag = -1;
- if(aoData[k].name=='pageSize'){
- aoData[k].value=pageLength;
- flag++;
- }
- if(aoData[k].name=='pageNo'){
- aoData[k].value=curPageNo;
- flag++
- }
- if(flag == 1)break;
- }
-
- oSettings.jqXHR = $.ajax( {
- "dataType": 'json',
- "type": "GET",
- "url": sSource,
- "data": aoData,
- "success": function(res, textStatus, jqXHR) {
- if (res.sMessage) {
- onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'});
- }
- if ($('.group-checkable', tableContainer).size() === 1) {
- $('.group-checkable', tableContainer).attr("checked", false);
- $.uniform.update($('.group-checkable', tableContainer));
- }
- if (tableOptions.onSuccess) {
- tableOptions.onSuccess.call(the);
- }
- //保存数据在dataTable对象中给行详细信息面板用
- dataTable.datas = res.response.data;
- if(res.response.status < 0){
- alert(res.response.data);
- return;
- }
-
- //告警字段值转换
- res = AlarmLabels.transformFieldNames(res);
-
- res = jsonObjectToArray(res, columns, oSettings.iDraw);
-
- //重绘表格
- fnCallback(res, textStatus, jqXHR);
- },
- "error": function() {
- if (tableOptions.onError) {
- tableOptions.onError.call(the);
- }
- onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'});
- $('.dataTables_processing', tableWrapper).remove();
- }
- } );
-
- },
-
- // pass additional parameter
- "fnServerParams": function ( aoData ) {
- //here can be added an external ajax request parameters.
- //for(var i in ajaxParams) {
- for(var i=0; i<ajaxParams.length; i++){
- var param = ajaxParams[i];
- aoData.push({"name" : param.name, "value": param.value});
- }
- },
-
- "fnDrawCallback": function( oSettings ) { // run some code on table redraw
- if (tableInitialized === false) { // check if table has been initialized
- tableInitialized = true; // set table initialized
- table.show(); // display table
- }
- onapFrameWork.initUniform($('input[type="checkbox"]', tableContainer)); // reinitialize uniform checkboxes on each table reload
- countSelectedRecords(); // reset selected records indicator
- //所有td不换行
- $('table#datatable_ajax').find('td').css('white-space', 'nowrap');
-
- //自适应对齐表头
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var tbodyHead = $('tbody', $tableHead);
- if(tbodyHead && tbodyHead.length >0){
- $(tbodyHead).remove();
- }
-
- var $tableBody = $('table#datatable_ajax', tableWrapper);
- var trIn = $('thead > tr:nth-child(1)', $tableHead);
- var trBodyHead = $('thead > tr:nth-child(1)', $tableBody);
- var tds = $(trIn).children();
- var ths = $(trBodyHead).children();
- for(var k=0;k<tds.length;k++){
- $(ths.eq(k)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(k).html() + '</div>');
- }
- var bodyRows = $('tbody > tr', $tableBody);
- for(var i=0;i<bodyRows.length;i++){
- var rowClone = $(bodyRows.eq(i)).clone();
- var tds = $(rowClone).children();
- for(var j=0;j<tds.length;j++){
- $(tds.eq(j)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(j).html() + '</div>');
- $(tds.eq(j)).height('0px');
- $(tds.eq(j)).css('padding-top','0px');
- $(tds.eq(j)).css('padding-bottom','0px');
- $(tds.eq(j)).css('border-top-width','0px');
- $(tds.eq(j)).css('border-bottom-width','0px');
- }
- $(rowClone).height('0px');
- $tableHead.append($(rowClone).prop("outerHTML"));
- }
-
- $('.dataTables_scrollBody').css('width','100%');
- $('.dataTables_scrollHead').css('width','98.5%');
- $('.dataTables_scrollHeadInner').css('padding-right', 0);
-
- //添加浮动确认反确认按钮
- if(rowOverFlag){
- addRowOverlap();
- }
-
- //设置表格本体高度
- $('div.dataTables_scrollBody').css('height', tableHeight);
- }
- }
- }, options);
-
- tableOptions = options;
-
- columns = columnsDefined;
- xsHiddenColumns = xsHiddenColumnsDefined;
- smHiddenColumns = smHiddenColumnsDefined;
- // create table's jquery object
- table = $(options.src);
- tableContainer = table.parents(".table-container");
- // apply the special class that used to restyle the default datatable
-
- $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper";
-
- // initialize a datatable
- dataTable = table.dataTable(options.dataTable);
-
- tableWrapper = table.parents('.dataTables_wrapper');
-
- // modify table per page dropdown input by appliying some classes
- $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm");
-
- // handle group checkboxes check/uncheck
- $('.group-checkable', tableContainer).change(function () {
- var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table);
- var checked = $(this).is(":checked");
- $(set).each(function () {
- $(this).attr("checked", checked);
- });
- $.uniform.update(set);
- countSelectedRecords();
- });
-
- // handle row's checkbox click
- table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){
- countSelectedRecords();
- });
-
- //填充表头右边界
- $('.dataTables_scrollHead').css('display','inline-block');
- //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" );
- $(".dataTables_scrollHead").after("<div id='divRightPadding' style='overflow: hidden; background:#eee; position: relative; float:right; border: 1px solid #ddd; height:" + 38 + "px; width: 1.4%;'></div>");
- if($.browser.mozilla){
- $('#divRightPadding').css('height', '40');
- }
-
- //隐藏掉某些列
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableBody = $('table#datatable_ajax', tableWrapper);
-
- for(var i=0;i<xsHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(xsHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs');
- break;
- }
- }
- }
-
- for(var i=0;i<smHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(smHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm');
- break;
- }
- }
- }
- },//end init------------------------------------------------------------------------------------
-
- getSelectedRowsCount: function() {
- return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- },
-
- getSelectedRows: function() {
- var rows = [];
- $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){
- rows.push({name: $(this).attr("name"), value: $(this).val()});
- });
-
- return rows;
- },
-
- addAjaxParam: function(name, value) {
- ajaxParams.push({"name": name, "value": value});
- },
-
- clearAjaxParams: function(name, value) {
- ajaxParams = [];
- },
-
- getDataTable: function() {
- return dataTable;
- },
-
- getTableWrapper: function() {
- return tableWrapper;
- },
-
- gettableContainer: function() {
- return tableContainer;
- },
-
- getTable: function() {
- return table;
- },
-
- setOpenRowFlag: function(openRowFlagInput) {
- openRowFlag = openRowFlagInput;
- },
-
- setRowOverFlag: function(rowOverFlagInput) {
- rowOverFlag = rowOverFlagInput;
- },
-
- setRowCheckable: function(rowCheckableInput) {
- rowCheckable = rowCheckableInput;
- },
-
- setColumnsTooLong: function(columnsTooLongInput) {
- columnsTooLong = columnsTooLongInput;
- },
-
- setSTotalRecordsSource: function(sTotalRecordsSourceInput){
- sTotalRecordsSource = sTotalRecordsSourceInput;
- },
-
- setTableHeight: function(tableHeightInput){
- tableHeight = tableHeightInput;
- }
-
- };
-
-};
-
-var TableAjaxICT = function () {
-
- var initPickers = function () {
- //init date pickers
- $('.date-picker').datepicker({
- //rtl: App.isRTL(),
- autoclose: true
- });
- }
-
- //判断a数组是否包含b数组
- function isContained(largeArray, smallArray){
- if(!(largeArray instanceof Array) || !(smallArray instanceof Array))
- return false;
- if(largeArray.length < smallArray.length)
- return false;
- for(var i = 0; i < smallArray.length; i++){
- var flag = false;
- for(j=0;j<largeArray.length;j++){
- if(largeArray[j].columnId == smallArray[i].columnId){
- flag = true;
- break;
- }
- }
- if(flag==false)return false;
- }
- return true;
- }
-
- var grid = new DatatableICT();
-
- /* Formatting function for row details */
- function fnFormatDetails(oTable, nTr, columns, rowCheckable) {
- //取得当前行显示数据
- var tds = $(nTr).children();
- var alarmId="";
- if(rowCheckable){
- alarmId = $(tds.eq(2)).html();
- }else{
- alarmId = $(tds.eq(1)).html();
- }
- //取得当前行完整数据
- var systemType = 0;
- var code = 0;
- //所有字段
- var resDisplayName="";
- var moc="";
- var alarmRaisedTime="";
- var perceivedSeverity="";
- var probableCauseDesc="";
- var neip="";
- var alarmType="";
- var ackState="";
- var ackTime="";
- var ackUserId="";
- var ackSystemId="";
- var alarmChangedTime="";
- var componentname="";
- var position1="";
- var specificproblem="";
- var additionalText="";
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == alarmId) {
- alarmId = temp.alarmId;
- resDisplayName = temp.resDisplayName;
- alarmRaisedTime = temp.alarmRaisedTime;
- perceivedSeverity = temp.perceivedSeverity;
- probableCauseDesc = temp.probableCauseDesc;
- neip = temp.neip;
- alarmType = temp.alarmType;
- ackState = temp.ackState;
- ackTime = temp.ackTime;
- ackUserId = temp.ackUserId;
- ackSystemId = temp.ackSystemId;
- alarmChangedTime = temp.alarmChangedTime;
-
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- moc = temp.moc;
- componentname = temp.componentname;
- position1 = temp.position1;
- specificproblem = temp.specificproblem;
- additionalText = temp.additionalText;
- break;
- }
- }
-
- var id = alarmId;
- var sOut = '<table class = "detailTable" width = 900>';
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle" width = 80><span class = "labelDetailTable">' + columns[0].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmId + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "labelDetailTable">' + columns[4].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + perceivedSeverity + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "labelDetailTable">' + columns[9].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmType + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 80><span class = "labelDetailTable">' + columns[3].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmRaisedTime + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[5].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + probableCauseDesc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[15].columnTitle + '</span></td><td class = "detailCellStyle">' + alarmChangedTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[11].columnTitle + '</span></td><td class = "detailCellStyle">' + ackState + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[12].columnTitle + '</span></td><td class = "detailCellStyle">' + ackTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[13].columnTitle + '</span></td><td class = "detailCellStyle">' + ackUserId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[14].columnTitle + '</span></td><td class = "detailCellStyle">' + ackSystemId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[7].columnTitle + '</span></td><td class = "detailCellStyle">' + neip + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[2].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + moc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[1].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + resDisplayName + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[8].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + componentname + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[16].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + position1 + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[10].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 7>' + specificproblem + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[6].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 7>' + additionalText + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "defaulInfo' + id + '" class = "detailCellStyle" colspan = 7>' + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "customInfo' + id + '" class = "detailCellStyle" colspan = 7><td align="right"><button id = "customInfoModify' + id + '" class="btn-toolbar" type="button"><span id = "modifyBtnSpan' + id + '"class="fa fa-pencil-square-o"></span></button></td><td id="cancelDiv' + id + '"></td></td></tr>';
-
- sOut += '</table>';
-
- /*
- var systemType = 0;
- var code = 0;
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == oTr['alarmId'].value) {
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- }
- }*/
- var data = {
- "systemType" : systemType,
- "code" : code
- };
- var sendData = JSON.stringify(data);
- $.ajax({
- "dataType" : 'json',
- "type" : "GET",
- "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData,
- "contentType" : 'application/json; charset=utf-8',
- "data" : null,
- "success" : function (json) {
- $('tr').find('td#defaulInfo' + id).text(json.defaulInfo);
- $('tr').find('td#customInfo' + id).text(json.customInfo);
- var modify = $('#customInfoModify' + id);
- modify.on('click', function () {
- var span = $('#modifyBtnSpan' + id);
- var customInfo = $('tr').find('td#customInfo' + id);
- var cancel = $('#cancelDiv' + id);
- if (span['0'].className === 'fa fa-pencil-square-o') {
- var value = customInfo['0'].textContent;
- customInfo['0'].textContent = '';
- customInfo['0'].innerHTML = '<textarea id="customInfoInput' + id + '" type="textarea" cols=100 rows=4>' + value + '</textarea>';
- span['0'].className = 'fa fa-floppy-o';
- cancel['0'].innerHTML = '<button id = "cancelBtn' + id + '" class="btn-toolbar" type="button"><span class="fa fa-sign-out"></span></button>';
- $('#cancelBtn' + id).on('click', function () {
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = value;
- cancel['0'].innerHTML = '';
- span['0'].className = 'fa fa-pencil-square-o';
- });
- } else {
- var inputValue = $('#customInfoInput' + id)['0'].value;
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = inputValue;
- span['0'].className = 'fa fa-pencil-square-o';
- cancel['0'].innerHTML = '';
- var modifyData = {
- "systemType" : systemType,
- "code" : code,
- "defaulInfo" : json.defaulInfo,
- "customInfo" : inputValue
- };
- $.ajax({
- "dataType" : 'json',
- "type" : "PUT",
- "url" : "/web/rest/web/fm/Maintenance",
- "contentType" : 'application/json; charset=utf-8',
- "data" : JSON.stringify(modifyData),
- "error" : function () {
- alert('Modify Error!');
- }
- });
- }
- });
- },
- "error" : function () {
- alert('Communication Error!');
- }
- });
-
- return sOut;
- }
-
- var generateColumns = function(columns, openRowFlag, rowCheckable){
- var $tableData = $('table#datatable_ajax');
- var theadTR = $('thead > tr', $tableData);
- if(rowCheckable){
- theadTR.append('<th><input type="checkbox" class="group-checkable"></th>');
- }
- if(openRowFlag){
- theadTR.append('<th>&nbsp;&nbsp;</th>');
- }
- for(var i=0;i<columns.length;i++){
- theadTR.append('<TH id="' + columns[i].columnId + '" style="white-space: nowrap;">' + columns[i].columnTitle + '</TH>');
- }
- }
-
- var sortHandling = function(oTable, openRowFlag, rowCheckable){
- var indexSkip = -1;
- if(openRowFlag&&rowCheckable){
- indexSkip = 1;
- }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){
- indexSkip = 0;
- }
- var $sortOrder = 0; //排序类型 1表示升序,0表示降序
- var tableWrapper = $('div#datatable_ajax_wrapper');
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableData = $('table#datatable_ajax');
- var clearSort = function(currentTh){
- var ths = $tableHead.find('th').get();
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- if(index > indexSkip){
- if($(th).text() != currentTh.text()){
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- }
- }
- });
- }
-
- $('th', $tableHead).each(function( column )
- {
- if(column>indexSkip){
- //处理三种有可能存在的排序字段,比较方法
- var findSortKey;
- if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') )
- {
- findSortKey = function( $cell )
- {
- var cellText = $cell.text();
- if(isNaN(cellText)){
- return $cell.text().toUpperCase();
- }else{
- return parseFloat(cellText);
- }
- //return $cell.text().toUpperCase();
- }
- }
- else if( $(this).is('.sort-date') )
- {
- findSortKey = function( $cell )
- {
- return Date.parse('1' + $cell.text());
- }
- }
- else if( $(this).is('.sort-price') )
- {
- findSortKey = function( $cell )
- {
- var key = parseFloat($cell.text().replace(/^[^\d.]*/, ''))
- return isNaN(key) ? 0 : key;
- }
- }
-
- //排序
- if( findSortKey )
- {
- $(this).click(function()
- {
- $sortOrder = $sortOrder == 0 ? 1 : 0;
- var tableDataHeadTHs = $tableData.find('th').get();
-
- if($sortOrder == 1){
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }else{
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }
- clearSort($(this));
-
- var rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- //先关掉所有行
- if ( oTable.fnIsOpen(row) )
- {
- $(row).find('.row-details').click();
- }
- });
-
- //重新取得所有行,否则排序后表格显示异常
- rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- row.sortKey = findSortKey($(row).children('td').eq(column));
- });
- //排序方法
- rows.sort(function( a, b )
- {
- if( $sortOrder == 1 )
- {
- //升序
- if(a.sortKey < b.sortKey) return -1;
- if(a.sortKey > b.sortKey) return 1;
- return 0;
- }
- else
- {
- //降序
- if(a.sortKey < b.sortKey) return 1;
- if(a.sortKey > b.sortKey) return -1;
- return 0;
- }
- });
- //排序后的对象添加给$table
- $.each( rows, function( index, row )
- {
- $tableData.children('tbody').append(row);
- row.sortKey = null;
- });
- });
- }
- }
- });
- }
-
- var handleRecords = function(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource) {
-
- /*
- jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json',
- function(data) {
- oLanguage = data;
- });
- */
- grid.setOpenRowFlag(openRowFlag);
- grid.setRowCheckable(rowCheckable);
- grid.setRowOverFlag(rowOverFlag);
- grid.setColumnsTooLong(columnsTooLong);
- grid.setSTotalRecordsSource(sTotalRecordsSource);
- grid.setTableHeight(tableHeight);
- //取得查询条件
-// if(!requestStr || requestStr.length == 0){
-// requestStr = JSON.stringify(requestAllData);
-// }
- grid.clearAjaxParams();
- grid.addAjaxParam('data', requestStr);
- //取得其他参数
- for(var i=0;i<requestParameters.length;i++){
- grid.addAjaxParam(requestParameters[i].paraId,requestParameters[i].paraValue);
- }
-
- grid.init({
- src: $("#datatable_ajax"),
- onSuccess: function(grid) {
- // execute some code after table records loaded
- var tableWrapper = $('div#datatable_ajax_wrapper');
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var ths = $tableHead.find('th').get();
- var $tableData = $('table#datatable_ajax');
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- //clear all sort direction
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- });
-
- },
- onError: function(grid) {
- // execute some code on network or other general error
- },
- dataTable: {
- "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout
- "oLanguage": oLanguage,
- //"bAutoWidth": true,
- "sScrollY": tableHeight,
- "bScrollCollapse": true,
- "sScrollX": "100%",
- //"sScrollXInner": "110%",
- "aLengthMenu": [
- [20, 50, 100],
- [20, 50, 100] // change per page values here
- ],
- "iDisplayLength": 20, // default record count per page
- "bServerSide": true, // server side processing
- "sAjaxSource": requestURL // ajax source
- }
- }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable);
- }
-
- /*
- * Insert a 'details' column to the table
- */
- var insertDetails = function (oTable, columns, rowCheckable) {
-
- var $tableData = $('table#datatable_ajax');
-
- $tableData.on('click', ' tbody td .row-details', function () {
- var nTr = $(this).parents('tr')[0];
- if (oTable.fnIsOpen(nTr)) {
- /* This row is already open - close it */
- $(this).addClass("row-details-close").removeClass("row-details-open");
- oTable.fnClose(nTr);
- } else {
- /* Open this row */
- $(this).addClass("row-details-open").removeClass("row-details-close");
- oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details');
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (requestStr, lang, configPathPrefix) {
-
- var oLanguage;
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnsAll;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
- var requestURL="";
- var requestAllData;
- var requestParameters;
-
- var tableHeight;
- var tableWidth;
-
- var columnsTooLong;
- var sTotalRecordsSource="";
-
- //取得当前配置及国际化信息
- $.ajax({
- dataType: 'json',
- url: configPathPrefix + '-' + lang + '.json',
- async: false,
- contentType:'application/json; charset=utf-8',
- "success": function(data) {
- oLanguage = data.language;
- columns = data.columns;
- xsHiddenColumns = data.xsHiddenColumns;
- smHiddenColumns = data.smHiddenColumns;
- columnsAll = data.columnsAll;
- openRowFlag = data.openRowFlag == 'true'? true: false;
- rowOverFlag = data.rowOverFlag == 'true'? true: false;
- rowCheckable = data.rowCheckable == 'true'? true: false;
- requestURL = data.requestURL;
- //requestAllData = data.requestAllData;
- requestParameters = data.requestParameters;
- tableHeight = data.tableHeight;
- tableWidth = data.tableWidth;
- columnsTooLong = data.columnsTooLong;
- sTotalRecordsSource = data.sTotalRecordsSource;
- },
- "error" : function (xhr, info) {
- alert('Communication Error! Error reason:' + info);
- }
- });
-
- $('#dataTableWrapperDiv').css('width', tableWidth);
-
- if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){
- alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!');
- return;
- }
-
- generateColumns(columns, openRowFlag, rowCheckable);
- //initPickers();
- handleRecords(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource);
- //获得初始化完毕的DataTable对象
- var oTable = grid.getDataTable();
- if(openRowFlag){
- insertDetails(oTable, columnsAll, rowCheckable);
- }
- sortHandling(oTable, openRowFlag, rowCheckable);
- //oTable.fnAdjustColumnSizing(true);
- return oTable;
- }
-
- };
-
-}();
-
-var DataTableSmartClient = function(datas, configPathPrefix){
-
- var requestStr = "";
- if(datas){
- requestStr = JSON.stringify(datas);
- }
-
- var lang = getLanguage();
- //lang = 'en-US';
- loadi18n_FM(lang);
- //requestStr = "";
- var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix);
-
- //重新调节列宽以适应window resize
- $(window).one('resize', function () {
- //oTable.DataTable.models.oSettings.bAjaxDataGet = false;
- oTable.fnAdjustColumnSizing(false);
- } );
-}
diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js b/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js
deleted file mode 100644
index 7440d91..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js
+++ /dev/null
@@ -1,1312 +0,0 @@
-/***
- Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin
- ***/
-var DatatableICT = function () {
-
- var tableOptions; // main options
- var dataTable; // datatable object
- var table; // actual table jquery object
- var tableContainer; // actual table container object
- var tableWrapper; // actual table wrapper jquery object
- var tableInitialized = false;
- var ajaxParams = []; // set filter mode
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnMaxLength = 30;
- var columnsTooLong;
- var hidden_xs_maxWidth = 768;
- var hidden_sm_maxWidth = 991;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
-
- var aTargetsAll;
- var sTotalRecordsSource;
- var tableHeight;
-
- var callbackList = [];
-
- var includedInXsHiddenColumns = function(columnId){
- for(var i=0;i<xsHiddenColumns.length; i++ ){
- var column = xsHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var includedInSmHiddenColumns = function(columnId){
- for(var i=0;i<smHiddenColumns.length; i++ ){
- var column = smHiddenColumns[i];
- if(columnId == column.columnId){
- return true;
- }
- }
- return false;
- }
-
- var countSelectedRecords = function() {
- var selected = $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- var text = tableOptions.dataTable.oLanguage.sGroupActions;
- if (selected > 0) {
- $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected));
- } else {
- $('.table-group-actions > span', tableWrapper).text("");
- }
- }
-
- var jsonObjectToArray = function(json, columns, iDraw){
- var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 };
- for(var i=0; i<json.response.data.length; i++){
- jsonToDatatable.aaData[i] = [];
- var resRowObject = json.response.data[i];
- if(rowCheckable){
- jsonToDatatable.aaData[i].push("<input type=\"checkbox\" name=\"id[]\" value=\"1\">");
- }
- if(openRowFlag){
- jsonToDatatable.aaData[i].push("<span class=\"row-details row-details-close\"></span>");
- }
- for(var j=0; j<columns.length; j++){
-
- if($(window).width() >= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){
- /*隐藏pad尺寸需要隐藏的列*/
- }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){
- /*隐藏手机尺寸需要隐藏的列*/
- }else{
- var currentColumnId = columns[j].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...');
- }else{
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
- } else {
- jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]);
- }
-
- }
- }
- }
- jsonToDatatable.sEcho++;
- var totalRow = 0;
- var totalRecordsSource = eval('json.' + sTotalRecordsSource);
- if(totalRecordsSource && totalRecordsSource.length >0){
- totalRow = parseInt(totalRecordsSource);
- }
- if(isNaN(totalRow)){
- alert('All rows counting number got fail!');
- }else{
- jsonToDatatable.iTotalRecords = totalRow;
- jsonToDatatable.iTotalDisplayRecords = totalRow;
- }
- return jsonToDatatable;
- }
-
- var singleAlarmDel = function(divOverlay){
-
- //根据浮动框的当前id获取需要删除的行
- var trId = divOverlay.attr('id_tr');
- tr=$('tr#' + trId);
- var tds = $(tr).children();
- var tdAlarmId = "";
- if(rowCheckable){
- tdAlarmId = $(tds.eq(2)).text();
- }else{
- tdAlarmId = $(tds.eq(1)).text();
- }
-
- var data= {
- "alarmId":[parseInt(tdAlarmId)]
- };
-
- var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "DELETE",
- "url": sSource,
- "data" : null,
- "contentType" : 'application/json; charset=utf-8',
- "success": function(json) {
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- //alert('删除成功');
- }
- if(json.response.status == -1){
- //alert('删除失败');
- }
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var singleAlarmAckUnAck = function(divOverlay, ackType){
-
- //根据浮动框的当前id获取需要确认的行
- var trId = divOverlay.attr('id_tr');
- var tr = $('tr#' + trId);
-
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable');
- //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead);
- var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead);
- var tdDivs = $('td > div', trHead);
-
- var tds = $(tr).children();
- var tdAlarmId = "";
- if(rowCheckable){
- tdAlarmId = $(tds.eq(2)).text();
- }else{
- tdAlarmId = $(tds.eq(1)).text();
- }
-
- var aoData =
- {
- "dataSource":"isc_PageRestDataSource_0",
- "operationType":"update",
- "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0",
- "data":{
- "viewType":1,
- "state":ackType,
- "alarmId":[
- parseInt(tdAlarmId)
- ]
- },
- "oldValues":null
- };
-
- var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json";
-
- $.ajax( {
- "dataType": 'json',
- "type": "PUT",
- "url": sSource,
- "contentType": 'application/json; charset=utf-8',
- "data": JSON.stringify(aoData),
- "success": function(json) {
- /*for(var i=0;i<callbackList.length;i++){
- if(getFnName(callbackList[i]).indexOf("transformFieldNames")>0){
- json = callbackList[i](json);
- break;
- }
- }*/
- //json = AlarmLabels.transformFieldNames(json);
- if(callbackList[1]){
- json = callbackList[1](json);
- }
- if(json.response.status == 0){
- var resRowObject = json.response.data[0];
- var columnsCopy = $.extend(true, [], columns);
- //隐藏列的情况下需要特殊处理
- if($(window).width()>=hidden_xs_maxWidth && $(window).width()<hidden_sm_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInSmHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- } else if($(window).width()<hidden_xs_maxWidth){
- columnsCopy = [];
- for(var i=0;i<columns.length;i++){
- if(!includedInXsHiddenColumns(columns[i].columnId)){
- columnsCopy.push(columns[i]);
- }
- }
- }
- var iIndex = 1;
- if(rowCheckable){
- iIndex = 2;
- }
- for(var i=iIndex;i<tds.length && (i-iIndex)<columnsCopy.length;i++){
- var currentColumnId = columnsCopy[i-iIndex].columnId;
- if(jQuery.inArray(currentColumnId, columnsTooLong) > -1) {
- var rawText = "";
- for(var k=0;k<columnsTooLong.length;k++){
- if(currentColumnId == columnsTooLong[k]){
- rawText = resRowObject[currentColumnId];
- break;
- }
- }
- if(rawText.length > columnMaxLength){
- $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...');
- }else{
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- } else {
- $(tds.eq(i)).html(resRowObject[currentColumnId]);
- $(tdDivs.eq(i)).html(resRowObject[currentColumnId]);
- }
- }
- //更新缓存中的当前行数据
- for (var t = 0; t < dataTable.datas.length; t++) {
- var temp = dataTable.datas[t];
- if (temp.alarmId == resRowObject['alarmId']) {
- dataTable.datas[t] = resRowObject;
- break;
- }
- }
- }
- if(json.response.status == -1){
- $('div#myModalConfirm').modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('span#alarm_number').html(tdAlarmId);
- //国际化信息
- if(ackType==1){
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok'));
- }else{
- $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un'));
- }
- }
- //填充单元格颜色
- var divColor = $("div.cellBackgroundColor", tr);
- $(divColor).parent().css("background", $(divColor).css("background-color"));
- },
- "error": function() {
- alert('Communication Error!');
- }
- } );
- }
-
- var addRowOverlap = function(){
- var $tableData = $('table#datatable_ajax');
- //取得隐藏的头部表格的相应行
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable');
- var trHeads = $tableHead.find('tr').get();
- $.each( trHeads, function( index, trHead ){
- $(trHead).attr('id', 'headTableTR' + index);
- });
- //取得浮动div
- var $divOverlay = $('div#divOverlay');
- var divScrollHead = $('div.dataTables_scrollHead');
- var divRightPadding = $('div#divRightPadding');
- //取表头下边沿位置
- var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height();
- var tableBottom = $tableData.position().top + $tableData.height() + 3;
- //取表格右边沿位置
- var tableRightEdgePosition = $(divRightPadding).position().left;
- var trs = $tableData.find('tr').get();
- $.each( trs, function( index, tr ){
- var tdEmpty = $('td.dataTables_empty',tr);
- if(!tdEmpty || tdEmpty.length ==0 ){
- $(tr).attr('id', 'bodyTableTR' + index);
- //$divOverlay.attr('id_tr', 'bodyTableTR' + index);
- $(tr).one('hover', function(){
- var rowPos = $(tr).position();
- var currentTrTop = rowPos.top;
- //var bottomLeft = rowPos.left;
- $divOverlay.attr('id_tr', 'bodyTableTR' + index);
- $divOverlay.css({
- display: 'block',
- position: 'absolute',
- 'background-color': '#e5e5e5',
- //opacity: 0.7,
- border: 'solid 0px',
- top: currentTrTop + 6,
- left: tableRightEdgePosition - 308,
- width: 300,
- height: 30
- });
- //防止浮动框跳出表格内容区域
- if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){
- $divOverlay.css('display', 'none');
- }
- var buttonConfirm = $('div#buttonConfirm', $divOverlay);
- var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay);
- //初始化悬浮按钮当前行的确认反确认状态
- if($(tr).find('span.alarmAck') && $(tr).find('span.alarmAck').length >0){
- var spanAck = $(tr).find('span.alarmAck');
- var ackState = $(spanAck).attr('ack_id');
- var buttonTDsConfirm = $(buttonConfirm).find('td');
- var buttonTDsUnConfirm = $(buttonUnConfirm).find('td');
- if(ackState=="2"){
- if(buttonTDsConfirm && buttonTDsConfirm.length > 0 && buttonTDsUnConfirm && buttonTDsUnConfirm.length > 0){
- $.each(buttonTDsConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $.each(buttonTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- }
- }else{
- if(buttonTDsConfirm && buttonTDsConfirm.length > 0 && buttonTDsUnConfirm && buttonTDsUnConfirm.length > 0){
- $.each(buttonTDsConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- }
- }
- }
- //添加确认反确认点击事件
- $(buttonConfirm).one('click', function(){
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded');
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 1);
- }
- });
- $(buttonUnConfirm).one('click', function(){
- var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded');
- var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled');
- if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){
- $.each(buttonRoundedTDsUnConfirm, function(index, td){
- $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled');
- });
- $.each(buttonRoundedTDsConfirm, function(index, td){
- $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded');
- });
- $divOverlay.css('display', 'none');
- singleAlarmAckUnAck($divOverlay, 2);
- }
- });
- var buttonDelete = $('div#buttonDelete', $divOverlay);
- $(buttonDelete).die().live('click', function(){
- $divOverlay.css('display', 'none');
- var trIdToDelete = $divOverlay.attr('id_tr');
- var toDeleteTr=$('tr#' + trIdToDelete);
- $("td", toDeleteTr).addClass('dataTableTdSelected');
- //弹出删除确认对话框
- $('div#myModal').modal({
- keyboard: false,
- backdrop: 'static'
- });
- $('#delConfirm').die().live('click', function(){
- //$divOverlay.css('display', 'none');
- dataTable.fnClose(tr);
- //删除后端数据
- singleAlarmDel($divOverlay);
- //删除当前行
- $(tr).remove();
- //删除表头表格的相应行
- $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove();
- //刷新表格
- //dataTable.fnAdjustColumnSizing();
- });
- $('#myModal').on('hidden.bs.modal', function (e) {
- $("td", toDeleteTr).removeClass('dataTableTdSelected');
- })
- });
- //展开行的情况隐藏
- $('td.details > table.detailTable').on('hover', function(){
- $divOverlay.css('display', 'none');
- });
- $('div#myModal').on('hover', function(){
- $divOverlay.css('display', 'none');
- });
- });
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) {
-
- if (!$().dataTable) {
- return;
- }
-
- var the = this;
-
- //记录需要禁掉默认排序的列
- var aTargets = [];
- var targetsLength = columnsDefined.length;
- if(rowCheckable)targetsLength++;
- if(openRowFlag)targetsLength++;
- for(var i=0;i<targetsLength;i++){
- aTargets.push(i);
- }
- aTargetsAll = aTargets;
-
- // default settings
- options = $.extend(true, {
- src: "", // actual table
- filterApplyAction: "filter",
- filterCancelAction: "filter_cancel",
- resetGroupActionInputOnSuccess: true,
- dataTable: {
- //"sDom" : "<'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout
-
- "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column)
- 'bSortable' : false,
- 'aTargets' : aTargets
- }],
-
- "bAutoWidth": false, // disable fixed width and enable fluid table
- //"bSortCellsTop": true, // make sortable only the first row in thead
- "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended)
- "bProcessing": true, // enable/disable display message box on record load
- "bServerSide": true, // enable/disable server side ajax loading
- "sAjaxSource": "", // define ajax source URL
- //"sServerMethod": "GET",
-
- // handle ajax request
- "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
- //for ICT Paging
- //var startIndex = aoData[3].value;//"iDisplayStart"
- //var pageLength = aoData[4].value;//"iDisplayLength"
- var oPaging = oSettings.oInstance.fnPagingInfo();
- //var startIndex = oPaging.iStart;
- var pageLength = oPaging.iLength;
- var curPageNo = oPaging.iPage + 1;
-
- for(var k=aoData.length-1;k>=0;k--){
- var flag = -1;
- if(aoData[k].name=='pageSize'){
- aoData[k].value=pageLength;
- flag++;
- }
- if(aoData[k].name=='pageNo'){
- aoData[k].value=curPageNo;
- flag++
- }
- if(flag == 1)break;
- }
-
- oSettings.jqXHR = $.ajax( {
- "dataType": 'json',
- "type": "GET",
- "url": sSource,
- "data": aoData,
- "success": function(res, textStatus, jqXHR) {
- if (res.sMessage) {
- onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'});
- }
- if ($('.group-checkable', tableContainer).size() === 1) {
- $('.group-checkable', tableContainer).attr("checked", false);
- $.uniform.update($('.group-checkable', tableContainer));
- }
- if (tableOptions.onSuccess) {
- tableOptions.onSuccess.call(the);
- }
- //保存数据在dataTable对象中给行详细信息面板用
- dataTable.datas = res.response.data;
- if(res.response.status < 0){
- alert(res.response.data);
- return;
- }
-
- //告警字段值转换
- //res = AlarmLabels.transformFieldNames(res);
- /*for(var i=0;i<callbackList.length;i++){
- if(getFnName(callbackList[i]).indexOf("transformFieldNames")>0){
- res = callbackList[i](res);
- break;
- }
- }*/
- if(callbackList[1]){
- res = callbackList[1](res);
- }
-
- res = jsonObjectToArray(res, columns, oSettings.iDraw);
-
- //重绘表格
- fnCallback(res, textStatus, jqXHR);
- },
- "error": function() {
- if (tableOptions.onError) {
- tableOptions.onError.call(the);
- }
- onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'});
- $('.dataTables_processing', tableWrapper).remove();
- }
- } );
-
- },
-
- // pass additional parameter
- "fnServerParams": function ( aoData ) {
- //here can be added an external ajax request parameters.
- //for(var i in ajaxParams) {
- for(var i=0; i<ajaxParams.length; i++){
- var param = ajaxParams[i];
- aoData.push({"name" : param.name, "value": param.value});
- }
- },
-
- "fnDrawCallback": function( oSettings ) { // run some code on table redraw
- if (tableInitialized === false) { // check if table has been initialized
- tableInitialized = true; // set table initialized
- table.show(); // display table
- }
- onapFrameWork.initUniform($('input[type="checkbox"]', tableContainer)); // reinitialize uniform checkboxes on each table reload
- countSelectedRecords(); // reset selected records indicator
- //所有td不换行
- $('table#datatable_ajax').find('td').css('white-space', 'nowrap');
-
- //自适应对齐表头
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var tbodyHead = $('tbody', $tableHead);
- if(tbodyHead && tbodyHead.length >0){
- $(tbodyHead).remove();
- }
-
- var $tableBody = $('table#datatable_ajax', tableWrapper);
- var trIn = $('thead > tr:nth-child(1)', $tableHead);
- var trBodyHead = $('thead > tr:nth-child(1)', $tableBody);
- var tds = $(trIn).children();
- var ths = $(trBodyHead).children();
- for(var k=0;k<tds.length;k++){
- $(ths.eq(k)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(k).html() + '</div>');
- }
- var bodyRows = $('tbody > tr', $tableBody);
- for(var i=0;i<bodyRows.length;i++){
- var rowClone = $(bodyRows.eq(i)).clone();
- var tds = $(rowClone).children();
- for(var j=0;j<tds.length;j++){
- $(tds.eq(j)).html('<div style="height: 0;overflow: hidden;">' + tds.eq(j).html() + '</div>');
- $(tds.eq(j)).height('0px');
- $(tds.eq(j)).css('padding-top','0px');
- $(tds.eq(j)).css('padding-bottom','0px');
- $(tds.eq(j)).css('border-top-width','0px');
- $(tds.eq(j)).css('border-bottom-width','0px');
- }
- $(rowClone).height('0px');
- $tableHead.append($(rowClone).prop("outerHTML"));
- }
-
- $('.dataTables_scrollBody').css('width','100%');
- $('.dataTables_scrollHead').css('width','98.5%');
- $('.dataTables_scrollHeadInner').css('padding-right', 0);
-
- //添加浮动确认反确认按钮
- if(rowOverFlag){
- addRowOverlap();
- }
-
- //填充单元格颜色
- var divColors = $("div.cellBackgroundColor", $tableBody);
- $.each( divColors, function( index, divColor ){
- $(divColor).parent().css("background", $(divColor).css("background-color"));
- });
-
- //设置表格本体高度
- $('div.dataTables_scrollBody').css('height', tableHeight);
- }
- }
- }, options);
-
- tableOptions = options;
-
- columns = columnsDefined;
- xsHiddenColumns = xsHiddenColumnsDefined;
- smHiddenColumns = smHiddenColumnsDefined;
- // create table's jquery object
- table = $(options.src);
- tableContainer = table.parents(".table-container");
- // apply the special class that used to restyle the default datatable
-
- $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper";
-
- // initialize a datatable
- dataTable = table.dataTable(options.dataTable);
-
- tableWrapper = table.parents('.dataTables_wrapper');
-
- // modify table per page dropdown input by appliying some classes
- $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm");
-
- // handle group checkboxes check/uncheck
- $('.group-checkable', tableContainer).change(function () {
- var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table);
- var checked = $(this).is(":checked");
- $(set).each(function () {
- $(this).attr("checked", checked);
- });
- $.uniform.update(set);
- countSelectedRecords();
- });
-
- // handle row's checkbox click
- table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){
- countSelectedRecords();
- });
-
- //填充表头右边界
- $('.dataTables_scrollHead').css('display','inline-block');
- //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" );
- $(".dataTables_scrollHead").after("<div id='divRightPadding' style='overflow: hidden; background:#eee; position: relative; float:right; border: 1px solid #ddd; height:" + 38 + "px; width: 1.4%;'></div>");
- if($.browser.mozilla){
- $('#divRightPadding').css('height', '40');
- }
-
- //隐藏掉某些列
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableBody = $('table#datatable_ajax', tableWrapper);
-
- for(var i=0;i<xsHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(xsHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs');
- break;
- }
- }
- }
-
- for(var i=0;i<smHiddenColumns.length;i++){
- for(var j=0;j<columns.length;j++){
- if(smHiddenColumns[i].columnId == columns[j].columnId){
- $('thead > tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm');
- $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm');
- break;
- }
- }
- }
- },//end init------------------------------------------------------------------------------------
-
- getSelectedRowsCount: function() {
- return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size();
- },
-
- getSelectedRows: function() {
- var rows = [];
- $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){
- rows.push({name: $(this).attr("name"), value: $(this).val()});
- });
-
- return rows;
- },
-
- addAjaxParam: function(name, value) {
- ajaxParams.push({"name": name, "value": value});
- },
-
- clearAjaxParams: function(name, value) {
- ajaxParams = [];
- },
-
- getDataTable: function() {
- return dataTable;
- },
-
- getTableWrapper: function() {
- return tableWrapper;
- },
-
- gettableContainer: function() {
- return tableContainer;
- },
-
- getTable: function() {
- return table;
- },
-
- setOpenRowFlag: function(openRowFlagInput) {
- openRowFlag = openRowFlagInput;
- },
-
- setRowOverFlag: function(rowOverFlagInput) {
- rowOverFlag = rowOverFlagInput;
- },
-
- setRowCheckable: function(rowCheckableInput) {
- rowCheckable = rowCheckableInput;
- },
-
- setColumnsTooLong: function(columnsTooLongInput) {
- columnsTooLong = columnsTooLongInput;
- },
-
- setSTotalRecordsSource: function(sTotalRecordsSourceInput){
- sTotalRecordsSource = sTotalRecordsSourceInput;
- },
-
- setTableHeight: function(tableHeightInput){
- tableHeight = tableHeightInput;
- },
-
- setCallbackList: function(list){
- if($.isArray(list)){
- callbackList = list;
- }
- }
-
- };
-
-};
-
-var TableAjaxICT = function () {
-
- var initPickers = function () {
- //init date pickers
- $('.date-picker').datepicker({
- //rtl: App.isRTL(),
- autoclose: true
- });
- }
-
- //判断a数组是否包含b数组
- function isContained(largeArray, smallArray){
- if(!(largeArray instanceof Array) || !(smallArray instanceof Array))
- return false;
- if(largeArray.length < smallArray.length)
- return false;
- for(var i = 0; i < smallArray.length; i++){
- var flag = false;
- for(j=0;j<largeArray.length;j++){
- if(largeArray[j].columnId == smallArray[i].columnId){
- flag = true;
- break;
- }
- }
- if(flag==false)return false;
- }
- return true;
- }
-
- var grid = new DatatableICT();
-
- var detailTableId = "alarmDetailInfo";
-
- /* Formatting function for row details */
- function fnFormatDetails(oTable, nTr, columns, rowCheckable) {
- //取得当前行显示数据
- var tds = $(nTr).children();
- var alarmId="";
- if(rowCheckable){
- alarmId = $(tds.eq(2)).html();
- }else{
- alarmId = $(tds.eq(1)).html();
- }
- //取得当前行完整数据
- var systemType = 0;
- var code = 0;
- //所有字段
- var resDisplayName="";
- var moc="";
- var alarmRaisedTime="";
- var perceivedSeverity="";
- var probableCauseDesc="";
- var neip="";
- var alarmType="";
- var ackState="";
- var ackTime="";
- var ackUserId="";
- var ackSystemId="";
- var alarmChangedTime="";
- var componentname="";
- var position1="";
- var specificproblem="";
- var additionalText="";
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == alarmId) {
- alarmId = temp.alarmId;
- resDisplayName = temp.resDisplayName;
- alarmRaisedTime = temp.alarmRaisedTime;
- perceivedSeverity = temp.perceivedSeverity;
- probableCauseDesc = temp.probableCauseDesc;
- neip = temp.neip;
- alarmType = temp.alarmType;
- ackState = temp.ackState;
- ackTime = temp.ackTime;
- ackUserId = temp.ackUserId;
- ackSystemId = temp.ackSystemId;
- alarmChangedTime = temp.alarmChangedTime;
-
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- moc = temp.moc;
- componentname = temp.componentname;
- position1 = temp.position1;
- specificproblem = temp.specificproblem;
- additionalText = temp.additionalText;
- break;
- }
- }
-
- var id = alarmId;
- //获取所有展开的详细信息面板生成当前的面板id用于定位
- var detailTables = $('[class_id=detailTableAlarm]');
- if(detailTables && detailTables.length > 0){
- detailTableId = "alarmDetailInfo" + detailTables.length;
- }
- var sOut = '<table id="' + detailTableId + '" class_id="detailTableAlarm" class = "detailTable" width = "800" style="table-layout: fixed;">';
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle" width = 130><span class = "labelDetailTable">' + columns[0].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmId + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 130><span class = "labelDetailTable">' + columns[4].columnTitle + '</span></td><td class = "detailCellStyle" width = 130>' + perceivedSeverity + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 130><span class = "labelDetailTable">' + columns[9].columnTitle + '</span></td><td class = "detailCellStyle" width = 160>' + alarmType + '</td>';
- sOut += '<td class = "detailTitleStyle" width = 130><span class = "labelDetailTable">' + columns[3].columnTitle + '</span></td><td class = "detailCellStyle" width = 160 colspan = 2>' + alarmRaisedTime + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[5].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + probableCauseDesc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[15].columnTitle + '</span></td><td class = "detailCellStyle">' + alarmChangedTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[11].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 2>' + ackState + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[12].columnTitle + '</span></td><td class = "detailCellStyle">' + ackTime + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[13].columnTitle + '</span></td><td class = "detailCellStyle">' + ackUserId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[14].columnTitle + '</span></td><td class = "detailCellStyle">' + ackSystemId + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[7].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 2>' + neip + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[2].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + moc + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[1].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 4>' + resDisplayName + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[8].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 3>' + componentname + '</td>';
- sOut += '<td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[16].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 4>' + position1 + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[10].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 8>' + specificproblem + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + columns[6].columnTitle + '</span></td><td class = "detailCellStyle" colspan = 8>' + additionalText + '</td></tr>';
-
- sOut += '<tr class="evenDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "defaulInfo' + id + '" class = "detailCellStyle" colspan = 8>' + '</td></tr>';
-
- sOut += '<tr class="oddDetailTable"><td class = "detailTitleStyle"><span class = "labelDetailTable">' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '</span></td><td id = "customInfo' + id + '" class = "detailCellStyle" colspan = 6><td style="width:80px" align="right"><button id = "customInfoModify' + id + '" class="btn-toolbar" type="button"><span id = "modifyBtnSpan' + id + '"class="fa fa-pencil-square-o"></span></button></td><td style="width:80px" id="cancelDiv' + id + '"></td></tr>';
-
- sOut += '</table>';
-
- /*
- var systemType = 0;
- var code = 0;
- for (var i = 0; i < oTable.datas.length; i++) {
- var temp = oTable.datas[i];
- if (temp.alarmId == oTr['alarmId'].value) {
- systemType = temp.systemType;
- code = temp.probableCauseCode;
- }
- }*/
- var data = {
- "systemType" : systemType,
- "code" : code
- };
- var sendData = JSON.stringify(data);
- $.ajax({
- "dataType" : 'json',
- "type" : "GET",
- "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData,
- "contentType" : 'application/json; charset=utf-8',
- "data" : null,
- "success" : function (json) {
- $('tr').find('td#defaulInfo' + id).text(json.defaulInfo);
- $('tr').find('td#customInfo' + id).text(json.customInfo);
- var modify = $('#customInfoModify' + id);
- modify.on('click', function () {
- var span = $('#modifyBtnSpan' + id);
- var customInfo = $('tr').find('td#customInfo' + id);
- var cancel = $('#cancelDiv' + id);
- if (span['0'].className === 'fa fa-pencil-square-o') {
- var value = customInfo['0'].textContent;
- customInfo['0'].textContent = '';
- customInfo['0'].innerHTML = '<textarea id="customInfoInput' + id + '" type="textarea" cols=110 rows=4 onKeyUp="if(this.value.length > 700) this.value=this.value.substr(0,700)">' + value + '</textarea>';
- span['0'].className = 'fa fa-floppy-o';
- cancel['0'].innerHTML = '<button id = "cancelBtn' + id + '" class="btn-toolbar" type="button"><span class="fa fa-sign-out"></span></button>';
- $('#cancelBtn' + id).on('click', function () {
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = value;
- cancel['0'].innerHTML = '';
- span['0'].className = 'fa fa-pencil-square-o';
- });
- } else {
- var inputValue = $('#customInfoInput' + id)['0'].value;
- customInfo['0'].innerHTML = '';
- customInfo['0'].textContent = inputValue;
- span['0'].className = 'fa fa-pencil-square-o';
- cancel['0'].innerHTML = '';
- var modifyData = {
- "systemType" : systemType,
- "code" : code,
- "defaulInfo" : json.defaulInfo,
- "customInfo" : inputValue
- };
- $.ajax({
- "dataType" : 'json',
- "type" : "PUT",
- "url" : "/web/rest/web/fm/Maintenance",
- "contentType" : 'application/json; charset=utf-8',
- "data" : JSON.stringify(modifyData),
- "error" : function () {
- alert('Modify Error!');
- }
- });
- }
- });
- },
- "error" : function () {
- alert('Communication Error!');
- }
- });
-
- return sOut;
- }
-
- var generateColumns = function(columns, openRowFlag, rowCheckable){
- var $tableData = $('table#datatable_ajax');
- var theadTR = $('thead > tr', $tableData);
- if(rowCheckable){
- theadTR.append('<th><input type="checkbox" class="group-checkable"></th>');
- }
- if(openRowFlag){
- theadTR.append('<th>&nbsp;&nbsp;</th>');
- }
- for(var i=0;i<columns.length;i++){
- theadTR.append('<TH id="' + columns[i].columnId + '" style="white-space: nowrap;">' + columns[i].columnTitle + '</TH>');
- }
- }
-
- var sortHandling = function(oTable, openRowFlag, rowCheckable){
- var indexSkip = -1;
- if(openRowFlag&&rowCheckable){
- indexSkip = 1;
- }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){
- indexSkip = 0;
- }
- var $sortOrder = 0; //排序类型 1表示升序,0表示降序
- var tableWrapper = $('div#datatable_ajax_wrapper');
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var $tableData = $('table#datatable_ajax');
- var clearSort = function(currentTh){
- var ths = $tableHead.find('th').get();
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- if(index > indexSkip){
- if($(th).text() != currentTh.text()){
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- }
- }
- });
- }
-
- $('th', $tableHead).each(function( column )
- {
- if(column>indexSkip){
- //处理三种有可能存在的排序字段,比较方法
- var findSortKey;
- if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') )
- {
- findSortKey = function( $cell )
- {
- var cellText = $cell.text();
- if(isNaN(cellText)){
- return $cell.text().toUpperCase();
- }else{
- return parseFloat(cellText);
- }
- //return $cell.text().toUpperCase();
- }
- }
- else if( $(this).is('.sort-date') )
- {
- findSortKey = function( $cell )
- {
- return Date.parse('1' + $cell.text());
- }
- }
- else if( $(this).is('.sort-price') )
- {
- findSortKey = function( $cell )
- {
- var key = parseFloat($cell.text().replace(/^[^\d.]*/, ''))
- return isNaN(key) ? 0 : key;
- }
- }
-
- //排序
- if( findSortKey )
- {
- $(this).click(function()
- {
- $sortOrder = $sortOrder == 0 ? 1 : 0;
- var tableDataHeadTHs = $tableData.find('th').get();
-
- if($sortOrder == 1){
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }else{
- if($(this).is('.sorting_disabled')){
- $(this).removeClass('sorting_disabled').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc');
- }else if($(this).is('.sorting_asc')){
- $(this).removeClass('sorting_asc').addClass('sorting_desc');
- $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc');
- }else if($(this).is('.sorting_desc')){
- $(this).removeClass('sorting_desc').addClass('sorting_asc');
- $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc');
- }
- }
- clearSort($(this));
-
- var rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- //先关掉所有行
- if ( oTable.fnIsOpen(row) )
- {
- $(row).find('.row-details').click();
- }
- });
-
- //重新取得所有行,否则排序后表格显示异常
- rows = $tableData.find('tbody > tr').get();
-
- $.each( rows, function( index, row )
- {
- row.sortKey = findSortKey($(row).children('td').eq(column));
- });
- //排序方法
- rows.sort(function( a, b )
- {
- if( $sortOrder == 1 )
- {
- //升序
- if(a.sortKey < b.sortKey) return -1;
- if(a.sortKey > b.sortKey) return 1;
- return 0;
- }
- else
- {
- //降序
- if(a.sortKey < b.sortKey) return 1;
- if(a.sortKey > b.sortKey) return -1;
- return 0;
- }
- });
- //排序后的对象添加给$table
- $.each( rows, function( index, row )
- {
- $tableData.children('tbody').append(row);
- row.sortKey = null;
- });
- });
- }
- }
- });
- }
-
- var handleRecords = function(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList) {
-
- /*
- jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json',
- function(data) {
- oLanguage = data;
- });
- */
- grid.setCallbackList(callbackList);
- grid.setOpenRowFlag(openRowFlag);
- grid.setRowCheckable(rowCheckable);
- grid.setRowOverFlag(rowOverFlag);
- grid.setColumnsTooLong(columnsTooLong);
- grid.setSTotalRecordsSource(sTotalRecordsSource);
- grid.setTableHeight(tableHeight);
- //取得查询条件
-// if(!requestStr || requestStr.length == 0){
-// requestStr = JSON.stringify(requestAllData);
-// }
- grid.clearAjaxParams();
- grid.addAjaxParam('data', requestStr);
- //取得其他参数
- for(var i=0;i<requestParameters.length;i++){
- grid.addAjaxParam(requestParameters[i].paraId,requestParameters[i].paraValue);
- }
-
- grid.init({
- src: $("#datatable_ajax"),
- onSuccess: function(grid) {
- // execute some code after table records loaded
- var tableWrapper = $('div#datatable_ajax_wrapper');
- var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper);
- var ths = $tableHead.find('th').get();
- var $tableData = $('table#datatable_ajax');
- var tableDataHeadTHs = $tableData.find('th').get();
- $.each( ths, function( index, th ){
- //clear all sort direction
- if($(th).is('.sorting_disabled')){
- //do nothing;
- }else if($(th).is('.sorting_asc')){
- $(th).removeClass('sorting_asc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled');
- }else if($(th).is('.sorting_desc')){
- $(th).removeClass('sorting_desc').addClass('sorting_disabled');
- $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled');
- }
- });
-
- },
- onError: function(grid) {
- // execute some code on network or other general error
- },
- dataTable: {
- "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout
- "oLanguage": oLanguage,
- //"bAutoWidth": true,
- "sScrollY": tableHeight,
- "bScrollCollapse": true,
- "sScrollX": "100%",
- //"sScrollXInner": "110%",
- "aLengthMenu": [
- [20, 50, 100],
- [20, 50, 100] // change per page values here
- ],
- "iDisplayLength": 20, // default record count per page
- "bServerSide": true, // server side processing
- "sAjaxSource": requestURL // ajax source
- }
- }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable);
- }
-
- /*
- * Insert a 'details' column to the table
- */
- var insertDetails = function (oTable, columns, rowCheckable) {
-
- var $tableData = $('table#datatable_ajax');
-
- $tableData.on('click', ' tbody td .row-details', function () {
- var nTr = $(this).parents('tr')[0];
- if (oTable.fnIsOpen(nTr)) {
- /* This row is already open - close it */
- $(this).addClass("row-details-close").removeClass("row-details-open");
- oTable.fnClose(nTr);
- } else {
- /* Open this row */
- $(this).addClass("row-details-open").removeClass("row-details-close");
- oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details');
- //填充单元格颜色
- var divColor = $("div.cellBackgroundColor", $("table#" + detailTableId));
- $(divColor).parent().css("background", $(divColor).css("background-color"));
- }
- });
- }
-
- return {
-
- //main function to initiate the module
- init: function (requestStr, lang, configPathPrefix, callbackList) {
-
- var oLanguage;
- var columns;
- var xsHiddenColumns;
- var smHiddenColumns;
- var columnsAll;
-
- var openRowFlag = false;
- var rowOverFlag = false;
- var rowCheckable = false;
- var requestURL="";
- var requestAllData;
- var requestParameters;
-
- var tableHeight;
- var tableWidth;
-
- var columnsTooLong;
- var sTotalRecordsSource="";
-
- //取得当前配置及国际化信息
- $.ajax({
- dataType: 'json',
- url: configPathPrefix + '-' + lang + '.json',
- async: false,
- contentType:'application/json; charset=utf-8',
- "success": function(data) {
- oLanguage = data.language;
- columns = data.columns;
- xsHiddenColumns = data.xsHiddenColumns;
- smHiddenColumns = data.smHiddenColumns;
- columnsAll = data.columnsAll;
- openRowFlag = data.openRowFlag == 'true'? true: false;
- rowOverFlag = data.rowOverFlag == 'true'? true: false;
- rowCheckable = data.rowCheckable == 'true'? true: false;
- requestURL = data.requestURL;
- //requestAllData = data.requestAllData;
- requestParameters = data.requestParameters;
- tableHeight = data.tableHeight;
- tableWidth = data.tableWidth;
- columnsTooLong = data.columnsTooLong;
- sTotalRecordsSource = data.sTotalRecordsSource;
- },
- "error" : function (xhr, info) {
- alert('Communication Error! Error reason:' + info);
- }
- });
-
- $('#dataTableWrapperDiv').css('width', tableWidth);
-
- if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){
- alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!');
- return;
- }
-
- generateColumns(columns, openRowFlag, rowCheckable);
- //initPickers();
- handleRecords(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList);
- //获得初始化完毕的DataTable对象
- var oTable = grid.getDataTable();
- if(openRowFlag){
- insertDetails(oTable, columnsAll, rowCheckable);
- }
- sortHandling(oTable, openRowFlag, rowCheckable);
- //oTable.fnAdjustColumnSizing(true);
- return oTable;
- }
-
- };
-
-}();
-
-var DataTableSmartClientApp = function(datas, configPathPrefix, callbackList){
-
- var requestStr = "";
- if(datas){
- requestStr = JSON.stringify(datas);
- }
-
- var lang = getLanguage();
- //lang = 'en-US';
- /*for(var i=0;i<callbackList.length;i++){
- if(getFnName(callbackList[i]).indexOf("i18n")>0){
- callbackList[i](lang);
- break;
- }
- }*/
- if(callbackList && callbackList[0]){
- callbackList[0](lang);
- }
- //requestStr = "";
- var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix, callbackList);
-
- //重新调节列宽以适应window resize
- $(window).one('resize', function () {
- //oTable.DataTable.models.oSettings.bAjaxDataGet = false;
- oTable.fnAdjustColumnSizing(false);
- } );
-}
diff --git a/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json b/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json
deleted file mode 100644
index fa20902..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "language":{
- "sProcessing": "<img src='/web/newict/framework/thirdparty/data-tables/images/loading-spinner-grey.gif'/><span>&nbsp;&nbsp;处理中...</span>",
- "sLengthMenu": "<span class='seperator'>|</span>每页 _MENU_ 条结果",
- "sZeroRecords": "没有匹配结果",
- "sInfo": "<span class='seperator'>|</span>总共找到 _TOTAL_ 条结果",
- "sInfoEmpty": "共 0 项",
- "sGroupActions": "_TOTAL_ 条结果被选择: ",
- "sAjaxRequestGeneralError": "不能完成请求,请检查您的网络连接情况。",
- "sEmptyTable": "表中数据为空",
- "oPaginate": {
- "sPrevious": "前页",
- "sNext": "下页",
- "sPage": "第",
- "sPageOf": "页,总页数:"
- }
- },
- "columnsAll":[
- {"columnId":"0", "columnTitle":"开始时间"},
- {"columnId":"1", "columnTitle":"结束时间"},
- {"columnId":"2", "columnTitle":"查询粒度"},
- {"columnId":"3", "columnTitle":"网元位置"},
- {"columnId":"4", "columnTitle":"CPU使用率(百分比)"}
- ],
- "columns":[
- {"columnId":"0", "columnTitle":"开始时间"},
- {"columnId":"1", "columnTitle":"结束时间"},
- {"columnId":"2", "columnTitle":"查询粒度"},
- {"columnId":"3", "columnTitle":"网元位置"},
- {"columnId":"4", "columnTitle":"CPU使用率(百分比)"}
- ],
- "xsHiddenColumns":[
- ],
- "smHiddenColumns":[
- ],
- "columnsTooLong":["3"],
-
- "rowCheckable": "true",
- "openRowFlag" : "false",
- "rowOverFlag" : "false",
-
- "tableHeight":"250px",
- "tableWidth":"100%",
-
- "requestType": "POST",
- "requestURL": "/web/rest/web-pm/queryPmPageData",
- "requestParameters":[
- ],
- "sTotalRecordsSource":"response.extData",
- "sTotalRecords":"108"
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json b/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json
deleted file mode 100644
index 809daa3..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "language":{
- "sProcessing": "<img src='/web/newict/framework/thirdparty/data-tables/images/loading-spinner-grey.gif'/><span>&nbsp;&nbsp;Loading...</span>",
- "sLengthMenu": "<span class='seperator'>|</span>View _MENU_ records",
- "sInfo": "<span class='seperator'>|</span>Found total _TOTAL_ records",
- "sInfoEmpty": "No records found to show",
- "sGroupActions": "_TOTAL_ records selected: ",
- "sAjaxRequestGeneralError": "Could not complete request. Please check your internet connection",
- "sEmptyTable": "No data available in table",
- "sZeroRecords": "No matching records found",
- "oPaginate": {
- "sPrevious": "Prev",
- "sNext": "Next",
- "sPage": "Page",
- "sPageOf": "of"
- }
- },
- "columnsAll":[
- {"columnId":"alarmId", "columnTitle":"Alarm Id"},
- {"columnId":"resDisplayName", "columnTitle":"NE"},
- {"columnId":"moc", "columnTitle":"NE Type"},
- {"columnId":"alarmRaisedTime", "columnTitle":"Raised Time"},
- {"columnId":"perceivedSeverity", "columnTitle":"Severity"},
- {"columnId":"probableCauseDesc", "columnTitle":"Alarm Code"},
- {"columnId":"additionalText", "columnTitle":"Appendix Text"},
- {"columnId":"neip", "columnTitle":"NE IP"},
- {"columnId":"componentname", "columnTitle":"Location"},
- {"columnId":"alarmType", "columnTitle":"Alarm Type"},
- {"columnId":"specificproblem", "columnTitle":"Specific Problem"},
- {"columnId":"ackState", "columnTitle":"Acknowledged State"},
- {"columnId":"ackTime", "columnTitle":"Acknowledge Time"},
- {"columnId":"ackUserId", "columnTitle":"Acknowledge User"},
- {"columnId":"ackSystemId", "columnTitle":"Acknowledge System"},
- {"columnId":"alarmChangedTime", "columnTitle":"Changed Time"},
- {"columnId":"position1", "columnTitle":"Resource ID"}
- ],
- "columns":[
- {"columnId":"alarmId", "columnTitle":"Alarm Id"},
- {"columnId":"resDisplayName", "columnTitle":"NE"},
- {"columnId":"moc", "columnTitle":"NE Type"},
- {"columnId":"alarmRaisedTime", "columnTitle":"Raised Time"},
- {"columnId":"perceivedSeverity", "columnTitle":"Severity"},
- {"columnId":"probableCauseDesc", "columnTitle":"Alarm Code"},
- {"columnId":"additionalText", "columnTitle":"Appendix Text"},
- {"columnId":"neip", "columnTitle":"NE IP"},
- {"columnId":"componentname", "columnTitle":"Location"},
- {"columnId":"alarmType", "columnTitle":"Alarm Type"},
- {"columnId":"specificproblem", "columnTitle":"Specific Problem"},
- {"columnId":"ackState", "columnTitle":"Acknowledged State"},
- {"columnId":"ackTime", "columnTitle":"Acknowledge Time"},
- {"columnId":"ackUserId", "columnTitle":"Acknowledge User"},
- {"columnId":"ackSystemId", "columnTitle":"Acknowledge System"},
- {"columnId":"alarmChangedTime", "columnTitle":"Changed Time"},
- {"columnId":"position1", "columnTitle":"Resource ID"}
- ],
- "xsHiddenColumns":[
- {"columnId":"additionalText", "columnTitle":"Appendix Text"},
- {"columnId":"neip", "columnTitle":"NE IP"},
- {"columnId":"componentname", "columnTitle":"Location"},
- {"columnId":"position1", "columnTitle":"Resource ID"}
- ],
- "smHiddenColumns":[
- {"columnId":"position1", "columnTitle":"Resource ID"}
- ],
- "columnsTooLong":["additionalText", "moc", "componentname", "specificproblem", "position1"],
- "sTotalRecordsSource":"response.extData",
-
- "rowCheckable": "true",
- "openRowFlag" : "true",
- "rowOverFlag" : "true",
-
- "tableHeight":"520px",
- "tableWidth":"100%",
-
- "requestURL": "/web/rest/web/fm/curalarms",
- "requestParameters":[
- {"paraId":"pageSize", "paraValue":"20"},
- {"paraId":"pageNo", "paraValue":"1"},
- {"paraId":"_operationType", "paraValue":"fetch"},
- {"paraId":"_startRow", "paraValue":"0"},
- {"paraId":"_endRow", "paraValue":"75"},
- {"paraId":"_textMatchStyle", "paraValue":"exact"},
- {"paraId":"_componentId", "paraValue":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0"},
- {"paraId":"_dataSource", "paraValue":"isc_PageRestDataSource_0"},
- {"paraId":"isc_metaDataPrefix", "paraValue":"_"},
- {"paraId":"isc_dataFormat", "paraValue":"json"}
- ],
- "sTotalRecordsSource":"response.extData"
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json b/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json
deleted file mode 100644
index 8a270a4..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "language":{
- "sProcessing": "<img src='/web/newict/framework/thirdparty/data-tables/images/loading-spinner-grey.gif'/><span>&nbsp;&nbsp;处理中...</span>",
- "sLengthMenu": "<span class='seperator'>|</span>每页 _MENU_ 条结果",
- "sZeroRecords": "没有匹配结果",
- "sInfo": "<span class='seperator'>|</span>总共找到 _TOTAL_ 条结果",
- "sInfoEmpty": "共 0 项",
- "sGroupActions": "_TOTAL_ 条结果被选择: ",
- "sAjaxRequestGeneralError": "不能完成请求,请检查您的网络连接情况。",
- "sEmptyTable": "表中数据为空",
- "oPaginate": {
- "sPrevious": "前页",
- "sNext": "下页",
- "sPage": "第",
- "sPageOf": "页,总页数:"
- }
- },
- "columnsAll":[
- {"columnId":"alarmId", "columnTitle":"告警编号"},
- {"columnId":"resDisplayName", "columnTitle":"网元"},
- {"columnId":"moc", "columnTitle":"网元类型"},
- {"columnId":"alarmRaisedTime", "columnTitle":"发生时间"},
- {"columnId":"perceivedSeverity", "columnTitle":"级别"},
- {"columnId":"probableCauseDesc", "columnTitle":"告警码"},
- {"columnId":"additionalText", "columnTitle":"附加文本"},
- {"columnId":"neip", "columnTitle":"网元IP"},
- {"columnId":"componentname", "columnTitle":"网元内定位"},
- {"columnId":"alarmType", "columnTitle":"告警类型"},
- {"columnId":"specificproblem", "columnTitle":"告警原因"},
- {"columnId":"ackState", "columnTitle":"确认状态"},
- {"columnId":"ackTime", "columnTitle":"确认时间"},
- {"columnId":"ackUserId", "columnTitle":"确认用户"},
- {"columnId":"ackSystemId", "columnTitle":"确认系统"},
- {"columnId":"alarmChangedTime", "columnTitle":"修改时间"},
- {"columnId":"position1", "columnTitle":"资源ID"}
- ],
- "columns":[
- {"columnId":"alarmId", "columnTitle":"告警编号"},
- {"columnId":"resDisplayName", "columnTitle":"网元"},
- {"columnId":"moc", "columnTitle":"网元类型"},
- {"columnId":"alarmRaisedTime", "columnTitle":"发生时间"},
- {"columnId":"perceivedSeverity", "columnTitle":"级别"},
- {"columnId":"probableCauseDesc", "columnTitle":"告警码"},
- {"columnId":"additionalText", "columnTitle":"附加文本"},
- {"columnId":"neip", "columnTitle":"网元IP"},
- {"columnId":"componentname", "columnTitle":"网元内定位"},
- {"columnId":"alarmType", "columnTitle":"告警类型"},
- {"columnId":"specificproblem", "columnTitle":"告警原因"},
- {"columnId":"ackState", "columnTitle":"确认状态"},
- {"columnId":"ackTime", "columnTitle":"确认时间"},
- {"columnId":"ackUserId", "columnTitle":"确认用户"},
- {"columnId":"ackSystemId", "columnTitle":"确认系统"},
- {"columnId":"alarmChangedTime", "columnTitle":"修改时间"},
- {"columnId":"position1", "columnTitle":"资源ID"}
- ],
- "xsHiddenColumns":[
- {"columnId":"additionalText", "columnTitle":"附加文本"},
- {"columnId":"neip", "columnTitle":"网元IP"},
- {"columnId":"componentname", "columnTitle":"网元内定位"},
- {"columnId":"position1", "columnTitle":"资源ID"}
- ],
- "smHiddenColumns":[
- {"columnId":"position1", "columnTitle":"资源ID"}
- ],
- "columnsTooLong":["additionalText", "moc", "componentname", "specificproblem", "position1"],
-
- "rowCheckable": "true",
- "openRowFlag" : "true",
- "rowOverFlag" : "true",
-
- "tableHeight":"520px",
- "tableWidth":"100%",
-
- "requestURL": "/web/rest/web/fm/curalarms",
- "requestAllData": {"rule":{"ruleId":-1,"name":"当前告警","creator":"admin","createTime":1397439767310,"modifier":"","modifyTime":0,"description":"","state":true,"ruleType":1,"ruleSort":1,"owner":"","attrs":"<Attrs/>","ruleData":"<CompoundCond><FilterState value='1' /></CompoundCond>"}},
- "requestParameters":[
- {"paraId":"pageSize", "paraValue":"20"},
- {"paraId":"pageNo", "paraValue":"1"},
- {"paraId":"_operationType", "paraValue":"fetch"},
- {"paraId":"_startRow", "paraValue":"0"},
- {"paraId":"_endRow", "paraValue":"75"},
- {"paraId":"_textMatchStyle", "paraValue":"exact"},
- {"paraId":"_componentId", "paraValue":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0"},
- {"paraId":"_dataSource", "paraValue":"isc_PageRestDataSource_0"},
- {"paraId":"isc_metaDataPrefix", "paraValue":"_"},
- {"paraId":"isc_dataFormat", "paraValue":"json"}
- ],
- "sTotalRecordsSource":"response.extData"
-}
-
diff --git a/common/src/main/webapp/thirdparty/data-tables/dataTable.html b/common/src/main/webapp/thirdparty/data-tables/dataTable.html
deleted file mode 100644
index 979c456..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/dataTable.html
+++ /dev/null
@@ -1,155 +0,0 @@
-<!-- FOR TEST -->
-<link href="/web/newict/framework/thirdparty/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/thirdparty/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/thirdparty/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/css/style-custom.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/css/style.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/css/plugins.css" rel="stylesheet" type="text/css"/>
-<link href="/web/newict/framework/thirdparty/data-tables/DT_bootstrap.css" rel="stylesheet" type="text/css"/>
-<!-- FOR TEST -->
-<div id="dataTableWrapperDiv" class="dataTableWrapperDiv" style="overflow: auto; overflow-y: hidden; padding: 0;z-index: 200999;">
- <div class="col-md-12">
- <div class="portlet">
- <div class="portlet-body">
- <div class="table-container" >
- <table class="table table-striped table-bordered table-hover" cellpadding="0" cellspacing="0" border="0"id="datatable_ajax" >
- <thead>
- <tr role="row" class="heading">
- </tr>
- </thead>
- <tbody></tbody>
- </table>
- <div id="divOverlay" style="display:none;Z-INDEX:10000;">
- <div id="isc_3A" style="POSITION:relative;-webkit-margin-collapse:separate separate;VISIBILITY:inherit;Z-INDEX:1100;CURSOR:default;">&nbsp;
- <div id="buttonConfirm" role="button" class="buttonConfirm" >
- <div id="isc_3B" style="POSITION:relative;-webkit-margin-collapse:separate separate;VISIBILITY:inherit;Z-INDEX:201224;CURSOR:default;">
- <table cellspacing="0" cellpadding="0" width="70" height="22">
- <tbody>
- <tr>
- <td nowrap="true" class="buttonRounded" align="center" valign="center" tabindex="-1" >
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td class="buttonRounded" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;font-size:1px;padding-right:6px">
- <img id="img_acknownledge" src= "/web/res/web-common/comp/skins/EnterpriseBlue/images/Common/web-modulePrivate/fm/aos_acknownledge.gif" width="16" height="16" align="absmiddle" style="vertical-align:middle" name="isc_3Bicon" eventpart="icon" border="0" suppress="TRUE">
- </td>
- <td class="buttonRounded" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;" nowrap="true">
- <span id="aos_fm_alarm_opeater_ack" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div id="buttonUnConfirm" role="button" tabindex="1336" class="buttonUnConfirm" >
- <div id="isc_3D" style="POSITION:relative;-webkit-margin-collapse:separate separate;VISIBILITY:inherit;Z-INDEX:201242;CURSOR:hand;">
- <table cellspacing="0" cellpadding="0" width="82" height="22">
- <tbody>
- <tr>
- <td nowrap="true" class="buttonRoundedDisabled" align="center" valign="center" tabindex="-1" >
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td class="buttonRoundedDisabled" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;font-size:1px;padding-right:6px">
- <img src="/web/res/web-common/comp/skins/EnterpriseBlue/images/Common/web-modulePrivate/fm/aos_unacknownledge.gif" width="16" height="16" align="absmiddle" style="vertical-align:middle" name="isc_3Dicon" eventpart="icon" border="0" suppress="TRUE">
- </td>
- <td class="buttonRoundedDisabled" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;" nowrap="true">
- <span id="aos_fm_alarm_opeater_unack" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div id="buttonDelete" role="button" tabindex="1337" class="buttonDelete" >
- <div id="isc_3F" style="POSITION:relative;-webkit-margin-collapse:separate separate;VISIBILITY:inherit;Z-INDEX:201260;CURSOR:hand;">
- <table cellspacing="0" cellpadding="0" width="70" height="22">
- <tbody>
- <tr>
- <td nowrap="true" class="buttonRounded" align="center" valign="center" tabindex="-1" >
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr>
- <td class="buttonRounded" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;font-size:1px;padding-right:6px">
- <img src="/web/res/web-common/comp/skins/EnterpriseBlue/images/Common/web-common/aos_delete.gif" width="16" height="16" align="absmiddle" style="vertical-align:middle" name="isc_3Ficon" eventpart="icon" border="0" suppress="TRUE">
- </td>
- <td class="buttonRounded" style="margin:0px;border:0px;padding:0px;background-image:none;background-color:transparent;-webkit-box-shadow:none;box-shadow:none;" nowrap="true">
- <span id="aos_fm_alarm_opeater_clean" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div><!-- end of overlap -->
- <!-- Modal 消除确认对话框-->
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
- <h4 class="modal-title" id="myModalLabel"><span id="aos_fm_SuggestionSetting_dialog_title" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span></h4>
- </div>
- <div class="modal-body">
- <span id="aos_fm_fmalarm_view_confirm_deletedata" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span>
- </div>
- <div class="modal-footer">
- <button id="delConfirm" type="button" class="btn btn-default btn-confirm" data-dismiss="modal"><span id="aos_fm_condition_dialog_ok" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span></button>
- <button type="button" class="btn btn-primary btn-confirm" data-dismiss="modal"><span id="aos_fm_condition_dialog_cancel" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span></button>
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div><!-- /.modal -->
- <!-- Modal 已确认提示对话框-->
- <div class="modal fade" id="myModalConfirm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
- <h4 class="modal-title" id="myModalLabel"><span id="aos_fm_level_title_4" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span></h4>
- </div>
- <div class="modal-body">
- <span id="aos_fm_alarm_title" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span>
- <span id="alarm_number"></span>
- <span id="aos_fm_alarm_opeater_ack_already" ></span>
- </div>
- <div class="modal-footer">
- <button id="confirmAlready" type="button" class="btn btn-default btn-confirm" data-dismiss="modal"><span id="aos_fm_condition_dialog_ok" name_i18n="com_zte_ums_ict_framework_ui_i18n_fm"></span></button>
-
- </div>
- </div><!-- /.modal-content -->
- </div><!-- /.modal-dialog -->
- </div><!-- /.modal -->
- </div>
- </div>
- </div>
- <!-- End: life time stats -->
- </div>
-</div>
-<!-- FOR TEST-->
-<script type="text/javascript" src="/web/newict/framework/thirdparty/bootstrap/js/bootstrap.min.js"></script>
-<script type="text/javascript" src="/web/newict/framework/zte/scripts/core/onapFrameWork.min.js"></script>
-<script type="text/javascript" src="/web/newict/framework/thirdparty/uniform/jquery.uniform.min.js"></script>
-<script type="text/javascript" src="/web/newict/framework/thirdparty/data-tables/jquery.dataTables.js"></script>
-<script type="text/javascript" src="/web/newict/framework/thirdparty/data-tables/DT_bootstrap.js"></script>
-<script src="/web/res/web-fm/i18n/jquery.i18n.properties-1.0.9-fm.js"></script>
-<script src="/web/res/web-fm/i18n/loadi18n-fm.js"></script>
-<script>
-var lang = getLanguage();
-//lang = "en-US";
-loadi18n_FM(lang);
-</script>
-<!-- END PAGE LEVEL PLUGINS -->
diff --git a/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css b/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css
deleted file mode 100644
index ada85f7..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css
+++ /dev/null
@@ -1,331 +0,0 @@
-div.dataTables_length label {
- font-weight: normal;
- text-align: left;
- white-space: nowrap;
-}
-
-div.dataTables_length select {
- height: 28px;
- display: inline-block;
-}
-
-div.dataTables_filter {
- text-align: right;
-}
-
-div.dataTables_filter label {
- font-weight: normal;
- white-space: nowrap;
- text-align: left;
-}
-
-div.dataTables_filter input {
- margin-left: 0.5em;
- display: inline-block;
-}
-
-div.dataTables_info {
- padding-top: 8px;
- white-space: nowrap;
-}
-
-div.dataTables_paginate {
- margin: 0;
- white-space: nowrap;
- text-align: right;
-}
-
-div.dataTables_paginate ul.pagination {
- margin: 2px 0;
- white-space: nowrap;
-}
-
-@media screen and (max-width: 767px) {
- div.dataTables_length,
- div.dataTables_filter,
- div.dataTables_info,
- div.dataTables_paginate {
- text-align: center;
- }
-}
-
-
-table.dataTable td,
-table.dataTable th {
- -webkit-box-sizing: content-box;
- -moz-box-sizing: content-box;
- box-sizing: content-box;
-}
-
-
-table.dataTable {
- clear: both;
- margin-top: 6px !important;
- margin-bottom: 6px !important;
- max-width: none !important;
-}
-
-table.dataTable thead .sorting,
-table.dataTable thead .sorting_asc,
-table.dataTable thead .sorting_desc,
-table.dataTable thead .sorting_asc_disabled,
-table.dataTable thead .sorting_desc_disabled {
- cursor: pointer;
-}
-
-table.dataTable thead .sorting { background: url('../images/sort_both.png') no-repeat center right; }
-table.dataTable thead .sorting_asc { background: url('../images/sort_asc.png') no-repeat center right; }
-table.dataTable thead .sorting_desc { background: url('../images/sort_desc.png') no-repeat center right; }
-
-table.dataTable thead .sorting_asc_disabled { background: url('../images/sort_asc_disabled.png') no-repeat center right; }
-table.dataTable thead .sorting_desc_disabled { background: url('../images/sort_desc_disabled.png') no-repeat center right; }
-
-table.dataTable thead > tr > th {
- padding-left: 18px;
- padding-right: 18px;
-}
-
-table.dataTable th:active {
- outline: none;
-}
-
-/* Scrolling */
-div.dataTables_scrollHead table {
- margin-bottom: 0 !important;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
-}
-
-div.dataTables_scrollHead table thead tr:last-child th:first-child,
-div.dataTables_scrollHead table thead tr:last-child td:first-child {
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.dataTables_scrollBody table {
- border-top: none;
- margin-top: 0 !important;
- margin-bottom: 0 !important;
-}
-
-div.dataTables_scrollBody tbody tr:first-child th,
-div.dataTables_scrollBody tbody tr:first-child td {
- border-top: none;
-}
-
-div.dataTables_scrollFoot table {
- margin-top: 0 !important;
- border-top: none;
-}
-
-/* Frustratingly the border-collapse:collapse used by Bootstrap makes the column
- width calculations when using scrolling impossible to align columns. We have
- to use separate
- */
-table.table-bordered.dataTable {
- border-collapse: separate !important;
-}
-table.table-bordered thead th,
-table.table-bordered thead td {
- border-left-width: 0;
- border-top-width: 0;
-}
-table.table-bordered tbody th,
-table.table-bordered tbody td {
- border-left-width: 0;
- border-bottom-width: 0;
-}
-table.table-bordered th:last-child,
-table.table-bordered td:last-child {
- border-right-width: 0;
-}
-div.dataTables_scrollHead table.table-bordered {
- border-bottom-width: 0;
-}
-
-
-
-
-/*
- * TableTools styles
- */
-.table.dataTable tbody tr.active td,
-.table.dataTable tbody tr.active th {
- background-color: #08C;
- color: white;
-}
-
-.table.dataTable tbody tr.active:hover td,
-.table.dataTable tbody tr.active:hover th {
- background-color: #0075b0 !important;
-}
-
-.table.dataTable tbody tr.active th > a,
-.table.dataTable tbody tr.active td > a {
- color: white;
-}
-
-.table-striped.dataTable tbody tr.active:nth-child(odd) td,
-.table-striped.dataTable tbody tr.active:nth-child(odd) th {
- background-color: #017ebc;
-}
-
-table.DTTT_selectable tbody tr {
- cursor: pointer;
-}
-
-div.DTTT .btn:hover {
- text-decoration: none !important;
-}
-
-ul.DTTT_dropdown.dropdown-menu {
- z-index: 2003;
-}
-
-ul.DTTT_dropdown.dropdown-menu a {
- color: #333 !important; /* needed only when demo_page.css is included */
-}
-
-ul.DTTT_dropdown.dropdown-menu li {
- position: relative;
-}
-
-ul.DTTT_dropdown.dropdown-menu li:hover a {
- background-color: #0088cc;
- color: white !important;
-}
-
-div.DTTT_collection_background {
- z-index: 2002;
-}
-
-/* TableTools information display */
-div.DTTT_print_info {
- position: fixed;
- top: 50%;
- left: 50%;
- width: 400px;
- height: 150px;
- margin-left: -200px;
- margin-top: -75px;
- text-align: center;
- color: #333;
- padding: 10px 30px;
- opacity: 0.95;
-
- background-color: white;
- border: 1px solid rgba(0, 0, 0, 0.2);
- border-radius: 6px;
-
- -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5);
- box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5);
-}
-
-div.DTTT_print_info h6 {
- font-weight: normal;
- font-size: 28px;
- line-height: 28px;
- margin: 1em;
-}
-
-div.DTTT_print_info p {
- font-size: 14px;
- line-height: 20px;
-}
-
-div.dataTables_processing {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 100%;
- height: 60px;
- margin-left: -50%;
- margin-top: -25px;
- padding-top: 20px;
- padding-bottom: 20px;
- text-align: center;
- font-size: 1.2em;
- background-color: white;
- background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));
- background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
- background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
- background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
- background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
- background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);
-}
-
-
-
-/*
- * FixedColumns styles
- */
-div.DTFC_LeftHeadWrapper table,
-div.DTFC_LeftFootWrapper table,
-div.DTFC_RightHeadWrapper table,
-div.DTFC_RightFootWrapper table,
-table.DTFC_Cloned tr.even {
- background-color: white;
- margin-bottom: 0;
-}
-
-div.DTFC_RightHeadWrapper table ,
-div.DTFC_LeftHeadWrapper table {
- border-bottom: none !important;
- margin-bottom: 0 !important;
- border-top-right-radius: 0 !important;
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,
-div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
-div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
-div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
- border-bottom-left-radius: 0 !important;
- border-bottom-right-radius: 0 !important;
-}
-
-div.DTFC_RightBodyWrapper table,
-div.DTFC_LeftBodyWrapper table {
- border-top: none;
- margin: 0 !important;
-}
-
-div.DTFC_RightBodyWrapper tbody tr:first-child th,
-div.DTFC_RightBodyWrapper tbody tr:first-child td,
-div.DTFC_LeftBodyWrapper tbody tr:first-child th,
-div.DTFC_LeftBodyWrapper tbody tr:first-child td {
- border-top: none;
-}
-
-div.DTFC_RightFootWrapper table,
-div.DTFC_LeftFootWrapper table {
- border-top: none;
- margin-top: 0 !important;
-}
-
-
-/*
- * FixedHeader styles
- */
-div.FixedHeader_Cloned table {
- margin: 0 !important
-}
-
-
-
-
-div.dataTables_length, div.dataTables_info {
- display: inline;
-}
-
-div.dataTables_paginate {
- display: inline;
- float: right !important;
-}
-
-input.pagination-panel-input {
- width: 50px;
-}
-
-
diff --git a/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif b/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif
deleted file mode 100644
index 6d614d3..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png
deleted file mode 100644
index a88d797..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png
deleted file mode 100644
index 1867040..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png
deleted file mode 100644
index def071e..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js
deleted file mode 100644
index 367680d..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js
+++ /dev/null
@@ -1,12101 +0,0 @@
-/**
- * @summary DataTables
- * @description Paginate, search and sort HTML tables
- * @version 1.9.4
- * @file jquery.dataTables.js
- * @author Allan Jardine (www.sprymedia.co.uk)
- * @contact www.sprymedia.co.uk/contact
- *
- * @copyright Copyright 2008-2012 Allan Jardine, all rights reserved.
- *
- * This source file is free software, under either the GPL v2 license or a
- * BSD style license, available at:
- * http://datatables.net/license_gpl2
- * http://datatables.net/license_bsd
- *
- * This source file is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
- *
- * For details please refer to: http://www.datatables.net
- */
-
-/*jslint evil: true, undef: true, browser: true */
-/*globals $, jQuery,define,_fnExternApiFunc,_fnInitialise,_fnInitComplete,_fnLanguageCompat,_fnAddColumn,_fnColumnOptions,_fnAddData,_fnCreateTr,_fnGatherData,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnServerParams,_fnAddOptionsHtml,_fnFeatureHtmlTable,_fnScrollDraw,_fnAdjustColumnSizing,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnBuildSearchArray,_fnBuildSearchRow,_fnFilterCreateSearch,_fnDataToSearch,_fnSort,_fnSortAttachListener,_fnSortingClasses,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnFeatureHtmlLength,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnNodeToDataIndex,_fnVisbleColumns,_fnCalculateEnd,_fnConvertToWidth,_fnCalculateColumnWidths,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnDetectType,_fnSettingsFromNode,_fnGetDataMaster,_fnGetTrNodes,_fnGetTdNodes,_fnEscapeRegex,_fnDeleteIndex,_fnReOrderIndex,_fnColumnOrdering,_fnLog,_fnClearTable,_fnSaveState,_fnLoadState,_fnCreateCookie,_fnReadCookie,_fnDetectHeader,_fnGetUniqueThs,_fnScrollBarWidth,_fnApplyToChildren,_fnMap,_fnGetRowData,_fnGetCellData,_fnSetCellData,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnApplyColumnDefs,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnJsonString,_fnRender,_fnNodeToColumnIndex,_fnInfoMacros,_fnBrowserDetect,_fnGetColumns*/
-
-(/** @lends <global> */function( window, document, undefined ) {
-
-(function( factory ) {
- "use strict";
-
- // Define as an AMD module if possible
- if ( typeof define === 'function' && define.amd )
- {
- define( ['jquery'], factory );
- }
- /* Define using browser globals otherwise
- * Prevent multiple instantiations if the script is loaded twice
- */
- else if ( jQuery && !jQuery.fn.dataTable )
- {
- factory( jQuery );
- }
-}
-(/** @lends <global> */function( $ ) {
- "use strict";
- /**
- * DataTables is a plug-in for the jQuery Javascript library. It is a
- * highly flexible tool, based upon the foundations of progressive
- * enhancement, which will add advanced interaction controls to any
- * HTML table. For a full list of features please refer to
- * <a href="http://datatables.net">DataTables.net</a>.
- *
- * Note that the <i>DataTable</i> object is not a global variable but is
- * aliased to <i>jQuery.fn.DataTable</i> and <i>jQuery.fn.dataTable</i> through which
- * it may be accessed.
- *
- * @class
- * @param {object} [oInit={}] Configuration object for DataTables. Options
- * are defined by {@link DataTable.defaults}
- * @requires jQuery 1.3+
- *
- * @example
- * // Basic initialisation
- * $(document).ready( function {
- * $('#example').dataTable();
- * } );
- *
- * @example
- * // Initialisation with configuration options - in this case, disable
- * // pagination and sorting.
- * $(document).ready( function {
- * $('#example').dataTable( {
- * "bPaginate": false,
- * "bSort": false
- * } );
- * } );
- */
- var DataTable = function( oInit )
- {
-
-
- /**
- * Add a column to the list used for the table with default values
- * @param {object} oSettings dataTables settings object
- * @param {node} nTh The th element for this column
- * @memberof DataTable#oApi
- */
- function _fnAddColumn( oSettings, nTh )
- {
- var oDefaults = DataTable.defaults.columns;
- var iCol = oSettings.aoColumns.length;
- var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
- "sSortingClass": oSettings.oClasses.sSortable,
- "sSortingClassJUI": oSettings.oClasses.sSortJUI,
- "nTh": nTh ? nTh : document.createElement('th'),
- "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
- "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
- "mData": oDefaults.mData ? oDefaults.oDefaults : iCol
- } );
- oSettings.aoColumns.push( oCol );
-
- /* Add a column specific filter */
- if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
- {
- oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
- }
- else
- {
- var oPre = oSettings.aoPreSearchCols[ iCol ];
-
- /* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */
- if ( oPre.bRegex === undefined )
- {
- oPre.bRegex = true;
- }
-
- if ( oPre.bSmart === undefined )
- {
- oPre.bSmart = true;
- }
-
- if ( oPre.bCaseInsensitive === undefined )
- {
- oPre.bCaseInsensitive = true;
- }
- }
-
- /* Use the column options function to initialise classes etc */
- _fnColumnOptions( oSettings, iCol, null );
- }
-
-
- /**
- * Apply options for a column
- * @param {object} oSettings dataTables settings object
- * @param {int} iCol column index to consider
- * @param {object} oOptions object with sType, bVisible and bSearchable etc
- * @memberof DataTable#oApi
- */
- function _fnColumnOptions( oSettings, iCol, oOptions )
- {
- var oCol = oSettings.aoColumns[ iCol ];
-
- /* User specified column options */
- if ( oOptions !== undefined && oOptions !== null )
- {
- /* Backwards compatibility for mDataProp */
- if ( oOptions.mDataProp && !oOptions.mData )
- {
- oOptions.mData = oOptions.mDataProp;
- }
-
- if ( oOptions.sType !== undefined )
- {
- oCol.sType = oOptions.sType;
- oCol._bAutoType = false;
- }
-
- $.extend( oCol, oOptions );
- _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
-
- /* iDataSort to be applied (backwards compatibility), but aDataSort will take
- * priority if defined
- */
- if ( oOptions.iDataSort !== undefined )
- {
- oCol.aDataSort = [ oOptions.iDataSort ];
- }
- _fnMap( oCol, oOptions, "aDataSort" );
- }
-
- /* Cache the data get and set functions for speed */
- var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
- var mData = _fnGetObjectDataFn( oCol.mData );
-
- oCol.fnGetData = function (oData, sSpecific) {
- var innerData = mData( oData, sSpecific );
-
- if ( oCol.mRender && (sSpecific && sSpecific !== '') )
- {
- return mRender( innerData, sSpecific, oData );
- }
- return innerData;
- };
- oCol.fnSetData = _fnSetObjectDataFn( oCol.mData );
-
- /* Feature sorting overrides column specific when off */
- if ( !oSettings.oFeatures.bSort )
- {
- oCol.bSortable = false;
- }
-
- /* Check that the class assignment is correct for sorting */
- if ( !oCol.bSortable ||
- ($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) )
- {
- oCol.sSortingClass = oSettings.oClasses.sSortableNone;
- oCol.sSortingClassJUI = "";
- }
- else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1 )
- {
- oCol.sSortingClass = oSettings.oClasses.sSortable;
- oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI;
- }
- else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 )
- {
- oCol.sSortingClass = oSettings.oClasses.sSortableAsc;
- oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIAscAllowed;
- }
- else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) != -1 )
- {
- oCol.sSortingClass = oSettings.oClasses.sSortableDesc;
- oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIDescAllowed;
- }
- }
-
-
- /**
- * Adjust the table column widths for new data. Note: you would probably want to
- * do a redraw after calling this function!
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAdjustColumnSizing ( oSettings )
- {
- /* Not interested in doing column width calculation if auto-width is disabled */
- if ( oSettings.oFeatures.bAutoWidth === false )
- {
- return false;
- }
-
- _fnCalculateColumnWidths( oSettings );
- for ( var i=0 , iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- oSettings.aoColumns[i].nTh.style.width = oSettings.aoColumns[i].sWidth;
- }
- }
-
-
- /**
- * Covert the index of a visible column to the index in the data array (take account
- * of hidden columns)
- * @param {object} oSettings dataTables settings object
- * @param {int} iMatch Visible column index to lookup
- * @returns {int} i the data index
- * @memberof DataTable#oApi
- */
- function _fnVisibleToColumnIndex( oSettings, iMatch )
- {
- var aiVis = _fnGetColumns( oSettings, 'bVisible' );
-
- return typeof aiVis[iMatch] === 'number' ?
- aiVis[iMatch] :
- null;
- }
-
-
- /**
- * Covert the index of an index in the data array and convert it to the visible
- * column index (take account of hidden columns)
- * @param {int} iMatch Column index to lookup
- * @param {object} oSettings dataTables settings object
- * @returns {int} i the data index
- * @memberof DataTable#oApi
- */
- function _fnColumnIndexToVisible( oSettings, iMatch )
- {
- var aiVis = _fnGetColumns( oSettings, 'bVisible' );
- var iPos = $.inArray( iMatch, aiVis );
-
- return iPos !== -1 ? iPos : null;
- }
-
-
- /**
- * Get the number of visible columns
- * @param {object} oSettings dataTables settings object
- * @returns {int} i the number of visible columns
- * @memberof DataTable#oApi
- */
- function _fnVisbleColumns( oSettings )
- {
- return _fnGetColumns( oSettings, 'bVisible' ).length;
- }
-
-
- /**
- * Get an array of column indexes that match a given property
- * @param {object} oSettings dataTables settings object
- * @param {string} sParam Parameter in aoColumns to look for - typically
- * bVisible or bSearchable
- * @returns {array} Array of indexes with matched properties
- * @memberof DataTable#oApi
- */
- function _fnGetColumns( oSettings, sParam )
- {
- var a = [];
-
- $.map( oSettings.aoColumns, function(val, i) {
- if ( val[sParam] ) {
- a.push( i );
- }
- } );
-
- return a;
- }
-
-
- /**
- * Get the sort type based on an input string
- * @param {string} sData data we wish to know the type of
- * @returns {string} type (defaults to 'string' if no type can be detected)
- * @memberof DataTable#oApi
- */
- function _fnDetectType( sData )
- {
- var aTypes = DataTable.ext.aTypes;
- var iLen = aTypes.length;
-
- for ( var i=0 ; i<iLen ; i++ )
- {
- var sType = aTypes[i]( sData );
- if ( sType !== null )
- {
- return sType;
- }
- }
-
- return 'string';
- }
-
-
- /**
- * Figure out how to reorder a display list
- * @param {object} oSettings dataTables settings object
- * @returns array {int} aiReturn index list for reordering
- * @memberof DataTable#oApi
- */
- function _fnReOrderIndex ( oSettings, sColumns )
- {
- var aColumns = sColumns.split(',');
- var aiReturn = [];
-
- for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- for ( var j=0 ; j<iLen ; j++ )
- {
- if ( oSettings.aoColumns[i].sName == aColumns[j] )
- {
- aiReturn.push( j );
- break;
- }
- }
- }
-
- return aiReturn;
- }
-
-
- /**
- * Get the column ordering that DataTables expects
- * @param {object} oSettings dataTables settings object
- * @returns {string} comma separated list of names
- * @memberof DataTable#oApi
- */
- function _fnColumnOrdering ( oSettings )
- {
- var sNames = '';
- for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- sNames += oSettings.aoColumns[i].sName+',';
- }
- if ( sNames.length == iLen )
- {
- return "";
- }
- return sNames.slice(0, -1);
- }
-
-
- /**
- * Take the column definitions and static columns arrays and calculate how
- * they relate to column indexes. The callback function will then apply the
- * definition found for a column to a suitable configuration object.
- * @param {object} oSettings dataTables settings object
- * @param {array} aoColDefs The aoColumnDefs array that is to be applied
- * @param {array} aoCols The aoColumns array that defines columns individually
- * @param {function} fn Callback function - takes two parameters, the calculated
- * column index and the definition for that column.
- * @memberof DataTable#oApi
- */
- function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
- {
- var i, iLen, j, jLen, k, kLen;
-
- // Column definitions with aTargets
- if ( aoColDefs )
- {
- /* Loop over the definitions array - loop in reverse so first instance has priority */
- for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
- {
- /* Each definition can target multiple columns, as it is an array */
- var aTargets = aoColDefs[i].aTargets;
- if ( !$.isArray( aTargets ) )
- {
- _fnLog( oSettings, 1, 'aTargets must be an array of targets, not a '+(typeof aTargets) );
- }
-
- for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
- {
- if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
- {
- /* Add columns that we don't yet know about */
- while( oSettings.aoColumns.length <= aTargets[j] )
- {
- _fnAddColumn( oSettings );
- }
-
- /* Integer, basic index */
- fn( aTargets[j], aoColDefs[i] );
- }
- else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
- {
- /* Negative integer, right to left column counting */
- fn( oSettings.aoColumns.length+aTargets[j], aoColDefs[i] );
- }
- else if ( typeof aTargets[j] === 'string' )
- {
- /* Class name matching on TH element */
- for ( k=0, kLen=oSettings.aoColumns.length ; k<kLen ; k++ )
- {
- if ( aTargets[j] == "_all" ||
- $(oSettings.aoColumns[k].nTh).hasClass( aTargets[j] ) )
- {
- fn( k, aoColDefs[i] );
- }
- }
- }
- }
- }
- }
-
- // Statically defined columns array
- if ( aoCols )
- {
- for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
- {
- fn( i, aoCols[i] );
- }
- }
- }
-
- /**
- * Add a data array to the table, creating DOM node etc. This is the parallel to
- * _fnGatherData, but for adding rows from a Javascript source, rather than a
- * DOM source.
- * @param {object} oSettings dataTables settings object
- * @param {array} aData data array to be added
- * @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
- * @memberof DataTable#oApi
- */
- function _fnAddData ( oSettings, aDataSupplied )
- {
- var oCol;
-
- /* Take an independent copy of the data source so we can bash it about as we wish */
- var aDataIn = ($.isArray(aDataSupplied)) ?
- aDataSupplied.slice() :
- $.extend( true, {}, aDataSupplied );
-
- /* Create the object for storing information about this new row */
- var iRow = oSettings.aoData.length;
- var oData = $.extend( true, {}, DataTable.models.oRow );
- oData._aData = aDataIn;
- oSettings.aoData.push( oData );
-
- /* Create the cells */
- var nTd, sThisType;
- for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- oCol = oSettings.aoColumns[i];
-
- /* Use rendered data for filtering / sorting */
- if ( typeof oCol.fnRender === 'function' && oCol.bUseRendered && oCol.mData !== null )
- {
- _fnSetCellData( oSettings, iRow, i, _fnRender(oSettings, iRow, i) );
- }
- else
- {
- _fnSetCellData( oSettings, iRow, i, _fnGetCellData( oSettings, iRow, i ) );
- }
-
- /* See if we should auto-detect the column type */
- if ( oCol._bAutoType && oCol.sType != 'string' )
- {
- /* Attempt to auto detect the type - same as _fnGatherData() */
- var sVarType = _fnGetCellData( oSettings, iRow, i, 'type' );
- if ( sVarType !== null && sVarType !== '' )
- {
- sThisType = _fnDetectType( sVarType );
- if ( oCol.sType === null )
- {
- oCol.sType = sThisType;
- }
- else if ( oCol.sType != sThisType && oCol.sType != "html" )
- {
- /* String is always the 'fallback' option */
- oCol.sType = 'string';
- }
- }
- }
- }
-
- /* Add to the display array */
- oSettings.aiDisplayMaster.push( iRow );
-
- /* Create the DOM information */
- if ( !oSettings.oFeatures.bDeferRender )
- {
- _fnCreateTr( oSettings, iRow );
- }
-
- return iRow;
- }
-
-
- /**
- * Read in the data from the target table from the DOM
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnGatherData( oSettings )
- {
- var iLoop, i, iLen, j, jLen, jInner,
- nTds, nTrs, nTd, nTr, aLocalData, iThisIndex,
- iRow, iRows, iColumn, iColumns, sNodeName,
- oCol, oData;
-
- /*
- * Process by row first
- * Add the data object for the whole table - storing the tr node. Note - no point in getting
- * DOM based data if we are going to go and replace it with Ajax source data.
- */
- if ( oSettings.bDeferLoading || oSettings.sAjaxSource === null )
- {
- nTr = oSettings.nTBody.firstChild;
- while ( nTr )
- {
- if ( nTr.nodeName.toUpperCase() == "TR" )
- {
- iThisIndex = oSettings.aoData.length;
- nTr._DT_RowIndex = iThisIndex;
- oSettings.aoData.push( $.extend( true, {}, DataTable.models.oRow, {
- "nTr": nTr
- } ) );
-
- oSettings.aiDisplayMaster.push( iThisIndex );
- nTd = nTr.firstChild;
- jInner = 0;
- while ( nTd )
- {
- sNodeName = nTd.nodeName.toUpperCase();
- if ( sNodeName == "TD" || sNodeName == "TH" )
- {
- _fnSetCellData( oSettings, iThisIndex, jInner, $.trim(nTd.innerHTML) );
- jInner++;
- }
- nTd = nTd.nextSibling;
- }
- }
- nTr = nTr.nextSibling;
- }
- }
-
- /* Gather in the TD elements of the Table - note that this is basically the same as
- * fnGetTdNodes, but that function takes account of hidden columns, which we haven't yet
- * setup!
- */
- nTrs = _fnGetTrNodes( oSettings );
- nTds = [];
- for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
- {
- nTd = nTrs[i].firstChild;
- while ( nTd )
- {
- sNodeName = nTd.nodeName.toUpperCase();
- if ( sNodeName == "TD" || sNodeName == "TH" )
- {
- nTds.push( nTd );
- }
- nTd = nTd.nextSibling;
- }
- }
-
- /* Now process by column */
- for ( iColumn=0, iColumns=oSettings.aoColumns.length ; iColumn<iColumns ; iColumn++ )
- {
- oCol = oSettings.aoColumns[iColumn];
-
- /* Get the title of the column - unless there is a user set one */
- if ( oCol.sTitle === null )
- {
- oCol.sTitle = oCol.nTh.innerHTML;
- }
-
- var
- bAutoType = oCol._bAutoType,
- bRender = typeof oCol.fnRender === 'function',
- bClass = oCol.sClass !== null,
- bVisible = oCol.bVisible,
- nCell, sThisType, sRendered, sValType;
-
- /* A single loop to rule them all (and be more efficient) */
- if ( bAutoType || bRender || bClass || !bVisible )
- {
- for ( iRow=0, iRows=oSettings.aoData.length ; iRow<iRows ; iRow++ )
- {
- oData = oSettings.aoData[iRow];
- nCell = nTds[ (iRow*iColumns) + iColumn ];
-
- /* Type detection */
- if ( bAutoType && oCol.sType != 'string' )
- {
- sValType = _fnGetCellData( oSettings, iRow, iColumn, 'type' );
- if ( sValType !== '' )
- {
- sThisType = _fnDetectType( sValType );
- if ( oCol.sType === null )
- {
- oCol.sType = sThisType;
- }
- else if ( oCol.sType != sThisType &&
- oCol.sType != "html" )
- {
- /* String is always the 'fallback' option */
- oCol.sType = 'string';
- }
- }
- }
-
- if ( oCol.mRender )
- {
- // mRender has been defined, so we need to get the value and set it
- nCell.innerHTML = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
- }
- else if ( oCol.mData !== iColumn )
- {
- // If mData is not the same as the column number, then we need to
- // get the dev set value. If it is the column, no point in wasting
- // time setting the value that is already there!
- nCell.innerHTML = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
- }
-
- /* Rendering */
- if ( bRender )
- {
- sRendered = _fnRender( oSettings, iRow, iColumn );
- nCell.innerHTML = sRendered;
- if ( oCol.bUseRendered )
- {
- /* Use the rendered data for filtering / sorting */
- _fnSetCellData( oSettings, iRow, iColumn, sRendered );
- }
- }
-
- /* Classes */
- if ( bClass )
- {
- nCell.className += ' '+oCol.sClass;
- }
-
- /* Column visibility */
- if ( !bVisible )
- {
- oData._anHidden[iColumn] = nCell;
- nCell.parentNode.removeChild( nCell );
- }
- else
- {
- oData._anHidden[iColumn] = null;
- }
-
- if ( oCol.fnCreatedCell )
- {
- oCol.fnCreatedCell.call( oSettings.oInstance,
- nCell, _fnGetCellData( oSettings, iRow, iColumn, 'display' ), oData._aData, iRow, iColumn
- );
- }
- }
- }
- }
-
- /* Row created callbacks */
- if ( oSettings.aoRowCreatedCallback.length !== 0 )
- {
- for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
- {
- oData = oSettings.aoData[i];
- _fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [oData.nTr, oData._aData, i] );
- }
- }
- }
-
-
- /**
- * Take a TR element and convert it to an index in aoData
- * @param {object} oSettings dataTables settings object
- * @param {node} n the TR element to find
- * @returns {int} index if the node is found, null if not
- * @memberof DataTable#oApi
- */
- function _fnNodeToDataIndex( oSettings, n )
- {
- return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
- }
-
-
- /**
- * Take a TD element and convert it into a column data index (not the visible index)
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow The row number the TD/TH can be found in
- * @param {node} n The TD/TH element to find
- * @returns {int} index if the node is found, -1 if not
- * @memberof DataTable#oApi
- */
- function _fnNodeToColumnIndex( oSettings, iRow, n )
- {
- var anCells = _fnGetTdNodes( oSettings, iRow );
-
- for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- if ( anCells[i] === n )
- {
- return i;
- }
- }
- return -1;
- }
-
-
- /**
- * Get an array of data for a given row from the internal data cache
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow aoData row id
- * @param {string} sSpecific data get type ('type' 'filter' 'sort')
- * @param {array} aiColumns Array of column indexes to get data from
- * @returns {array} Data array
- * @memberof DataTable#oApi
- */
- function _fnGetRowData( oSettings, iRow, sSpecific, aiColumns )
- {
- var out = [];
- for ( var i=0, iLen=aiColumns.length ; i<iLen ; i++ )
- {
- out.push( _fnGetCellData( oSettings, iRow, aiColumns[i], sSpecific ) );
- }
- return out;
- }
-
-
- /**
- * Get the data for a given cell from the internal cache, taking into account data mapping
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow aoData row id
- * @param {int} iCol Column index
- * @param {string} sSpecific data get type ('display', 'type' 'filter' 'sort')
- * @returns {*} Cell data
- * @memberof DataTable#oApi
- */
- function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
- {
- var sData;
- var oCol = oSettings.aoColumns[iCol];
- var oData = oSettings.aoData[iRow]._aData;
-
- if ( (sData=oCol.fnGetData( oData, sSpecific )) === undefined )
- {
- if ( oSettings.iDrawError != oSettings.iDraw && oCol.sDefaultContent === null )
- {
- _fnLog( oSettings, 1, "Requested unknown parameter "+
- (typeof oCol.mData=='function' ? '{mData function}' : "'"+oCol.mData+"'")+
- " from the data source for row "+iRow );
- oSettings.iDrawError = oSettings.iDraw;
- }
- return oCol.sDefaultContent;
- }
-
- /* When the data source is null, we can use default column data */
- if ( sData === null && oCol.sDefaultContent !== null )
- {
- sData = oCol.sDefaultContent;
- }
- else if ( typeof sData === 'function' )
- {
- /* If the data source is a function, then we run it and use the return */
- return sData();
- }
-
- if ( sSpecific == 'display' && sData === null )
- {
- return '';
- }
- return sData;
- }
-
-
- /**
- * Set the value for a specific cell, into the internal data cache
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow aoData row id
- * @param {int} iCol Column index
- * @param {*} val Value to set
- * @memberof DataTable#oApi
- */
- function _fnSetCellData( oSettings, iRow, iCol, val )
- {
- var oCol = oSettings.aoColumns[iCol];
- var oData = oSettings.aoData[iRow]._aData;
-
- oCol.fnSetData( oData, val );
- }
-
-
- // Private variable that is used to match array syntax in the data property object
- var __reArray = /\[.*?\]$/;
-
- /**
- * Return a function that can be used to get data from a source object, taking
- * into account the ability to use nested objects as a source
- * @param {string|int|function} mSource The data source for the object
- * @returns {function} Data get function
- * @memberof DataTable#oApi
- */
- function _fnGetObjectDataFn( mSource )
- {
- if ( mSource === null )
- {
- /* Give an empty string for rendering / sorting etc */
- return function (data, type) {
- return null;
- };
- }
- else if ( typeof mSource === 'function' )
- {
- return function (data, type, extra) {
- return mSource( data, type, extra );
- };
- }
- else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1) )
- {
- /* If there is a . in the source string then the data source is in a
- * nested object so we loop over the data for each level to get the next
- * level down. On each loop we test for undefined, and if found immediately
- * return. This allows entire objects to be missing and sDefaultContent to
- * be used if defined, rather than throwing an error
- */
- var fetchData = function (data, type, src) {
- var a = src.split('.');
- var arrayNotation, out, innerSrc;
-
- if ( src !== "" )
- {
- for ( var i=0, iLen=a.length ; i<iLen ; i++ )
- {
- // Check if we are dealing with an array notation request
- arrayNotation = a[i].match(__reArray);
-
- if ( arrayNotation ) {
- a[i] = a[i].replace(__reArray, '');
-
- // Condition allows simply [] to be passed in
- if ( a[i] !== "" ) {
- data = data[ a[i] ];
- }
- out = [];
-
- // Get the remainder of the nested object to get
- a.splice( 0, i+1 );
- innerSrc = a.join('.');
-
- // Traverse each entry in the array getting the properties requested
- for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
- out.push( fetchData( data[j], type, innerSrc ) );
- }
-
- // If a string is given in between the array notation indicators, that
- // is used to join the strings together, otherwise an array is returned
- var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
- data = (join==="") ? out : out.join(join);
-
- // The inner call to fetchData has already traversed through the remainder
- // of the source requested, so we exit from the loop
- break;
- }
-
- if ( data === null || data[ a[i] ] === undefined )
- {
- return undefined;
- }
- data = data[ a[i] ];
- }
- }
-
- return data;
- };
-
- return function (data, type) {
- return fetchData( data, type, mSource );
- };
- }
- else
- {
- /* Array or flat object mapping */
- return function (data, type) {
- return data[mSource];
- };
- }
- }
-
-
- /**
- * Return a function that can be used to set data from a source object, taking
- * into account the ability to use nested objects as a source
- * @param {string|int|function} mSource The data source for the object
- * @returns {function} Data set function
- * @memberof DataTable#oApi
- */
- function _fnSetObjectDataFn( mSource )
- {
- if ( mSource === null )
- {
- /* Nothing to do when the data source is null */
- return function (data, val) {};
- }
- else if ( typeof mSource === 'function' )
- {
- return function (data, val) {
- mSource( data, 'set', val );
- };
- }
- else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 || mSource.indexOf('[') !== -1) )
- {
- /* Like the get, we need to get data from a nested object */
- var setData = function (data, val, src) {
- var a = src.split('.'), b;
- var arrayNotation, o, innerSrc;
-
- for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
- {
- // Check if we are dealing with an array notation request
- arrayNotation = a[i].match(__reArray);
-
- if ( arrayNotation )
- {
- a[i] = a[i].replace(__reArray, '');
- data[ a[i] ] = [];
-
- // Get the remainder of the nested object to set so we can recurse
- b = a.slice();
- b.splice( 0, i+1 );
- innerSrc = b.join('.');
-
- // Traverse each entry in the array setting the properties requested
- for ( var j=0, jLen=val.length ; j<jLen ; j++ )
- {
- o = {};
- setData( o, val[j], innerSrc );
- data[ a[i] ].push( o );
- }
-
- // The inner call to setData has already traversed through the remainder
- // of the source and has set the data, thus we can exit here
- return;
- }
-
- // If the nested object doesn't currently exist - since we are
- // trying to set the value - create it
- if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
- {
- data[ a[i] ] = {};
- }
- data = data[ a[i] ];
- }
-
- // If array notation is used, we just want to strip it and use the property name
- // and assign the value. If it isn't used, then we get the result we want anyway
- data[ a[a.length-1].replace(__reArray, '') ] = val;
- };
-
- return function (data, val) {
- return setData( data, val, mSource );
- };
- }
- else
- {
- /* Array or flat object mapping */
- return function (data, val) {
- data[mSource] = val;
- };
- }
- }
-
-
- /**
- * Return an array with the full table data
- * @param {object} oSettings dataTables settings object
- * @returns array {array} aData Master data array
- * @memberof DataTable#oApi
- */
- function _fnGetDataMaster ( oSettings )
- {
- var aData = [];
- var iLen = oSettings.aoData.length;
- for ( var i=0 ; i<iLen; i++ )
- {
- aData.push( oSettings.aoData[i]._aData );
- }
- return aData;
- }
-
-
- /**
- * Nuke the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnClearTable( oSettings )
- {
- oSettings.aoData.splice( 0, oSettings.aoData.length );
- oSettings.aiDisplayMaster.splice( 0, oSettings.aiDisplayMaster.length );
- oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length );
- _fnCalculateEnd( oSettings );
- }
-
-
- /**
- * Take an array of integers (index array) and remove a target integer (value - not
- * the key!)
- * @param {array} a Index array to target
- * @param {int} iTarget value to find
- * @memberof DataTable#oApi
- */
- function _fnDeleteIndex( a, iTarget )
- {
- var iTargetIndex = -1;
-
- for ( var i=0, iLen=a.length ; i<iLen ; i++ )
- {
- if ( a[i] == iTarget )
- {
- iTargetIndex = i;
- }
- else if ( a[i] > iTarget )
- {
- a[i]--;
- }
- }
-
- if ( iTargetIndex != -1 )
- {
- a.splice( iTargetIndex, 1 );
- }
- }
-
-
- /**
- * Call the developer defined fnRender function for a given cell (row/column) with
- * the required parameters and return the result.
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow aoData index for the row
- * @param {int} iCol aoColumns index for the column
- * @returns {*} Return of the developer's fnRender function
- * @memberof DataTable#oApi
- */
- function _fnRender( oSettings, iRow, iCol )
- {
- var oCol = oSettings.aoColumns[iCol];
-
- return oCol.fnRender( {
- "iDataRow": iRow,
- "iDataColumn": iCol,
- "oSettings": oSettings,
- "aData": oSettings.aoData[iRow]._aData,
- "mDataProp": oCol.mData
- }, _fnGetCellData(oSettings, iRow, iCol, 'display') );
- }
- /**
- * Create a new TR element (and it's TD children) for a row
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow Row to consider
- * @memberof DataTable#oApi
- */
- function _fnCreateTr ( oSettings, iRow )
- {
- var oData = oSettings.aoData[iRow];
- var nTd;
-
- if ( oData.nTr === null )
- {
- oData.nTr = document.createElement('tr');
-
- /* Use a private property on the node to allow reserve mapping from the node
- * to the aoData array for fast look up
- */
- oData.nTr._DT_RowIndex = iRow;
-
- /* Special parameters can be given by the data source to be used on the row */
- if ( oData._aData.DT_RowId )
- {
- oData.nTr.id = oData._aData.DT_RowId;
- }
-
- if ( oData._aData.DT_RowClass )
- {
- oData.nTr.className = oData._aData.DT_RowClass;
- }
-
- /* Process each column */
- for ( var i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- var oCol = oSettings.aoColumns[i];
- nTd = document.createElement( oCol.sCellType );
-
- /* Render if needed - if bUseRendered is true then we already have the rendered
- * value in the data source - so can just use that
- */
- nTd.innerHTML = (typeof oCol.fnRender === 'function' && (!oCol.bUseRendered || oCol.mData === null)) ?
- _fnRender( oSettings, iRow, i ) :
- _fnGetCellData( oSettings, iRow, i, 'display' );
-
- /* Add user defined class */
- if ( oCol.sClass !== null )
- {
- nTd.className = oCol.sClass;
- }
-
- if ( oCol.bVisible )
- {
- oData.nTr.appendChild( nTd );
- oData._anHidden[i] = null;
- }
- else
- {
- oData._anHidden[i] = nTd;
- }
-
- if ( oCol.fnCreatedCell )
- {
- oCol.fnCreatedCell.call( oSettings.oInstance,
- nTd, _fnGetCellData( oSettings, iRow, i, 'display' ), oData._aData, iRow, i
- );
- }
- }
-
- _fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [oData.nTr, oData._aData, iRow] );
- }
- }
-
-
- /**
- * Create the HTML header for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnBuildHead( oSettings )
- {
- var i, nTh, iLen, j, jLen;
- var iThs = $('th, td', oSettings.nTHead).length;
- var iCorrector = 0;
- var jqChildren;
-
- /* If there is a header in place - then use it - otherwise it's going to get nuked... */
- if ( iThs !== 0 )
- {
- /* We've got a thead from the DOM, so remove hidden columns and apply width to vis cols */
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- nTh = oSettings.aoColumns[i].nTh;
- nTh.setAttribute('role', 'columnheader');
- if ( oSettings.aoColumns[i].bSortable )
- {
- nTh.setAttribute('tabindex', oSettings.iTabIndex);
- nTh.setAttribute('aria-controls', oSettings.sTableId);
- }
-
- if ( oSettings.aoColumns[i].sClass !== null )
- {
- $(nTh).addClass( oSettings.aoColumns[i].sClass );
- }
-
- /* Set the title of the column if it is user defined (not what was auto detected) */
- if ( oSettings.aoColumns[i].sTitle != nTh.innerHTML )
- {
- nTh.innerHTML = oSettings.aoColumns[i].sTitle;
- }
- }
- }
- else
- {
- /* We don't have a header in the DOM - so we are going to have to create one */
- var nTr = document.createElement( "tr" );
-
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- nTh = oSettings.aoColumns[i].nTh;
- nTh.innerHTML = oSettings.aoColumns[i].sTitle;
- nTh.setAttribute('tabindex', '0');
-
- if ( oSettings.aoColumns[i].sClass !== null )
- {
- $(nTh).addClass( oSettings.aoColumns[i].sClass );
- }
-
- nTr.appendChild( nTh );
- }
- $(oSettings.nTHead).html( '' )[0].appendChild( nTr );
- _fnDetectHeader( oSettings.aoHeader, oSettings.nTHead );
- }
-
- /* ARIA role for the rows */
- $(oSettings.nTHead).children('tr').attr('role', 'row');
-
- /* Add the extra markup needed by jQuery UI's themes */
- if ( oSettings.bJUI )
- {
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- nTh = oSettings.aoColumns[i].nTh;
-
- var nDiv = document.createElement('div');
- nDiv.className = oSettings.oClasses.sSortJUIWrapper;
- $(nTh).contents().appendTo(nDiv);
-
- var nSpan = document.createElement('span');
- nSpan.className = oSettings.oClasses.sSortIcon;
- nDiv.appendChild( nSpan );
- nTh.appendChild( nDiv );
- }
- }
-
- if ( oSettings.oFeatures.bSort )
- {
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- if ( oSettings.aoColumns[i].bSortable !== false )
- {
- _fnSortAttachListener( oSettings, oSettings.aoColumns[i].nTh, i );
- }
- else
- {
- $(oSettings.aoColumns[i].nTh).addClass( oSettings.oClasses.sSortableNone );
- }
- }
- }
-
- /* Deal with the footer - add classes if required */
- if ( oSettings.oClasses.sFooterTH !== "" )
- {
- $(oSettings.nTFoot).children('tr').children('th').addClass( oSettings.oClasses.sFooterTH );
- }
-
- /* Cache the footer elements */
- if ( oSettings.nTFoot !== null )
- {
- var anCells = _fnGetUniqueThs( oSettings, null, oSettings.aoFooter );
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- if ( anCells[i] )
- {
- oSettings.aoColumns[i].nTf = anCells[i];
- if ( oSettings.aoColumns[i].sClass )
- {
- $(anCells[i]).addClass( oSettings.aoColumns[i].sClass );
- }
- }
- }
- }
- }
-
-
- /**
- * Draw the header (or footer) element based on the column visibility states. The
- * methodology here is to use the layout array from _fnDetectHeader, modified for
- * the instantaneous column visibility, to construct the new layout. The grid is
- * traversed over cell at a time in a rows x columns grid fashion, although each
- * cell insert can cover multiple elements in the grid - which is tracks using the
- * aApplied array. Cell inserts in the grid will only occur where there isn't
- * already a cell in that position.
- * @param {object} oSettings dataTables settings object
- * @param array {objects} aoSource Layout array from _fnDetectHeader
- * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
- * @memberof DataTable#oApi
- */
- function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
- {
- var i, iLen, j, jLen, k, kLen, n, nLocalTr;
- var aoLocal = [];
- var aApplied = [];
- var iColumns = oSettings.aoColumns.length;
- var iRowspan, iColspan;
-
- if ( bIncludeHidden === undefined )
- {
- bIncludeHidden = false;
- }
-
- /* Make a copy of the master layout array, but without the visible columns in it */
- for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
- {
- aoLocal[i] = aoSource[i].slice();
- aoLocal[i].nTr = aoSource[i].nTr;
-
- /* Remove any columns which are currently hidden */
- for ( j=iColumns-1 ; j>=0 ; j-- )
- {
- if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
- {
- aoLocal[i].splice( j, 1 );
- }
- }
-
- /* Prep the applied array - it needs an element for each row */
- aApplied.push( [] );
- }
-
- for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
- {
- nLocalTr = aoLocal[i].nTr;
-
- /* All cells are going to be replaced, so empty out the row */
- if ( nLocalTr )
- {
- while( (n = nLocalTr.firstChild) )
- {
- nLocalTr.removeChild( n );
- }
- }
-
- for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
- {
- iRowspan = 1;
- iColspan = 1;
-
- /* Check to see if there is already a cell (row/colspan) covering our target
- * insert point. If there is, then there is nothing to do.
- */
- if ( aApplied[i][j] === undefined )
- {
- nLocalTr.appendChild( aoLocal[i][j].cell );
- aApplied[i][j] = 1;
-
- /* Expand the cell to cover as many rows as needed */
- while ( aoLocal[i+iRowspan] !== undefined &&
- aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
- {
- aApplied[i+iRowspan][j] = 1;
- iRowspan++;
- }
-
- /* Expand the cell to cover as many columns as needed */
- while ( aoLocal[i][j+iColspan] !== undefined &&
- aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
- {
- /* Must update the applied array over the rows for the columns */
- for ( k=0 ; k<iRowspan ; k++ )
- {
- aApplied[i+k][j+iColspan] = 1;
- }
- iColspan++;
- }
-
- /* Do the actual expansion in the DOM */
- aoLocal[i][j].cell.rowSpan = iRowspan;
- aoLocal[i][j].cell.colSpan = iColspan;
- }
- }
- }
- }
-
-
- /**
- * Insert the required TR nodes into the table for display
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnDraw( oSettings )
- {
- /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
- var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
- if ( $.inArray( false, aPreDraw ) !== -1 )
- {
- _fnProcessingDisplay( oSettings, false );
- return;
- }
-
- var i, iLen, n;
- var anRows = [];
- var iRowCount = 0;
- var iStripes = oSettings.asStripeClasses.length;
- var iOpenRows = oSettings.aoOpenRows.length;
-
- oSettings.bDrawing = true;
-
- /* Check and see if we have an initial draw position from state saving */
- if ( oSettings.iInitDisplayStart !== undefined && oSettings.iInitDisplayStart != -1 )
- {
- if ( oSettings.oFeatures.bServerSide )
- {
- oSettings._iDisplayStart = oSettings.iInitDisplayStart;
- }
- else
- {
- oSettings._iDisplayStart = (oSettings.iInitDisplayStart >= oSettings.fnRecordsDisplay()) ?
- 0 : oSettings.iInitDisplayStart;
- }
- oSettings.iInitDisplayStart = -1;
- _fnCalculateEnd( oSettings );
- }
-
- /* Server-side processing draw intercept */
- if ( oSettings.bDeferLoading )
- {
- oSettings.bDeferLoading = false;
- oSettings.iDraw++;
- }
- else if ( !oSettings.oFeatures.bServerSide )
- {
- oSettings.iDraw++;
- }
- else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
- {
- return;
- }
-
- if ( oSettings.aiDisplay.length !== 0 )
- {
- var iStart = oSettings._iDisplayStart;
- var iEnd = oSettings._iDisplayEnd;
-
- if ( oSettings.oFeatures.bServerSide )
- {
- iStart = 0;
- iEnd = oSettings.aoData.length;
- }
-
- for ( var j=iStart ; j<iEnd ; j++ )
- {
- var aoData = oSettings.aoData[ oSettings.aiDisplay[j] ];
- if ( aoData.nTr === null )
- {
- _fnCreateTr( oSettings, oSettings.aiDisplay[j] );
- }
-
- var nRow = aoData.nTr;
-
- /* Remove the old striping classes and then add the new one */
- if ( iStripes !== 0 )
- {
- var sStripe = oSettings.asStripeClasses[ iRowCount % iStripes ];
- if ( aoData._sRowStripe != sStripe )
- {
- $(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
- aoData._sRowStripe = sStripe;
- }
- }
-
- /* Row callback functions - might want to manipulate the row */
- _fnCallbackFire( oSettings, 'aoRowCallback', null,
- [nRow, oSettings.aoData[ oSettings.aiDisplay[j] ]._aData, iRowCount, j] );
-
- anRows.push( nRow );
- iRowCount++;
-
- /* If there is an open row - and it is attached to this parent - attach it on redraw */
- if ( iOpenRows !== 0 )
- {
- for ( var k=0 ; k<iOpenRows ; k++ )
- {
- if ( nRow == oSettings.aoOpenRows[k].nParent )
- {
- anRows.push( oSettings.aoOpenRows[k].nTr );
- break;
- }
- }
- }
- }
- }
- else
- {
- /* Table is empty - create a row with an empty message in it */
- anRows[ 0 ] = document.createElement( 'tr' );
-
- if ( oSettings.asStripeClasses[0] )
- {
- anRows[ 0 ].className = oSettings.asStripeClasses[0];
- }
-
- var oLang = oSettings.oLanguage;
- var sZero = oLang.sZeroRecords;
- if ( oSettings.iDraw == 1 && oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
- {
- sZero = oLang.sLoadingRecords;
- }
- else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
- {
- sZero = oLang.sEmptyTable;
- }
-
- var nTd = document.createElement( 'td' );
- nTd.setAttribute( 'valign', "top" );
- nTd.colSpan = _fnVisbleColumns( oSettings );
- nTd.className = oSettings.oClasses.sRowEmpty;
- nTd.innerHTML = _fnInfoMacros( oSettings, sZero );
-
- anRows[ iRowCount ].appendChild( nTd );
- }
-
- /* Header and footer callbacks */
- _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
- _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
-
- _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
- _fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
-
- /*
- * Need to remove any old row from the display - note we can't just empty the tbody using
- * $().html('') since this will unbind the jQuery event handlers (even although the node
- * still exists!) - equally we can't use innerHTML, since IE throws an exception.
- */
- var
- nAddFrag = document.createDocumentFragment(),
- nRemoveFrag = document.createDocumentFragment(),
- nBodyPar, nTrs;
-
- if ( oSettings.nTBody )
- {
- nBodyPar = oSettings.nTBody.parentNode;
- nRemoveFrag.appendChild( oSettings.nTBody );
-
- /* When doing infinite scrolling, only remove child rows when sorting, filtering or start
- * up. When not infinite scroll, always do it.
- */
- if ( !oSettings.oScroll.bInfinite || !oSettings._bInitComplete ||
- oSettings.bSorted || oSettings.bFiltered )
- {
- while( (n = oSettings.nTBody.firstChild) )
- {
- oSettings.nTBody.removeChild( n );
- }
- }
-
- /* Put the draw table into the dom */
- for ( i=0, iLen=anRows.length ; i<iLen ; i++ )
- {
- nAddFrag.appendChild( anRows[i] );
- }
-
- oSettings.nTBody.appendChild( nAddFrag );
- if ( nBodyPar !== null )
- {
- nBodyPar.appendChild( oSettings.nTBody );
- }
- }
-
- /* Call all required callback functions for the end of a draw */
- _fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
-
- /* Draw is complete, sorting and filtering must be as well */
- oSettings.bSorted = false;
- oSettings.bFiltered = false;
- oSettings.bDrawing = false;
-
- if ( oSettings.oFeatures.bServerSide )
- {
- _fnProcessingDisplay( oSettings, false );
- if ( !oSettings._bInitComplete )
- {
- _fnInitComplete( oSettings );
- }
- }
- }
-
-
- /**
- * Redraw the table - taking account of the various features which are enabled
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnReDraw( oSettings )
- {
- if ( oSettings.oFeatures.bSort )
- {
- /* Sorting will refilter and draw for us */
- _fnSort( oSettings, oSettings.oPreviousSearch );
- }
- else if ( oSettings.oFeatures.bFilter )
- {
- /* Filtering will redraw for us */
- _fnFilterComplete( oSettings, oSettings.oPreviousSearch );
- }
- else
- {
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
- }
-
-
- /**
- * Add the options to the page HTML for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAddOptionsHtml ( oSettings )
- {
- /*
- * Create a temporary, empty, div which we can later on replace with what we have generated
- * we do it this way to rendering the 'options' html offline - speed :-)
- */
- var nHolding = $('<div></div>')[0];
- oSettings.nTable.parentNode.insertBefore( nHolding, oSettings.nTable );
-
- /*
- * All DataTables are wrapped in a div
- */
- oSettings.nTableWrapper = $('<div id="'+oSettings.sTableId+'_wrapper" class="'+oSettings.oClasses.sWrapper+'" role="grid"></div>')[0];
- oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
-
- /* Track where we want to insert the option */
- var nInsertNode = oSettings.nTableWrapper;
-
- /* Loop over the user set positioning and place the elements as needed */
- var aDom = oSettings.sDom.split('');
- var nTmp, iPushFeature, cOption, nNewNode, cNext, sAttr, j;
- for ( var i=0 ; i<aDom.length ; i++ )
- {
- iPushFeature = 0;
- cOption = aDom[i];
-
- if ( cOption == '<' )
- {
- /* New container div */
- nNewNode = $('<div></div>')[0];
-
- /* Check to see if we should append an id and/or a class name to the container */
- cNext = aDom[i+1];
- if ( cNext == "'" || cNext == '"' )
- {
- sAttr = "";
- j = 2;
- while ( aDom[i+j] != cNext )
- {
- sAttr += aDom[i+j];
- j++;
- }
-
- /* Replace jQuery UI constants */
- if ( sAttr == "H" )
- {
- sAttr = oSettings.oClasses.sJUIHeader;
- }
- else if ( sAttr == "F" )
- {
- sAttr = oSettings.oClasses.sJUIFooter;
- }
-
- /* The attribute can be in the format of "#id.class", "#id" or "class" This logic
- * breaks the string into parts and applies them as needed
- */
- if ( sAttr.indexOf('.') != -1 )
- {
- var aSplit = sAttr.split('.');
- nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
- nNewNode.className = aSplit[1];
- }
- else if ( sAttr.charAt(0) == "#" )
- {
- nNewNode.id = sAttr.substr(1, sAttr.length-1);
- }
- else
- {
- nNewNode.className = sAttr;
- }
-
- i += j; /* Move along the position array */
- }
-
- nInsertNode.appendChild( nNewNode );
- nInsertNode = nNewNode;
- }
- else if ( cOption == '>' )
- {
- /* End container div */
- nInsertNode = nInsertNode.parentNode;
- }
- else if ( cOption == 'l' && oSettings.oFeatures.bPaginate && oSettings.oFeatures.bLengthChange )
- {
- /* Length */
- nTmp = _fnFeatureHtmlLength( oSettings );
- iPushFeature = 1;
- }
- else if ( cOption == 'f' && oSettings.oFeatures.bFilter )
- {
- /* Filter */
- nTmp = _fnFeatureHtmlFilter( oSettings );
- iPushFeature = 1;
- }
- else if ( cOption == 'r' && oSettings.oFeatures.bProcessing )
- {
- /* pRocessing */
- nTmp = _fnFeatureHtmlProcessing( oSettings );
- iPushFeature = 1;
- }
- else if ( cOption == 't' )
- {
- /* Table */
- nTmp = _fnFeatureHtmlTable( oSettings );
- iPushFeature = 1;
- }
- else if ( cOption == 'i' && oSettings.oFeatures.bInfo )
- {
- /* Info */
- nTmp = _fnFeatureHtmlInfo( oSettings );
- iPushFeature = 1;
- }
- else if ( cOption == 'p' && oSettings.oFeatures.bPaginate )
- {
- /* Pagination */
- nTmp = _fnFeatureHtmlPaginate( oSettings );
- iPushFeature = 1;
- }
- else if ( DataTable.ext.aoFeatures.length !== 0 )
- {
- /* Plug-in features */
- var aoFeatures = DataTable.ext.aoFeatures;
- for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
- {
- if ( cOption == aoFeatures[k].cFeature )
- {
- nTmp = aoFeatures[k].fnInit( oSettings );
- if ( nTmp )
- {
- iPushFeature = 1;
- }
- break;
- }
- }
- }
-
- /* Add to the 2D features array */
- if ( iPushFeature == 1 && nTmp !== null )
- {
- if ( typeof oSettings.aanFeatures[cOption] !== 'object' )
- {
- oSettings.aanFeatures[cOption] = [];
- }
- oSettings.aanFeatures[cOption].push( nTmp );
- nInsertNode.appendChild( nTmp );
- }
- }
-
- /* Built our DOM structure - replace the holding div with what we want */
- nHolding.parentNode.replaceChild( oSettings.nTableWrapper, nHolding );
- }
-
-
- /**
- * Use the DOM source to create up an array of header cells. The idea here is to
- * create a layout grid (array) of rows x columns, which contains a reference
- * to the cell that that point in the grid (regardless of col/rowspan), such that
- * any column / row could be removed and the new grid constructed
- * @param array {object} aLayout Array to store the calculated layout in
- * @param {node} nThead The header/footer element for the table
- * @memberof DataTable#oApi
- */
- function _fnDetectHeader ( aLayout, nThead )
- {
- var nTrs = $(nThead).children('tr');
- var nTr, nCell;
- var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
- var bUnique;
- var fnShiftCol = function ( a, i, j ) {
- var k = a[i];
- while ( k[j] ) {
- j++;
- }
- return j;
- };
-
- aLayout.splice( 0, aLayout.length );
-
- /* We know how many rows there are in the layout - so prep it */
- for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
- {
- aLayout.push( [] );
- }
-
- /* Calculate a layout array */
- for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
- {
- nTr = nTrs[i];
- iColumn = 0;
-
- /* For every cell in the row... */
- nCell = nTr.firstChild;
- while ( nCell ) {
- if ( nCell.nodeName.toUpperCase() == "TD" ||
- nCell.nodeName.toUpperCase() == "TH" )
- {
- /* Get the col and rowspan attributes from the DOM and sanitise them */
- iColspan = nCell.getAttribute('colspan') * 1;
- iRowspan = nCell.getAttribute('rowspan') * 1;
- iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
- iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
-
- /* There might be colspan cells already in this row, so shift our target
- * accordingly
- */
- iColShifted = fnShiftCol( aLayout, i, iColumn );
-
- /* Cache calculation for unique columns */
- bUnique = iColspan === 1 ? true : false;
-
- /* If there is col / rowspan, copy the information into the layout grid */
- for ( l=0 ; l<iColspan ; l++ )
- {
- for ( k=0 ; k<iRowspan ; k++ )
- {
- aLayout[i+k][iColShifted+l] = {
- "cell": nCell,
- "unique": bUnique
- };
- aLayout[i+k].nTr = nTr;
- }
- }
- }
- nCell = nCell.nextSibling;
- }
- }
- }
-
-
- /**
- * Get an array of unique th elements, one for each column
- * @param {object} oSettings dataTables settings object
- * @param {node} nHeader automatically detect the layout from this node - optional
- * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
- * @returns array {node} aReturn list of unique th's
- * @memberof DataTable#oApi
- */
- function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
- {
- var aReturn = [];
- if ( !aLayout )
- {
- aLayout = oSettings.aoHeader;
- if ( nHeader )
- {
- aLayout = [];
- _fnDetectHeader( aLayout, nHeader );
- }
- }
-
- for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
- {
- for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
- {
- if ( aLayout[i][j].unique &&
- (!aReturn[j] || !oSettings.bSortCellsTop) )
- {
- aReturn[j] = aLayout[i][j].cell;
- }
- }
- }
-
- return aReturn;
- }
-
-
-
- /**
- * Update the table using an Ajax call
- * @param {object} oSettings dataTables settings object
- * @returns {boolean} Block the table drawing or not
- * @memberof DataTable#oApi
- */
- function _fnAjaxUpdate( oSettings )
- {
- if ( oSettings.bAjaxDataGet )
- {
- oSettings.iDraw++;
- _fnProcessingDisplay( oSettings, true );
- var iColumns = oSettings.aoColumns.length;
- var aoData = _fnAjaxParameters( oSettings );
- _fnServerParams( oSettings, aoData );
-
- oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, aoData,
- function(json) {
- _fnAjaxUpdateDraw( oSettings, json );
- }, oSettings );
- return false;
- }
- else
- {
- return true;
- }
- }
-
-
- /**
- * Build up the parameters in an object needed for a server-side processing request
- * @param {object} oSettings dataTables settings object
- * @returns {bool} block the table drawing or not
- * @memberof DataTable#oApi
- */
- function _fnAjaxParameters( oSettings )
- {
- var iColumns = oSettings.aoColumns.length;
- var aoData = [], mDataProp, aaSort, aDataSort;
- var i, j;
-
- aoData.push( { "name": "sEcho", "value": oSettings.iDraw } );
- aoData.push( { "name": "iColumns", "value": iColumns } );
- aoData.push( { "name": "sColumns", "value": _fnColumnOrdering(oSettings) } );
- aoData.push( { "name": "iDisplayStart", "value": oSettings._iDisplayStart } );
- aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
- oSettings._iDisplayLength : -1 } );
-
- for ( i=0 ; i<iColumns ; i++ )
- {
- mDataProp = oSettings.aoColumns[i].mData;
- aoData.push( { "name": "mDataProp_"+i, "value": typeof(mDataProp)==="function" ? 'function' : mDataProp } );
- }
-
- /* Filtering */
- if ( oSettings.oFeatures.bFilter !== false )
- {
- aoData.push( { "name": "sSearch", "value": oSettings.oPreviousSearch.sSearch } );
- aoData.push( { "name": "bRegex", "value": oSettings.oPreviousSearch.bRegex } );
- for ( i=0 ; i<iColumns ; i++ )
- {
- aoData.push( { "name": "sSearch_"+i, "value": oSettings.aoPreSearchCols[i].sSearch } );
- aoData.push( { "name": "bRegex_"+i, "value": oSettings.aoPreSearchCols[i].bRegex } );
- aoData.push( { "name": "bSearchable_"+i, "value": oSettings.aoColumns[i].bSearchable } );
- }
- }
-
- /* Sorting */
- if ( oSettings.oFeatures.bSort !== false )
- {
- var iCounter = 0;
-
- aaSort = ( oSettings.aaSortingFixed !== null ) ?
- oSettings.aaSortingFixed.concat( oSettings.aaSorting ) :
- oSettings.aaSorting.slice();
-
- for ( i=0 ; i<aaSort.length ; i++ )
- {
- aDataSort = oSettings.aoColumns[ aaSort[i][0] ].aDataSort;
-
- for ( j=0 ; j<aDataSort.length ; j++ )
- {
- aoData.push( { "name": "iSortCol_"+iCounter, "value": aDataSort[j] } );
- aoData.push( { "name": "sSortDir_"+iCounter, "value": aaSort[i][1] } );
- iCounter++;
- }
- }
- aoData.push( { "name": "iSortingCols", "value": iCounter } );
-
- for ( i=0 ; i<iColumns ; i++ )
- {
- aoData.push( { "name": "bSortable_"+i, "value": oSettings.aoColumns[i].bSortable } );
- }
- }
-
- return aoData;
- }
-
-
- /**
- * Add Ajax parameters from plug-ins
- * @param {object} oSettings dataTables settings object
- * @param array {objects} aoData name/value pairs to send to the server
- * @memberof DataTable#oApi
- */
- function _fnServerParams( oSettings, aoData )
- {
- _fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [aoData] );
- }
-
-
- /**
- * Data the data from the server (nuking the old) and redraw the table
- * @param {object} oSettings dataTables settings object
- * @param {object} json json data return from the server.
- * @param {string} json.sEcho Tracking flag for DataTables to match requests
- * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
- * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
- * @param {array} json.aaData The data to display on this page
- * @param {string} [json.sColumns] Column ordering (sName, comma separated)
- * @memberof DataTable#oApi
- */
- function _fnAjaxUpdateDraw ( oSettings, json )
- {
- if ( json.sEcho !== undefined )
- {
- /* Protect against old returns over-writing a new one. Possible when you get
- * very fast interaction, and later queries are completed much faster
- */
- if ( json.sEcho*1 < oSettings.iDraw )
- {
- return;
- }
- else
- {
- oSettings.iDraw = json.sEcho * 1;
- }
- }
-
- if ( !oSettings.oScroll.bInfinite ||
- (oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
- {
- _fnClearTable( oSettings );
- }
- oSettings._iRecordsTotal = parseInt(json.iTotalRecords, 10);
- oSettings._iRecordsDisplay = parseInt(json.iTotalDisplayRecords, 10);
-
- /* Determine if reordering is required */
- var sOrdering = _fnColumnOrdering(oSettings);
- var bReOrder = (json.sColumns !== undefined && sOrdering !== "" && json.sColumns != sOrdering );
- var aiIndex;
- if ( bReOrder )
- {
- aiIndex = _fnReOrderIndex( oSettings, json.sColumns );
- }
-
- var aData = _fnGetObjectDataFn( oSettings.sAjaxDataProp )( json );
- for ( var i=0, iLen=aData.length ; i<iLen ; i++ )
- {
- if ( bReOrder )
- {
- /* If we need to re-order, then create a new array with the correct order and add it */
- var aDataSorted = [];
- for ( var j=0, jLen=oSettings.aoColumns.length ; j<jLen ; j++ )
- {
- aDataSorted.push( aData[i][ aiIndex[j] ] );
- }
- _fnAddData( oSettings, aDataSorted );
- }
- else
- {
- /* No re-order required, sever got it "right" - just straight add */
- _fnAddData( oSettings, aData[i] );
- }
- }
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
-
- oSettings.bAjaxDataGet = false;
- _fnDraw( oSettings );
- oSettings.bAjaxDataGet = true;
- _fnProcessingDisplay( oSettings, false );
- }
-
-
-
- /**
- * Generate the node required for filtering text
- * @returns {node} Filter control element
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlFilter ( oSettings )
- {
- var oPreviousSearch = oSettings.oPreviousSearch;
-
- var sSearchStr = oSettings.oLanguage.sSearch;
- sSearchStr = (sSearchStr.indexOf('_INPUT_') !== -1) ?
- sSearchStr.replace('_INPUT_', '<input type="text" />') :
- sSearchStr==="" ? '<input type="text" />' : sSearchStr+' <input type="text" />';
-
- var nFilter = document.createElement( 'div' );
- nFilter.className = oSettings.oClasses.sFilter;
- nFilter.innerHTML = '<label>'+sSearchStr+'</label>';
- if ( !oSettings.aanFeatures.f )
- {
- nFilter.id = oSettings.sTableId+'_filter';
- }
-
- var jqFilter = $('input[type="text"]', nFilter);
-
- // Store a reference to the input element, so other input elements could be
- // added to the filter wrapper if needed (submit button for example)
- nFilter._DT_Input = jqFilter[0];
-
- jqFilter.val( oPreviousSearch.sSearch.replace('"','&quot;') );
- jqFilter.bind( 'keyup.DT', function(e) {
- /* Update all other filter input elements for the new display */
- var n = oSettings.aanFeatures.f;
- var val = this.value==="" ? "" : this.value; // mental IE8 fix :-(
-
- for ( var i=0, iLen=n.length ; i<iLen ; i++ )
- {
- if ( n[i] != $(this).parents('div.dataTables_filter')[0] )
- {
- $(n[i]._DT_Input).val( val );
- }
- }
-
- /* Now do the filter */
- if ( val != oPreviousSearch.sSearch )
- {
- _fnFilterComplete( oSettings, {
- "sSearch": val,
- "bRegex": oPreviousSearch.bRegex,
- "bSmart": oPreviousSearch.bSmart ,
- "bCaseInsensitive": oPreviousSearch.bCaseInsensitive
- } );
- }
- } );
-
- jqFilter
- .attr('aria-controls', oSettings.sTableId)
- .bind( 'keypress.DT', function(e) {
- /* Prevent form submission */
- if ( e.keyCode == 13 )
- {
- return false;
- }
- }
- );
-
- return nFilter;
- }
-
-
- /**
- * Filter the table using both the global filter and column based filtering
- * @param {object} oSettings dataTables settings object
- * @param {object} oSearch search information
- * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
- * @memberof DataTable#oApi
- */
- function _fnFilterComplete ( oSettings, oInput, iForce )
- {
- var oPrevSearch = oSettings.oPreviousSearch;
- var aoPrevSearch = oSettings.aoPreSearchCols;
- var fnSaveFilter = function ( oFilter ) {
- /* Save the filtering values */
- oPrevSearch.sSearch = oFilter.sSearch;
- oPrevSearch.bRegex = oFilter.bRegex;
- oPrevSearch.bSmart = oFilter.bSmart;
- oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
- };
-
- /* In server-side processing all filtering is done by the server, so no point hanging around here */
- if ( !oSettings.oFeatures.bServerSide )
- {
- /* Global filter */
- _fnFilter( oSettings, oInput.sSearch, iForce, oInput.bRegex, oInput.bSmart, oInput.bCaseInsensitive );
- fnSaveFilter( oInput );
-
- /* Now do the individual column filter */
- for ( var i=0 ; i<oSettings.aoPreSearchCols.length ; i++ )
- {
- _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, aoPrevSearch[i].bRegex,
- aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
- }
-
- /* Custom filtering */
- _fnFilterCustom( oSettings );
- }
- else
- {
- fnSaveFilter( oInput );
- }
-
- /* Tell the draw function we have been filtering */
- oSettings.bFiltered = true;
- $(oSettings.oInstance).trigger('filter', oSettings);
-
- /* Redraw the table */
- oSettings._iDisplayStart = 0;
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
-
- /* Rebuild search array 'offline' */
- _fnBuildSearchArray( oSettings, 0 );
- }
-
-
- /**
- * Apply custom filtering functions
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnFilterCustom( oSettings )
- {
- var afnFilters = DataTable.ext.afnFiltering;
- var aiFilterColumns = _fnGetColumns( oSettings, 'bSearchable' );
-
- for ( var i=0, iLen=afnFilters.length ; i<iLen ; i++ )
- {
- var iCorrector = 0;
- for ( var j=0, jLen=oSettings.aiDisplay.length ; j<jLen ; j++ )
- {
- var iDisIndex = oSettings.aiDisplay[j-iCorrector];
- var bTest = afnFilters[i](
- oSettings,
- _fnGetRowData( oSettings, iDisIndex, 'filter', aiFilterColumns ),
- iDisIndex
- );
-
- /* Check if we should use this row based on the filtering function */
- if ( !bTest )
- {
- oSettings.aiDisplay.splice( j-iCorrector, 1 );
- iCorrector++;
- }
- }
- }
- }
-
-
- /**
- * Filter the table on a per-column basis
- * @param {object} oSettings dataTables settings object
- * @param {string} sInput string to filter on
- * @param {int} iColumn column to filter
- * @param {bool} bRegex treat search string as a regular expression or not
- * @param {bool} bSmart use smart filtering or not
- * @param {bool} bCaseInsensitive Do case insenstive matching or not
- * @memberof DataTable#oApi
- */
- function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart, bCaseInsensitive )
- {
- if ( sInput === "" )
- {
- return;
- }
-
- var iIndexCorrector = 0;
- var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
-
- for ( var i=oSettings.aiDisplay.length-1 ; i>=0 ; i-- )
- {
- var sData = _fnDataToSearch( _fnGetCellData( oSettings, oSettings.aiDisplay[i], iColumn, 'filter' ),
- oSettings.aoColumns[iColumn].sType );
- if ( ! rpSearch.test( sData ) )
- {
- oSettings.aiDisplay.splice( i, 1 );
- iIndexCorrector++;
- }
- }
- }
-
-
- /**
- * Filter the data table based on user input and draw the table
- * @param {object} oSettings dataTables settings object
- * @param {string} sInput string to filter on
- * @param {int} iForce optional - force a research of the master array (1) or not (undefined or 0)
- * @param {bool} bRegex treat as a regular expression or not
- * @param {bool} bSmart perform smart filtering or not
- * @param {bool} bCaseInsensitive Do case insenstive matching or not
- * @memberof DataTable#oApi
- */
- function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive )
- {
- var i;
- var rpSearch = _fnFilterCreateSearch( sInput, bRegex, bSmart, bCaseInsensitive );
- var oPrevSearch = oSettings.oPreviousSearch;
-
- /* Check if we are forcing or not - optional parameter */
- if ( !iForce )
- {
- iForce = 0;
- }
-
- /* Need to take account of custom filtering functions - always filter */
- if ( DataTable.ext.afnFiltering.length !== 0 )
- {
- iForce = 1;
- }
-
- /*
- * If the input is blank - we want the full data set
- */
- if ( sInput.length <= 0 )
- {
- oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
- }
- else
- {
- /*
- * We are starting a new search or the new search string is smaller
- * then the old one (i.e. delete). Search from the master array
- */
- if ( oSettings.aiDisplay.length == oSettings.aiDisplayMaster.length ||
- oPrevSearch.sSearch.length > sInput.length || iForce == 1 ||
- sInput.indexOf(oPrevSearch.sSearch) !== 0 )
- {
- /* Nuke the old display array - we are going to rebuild it */
- oSettings.aiDisplay.splice( 0, oSettings.aiDisplay.length);
-
- /* Force a rebuild of the search array */
- _fnBuildSearchArray( oSettings, 1 );
-
- /* Search through all records to populate the search array
- * The the oSettings.aiDisplayMaster and asDataSearch arrays have 1 to 1
- * mapping
- */
- for ( i=0 ; i<oSettings.aiDisplayMaster.length ; i++ )
- {
- if ( rpSearch.test(oSettings.asDataSearch[i]) )
- {
- oSettings.aiDisplay.push( oSettings.aiDisplayMaster[i] );
- }
- }
- }
- else
- {
- /* Using old search array - refine it - do it this way for speed
- * Don't have to search the whole master array again
- */
- var iIndexCorrector = 0;
-
- /* Search the current results */
- for ( i=0 ; i<oSettings.asDataSearch.length ; i++ )
- {
- if ( ! rpSearch.test(oSettings.asDataSearch[i]) )
- {
- oSettings.aiDisplay.splice( i-iIndexCorrector, 1 );
- iIndexCorrector++;
- }
- }
- }
- }
- }
-
-
- /**
- * Create an array which can be quickly search through
- * @param {object} oSettings dataTables settings object
- * @param {int} iMaster use the master data array - optional
- * @memberof DataTable#oApi
- */
- function _fnBuildSearchArray ( oSettings, iMaster )
- {
- if ( !oSettings.oFeatures.bServerSide )
- {
- /* Clear out the old data */
- oSettings.asDataSearch = [];
-
- var aiFilterColumns = _fnGetColumns( oSettings, 'bSearchable' );
- var aiIndex = (iMaster===1) ?
- oSettings.aiDisplayMaster :
- oSettings.aiDisplay;
-
- for ( var i=0, iLen=aiIndex.length ; i<iLen ; i++ )
- {
- oSettings.asDataSearch[i] = _fnBuildSearchRow(
- oSettings,
- _fnGetRowData( oSettings, aiIndex[i], 'filter', aiFilterColumns )
- );
- }
- }
- }
-
-
- /**
- * Create a searchable string from a single data row
- * @param {object} oSettings dataTables settings object
- * @param {array} aData Row data array to use for the data to search
- * @memberof DataTable#oApi
- */
- function _fnBuildSearchRow( oSettings, aData )
- {
- var sSearch = aData.join(' ');
-
- /* If it looks like there is an HTML entity in the string, attempt to decode it */
- if ( sSearch.indexOf('&') !== -1 )
- {
- sSearch = $('<div>').html(sSearch).text();
- }
-
- // Strip newline characters
- return sSearch.replace( /[\n\r]/g, " " );
- }
-
- /**
- * Build a regular expression object suitable for searching a table
- * @param {string} sSearch string to search for
- * @param {bool} bRegex treat as a regular expression or not
- * @param {bool} bSmart perform smart filtering or not
- * @param {bool} bCaseInsensitive Do case insensitive matching or not
- * @returns {RegExp} constructed object
- * @memberof DataTable#oApi
- */
- function _fnFilterCreateSearch( sSearch, bRegex, bSmart, bCaseInsensitive )
- {
- var asSearch, sRegExpString;
-
- if ( bSmart )
- {
- /* Generate the regular expression to use. Something along the lines of:
- * ^(?=.*?\bone\b)(?=.*?\btwo\b)(?=.*?\bthree\b).*$
- */
- asSearch = bRegex ? sSearch.split( ' ' ) : _fnEscapeRegex( sSearch ).split( ' ' );
- sRegExpString = '^(?=.*?'+asSearch.join( ')(?=.*?' )+').*$';
- return new RegExp( sRegExpString, bCaseInsensitive ? "i" : "" );
- }
- else
- {
- sSearch = bRegex ? sSearch : _fnEscapeRegex( sSearch );
- return new RegExp( sSearch, bCaseInsensitive ? "i" : "" );
- }
- }
-
-
- /**
- * Convert raw data into something that the user can search on
- * @param {string} sData data to be modified
- * @param {string} sType data type
- * @returns {string} search string
- * @memberof DataTable#oApi
- */
- function _fnDataToSearch ( sData, sType )
- {
- if ( typeof DataTable.ext.ofnSearch[sType] === "function" )
- {
- return DataTable.ext.ofnSearch[sType]( sData );
- }
- else if ( sData === null )
- {
- return '';
- }
- else if ( sType == "html" )
- {
- return sData.replace(/[\r\n]/g," ").replace( /<.*?>/g, "" );
- }
- else if ( typeof sData === "string" )
- {
- return sData.replace(/[\r\n]/g," ");
- }
- return sData;
- }
-
-
- /**
- * scape a string such that it can be used in a regular expression
- * @param {string} sVal string to escape
- * @returns {string} escaped string
- * @memberof DataTable#oApi
- */
- function _fnEscapeRegex ( sVal )
- {
- var acEscape = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ];
- var reReplace = new RegExp( '(\\' + acEscape.join('|\\') + ')', 'g' );
- return sVal.replace(reReplace, '\\$1');
- }
-
-
- /**
- * Generate the node required for the info display
- * @param {object} oSettings dataTables settings object
- * @returns {node} Information element
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlInfo ( oSettings )
- {
- var nInfo = document.createElement( 'div' );
- nInfo.className = oSettings.oClasses.sInfo;
-
- /* Actions that are to be taken once only for this feature */
- if ( !oSettings.aanFeatures.i )
- {
- /* Add draw callback */
- oSettings.aoDrawCallback.push( {
- "fn": _fnUpdateInfo,
- "sName": "information"
- } );
-
- /* Add id */
- nInfo.id = oSettings.sTableId+'_info';
- }
- oSettings.nTable.setAttribute( 'aria-describedby', oSettings.sTableId+'_info' );
-
- return nInfo;
- }
-
-
- /**
- * Update the information elements in the display
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnUpdateInfo ( oSettings )
- {
- /* Show information about the table */
- if ( !oSettings.oFeatures.bInfo || oSettings.aanFeatures.i.length === 0 )
- {
- return;
- }
-
- var
- oLang = oSettings.oLanguage,
- iStart = oSettings._iDisplayStart+1,
- iEnd = oSettings.fnDisplayEnd(),
- iMax = oSettings.fnRecordsTotal(),
- iTotal = oSettings.fnRecordsDisplay(),
- sOut;
-
- if ( iTotal === 0 )
- {
- /* Empty record set */
- sOut = oLang.sInfoEmpty;
- }
- else {
- /* Normal record set */
- sOut = oLang.sInfo;
- }
-
- if ( iTotal != iMax )
- {
- /* Record set after filtering */
- sOut += ' ' + oLang.sInfoFiltered;
- }
-
- // Convert the macros
- sOut += oLang.sInfoPostFix;
- sOut = _fnInfoMacros( oSettings, sOut );
-
- if ( oLang.fnInfoCallback !== null )
- {
- sOut = oLang.fnInfoCallback.call( oSettings.oInstance,
- oSettings, iStart, iEnd, iMax, iTotal, sOut );
- }
-
- var n = oSettings.aanFeatures.i;
- for ( var i=0, iLen=n.length ; i<iLen ; i++ )
- {
- $(n[i]).html( sOut );
- }
- }
-
-
- function _fnInfoMacros ( oSettings, str )
- {
- var
- iStart = oSettings._iDisplayStart+1,
- sStart = oSettings.fnFormatNumber( iStart ),
- iEnd = oSettings.fnDisplayEnd(),
- sEnd = oSettings.fnFormatNumber( iEnd ),
- iTotal = oSettings.fnRecordsDisplay(),
- sTotal = oSettings.fnFormatNumber( iTotal ),
- iMax = oSettings.fnRecordsTotal(),
- sMax = oSettings.fnFormatNumber( iMax );
-
- // When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
- // internally
- if ( oSettings.oScroll.bInfinite )
- {
- sStart = oSettings.fnFormatNumber( 1 );
- }
-
- return str.
- replace(/_START_/g, sStart).
- replace(/_END_/g, sEnd).
- replace(/_TOTAL_/g, sTotal).
- replace(/_MAX_/g, sMax);
- }
-
-
-
- /**
- * Draw the table for the first time, adding all required features
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnInitialise ( oSettings )
- {
- var i, iLen, iAjaxStart=oSettings.iInitDisplayStart;
-
- /* Ensure that the table data is fully initialised */
- if ( oSettings.bInitialised === false )
- {
- setTimeout( function(){ _fnInitialise( oSettings ); }, 200 );
- return;
- }
-
- /* Show the display HTML options */
- _fnAddOptionsHtml( oSettings );
-
- /* Build and draw the header / footer for the table */
- _fnBuildHead( oSettings );
- _fnDrawHead( oSettings, oSettings.aoHeader );
- if ( oSettings.nTFoot )
- {
- _fnDrawHead( oSettings, oSettings.aoFooter );
- }
-
- /* Okay to show that something is going on now */
- _fnProcessingDisplay( oSettings, true );
-
- /* Calculate sizes for columns */
- if ( oSettings.oFeatures.bAutoWidth )
- {
- _fnCalculateColumnWidths( oSettings );
- }
-
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- if ( oSettings.aoColumns[i].sWidth !== null )
- {
- oSettings.aoColumns[i].nTh.style.width = _fnStringToCss( oSettings.aoColumns[i].sWidth );
- }
- }
-
- /* If there is default sorting required - let's do it. The sort function will do the
- * drawing for us. Otherwise we draw the table regardless of the Ajax source - this allows
- * the table to look initialised for Ajax sourcing data (show 'loading' message possibly)
- */
- if ( oSettings.oFeatures.bSort )
- {
- _fnSort( oSettings );
- }
- else if ( oSettings.oFeatures.bFilter )
- {
- _fnFilterComplete( oSettings, oSettings.oPreviousSearch );
- }
- else
- {
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
-
- /* if there is an ajax source load the data */
- if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
- {
- var aoData = [];
- _fnServerParams( oSettings, aoData );
- oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, aoData, function(json) {
- var aData = (oSettings.sAjaxDataProp !== "") ?
- _fnGetObjectDataFn( oSettings.sAjaxDataProp )(json) : json;
-
- /* Got the data - add it to the table */
- for ( i=0 ; i<aData.length ; i++ )
- {
- _fnAddData( oSettings, aData[i] );
- }
-
- /* Reset the init display for cookie saving. We've already done a filter, and
- * therefore cleared it before. So we need to make it appear 'fresh'
- */
- oSettings.iInitDisplayStart = iAjaxStart;
-
- if ( oSettings.oFeatures.bSort )
- {
- _fnSort( oSettings );
- }
- else
- {
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
-
- _fnProcessingDisplay( oSettings, false );
- _fnInitComplete( oSettings, json );
- }, oSettings );
- return;
- }
-
- /* Server-side processing initialisation complete is done at the end of _fnDraw */
- if ( !oSettings.oFeatures.bServerSide )
- {
- _fnProcessingDisplay( oSettings, false );
- _fnInitComplete( oSettings );
- }
- }
-
-
- /**
- * Draw the table for the first time, adding all required features
- * @param {object} oSettings dataTables settings object
- * @param {object} [json] JSON from the server that completed the table, if using Ajax source
- * with client-side processing (optional)
- * @memberof DataTable#oApi
- */
- function _fnInitComplete ( oSettings, json )
- {
- oSettings._bInitComplete = true;
- _fnCallbackFire( oSettings, 'aoInitComplete', 'init', [oSettings, json] );
- }
-
-
- /**
- * Language compatibility - when certain options are given, and others aren't, we
- * need to duplicate the values over, in order to provide backwards compatibility
- * with older language files.
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnLanguageCompat( oLanguage )
- {
- var oDefaults = DataTable.defaults.oLanguage;
-
- /* Backwards compatibility - if there is no sEmptyTable given, then use the same as
- * sZeroRecords - assuming that is given.
- */
- if ( !oLanguage.sEmptyTable && oLanguage.sZeroRecords &&
- oDefaults.sEmptyTable === "No data available in table" )
- {
- _fnMap( oLanguage, oLanguage, 'sZeroRecords', 'sEmptyTable' );
- }
-
- /* Likewise with loading records */
- if ( !oLanguage.sLoadingRecords && oLanguage.sZeroRecords &&
- oDefaults.sLoadingRecords === "Loading..." )
- {
- _fnMap( oLanguage, oLanguage, 'sZeroRecords', 'sLoadingRecords' );
- }
- }
-
-
-
- /**
- * Generate the node required for user display length changing
- * @param {object} oSettings dataTables settings object
- * @returns {node} Display length feature node
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlLength ( oSettings )
- {
- if ( oSettings.oScroll.bInfinite )
- {
- return null;
- }
-
- /* This can be overruled by not using the _MENU_ var/macro in the language variable */
- var sName = 'name="'+oSettings.sTableId+'_length"';
- var sStdMenu = '<select size="1" '+sName+'>';
- var i, iLen;
- var aLengthMenu = oSettings.aLengthMenu;
-
- if ( aLengthMenu.length == 2 && typeof aLengthMenu[0] === 'object' &&
- typeof aLengthMenu[1] === 'object' )
- {
- for ( i=0, iLen=aLengthMenu[0].length ; i<iLen ; i++ )
- {
- sStdMenu += '<option value="'+aLengthMenu[0][i]+'">'+aLengthMenu[1][i]+'</option>';
- }
- }
- else
- {
- for ( i=0, iLen=aLengthMenu.length ; i<iLen ; i++ )
- {
- sStdMenu += '<option value="'+aLengthMenu[i]+'">'+aLengthMenu[i]+'</option>';
- }
- }
- sStdMenu += '</select>';
-
- var nLength = document.createElement( 'div' );
- if ( !oSettings.aanFeatures.l )
- {
- nLength.id = oSettings.sTableId+'_length';
- }
- nLength.className = oSettings.oClasses.sLength;
- nLength.innerHTML = '<label>'+oSettings.oLanguage.sLengthMenu.replace( '_MENU_', sStdMenu )+'</label>';
-
- /*
- * Set the length to the current display length - thanks to Andrea Pavlovic for this fix,
- * and Stefan Skopnik for fixing the fix!
- */
- $('select option[value="'+oSettings._iDisplayLength+'"]', nLength).attr("selected", true);
-
- $('select', nLength).bind( 'change.DT', function(e) {
- var iVal = $(this).val();
-
- /* Update all other length options for the new display */
- var n = oSettings.aanFeatures.l;
- for ( i=0, iLen=n.length ; i<iLen ; i++ )
- {
- if ( n[i] != this.parentNode )
- {
- $('select', n[i]).val( iVal );
- }
- }
-
- /* Redraw the table */
- oSettings._iDisplayLength = parseInt(iVal, 10);
- _fnCalculateEnd( oSettings );
-
- /* If we have space to show extra rows (backing up from the end point - then do so */
- if ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() )
- {
- oSettings._iDisplayStart = oSettings.fnDisplayEnd() - oSettings._iDisplayLength;
- if ( oSettings._iDisplayStart < 0 )
- {
- oSettings._iDisplayStart = 0;
- }
- }
-
- if ( oSettings._iDisplayLength == -1 )
- {
- oSettings._iDisplayStart = 0;
- }
-
- _fnDraw( oSettings );
- } );
-
-
- $('select', nLength).attr('aria-controls', oSettings.sTableId);
-
- return nLength;
- }
-
-
- /**
- * Recalculate the end point based on the start point
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnCalculateEnd( oSettings )
- {
- if ( oSettings.oFeatures.bPaginate === false )
- {
- oSettings._iDisplayEnd = oSettings.aiDisplay.length;
- }
- else
- {
- /* Set the end point of the display - based on how many elements there are
- * still to display
- */
- if ( oSettings._iDisplayStart + oSettings._iDisplayLength > oSettings.aiDisplay.length ||
- oSettings._iDisplayLength == -1 )
- {
- oSettings._iDisplayEnd = oSettings.aiDisplay.length;
- }
- else
- {
- oSettings._iDisplayEnd = oSettings._iDisplayStart + oSettings._iDisplayLength;
- }
- }
- }
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Note that most of the paging logic is done in
- * DataTable.ext.oPagination
- */
-
- /**
- * Generate the node required for default pagination
- * @param {object} oSettings dataTables settings object
- * @returns {node} Pagination feature node
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlPaginate ( oSettings )
- {
- if ( oSettings.oScroll.bInfinite )
- {
- return null;
- }
-
- var nPaginate = document.createElement( 'div' );
- nPaginate.className = oSettings.oClasses.sPaging+oSettings.sPaginationType;
-
- DataTable.ext.oPagination[ oSettings.sPaginationType ].fnInit( oSettings, nPaginate,
- function( oSettings ) {
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
- );
-
- /* Add a draw callback for the pagination on first instance, to update the paging display */
- if ( !oSettings.aanFeatures.p )
- {
- oSettings.aoDrawCallback.push( {
- "fn": function( oSettings ) {
- DataTable.ext.oPagination[ oSettings.sPaginationType ].fnUpdate( oSettings, function( oSettings ) {
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- } );
- },
- "sName": "pagination"
- } );
- }
- return nPaginate;
- }
-
-
- /**
- * Alter the display settings to change the page
- * @param {object} oSettings dataTables settings object
- * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
- * or page number to jump to (integer)
- * @returns {bool} true page has changed, false - no change (no effect) eg 'first' on page 1
- * @memberof DataTable#oApi
- */
- function _fnPageChange ( oSettings, mAction )
- {
- var iOldStart = oSettings._iDisplayStart;
-
- if ( typeof mAction === "number" )
- {
- oSettings._iDisplayStart = mAction * oSettings._iDisplayLength;
- if ( oSettings._iDisplayStart > oSettings.fnRecordsDisplay() )
- {
- oSettings._iDisplayStart = 0;
- }
- }
- else if ( mAction == "first" )
- {
- oSettings._iDisplayStart = 0;
- }
- else if ( mAction == "previous" )
- {
- oSettings._iDisplayStart = oSettings._iDisplayLength>=0 ?
- oSettings._iDisplayStart - oSettings._iDisplayLength :
- 0;
-
- /* Correct for under-run */
- if ( oSettings._iDisplayStart < 0 )
- {
- oSettings._iDisplayStart = 0;
- }
- }
- else if ( mAction == "next" )
- {
- if ( oSettings._iDisplayLength >= 0 )
- {
- /* Make sure we are not over running the display array */
- if ( oSettings._iDisplayStart + oSettings._iDisplayLength < oSettings.fnRecordsDisplay() )
- {
- oSettings._iDisplayStart += oSettings._iDisplayLength;
- }
- }
- else
- {
- oSettings._iDisplayStart = 0;
- }
- }
- else if ( mAction == "last" )
- {
- if ( oSettings._iDisplayLength >= 0 )
- {
- var iPages = parseInt( (oSettings.fnRecordsDisplay()-1) / oSettings._iDisplayLength, 10 ) + 1;
- oSettings._iDisplayStart = (iPages-1) * oSettings._iDisplayLength;
- }
- else
- {
- oSettings._iDisplayStart = 0;
- }
- }
- else
- {
- _fnLog( oSettings, 0, "Unknown paging action: "+mAction );
- }
- $(oSettings.oInstance).trigger('page', oSettings);
-
- return iOldStart != oSettings._iDisplayStart;
- }
-
-
-
- /**
- * Generate the node required for the processing node
- * @param {object} oSettings dataTables settings object
- * @returns {node} Processing element
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlProcessing ( oSettings )
- {
- var nProcessing = document.createElement( 'div' );
-
- if ( !oSettings.aanFeatures.r )
- {
- nProcessing.id = oSettings.sTableId+'_processing';
- }
- nProcessing.innerHTML = oSettings.oLanguage.sProcessing;
- nProcessing.className = oSettings.oClasses.sProcessing;
- oSettings.nTable.parentNode.insertBefore( nProcessing, oSettings.nTable );
-
- return nProcessing;
- }
-
-
- /**
- * Display or hide the processing indicator
- * @param {object} oSettings dataTables settings object
- * @param {bool} bShow Show the processing indicator (true) or not (false)
- * @memberof DataTable#oApi
- */
- function _fnProcessingDisplay ( oSettings, bShow )
- {
- if ( oSettings.oFeatures.bProcessing )
- {
- var an = oSettings.aanFeatures.r;
- for ( var i=0, iLen=an.length ; i<iLen ; i++ )
- {
- an[i].style.visibility = bShow ? "visible" : "hidden";
- }
- }
-
- $(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
- }
-
- /**
- * Add any control elements for the table - specifically scrolling
- * @param {object} oSettings dataTables settings object
- * @returns {node} Node to add to the DOM
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlTable ( oSettings )
- {
- /* Check if scrolling is enabled or not - if not then leave the DOM unaltered */
- if ( oSettings.oScroll.sX === "" && oSettings.oScroll.sY === "" )
- {
- return oSettings.nTable;
- }
-
- /*
- * The HTML structure that we want to generate in this function is:
- * div - nScroller
- * div - nScrollHead
- * div - nScrollHeadInner
- * table - nScrollHeadTable
- * thead - nThead
- * div - nScrollBody
- * table - oSettings.nTable
- * thead - nTheadSize
- * tbody - nTbody
- * div - nScrollFoot
- * div - nScrollFootInner
- * table - nScrollFootTable
- * tfoot - nTfoot
- */
- var
- nScroller = document.createElement('div'),
- nScrollHead = document.createElement('div'),
- nScrollHeadInner = document.createElement('div'),
- nScrollBody = document.createElement('div'),
- nScrollFoot = document.createElement('div'),
- nScrollFootInner = document.createElement('div'),
- nScrollHeadTable = oSettings.nTable.cloneNode(false),
- nScrollFootTable = oSettings.nTable.cloneNode(false),
- nThead = oSettings.nTable.getElementsByTagName('thead')[0],
- nTfoot = oSettings.nTable.getElementsByTagName('tfoot').length === 0 ? null :
- oSettings.nTable.getElementsByTagName('tfoot')[0],
- oClasses = oSettings.oClasses;
-
- nScrollHead.appendChild( nScrollHeadInner );
- nScrollFoot.appendChild( nScrollFootInner );
- nScrollBody.appendChild( oSettings.nTable );
- nScroller.appendChild( nScrollHead );
- nScroller.appendChild( nScrollBody );
- nScrollHeadInner.appendChild( nScrollHeadTable );
- nScrollHeadTable.appendChild( nThead );
- if ( nTfoot !== null )
- {
- nScroller.appendChild( nScrollFoot );
- nScrollFootInner.appendChild( nScrollFootTable );
- nScrollFootTable.appendChild( nTfoot );
- }
-
- nScroller.className = oClasses.sScrollWrapper;
- nScrollHead.className = oClasses.sScrollHead;
- nScrollHeadInner.className = oClasses.sScrollHeadInner;
- nScrollBody.className = oClasses.sScrollBody;
- nScrollFoot.className = oClasses.sScrollFoot;
- nScrollFootInner.className = oClasses.sScrollFootInner;
-
- if ( oSettings.oScroll.bAutoCss )
- {
- nScrollHead.style.overflow = "hidden";
- nScrollHead.style.position = "relative";
- nScrollFoot.style.overflow = "hidden";
- nScrollBody.style.overflow = "auto";
- }
-
- nScrollHead.style.border = "0";
- nScrollHead.style.width = "100%";
- nScrollFoot.style.border = "0";
- nScrollHeadInner.style.width = oSettings.oScroll.sXInner !== "" ?
- oSettings.oScroll.sXInner : "100%"; /* will be overwritten */
-
- /* Modify attributes to respect the clones */
- nScrollHeadTable.removeAttribute('id');
- nScrollHeadTable.style.marginLeft = "0";
- oSettings.nTable.style.marginLeft = "0";
- if ( nTfoot !== null )
- {
- nScrollFootTable.removeAttribute('id');
- nScrollFootTable.style.marginLeft = "0";
- }
-
- /* Move caption elements from the body to the header, footer or leave where it is
- * depending on the configuration. Note that the DTD says there can be only one caption */
- var nCaption = $(oSettings.nTable).children('caption');
- if ( nCaption.length > 0 )
- {
- nCaption = nCaption[0];
- if ( nCaption._captionSide === "top" )
- {
- nScrollHeadTable.appendChild( nCaption );
- }
- else if ( nCaption._captionSide === "bottom" && nTfoot )
- {
- nScrollFootTable.appendChild( nCaption );
- }
- }
-
- /*
- * Sizing
- */
- /* When x-scrolling add the width and a scroller to move the header with the body */
- if ( oSettings.oScroll.sX !== "" )
- {
- nScrollHead.style.width = _fnStringToCss( oSettings.oScroll.sX );
- nScrollBody.style.width = _fnStringToCss( oSettings.oScroll.sX );
-
- if ( nTfoot !== null )
- {
- nScrollFoot.style.width = _fnStringToCss( oSettings.oScroll.sX );
- }
-
- /* When the body is scrolled, then we also want to scroll the headers */
- $(nScrollBody).scroll( function (e) {
- nScrollHead.scrollLeft = this.scrollLeft;
-
- if ( nTfoot !== null )
- {
- nScrollFoot.scrollLeft = this.scrollLeft;
- }
- } );
- }
-
- /* When yscrolling, add the height */
- if ( oSettings.oScroll.sY !== "" )
- {
- nScrollBody.style.height = _fnStringToCss( oSettings.oScroll.sY );
- }
-
- /* Redraw - align columns across the tables */
- oSettings.aoDrawCallback.push( {
- "fn": _fnScrollDraw,
- "sName": "scrolling"
- } );
-
- /* Infinite scrolling event handlers */
- if ( oSettings.oScroll.bInfinite )
- {
- $(nScrollBody).scroll( function() {
- /* Use a blocker to stop scrolling from loading more data while other data is still loading */
- if ( !oSettings.bDrawing && $(this).scrollTop() !== 0 )
- {
- /* Check if we should load the next data set */
- if ( $(this).scrollTop() + $(this).height() >
- $(oSettings.nTable).height() - oSettings.oScroll.iLoadGap )
- {
- /* Only do the redraw if we have to - we might be at the end of the data */
- if ( oSettings.fnDisplayEnd() < oSettings.fnRecordsDisplay() )
- {
- _fnPageChange( oSettings, 'next' );
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
- }
- }
- } );
- }
-
- oSettings.nScrollHead = nScrollHead;
- oSettings.nScrollFoot = nScrollFoot;
-
- return nScroller;
- }
-
-
- /**
- * Update the various tables for resizing. It's a bit of a pig this function, but
- * basically the idea to:
- * 1. Re-create the table inside the scrolling div
- * 2. Take live measurements from the DOM
- * 3. Apply the measurements
- * 4. Clean up
- * @param {object} o dataTables settings object
- * @returns {node} Node to add to the DOM
- * @memberof DataTable#oApi
- */
- function _fnScrollDraw ( o )
- {
- var
- nScrollHeadInner = o.nScrollHead.getElementsByTagName('div')[0],
- nScrollHeadTable = nScrollHeadInner.getElementsByTagName('table')[0],
- nScrollBody = o.nTable.parentNode,
- i, iLen, j, jLen, anHeadToSize, anHeadSizers, anFootSizers, anFootToSize, oStyle, iVis,
- nTheadSize, nTfootSize,
- iWidth, aApplied=[], aAppliedFooter=[], iSanityWidth,
- nScrollFootInner = (o.nTFoot !== null) ? o.nScrollFoot.getElementsByTagName('div')[0] : null,
- nScrollFootTable = (o.nTFoot !== null) ? nScrollFootInner.getElementsByTagName('table')[0] : null,
- ie67 = o.oBrowser.bScrollOversize,
- zeroOut = function(nSizer) {
- oStyle = nSizer.style;
- oStyle.paddingTop = "0";
- oStyle.paddingBottom = "0";
- oStyle.borderTopWidth = "0";
- oStyle.borderBottomWidth = "0";
- oStyle.height = 0;
- };
-
- /*
- * 1. Re-create the table inside the scrolling div
- */
-
- /* Remove the old minimised thead and tfoot elements in the inner table */
- $(o.nTable).children('thead, tfoot').remove();
-
- /* Clone the current header and footer elements and then place it into the inner table */
- nTheadSize = $(o.nTHead).clone()[0];
- o.nTable.insertBefore( nTheadSize, o.nTable.childNodes[0] );
- anHeadToSize = o.nTHead.getElementsByTagName('tr');
- anHeadSizers = nTheadSize.getElementsByTagName('tr');
-
- if ( o.nTFoot !== null )
- {
- nTfootSize = $(o.nTFoot).clone()[0];
- o.nTable.insertBefore( nTfootSize, o.nTable.childNodes[1] );
- anFootToSize = o.nTFoot.getElementsByTagName('tr');
- anFootSizers = nTfootSize.getElementsByTagName('tr');
- }
-
- /*
- * 2. Take live measurements from the DOM - do not alter the DOM itself!
- */
-
- /* Remove old sizing and apply the calculated column widths
- * Get the unique column headers in the newly created (cloned) header. We want to apply the
- * calculated sizes to this header
- */
- if ( o.oScroll.sX === "" )
- {
- nScrollBody.style.width = '100%';
- nScrollHeadInner.parentNode.style.width = '100%';
- }
-
- var nThs = _fnGetUniqueThs( o, nTheadSize );
- for ( i=0, iLen=nThs.length ; i<iLen ; i++ )
- {
- iVis = _fnVisibleToColumnIndex( o, i );
- nThs[i].style.width = o.aoColumns[iVis].sWidth;
- }
-
- if ( o.nTFoot !== null )
- {
- _fnApplyToChildren( function(n) {
- n.style.width = "";
- }, anFootSizers );
- }
-
- // If scroll collapse is enabled, when we put the headers back into the body for sizing, we
- // will end up forcing the scrollbar to appear, making our measurements wrong for when we
- // then hide it (end of this function), so add the header height to the body scroller.
- if ( o.oScroll.bCollapse && o.oScroll.sY !== "" )
- {
- nScrollBody.style.height = (nScrollBody.offsetHeight + o.nTHead.offsetHeight)+"px";
- }
-
- /* Size the table as a whole */
- iSanityWidth = $(o.nTable).outerWidth();
- if ( o.oScroll.sX === "" )
- {
- /* No x scrolling */
- o.nTable.style.width = "100%";
-
- /* I know this is rubbish - but IE7 will make the width of the table when 100% include
- * the scrollbar - which is shouldn't. When there is a scrollbar we need to take this
- * into account.
- */
- if ( ie67 && ($('tbody', nScrollBody).height() > nScrollBody.offsetHeight ||
- $(nScrollBody).css('overflow-y') == "scroll") )
- {
- o.nTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() - o.oScroll.iBarWidth);
- }
- }
- else
- {
- if ( o.oScroll.sXInner !== "" )
- {
- /* x scroll inner has been given - use it */
- o.nTable.style.width = _fnStringToCss(o.oScroll.sXInner);
- }
- else if ( iSanityWidth == $(nScrollBody).width() &&
- $(nScrollBody).height() < $(o.nTable).height() )
- {
- /* There is y-scrolling - try to take account of the y scroll bar */
- o.nTable.style.width = _fnStringToCss( iSanityWidth-o.oScroll.iBarWidth );
- if ( $(o.nTable).outerWidth() > iSanityWidth-o.oScroll.iBarWidth )
- {
- /* Not possible to take account of it */
- o.nTable.style.width = _fnStringToCss( iSanityWidth );
- }
- }
- else
- {
- /* All else fails */
- o.nTable.style.width = _fnStringToCss( iSanityWidth );
- }
- }
-
- /* Recalculate the sanity width - now that we've applied the required width, before it was
- * a temporary variable. This is required because the column width calculation is done
- * before this table DOM is created.
- */
- iSanityWidth = $(o.nTable).outerWidth();
-
- /* We want the hidden header to have zero height, so remove padding and borders. Then
- * set the width based on the real headers
- */
-
- // Apply all styles in one pass. Invalidates layout only once because we don't read any
- // DOM properties.
- _fnApplyToChildren( zeroOut, anHeadSizers );
-
- // Read all widths in next pass. Forces layout only once because we do not change
- // any DOM properties.
- _fnApplyToChildren( function(nSizer) {
- aApplied.push( _fnStringToCss( $(nSizer).width() ) );
- }, anHeadSizers );
-
- // Apply all widths in final pass. Invalidates layout only once because we do not
- // read any DOM properties.
- _fnApplyToChildren( function(nToSize, i) {
- nToSize.style.width = aApplied[i];
- }, anHeadToSize );
-
- $(anHeadSizers).height(0);
-
- /* Same again with the footer if we have one */
- if ( o.nTFoot !== null )
- {
- _fnApplyToChildren( zeroOut, anFootSizers );
-
- _fnApplyToChildren( function(nSizer) {
- aAppliedFooter.push( _fnStringToCss( $(nSizer).width() ) );
- }, anFootSizers );
-
- _fnApplyToChildren( function(nToSize, i) {
- nToSize.style.width = aAppliedFooter[i];
- }, anFootToSize );
-
- $(anFootSizers).height(0);
- }
-
- /*
- * 3. Apply the measurements
- */
-
- /* "Hide" the header and footer that we used for the sizing. We want to also fix their width
- * to what they currently are
- */
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = "";
- nSizer.style.width = aApplied[i];
- //fix column align
- nSizer.style.minWidth =nSizer.style.width;
- }, anHeadSizers );
-
- if ( o.nTFoot !== null )
- {
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = "";
- nSizer.style.width = aAppliedFooter[i];
- }, anFootSizers );
- }
-
- /* Sanity check that the table is of a sensible width. If not then we are going to get
- * misalignment - try to prevent this by not allowing the table to shrink below its min width
- */
- if ( $(o.nTable).outerWidth() < iSanityWidth )
- {
- /* The min width depends upon if we have a vertical scrollbar visible or not */
- var iCorrection = ((nScrollBody.scrollHeight > nScrollBody.offsetHeight ||
- $(nScrollBody).css('overflow-y') == "scroll")) ?
- iSanityWidth+o.oScroll.iBarWidth : iSanityWidth;
-
- /* IE6/7 are a law unto themselves... */
- if ( ie67 && (nScrollBody.scrollHeight >
- nScrollBody.offsetHeight || $(nScrollBody).css('overflow-y') == "scroll") )
- {
- o.nTable.style.width = _fnStringToCss( iCorrection-o.oScroll.iBarWidth );
- }
-
- /* Apply the calculated minimum width to the table wrappers */
- nScrollBody.style.width = _fnStringToCss( iCorrection );
- o.nScrollHead.style.width = _fnStringToCss( iCorrection );
-
- if ( o.nTFoot !== null )
- {
- o.nScrollFoot.style.width = _fnStringToCss( iCorrection );
- }
-
- /* And give the user a warning that we've stopped the table getting too small */
- if ( o.oScroll.sX === "" )
- {
- _fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
- " misalignment. The table has been drawn at its minimum possible width." );
- }
- else if ( o.oScroll.sXInner !== "" )
- {
- _fnLog( o, 1, "The table cannot fit into the current element which will cause column"+
- " misalignment. Increase the sScrollXInner value or remove it to allow automatic"+
- " calculation" );
- }
- }
- else
- {
- nScrollBody.style.width = _fnStringToCss( '100%' );
- o.nScrollHead.style.width = _fnStringToCss( '100%' );
-
- if ( o.nTFoot !== null )
- {
- o.nScrollFoot.style.width = _fnStringToCss( '100%' );
- }
- }
-
-
- /*
- * 4. Clean up
- */
- if ( o.oScroll.sY === "" )
- {
- /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
- * the scrollbar height from the visible display, rather than adding it on. We need to
- * set the height in order to sort this. Don't want to do it in any other browsers.
- */
- if ( ie67 )
- {
- nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+o.oScroll.iBarWidth );
- }
- }
-
- if ( o.oScroll.sY !== "" && o.oScroll.bCollapse )
- {
- nScrollBody.style.height = _fnStringToCss( o.oScroll.sY );
-
- var iExtra = (o.oScroll.sX !== "" && o.nTable.offsetWidth > nScrollBody.offsetWidth) ?
- o.oScroll.iBarWidth : 0;
- if ( o.nTable.offsetHeight < nScrollBody.offsetHeight )
- {
- nScrollBody.style.height = _fnStringToCss( o.nTable.offsetHeight+iExtra );
- }
- }
-
- /* Finally set the width's of the header and footer tables */
- var iOuterWidth = $(o.nTable).outerWidth();
- nScrollHeadTable.style.width = _fnStringToCss( iOuterWidth );
- nScrollHeadInner.style.width = _fnStringToCss( iOuterWidth );
-
- // Figure out if there are scrollbar present - if so then we need a the header and footer to
- // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
- var bScrolling = $(o.nTable).height() > nScrollBody.clientHeight || $(nScrollBody).css('overflow-y') == "scroll";
- nScrollHeadInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
-
- if ( o.nTFoot !== null )
- {
- nScrollFootTable.style.width = _fnStringToCss( iOuterWidth );
- nScrollFootInner.style.width = _fnStringToCss( iOuterWidth );
- nScrollFootInner.style.paddingRight = bScrolling ? o.oScroll.iBarWidth+"px" : "0px";
- }
-
- /* Adjust the position of the header in case we loose the y-scrollbar */
- $(nScrollBody).scroll();
-
- /* If sorting or filtering has occurred, jump the scrolling back to the top */
- if ( o.bSorted || o.bFiltered )
- {
- nScrollBody.scrollTop = 0;
- }
- }
-
-
- /**
- * Apply a given function to the display child nodes of an element array (typically
- * TD children of TR rows
- * @param {function} fn Method to apply to the objects
- * @param array {nodes} an1 List of elements to look through for display children
- * @param array {nodes} an2 Another list (identical structure to the first) - optional
- * @memberof DataTable#oApi
- */
- function _fnApplyToChildren( fn, an1, an2 )
- {
- var index=0, i=0, iLen=an1.length;
- var nNode1, nNode2;
-
- while ( i < iLen )
- {
- nNode1 = an1[i].firstChild;
- nNode2 = an2 ? an2[i].firstChild : null;
- while ( nNode1 )
- {
- if ( nNode1.nodeType === 1 )
- {
- if ( an2 )
- {
- fn( nNode1, nNode2, index );
- }
- else
- {
- fn( nNode1, index );
- }
- index++;
- }
- nNode1 = nNode1.nextSibling;
- nNode2 = an2 ? nNode2.nextSibling : null;
- }
- i++;
- }
- }
-
- /**
- * Convert a CSS unit width to pixels (e.g. 2em)
- * @param {string} sWidth width to be converted
- * @param {node} nParent parent to get the with for (required for relative widths) - optional
- * @returns {int} iWidth width in pixels
- * @memberof DataTable#oApi
- */
- function _fnConvertToWidth ( sWidth, nParent )
- {
- if ( !sWidth || sWidth === null || sWidth === '' )
- {
- return 0;
- }
-
- if ( !nParent )
- {
- nParent = document.body;
- }
-
- var iWidth;
- var nTmp = document.createElement( "div" );
- nTmp.style.width = _fnStringToCss( sWidth );
-
- nParent.appendChild( nTmp );
- iWidth = nTmp.offsetWidth;
- nParent.removeChild( nTmp );
-
- return ( iWidth );
- }
-
-
- /**
- * Calculate the width of columns for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnCalculateColumnWidths ( oSettings )
- {
- var iTableWidth = oSettings.nTable.offsetWidth;
- var iUserInputs = 0;
- var iTmpWidth;
- var iVisibleColumns = 0;
- var iColums = oSettings.aoColumns.length;
- var i, iIndex, iCorrector, iWidth;
- var oHeaders = $('th', oSettings.nTHead);
- var widthAttr = oSettings.nTable.getAttribute('width');
- var nWrapper = oSettings.nTable.parentNode;
-
- /* Convert any user input sizes into pixel sizes */
- for ( i=0 ; i<iColums ; i++ )
- {
- if ( oSettings.aoColumns[i].bVisible )
- {
- iVisibleColumns++;
-
- if ( oSettings.aoColumns[i].sWidth !== null )
- {
- iTmpWidth = _fnConvertToWidth( oSettings.aoColumns[i].sWidthOrig,
- nWrapper );
- if ( iTmpWidth !== null )
- {
- oSettings.aoColumns[i].sWidth = _fnStringToCss( iTmpWidth );
- }
-
- iUserInputs++;
- }
- }
- }
-
- /* If the number of columns in the DOM equals the number that we have to process in
- * DataTables, then we can use the offsets that are created by the web-browser. No custom
- * sizes can be set in order for this to happen, nor scrolling used
- */
- if ( iColums == oHeaders.length && iUserInputs === 0 && iVisibleColumns == iColums &&
- oSettings.oScroll.sX === "" && oSettings.oScroll.sY === "" )
- {
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- iTmpWidth = $(oHeaders[i]).width();
- if ( iTmpWidth !== null )
- {
- oSettings.aoColumns[i].sWidth = _fnStringToCss( iTmpWidth );
- }
- }
- }
- else
- {
- /* Otherwise we are going to have to do some calculations to get the width of each column.
- * Construct a 1 row table with the widest node in the data, and any user defined widths,
- * then insert it into the DOM and allow the browser to do all the hard work of
- * calculating table widths.
- */
- var
- nCalcTmp = oSettings.nTable.cloneNode( false ),
- nTheadClone = oSettings.nTHead.cloneNode(true),
- nBody = document.createElement( 'tbody' ),
- nTr = document.createElement( 'tr' ),
- nDivSizing;
-
- nCalcTmp.removeAttribute( "id" );
- nCalcTmp.appendChild( nTheadClone );
- if ( oSettings.nTFoot !== null )
- {
- nCalcTmp.appendChild( oSettings.nTFoot.cloneNode(true) );
- _fnApplyToChildren( function(n) {
- n.style.width = "";
- }, nCalcTmp.getElementsByTagName('tr') );
- }
-
- nCalcTmp.appendChild( nBody );
- nBody.appendChild( nTr );
-
- /* Remove any sizing that was previously applied by the styles */
- var jqColSizing = $('thead th', nCalcTmp);
- if ( jqColSizing.length === 0 )
- {
- jqColSizing = $('tbody tr:eq(0)>td', nCalcTmp);
- }
-
- /* Apply custom sizing to the cloned header */
- var nThs = _fnGetUniqueThs( oSettings, nTheadClone );
- iCorrector = 0;
- for ( i=0 ; i<iColums ; i++ )
- {
- var oColumn = oSettings.aoColumns[i];
- if ( oColumn.bVisible && oColumn.sWidthOrig !== null && oColumn.sWidthOrig !== "" )
- {
- nThs[i-iCorrector].style.width = _fnStringToCss( oColumn.sWidthOrig );
- }
- else if ( oColumn.bVisible )
- {
- nThs[i-iCorrector].style.width = "";
- }
- else
- {
- iCorrector++;
- }
- }
-
- /* Find the biggest td for each column and put it into the table */
- for ( i=0 ; i<iColums ; i++ )
- {
- if ( oSettings.aoColumns[i].bVisible )
- {
- var nTd = _fnGetWidestNode( oSettings, i );
- if ( nTd !== null )
- {
- nTd = nTd.cloneNode(true);
- if ( oSettings.aoColumns[i].sContentPadding !== "" )
- {
- nTd.innerHTML += oSettings.aoColumns[i].sContentPadding;
- }
- nTr.appendChild( nTd );
- }
- }
- }
-
- /* Build the table and 'display' it */
- nWrapper.appendChild( nCalcTmp );
-
- /* When scrolling (X or Y) we want to set the width of the table as appropriate. However,
- * when not scrolling leave the table width as it is. This results in slightly different,
- * but I think correct behaviour
- */
- if ( oSettings.oScroll.sX !== "" && oSettings.oScroll.sXInner !== "" )
- {
- nCalcTmp.style.width = _fnStringToCss(oSettings.oScroll.sXInner);
- }
- else if ( oSettings.oScroll.sX !== "" )
- {
- nCalcTmp.style.width = "";
- if ( $(nCalcTmp).width() < nWrapper.offsetWidth )
- {
- nCalcTmp.style.width = _fnStringToCss( nWrapper.offsetWidth );
- }
- }
- else if ( oSettings.oScroll.sY !== "" )
- {
- nCalcTmp.style.width = _fnStringToCss( nWrapper.offsetWidth );
- }
- else if ( widthAttr )
- {
- nCalcTmp.style.width = _fnStringToCss( widthAttr );
- }
- nCalcTmp.style.visibility = "hidden";
-
- /* Scrolling considerations */
- _fnScrollingWidthAdjust( oSettings, nCalcTmp );
-
- /* Read the width's calculated by the browser and store them for use by the caller. We
- * first of all try to use the elements in the body, but it is possible that there are
- * no elements there, under which circumstances we use the header elements
- */
- var oNodes = $("tbody tr:eq(0)", nCalcTmp).children();
- if ( oNodes.length === 0 )
- {
- oNodes = _fnGetUniqueThs( oSettings, $('thead', nCalcTmp)[0] );
- }
-
- /* Browsers need a bit of a hand when a width is assigned to any columns when
- * x-scrolling as they tend to collapse the table to the min-width, even if
- * we sent the column widths. So we need to keep track of what the table width
- * should be by summing the user given values, and the automatic values
- */
- if ( oSettings.oScroll.sX !== "" )
- {
- var iTotal = 0;
- iCorrector = 0;
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- if ( oSettings.aoColumns[i].bVisible )
- {
- if ( oSettings.aoColumns[i].sWidthOrig === null )
- {
- iTotal += $(oNodes[iCorrector]).outerWidth();
- }
- else
- {
- iTotal += parseInt(oSettings.aoColumns[i].sWidth.replace('px',''), 10) +
- ($(oNodes[iCorrector]).outerWidth() - $(oNodes[iCorrector]).width());
- }
- iCorrector++;
- }
- }
-
- nCalcTmp.style.width = _fnStringToCss( iTotal );
- oSettings.nTable.style.width = _fnStringToCss( iTotal );
- }
-
- iCorrector = 0;
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- if ( oSettings.aoColumns[i].bVisible )
- {
- iWidth = $(oNodes[iCorrector]).width();
- if ( iWidth !== null && iWidth > 0 )
- {
- oSettings.aoColumns[i].sWidth = _fnStringToCss( iWidth );
- }
- iCorrector++;
- }
- }
-
- var cssWidth = $(nCalcTmp).css('width');
- oSettings.nTable.style.width = (cssWidth.indexOf('%') !== -1) ?
- cssWidth : _fnStringToCss( $(nCalcTmp).outerWidth() );
- nCalcTmp.parentNode.removeChild( nCalcTmp );
- }
-
- if ( widthAttr )
- {
- oSettings.nTable.style.width = _fnStringToCss( widthAttr );
- }
- }
-
-
- /**
- * Adjust a table's width to take account of scrolling
- * @param {object} oSettings dataTables settings object
- * @param {node} n table node
- * @memberof DataTable#oApi
- */
- function _fnScrollingWidthAdjust ( oSettings, n )
- {
- if ( oSettings.oScroll.sX === "" && oSettings.oScroll.sY !== "" )
- {
- /* When y-scrolling only, we want to remove the width of the scroll bar so the table
- * + scroll bar will fit into the area avaialble.
- */
- var iOrigWidth = $(n).width();
- n.style.width = _fnStringToCss( $(n).outerWidth()-oSettings.oScroll.iBarWidth );
- }
- else if ( oSettings.oScroll.sX !== "" )
- {
- /* When x-scrolling both ways, fix the table at it's current size, without adjusting */
- n.style.width = _fnStringToCss( $(n).outerWidth() );
- }
- }
-
-
- /**
- * Get the widest node
- * @param {object} oSettings dataTables settings object
- * @param {int} iCol column of interest
- * @returns {node} widest table node
- * @memberof DataTable#oApi
- */
- function _fnGetWidestNode( oSettings, iCol )
- {
- var iMaxIndex = _fnGetMaxLenString( oSettings, iCol );
- if ( iMaxIndex < 0 )
- {
- return null;
- }
-
- if ( oSettings.aoData[iMaxIndex].nTr === null )
- {
- var n = document.createElement('td');
- n.innerHTML = _fnGetCellData( oSettings, iMaxIndex, iCol, '' );
- return n;
- }
- return _fnGetTdNodes(oSettings, iMaxIndex)[iCol];
- }
-
-
- /**
- * Get the maximum strlen for each data column
- * @param {object} oSettings dataTables settings object
- * @param {int} iCol column of interest
- * @returns {string} max string length for each column
- * @memberof DataTable#oApi
- */
- function _fnGetMaxLenString( oSettings, iCol )
- {
- var iMax = -1;
- var iMaxIndex = -1;
-
- for ( var i=0 ; i<oSettings.aoData.length ; i++ )
- {
- var s = _fnGetCellData( oSettings, i, iCol, 'display' )+"";
- s = s.replace( /<.*?>/g, "" );
- if ( s.length > iMax )
- {
- iMax = s.length;
- iMaxIndex = i;
- }
- }
-
- return iMaxIndex;
- }
-
-
- /**
- * Append a CSS unit (only if required) to a string
- * @param {array} aArray1 first array
- * @param {array} aArray2 second array
- * @returns {int} 0 if match, 1 if length is different, 2 if no match
- * @memberof DataTable#oApi
- */
- function _fnStringToCss( s )
- {
- if ( s === null )
- {
- return "0px";
- }
-
- if ( typeof s == 'number' )
- {
- if ( s < 0 )
- {
- return "0px";
- }
- return s+"px";
- }
-
- /* Check if the last character is not 0-9 */
- var c = s.charCodeAt( s.length-1 );
- if (c < 0x30 || c > 0x39)
- {
- return s;
- }
- return s+"px";
- }
-
-
- /**
- * Get the width of a scroll bar in this browser being used
- * @returns {int} width in pixels
- * @memberof DataTable#oApi
- */
- function _fnScrollBarWidth ()
- {
- var inner = document.createElement('p');
- var style = inner.style;
- style.width = "100%";
- style.height = "200px";
- style.padding = "0px";
-
- var outer = document.createElement('div');
- style = outer.style;
- style.position = "absolute";
- style.top = "0px";
- style.left = "0px";
- style.visibility = "hidden";
- style.width = "200px";
- style.height = "150px";
- style.padding = "0px";
- style.overflow = "hidden";
- outer.appendChild(inner);
-
- document.body.appendChild(outer);
- var w1 = inner.offsetWidth;
- outer.style.overflow = 'scroll';
- var w2 = inner.offsetWidth;
- if ( w1 == w2 )
- {
- w2 = outer.clientWidth;
- }
-
- document.body.removeChild(outer);
- return (w1 - w2);
- }
-
- /**
- * Change the order of the table
- * @param {object} oSettings dataTables settings object
- * @param {bool} bApplyClasses optional - should we apply classes or not
- * @memberof DataTable#oApi
- */
- function _fnSort ( oSettings, bApplyClasses )
- {
- var
- i, iLen, j, jLen, k, kLen,
- sDataType, nTh,
- aaSort = [],
- aiOrig = [],
- oSort = DataTable.ext.oSort,
- aoData = oSettings.aoData,
- aoColumns = oSettings.aoColumns,
- oAria = oSettings.oLanguage.oAria;
-
- /* No sorting required if server-side or no sorting array */
- if ( !oSettings.oFeatures.bServerSide &&
- (oSettings.aaSorting.length !== 0 || oSettings.aaSortingFixed !== null) )
- {
- aaSort = ( oSettings.aaSortingFixed !== null ) ?
- oSettings.aaSortingFixed.concat( oSettings.aaSorting ) :
- oSettings.aaSorting.slice();
-
- /* If there is a sorting data type, and a function belonging to it, then we need to
- * get the data from the developer's function and apply it for this column
- */
- for ( i=0 ; i<aaSort.length ; i++ )
- {
- var iColumn = aaSort[i][0];
- var iVisColumn = _fnColumnIndexToVisible( oSettings, iColumn );
- sDataType = oSettings.aoColumns[ iColumn ].sSortDataType;
- if ( DataTable.ext.afnSortData[sDataType] )
- {
- var aData = DataTable.ext.afnSortData[sDataType].call(
- oSettings.oInstance, oSettings, iColumn, iVisColumn
- );
- if ( aData.length === aoData.length )
- {
- for ( j=0, jLen=aoData.length ; j<jLen ; j++ )
- {
- _fnSetCellData( oSettings, j, iColumn, aData[j] );
- }
- }
- else
- {
- _fnLog( oSettings, 0, "Returned data sort array (col "+iColumn+") is the wrong length" );
- }
- }
- }
-
- /* Create a value - key array of the current row positions such that we can use their
- * current position during the sort, if values match, in order to perform stable sorting
- */
- for ( i=0, iLen=oSettings.aiDisplayMaster.length ; i<iLen ; i++ )
- {
- aiOrig[ oSettings.aiDisplayMaster[i] ] = i;
- }
-
- /* Build an internal data array which is specific to the sort, so we can get and prep
- * the data to be sorted only once, rather than needing to do it every time the sorting
- * function runs. This make the sorting function a very simple comparison
- */
- var iSortLen = aaSort.length;
- var fnSortFormat, aDataSort;
- for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- for ( j=0 ; j<iSortLen ; j++ )
- {
- aDataSort = aoColumns[ aaSort[j][0] ].aDataSort;
-
- for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
- {
- sDataType = aoColumns[ aDataSort[k] ].sType;
- fnSortFormat = oSort[ (sDataType ? sDataType : 'string')+"-pre" ];
-
- aoData[i]._aSortData[ aDataSort[k] ] = fnSortFormat ?
- fnSortFormat( _fnGetCellData( oSettings, i, aDataSort[k], 'sort' ) ) :
- _fnGetCellData( oSettings, i, aDataSort[k], 'sort' );
- }
- }
- }
-
- /* Do the sort - here we want multi-column sorting based on a given data source (column)
- * and sorting function (from oSort) in a certain direction. It's reasonably complex to
- * follow on it's own, but this is what we want (example two column sorting):
- * fnLocalSorting = function(a,b){
- * var iTest;
- * iTest = oSort['string-asc']('data11', 'data12');
- * if (iTest !== 0)
- * return iTest;
- * iTest = oSort['numeric-desc']('data21', 'data22');
- * if (iTest !== 0)
- * return iTest;
- * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
- * }
- * Basically we have a test for each sorting column, if the data in that column is equal,
- * test the next column. If all columns match, then we use a numeric sort on the row
- * positions in the original data array to provide a stable sort.
- */
- oSettings.aiDisplayMaster.sort( function ( a, b ) {
- var k, l, lLen, iTest, aDataSort, sDataType;
- for ( k=0 ; k<iSortLen ; k++ )
- {
- aDataSort = aoColumns[ aaSort[k][0] ].aDataSort;
-
- for ( l=0, lLen=aDataSort.length ; l<lLen ; l++ )
- {
- sDataType = aoColumns[ aDataSort[l] ].sType;
-
- iTest = oSort[ (sDataType ? sDataType : 'string')+"-"+aaSort[k][1] ](
- aoData[a]._aSortData[ aDataSort[l] ],
- aoData[b]._aSortData[ aDataSort[l] ]
- );
-
- if ( iTest !== 0 )
- {
- return iTest;
- }
- }
- }
-
- return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
- } );
- }
-
- /* Alter the sorting classes to take account of the changes */
- if ( (bApplyClasses === undefined || bApplyClasses) && !oSettings.oFeatures.bDeferRender )
- {
- _fnSortingClasses( oSettings );
- }
-
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- var sTitle = aoColumns[i].sTitle.replace( /<.*?>/g, "" );
- nTh = aoColumns[i].nTh;
- nTh.removeAttribute('aria-sort');
- nTh.removeAttribute('aria-label');
-
- /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
- if ( aoColumns[i].bSortable )
- {
- if ( aaSort.length > 0 && aaSort[0][0] == i )
- {
- nTh.setAttribute('aria-sort', aaSort[0][1]=="asc" ? "ascending" : "descending" );
-
- var nextSort = (aoColumns[i].asSorting[ aaSort[0][2]+1 ]) ?
- aoColumns[i].asSorting[ aaSort[0][2]+1 ] : aoColumns[i].asSorting[0];
- nTh.setAttribute('aria-label', sTitle+
- (nextSort=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
- }
- else
- {
- nTh.setAttribute('aria-label', sTitle+
- (aoColumns[i].asSorting[0]=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
- }
- }
- else
- {
- nTh.setAttribute('aria-label', sTitle);
- }
- }
-
- /* Tell the draw function that we have sorted the data */
- oSettings.bSorted = true;
- $(oSettings.oInstance).trigger('sort', oSettings);
-
- /* Copy the master data into the draw array and re-draw */
- if ( oSettings.oFeatures.bFilter )
- {
- /* _fnFilter() will redraw the table for us */
- _fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
- }
- else
- {
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
- oSettings._iDisplayStart = 0; /* reset display back to page 0 */
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
- }
-
-
- /**
- * Attach a sort handler (click) to a node
- * @param {object} oSettings dataTables settings object
- * @param {node} nNode node to attach the handler to
- * @param {int} iDataIndex column sorting index
- * @param {function} [fnCallback] callback function
- * @memberof DataTable#oApi
- */
- function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
- {
- _fnBindAction( nNode, {}, function (e) {
- /* If the column is not sortable - don't to anything */
- if ( oSettings.aoColumns[iDataIndex].bSortable === false )
- {
- return;
- }
-
- /*
- * This is a little bit odd I admit... I declare a temporary function inside the scope of
- * _fnBuildHead and the click handler in order that the code presented here can be used
- * twice - once for when bProcessing is enabled, and another time for when it is
- * disabled, as we need to perform slightly different actions.
- * Basically the issue here is that the Javascript engine in modern browsers don't
- * appear to allow the rendering engine to update the display while it is still executing
- * it's thread (well - it does but only after long intervals). This means that the
- * 'processing' display doesn't appear for a table sort. To break the js thread up a bit
- * I force an execution break by using setTimeout - but this breaks the expected
- * thread continuation for the end-developer's point of view (their code would execute
- * too early), so we only do it when we absolutely have to.
- */
- var fnInnerSorting = function () {
- var iColumn, iNextSort;
-
- /* If the shift key is pressed then we are multiple column sorting */
- if ( e.shiftKey )
- {
- /* Are we already doing some kind of sort on this column? */
- var bFound = false;
- for ( var i=0 ; i<oSettings.aaSorting.length ; i++ )
- {
- if ( oSettings.aaSorting[i][0] == iDataIndex )
- {
- bFound = true;
- iColumn = oSettings.aaSorting[i][0];
- iNextSort = oSettings.aaSorting[i][2]+1;
-
- if ( !oSettings.aoColumns[iColumn].asSorting[iNextSort] )
- {
- /* Reached the end of the sorting options, remove from multi-col sort */
- oSettings.aaSorting.splice( i, 1 );
- }
- else
- {
- /* Move onto next sorting direction */
- oSettings.aaSorting[i][1] = oSettings.aoColumns[iColumn].asSorting[iNextSort];
- oSettings.aaSorting[i][2] = iNextSort;
- }
- break;
- }
- }
-
- /* No sort yet - add it in */
- if ( bFound === false )
- {
- oSettings.aaSorting.push( [ iDataIndex,
- oSettings.aoColumns[iDataIndex].asSorting[0], 0 ] );
- }
- }
- else
- {
- /* If no shift key then single column sort */
- if ( oSettings.aaSorting.length == 1 && oSettings.aaSorting[0][0] == iDataIndex )
- {
- iColumn = oSettings.aaSorting[0][0];
- iNextSort = oSettings.aaSorting[0][2]+1;
- if ( !oSettings.aoColumns[iColumn].asSorting[iNextSort] )
- {
- iNextSort = 0;
- }
- oSettings.aaSorting[0][1] = oSettings.aoColumns[iColumn].asSorting[iNextSort];
- oSettings.aaSorting[0][2] = iNextSort;
- }
- else
- {
- oSettings.aaSorting.splice( 0, oSettings.aaSorting.length );
- oSettings.aaSorting.push( [ iDataIndex,
- oSettings.aoColumns[iDataIndex].asSorting[0], 0 ] );
- }
- }
-
- /* Run the sort */
- _fnSort( oSettings );
- }; /* /fnInnerSorting */
-
- if ( !oSettings.oFeatures.bProcessing )
- {
- fnInnerSorting();
- }
- else
- {
- _fnProcessingDisplay( oSettings, true );
- setTimeout( function() {
- fnInnerSorting();
- if ( !oSettings.oFeatures.bServerSide )
- {
- _fnProcessingDisplay( oSettings, false );
- }
- }, 0 );
- }
-
- /* Call the user specified callback function - used for async user interaction */
- if ( typeof fnCallback == 'function' )
- {
- fnCallback( oSettings );
- }
- } );
- }
-
-
- /**
- * Set the sorting classes on the header, Note: it is safe to call this function
- * when bSort and bSortClasses are false
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnSortingClasses( oSettings )
- {
- var i, iLen, j, jLen, iFound;
- var aaSort, sClass;
- var iColumns = oSettings.aoColumns.length;
- var oClasses = oSettings.oClasses;
-
- for ( i=0 ; i<iColumns ; i++ )
- {
- if ( oSettings.aoColumns[i].bSortable )
- {
- $(oSettings.aoColumns[i].nTh).removeClass( oClasses.sSortAsc +" "+ oClasses.sSortDesc +
- " "+ oSettings.aoColumns[i].sSortingClass );
- }
- }
-
- if ( oSettings.aaSortingFixed !== null )
- {
- aaSort = oSettings.aaSortingFixed.concat( oSettings.aaSorting );
- }
- else
- {
- aaSort = oSettings.aaSorting.slice();
- }
-
- /* Apply the required classes to the header */
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- if ( oSettings.aoColumns[i].bSortable )
- {
- sClass = oSettings.aoColumns[i].sSortingClass;
- iFound = -1;
- for ( j=0 ; j<aaSort.length ; j++ )
- {
- if ( aaSort[j][0] == i )
- {
- sClass = ( aaSort[j][1] == "asc" ) ?
- oClasses.sSortAsc : oClasses.sSortDesc;
- iFound = j;
- break;
- }
- }
- $(oSettings.aoColumns[i].nTh).addClass( sClass );
-
- if ( oSettings.bJUI )
- {
- /* jQuery UI uses extra markup */
- var jqSpan = $("span."+oClasses.sSortIcon, oSettings.aoColumns[i].nTh);
- jqSpan.removeClass(oClasses.sSortJUIAsc +" "+ oClasses.sSortJUIDesc +" "+
- oClasses.sSortJUI +" "+ oClasses.sSortJUIAscAllowed +" "+ oClasses.sSortJUIDescAllowed );
-
- var sSpanClass;
- if ( iFound == -1 )
- {
- sSpanClass = oSettings.aoColumns[i].sSortingClassJUI;
- }
- else if ( aaSort[iFound][1] == "asc" )
- {
- sSpanClass = oClasses.sSortJUIAsc;
- }
- else
- {
- sSpanClass = oClasses.sSortJUIDesc;
- }
-
- jqSpan.addClass( sSpanClass );
- }
- }
- else
- {
- /* No sorting on this column, so add the base class. This will have been assigned by
- * _fnAddColumn
- */
- $(oSettings.aoColumns[i].nTh).addClass( oSettings.aoColumns[i].sSortingClass );
- }
- }
-
- /*
- * Apply the required classes to the table body
- * Note that this is given as a feature switch since it can significantly slow down a sort
- * on large data sets (adding and removing of classes is always slow at the best of times..)
- * Further to this, note that this code is admittedly fairly ugly. It could be made a lot
- * simpler using jQuery selectors and add/removeClass, but that is significantly slower
- * (on the order of 5 times slower) - hence the direct DOM manipulation here.
- * Note that for deferred drawing we do use jQuery - the reason being that taking the first
- * row found to see if the whole column needs processed can miss classes since the first
- * column might be new.
- */
- sClass = oClasses.sSortColumn;
-
- if ( oSettings.oFeatures.bSort && oSettings.oFeatures.bSortClasses )
- {
- var nTds = _fnGetTdNodes( oSettings );
-
- /* Determine what the sorting class for each column should be */
- var iClass, iTargetCol;
- var asClasses = [];
- for (i = 0; i < iColumns; i++)
- {
- asClasses.push("");
- }
- for (i = 0, iClass = 1; i < aaSort.length; i++)
- {
- iTargetCol = parseInt( aaSort[i][0], 10 );
- asClasses[iTargetCol] = sClass + iClass;
-
- if ( iClass < 3 )
- {
- iClass++;
- }
- }
-
- /* Make changes to the classes for each cell as needed */
- var reClass = new RegExp(sClass + "[123]");
- var sTmpClass, sCurrentClass, sNewClass;
- for ( i=0, iLen=nTds.length; i<iLen; i++ )
- {
- /* Determine which column we're looking at */
- iTargetCol = i % iColumns;
-
- /* What is the full list of classes now */
- sCurrentClass = nTds[i].className;
- /* What sorting class should be applied? */
- sNewClass = asClasses[iTargetCol];
- /* What would the new full list be if we did a replacement? */
- sTmpClass = sCurrentClass.replace(reClass, sNewClass);
-
- if ( sTmpClass != sCurrentClass )
- {
- /* We changed something */
- nTds[i].className = $.trim( sTmpClass );
- }
- else if ( sNewClass.length > 0 && sCurrentClass.indexOf(sNewClass) == -1 )
- {
- /* We need to add a class */
- nTds[i].className = sCurrentClass + " " + sNewClass;
- }
- }
- }
- }
-
-
-
- /**
- * Save the state of a table in a cookie such that the page can be reloaded
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnSaveState ( oSettings )
- {
- if ( !oSettings.oFeatures.bStateSave || oSettings.bDestroying )
- {
- return;
- }
-
- /* Store the interesting variables */
- var i, iLen, bInfinite=oSettings.oScroll.bInfinite;
- var oState = {
- "iCreate": new Date().getTime(),
- "iStart": (bInfinite ? 0 : oSettings._iDisplayStart),
- "iEnd": (bInfinite ? oSettings._iDisplayLength : oSettings._iDisplayEnd),
- "iLength": oSettings._iDisplayLength,
- "aaSorting": $.extend( true, [], oSettings.aaSorting ),
- "oSearch": $.extend( true, {}, oSettings.oPreviousSearch ),
- "aoSearchCols": $.extend( true, [], oSettings.aoPreSearchCols ),
- "abVisCols": []
- };
-
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- oState.abVisCols.push( oSettings.aoColumns[i].bVisible );
- }
-
- _fnCallbackFire( oSettings, "aoStateSaveParams", 'stateSaveParams', [oSettings, oState] );
-
- oSettings.fnStateSave.call( oSettings.oInstance, oSettings, oState );
- }
-
-
- /**
- * Attempt to load a saved table state from a cookie
- * @param {object} oSettings dataTables settings object
- * @param {object} oInit DataTables init object so we can override settings
- * @memberof DataTable#oApi
- */
- function _fnLoadState ( oSettings, oInit )
- {
- if ( !oSettings.oFeatures.bStateSave )
- {
- return;
- }
-
- var oData = oSettings.fnStateLoad.call( oSettings.oInstance, oSettings );
- if ( !oData )
- {
- return;
- }
-
- /* Allow custom and plug-in manipulation functions to alter the saved data set and
- * cancelling of loading by returning false
- */
- var abStateLoad = _fnCallbackFire( oSettings, 'aoStateLoadParams', 'stateLoadParams', [oSettings, oData] );
- if ( $.inArray( false, abStateLoad ) !== -1 )
- {
- return;
- }
-
- /* Store the saved state so it might be accessed at any time */
- oSettings.oLoadedState = $.extend( true, {}, oData );
-
- /* Restore key features */
- oSettings._iDisplayStart = oData.iStart;
- oSettings.iInitDisplayStart = oData.iStart;
- oSettings._iDisplayEnd = oData.iEnd;
- oSettings._iDisplayLength = oData.iLength;
- oSettings.aaSorting = oData.aaSorting.slice();
- oSettings.saved_aaSorting = oData.aaSorting.slice();
-
- /* Search filtering */
- $.extend( oSettings.oPreviousSearch, oData.oSearch );
- $.extend( true, oSettings.aoPreSearchCols, oData.aoSearchCols );
-
- /* Column visibility state
- * Pass back visibility settings to the init handler, but to do not here override
- * the init object that the user might have passed in
- */
- oInit.saved_aoColumns = [];
- for ( var i=0 ; i<oData.abVisCols.length ; i++ )
- {
- oInit.saved_aoColumns[i] = {};
- oInit.saved_aoColumns[i].bVisible = oData.abVisCols[i];
- }
-
- _fnCallbackFire( oSettings, 'aoStateLoaded', 'stateLoaded', [oSettings, oData] );
- }
-
-
- /**
- * Create a new cookie with a value to store the state of a table
- * @param {string} sName name of the cookie to create
- * @param {string} sValue the value the cookie should take
- * @param {int} iSecs duration of the cookie
- * @param {string} sBaseName sName is made up of the base + file name - this is the base
- * @param {function} fnCallback User definable function to modify the cookie
- * @memberof DataTable#oApi
- */
- function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
- {
- var date = new Date();
- date.setTime( date.getTime()+(iSecs*1000) );
-
- /*
- * Shocking but true - it would appear IE has major issues with having the path not having
- * a trailing slash on it. We need the cookie to be available based on the path, so we
- * have to append the file name to the cookie name. Appalling. Thanks to vex for adding the
- * patch to use at least some of the path
- */
- var aParts = window.location.pathname.split('/');
- var sNameFile = sName + '_' + aParts.pop().replace(/[\/:]/g,"").toLowerCase();
- var sFullCookie, oData;
-
- if ( fnCallback !== null )
- {
- oData = (typeof $.parseJSON === 'function') ?
- $.parseJSON( sValue ) : eval( '('+sValue+')' );
- sFullCookie = fnCallback( sNameFile, oData, date.toGMTString(),
- aParts.join('/')+"/" );
- }
- else
- {
- sFullCookie = sNameFile + "=" + encodeURIComponent(sValue) +
- "; expires=" + date.toGMTString() +"; path=" + aParts.join('/')+"/";
- }
-
- /* Are we going to go over the cookie limit of 4KiB? If so, try to delete a cookies
- * belonging to DataTables.
- */
- var
- aCookies =document.cookie.split(';'),
- iNewCookieLen = sFullCookie.split(';')[0].length,
- aOldCookies = [];
-
- if ( iNewCookieLen+document.cookie.length+10 > 4096 ) /* Magic 10 for padding */
- {
- for ( var i=0, iLen=aCookies.length ; i<iLen ; i++ )
- {
- if ( aCookies[i].indexOf( sBaseName ) != -1 )
- {
- /* It's a DataTables cookie, so eval it and check the time stamp */
- var aSplitCookie = aCookies[i].split('=');
- try {
- oData = eval( '('+decodeURIComponent(aSplitCookie[1])+')' );
-
- if ( oData && oData.iCreate )
- {
- aOldCookies.push( {
- "name": aSplitCookie[0],
- "time": oData.iCreate
- } );
- }
- }
- catch( e ) {}
- }
- }
-
- // Make sure we delete the oldest ones first
- aOldCookies.sort( function (a, b) {
- return b.time - a.time;
- } );
-
- // Eliminate as many old DataTables cookies as we need to
- while ( iNewCookieLen + document.cookie.length + 10 > 4096 ) {
- if ( aOldCookies.length === 0 ) {
- // Deleted all DT cookies and still not enough space. Can't state save
- return;
- }
-
- var old = aOldCookies.pop();
- document.cookie = old.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+
- aParts.join('/') + "/";
- }
- }
-
- document.cookie = sFullCookie;
- }
-
-
- /**
- * Read an old cookie to get a cookie with an old table state
- * @param {string} sName name of the cookie to read
- * @returns {string} contents of the cookie - or null if no cookie with that name found
- * @memberof DataTable#oApi
- */
- function _fnReadCookie ( sName )
- {
- var
- aParts = window.location.pathname.split('/'),
- sNameEQ = sName + '_' + aParts[aParts.length-1].replace(/[\/:]/g,"").toLowerCase() + '=',
- sCookieContents = document.cookie.split(';');
-
- for( var i=0 ; i<sCookieContents.length ; i++ )
- {
- var c = sCookieContents[i];
-
- while (c.charAt(0)==' ')
- {
- c = c.substring(1,c.length);
- }
-
- if (c.indexOf(sNameEQ) === 0)
- {
- return decodeURIComponent( c.substring(sNameEQ.length,c.length) );
- }
- }
- return null;
- }
-
-
- /**
- * Return the settings object for a particular table
- * @param {node} nTable table we are using as a dataTable
- * @returns {object} Settings object - or null if not found
- * @memberof DataTable#oApi
- */
- function _fnSettingsFromNode ( nTable )
- {
- for ( var i=0 ; i<DataTable.settings.length ; i++ )
- {
- if ( DataTable.settings[i].nTable === nTable )
- {
- return DataTable.settings[i];
- }
- }
-
- return null;
- }
-
-
- /**
- * Return an array with the TR nodes for the table
- * @param {object} oSettings dataTables settings object
- * @returns {array} TR array
- * @memberof DataTable#oApi
- */
- function _fnGetTrNodes ( oSettings )
- {
- var aNodes = [];
- var aoData = oSettings.aoData;
- for ( var i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- if ( aoData[i].nTr !== null )
- {
- aNodes.push( aoData[i].nTr );
- }
- }
- return aNodes;
- }
-
-
- /**
- * Return an flat array with all TD nodes for the table, or row
- * @param {object} oSettings dataTables settings object
- * @param {int} [iIndividualRow] aoData index to get the nodes for - optional
- * if not given then the return array will contain all nodes for the table
- * @returns {array} TD array
- * @memberof DataTable#oApi
- */
- function _fnGetTdNodes ( oSettings, iIndividualRow )
- {
- var anReturn = [];
- var iCorrector;
- var anTds, nTd;
- var iRow, iRows=oSettings.aoData.length,
- iColumn, iColumns, oData, sNodeName, iStart=0, iEnd=iRows;
-
- /* Allow the collection to be limited to just one row */
- if ( iIndividualRow !== undefined )
- {
- iStart = iIndividualRow;
- iEnd = iIndividualRow+1;
- }
-
- for ( iRow=iStart ; iRow<iEnd ; iRow++ )
- {
- oData = oSettings.aoData[iRow];
- if ( oData.nTr !== null )
- {
- /* get the TD child nodes - taking into account text etc nodes */
- anTds = [];
- nTd = oData.nTr.firstChild;
- while ( nTd )
- {
- sNodeName = nTd.nodeName.toLowerCase();
- if ( sNodeName == 'td' || sNodeName == 'th' )
- {
- anTds.push( nTd );
- }
- nTd = nTd.nextSibling;
- }
-
- iCorrector = 0;
- for ( iColumn=0, iColumns=oSettings.aoColumns.length ; iColumn<iColumns ; iColumn++ )
- {
- if ( oSettings.aoColumns[iColumn].bVisible )
- {
- anReturn.push( anTds[iColumn-iCorrector] );
- }
- else
- {
- anReturn.push( oData._anHidden[iColumn] );
- iCorrector++;
- }
- }
- }
- }
-
- return anReturn;
- }
-
-
- /**
- * Log an error message
- * @param {object} oSettings dataTables settings object
- * @param {int} iLevel log error messages, or display them to the user
- * @param {string} sMesg error message
- * @memberof DataTable#oApi
- */
- function _fnLog( oSettings, iLevel, sMesg )
- {
- var sAlert = (oSettings===null) ?
- "DataTables warning: "+sMesg :
- "DataTables warning (table id = '"+oSettings.sTableId+"'): "+sMesg;
-
- if ( iLevel === 0 )
- {
- if ( DataTable.ext.sErrMode == 'alert' )
- {
- alert( sAlert );
- }
- else
- {
- throw new Error(sAlert);
- }
- return;
- }
- else if ( window.console && console.log )
- {
- console.log( sAlert );
- }
- }
-
-
- /**
- * See if a property is defined on one object, if so assign it to the other object
- * @param {object} oRet target object
- * @param {object} oSrc source object
- * @param {string} sName property
- * @param {string} [sMappedName] name to map too - optional, sName used if not given
- * @memberof DataTable#oApi
- */
- function _fnMap( oRet, oSrc, sName, sMappedName )
- {
- if ( sMappedName === undefined )
- {
- sMappedName = sName;
- }
- if ( oSrc[sName] !== undefined )
- {
- oRet[sMappedName] = oSrc[sName];
- }
- }
-
-
- /**
- * Extend objects - very similar to jQuery.extend, but deep copy objects, and shallow
- * copy arrays. The reason we need to do this, is that we don't want to deep copy array
- * init values (such as aaSorting) since the dev wouldn't be able to override them, but
- * we do want to deep copy arrays.
- * @param {object} oOut Object to extend
- * @param {object} oExtender Object from which the properties will be applied to oOut
- * @returns {object} oOut Reference, just for convenience - oOut === the return.
- * @memberof DataTable#oApi
- * @todo This doesn't take account of arrays inside the deep copied objects.
- */
- function _fnExtend( oOut, oExtender )
- {
- var val;
-
- for ( var prop in oExtender )
- {
- if ( oExtender.hasOwnProperty(prop) )
- {
- val = oExtender[prop];
-
- if ( typeof oInit[prop] === 'object' && val !== null && $.isArray(val) === false )
- {
- $.extend( true, oOut[prop], val );
- }
- else
- {
- oOut[prop] = val;
- }
- }
- }
-
- return oOut;
- }
-
-
- /**
- * Bind an event handers to allow a click or return key to activate the callback.
- * This is good for accessibility since a return on the keyboard will have the
- * same effect as a click, if the element has focus.
- * @param {element} n Element to bind the action to
- * @param {object} oData Data object to pass to the triggered function
- * @param {function} fn Callback function for when the event is triggered
- * @memberof DataTable#oApi
- */
- function _fnBindAction( n, oData, fn )
- {
- $(n)
- .bind( 'click.DT', oData, function (e) {
- n.blur(); // Remove focus outline for mouse users
- fn(e);
- } )
- .bind( 'keypress.DT', oData, function (e){
- if ( e.which === 13 ) {
- fn(e);
- } } )
- .bind( 'selectstart.DT', function () {
- /* Take the brutal approach to cancelling text selection */
- return false;
- } );
- }
-
-
- /**
- * Register a callback function. Easily allows a callback function to be added to
- * an array store of callback functions that can then all be called together.
- * @param {object} oSettings dataTables settings object
- * @param {string} sStore Name of the array storage for the callbacks in oSettings
- * @param {function} fn Function to be called back
- * @param {string} sName Identifying name for the callback (i.e. a label)
- * @memberof DataTable#oApi
- */
- function _fnCallbackReg( oSettings, sStore, fn, sName )
- {
- if ( fn )
- {
- oSettings[sStore].push( {
- "fn": fn,
- "sName": sName
- } );
- }
- }
-
-
- /**
- * Fire callback functions and trigger events. Note that the loop over the callback
- * array store is done backwards! Further note that you do not want to fire off triggers
- * in time sensitive applications (for example cell creation) as its slow.
- * @param {object} oSettings dataTables settings object
- * @param {string} sStore Name of the array storage for the callbacks in oSettings
- * @param {string} sTrigger Name of the jQuery custom event to trigger. If null no trigger
- * is fired
- * @param {array} aArgs Array of arguments to pass to the callback function / trigger
- * @memberof DataTable#oApi
- */
- function _fnCallbackFire( oSettings, sStore, sTrigger, aArgs )
- {
- var aoStore = oSettings[sStore];
- var aRet =[];
-
- for ( var i=aoStore.length-1 ; i>=0 ; i-- )
- {
- aRet.push( aoStore[i].fn.apply( oSettings.oInstance, aArgs ) );
- }
-
- if ( sTrigger !== null )
- {
- $(oSettings.oInstance).trigger(sTrigger, aArgs);
- }
-
- return aRet;
- }
-
-
- /**
- * JSON stringify. If JSON.stringify it provided by the browser, json2.js or any other
- * library, then we use that as it is fast, safe and accurate. If the function isn't
- * available then we need to built it ourselves - the inspiration for this function comes
- * from Craig Buckler ( http://www.sitepoint.com/javascript-json-serialization/ ). It is
- * not perfect and absolutely should not be used as a replacement to json2.js - but it does
- * do what we need, without requiring a dependency for DataTables.
- * @param {object} o JSON object to be converted
- * @returns {string} JSON string
- * @memberof DataTable#oApi
- */
- var _fnJsonString = (window.JSON) ? JSON.stringify : function( o )
- {
- /* Not an object or array */
- var sType = typeof o;
- if (sType !== "object" || o === null)
- {
- // simple data type
- if (sType === "string")
- {
- o = '"'+o+'"';
- }
- return o+"";
- }
-
- /* If object or array, need to recurse over it */
- var
- sProp, mValue,
- json = [],
- bArr = $.isArray(o);
-
- for (sProp in o)
- {
- mValue = o[sProp];
- sType = typeof mValue;
-
- if (sType === "string")
- {
- mValue = '"'+mValue+'"';
- }
- else if (sType === "object" && mValue !== null)
- {
- mValue = _fnJsonString(mValue);
- }
-
- json.push((bArr ? "" : '"'+sProp+'":') + mValue);
- }
-
- return (bArr ? "[" : "{") + json + (bArr ? "]" : "}");
- };
-
-
- /**
- * From some browsers (specifically IE6/7) we need special handling to work around browser
- * bugs - this function is used to detect when these workarounds are needed.
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnBrowserDetect( oSettings )
- {
- /* IE6/7 will oversize a width 100% element inside a scrolling element, to include the
- * width of the scrollbar, while other browsers ensure the inner element is contained
- * without forcing scrolling
- */
- var n = $(
- '<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden">'+
- '<div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;">'+
- '<div id="DT_BrowserTest" style="width:100%; height:10px;"></div>'+
- '</div>'+
- '</div>')[0];
-
- document.body.appendChild( n );
- oSettings.oBrowser.bScrollOversize = $('#DT_BrowserTest', n)[0].offsetWidth === 100 ? true : false;
- document.body.removeChild( n );
- }
-
-
- /**
- * Perform a jQuery selector action on the table's TR elements (from the tbody) and
- * return the resulting jQuery object.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
- * criterion ("applied") or all TR elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {object} jQuery object, filtered by the given selector.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Highlight every second row
- * oTable.$('tr:odd').css('backgroundColor', 'blue');
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to rows with 'Webkit' in them, add a background colour and then
- * // remove the filter, thus highlighting the 'Webkit' rows only.
- * oTable.fnFilter('Webkit');
- * oTable.$('tr', {"filter": "applied"}).css('backgroundColor', 'blue');
- * oTable.fnFilter('');
- * } );
- */
- this.$ = function ( sSelector, oOpts )
- {
- var i, iLen, a = [], tr;
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var aoData = oSettings.aoData;
- var aiDisplay = oSettings.aiDisplay;
- var aiDisplayMaster = oSettings.aiDisplayMaster;
-
- if ( !oOpts )
- {
- oOpts = {};
- }
-
- oOpts = $.extend( {}, {
- "filter": "none", // applied
- "order": "current", // "original"
- "page": "all" // current
- }, oOpts );
-
- // Current page implies that order=current and fitler=applied, since it is fairly
- // senseless otherwise
- if ( oOpts.page == 'current' )
- {
- for ( i=oSettings._iDisplayStart, iLen=oSettings.fnDisplayEnd() ; i<iLen ; i++ )
- {
- tr = aoData[ aiDisplay[i] ].nTr;
- if ( tr )
- {
- a.push( tr );
- }
- }
- }
- else if ( oOpts.order == "current" && oOpts.filter == "none" )
- {
- for ( i=0, iLen=aiDisplayMaster.length ; i<iLen ; i++ )
- {
- tr = aoData[ aiDisplayMaster[i] ].nTr;
- if ( tr )
- {
- a.push( tr );
- }
- }
- }
- else if ( oOpts.order == "current" && oOpts.filter == "applied" )
- {
- for ( i=0, iLen=aiDisplay.length ; i<iLen ; i++ )
- {
- tr = aoData[ aiDisplay[i] ].nTr;
- if ( tr )
- {
- a.push( tr );
- }
- }
- }
- else if ( oOpts.order == "original" && oOpts.filter == "none" )
- {
- for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- tr = aoData[ i ].nTr ;
- if ( tr )
- {
- a.push( tr );
- }
- }
- }
- else if ( oOpts.order == "original" && oOpts.filter == "applied" )
- {
- for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- tr = aoData[ i ].nTr;
- if ( $.inArray( i, aiDisplay ) !== -1 && tr )
- {
- a.push( tr );
- }
- }
- }
- else
- {
- _fnLog( oSettings, 1, "Unknown selection options" );
- }
-
- /* We need to filter on the TR elements and also 'find' in their descendants
- * to make the selector act like it would in a full table - so we need
- * to build both results and then combine them together
- */
- var jqA = $(a);
- var jqTRs = jqA.filter( sSelector );
- var jqDescendants = jqA.find( sSelector );
-
- return $( [].concat($.makeArray(jqTRs), $.makeArray(jqDescendants)) );
- };
-
-
- /**
- * Almost identical to $ in operation, but in this case returns the data for the matched
- * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
- * rather than any descendants, so the data can be obtained for the row/cell. If matching
- * rows are found, the data returned is the original data array/object that was used to
- * create the row (or a generated array if from a DOM source).
- *
- * This method is often useful in-combination with $ where both functions are given the
- * same parameters and the array indexes will match identically.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select elements that meet the current filter
- * criterion ("applied") or all elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the data in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {array} Data for the matched elements. If any elements, as a result of the
- * selector, were not TR, TD or TH elements in the DataTable, they will have a null
- * entry in the array.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the data from the first row in the table
- * var data = oTable._('tr:first');
- *
- * // Do something useful with the data
- * alert( "First cell is: "+data[0] );
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to 'Webkit' and get all data for
- * oTable.fnFilter('Webkit');
- * var data = oTable._('tr', {"filter": "applied"});
- *
- * // Do something with the data
- * alert( data.length+" rows matched the filter" );
- * } );
- */
- this._ = function ( sSelector, oOpts )
- {
- var aOut = [];
- var i, iLen, iIndex;
- var aTrs = this.$( sSelector, oOpts );
-
- for ( i=0, iLen=aTrs.length ; i<iLen ; i++ )
- {
- aOut.push( this.fnGetData(aTrs[i]) );
- }
-
- return aOut;
- };
-
-
- /**
- * Add a single new row or multiple rows of data to the table. Please note
- * that this is suitable for client-side processing only - if you are using
- * server-side processing (i.e. "bServerSide": true), then to add data, you
- * must add it to the data source, i.e. the server-side, through an Ajax call.
- * @param {array|object} mData The data to be added to the table. This can be:
- * <ul>
- * <li>1D array of data - add a single row with the data provided</li>
- * <li>2D array of arrays - add multiple rows in a single call</li>
- * <li>object - data object when using <i>mData</i></li>
- * <li>array of objects - multiple data objects when using <i>mData</i></li>
- * </ul>
- * @param {bool} [bRedraw=true] redraw the table or not
- * @returns {array} An array of integers, representing the list of indexes in
- * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
- * the table.
- * @dtopt API
- *
- * @example
- * // Global var for counter
- * var giCount = 2;
- *
- * $(document).ready(function() {
- * $('#example').dataTable();
- * } );
- *
- * function fnClickAddRow() {
- * $('#example').dataTable().fnAddData( [
- * giCount+".1",
- * giCount+".2",
- * giCount+".3",
- * giCount+".4" ]
- * );
- *
- * giCount++;
- * }
- */
- this.fnAddData = function( mData, bRedraw )
- {
- if ( mData.length === 0 )
- {
- return [];
- }
-
- var aiReturn = [];
- var iTest;
-
- /* Find settings from table node */
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- /* Check if we want to add multiple rows or not */
- if ( typeof mData[0] === "object" && mData[0] !== null )
- {
- for ( var i=0 ; i<mData.length ; i++ )
- {
- iTest = _fnAddData( oSettings, mData[i] );
- if ( iTest == -1 )
- {
- return aiReturn;
- }
- aiReturn.push( iTest );
- }
- }
- else
- {
- iTest = _fnAddData( oSettings, mData );
- if ( iTest == -1 )
- {
- return aiReturn;
- }
- aiReturn.push( iTest );
- }
-
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
-
- if ( bRedraw === undefined || bRedraw )
- {
- _fnReDraw( oSettings );
- }
- return aiReturn;
- };
-
-
- /**
- * This function will make DataTables recalculate the column sizes, based on the data
- * contained in the table and the sizes applied to the columns (in the DOM, CSS or
- * through the sWidth parameter). This can be useful when the width of the table's
- * parent element changes (for example a window resize).
- * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false
- * } );
- *
- * $(window).bind('resize', function () {
- * oTable.fnAdjustColumnSizing();
- * } );
- * } );
- */
- this.fnAdjustColumnSizing = function ( bRedraw )
- {
- var oSettings = _fnSettingsFromNode(this[DataTable.ext.iApiIndex]);
- _fnAdjustColumnSizing( oSettings );
-
- if ( bRedraw === undefined || bRedraw )
- {
- this.fnDraw( false );
- }
- else if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
- {
- /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
- this.oApi._fnScrollDraw(oSettings);
- }
- };
-
-
- /**
- * Quickly and simply clear a table
- * @param {bool} [bRedraw=true] redraw the table or not
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
- * oTable.fnClearTable();
- * } );
- */
- this.fnClearTable = function( bRedraw )
- {
- /* Find settings from table node */
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- _fnClearTable( oSettings );
-
- if ( bRedraw === undefined || bRedraw )
- {
- _fnDraw( oSettings );
- }
- };
-
-
- /**
- * The exact opposite of 'opening' a row, this function will close any rows which
- * are currently 'open'.
- * @param {node} nTr the table row to 'close'
- * @returns {int} 0 on success, or 1 if failed (can't find the row)
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnClose = function( nTr )
- {
- /* Find settings from table node */
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- for ( var i=0 ; i<oSettings.aoOpenRows.length ; i++ )
- {
- if ( oSettings.aoOpenRows[i].nParent == nTr )
- {
- var nTrParent = oSettings.aoOpenRows[i].nTr.parentNode;
- if ( nTrParent )
- {
- /* Remove it if it is currently on display */
- nTrParent.removeChild( oSettings.aoOpenRows[i].nTr );
- }
- oSettings.aoOpenRows.splice( i, 1 );
- return 0;
- }
- }
- return 1;
- };
-
-
- /**
- * Remove a row for the table
- * @param {mixed} mTarget The index of the row from aoData to be deleted, or
- * the TR element you want to delete
- * @param {function|null} [fnCallBack] Callback function
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @returns {array} The row that was deleted
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately remove the first row
- * oTable.fnDeleteRow( 0 );
- * } );
- */
- this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
- {
- /* Find settings from table node */
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var i, iLen, iAODataIndex;
-
- iAODataIndex = (typeof mTarget === 'object') ?
- _fnNodeToDataIndex(oSettings, mTarget) : mTarget;
-
- /* Return the data array from this row */
- var oData = oSettings.aoData.splice( iAODataIndex, 1 );
-
- /* Update the _DT_RowIndex parameter */
- for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
- {
- if ( oSettings.aoData[i].nTr !== null )
- {
- oSettings.aoData[i].nTr._DT_RowIndex = i;
- }
- }
-
- /* Remove the target row from the search array */
- var iDisplayIndex = $.inArray( iAODataIndex, oSettings.aiDisplay );
- oSettings.asDataSearch.splice( iDisplayIndex, 1 );
-
- /* Delete from the display arrays */
- _fnDeleteIndex( oSettings.aiDisplayMaster, iAODataIndex );
- _fnDeleteIndex( oSettings.aiDisplay, iAODataIndex );
-
- /* If there is a user callback function - call it */
- if ( typeof fnCallBack === "function" )
- {
- fnCallBack.call( this, oSettings, oData );
- }
-
- /* Check for an 'overflow' they case for displaying the table */
- if ( oSettings._iDisplayStart >= oSettings.fnRecordsDisplay() )
- {
- oSettings._iDisplayStart -= oSettings._iDisplayLength;
- if ( oSettings._iDisplayStart < 0 )
- {
- oSettings._iDisplayStart = 0;
- }
- }
-
- if ( bRedraw === undefined || bRedraw )
- {
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
-
- return oData;
- };
-
-
- /**
- * Restore the table to it's original state in the DOM by removing all of DataTables
- * enhancements, alterations to the DOM structure of the table and event listeners.
- * @param {boolean} [bRemove=false] Completely remove the table from the DOM
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * // This example is fairly pointless in reality, but shows how fnDestroy can be used
- * var oTable = $('#example').dataTable();
- * oTable.fnDestroy();
- * } );
- */
- this.fnDestroy = function ( bRemove )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var nOrig = oSettings.nTableWrapper.parentNode;
- var nBody = oSettings.nTBody;
- var i, iLen;
-
- bRemove = (bRemove===undefined) ? false : bRemove;
-
- /* Flag to note that the table is currently being destroyed - no action should be taken */
- oSettings.bDestroying = true;
-
- /* Fire off the destroy callbacks for plug-ins etc */
- _fnCallbackFire( oSettings, "aoDestroyCallback", "destroy", [oSettings] );
-
- /* If the table is not being removed, restore the hidden columns */
- if ( !bRemove )
- {
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- if ( oSettings.aoColumns[i].bVisible === false )
- {
- this.fnSetColumnVis( i, true );
- }
- }
- }
-
- /* Blitz all DT events */
- $(oSettings.nTableWrapper).find('*').andSelf().unbind('.DT');
-
- /* If there is an 'empty' indicator row, remove it */
- $('tbody>tr>td.'+oSettings.oClasses.sRowEmpty, oSettings.nTable).parent().remove();
-
- /* When scrolling we had to break the table up - restore it */
- if ( oSettings.nTable != oSettings.nTHead.parentNode )
- {
- $(oSettings.nTable).children('thead').remove();
- oSettings.nTable.appendChild( oSettings.nTHead );
- }
-
- if ( oSettings.nTFoot && oSettings.nTable != oSettings.nTFoot.parentNode )
- {
- $(oSettings.nTable).children('tfoot').remove();
- oSettings.nTable.appendChild( oSettings.nTFoot );
- }
-
- /* Remove the DataTables generated nodes, events and classes */
- oSettings.nTable.parentNode.removeChild( oSettings.nTable );
- $(oSettings.nTableWrapper).remove();
-
- oSettings.aaSorting = [];
- oSettings.aaSortingFixed = [];
- _fnSortingClasses( oSettings );
-
- $(_fnGetTrNodes( oSettings )).removeClass( oSettings.asStripeClasses.join(' ') );
-
- $('th, td', oSettings.nTHead).removeClass( [
- oSettings.oClasses.sSortable,
- oSettings.oClasses.sSortableAsc,
- oSettings.oClasses.sSortableDesc,
- oSettings.oClasses.sSortableNone ].join(' ')
- );
- if ( oSettings.bJUI )
- {
- $('th span.'+oSettings.oClasses.sSortIcon
- + ', td span.'+oSettings.oClasses.sSortIcon, oSettings.nTHead).remove();
-
- $('th, td', oSettings.nTHead).each( function () {
- var jqWrapper = $('div.'+oSettings.oClasses.sSortJUIWrapper, this);
- var kids = jqWrapper.contents();
- $(this).append( kids );
- jqWrapper.remove();
- } );
- }
-
- /* Add the TR elements back into the table in their original order */
- if ( !bRemove && oSettings.nTableReinsertBefore )
- {
- nOrig.insertBefore( oSettings.nTable, oSettings.nTableReinsertBefore );
- }
- else if ( !bRemove )
- {
- nOrig.appendChild( oSettings.nTable );
- }
-
- for ( i=0, iLen=oSettings.aoData.length ; i<iLen ; i++ )
- {
- if ( oSettings.aoData[i].nTr !== null )
- {
- nBody.appendChild( oSettings.aoData[i].nTr );
- }
- }
-
- /* Restore the width of the original table */
- if ( oSettings.oFeatures.bAutoWidth === true )
- {
- oSettings.nTable.style.width = _fnStringToCss(oSettings.sDestroyWidth);
- }
-
- /* If the were originally stripe classes - then we add them back here. Note
- * this is not fool proof (for example if not all rows had stripe classes - but
- * it's a good effort without getting carried away
- */
- iLen = oSettings.asDestroyStripes.length;
- if (iLen)
- {
- var anRows = $(nBody).children('tr');
- for ( i=0 ; i<iLen ; i++ )
- {
- anRows.filter(':nth-child(' + iLen + 'n + ' + i + ')').addClass( oSettings.asDestroyStripes[i] );
- }
- }
-
- /* Remove the settings object from the settings array */
- for ( i=0, iLen=DataTable.settings.length ; i<iLen ; i++ )
- {
- if ( DataTable.settings[i] == oSettings )
- {
- DataTable.settings.splice( i, 1 );
- }
- }
-
- /* End it all */
- oSettings = null;
- oInit = null;
- };
-
-
- /**
- * Redraw the table
- * @param {bool} [bComplete=true] Re-filter and resort (if enabled) the table before the draw.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
- * oTable.fnDraw();
- * } );
- */
- this.fnDraw = function( bComplete )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- if ( bComplete === false )
- {
- _fnCalculateEnd( oSettings );
- _fnDraw( oSettings );
- }
- else
- {
- _fnReDraw( oSettings );
- }
- };
-
-
- /**
- * Filter the input based on data
- * @param {string} sInput String to filter the table on
- * @param {int|null} [iColumn] Column to limit filtering to
- * @param {bool} [bRegex=false] Treat as regular expression or not
- * @param {bool} [bSmart=true] Perform smart filtering or not
- * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
- * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sometime later - filter...
- * oTable.fnFilter( 'test string' );
- * } );
- */
- this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- if ( !oSettings.oFeatures.bFilter )
- {
- return;
- }
-
- if ( bRegex === undefined || bRegex === null )
- {
- bRegex = false;
- }
-
- if ( bSmart === undefined || bSmart === null )
- {
- bSmart = true;
- }
-
- if ( bShowGlobal === undefined || bShowGlobal === null )
- {
- bShowGlobal = true;
- }
-
- if ( bCaseInsensitive === undefined || bCaseInsensitive === null )
- {
- bCaseInsensitive = true;
- }
-
- if ( iColumn === undefined || iColumn === null )
- {
- /* Global filter */
- _fnFilterComplete( oSettings, {
- "sSearch":sInput+"",
- "bRegex": bRegex,
- "bSmart": bSmart,
- "bCaseInsensitive": bCaseInsensitive
- }, 1 );
-
- if ( bShowGlobal && oSettings.aanFeatures.f )
- {
- var n = oSettings.aanFeatures.f;
- for ( var i=0, iLen=n.length ; i<iLen ; i++ )
- {
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame...
- try {
- if ( n[i]._DT_Input != document.activeElement )
- {
- $(n[i]._DT_Input).val( sInput );
- }
- }
- catch ( e ) {
- $(n[i]._DT_Input).val( sInput );
- }
- }
- }
- }
- else
- {
- /* Single column filter */
- $.extend( oSettings.aoPreSearchCols[ iColumn ], {
- "sSearch": sInput+"",
- "bRegex": bRegex,
- "bSmart": bSmart,
- "bCaseInsensitive": bCaseInsensitive
- } );
- _fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
- }
- };
-
-
- /**
- * Get the data for the whole table, an individual row or an individual cell based on the
- * provided parameters.
- * @param {int|node} [mRow] A TR row node, TD/TH cell node or an integer. If given as
- * a TR node then the data source for the whole row will be returned. If given as a
- * TD/TH cell node then iCol will be automatically calculated and the data for the
- * cell returned. If given as an integer, then this is treated as the aoData internal
- * data index for the row (see fnGetPosition) and the data for that row used.
- * @param {int} [iCol] Optional column index that you want the data of.
- * @returns {array|object|string} If mRow is undefined, then the data for all rows is
- * returned. If mRow is defined, just data for that row, and is iCol is
- * defined, only data for the designated cell is returned.
- * @dtopt API
- *
- * @example
- * // Row data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('tr').click( function () {
- * var data = oTable.fnGetData( this );
- * // ... do something with the array / object of data for the row
- * } );
- * } );
- *
- * @example
- * // Individual cell data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('td').click( function () {
- * var sData = oTable.fnGetData( this );
- * alert( 'The cell clicked on had the value of '+sData );
- * } );
- * } );
- */
- this.fnGetData = function( mRow, iCol )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- if ( mRow !== undefined )
- {
- var iRow = mRow;
- if ( typeof mRow === 'object' )
- {
- var sNode = mRow.nodeName.toLowerCase();
- if (sNode === "tr" )
- {
- iRow = _fnNodeToDataIndex(oSettings, mRow);
- }
- else if ( sNode === "td" )
- {
- iRow = _fnNodeToDataIndex(oSettings, mRow.parentNode);
- iCol = _fnNodeToColumnIndex( oSettings, iRow, mRow );
- }
- }
-
- if ( iCol !== undefined )
- {
- return _fnGetCellData( oSettings, iRow, iCol, '' );
- }
- return (oSettings.aoData[iRow]!==undefined) ?
- oSettings.aoData[iRow]._aData : null;
- }
- return _fnGetDataMaster( oSettings );
- };
-
-
- /**
- * Get an array of the TR nodes that are used in the table's body. Note that you will
- * typically want to use the '$' API method in preference to this as it is more
- * flexible.
- * @param {int} [iRow] Optional row index for the TR element you want
- * @returns {array|node} If iRow is undefined, returns an array of all TR elements
- * in the table's body, or iRow is defined, just the TR element requested.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the nodes from the table
- * var nNodes = oTable.fnGetNodes( );
- * } );
- */
- this.fnGetNodes = function( iRow )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- if ( iRow !== undefined ) {
- return (oSettings.aoData[iRow]!==undefined) ?
- oSettings.aoData[iRow].nTr : null;
- }
- return _fnGetTrNodes( oSettings );
- };
-
-
- /**
- * Get the array indexes of a particular cell from it's DOM element
- * and column index including hidden columns
- * @param {node} nNode this can either be a TR, TD or TH in the table's body
- * @returns {int} If nNode is given as a TR, then a single index is returned, or
- * if given as a cell, an array of [row index, column index (visible),
- * column index (all)] is given.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * $('#example tbody td').click( function () {
- * // Get the position of the current data from the node
- * var aPos = oTable.fnGetPosition( this );
- *
- * // Get the data array for this row
- * var aData = oTable.fnGetData( aPos[0] );
- *
- * // Update the data array and return the value
- * aData[ aPos[1] ] = 'clicked';
- * this.innerHTML = 'clicked';
- * } );
- *
- * // Init DataTables
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnGetPosition = function( nNode )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var sNodeName = nNode.nodeName.toUpperCase();
-
- if ( sNodeName == "TR" )
- {
- return _fnNodeToDataIndex(oSettings, nNode);
- }
- else if ( sNodeName == "TD" || sNodeName == "TH" )
- {
- var iDataIndex = _fnNodeToDataIndex( oSettings, nNode.parentNode );
- var iColumnIndex = _fnNodeToColumnIndex( oSettings, iDataIndex, nNode );
- return [ iDataIndex, _fnColumnIndexToVisible(oSettings, iColumnIndex ), iColumnIndex ];
- }
- return null;
- };
-
-
- /**
- * Check to see if a row is 'open' or not.
- * @param {node} nTr the table row to check
- * @returns {boolean} true if the row is currently open, false otherwise
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnIsOpen = function( nTr )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var aoOpenRows = oSettings.aoOpenRows;
-
- for ( var i=0 ; i<oSettings.aoOpenRows.length ; i++ )
- {
- if ( oSettings.aoOpenRows[i].nParent == nTr )
- {
- return true;
- }
- }
- return false;
- };
-
-
- /**
- * This function will place a new row directly after a row which is currently
- * on display on the page, with the HTML contents that is passed into the
- * function. This can be used, for example, to ask for confirmation that a
- * particular record should be deleted.
- * @param {node} nTr The table row to 'open'
- * @param {string|node|jQuery} mHtml The HTML to put into the row
- * @param {string} sClass Class to give the new TD cell
- * @returns {node} The row opened. Note that if the table row passed in as the
- * first parameter, is not found in the table, this method will silently
- * return.
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnOpen = function( nTr, mHtml, sClass )
- {
- /* Find settings from table node */
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
-
- /* Check that the row given is in the table */
- var nTableRows = _fnGetTrNodes( oSettings );
- if ( $.inArray(nTr, nTableRows) === -1 )
- {
- return;
- }
-
- /* the old open one if there is one */
- this.fnClose( nTr );
-
- var nNewRow = document.createElement("tr");
- var nNewCell = document.createElement("td");
- nNewRow.appendChild( nNewCell );
- nNewCell.className = sClass;
- nNewCell.colSpan = _fnVisbleColumns( oSettings );
-
- if (typeof mHtml === "string")
- {
- nNewCell.innerHTML = mHtml;
- }
- else
- {
- $(nNewCell).html( mHtml );
- }
-
- /* If the nTr isn't on the page at the moment - then we don't insert at the moment */
- var nTrs = $('tr', oSettings.nTBody);
- if ( $.inArray(nTr, nTrs) != -1 )
- {
- $(nNewRow).insertAfter(nTr);
- }
-
- oSettings.aoOpenRows.push( {
- "nTr": nNewRow,
- "nParent": nTr
- } );
-
- return nNewRow;
- };
-
-
- /**
- * Change the pagination - provides the internal logic for pagination in a simple API
- * function. With this function you can have a DataTables table go to the next,
- * previous, first or last pages.
- * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
- * or page number to jump to (integer), note that page 0 is the first page.
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnPageChange( 'next' );
- * } );
- */
- this.fnPageChange = function ( mAction, bRedraw )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- _fnPageChange( oSettings, mAction );
- _fnCalculateEnd( oSettings );
-
- if ( bRedraw === undefined || bRedraw )
- {
- _fnDraw( oSettings );
- }
- };
-
-
- /**
- * Show a particular column
- * @param {int} iCol The column whose display should be changed
- * @param {bool} bShow Show (true) or hide (false) the column
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Hide the second column after initialisation
- * oTable.fnSetColumnVis( 1, false );
- * } );
- */
- this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var i, iLen;
- var aoColumns = oSettings.aoColumns;
- var aoData = oSettings.aoData;
- var nTd, bAppend, iBefore;
-
- /* No point in doing anything if we are requesting what is already true */
- if ( aoColumns[iCol].bVisible == bShow )
- {
- return;
- }
-
- /* Show the column */
- if ( bShow )
- {
- var iInsert = 0;
- for ( i=0 ; i<iCol ; i++ )
- {
- if ( aoColumns[i].bVisible )
- {
- iInsert++;
- }
- }
-
- /* Need to decide if we should use appendChild or insertBefore */
- bAppend = (iInsert >= _fnVisbleColumns( oSettings ));
-
- /* Which coloumn should we be inserting before? */
- if ( !bAppend )
- {
- for ( i=iCol ; i<aoColumns.length ; i++ )
- {
- if ( aoColumns[i].bVisible )
- {
- iBefore = i;
- break;
- }
- }
- }
-
- for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- if ( aoData[i].nTr !== null )
- {
- if ( bAppend )
- {
- aoData[i].nTr.appendChild(
- aoData[i]._anHidden[iCol]
- );
- }
- else
- {
- aoData[i].nTr.insertBefore(
- aoData[i]._anHidden[iCol],
- _fnGetTdNodes( oSettings, i )[iBefore] );
- }
- }
- }
- }
- else
- {
- /* Remove a column from display */
- for ( i=0, iLen=aoData.length ; i<iLen ; i++ )
- {
- if ( aoData[i].nTr !== null )
- {
- nTd = _fnGetTdNodes( oSettings, i )[iCol];
- aoData[i]._anHidden[iCol] = nTd;
- nTd.parentNode.removeChild( nTd );
- }
- }
- }
-
- /* Clear to set the visible flag */
- aoColumns[iCol].bVisible = bShow;
-
- /* Redraw the header and footer based on the new column visibility */
- _fnDrawHead( oSettings, oSettings.aoHeader );
- if ( oSettings.nTFoot )
- {
- _fnDrawHead( oSettings, oSettings.aoFooter );
- }
-
- /* If there are any 'open' rows, then we need to alter the colspan for this col change */
- for ( i=0, iLen=oSettings.aoOpenRows.length ; i<iLen ; i++ )
- {
- oSettings.aoOpenRows[i].nTr.colSpan = _fnVisbleColumns( oSettings );
- }
-
- /* Do a redraw incase anything depending on the table columns needs it
- * (built-in: scrolling)
- */
- if ( bRedraw === undefined || bRedraw )
- {
- _fnAdjustColumnSizing( oSettings );
- _fnDraw( oSettings );
- }
-
- _fnSaveState( oSettings );
- };
-
-
- /**
- * Get the settings for a particular table for external manipulation
- * @returns {object} DataTables settings object. See
- * {@link DataTable.models.oSettings}
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * var oSettings = oTable.fnSettings();
- *
- * // Show an example parameter from the settings
- * alert( oSettings._iDisplayStart );
- * } );
- */
- this.fnSettings = function()
- {
- return _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- };
-
-
- /**
- * Sort the table by a particular column
- * @param {int} iCol the data index to sort on. Note that this will not match the
- * 'display index' if you have hidden data entries
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort immediately with columns 0 and 1
- * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
- * } );
- */
- this.fnSort = function( aaSort )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- oSettings.aaSorting = aaSort;
- _fnSort( oSettings );
- };
-
-
- /**
- * Attach a sort listener to an element for a given column
- * @param {node} nNode the element to attach the sort listener to
- * @param {int} iColumn the column that a click on this node will sort on
- * @param {function} [fnCallback] callback function when sort is run
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort on column 1, when 'sorter' is clicked on
- * oTable.fnSortListener( document.getElementById('sorter'), 1 );
- * } );
- */
- this.fnSortListener = function( nNode, iColumn, fnCallback )
- {
- _fnSortAttachListener( _fnSettingsFromNode( this[DataTable.ext.iApiIndex] ), nNode, iColumn,
- fnCallback );
- };
-
-
- /**
- * Update a table cell or row - this method will accept either a single value to
- * update the cell with, an array of values with one element for each column or
- * an object in the same format as the original data source. The function is
- * self-referencing in order to make the multi column updates easier.
- * @param {object|array|string} mData Data to update the cell/row with
- * @param {node|int} mRow TR element you want to update or the aoData index
- * @param {int} [iColumn] The column to update (not used of mData is an array or object)
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @param {bool} [bAction=true] Perform pre-draw actions or not
- * @returns {int} 0 on success, 1 on error
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
- * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, 0 ); // Row
- * } );
- */
- this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
- {
- var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
- var i, iLen, sDisplay;
- var iRow = (typeof mRow === 'object') ?
- _fnNodeToDataIndex(oSettings, mRow) : mRow;
-
- if ( $.isArray(mData) && iColumn === undefined )
- {
- /* Array update - update the whole row */
- oSettings.aoData[iRow]._aData = mData.slice();
-
- /* Flag to the function that we are recursing */
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
- }
- }
- else if ( $.isPlainObject(mData) && iColumn === undefined )
- {
- /* Object update - update the whole row - assume the developer gets the object right */
- oSettings.aoData[iRow]._aData = $.extend( true, {}, mData );
-
- for ( i=0 ; i<oSettings.aoColumns.length ; i++ )
- {
- this.fnUpdate( _fnGetCellData( oSettings, iRow, i ), iRow, i, false, false );
- }
- }
- else
- {
- /* Individual cell update */
- _fnSetCellData( oSettings, iRow, iColumn, mData );
- sDisplay = _fnGetCellData( oSettings, iRow, iColumn, 'display' );
-
- var oCol = oSettings.aoColumns[iColumn];
- if ( oCol.fnRender !== null )
- {
- sDisplay = _fnRender( oSettings, iRow, iColumn );
- if ( oCol.bUseRendered )
- {
- _fnSetCellData( oSettings, iRow, iColumn, sDisplay );
- }
- }
-
- if ( oSettings.aoData[iRow].nTr !== null )
- {
- /* Do the actual HTML update */
- _fnGetTdNodes( oSettings, iRow )[iColumn].innerHTML = sDisplay;
- }
- }
-
- /* Modify the search index for this row (strictly this is likely not needed, since fnReDraw
- * will rebuild the search array - however, the redraw might be disabled by the user)
- */
- var iDisplayIndex = $.inArray( iRow, oSettings.aiDisplay );
- oSettings.asDataSearch[iDisplayIndex] = _fnBuildSearchRow(
- oSettings,
- _fnGetRowData( oSettings, iRow, 'filter', _fnGetColumns( oSettings, 'bSearchable' ) )
- );
-
- /* Perform pre-draw actions */
- if ( bAction === undefined || bAction )
- {
- _fnAdjustColumnSizing( oSettings );
- }
-
- /* Redraw the table */
- if ( bRedraw === undefined || bRedraw )
- {
- _fnReDraw( oSettings );
- }
- return 0;
- };
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being used, in order
- * to ensure compatibility.
- * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
- * formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to the required
- * version, or false if this version of DataTales is not suitable
- * @method
- * @dtopt API
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * alert( oTable.fnVersionCheck( '1.9.0' ) );
- * } );
- */
- this.fnVersionCheck = DataTable.ext.fnVersionCheck;
-
-
- /*
- * This is really a good bit rubbish this method of exposing the internal methods
- * publicly... - To be fixed in 2.0 using methods on the prototype
- */
-
-
- /**
- * Create a wrapper function for exporting an internal functions to an external API.
- * @param {string} sFunc API function name
- * @returns {function} wrapped function
- * @memberof DataTable#oApi
- */
- function _fnExternApiFunc (sFunc)
- {
- return function() {
- var aArgs = [_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(
- Array.prototype.slice.call(arguments) );
- return DataTable.ext.oApi[sFunc].apply( this, aArgs );
- };
- }
-
-
- /**
- * Reference to internal functions for use by plug-in developers. Note that these
- * methods are references to internal functions and are considered to be private.
- * If you use these methods, be aware that they are liable to change between versions
- * (check the upgrade notes).
- * @namespace
- */
- this.oApi = {
- "_fnExternApiFunc": _fnExternApiFunc,
- "_fnInitialise": _fnInitialise,
- "_fnInitComplete": _fnInitComplete,
- "_fnLanguageCompat": _fnLanguageCompat,
- "_fnAddColumn": _fnAddColumn,
- "_fnColumnOptions": _fnColumnOptions,
- "_fnAddData": _fnAddData,
- "_fnCreateTr": _fnCreateTr,
- "_fnGatherData": _fnGatherData,
- "_fnBuildHead": _fnBuildHead,
- "_fnDrawHead": _fnDrawHead,
- "_fnDraw": _fnDraw,
- "_fnReDraw": _fnReDraw,
- "_fnAjaxUpdate": _fnAjaxUpdate,
- "_fnAjaxParameters": _fnAjaxParameters,
- "_fnAjaxUpdateDraw": _fnAjaxUpdateDraw,
- "_fnServerParams": _fnServerParams,
- "_fnAddOptionsHtml": _fnAddOptionsHtml,
- "_fnFeatureHtmlTable": _fnFeatureHtmlTable,
- "_fnScrollDraw": _fnScrollDraw,
- "_fnAdjustColumnSizing": _fnAdjustColumnSizing,
- "_fnFeatureHtmlFilter": _fnFeatureHtmlFilter,
- "_fnFilterComplete": _fnFilterComplete,
- "_fnFilterCustom": _fnFilterCustom,
- "_fnFilterColumn": _fnFilterColumn,
- "_fnFilter": _fnFilter,
- "_fnBuildSearchArray": _fnBuildSearchArray,
- "_fnBuildSearchRow": _fnBuildSearchRow,
- "_fnFilterCreateSearch": _fnFilterCreateSearch,
- "_fnDataToSearch": _fnDataToSearch,
- "_fnSort": _fnSort,
- "_fnSortAttachListener": _fnSortAttachListener,
- "_fnSortingClasses": _fnSortingClasses,
- "_fnFeatureHtmlPaginate": _fnFeatureHtmlPaginate,
- "_fnPageChange": _fnPageChange,
- "_fnFeatureHtmlInfo": _fnFeatureHtmlInfo,
- "_fnUpdateInfo": _fnUpdateInfo,
- "_fnFeatureHtmlLength": _fnFeatureHtmlLength,
- "_fnFeatureHtmlProcessing": _fnFeatureHtmlProcessing,
- "_fnProcessingDisplay": _fnProcessingDisplay,
- "_fnVisibleToColumnIndex": _fnVisibleToColumnIndex,
- "_fnColumnIndexToVisible": _fnColumnIndexToVisible,
- "_fnNodeToDataIndex": _fnNodeToDataIndex,
- "_fnVisbleColumns": _fnVisbleColumns,
- "_fnCalculateEnd": _fnCalculateEnd,
- "_fnConvertToWidth": _fnConvertToWidth,
- "_fnCalculateColumnWidths": _fnCalculateColumnWidths,
- "_fnScrollingWidthAdjust": _fnScrollingWidthAdjust,
- "_fnGetWidestNode": _fnGetWidestNode,
- "_fnGetMaxLenString": _fnGetMaxLenString,
- "_fnStringToCss": _fnStringToCss,
- "_fnDetectType": _fnDetectType,
- "_fnSettingsFromNode": _fnSettingsFromNode,
- "_fnGetDataMaster": _fnGetDataMaster,
- "_fnGetTrNodes": _fnGetTrNodes,
- "_fnGetTdNodes": _fnGetTdNodes,
- "_fnEscapeRegex": _fnEscapeRegex,
- "_fnDeleteIndex": _fnDeleteIndex,
- "_fnReOrderIndex": _fnReOrderIndex,
- "_fnColumnOrdering": _fnColumnOrdering,
- "_fnLog": _fnLog,
- "_fnClearTable": _fnClearTable,
- "_fnSaveState": _fnSaveState,
- "_fnLoadState": _fnLoadState,
- "_fnCreateCookie": _fnCreateCookie,
- "_fnReadCookie": _fnReadCookie,
- "_fnDetectHeader": _fnDetectHeader,
- "_fnGetUniqueThs": _fnGetUniqueThs,
- "_fnScrollBarWidth": _fnScrollBarWidth,
- "_fnApplyToChildren": _fnApplyToChildren,
- "_fnMap": _fnMap,
- "_fnGetRowData": _fnGetRowData,
- "_fnGetCellData": _fnGetCellData,
- "_fnSetCellData": _fnSetCellData,
- "_fnGetObjectDataFn": _fnGetObjectDataFn,
- "_fnSetObjectDataFn": _fnSetObjectDataFn,
- "_fnApplyColumnDefs": _fnApplyColumnDefs,
- "_fnBindAction": _fnBindAction,
- "_fnExtend": _fnExtend,
- "_fnCallbackReg": _fnCallbackReg,
- "_fnCallbackFire": _fnCallbackFire,
- "_fnJsonString": _fnJsonString,
- "_fnRender": _fnRender,
- "_fnNodeToColumnIndex": _fnNodeToColumnIndex,
- "_fnInfoMacros": _fnInfoMacros,
- "_fnBrowserDetect": _fnBrowserDetect,
- "_fnGetColumns": _fnGetColumns
- };
-
- $.extend( DataTable.ext.oApi, this.oApi );
-
- for ( var sFunc in DataTable.ext.oApi )
- {
- if ( sFunc )
- {
- this[sFunc] = _fnExternApiFunc(sFunc);
- }
- }
-
-
- var _that = this;
- this.each(function() {
- var i=0, iLen, j, jLen, k, kLen;
- var sId = this.getAttribute( 'id' );
- var bInitHandedOff = false;
- var bUsePassedData = false;
-
-
- /* Sanity check */
- if ( this.nodeName.toLowerCase() != 'table' )
- {
- _fnLog( null, 0, "Attempted to initialise DataTables on a node which is not a "+
- "table: "+this.nodeName );
- return;
- }
-
- /* Check to see if we are re-initialising a table */
- for ( i=0, iLen=DataTable.settings.length ; i<iLen ; i++ )
- {
- /* Base check on table node */
- if ( DataTable.settings[i].nTable == this )
- {
- if ( oInit === undefined || oInit.bRetrieve )
- {
- return DataTable.settings[i].oInstance;
- }
- else if ( oInit.bDestroy )
- {
- DataTable.settings[i].oInstance.fnDestroy();
- break;
- }
- else
- {
- _fnLog( DataTable.settings[i], 0, "Cannot reinitialise DataTable.\n\n"+
- "To retrieve the DataTables object for this table, pass no arguments or see "+
- "the docs for bRetrieve and bDestroy" );
- return;
- }
- }
-
- /* If the element we are initialising has the same ID as a table which was previously
- * initialised, but the table nodes don't match (from before) then we destroy the old
- * instance by simply deleting it. This is under the assumption that the table has been
- * destroyed by other methods. Anyone using non-id selectors will need to do this manually
- */
- if ( DataTable.settings[i].sTableId == this.id )
- {
- DataTable.settings.splice( i, 1 );
- break;
- }
- }
-
- /* Ensure the table has an ID - required for accessibility */
- if ( sId === null || sId === "" )
- {
- sId = "DataTables_Table_"+(DataTable.ext._oExternConfig.iNextUnique++);
- this.id = sId;
- }
-
- /* Create the settings object for this table and set some of the default parameters */
- var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
- "nTable": this,
- "oApi": _that.oApi,
- "oInit": oInit,
- "sDestroyWidth": $(this).width(),
- "sInstance": sId,
- "sTableId": sId
- } );
- DataTable.settings.push( oSettings );
-
- // Need to add the instance after the instance after the settings object has been added
- // to the settings array, so we can self reference the table instance if more than one
- oSettings.oInstance = (_that.length===1) ? _that : $(this).dataTable();
-
- /* Setting up the initialisation object */
- if ( !oInit )
- {
- oInit = {};
- }
-
- // Backwards compatibility, before we apply all the defaults
- if ( oInit.oLanguage )
- {
- _fnLanguageCompat( oInit.oLanguage );
- }
-
- oInit = _fnExtend( $.extend(true, {}, DataTable.defaults), oInit );
-
- // Map the initialisation options onto the settings object
- _fnMap( oSettings.oFeatures, oInit, "bPaginate" );
- _fnMap( oSettings.oFeatures, oInit, "bLengthChange" );
- _fnMap( oSettings.oFeatures, oInit, "bFilter" );
- _fnMap( oSettings.oFeatures, oInit, "bSort" );
- _fnMap( oSettings.oFeatures, oInit, "bInfo" );
- _fnMap( oSettings.oFeatures, oInit, "bProcessing" );
- _fnMap( oSettings.oFeatures, oInit, "bAutoWidth" );
- _fnMap( oSettings.oFeatures, oInit, "bSortClasses" );
- _fnMap( oSettings.oFeatures, oInit, "bServerSide" );
- _fnMap( oSettings.oFeatures, oInit, "bDeferRender" );
- _fnMap( oSettings.oScroll, oInit, "sScrollX", "sX" );
- _fnMap( oSettings.oScroll, oInit, "sScrollXInner", "sXInner" );
- _fnMap( oSettings.oScroll, oInit, "sScrollY", "sY" );
- _fnMap( oSettings.oScroll, oInit, "bScrollCollapse", "bCollapse" );
- _fnMap( oSettings.oScroll, oInit, "bScrollInfinite", "bInfinite" );
- _fnMap( oSettings.oScroll, oInit, "iScrollLoadGap", "iLoadGap" );
- _fnMap( oSettings.oScroll, oInit, "bScrollAutoCss", "bAutoCss" );
- _fnMap( oSettings, oInit, "asStripeClasses" );
- _fnMap( oSettings, oInit, "asStripClasses", "asStripeClasses" ); // legacy
- _fnMap( oSettings, oInit, "fnServerData" );
- _fnMap( oSettings, oInit, "fnFormatNumber" );
- _fnMap( oSettings, oInit, "sServerMethod" );
- _fnMap( oSettings, oInit, "aaSorting" );
- _fnMap( oSettings, oInit, "aaSortingFixed" );
- _fnMap( oSettings, oInit, "aLengthMenu" );
- _fnMap( oSettings, oInit, "sPaginationType" );
- _fnMap( oSettings, oInit, "sAjaxSource" );
- _fnMap( oSettings, oInit, "sAjaxDataProp" );
- _fnMap( oSettings, oInit, "iCookieDuration" );
- _fnMap( oSettings, oInit, "sCookiePrefix" );
- _fnMap( oSettings, oInit, "sDom" );
- _fnMap( oSettings, oInit, "bSortCellsTop" );
- _fnMap( oSettings, oInit, "iTabIndex" );
- _fnMap( oSettings, oInit, "oSearch", "oPreviousSearch" );
- _fnMap( oSettings, oInit, "aoSearchCols", "aoPreSearchCols" );
- _fnMap( oSettings, oInit, "iDisplayLength", "_iDisplayLength" );
- _fnMap( oSettings, oInit, "bJQueryUI", "bJUI" );
- _fnMap( oSettings, oInit, "fnCookieCallback" );
- _fnMap( oSettings, oInit, "fnStateLoad" );
- _fnMap( oSettings, oInit, "fnStateSave" );
- _fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
-
- /* Callback functions which are array driven */
- _fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' );
- _fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' );
- _fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
- _fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
-
- if ( oSettings.oFeatures.bServerSide && oSettings.oFeatures.bSort &&
- oSettings.oFeatures.bSortClasses )
- {
- /* Enable sort classes for server-side processing. Safe to do it here, since server-side
- * processing must be enabled by the developer
- */
- _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSortingClasses, 'server_side_sort_classes' );
- }
- else if ( oSettings.oFeatures.bDeferRender )
- {
- _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSortingClasses, 'defer_sort_classes' );
- }
-
- if ( oInit.bJQueryUI )
- {
- /* Use the JUI classes object for display. You could clone the oStdClasses object if
- * you want to have multiple tables with multiple independent classes
- */
- $.extend( oSettings.oClasses, DataTable.ext.oJUIClasses );
-
- if ( oInit.sDom === DataTable.defaults.sDom && DataTable.defaults.sDom === "lfrtip" )
- {
- /* Set the DOM to use a layout suitable for jQuery UI's theming */
- oSettings.sDom = '<"H"lfr>t<"F"ip>';
- }
- }
- else
- {
- $.extend( oSettings.oClasses, DataTable.ext.oStdClasses );
- }
- $(this).addClass( oSettings.oClasses.sTable );
-
- /* Calculate the scroll bar width and cache it for use later on */
- if ( oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "" )
- {
- oSettings.oScroll.iBarWidth = _fnScrollBarWidth();
- }
-
- if ( oSettings.iInitDisplayStart === undefined )
- {
- /* Display start point, taking into account the save saving */
- oSettings.iInitDisplayStart = oInit.iDisplayStart;
- oSettings._iDisplayStart = oInit.iDisplayStart;
- }
-
- /* Must be done after everything which can be overridden by a cookie! */
- if ( oInit.bStateSave )
- {
- oSettings.oFeatures.bStateSave = true;
- _fnLoadState( oSettings, oInit );
- _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
- }
-
- if ( oInit.iDeferLoading !== null )
- {
- oSettings.bDeferLoading = true;
- var tmp = $.isArray( oInit.iDeferLoading );
- oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;
- oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
- }
-
- if ( oInit.aaData !== null )
- {
- bUsePassedData = true;
- }
-
- /* Language definitions */
- if ( oInit.oLanguage.sUrl !== "" )
- {
- /* Get the language definitions from a file - because this Ajax call makes the language
- * get async to the remainder of this function we use bInitHandedOff to indicate that
- * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
- */
- oSettings.oLanguage.sUrl = oInit.oLanguage.sUrl;
- $.getJSON( oSettings.oLanguage.sUrl, null, function( json ) {
- _fnLanguageCompat( json );
- $.extend( true, oSettings.oLanguage, oInit.oLanguage, json );
- _fnInitialise( oSettings );
- } );
- bInitHandedOff = true;
- }
- else
- {
- $.extend( true, oSettings.oLanguage, oInit.oLanguage );
- }
-
-
- /*
- * Stripes
- */
- if ( oInit.asStripeClasses === null )
- {
- oSettings.asStripeClasses =[
- oSettings.oClasses.sStripeOdd,
- oSettings.oClasses.sStripeEven
- ];
- }
-
- /* Remove row stripe classes if they are already on the table row */
- iLen=oSettings.asStripeClasses.length;
- oSettings.asDestroyStripes = [];
- if (iLen)
- {
- var bStripeRemove = false;
- var anRows = $(this).children('tbody').children('tr:lt(' + iLen + ')');
- for ( i=0 ; i<iLen ; i++ )
- {
- if ( anRows.hasClass( oSettings.asStripeClasses[i] ) )
- {
- bStripeRemove = true;
-
- /* Store the classes which we are about to remove so they can be re-added on destroy */
- oSettings.asDestroyStripes.push( oSettings.asStripeClasses[i] );
- }
- }
-
- if ( bStripeRemove )
- {
- anRows.removeClass( oSettings.asStripeClasses.join(' ') );
- }
- }
-
- /*
- * Columns
- * See if we should load columns automatically or use defined ones
- */
- var anThs = [];
- var aoColumnsInit;
- var nThead = this.getElementsByTagName('thead');
- if ( nThead.length !== 0 )
- {
- _fnDetectHeader( oSettings.aoHeader, nThead[0] );
- anThs = _fnGetUniqueThs( oSettings );
- }
-
- /* If not given a column array, generate one with nulls */
- if ( oInit.aoColumns === null )
- {
- aoColumnsInit = [];
- for ( i=0, iLen=anThs.length ; i<iLen ; i++ )
- {
- aoColumnsInit.push( null );
- }
- }
- else
- {
- aoColumnsInit = oInit.aoColumns;
- }
-
- /* Add the columns */
- for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
- {
- /* Short cut - use the loop to check if we have column visibility state to restore */
- if ( oInit.saved_aoColumns !== undefined && oInit.saved_aoColumns.length == iLen )
- {
- if ( aoColumnsInit[i] === null )
- {
- aoColumnsInit[i] = {};
- }
- aoColumnsInit[i].bVisible = oInit.saved_aoColumns[i].bVisible;
- }
-
- _fnAddColumn( oSettings, anThs ? anThs[i] : null );
- }
-
- /* Apply the column definitions */
- _fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {
- _fnColumnOptions( oSettings, iCol, oDef );
- } );
-
-
- /*
- * Sorting
- * Check the aaSorting array
- */
- for ( i=0, iLen=oSettings.aaSorting.length ; i<iLen ; i++ )
- {
- if ( oSettings.aaSorting[i][0] >= oSettings.aoColumns.length )
- {
- oSettings.aaSorting[i][0] = 0;
- }
- var oColumn = oSettings.aoColumns[ oSettings.aaSorting[i][0] ];
-
- /* Add a default sorting index */
- if ( oSettings.aaSorting[i][2] === undefined )
- {
- oSettings.aaSorting[i][2] = 0;
- }
-
- /* If aaSorting is not defined, then we use the first indicator in asSorting */
- if ( oInit.aaSorting === undefined && oSettings.saved_aaSorting === undefined )
- {
- oSettings.aaSorting[i][1] = oColumn.asSorting[0];
- }
-
- /* Set the current sorting index based on aoColumns.asSorting */
- for ( j=0, jLen=oColumn.asSorting.length ; j<jLen ; j++ )
- {
- if ( oSettings.aaSorting[i][1] == oColumn.asSorting[j] )
- {
- oSettings.aaSorting[i][2] = j;
- break;
- }
- }
- }
-
- /* Do a first pass on the sorting classes (allows any size changes to be taken into
- * account, and also will apply sorting disabled classes if disabled
- */
- _fnSortingClasses( oSettings );
-
-
- /*
- * Final init
- * Cache the header, body and footer as required, creating them if needed
- */
-
- /* Browser support detection */
- _fnBrowserDetect( oSettings );
-
- // Work around for Webkit bug 83867 - store the caption-side before removing from doc
- var captions = $(this).children('caption').each( function () {
- this._captionSide = $(this).css('caption-side');
- } );
-
- var thead = $(this).children('thead');
- if ( thead.length === 0 )
- {
- thead = [ document.createElement( 'thead' ) ];
- this.appendChild( thead[0] );
- }
- oSettings.nTHead = thead[0];
-
- var tbody = $(this).children('tbody');
- if ( tbody.length === 0 )
- {
- tbody = [ document.createElement( 'tbody' ) ];
- this.appendChild( tbody[0] );
- }
- oSettings.nTBody = tbody[0];
- oSettings.nTBody.setAttribute( "role", "alert" );
- oSettings.nTBody.setAttribute( "aria-live", "polite" );
- oSettings.nTBody.setAttribute( "aria-relevant", "all" );
-
- var tfoot = $(this).children('tfoot');
- if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
- {
- // If we are a scrolling table, and no footer has been given, then we need to create
- // a tfoot element for the caption element to be appended to
- tfoot = [ document.createElement( 'tfoot' ) ];
- this.appendChild( tfoot[0] );
- }
-
- if ( tfoot.length > 0 )
- {
- oSettings.nTFoot = tfoot[0];
- _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
- }
-
- /* Check if there is data passing into the constructor */
- if ( bUsePassedData )
- {
- for ( i=0 ; i<oInit.aaData.length ; i++ )
- {
- _fnAddData( oSettings, oInit.aaData[ i ] );
- }
- }
- else
- {
- /* Grab the data from the page */
- _fnGatherData( oSettings );
- }
-
- /* Copy the data index array */
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
-
- /* Initialisation complete - table can be drawn */
- oSettings.bInitialised = true;
-
- /* Check if we need to initialise the table (it might not have been handed off to the
- * language processor)
- */
- if ( bInitHandedOff === false )
- {
- _fnInitialise( oSettings );
- }
- } );
- _that = null;
- return this;
- };
-
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being used, in order
- * to ensure compatibility.
- * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
- * formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to the required
- * version, or false if this version of DataTales is not suitable
- * @static
- * @dtopt API-Static
- *
- * @example
- * alert( $.fn.dataTable.fnVersionCheck( '1.9.0' ) );
- */
- DataTable.fnVersionCheck = function( sVersion )
- {
- /* This is cheap, but effective */
- var fnZPad = function (Zpad, count)
- {
- while(Zpad.length < count) {
- Zpad += '0';
- }
- return Zpad;
- };
- var aThis = DataTable.ext.sVersion.split('.');
- var aThat = sVersion.split('.');
- var sThis = '', sThat = '';
-
- for ( var i=0, iLen=aThat.length ; i<iLen ; i++ )
- {
- sThis += fnZPad( aThis[i], 3 );
- sThat += fnZPad( aThat[i], 3 );
- }
-
- return parseInt(sThis, 10) >= parseInt(sThat, 10);
- };
-
-
- /**
- * Check if a TABLE node is a DataTable table already or not.
- * @param {node} nTable The TABLE node to check if it is a DataTable or not (note that other
- * node types can be passed in, but will always return false).
- * @returns {boolean} true the table given is a DataTable, or false otherwise
- * @static
- * @dtopt API-Static
- *
- * @example
- * var ex = document.getElementById('example');
- * if ( ! $.fn.DataTable.fnIsDataTable( ex ) ) {
- * $(ex).dataTable();
- * }
- */
- DataTable.fnIsDataTable = function ( nTable )
- {
- var o = DataTable.settings;
-
- for ( var i=0 ; i<o.length ; i++ )
- {
- if ( o[i].nTable === nTable || o[i].nScrollHead === nTable || o[i].nScrollFoot === nTable )
- {
- return true;
- }
- }
-
- return false;
- };
-
-
- /**
- * Get all DataTable tables that have been initialised - optionally you can select to
- * get only currently visible tables.
- * @param {boolean} [bVisible=false] Flag to indicate if you want all (default) or
- * visible tables only.
- * @returns {array} Array of TABLE nodes (not DataTable instances) which are DataTables
- * @static
- * @dtopt API-Static
- *
- * @example
- * var table = $.fn.dataTable.fnTables(true);
- * if ( table.length > 0 ) {
- * $(table).dataTable().fnAdjustColumnSizing();
- * }
- */
- DataTable.fnTables = function ( bVisible )
- {
- var out = [];
-
- jQuery.each( DataTable.settings, function (i, o) {
- if ( !bVisible || (bVisible === true && $(o.nTable).is(':visible')) )
- {
- out.push( o.nTable );
- }
- } );
-
- return out;
- };
-
-
- /**
- * Version string for plug-ins to check compatibility. Allowed format is
- * a.b.c.d.e where: a:int, b:int, c:int, d:string(dev|beta), e:int. d and
- * e are optional
- * @member
- * @type string
- * @default Version number
- */
- DataTable.version = "1.9.4";
-
- /**
- * Private data store, containing all of the settings objects that are created for the
- * tables on a given page.
- *
- * Note that the <i>DataTable.settings</i> object is aliased to <i>jQuery.fn.dataTableExt</i>
- * through which it may be accessed and manipulated, or <i>jQuery.fn.dataTable.settings</i>.
- * @member
- * @type array
- * @default []
- * @private
- */
- DataTable.settings = [];
-
- /**
- * Object models container, for the various models that DataTables has available
- * to it. These models define the objects that are used to hold the active state
- * and configuration of the table.
- * @namespace
- */
- DataTable.models = {};
-
-
- /**
- * DataTables extension options and plug-ins. This namespace acts as a collection "area"
- * for plug-ins that can be used to extend the default DataTables behaviour - indeed many
- * of the build in methods use this method to provide their own capabilities (sorting methods
- * for example).
- *
- * Note that this namespace is aliased to jQuery.fn.dataTableExt so it can be readily accessed
- * and modified by plug-ins.
- * @namespace
- */
- DataTable.models.ext = {
- /**
- * Plug-in filtering functions - this method of filtering is complimentary to the default
- * type based filtering, and a lot more comprehensive as it allows you complete control
- * over the filtering logic. Each element in this array is a function (parameters
- * described below) that is called for every row in the table, and your logic decides if
- * it should be included in the filtered data set or not.
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
- * <li>{array|object} Data for the row to be processed (same as the original format
- * that was passed in as the data source, or an array from a DOM data source</li>
- * <li>{int} Row index in aoData ({@link DataTable.models.oSettings.aoData}), which can
- * be useful to retrieve the TR element if you need DOM interaction.</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{boolean} Include the row in the filtered result set (true) or not (false)</li>
- * </ul>
- * </il>
- * </ul>
- * @type array
- * @default []
- *
- * @example
- * // The following example shows custom filtering being applied to the fourth column (i.e.
- * // the aData[3] index) based on two input values from the end-user, matching the data in
- * // a certain range.
- * $.fn.dataTableExt.afnFiltering.push(
- * function( oSettings, aData, iDataIndex ) {
- * var iMin = document.getElementById('min').value * 1;
- * var iMax = document.getElementById('max').value * 1;
- * var iVersion = aData[3] == "-" ? 0 : aData[3]*1;
- * if ( iMin == "" && iMax == "" ) {
- * return true;
- * }
- * else if ( iMin == "" && iVersion < iMax ) {
- * return true;
- * }
- * else if ( iMin < iVersion && "" == iMax ) {
- * return true;
- * }
- * else if ( iMin < iVersion && iVersion < iMax ) {
- * return true;
- * }
- * return false;
- * }
- * );
- */
- "afnFiltering": [],
-
-
- /**
- * Plug-in sorting functions - this method of sorting is complimentary to the default type
- * based sorting that DataTables does automatically, allowing much greater control over the
- * the data that is being used to sort a column. This is useful if you want to do sorting
- * based on live data (for example the contents of an 'input' element) rather than just the
- * static string that DataTables knows of. The way these plug-ins work is that you create
- * an array of the values you wish to be sorted for the column in question and then return
- * that array. Which pre-sorting function is run here depends on the sSortDataType parameter
- * that is used for the column (if any). This is the corollary of <i>ofnSearch</i> for sort
- * data.
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
- * <li>{int} Target column index</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{array} Data for the column to be sorted upon</li>
- * </ul>
- * </il>
- * </ul>
- *
- * Note that as of v1.9, it is typically preferable to use <i>mData</i> to prepare data for
- * the different uses that DataTables can put the data to. Specifically <i>mData</i> when
- * used as a function will give you a 'type' (sorting, filtering etc) that you can use to
- * prepare the data as required for the different types. As such, this method is deprecated.
- * @type array
- * @default []
- * @deprecated
- *
- * @example
- * // Updating the cached sorting information with user entered values in HTML input elements
- * jQuery.fn.dataTableExt.afnSortData['dom-text'] = function ( oSettings, iColumn )
- * {
- * var aData = [];
- * $( 'td:eq('+iColumn+') input', oSettings.oApi._fnGetTrNodes(oSettings) ).each( function () {
- * aData.push( this.value );
- * } );
- * return aData;
- * }
- */
- "afnSortData": [],
-
-
- /**
- * Feature plug-ins - This is an array of objects which describe the feature plug-ins that are
- * available to DataTables. These feature plug-ins are accessible through the sDom initialisation
- * option. As such, each feature plug-in must describe a function that is used to initialise
- * itself (fnInit), a character so the feature can be enabled by sDom (cFeature) and the name
- * of the feature (sFeature). Thus the objects attached to this method must provide:
- * <ul>
- * <li>{function} fnInit Initialisation of the plug-in
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{node|null} The element which contains your feature. Note that the return
- * may also be void if your plug-in does not require to inject any DOM elements
- * into DataTables control (sDom) - for example this might be useful when
- * developing a plug-in which allows table control via keyboard entry.</li>
- * </ul>
- * </il>
- * </ul>
- * </li>
- * <li>{character} cFeature Character that will be matched in sDom - case sensitive</li>
- * <li>{string} sFeature Feature name</li>
- * </ul>
- * @type array
- * @default []
- *
- * @example
- * // How TableTools initialises itself.
- * $.fn.dataTableExt.aoFeatures.push( {
- * "fnInit": function( oSettings ) {
- * return new TableTools( { "oDTSettings": oSettings } );
- * },
- * "cFeature": "T",
- * "sFeature": "TableTools"
- * } );
- */
- "aoFeatures": [],
-
-
- /**
- * Type detection plug-in functions - DataTables utilises types to define how sorting and
- * filtering behave, and types can be either be defined by the developer (sType for the
- * column) or they can be automatically detected by the methods in this array. The functions
- * defined in the array are quite simple, taking a single parameter (the data to analyse)
- * and returning the type if it is a known type, or null otherwise.
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{*} Data from the column cell to be analysed</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{string|null} Data type detected, or null if unknown (and thus pass it
- * on to the other type detection functions.</li>
- * </ul>
- * </il>
- * </ul>
- * @type array
- * @default []
- *
- * @example
- * // Currency type detection plug-in:
- * jQuery.fn.dataTableExt.aTypes.push(
- * function ( sData ) {
- * var sValidChars = "0123456789.-";
- * var Char;
- *
- * // Check the numeric part
- * for ( i=1 ; i<sData.length ; i++ ) {
- * Char = sData.charAt(i);
- * if (sValidChars.indexOf(Char) == -1) {
- * return null;
- * }
- * }
- *
- * // Check prefixed by currency
- * if ( sData.charAt(0) == '$' || sData.charAt(0) == '&pound;' ) {
- * return 'currency';
- * }
- * return null;
- * }
- * );
- */
- "aTypes": [],
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being used,
- * in order to ensure compatibility.
- * @type function
- * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note
- * that the formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to the
- * required version, or false if this version of DataTales is not suitable
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * alert( oTable.fnVersionCheck( '1.9.0' ) );
- * } );
- */
- "fnVersionCheck": DataTable.fnVersionCheck,
-
-
- /**
- * Index for what 'this' index API functions should use
- * @type int
- * @default 0
- */
- "iApiIndex": 0,
-
-
- /**
- * Pre-processing of filtering data plug-ins - When you assign the sType for a column
- * (or have it automatically detected for you by DataTables or a type detection plug-in),
- * you will typically be using this for custom sorting, but it can also be used to provide
- * custom filtering by allowing you to pre-processing the data and returning the data in
- * the format that should be filtered upon. This is done by adding functions this object
- * with a parameter name which matches the sType for that target column. This is the
- * corollary of <i>afnSortData</i> for filtering data.
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{*} Data from the column cell to be prepared for filtering</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{string|null} Formatted string that will be used for the filtering.</li>
- * </ul>
- * </il>
- * </ul>
- *
- * Note that as of v1.9, it is typically preferable to use <i>mData</i> to prepare data for
- * the different uses that DataTables can put the data to. Specifically <i>mData</i> when
- * used as a function will give you a 'type' (sorting, filtering etc) that you can use to
- * prepare the data as required for the different types. As such, this method is deprecated.
- * @type object
- * @default {}
- * @deprecated
- *
- * @example
- * $.fn.dataTableExt.ofnSearch['title-numeric'] = function ( sData ) {
- * return sData.replace(/\n/g," ").replace( /<.*?>/g, "" );
- * }
- */
- "ofnSearch": {},
-
-
- /**
- * Container for all private functions in DataTables so they can be exposed externally
- * @type object
- * @default {}
- */
- "oApi": {},
-
-
- /**
- * Storage for the various classes that DataTables uses
- * @type object
- * @default {}
- */
- "oStdClasses": {},
-
-
- /**
- * Storage for the various classes that DataTables uses - jQuery UI suitable
- * @type object
- * @default {}
- */
- "oJUIClasses": {},
-
-
- /**
- * Pagination plug-in methods - The style and controls of the pagination can significantly
- * impact on how the end user interacts with the data in your table, and DataTables allows
- * the addition of pagination controls by extending this object, which can then be enabled
- * through the <i>sPaginationType</i> initialisation parameter. Each pagination type that
- * is added is an object (the property name of which is what <i>sPaginationType</i> refers
- * to) that has two properties, both methods that are used by DataTables to update the
- * control's state.
- * <ul>
- * <li>
- * fnInit - Initialisation of the paging controls. Called only during initialisation
- * of the table. It is expected that this function will add the required DOM elements
- * to the page for the paging controls to work. The element pointer
- * 'oSettings.aanFeatures.p' array is provided by DataTables to contain the paging
- * controls (note that this is a 2D array to allow for multiple instances of each
- * DataTables DOM element). It is suggested that you add the controls to this element
- * as children
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
- * <li>{node} Container into which the pagination controls must be inserted</li>
- * <li>{function} Draw callback function - whenever the controls cause a page
- * change, this method must be called to redraw the table.</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>No return required</li>
- * </ul>
- * </il>
- * </ul>
- * </il>
- * <li>
- * fnInit - This function is called whenever the paging status of the table changes and is
- * typically used to update classes and/or text of the paging controls to reflex the new
- * status.
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{object} DataTables settings object: see {@link DataTable.models.oSettings}.</li>
- * <li>{function} Draw callback function - in case you need to redraw the table again
- * or attach new event listeners</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>No return required</li>
- * </ul>
- * </il>
- * </ul>
- * </il>
- * </ul>
- * @type object
- * @default {}
- *
- * @example
- * $.fn.dataTableExt.oPagination.four_button = {
- * "fnInit": function ( oSettings, nPaging, fnCallbackDraw ) {
- * nFirst = document.createElement( 'span' );
- * nPrevious = document.createElement( 'span' );
- * nNext = document.createElement( 'span' );
- * nLast = document.createElement( 'span' );
- *
- * nFirst.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sFirst ) );
- * nPrevious.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sPrevious ) );
- * nNext.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sNext ) );
- * nLast.appendChild( document.createTextNode( oSettings.oLanguage.oPaginate.sLast ) );
- *
- * nFirst.className = "paginate_button first";
- * nPrevious.className = "paginate_button previous";
- * nNext.className="paginate_button next";
- * nLast.className = "paginate_button last";
- *
- * nPaging.appendChild( nFirst );
- * nPaging.appendChild( nPrevious );
- * nPaging.appendChild( nNext );
- * nPaging.appendChild( nLast );
- *
- * $(nFirst).click( function () {
- * oSettings.oApi._fnPageChange( oSettings, "first" );
- * fnCallbackDraw( oSettings );
- * } );
- *
- * $(nPrevious).click( function() {
- * oSettings.oApi._fnPageChange( oSettings, "previous" );
- * fnCallbackDraw( oSettings );
- * } );
- *
- * $(nNext).click( function() {
- * oSettings.oApi._fnPageChange( oSettings, "next" );
- * fnCallbackDraw( oSettings );
- * } );
- *
- * $(nLast).click( function() {
- * oSettings.oApi._fnPageChange( oSettings, "last" );
- * fnCallbackDraw( oSettings );
- * } );
- *
- * $(nFirst).bind( 'selectstart', function () { return false; } );
- * $(nPrevious).bind( 'selectstart', function () { return false; } );
- * $(nNext).bind( 'selectstart', function () { return false; } );
- * $(nLast).bind( 'selectstart', function () { return false; } );
- * },
- *
- * "fnUpdate": function ( oSettings, fnCallbackDraw ) {
- * if ( !oSettings.aanFeatures.p ) {
- * return;
- * }
- *
- * // Loop over each instance of the pager
- * var an = oSettings.aanFeatures.p;
- * for ( var i=0, iLen=an.length ; i<iLen ; i++ ) {
- * var buttons = an[i].getElementsByTagName('span');
- * if ( oSettings._iDisplayStart === 0 ) {
- * buttons[0].className = "paginate_disabled_previous";
- * buttons[1].className = "paginate_disabled_previous";
- * }
- * else {
- * buttons[0].className = "paginate_enabled_previous";
- * buttons[1].className = "paginate_enabled_previous";
- * }
- *
- * if ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) {
- * buttons[2].className = "paginate_disabled_next";
- * buttons[3].className = "paginate_disabled_next";
- * }
- * else {
- * buttons[2].className = "paginate_enabled_next";
- * buttons[3].className = "paginate_enabled_next";
- * }
- * }
- * }
- * };
- */
- "oPagination": {},
-
-
- /**
- * Sorting plug-in methods - Sorting in DataTables is based on the detected type of the
- * data column (you can add your own type detection functions, or override automatic
- * detection using sType). With this specific type given to the column, DataTables will
- * apply the required sort from the functions in the object. Each sort type must provide
- * two mandatory methods, one each for ascending and descending sorting, and can optionally
- * provide a pre-formatting method that will help speed up sorting by allowing DataTables
- * to pre-format the sort data only once (rather than every time the actual sort functions
- * are run). The two sorting functions are typical Javascript sort methods:
- * <ul>
- * <li>
- * Function input parameters:
- * <ul>
- * <li>{*} Data to compare to the second parameter</li>
- * <li>{*} Data to compare to the first parameter</li>
- * </ul>
- * </li>
- * <li>
- * Function return:
- * <ul>
- * <li>{int} Sorting match: <0 if first parameter should be sorted lower than
- * the second parameter, ===0 if the two parameters are equal and >0 if
- * the first parameter should be sorted height than the second parameter.</li>
- * </ul>
- * </il>
- * </ul>
- * @type object
- * @default {}
- *
- * @example
- * // Case-sensitive string sorting, with no pre-formatting method
- * $.extend( $.fn.dataTableExt.oSort, {
- * "string-case-asc": function(x,y) {
- * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- * },
- * "string-case-desc": function(x,y) {
- * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- * }
- * } );
- *
- * @example
- * // Case-insensitive string sorting, with pre-formatting
- * $.extend( $.fn.dataTableExt.oSort, {
- * "string-pre": function(x) {
- * return x.toLowerCase();
- * },
- * "string-asc": function(x,y) {
- * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- * },
- * "string-desc": function(x,y) {
- * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- * }
- * } );
- */
- "oSort": {},
-
-
- /**
- * Version string for plug-ins to check compatibility. Allowed format is
- * a.b.c.d.e where: a:int, b:int, c:int, d:string(dev|beta), e:int. d and
- * e are optional
- * @type string
- * @default Version number
- */
- "sVersion": DataTable.version,
-
-
- /**
- * How should DataTables report an error. Can take the value 'alert' or 'throw'
- * @type string
- * @default alert
- */
- "sErrMode": "alert",
-
-
- /**
- * Store information for DataTables to access globally about other instances
- * @namespace
- * @private
- */
- "_oExternConfig": {
- /* int:iNextUnique - next unique number for an instance */
- "iNextUnique": 0
- }
- };
-
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * search information for the global filter and individual column filters.
- * @namespace
- */
- DataTable.models.oSearch = {
- /**
- * Flag to indicate if the filtering should be case insensitive or not
- * @type boolean
- * @default true
- */
- "bCaseInsensitive": true,
-
- /**
- * Applied search term
- * @type string
- * @default <i>Empty string</i>
- */
- "sSearch": "",
-
- /**
- * Flag to indicate if the search term should be interpreted as a
- * regular expression (true) or not (false) and therefore and special
- * regex characters escaped.
- * @type boolean
- * @default false
- */
- "bRegex": false,
-
- /**
- * Flag to indicate if DataTables is to use its smart filtering or not.
- * @type boolean
- * @default true
- */
- "bSmart": true
- };
-
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * each individual row. This is the object format used for the settings
- * aoData array.
- * @namespace
- */
- DataTable.models.oRow = {
- /**
- * TR element for the row
- * @type node
- * @default null
- */
- "nTr": null,
-
- /**
- * Data object from the original data source for the row. This is either
- * an array if using the traditional form of DataTables, or an object if
- * using mData options. The exact type will depend on the passed in
- * data from the data source, or will be an array if using DOM a data
- * source.
- * @type array|object
- * @default []
- */
- "_aData": [],
-
- /**
- * Sorting data cache - this array is ostensibly the same length as the
- * number of columns (although each index is generated only as it is
- * needed), and holds the data that is used for sorting each column in the
- * row. We do this cache generation at the start of the sort in order that
- * the formatting of the sort data need be done only once for each cell
- * per sort. This array should not be read from or written to by anything
- * other than the master sorting methods.
- * @type array
- * @default []
- * @private
- */
- "_aSortData": [],
-
- /**
- * Array of TD elements that are cached for hidden rows, so they can be
- * reinserted into the table if a column is made visible again (or to act
- * as a store if a column is made hidden). Only hidden columns have a
- * reference in the array. For non-hidden columns the value is either
- * undefined or null.
- * @type array nodes
- * @default []
- * @private
- */
- "_anHidden": [],
-
- /**
- * Cache of the class name that DataTables has applied to the row, so we
- * can quickly look at this variable rather than needing to do a DOM check
- * on className for the nTr property.
- * @type string
- * @default <i>Empty string</i>
- * @private
- */
- "_sRowStripe": ""
- };
-
-
-
- /**
- * Template object for the column information object in DataTables. This object
- * is held in the settings aoColumns array and contains all the information that
- * DataTables needs about each individual column.
- *
- * Note that this object is related to {@link DataTable.defaults.columns}
- * but this one is the internal data store for DataTables's cache of columns.
- * It should NOT be manipulated outside of DataTables. Any configuration should
- * be done through the initialisation options.
- * @namespace
- */
- DataTable.models.oColumn = {
- /**
- * A list of the columns that sorting should occur on when this column
- * is sorted. That this property is an array allows multi-column sorting
- * to be defined for a column (for example first name / last name columns
- * would benefit from this). The values are integers pointing to the
- * columns to be sorted on (typically it will be a single integer pointing
- * at itself, but that doesn't need to be the case).
- * @type array
- */
- "aDataSort": null,
-
- /**
- * Define the sorting directions that are applied to the column, in sequence
- * as the column is repeatedly sorted upon - i.e. the first value is used
- * as the sorting direction when the column if first sorted (clicked on).
- * Sort it again (click again) and it will move on to the next index.
- * Repeat until loop.
- * @type array
- */
- "asSorting": null,
-
- /**
- * Flag to indicate if the column is searchable, and thus should be included
- * in the filtering or not.
- * @type boolean
- */
- "bSearchable": null,
-
- /**
- * Flag to indicate if the column is sortable or not.
- * @type boolean
- */
- "bSortable": null,
-
- /**
- * <code>Deprecated</code> When using fnRender, you have two options for what
- * to do with the data, and this property serves as the switch. Firstly, you
- * can have the sorting and filtering use the rendered value (true - default),
- * or you can have the sorting and filtering us the original value (false).
- *
- * Please note that this option has now been deprecated and will be removed
- * in the next version of DataTables. Please use mRender / mData rather than
- * fnRender.
- * @type boolean
- * @deprecated
- */
- "bUseRendered": null,
-
- /**
- * Flag to indicate if the column is currently visible in the table or not
- * @type boolean
- */
- "bVisible": null,
-
- /**
- * Flag to indicate to the type detection method if the automatic type
- * detection should be used, or if a column type (sType) has been specified
- * @type boolean
- * @default true
- * @private
- */
- "_bAutoType": true,
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} nTd The TD node that has been created
- * @param {*} sData The Data for the cell
- * @param {array|object} oData The data for the whole row
- * @param {int} iRow The row index for the aoData data store
- * @default null
- */
- "fnCreatedCell": null,
-
- /**
- * Function to get data from a cell in a column. You should <b>never</b>
- * access data directly through _aData internally in DataTables - always use
- * the method attached to this property. It allows mData to function as
- * required. This function is automatically assigned by the column
- * initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {string} sSpecific The specific data type you want to get -
- * 'display', 'type' 'filter' 'sort'
- * @returns {*} The data for the cell from the given row's data
- * @default null
- */
- "fnGetData": null,
-
- /**
- * <code>Deprecated</code> Custom display function that will be called for the
- * display of each cell in this column.
- *
- * Please note that this option has now been deprecated and will be removed
- * in the next version of DataTables. Please use mRender / mData rather than
- * fnRender.
- * @type function
- * @param {object} o Object with the following parameters:
- * @param {int} o.iDataRow The row in aoData
- * @param {int} o.iDataColumn The column in question
- * @param {array} o.aData The data for the row in question
- * @param {object} o.oSettings The settings object for this DataTables instance
- * @returns {string} The string you which to use in the display
- * @default null
- * @deprecated
- */
- "fnRender": null,
-
- /**
- * Function to set data for a cell in the column. You should <b>never</b>
- * set the data directly to _aData internally in DataTables - always use
- * this method. It allows mData to function as required. This function
- * is automatically assigned by the column initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {*} sValue Value to set
- * @default null
- */
- "fnSetData": null,
-
- /**
- * Property to read the value for the cells in the column from the data
- * source array / object. If null, then the default content is used, if a
- * function is given then the return from the function is used.
- * @type function|int|string|null
- * @default null
- */
- "mData": null,
-
- /**
- * Partner property to mData which is used (only when defined) to get
- * the data - i.e. it is basically the same as mData, but without the
- * 'set' option, and also the data fed to it is the result from mData.
- * This is the rendering method to match the data method of mData.
- * @type function|int|string|null
- * @default null
- */
- "mRender": null,
-
- /**
- * Unique header TH/TD element for this column - this is what the sorting
- * listener is attached to (if sorting is enabled.)
- * @type node
- * @default null
- */
- "nTh": null,
-
- /**
- * Unique footer TH/TD element for this column (if there is one). Not used
- * in DataTables as such, but can be used for plug-ins to reference the
- * footer for each column.
- * @type node
- * @default null
- */
- "nTf": null,
-
- /**
- * The class to apply to all TD elements in the table's TBODY for the column
- * @type string
- * @default null
- */
- "sClass": null,
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * @type string
- */
- "sContentPadding": null,
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because mData
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- */
- "sDefaultContent": null,
-
- /**
- * Name for the column, allowing reference to the column by name as well as
- * by index (needs a lookup to work by name).
- * @type string
- */
- "sName": null,
-
- /**
- * Custom sorting data type - defines which of the available plug-ins in
- * afnSortData the custom sorting will use - if any is defined.
- * @type string
- * @default std
- */
- "sSortDataType": 'std',
-
- /**
- * Class to be applied to the header element when sorting on this column
- * @type string
- * @default null
- */
- "sSortingClass": null,
-
- /**
- * Class to be applied to the header element when sorting on this column -
- * when jQuery UI theming is used.
- * @type string
- * @default null
- */
- "sSortingClassJUI": null,
-
- /**
- * Title of the column - what is seen in the TH element (nTh).
- * @type string
- */
- "sTitle": null,
-
- /**
- * Column sorting and filtering type
- * @type string
- * @default null
- */
- "sType": null,
-
- /**
- * Width of the column
- * @type string
- * @default null
- */
- "sWidth": null,
-
- /**
- * Width of the column when it was first "encountered"
- * @type string
- * @default null
- */
- "sWidthOrig": null
- };
-
-
-
- /**
- * Initialisation options that can be given to DataTables at initialisation
- * time.
- * @namespace
- */
- DataTable.defaults = {
- /**
- * An array of data to use for the table, passed in at initialisation which
- * will be used in preference to any data which is already in the DOM. This is
- * particularly useful for constructing tables purely in Javascript, for
- * example with a custom Ajax call.
- * @type array
- * @default null
- * @dtopt Option
- *
- * @example
- * // Using a 2D array data source
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "aaData": [
- * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
- * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
- * ],
- * "aoColumns": [
- * { "sTitle": "Engine" },
- * { "sTitle": "Browser" },
- * { "sTitle": "Platform" },
- * { "sTitle": "Version" },
- * { "sTitle": "Grade" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using an array of objects as a data source (mData)
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "aaData": [
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 4.0",
- * "platform": "Win 95+",
- * "version": 4,
- * "grade": "X"
- * },
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 5.0",
- * "platform": "Win 95+",
- * "version": 5,
- * "grade": "C"
- * }
- * ],
- * "aoColumns": [
- * { "sTitle": "Engine", "mData": "engine" },
- * { "sTitle": "Browser", "mData": "browser" },
- * { "sTitle": "Platform", "mData": "platform" },
- * { "sTitle": "Version", "mData": "version" },
- * { "sTitle": "Grade", "mData": "grade" }
- * ]
- * } );
- * } );
- */
- "aaData": null,
-
-
- /**
- * If sorting is enabled, then DataTables will perform a first pass sort on
- * initialisation. You can define which column(s) the sort is performed upon,
- * and the sorting direction, with this variable. The aaSorting array should
- * contain an array for each column to be sorted initially containing the
- * column's index and a direction string ('asc' or 'desc').
- * @type array
- * @default [[0,'asc']]
- * @dtopt Option
- *
- * @example
- * // Sort by 3rd column first, and then 4th column
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aaSorting": [[2,'asc'], [3,'desc']]
- * } );
- * } );
- *
- * // No initial sorting
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aaSorting": []
- * } );
- * } );
- */
- "aaSorting": [[0,'asc']],
-
-
- /**
- * This parameter is basically identical to the aaSorting parameter, but
- * cannot be overridden by user interaction with the table. What this means
- * is that you could have a column (visible or hidden) which the sorting will
- * always be forced on first - any sorting after that (from the user) will
- * then be performed as required. This can be useful for grouping rows
- * together.
- * @type array
- * @default null
- * @dtopt Option
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aaSortingFixed": [[0,'asc']]
- * } );
- * } )
- */
- "aaSortingFixed": null,
-
-
- /**
- * This parameter allows you to readily specify the entries in the length drop
- * down menu that DataTables shows when pagination is enabled. It can be
- * either a 1D array of options which will be used for both the displayed
- * option and the value, or a 2D array which will use the array in the first
- * position as the value, and the array in the second position as the
- * displayed options (useful for language strings such as 'All').
- * @type array
- * @default [ 10, 25, 50, 100 ]
- * @dtopt Option
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
- * } );
- * } );
- *
- * @example
- * // Setting the default display length as well as length menu
- * // This is likely to be wanted if you remove the '10' option which
- * // is the iDisplayLength default.
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "iDisplayLength": 25,
- * "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]]
- * } );
- * } );
- */
- "aLengthMenu": [ 10, 25, 50, 100 ],
-
-
- /**
- * The aoColumns option in the initialisation parameter allows you to define
- * details about the way individual columns behave. For a full list of
- * column options that can be set, please see
- * {@link DataTable.defaults.columns}. Note that if you use aoColumns to
- * define your columns, you must have an entry in the array for every single
- * column that you have in your table (these can be null if you don't which
- * to specify any options).
- * @member
- */
- "aoColumns": null,
-
- /**
- * Very similar to aoColumns, aoColumnDefs allows you to target a specific
- * column, multiple columns, or all columns, using the aTargets property of
- * each object in the array. This allows great flexibility when creating
- * tables, as the aoColumnDefs arrays can be of any length, targeting the
- * columns you specifically want. aoColumnDefs may use any of the column
- * options available: {@link DataTable.defaults.columns}, but it _must_
- * have aTargets defined in each object in the array. Values in the aTargets
- * array may be:
- * <ul>
- * <li>a string - class name will be matched on the TH for the column</li>
- * <li>0 or a positive integer - column index counting from the left</li>
- * <li>a negative integer - column index counting from the right</li>
- * <li>the string "_all" - all columns (i.e. assign a default)</li>
- * </ul>
- * @member
- */
- "aoColumnDefs": null,
-
-
- /**
- * Basically the same as oSearch, this parameter defines the individual column
- * filtering state at initialisation time. The array must be of the same size
- * as the number of columns, and each element be an object with the parameters
- * "sSearch" and "bEscapeRegex" (the latter is optional). 'null' is also
- * accepted and the default will be used.
- * @type array
- * @default []
- * @dtopt Option
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoSearchCols": [
- * null,
- * { "sSearch": "My filter" },
- * null,
- * { "sSearch": "^[0-9]", "bEscapeRegex": false }
- * ]
- * } );
- * } )
- */
- "aoSearchCols": [],
-
-
- /**
- * An array of CSS classes that should be applied to displayed rows. This
- * array may be of any length, and DataTables will apply each class
- * sequentially, looping when required.
- * @type array
- * @default null <i>Will take the values determined by the oClasses.sStripe*
- * options</i>
- * @dtopt Option
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "asStripeClasses": [ 'strip1', 'strip2', 'strip3' ]
- * } );
- * } )
- */
- "asStripeClasses": null,
-
-
- /**
- * Enable or disable automatic column width calculation. This can be disabled
- * as an optimisation (it takes some time to calculate the widths) if the
- * tables widths are passed in using aoColumns.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bAutoWidth": false
- * } );
- * } );
- */
- "bAutoWidth": true,
-
-
- /**
- * Deferred rendering can provide DataTables with a huge speed boost when you
- * are using an Ajax or JS data source for the table. This option, when set to
- * true, will cause DataTables to defer the creation of the table elements for
- * each row until they are needed for a draw - saving a significant amount of
- * time.
- * @type boolean
- * @default false
- * @dtopt Features
- *
- * @example
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "sAjaxSource": "sources/arrays.txt",
- * "bDeferRender": true
- * } );
- * } );
- */
- "bDeferRender": false,
-
-
- /**
- * Replace a DataTable which matches the given selector and replace it with
- * one which has the properties of the new initialisation object passed. If no
- * table matches the selector, then the new DataTable will be constructed as
- * per normal.
- * @type boolean
- * @default false
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false
- * } );
- *
- * // Some time later....
- * $('#example').dataTable( {
- * "bFilter": false,
- * "bDestroy": true
- * } );
- * } );
- */
- "bDestroy": false,
-
-
- /**
- * Enable or disable filtering of data. Filtering in DataTables is "smart" in
- * that it allows the end user to input multiple words (space separated) and
- * will match a row containing those words, even if not in the order that was
- * specified (this allow matching across multiple columns). Note that if you
- * wish to use filtering in DataTables this must remain 'true' - to remove the
- * default filtering input box and retain filtering abilities, please use
- * {@link DataTable.defaults.sDom}.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bFilter": false
- * } );
- * } );
- */
- "bFilter": true,
-
-
- /**
- * Enable or disable the table information display. This shows information
- * about the data that is currently visible on the page, including information
- * about filtered data if that action is being performed.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bInfo": false
- * } );
- * } );
- */
- "bInfo": true,
-
-
- /**
- * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
- * slightly different and additional mark-up from what DataTables has
- * traditionally used).
- * @type boolean
- * @default false
- * @dtopt Features
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bJQueryUI": true
- * } );
- * } );
- */
- "bJQueryUI": false,
-
-
- /**
- * Allows the end user to select the size of a formatted page from a select
- * menu (sizes are 10, 25, 50 and 100). Requires pagination (bPaginate).
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bLengthChange": false
- * } );
- * } );
- */
- "bLengthChange": true,
-
-
- /**
- * Enable or disable pagination.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bPaginate": false
- * } );
- * } );
- */
- "bPaginate": true,
-
-
- /**
- * Enable or disable the display of a 'processing' indicator when the table is
- * being processed (e.g. a sort). This is particularly useful for tables with
- * large amounts of data where it can take a noticeable amount of time to sort
- * the entries.
- * @type boolean
- * @default false
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bProcessing": true
- * } );
- * } );
- */
- "bProcessing": false,
-
-
- /**
- * Retrieve the DataTables object for the given selector. Note that if the
- * table has already been initialised, this parameter will cause DataTables
- * to simply return the object that has already been set up - it will not take
- * account of any changes you might have made to the initialisation object
- * passed to DataTables (setting this parameter to true is an acknowledgement
- * that you understand this). bDestroy can be used to reinitialise a table if
- * you need.
- * @type boolean
- * @default false
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * initTable();
- * tableActions();
- * } );
- *
- * function initTable ()
- * {
- * return $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false,
- * "bRetrieve": true
- * } );
- * }
- *
- * function tableActions ()
- * {
- * var oTable = initTable();
- * // perform API operations with oTable
- * }
- */
- "bRetrieve": false,
-
-
- /**
- * Indicate if DataTables should be allowed to set the padding / margin
- * etc for the scrolling header elements or not. Typically you will want
- * this.
- * @type boolean
- * @default true
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bScrollAutoCss": false,
- * "sScrollY": "200px"
- * } );
- * } );
- */
- "bScrollAutoCss": true,
-
-
- /**
- * When vertical (y) scrolling is enabled, DataTables will force the height of
- * the table's viewport to the given height at all times (useful for layout).
- * However, this can look odd when filtering data down to a small data set,
- * and the footer is left "floating" further down. This parameter (when
- * enabled) will cause DataTables to collapse the table's viewport down when
- * the result set will fit within the given Y height.
- * @type boolean
- * @default false
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sScrollY": "200",
- * "bScrollCollapse": true
- * } );
- * } );
- */
- "bScrollCollapse": false,
-
-
- /**
- * Enable infinite scrolling for DataTables (to be used in combination with
- * sScrollY). Infinite scrolling means that DataTables will continually load
- * data as a user scrolls through a table, which is very useful for large
- * dataset. This cannot be used with pagination, which is automatically
- * disabled. Note - the Scroller extra for DataTables is recommended in
- * in preference to this option.
- * @type boolean
- * @default false
- * @dtopt Features
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bScrollInfinite": true,
- * "bScrollCollapse": true,
- * "sScrollY": "200px"
- * } );
- * } );
- */
- "bScrollInfinite": false,
-
-
- /**
- * Configure DataTables to use server-side processing. Note that the
- * sAjaxSource parameter must also be given in order to give DataTables a
- * source to obtain the required data for each draw.
- * @type boolean
- * @default false
- * @dtopt Features
- * @dtopt Server-side
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bServerSide": true,
- * "sAjaxSource": "xhr.php"
- * } );
- * } );
- */
- "bServerSide": false,
-
-
- /**
- * Enable or disable sorting of columns. Sorting of individual columns can be
- * disabled by the "bSortable" option for each column.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bSort": false
- * } );
- * } );
- */
- "bSort": true,
-
-
- /**
- * Allows control over whether DataTables should use the top (true) unique
- * cell that is found for a single column, or the bottom (false - default).
- * This is useful when using complex headers.
- * @type boolean
- * @default false
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bSortCellsTop": true
- * } );
- * } );
- */
- "bSortCellsTop": false,
-
-
- /**
- * Enable or disable the addition of the classes 'sorting_1', 'sorting_2' and
- * 'sorting_3' to the columns which are currently being sorted on. This is
- * presented as a feature switch as it can increase processing time (while
- * classes are removed and added) so for large data sets you might want to
- * turn this off.
- * @type boolean
- * @default true
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bSortClasses": false
- * } );
- * } );
- */
- "bSortClasses": true,
-
-
- /**
- * Enable or disable state saving. When enabled a cookie will be used to save
- * table display information such as pagination information, display length,
- * filtering and sorting. As such when the end user reloads the page the
- * display display will match what thy had previously set up.
- * @type boolean
- * @default false
- * @dtopt Features
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "bStateSave": true
- * } );
- * } );
- */
- "bStateSave": false,
-
-
- /**
- * Customise the cookie and / or the parameters being stored when using
- * DataTables with state saving enabled. This function is called whenever
- * the cookie is modified, and it expects a fully formed cookie string to be
- * returned. Note that the data object passed in is a Javascript object which
- * must be converted to a string (JSON.stringify for example).
- * @type function
- * @param {string} sName Name of the cookie defined by DataTables
- * @param {object} oData Data to be stored in the cookie
- * @param {string} sExpires Cookie expires string
- * @param {string} sPath Path of the cookie to set
- * @returns {string} Cookie formatted string (which should be encoded by
- * using encodeURIComponent())
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "fnCookieCallback": function (sName, oData, sExpires, sPath) {
- * // Customise oData or sName or whatever else here
- * return sName + "="+JSON.stringify(oData)+"; expires=" + sExpires +"; path=" + sPath;
- * }
- * } );
- * } );
- */
- "fnCookieCallback": null,
-
-
- /**
- * This function is called when a TR element is created (and all TD child
- * elements have been inserted), or registered if using a DOM source, allowing
- * manipulation of the TR element (adding classes etc).
- * @type function
- * @param {node} nRow "TR" element for the current row
- * @param {array} aData Raw data array for this row
- * @param {int} iDataIndex The index of this row in aoData
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnCreatedRow": function( nRow, aData, iDataIndex ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( aData[4] == "A" )
- * {
- * $('td:eq(4)', nRow).html( '<b>A</b>' );
- * }
- * }
- * } );
- * } );
- */
- "fnCreatedRow": null,
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify any aspect you want about the created DOM.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnDrawCallback": function( oSettings ) {
- * alert( 'DataTables has redrawn the table' );
- * }
- * } );
- * } );
- */
- "fnDrawCallback": null,
-
-
- /**
- * Identical to fnHeaderCallback() but for the table footer this function
- * allows you to modify the table footer on every 'draw' even.
- * @type function
- * @param {node} nFoot "TR" element for the footer
- * @param {array} aData Full table data (as derived from the original HTML)
- * @param {int} iStart Index for the current display starting point in the
- * display array
- * @param {int} iEnd Index for the current display ending point in the
- * display array
- * @param {array int} aiDisplay Index array to translate the visual position
- * to the full data array
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnFooterCallback": function( nFoot, aData, iStart, iEnd, aiDisplay ) {
- * nFoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+iStart;
- * }
- * } );
- * } )
- */
- "fnFooterCallback": null,
-
-
- /**
- * When rendering large numbers in the information element for the table
- * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
- * to have a comma separator for the 'thousands' units (e.g. 1 million is
- * rendered as "1,000,000") to help readability for the end user. This
- * function will override the default method DataTables uses.
- * @type function
- * @member
- * @param {int} iIn number to be formatted
- * @returns {string} formatted string for DataTables to show the number
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnFormatNumber": function ( iIn ) {
- * if ( iIn &lt; 1000 ) {
- * return iIn;
- * } else {
- * var
- * s=(iIn+""),
- * a=s.split(""), out="",
- * iLen=s.length;
- *
- * for ( var i=0 ; i&lt;iLen ; i++ ) {
- * if ( i%3 === 0 &amp;&amp; i !== 0 ) {
- * out = "'"+out;
- * }
- * out = a[iLen-i-1]+out;
- * }
- * }
- * return out;
- * };
- * } );
- * } );
- */
- "fnFormatNumber": function ( iIn ) {
- if ( iIn < 1000 )
- {
- // A small optimisation for what is likely to be the majority of use cases
- return iIn;
- }
-
- var s=(iIn+""), a=s.split(""), out="", iLen=s.length;
-
- for ( var i=0 ; i<iLen ; i++ )
- {
- if ( i%3 === 0 && i !== 0 )
- {
- out = this.oLanguage.sInfoThousands+out;
- }
- out = a[iLen-i-1]+out;
- }
- return out;
- },
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify the header row. This can be used to calculate and
- * display useful information about the table.
- * @type function
- * @param {node} nHead "TR" element for the header
- * @param {array} aData Full table data (as derived from the original HTML)
- * @param {int} iStart Index for the current display starting point in the
- * display array
- * @param {int} iEnd Index for the current display ending point in the
- * display array
- * @param {array int} aiDisplay Index array to translate the visual position
- * to the full data array
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnHeaderCallback": function( nHead, aData, iStart, iEnd, aiDisplay ) {
- * nHead.getElementsByTagName('th')[0].innerHTML = "Displaying "+(iEnd-iStart)+" records";
- * }
- * } );
- * } )
- */
- "fnHeaderCallback": null,
-
-
- /**
- * The information element can be used to convey information about the current
- * state of the table. Although the internationalisation options presented by
- * DataTables are quite capable of dealing with most customisations, there may
- * be times where you wish to customise the string further. This callback
- * allows you to do exactly that.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {int} iStart Starting position in data for the draw
- * @param {int} iEnd End position in data for the draw
- * @param {int} iMax Total number of rows in the table (regardless of
- * filtering)
- * @param {int} iTotal Total number of rows in the data set, after filtering
- * @param {string} sPre The string that DataTables has formatted using it's
- * own rules
- * @returns {string} The string to be displayed in the information element.
- * @dtopt Callbacks
- *
- * @example
- * $('#example').dataTable( {
- * "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
- * return iStart +" to "+ iEnd;
- * }
- * } );
- */
- "fnInfoCallback": null,
-
-
- /**
- * Called when the table has been initialised. Normally DataTables will
- * initialise sequentially and there will be no need for this function,
- * however, this does not hold true when using external language information
- * since that is obtained using an async XHR call.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnInitComplete": function(oSettings, json) {
- * alert( 'DataTables has finished its initialisation.' );
- * }
- * } );
- * } )
- */
- "fnInitComplete": null,
-
-
- /**
- * Called at the very start of each table draw and can be used to cancel the
- * draw by returning false, any other return (including undefined) results in
- * the full draw occurring).
- * @type function
- * @param {object} oSettings DataTables settings object
- * @returns {boolean} False will cancel the draw, anything else (including no
- * return) will allow it to complete.
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnPreDrawCallback": function( oSettings ) {
- * if ( $('#test').val() == 1 ) {
- * return false;
- * }
- * }
- * } );
- * } );
- */
- "fnPreDrawCallback": null,
-
-
- /**
- * This function allows you to 'post process' each row after it have been
- * generated for each table draw, but before it is rendered on screen. This
- * function might be used for setting the row class name etc.
- * @type function
- * @param {node} nRow "TR" element for the current row
- * @param {array} aData Raw data array for this row
- * @param {int} iDisplayIndex The display index for the current table draw
- * @param {int} iDisplayIndexFull The index of the data in the full list of
- * rows (after filtering)
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( aData[4] == "A" )
- * {
- * $('td:eq(4)', nRow).html( '<b>A</b>' );
- * }
- * }
- * } );
- * } );
- */
- "fnRowCallback": null,
-
-
- /**
- * This parameter allows you to override the default function which obtains
- * the data from the server ($.getJSON) so something more suitable for your
- * application. For example you could use POST data, or pull information from
- * a Gears or AIR database.
- * @type function
- * @member
- * @param {string} sSource HTTP source to obtain the data from (sAjaxSource)
- * @param {array} aoData A key/value pair object containing the data to send
- * to the server
- * @param {function} fnCallback to be called on completion of the data get
- * process that will draw the data on the page.
- * @param {object} oSettings DataTables settings object
- * @dtopt Callbacks
- * @dtopt Server-side
- *
- * @example
- * // POST data to server
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bProcessing": true,
- * "bServerSide": true,
- * "sAjaxSource": "xhr.php",
- * "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) {
- * oSettings.jqXHR = $.ajax( {
- * "dataType": 'json',
- * "type": "POST",
- * "url": sSource,
- * "data": aoData,
- * "success": fnCallback
- * } );
- * }
- * } );
- * } );
- */
- "fnServerData": function ( sUrl, aoData, fnCallback, oSettings ) {
- oSettings.jqXHR = $.ajax( {
- "url": sUrl,
- "data": aoData,
- "success": function (json) {
- if ( json.sError ) {
- oSettings.oApi._fnLog( oSettings, 0, json.sError );
- }
-
- $(oSettings.oInstance).trigger('xhr', [oSettings, json]);
- fnCallback( json );
- },
- "dataType": "json",
- "cache": false,
- "type": oSettings.sServerMethod,
- "error": function (xhr, error, thrown) {
- if ( error == "parsererror" ) {
- oSettings.oApi._fnLog( oSettings, 0, "DataTables warning: JSON data from "+
- "server could not be parsed. This is caused by a JSON formatting error." );
- }
- }
- } );
- },
-
-
- /**
- * It is often useful to send extra data to the server when making an Ajax
- * request - for example custom filtering information, and this callback
- * function makes it trivial to send extra information to the server. The
- * passed in parameter is the data set that has been constructed by
- * DataTables, and you can add to this or modify it as you require.
- * @type function
- * @param {array} aoData Data array (array of objects which are name/value
- * pairs) that has been constructed by DataTables and will be sent to the
- * server. In the case of Ajax sourced data with server-side processing
- * this will be an empty array, for server-side processing there will be a
- * significant number of parameters!
- * @returns {undefined} Ensure that you modify the aoData array passed in,
- * as this is passed by reference.
- * @dtopt Callbacks
- * @dtopt Server-side
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bProcessing": true,
- * "bServerSide": true,
- * "sAjaxSource": "scripts/server_processing.php",
- * "fnServerParams": function ( aoData ) {
- * aoData.push( { "name": "more_data", "value": "my_value" } );
- * }
- * } );
- * } );
- */
- "fnServerParams": null,
-
-
- /**
- * Load the table state. With this function you can define from where, and how, the
- * state of a table is loaded. By default DataTables will load from its state saving
- * cookie, but you might wish to use local storage (HTML5) or a server-side database.
- * @type function
- * @member
- * @param {object} oSettings DataTables settings object
- * @return {object} The DataTables state object to be loaded
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateLoad": function (oSettings) {
- * var o;
- *
- * // Send an Ajax request to the server to get the data. Note that
- * // this is a synchronous request.
- * $.ajax( {
- * "url": "/state_load",
- * "async": false,
- * "dataType": "json",
- * "success": function (json) {
- * o = json;
- * }
- * } );
- *
- * return o;
- * }
- * } );
- * } );
- */
- "fnStateLoad": function ( oSettings ) {
- var sData = this.oApi._fnReadCookie( oSettings.sCookiePrefix+oSettings.sInstance );
- var oData;
-
- try {
- oData = (typeof $.parseJSON === 'function') ?
- $.parseJSON(sData) : eval( '('+sData+')' );
- } catch (e) {
- oData = null;
- }
-
- return oData;
- },
-
-
- /**
- * Callback which allows modification of the saved state prior to loading that state.
- * This callback is called when the table is loading state from the stored data, but
- * prior to the settings object being modified by the saved state. Note that for
- * plug-in authors, you should use the 'stateLoadParams' event to load parameters for
- * a plug-in.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {object} oData The state object that is to be loaded
- * @dtopt Callbacks
- *
- * @example
- * // Remove a saved filter, so filtering is never loaded
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateLoadParams": function (oSettings, oData) {
- * oData.oSearch.sSearch = "";
- * }
- * } );
- * } );
- *
- * @example
- * // Disallow state loading by returning false
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateLoadParams": function (oSettings, oData) {
- * return false;
- * }
- * } );
- * } );
- */
- "fnStateLoadParams": null,
-
-
- /**
- * Callback that is called when the state has been loaded from the state saving method
- * and the DataTables settings object has been modified as a result of the loaded state.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {object} oData The state object that was loaded
- * @dtopt Callbacks
- *
- * @example
- * // Show an alert with the filtering value that was saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateLoaded": function (oSettings, oData) {
- * alert( 'Saved filter was: '+oData.oSearch.sSearch );
- * }
- * } );
- * } );
- */
- "fnStateLoaded": null,
-
-
- /**
- * Save the table state. This function allows you to define where and how the state
- * information for the table is stored - by default it will use a cookie, but you
- * might want to use local storage (HTML5) or a server-side database.
- * @type function
- * @member
- * @param {object} oSettings DataTables settings object
- * @param {object} oData The state object to be saved
- * @dtopt Callbacks
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateSave": function (oSettings, oData) {
- * // Send an Ajax request to the server with the state object
- * $.ajax( {
- * "url": "/state_save",
- * "data": oData,
- * "dataType": "json",
- * "method": "POST"
- * "success": function () {}
- * } );
- * }
- * } );
- * } );
- */
- "fnStateSave": function ( oSettings, oData ) {
- this.oApi._fnCreateCookie(
- oSettings.sCookiePrefix+oSettings.sInstance,
- this.oApi._fnJsonString(oData),
- oSettings.iCookieDuration,
- oSettings.sCookiePrefix,
- oSettings.fnCookieCallback
- );
- },
-
-
- /**
- * Callback which allows modification of the state to be saved. Called when the table
- * has changed state a new state save is required. This method allows modification of
- * the state saving object prior to actually doing the save, including addition or
- * other state properties or modification. Note that for plug-in authors, you should
- * use the 'stateSaveParams' event to save parameters for a plug-in.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {object} oData The state object to be saved
- * @dtopt Callbacks
- *
- * @example
- * // Remove a saved filter, so filtering is never saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bStateSave": true,
- * "fnStateSaveParams": function (oSettings, oData) {
- * oData.oSearch.sSearch = "";
- * }
- * } );
- * } );
- */
- "fnStateSaveParams": null,
-
-
- /**
- * Duration of the cookie which is used for storing session information. This
- * value is given in seconds.
- * @type int
- * @default 7200 <i>(2 hours)</i>
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "iCookieDuration": 60*60*24; // 1 day
- * } );
- * } )
- */
- "iCookieDuration": 7200,
-
-
- /**
- * When enabled DataTables will not make a request to the server for the first
- * page draw - rather it will use the data already on the page (no sorting etc
- * will be applied to it), thus saving on an XHR at load time. iDeferLoading
- * is used to indicate that deferred loading is required, but it is also used
- * to tell DataTables how many records there are in the full table (allowing
- * the information element and pagination to be displayed correctly). In the case
- * where a filtering is applied to the table on initial load, this can be
- * indicated by giving the parameter as an array, where the first element is
- * the number of records available after filtering and the second element is the
- * number of records without filtering (allowing the table information element
- * to be shown correctly).
- * @type int | array
- * @default null
- * @dtopt Options
- *
- * @example
- * // 57 records available in the table, no filtering applied
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bServerSide": true,
- * "sAjaxSource": "scripts/server_processing.php",
- * "iDeferLoading": 57
- * } );
- * } );
- *
- * @example
- * // 57 records after filtering, 100 without filtering (an initial filter applied)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bServerSide": true,
- * "sAjaxSource": "scripts/server_processing.php",
- * "iDeferLoading": [ 57, 100 ],
- * "oSearch": {
- * "sSearch": "my_filter"
- * }
- * } );
- * } );
- */
- "iDeferLoading": null,
-
-
- /**
- * Number of rows to display on a single page when using pagination. If
- * feature enabled (bLengthChange) then the end user will be able to override
- * this to a custom setting using a pop-up menu.
- * @type int
- * @default 10
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "iDisplayLength": 50
- * } );
- * } )
- */
- "iDisplayLength": 10,
-
-
- /**
- * Define the starting point for data display when using DataTables with
- * pagination. Note that this parameter is the number of records, rather than
- * the page number, so if you have 10 records per page and want to start on
- * the third page, it should be "20".
- * @type int
- * @default 0
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "iDisplayStart": 20
- * } );
- * } )
- */
- "iDisplayStart": 0,
-
-
- /**
- * The scroll gap is the amount of scrolling that is left to go before
- * DataTables will load the next 'page' of data automatically. You typically
- * want a gap which is big enough that the scrolling will be smooth for the
- * user, while not so large that it will load more data than need.
- * @type int
- * @default 100
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bScrollInfinite": true,
- * "bScrollCollapse": true,
- * "sScrollY": "200px",
- * "iScrollLoadGap": 50
- * } );
- * } );
- */
- "iScrollLoadGap": 100,
-
-
- /**
- * By default DataTables allows keyboard navigation of the table (sorting, paging,
- * and filtering) by adding a tabindex attribute to the required elements. This
- * allows you to tab through the controls and press the enter key to activate them.
- * The tabindex is default 0, meaning that the tab follows the flow of the document.
- * You can overrule this using this parameter if you wish. Use a value of -1 to
- * disable built-in keyboard navigation.
- * @type int
- * @default 0
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "iTabIndex": 1
- * } );
- * } );
- */
- "iTabIndex": 0,
-
-
- /**
- * All strings that DataTables uses in the user interface that it creates
- * are defined in this object, allowing you to modified them individually or
- * completely replace them all as required.
- * @namespace
- */
- "oLanguage": {
- /**
- * Strings that are used for WAI-ARIA labels and controls only (these are not
- * actually visible on the page, but will be read by screenreaders, and thus
- * must be internationalised as well).
- * @namespace
- */
- "oAria": {
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted ascending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oAria": {
- * "sSortAscending": " - click/return to sort ascending"
- * }
- * }
- * } );
- * } );
- */
- "sSortAscending": ": activate to sort column ascending",
-
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted descending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oAria": {
- * "sSortDescending": " - click/return to sort descending"
- * }
- * }
- * } );
- * } );
- */
- "sSortDescending": ": activate to sort column descending"
- },
-
- /**
- * Pagination string used by DataTables for the two built-in pagination
- * control types ("two_button" and "full_numbers")
- * @namespace
- */
- "oPaginate": {
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the first page.
- * @type string
- * @default First
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oPaginate": {
- * "sFirst": "First page"
- * }
- * }
- * } );
- * } );
- */
- "sFirst": "First",
-
-
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the last page.
- * @type string
- * @default Last
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oPaginate": {
- * "sLast": "Last page"
- * }
- * }
- * } );
- * } );
- */
- "sLast": "Last",
-
-
- /**
- * Text to use for the 'next' pagination button (to take the user to the
- * next page).
- * @type string
- * @default Next
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oPaginate": {
- * "sNext": "Next page"
- * }
- * }
- * } );
- * } );
- */
- "sNext": "Next",
-
-
- /**
- * Text to use for the 'previous' pagination button (to take the user to
- * the previous page).
- * @type string
- * @default Previous
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "oPaginate": {
- * "sPrevious": "Previous page"
- * }
- * }
- * } );
- * } );
- */
- "sPrevious": "Previous"
- },
-
- /**
- * This string is shown in preference to sZeroRecords when the table is
- * empty of data (regardless of filtering). Note that this is an optional
- * parameter - if it is not given, the value of sZeroRecords will be used
- * instead (either the default or given value).
- * @type string
- * @default No data available in table
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sEmptyTable": "No data available in table"
- * }
- * } );
- * } );
- */
- "sEmptyTable": "No data available in table",
-
-
- /**
- * This string gives information to the end user about the information that
- * is current on display on the page. The _START_, _END_ and _TOTAL_
- * variables are all dynamically replaced as the table display updates, and
- * can be freely moved or removed as the language requirements change.
- * @type string
- * @default Showing _START_ to _END_ of _TOTAL_ entries
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sInfo": "Got a total of _TOTAL_ entries to show (_START_ to _END_)"
- * }
- * } );
- * } );
- */
- "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
-
-
- /**
- * Display information string for when the table is empty. Typically the
- * format of this string should match sInfo.
- * @type string
- * @default Showing 0 to 0 of 0 entries
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sInfoEmpty": "No entries to show"
- * }
- * } );
- * } );
- */
- "sInfoEmpty": "Showing 0 to 0 of 0 entries",
-
-
- /**
- * When a user filters the information in a table, this string is appended
- * to the information (sInfo) to give an idea of how strong the filtering
- * is. The variable _MAX_ is dynamically updated.
- * @type string
- * @default (filtered from _MAX_ total entries)
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sInfoFiltered": " - filtering from _MAX_ records"
- * }
- * } );
- * } );
- */
- "sInfoFiltered": "(filtered from _MAX_ total entries)",
-
-
- /**
- * If can be useful to append extra information to the info string at times,
- * and this variable does exactly that. This information will be appended to
- * the sInfo (sInfoEmpty and sInfoFiltered in whatever combination they are
- * being used) at all times.
- * @type string
- * @default <i>Empty string</i>
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sInfoPostFix": "All records shown are derived from real information."
- * }
- * } );
- * } );
- */
- "sInfoPostFix": "",
-
-
- /**
- * DataTables has a build in number formatter (fnFormatNumber) which is used
- * to format large numbers that are used in the table information. By
- * default a comma is used, but this can be trivially changed to any
- * character you wish with this parameter.
- * @type string
- * @default ,
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sInfoThousands": "'"
- * }
- * } );
- * } );
- */
- "sInfoThousands": ",",
-
-
- /**
- * Detail the action that will be taken when the drop down menu for the
- * pagination length option is changed. The '_MENU_' variable is replaced
- * with a default select list of 10, 25, 50 and 100, and can be replaced
- * with a custom select box if required.
- * @type string
- * @default Show _MENU_ entries
- * @dtopt Language
- *
- * @example
- * // Language change only
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sLengthMenu": "Display _MENU_ records"
- * }
- * } );
- * } );
- *
- * @example
- * // Language and options change
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sLengthMenu": 'Display <select>'+
- * '<option value="10">10</option>'+
- * '<option value="20">20</option>'+
- * '<option value="30">30</option>'+
- * '<option value="40">40</option>'+
- * '<option value="50">50</option>'+
- * '<option value="-1">All</option>'+
- * '</select> records'
- * }
- * } );
- * } );
- */
- "sLengthMenu": "Show _MENU_ entries",
-
-
- /**
- * When using Ajax sourced data and during the first draw when DataTables is
- * gathering the data, this message is shown in an empty row in the table to
- * indicate to the end user the the data is being loaded. Note that this
- * parameter is not used when loading data by server-side processing, just
- * Ajax sourced data with client-side processing.
- * @type string
- * @default Loading...
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sLoadingRecords": "Please wait - loading..."
- * }
- * } );
- * } );
- */
- "sLoadingRecords": "Loading...",
-
-
- /**
- * Text which is displayed when the table is processing a user action
- * (usually a sort command or similar).
- * @type string
- * @default Processing...
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sProcessing": "DataTables is currently busy"
- * }
- * } );
- * } );
- */
- "sProcessing": "Processing...",
-
-
- /**
- * Details the actions that will be taken when the user types into the
- * filtering input text box. The variable "_INPUT_", if used in the string,
- * is replaced with the HTML text box for the filtering input allowing
- * control over where it appears in the string. If "_INPUT_" is not given
- * then the input box is appended to the string automatically.
- * @type string
- * @default Search:
- * @dtopt Language
- *
- * @example
- * // Input text box will be appended at the end automatically
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sSearch": "Filter records:"
- * }
- * } );
- * } );
- *
- * @example
- * // Specify where the filter should appear
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sSearch": "Apply filter _INPUT_ to table"
- * }
- * } );
- * } );
- */
- "sSearch": "Search:",
-
-
- /**
- * All of the language information can be stored in a file on the
- * server-side, which DataTables will look up if this parameter is passed.
- * It must store the URL of the language file, which is in a JSON format,
- * and the object has the same properties as the oLanguage object in the
- * initialiser object (i.e. the above parameters). Please refer to one of
- * the example language files to see how this works in action.
- * @type string
- * @default <i>Empty string - i.e. disabled</i>
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sUrl": "http://www.sprymedia.co.uk/dataTables/lang.txt"
- * }
- * } );
- * } );
- */
- "sUrl": "",
-
-
- /**
- * Text shown inside the table records when the is no information to be
- * displayed after filtering. sEmptyTable is shown when there is simply no
- * information in the table at all (regardless of filtering).
- * @type string
- * @default No matching records found
- * @dtopt Language
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oLanguage": {
- * "sZeroRecords": "No records to display"
- * }
- * } );
- * } );
- */
- "sZeroRecords": "No matching records found"
- },
-
-
- /**
- * This parameter allows you to have define the global filtering state at
- * initialisation time. As an object the "sSearch" parameter must be
- * defined, but all other parameters are optional. When "bRegex" is true,
- * the search string will be treated as a regular expression, when false
- * (default) it will be treated as a straight string. When "bSmart"
- * DataTables will use it's smart filtering methods (to word match at
- * any point in the data), when false this will not be done.
- * @namespace
- * @extends DataTable.models.oSearch
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "oSearch": {"sSearch": "Initial search"}
- * } );
- * } )
- */
- "oSearch": $.extend( {}, DataTable.models.oSearch ),
-
-
- /**
- * By default DataTables will look for the property 'aaData' when obtaining
- * data from an Ajax source or for server-side processing - this parameter
- * allows that property to be changed. You can use Javascript dotted object
- * notation to get a data source for multiple levels of nesting.
- * @type string
- * @default aaData
- * @dtopt Options
- * @dtopt Server-side
- *
- * @example
- * // Get data from { "data": [...] }
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "sAjaxSource": "sources/data.txt",
- * "sAjaxDataProp": "data"
- * } );
- * } );
- *
- * @example
- * // Get data from { "data": { "inner": [...] } }
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "sAjaxSource": "sources/data.txt",
- * "sAjaxDataProp": "data.inner"
- * } );
- * } );
- */
- "sAjaxDataProp": "aaData",
-
-
- /**
- * You can instruct DataTables to load data from an external source using this
- * parameter (use aData if you want to pass data in you already have). Simply
- * provide a url a JSON object can be obtained from. This object must include
- * the parameter 'aaData' which is the data source for the table.
- * @type string
- * @default null
- * @dtopt Options
- * @dtopt Server-side
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sAjaxSource": "http://www.sprymedia.co.uk/dataTables/json.php"
- * } );
- * } )
- */
- "sAjaxSource": null,
-
-
- /**
- * This parameter can be used to override the default prefix that DataTables
- * assigns to a cookie when state saving is enabled.
- * @type string
- * @default SpryMedia_DataTables_
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sCookiePrefix": "my_datatable_",
- * } );
- * } );
- */
- "sCookiePrefix": "SpryMedia_DataTables_",
-
-
- /**
- * This initialisation variable allows you to specify exactly where in the
- * DOM you want DataTables to inject the various controls it adds to the page
- * (for example you might want the pagination controls at the top of the
- * table). DIV elements (with or without a custom class) can also be added to
- * aid styling. The follow syntax is used:
- * <ul>
- * <li>The following options are allowed:
- * <ul>
- * <li>'l' - Length changing</li
- * <li>'f' - Filtering input</li>
- * <li>'t' - The table!</li>
- * <li>'i' - Information</li>
- * <li>'p' - Pagination</li>
- * <li>'r' - pRocessing</li>
- * </ul>
- * </li>
- * <li>The following constants are allowed:
- * <ul>
- * <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>
- * <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>
- * </ul>
- * </li>
- * <li>The following syntax is expected:
- * <ul>
- * <li>'&lt;' and '&gt;' - div elements</li>
- * <li>'&lt;"class" and '&gt;' - div with a class</li>
- * <li>'&lt;"#id" and '&gt;' - div with an ID</li>
- * </ul>
- * </li>
- * <li>Examples:
- * <ul>
- * <li>'&lt;"wrapper"flipt&gt;'</li>
- * <li>'&lt;lf&lt;t&gt;ip&gt;'</li>
- * </ul>
- * </li>
- * </ul>
- * @type string
- * @default lfrtip <i>(when bJQueryUI is false)</i> <b>or</b>
- * <"H"lfr>t<"F"ip> <i>(when bJQueryUI is true)</i>
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sDom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;'
- * } );
- * } );
- */
- "sDom": "lfrtip",
-
-
- /**
- * DataTables features two different built-in pagination interaction methods
- * ('two_button' or 'full_numbers') which present different page controls to
- * the end user. Further methods can be added using the API (see below).
- * @type string
- * @default two_button
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sPaginationType": "full_numbers"
- * } );
- * } )
- */
- "sPaginationType": "two_button",
-
-
- /**
- * Enable horizontal scrolling. When a table is too wide to fit into a certain
- * layout, or you have a large number of columns in the table, you can enable
- * x-scrolling to show the table in a viewport, which can be scrolled. This
- * property can be any CSS unit, or a number (in which case it will be treated
- * as a pixel measurement).
- * @type string
- * @default <i>blank string - i.e. disabled</i>
- * @dtopt Features
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sScrollX": "100%",
- * "bScrollCollapse": true
- * } );
- * } );
- */
- "sScrollX": "",
-
-
- /**
- * This property can be used to force a DataTable to use more width than it
- * might otherwise do when x-scrolling is enabled. For example if you have a
- * table which requires to be well spaced, this parameter is useful for
- * "over-sizing" the table, and thus forcing scrolling. This property can by
- * any CSS unit, or a number (in which case it will be treated as a pixel
- * measurement).
- * @type string
- * @default <i>blank string - i.e. disabled</i>
- * @dtopt Options
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sScrollX": "100%",
- * "sScrollXInner": "110%"
- * } );
- * } );
- */
- "sScrollXInner": "",
-
-
- /**
- * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
- * to the given height, and enable scrolling for any data which overflows the
- * current viewport. This can be used as an alternative to paging to display
- * a lot of data in a small area (although paging and scrolling can both be
- * enabled at the same time). This property can be any CSS unit, or a number
- * (in which case it will be treated as a pixel measurement).
- * @type string
- * @default <i>blank string - i.e. disabled</i>
- * @dtopt Features
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false
- * } );
- * } );
- */
- "sScrollY": "",
-
-
- /**
- * Set the HTTP method that is used to make the Ajax call for server-side
- * processing or Ajax sourced data.
- * @type string
- * @default GET
- * @dtopt Options
- * @dtopt Server-side
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "bServerSide": true,
- * "sAjaxSource": "scripts/post.php",
- * "sServerMethod": "POST"
- * } );
- * } );
- */
- "sServerMethod": "GET"
- };
-
-
-
- /**
- * Column options that can be given to DataTables at initialisation time.
- * @namespace
- */
- DataTable.defaults.columns = {
- /**
- * Allows a column's sorting to take multiple columns into account when
- * doing a sort. For example first name / last name columns make sense to
- * do a multi-column sort over the two columns.
- * @type array
- * @default null <i>Takes the value of the column index automatically</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "aDataSort": [ 0, 1 ], "aTargets": [ 0 ] },
- * { "aDataSort": [ 1, 0 ], "aTargets": [ 1 ] },
- * { "aDataSort": [ 2, 3, 4 ], "aTargets": [ 2 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "aDataSort": [ 0, 1 ] },
- * { "aDataSort": [ 1, 0 ] },
- * { "aDataSort": [ 2, 3, 4 ] },
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "aDataSort": null,
-
-
- /**
- * You can control the default sorting direction, and even alter the behaviour
- * of the sort handler (i.e. only allow ascending sorting etc) using this
- * parameter.
- * @type array
- * @default [ 'asc', 'desc' ]
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "asSorting": [ "asc" ], "aTargets": [ 1 ] },
- * { "asSorting": [ "desc", "asc", "asc" ], "aTargets": [ 2 ] },
- * { "asSorting": [ "desc" ], "aTargets": [ 3 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * null,
- * { "asSorting": [ "asc" ] },
- * { "asSorting": [ "desc", "asc", "asc" ] },
- * { "asSorting": [ "desc" ] },
- * null
- * ]
- * } );
- * } );
- */
- "asSorting": [ 'asc', 'desc' ],
-
-
- /**
- * Enable or disable filtering on the data in this column.
- * @type boolean
- * @default true
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "bSearchable": false, "aTargets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "bSearchable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSearchable": true,
-
-
- /**
- * Enable or disable sorting on this column.
- * @type boolean
- * @default true
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "bSortable": false, "aTargets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "bSortable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSortable": true,
-
-
- /**
- * <code>Deprecated</code> When using fnRender() for a column, you may wish
- * to use the original data (before rendering) for sorting and filtering
- * (the default is to used the rendered data that the user can see). This
- * may be useful for dates etc.
- *
- * Please note that this option has now been deprecated and will be removed
- * in the next version of DataTables. Please use mRender / mData rather than
- * fnRender.
- * @type boolean
- * @default true
- * @dtopt Columns
- * @deprecated
- */
- "bUseRendered": true,
-
-
- /**
- * Enable or disable the display of this column.
- * @type boolean
- * @default true
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "bVisible": false, "aTargets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "bVisible": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bVisible": true,
-
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} nTd The TD node that has been created
- * @param {*} sData The Data for the cell
- * @param {array|object} oData The data for the whole row
- * @param {int} iRow The row index for the aoData data store
- * @param {int} iCol The column index for aoColumns
- * @dtopt Columns
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [ {
- * "aTargets": [3],
- * "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
- * if ( sData == "1.7" ) {
- * $(nTd).css('color', 'blue')
- * }
- * }
- * } ]
- * });
- * } );
- */
- "fnCreatedCell": null,
-
-
- /**
- * <code>Deprecated</code> Custom display function that will be called for the
- * display of each cell in this column.
- *
- * Please note that this option has now been deprecated and will be removed
- * in the next version of DataTables. Please use mRender / mData rather than
- * fnRender.
- * @type function
- * @param {object} o Object with the following parameters:
- * @param {int} o.iDataRow The row in aoData
- * @param {int} o.iDataColumn The column in question
- * @param {array} o.aData The data for the row in question
- * @param {object} o.oSettings The settings object for this DataTables instance
- * @param {object} o.mDataProp The data property used for this column
- * @param {*} val The current cell value
- * @returns {string} The string you which to use in the display
- * @dtopt Columns
- * @deprecated
- */
- "fnRender": null,
-
-
- /**
- * The column index (starting from 0!) that you wish a sort to be performed
- * upon when this column is selected for sorting. This can be used for sorting
- * on hidden columns for example.
- * @type int
- * @default -1 <i>Use automatically calculated column index</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "iDataSort": 1, "aTargets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "iDataSort": 1 },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "iDataSort": -1,
-
-
- /**
- * This parameter has been replaced by mData in DataTables to ensure naming
- * consistency. mDataProp can still be used, as there is backwards compatibility
- * in DataTables for this option, but it is strongly recommended that you use
- * mData in preference to mDataProp.
- * @name DataTable.defaults.columns.mDataProp
- */
-
-
- /**
- * This property can be used to read data from any JSON data source property,
- * including deeply nested objects / properties. mData can be given in a
- * number of different ways which effect its behaviour:
- * <ul>
- * <li>integer - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).</li>
- * <li>string - read an object property from the data source. Note that you can
- * use Javascript dotted notation to read deep properties / arrays from the
- * data source.</li>
- * <li>null - the sDefaultContent option will be used for the cell (null
- * by default, so you will need to specify the default content you want -
- * typically an empty string). This can be useful on generated columns such
- * as edit / delete action columns.</li>
- * <li>function - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * <ul>
- * <li>{array|object} The data source for the row</li>
- * <li>{string} The type call data requested - this will be 'set' when
- * setting data or 'filter', 'display', 'type', 'sort' or undefined when
- * gathering data. Note that when <i>undefined</i> is given for the type
- * DataTables expects to get the raw data for the object back</li>
- * <li>{*} Data to set when the second parameter is 'set'.</li>
- * </ul>
- * The return value from the function is not required when 'set' is the type
- * of call, but otherwise the return is what will be used for the data
- * requested.</li>
- * </ul>
- *
- * Note that prior to DataTables 1.9.2 mData was called mDataProp. The name change
- * reflects the flexibility of this property and is consistent with the naming of
- * mRender. If 'mDataProp' is given, then it will still be used by DataTables, as
- * it automatically maps the old name to the new if required.
- * @type string|int|function|null
- * @default null <i>Use automatically calculated column index</i>
- * @dtopt Columns
- *
- * @example
- * // Read table data from objects
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "sAjaxSource": "sources/deep.txt",
- * "aoColumns": [
- * { "mData": "engine" },
- * { "mData": "browser" },
- * { "mData": "platform.inner" },
- * { "mData": "platform.details.0" },
- * { "mData": "platform.details.1" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using mData as a function to provide different information for
- * // sorting, filtering and display. In this case, currency (price)
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "aoColumnDefs": [ {
- * "aTargets": [ 0 ],
- * "mData": function ( source, type, val ) {
- * if (type === 'set') {
- * source.price = val;
- * // Store the computed dislay and filter values for efficiency
- * source.price_display = val=="" ? "" : "$"+numberFormat(val);
- * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
- * return;
- * }
- * else if (type === 'display') {
- * return source.price_display;
- * }
- * else if (type === 'filter') {
- * return source.price_filter;
- * }
- * // 'sort', 'type' and undefined all just use the integer
- * return source.price;
- * }
- * } ]
- * } );
- * } );
- */
- "mData": null,
-
-
- /**
- * This property is the rendering partner to mData and it is suggested that
- * when you want to manipulate data for display (including filtering, sorting etc)
- * but not altering the underlying data for the table, use this property. mData
- * can actually do everything this property can and more, but this parameter is
- * easier to use since there is no 'set' option. Like mData is can be given
- * in a number of different ways to effect its behaviour, with the addition of
- * supporting array syntax for easy outputting of arrays (including arrays of
- * objects):
- * <ul>
- * <li>integer - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).</li>
- * <li>string - read an object property from the data source. Note that you can
- * use Javascript dotted notation to read deep properties / arrays from the
- * data source and also array brackets to indicate that the data reader should
- * loop over the data source array. When characters are given between the array
- * brackets, these characters are used to join the data source array together.
- * For example: "accounts[, ].name" would result in a comma separated list with
- * the 'name' value from the 'accounts' array of objects.</li>
- * <li>function - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * <ul>
- * <li>{array|object} The data source for the row (based on mData)</li>
- * <li>{string} The type call data requested - this will be 'filter', 'display',
- * 'type' or 'sort'.</li>
- * <li>{array|object} The full data source for the row (not based on mData)</li>
- * </ul>
- * The return value from the function is what will be used for the data
- * requested.</li>
- * </ul>
- * @type string|int|function|null
- * @default null <i>Use mData</i>
- * @dtopt Columns
- *
- * @example
- * // Create a comma separated list from an array of objects
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "sAjaxSource": "sources/deep.txt",
- * "aoColumns": [
- * { "mData": "engine" },
- * { "mData": "browser" },
- * {
- * "mData": "platform",
- * "mRender": "[, ].name"
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Use as a function to create a link from the data source
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "aoColumnDefs": [
- * {
- * "aTargets": [ 0 ],
- * "mData": "download_link",
- * "mRender": function ( data, type, full ) {
- * return '<a href="'+data+'">Download</a>';
- * }
- * ]
- * } );
- * } );
- */
- "mRender": null,
-
-
- /**
- * Change the cell type created for the column - either TD cells or TH cells. This
- * can be useful as TH cells have semantic meaning in the table body, allowing them
- * to act as a header for a row (you may wish to add scope='row' to the TH elements).
- * @type string
- * @default td
- * @dtopt Columns
- *
- * @example
- * // Make the first column use TH cells
- * $(document).ready( function() {
- * var oTable = $('#example').dataTable( {
- * "aoColumnDefs": [ {
- * "aTargets": [ 0 ],
- * "sCellType": "th"
- * } ]
- * } );
- * } );
- */
- "sCellType": "td",
-
-
- /**
- * Class to give to each cell in this column.
- * @type string
- * @default <i>Empty string</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sClass": "my_class", "aTargets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "sClass": "my_class" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sClass": "",
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * Generally you shouldn't need this, and it is not documented on the
- * general DataTables.net documentation
- * @type string
- * @default <i>Empty string<i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * null,
- * null,
- * null,
- * {
- * "sContentPadding": "mmm"
- * }
- * ]
- * } );
- * } );
- */
- "sContentPadding": "",
-
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because mData
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * {
- * "mData": null,
- * "sDefaultContent": "Edit",
- * "aTargets": [ -1 ]
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * null,
- * null,
- * null,
- * {
- * "mData": null,
- * "sDefaultContent": "Edit"
- * }
- * ]
- * } );
- * } );
- */
- "sDefaultContent": null,
-
-
- /**
- * This parameter is only used in DataTables' server-side processing. It can
- * be exceptionally useful to know what columns are being displayed on the
- * client side, and to map these to database fields. When defined, the names
- * also allow DataTables to reorder information from the server if it comes
- * back in an unexpected order (i.e. if you switch your columns around on the
- * client-side, your server-side code does not also need updating).
- * @type string
- * @default <i>Empty string</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sName": "engine", "aTargets": [ 0 ] },
- * { "sName": "browser", "aTargets": [ 1 ] },
- * { "sName": "platform", "aTargets": [ 2 ] },
- * { "sName": "version", "aTargets": [ 3 ] },
- * { "sName": "grade", "aTargets": [ 4 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "sName": "engine" },
- * { "sName": "browser" },
- * { "sName": "platform" },
- * { "sName": "version" },
- * { "sName": "grade" }
- * ]
- * } );
- * } );
- */
- "sName": "",
-
-
- /**
- * Defines a data source type for the sorting which can be used to read
- * real-time information from the table (updating the internally cached
- * version) prior to sorting. This allows sorting to occur on user editable
- * elements such as form inputs.
- * @type string
- * @default std
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sSortDataType": "dom-text", "aTargets": [ 2, 3 ] },
- * { "sType": "numeric", "aTargets": [ 3 ] },
- * { "sSortDataType": "dom-select", "aTargets": [ 4 ] },
- * { "sSortDataType": "dom-checkbox", "aTargets": [ 5 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * null,
- * null,
- * { "sSortDataType": "dom-text" },
- * { "sSortDataType": "dom-text", "sType": "numeric" },
- * { "sSortDataType": "dom-select" },
- * { "sSortDataType": "dom-checkbox" }
- * ]
- * } );
- * } );
- */
- "sSortDataType": "std",
-
-
- /**
- * The title of this column.
- * @type string
- * @default null <i>Derived from the 'TH' value for this column in the
- * original HTML table.</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sTitle": "My column title", "aTargets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "sTitle": "My column title" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sTitle": null,
-
-
- /**
- * The type allows you to specify how the data for this column will be sorted.
- * Four types (string, numeric, date and html (which will strip HTML tags
- * before sorting)) are currently available. Note that only date formats
- * understood by Javascript's Date() object will be accepted as type date. For
- * example: "Mar 26, 2008 5:03 PM". May take the values: 'string', 'numeric',
- * 'date' or 'html' (by default). Further types can be adding through
- * plug-ins.
- * @type string
- * @default null <i>Auto-detected from raw data</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sType": "html", "aTargets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "sType": "html" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sType": null,
-
-
- /**
- * Defining the width of the column, this parameter may take any CSS value
- * (3em, 20px etc). DataTables apples 'smart' widths to columns which have not
- * been given a specific width through this interface ensuring that the table
- * remains readable.
- * @type string
- * @default null <i>Automatic</i>
- * @dtopt Columns
- *
- * @example
- * // Using aoColumnDefs
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumnDefs": [
- * { "sWidth": "20%", "aTargets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using aoColumns
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "aoColumns": [
- * { "sWidth": "20%" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sWidth": null
- };
-
-
-
- /**
- * DataTables settings object - this holds all the information needed for a
- * given table, including configuration, data and current application of the
- * table options. DataTables does not have a single instance for each DataTable
- * with the settings attached to that instance, but rather instances of the
- * DataTable "class" are created on-the-fly as needed (typically by a
- * $().dataTable() call) and the settings object is then applied to that
- * instance.
- *
- * Note that this object is related to {@link DataTable.defaults} but this
- * one is the internal data store for DataTables's cache of columns. It should
- * NOT be manipulated outside of DataTables. Any configuration should be done
- * through the initialisation options.
- * @namespace
- * @todo Really should attach the settings object to individual instances so we
- * don't need to create new instances on each $().dataTable() call (if the
- * table already exists). It would also save passing oSettings around and
- * into every single function. However, this is a very significant
- * architecture change for DataTables and will almost certainly break
- * backwards compatibility with older installations. This is something that
- * will be done in 2.0.
- */
- DataTable.models.oSettings = {
- /**
- * Primary features of DataTables and their enablement state.
- * @namespace
- */
- "oFeatures": {
-
- /**
- * Flag to say if DataTables should automatically try to calculate the
- * optimum table and columns widths (true) or not (false).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bAutoWidth": null,
-
- /**
- * Delay the creation of TR and TD elements until they are actually
- * needed by a driven page draw. This can give a significant speed
- * increase for Ajax source and Javascript source data, but makes no
- * difference at all fro DOM and server-side processing tables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bDeferRender": null,
-
- /**
- * Enable filtering on the table or not. Note that if this is disabled
- * then there is no filtering at all on the table, including fnFilter.
- * To just remove the filtering input use sDom and remove the 'f' option.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bFilter": null,
-
- /**
- * Table information element (the 'Showing x of y records' div) enable
- * flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bInfo": null,
-
- /**
- * Present a user control allowing the end user to change the page size
- * when pagination is enabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bLengthChange": null,
-
- /**
- * Pagination enabled or not. Note that if this is disabled then length
- * changing must also be disabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bPaginate": null,
-
- /**
- * Processing indicator enable flag whenever DataTables is enacting a
- * user request - typically an Ajax request for server-side processing.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bProcessing": null,
-
- /**
- * Server-side processing enabled flag - when enabled DataTables will
- * get all data from the server for every draw - there is no filtering,
- * sorting or paging done on the client-side.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bServerSide": null,
-
- /**
- * Sorting enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSort": null,
-
- /**
- * Apply a class to the columns which are being sorted to provide a
- * visual highlight or not. This can slow things down when enabled since
- * there is a lot of DOM interaction.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortClasses": null,
-
- /**
- * State saving enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bStateSave": null
- },
-
-
- /**
- * Scrolling settings for a table.
- * @namespace
- */
- "oScroll": {
- /**
- * Indicate if DataTables should be allowed to set the padding / margin
- * etc for the scrolling header elements or not. Typically you will want
- * this.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bAutoCss": null,
-
- /**
- * When the table is shorter in height than sScrollY, collapse the
- * table container down to the height of the table (when true).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bCollapse": null,
-
- /**
- * Infinite scrolling enablement flag. Now deprecated in favour of
- * using the Scroller plug-in.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bInfinite": null,
-
- /**
- * Width of the scrollbar for the web-browser's platform. Calculated
- * during table initialisation.
- * @type int
- * @default 0
- */
- "iBarWidth": 0,
-
- /**
- * Space (in pixels) between the bottom of the scrolling container and
- * the bottom of the scrolling viewport before the next page is loaded
- * when using infinite scrolling.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type int
- */
- "iLoadGap": null,
-
- /**
- * Viewport width for horizontal scrolling. Horizontal scrolling is
- * disabled if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sX": null,
-
- /**
- * Width to expand the table to when using x-scrolling. Typically you
- * should not need to use this.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @deprecated
- */
- "sXInner": null,
-
- /**
- * Viewport height for vertical scrolling. Vertical scrolling is disabled
- * if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sY": null
- },
-
- /**
- * Language information for the table.
- * @namespace
- * @extends DataTable.defaults.oLanguage
- */
- "oLanguage": {
- /**
- * Information callback function. See
- * {@link DataTable.defaults.fnInfoCallback}
- * @type function
- * @default null
- */
- "fnInfoCallback": null
- },
-
- /**
- * Browser support parameters
- * @namespace
- */
- "oBrowser": {
- /**
- * Indicate if the browser incorrectly calculates width:100% inside a
- * scrolling element (IE6/7)
- * @type boolean
- * @default false
- */
- "bScrollOversize": false
- },
-
- /**
- * Array referencing the nodes which are used for the features. The
- * parameters of this object match what is allowed by sDom - i.e.
- * <ul>
- * <li>'l' - Length changing</li>
- * <li>'f' - Filtering input</li>
- * <li>'t' - The table!</li>
- * <li>'i' - Information</li>
- * <li>'p' - Pagination</li>
- * <li>'r' - pRocessing</li>
- * </ul>
- * @type array
- * @default []
- */
- "aanFeatures": [],
-
- /**
- * Store data information - see {@link DataTable.models.oRow} for detailed
- * information.
- * @type array
- * @default []
- */
- "aoData": [],
-
- /**
- * Array of indexes which are in the current display (after filtering etc)
- * @type array
- * @default []
- */
- "aiDisplay": [],
-
- /**
- * Array of indexes for display - no filtering
- * @type array
- * @default []
- */
- "aiDisplayMaster": [],
-
- /**
- * Store information about each column that is in use
- * @type array
- * @default []
- */
- "aoColumns": [],
-
- /**
- * Store information about the table's header
- * @type array
- * @default []
- */
- "aoHeader": [],
-
- /**
- * Store information about the table's footer
- * @type array
- * @default []
- */
- "aoFooter": [],
-
- /**
- * Search data array for regular expression searching
- * @type array
- * @default []
- */
- "asDataSearch": [],
-
- /**
- * Store the applied global search information in case we want to force a
- * research or compare the old search to a new one.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @namespace
- * @extends DataTable.models.oSearch
- */
- "oPreviousSearch": {},
-
- /**
- * Store the applied search for each column - see
- * {@link DataTable.models.oSearch} for the format that is used for the
- * filtering information for each column.
- * @type array
- * @default []
- */
- "aoPreSearchCols": [],
-
- /**
- * Sorting that is applied to the table. Note that the inner arrays are
- * used in the following manner:
- * <ul>
- * <li>Index 0 - column number</li>
- * <li>Index 1 - current sorting direction</li>
- * <li>Index 2 - index of asSorting for this column</li>
- * </ul>
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @todo These inner arrays should really be objects
- */
- "aaSorting": null,
-
- /**
- * Sorting that is always applied to the table (i.e. prefixed in front of
- * aaSorting).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array|null
- * @default null
- */
- "aaSortingFixed": null,
-
- /**
- * Classes to use for the striping of a table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "asStripeClasses": null,
-
- /**
- * If restoring a table - we should restore its striping classes as well
- * @type array
- * @default []
- */
- "asDestroyStripes": [],
-
- /**
- * If restoring a table - we should restore its width
- * @type int
- * @default 0
- */
- "sDestroyWidth": 0,
-
- /**
- * Callback functions array for every time a row is inserted (i.e. on a draw).
- * @type array
- * @default []
- */
- "aoRowCallback": [],
-
- /**
- * Callback functions for the header on each draw.
- * @type array
- * @default []
- */
- "aoHeaderCallback": [],
-
- /**
- * Callback function for the footer on each draw.
- * @type array
- * @default []
- */
- "aoFooterCallback": [],
-
- /**
- * Array of callback functions for draw callback functions
- * @type array
- * @default []
- */
- "aoDrawCallback": [],
-
- /**
- * Array of callback functions for row created function
- * @type array
- * @default []
- */
- "aoRowCreatedCallback": [],
-
- /**
- * Callback functions for just before the table is redrawn. A return of
- * false will be used to cancel the draw.
- * @type array
- * @default []
- */
- "aoPreDrawCallback": [],
-
- /**
- * Callback functions for when the table has been initialised.
- * @type array
- * @default []
- */
- "aoInitComplete": [],
-
-
- /**
- * Callbacks for modifying the settings to be stored for state saving, prior to
- * saving state.
- * @type array
- * @default []
- */
- "aoStateSaveParams": [],
-
- /**
- * Callbacks for modifying the settings that have been stored for state saving
- * prior to using the stored values to restore the state.
- * @type array
- * @default []
- */
- "aoStateLoadParams": [],
-
- /**
- * Callbacks for operating on the settings object once the saved state has been
- * loaded
- * @type array
- * @default []
- */
- "aoStateLoaded": [],
-
- /**
- * Cache the table ID for quick access
- * @type string
- * @default <i>Empty string</i>
- */
- "sTableId": "",
-
- /**
- * The TABLE node for the main table
- * @type node
- * @default null
- */
- "nTable": null,
-
- /**
- * Permanent ref to the thead element
- * @type node
- * @default null
- */
- "nTHead": null,
-
- /**
- * Permanent ref to the tfoot element - if it exists
- * @type node
- * @default null
- */
- "nTFoot": null,
-
- /**
- * Permanent ref to the tbody element
- * @type node
- * @default null
- */
- "nTBody": null,
-
- /**
- * Cache the wrapper node (contains all DataTables controlled elements)
- * @type node
- * @default null
- */
- "nTableWrapper": null,
-
- /**
- * Indicate if when using server-side processing the loading of data
- * should be deferred until the second draw.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- * @default false
- */
- "bDeferLoading": false,
-
- /**
- * Indicate if all required information has been read in
- * @type boolean
- * @default false
- */
- "bInitialised": false,
-
- /**
- * Information about open rows. Each object in the array has the parameters
- * 'nTr' and 'nParent'
- * @type array
- * @default []
- */
- "aoOpenRows": [],
-
- /**
- * Dictate the positioning of DataTables' control elements - see
- * {@link DataTable.model.oInit.sDom}.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sDom": null,
-
- /**
- * Which type of pagination should be used.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default two_button
- */
- "sPaginationType": "two_button",
-
- /**
- * The cookie duration (for bStateSave) in seconds.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type int
- * @default 0
- */
- "iCookieDuration": 0,
-
- /**
- * The cookie name prefix.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default <i>Empty string</i>
- */
- "sCookiePrefix": "",
-
- /**
- * Callback function for cookie creation.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- * @default null
- */
- "fnCookieCallback": null,
-
- /**
- * Array of callback functions for state saving. Each array element is an
- * object with the following parameters:
- * <ul>
- * <li>function:fn - function to call. Takes two parameters, oSettings
- * and the JSON string to save that has been thus far created. Returns
- * a JSON string to be inserted into a json object
- * (i.e. '"param": [ 0, 1, 2]')</li>
- * <li>string:sName - name of callback</li>
- * </ul>
- * @type array
- * @default []
- */
- "aoStateSave": [],
-
- /**
- * Array of callback functions for state loading. Each array element is an
- * object with the following parameters:
- * <ul>
- * <li>function:fn - function to call. Takes two parameters, oSettings
- * and the object stored. May return false to cancel state loading</li>
- * <li>string:sName - name of callback</li>
- * </ul>
- * @type array
- * @default []
- */
- "aoStateLoad": [],
-
- /**
- * State that was loaded from the cookie. Useful for back reference
- * @type object
- * @default null
- */
- "oLoadedState": null,
-
- /**
- * Source url for AJAX data for the table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sAjaxSource": null,
-
- /**
- * Property from a given object from which to read the table data from. This
- * can be an empty string (when not server-side processing), in which case
- * it is assumed an an array is given directly.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sAjaxDataProp": null,
-
- /**
- * Note if draw should be blocked while getting data
- * @type boolean
- * @default true
- */
- "bAjaxDataGet": true,
-
- /**
- * The last jQuery XHR object that was used for server-side data gathering.
- * This can be used for working with the XHR information in one of the
- * callbacks
- * @type object
- * @default null
- */
- "jqXHR": null,
-
- /**
- * Function to get the server-side data.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnServerData": null,
-
- /**
- * Functions which are called prior to sending an Ajax request so extra
- * parameters can easily be sent to the server
- * @type array
- * @default []
- */
- "aoServerParams": [],
-
- /**
- * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
- * required).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sServerMethod": null,
-
- /**
- * Format numbers for display.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnFormatNumber": null,
-
- /**
- * List of options that can be used for the user selectable length menu.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "aLengthMenu": null,
-
- /**
- * Counter for the draws that the table does. Also used as a tracker for
- * server-side processing
- * @type int
- * @default 0
- */
- "iDraw": 0,
-
- /**
- * Indicate if a redraw is being done - useful for Ajax
- * @type boolean
- * @default false
- */
- "bDrawing": false,
-
- /**
- * Draw index (iDraw) of the last error when parsing the returned data
- * @type int
- * @default -1
- */
- "iDrawError": -1,
-
- /**
- * Paging display length
- * @type int
- * @default 10
- */
- "_iDisplayLength": 10,
-
- /**
- * Paging start point - aiDisplay index
- * @type int
- * @default 0
- */
- "_iDisplayStart": 0,
-
- /**
- * Paging end point - aiDisplay index. Use fnDisplayEnd rather than
- * this property to get the end point
- * @type int
- * @default 10
- * @private
- */
- "_iDisplayEnd": 10,
-
- /**
- * Server-side processing - number of records in the result set
- * (i.e. before filtering), Use fnRecordsTotal rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type int
- * @default 0
- * @private
- */
- "_iRecordsTotal": 0,
-
- /**
- * Server-side processing - number of records in the current display set
- * (i.e. after filtering). Use fnRecordsDisplay rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type boolean
- * @default 0
- * @private
- */
- "_iRecordsDisplay": 0,
-
- /**
- * Flag to indicate if jQuery UI marking and classes should be used.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bJUI": null,
-
- /**
- * The classes to use for the table
- * @type object
- * @default {}
- */
- "oClasses": {},
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if filtering has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bFiltered": false,
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if sorting has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bSorted": false,
-
- /**
- * Indicate that if multiple rows are in the header and there is more than
- * one unique cell per column, if the top one (true) or bottom one (false)
- * should be used for sorting / title by DataTables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortCellsTop": null,
-
- /**
- * Initialisation object that is used for the table
- * @type object
- * @default null
- */
- "oInit": null,
-
- /**
- * Destroy callback functions - for plug-ins to attach themselves to the
- * destroy so they can clean up markup and events.
- * @type array
- * @default []
- */
- "aoDestroyCallback": [],
-
-
- /**
- * Get the number of records in the current record set, before filtering
- * @type function
- */
- "fnRecordsTotal": function ()
- {
- if ( this.oFeatures.bServerSide ) {
- return parseInt(this._iRecordsTotal, 10);
- } else {
- return this.aiDisplayMaster.length;
- }
- },
-
- /**
- * Get the number of records in the current record set, after filtering
- * @type function
- */
- "fnRecordsDisplay": function ()
- {
- if ( this.oFeatures.bServerSide ) {
- return parseInt(this._iRecordsDisplay, 10);
- } else {
- return this.aiDisplay.length;
- }
- },
-
- /**
- * Set the display end point - aiDisplay index
- * @type function
- * @todo Should do away with _iDisplayEnd and calculate it on-the-fly here
- */
- "fnDisplayEnd": function ()
- {
- if ( this.oFeatures.bServerSide ) {
- if ( this.oFeatures.bPaginate === false || this._iDisplayLength == -1 ) {
- return this._iDisplayStart+this.aiDisplay.length;
- } else {
- return Math.min( this._iDisplayStart+this._iDisplayLength,
- this._iRecordsDisplay );
- }
- } else {
- return this._iDisplayEnd;
- }
- },
-
- /**
- * The DataTables object for this table
- * @type object
- * @default null
- */
- "oInstance": null,
-
- /**
- * Unique identifier for each instance of the DataTables object. If there
- * is an ID on the table node, then it takes that value, otherwise an
- * incrementing internal counter is used.
- * @type string
- * @default null
- */
- "sInstance": null,
-
- /**
- * tabindex attribute value that is added to DataTables control elements, allowing
- * keyboard navigation of the table and its controls.
- */
- "iTabIndex": 0,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollHead": null,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollFoot": null
- };
-
- /**
- * Extension object for DataTables that is used to provide all extension options.
- *
- * Note that the <i>DataTable.ext</i> object is available through
- * <i>jQuery.fn.dataTable.ext</i> where it may be accessed and manipulated. It is
- * also aliased to <i>jQuery.fn.dataTableExt</i> for historic reasons.
- * @namespace
- * @extends DataTable.models.ext
- */
- DataTable.ext = $.extend( true, {}, DataTable.models.ext );
-
- $.extend( DataTable.ext.oStdClasses, {
- "sTable": "dataTable",
-
- /* Two buttons buttons */
- "sPagePrevEnabled": "paginate_enabled_previous",
- "sPagePrevDisabled": "paginate_disabled_previous",
- "sPageNextEnabled": "paginate_enabled_next",
- "sPageNextDisabled": "paginate_disabled_next",
- "sPageJUINext": "",
- "sPageJUIPrev": "",
-
- /* Full numbers paging buttons */
- "sPageButton": "paginate_button",
- "sPageButtonActive": "paginate_active",
- "sPageButtonStaticDisabled": "paginate_button paginate_button_disabled",
- "sPageFirst": "first",
- "sPagePrevious": "previous",
- "sPageNext": "next",
- "sPageLast": "last",
-
- /* Striping classes */
- "sStripeOdd": "odd",
- "sStripeEven": "even",
-
- /* Empty row */
- "sRowEmpty": "dataTables_empty",
-
- /* Features */
- "sWrapper": "dataTables_wrapper",
- "sFilter": "dataTables_filter",
- "sInfo": "dataTables_info",
- "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
- "sLength": "dataTables_length",
- "sProcessing": "dataTables_processing",
-
- /* Sorting */
- "sSortAsc": "sorting_asc",
- "sSortDesc": "sorting_desc",
- "sSortable": "sorting", /* Sortable in both directions */
- "sSortableAsc": "sorting_asc_disabled",
- "sSortableDesc": "sorting_desc_disabled",
- "sSortableNone": "sorting_disabled",
- "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
- "sSortJUIAsc": "",
- "sSortJUIDesc": "",
- "sSortJUI": "",
- "sSortJUIAscAllowed": "",
- "sSortJUIDescAllowed": "",
- "sSortJUIWrapper": "",
- "sSortIcon": "",
-
- /* Scrolling */
- "sScrollWrapper": "dataTables_scroll",
- "sScrollHead": "dataTables_scrollHead",
- "sScrollHeadInner": "dataTables_scrollHeadInner",
- "sScrollBody": "dataTables_scrollBody",
- "sScrollFoot": "dataTables_scrollFoot",
- "sScrollFootInner": "dataTables_scrollFootInner",
-
- /* Misc */
- "sFooterTH": "",
- "sJUIHeader": "",
- "sJUIFooter": ""
- } );
-
-
- $.extend( DataTable.ext.oJUIClasses, DataTable.ext.oStdClasses, {
- /* Two buttons buttons */
- "sPagePrevEnabled": "fg-button ui-button ui-state-default ui-corner-left",
- "sPagePrevDisabled": "fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",
- "sPageNextEnabled": "fg-button ui-button ui-state-default ui-corner-right",
- "sPageNextDisabled": "fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",
- "sPageJUINext": "ui-icon ui-icon-circle-arrow-e",
- "sPageJUIPrev": "ui-icon ui-icon-circle-arrow-w",
-
- /* Full numbers paging buttons */
- "sPageButton": "fg-button ui-button ui-state-default",
- "sPageButtonActive": "fg-button ui-button ui-state-default ui-state-disabled",
- "sPageButtonStaticDisabled": "fg-button ui-button ui-state-default ui-state-disabled",
- "sPageFirst": "first ui-corner-tl ui-corner-bl",
- "sPageLast": "last ui-corner-tr ui-corner-br",
-
- /* Features */
- "sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
- "ui-buttonset-multi paging_", /* Note that the type is postfixed */
-
- /* Sorting */
- "sSortAsc": "ui-state-default",
- "sSortDesc": "ui-state-default",
- "sSortable": "ui-state-default",
- "sSortableAsc": "ui-state-default",
- "sSortableDesc": "ui-state-default",
- "sSortableNone": "ui-state-default",
- "sSortJUIAsc": "css_right ui-icon ui-icon-triangle-1-n",
- "sSortJUIDesc": "css_right ui-icon ui-icon-triangle-1-s",
- "sSortJUI": "css_right ui-icon ui-icon-carat-2-n-s",
- "sSortJUIAscAllowed": "css_right ui-icon ui-icon-carat-1-n",
- "sSortJUIDescAllowed": "css_right ui-icon ui-icon-carat-1-s",
- "sSortJUIWrapper": "DataTables_sort_wrapper",
- "sSortIcon": "DataTables_sort_icon",
-
- /* Scrolling */
- "sScrollHead": "dataTables_scrollHead ui-state-default",
- "sScrollFoot": "dataTables_scrollFoot ui-state-default",
-
- /* Misc */
- "sFooterTH": "ui-state-default",
- "sJUIHeader": "fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",
- "sJUIFooter": "fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"
- } );
-
- /*
- * Variable: oPagination
- * Purpose:
- * Scope: jQuery.fn.dataTableExt
- */
- $.extend( DataTable.ext.oPagination, {
- /*
- * Variable: two_button
- * Purpose: Standard two button (forward/back) pagination
- * Scope: jQuery.fn.dataTableExt.oPagination
- */
- "two_button": {
- /*
- * Function: oPagination.two_button.fnInit
- * Purpose: Initialise dom elements required for pagination with forward/back buttons only
- * Returns: -
- * Inputs: object:oSettings - dataTables settings object
- * node:nPaging - the DIV which contains this pagination control
- * function:fnCallbackDraw - draw function which must be called on update
- */
- "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
- {
- var oLang = oSettings.oLanguage.oPaginate;
- var oClasses = oSettings.oClasses;
- var fnClickHandler = function ( e ) {
- if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
- {
- fnCallbackDraw( oSettings );
- }
- };
-
- var sAppend = (!oSettings.bJUI) ?
- '<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sPrevious+'</a>'+
- '<a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button">'+oLang.sNext+'</a>'
- :
- '<a class="'+oSettings.oClasses.sPagePrevDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUIPrev+'"></span></a>'+
- '<a class="'+oSettings.oClasses.sPageNextDisabled+'" tabindex="'+oSettings.iTabIndex+'" role="button"><span class="'+oSettings.oClasses.sPageJUINext+'"></span></a>';
- $(nPaging).append( sAppend );
-
- var els = $('a', nPaging);
- var nPrevious = els[0],
- nNext = els[1];
-
- oSettings.oApi._fnBindAction( nPrevious, {action: "previous"}, fnClickHandler );
- oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
-
- /* ID the first elements only */
- if ( !oSettings.aanFeatures.p )
- {
- nPaging.id = oSettings.sTableId+'_paginate';
- nPrevious.id = oSettings.sTableId+'_previous';
- nNext.id = oSettings.sTableId+'_next';
-
- nPrevious.setAttribute('aria-controls', oSettings.sTableId);
- nNext.setAttribute('aria-controls', oSettings.sTableId);
- }
- },
-
- /*
- * Function: oPagination.two_button.fnUpdate
- * Purpose: Update the two button pagination at the end of the draw
- * Returns: -
- * Inputs: object:oSettings - dataTables settings object
- * function:fnCallbackDraw - draw function to call on page change
- */
- "fnUpdate": function ( oSettings, fnCallbackDraw )
- {
- if ( !oSettings.aanFeatures.p )
- {
- return;
- }
-
- var oClasses = oSettings.oClasses;
- var an = oSettings.aanFeatures.p;
- var nNode;
-
- /* Loop over each instance of the pager */
- for ( var i=0, iLen=an.length ; i<iLen ; i++ )
- {
- nNode = an[i].firstChild;
- if ( nNode )
- {
- /* Previous page */
- nNode.className = ( oSettings._iDisplayStart === 0 ) ?
- oClasses.sPagePrevDisabled : oClasses.sPagePrevEnabled;
-
- /* Next page */
- nNode = nNode.nextSibling;
- nNode.className = ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) ?
- oClasses.sPageNextDisabled : oClasses.sPageNextEnabled;
- }
- }
- }
- },
-
-
- /*
- * Variable: iFullNumbersShowPages
- * Purpose: Change the number of pages which can be seen
- * Scope: jQuery.fn.dataTableExt.oPagination
- */
- "iFullNumbersShowPages": 5,
-
- /*
- * Variable: full_numbers
- * Purpose: Full numbers pagination
- * Scope: jQuery.fn.dataTableExt.oPagination
- */
- "full_numbers": {
- /*
- * Function: oPagination.full_numbers.fnInit
- * Purpose: Initialise dom elements required for pagination with a list of the pages
- * Returns: -
- * Inputs: object:oSettings - dataTables settings object
- * node:nPaging - the DIV which contains this pagination control
- * function:fnCallbackDraw - draw function which must be called on update
- */
- "fnInit": function ( oSettings, nPaging, fnCallbackDraw )
- {
- var oLang = oSettings.oLanguage.oPaginate;
- var oClasses = oSettings.oClasses;
- var fnClickHandler = function ( e ) {
- if ( oSettings.oApi._fnPageChange( oSettings, e.data.action ) )
- {
- fnCallbackDraw( oSettings );
- }
- };
-
- $(nPaging).append(
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageFirst+'">'+oLang.sFirst+'</a>'+
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPagePrevious+'">'+oLang.sPrevious+'</a>'+
- '<span></span>'+
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageNext+'">'+oLang.sNext+'</a>'+
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+" "+oClasses.sPageLast+'">'+oLang.sLast+'</a>'
- );
- var els = $('a', nPaging);
- var nFirst = els[0],
- nPrev = els[1],
- nNext = els[2],
- nLast = els[3];
-
- oSettings.oApi._fnBindAction( nFirst, {action: "first"}, fnClickHandler );
- oSettings.oApi._fnBindAction( nPrev, {action: "previous"}, fnClickHandler );
- oSettings.oApi._fnBindAction( nNext, {action: "next"}, fnClickHandler );
- oSettings.oApi._fnBindAction( nLast, {action: "last"}, fnClickHandler );
-
- /* ID the first elements only */
- if ( !oSettings.aanFeatures.p )
- {
- nPaging.id = oSettings.sTableId+'_paginate';
- nFirst.id =oSettings.sTableId+'_first';
- nPrev.id =oSettings.sTableId+'_previous';
- nNext.id =oSettings.sTableId+'_next';
- nLast.id =oSettings.sTableId+'_last';
- }
- },
-
- /*
- * Function: oPagination.full_numbers.fnUpdate
- * Purpose: Update the list of page buttons shows
- * Returns: -
- * Inputs: object:oSettings - dataTables settings object
- * function:fnCallbackDraw - draw function to call on page change
- */
- "fnUpdate": function ( oSettings, fnCallbackDraw )
- {
- if ( !oSettings.aanFeatures.p )
- {
- return;
- }
-
- var iPageCount = DataTable.ext.oPagination.iFullNumbersShowPages;
- var iPageCountHalf = Math.floor(iPageCount / 2);
- var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);
- var iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1;
- var sList = "";
- var iStartButton, iEndButton, i, iLen;
- var oClasses = oSettings.oClasses;
- var anButtons, anStatic, nPaginateList, nNode;
- var an = oSettings.aanFeatures.p;
- var fnBind = function (j) {
- oSettings.oApi._fnBindAction( this, {"page": j+iStartButton-1}, function(e) {
- /* Use the information in the element to jump to the required page */
- oSettings.oApi._fnPageChange( oSettings, e.data.page );
- fnCallbackDraw( oSettings );
- e.preventDefault();
- } );
- };
-
- /* Pages calculation */
- if ( oSettings._iDisplayLength === -1 )
- {
- iStartButton = 1;
- iEndButton = 1;
- iCurrentPage = 1;
- }
- else if (iPages < iPageCount)
- {
- iStartButton = 1;
- iEndButton = iPages;
- }
- else if (iCurrentPage <= iPageCountHalf)
- {
- iStartButton = 1;
- iEndButton = iPageCount;
- }
- else if (iCurrentPage >= (iPages - iPageCountHalf))
- {
- iStartButton = iPages - iPageCount + 1;
- iEndButton = iPages;
- }
- else
- {
- iStartButton = iCurrentPage - Math.ceil(iPageCount / 2) + 1;
- iEndButton = iStartButton + iPageCount - 1;
- }
-
-
- /* Build the dynamic list */
- for ( i=iStartButton ; i<=iEndButton ; i++ )
- {
- sList += (iCurrentPage !== i) ?
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButton+'">'+oSettings.fnFormatNumber(i)+'</a>' :
- '<a tabindex="'+oSettings.iTabIndex+'" class="'+oClasses.sPageButtonActive+'">'+oSettings.fnFormatNumber(i)+'</a>';
- }
-
- /* Loop over each instance of the pager */
- for ( i=0, iLen=an.length ; i<iLen ; i++ )
- {
- nNode = an[i];
- if ( !nNode.hasChildNodes() )
- {
- continue;
- }
-
- /* Build up the dynamic list first - html and listeners */
- $('span:eq(0)', nNode)
- .html( sList )
- .children('a').each( fnBind );
-
- /* Update the permanent button's classes */
- anButtons = nNode.getElementsByTagName('a');
- anStatic = [
- anButtons[0], anButtons[1],
- anButtons[anButtons.length-2], anButtons[anButtons.length-1]
- ];
-
- $(anStatic).removeClass( oClasses.sPageButton+" "+oClasses.sPageButtonActive+" "+oClasses.sPageButtonStaticDisabled );
- $([anStatic[0], anStatic[1]]).addClass(
- (iCurrentPage==1) ?
- oClasses.sPageButtonStaticDisabled :
- oClasses.sPageButton
- );
- $([anStatic[2], anStatic[3]]).addClass(
- (iPages===0 || iCurrentPage===iPages || oSettings._iDisplayLength===-1) ?
- oClasses.sPageButtonStaticDisabled :
- oClasses.sPageButton
- );
- }
- }
- }
- } );
-
- $.extend( DataTable.ext.oSort, {
- /*
- * text sorting
- */
- "string-pre": function ( a )
- {
- if ( typeof a != 'string' ) {
- a = (a !== null && a.toString) ? a.toString() : '';
- }
- return a.toLowerCase();
- },
-
- "string-asc": function ( x, y )
- {
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- },
-
- "string-desc": function ( x, y )
- {
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- },
-
-
- /*
- * html sorting (ignore html tags)
- */
- "html-pre": function ( a )
- {
- return a.replace( /<.*?>/g, "" ).toLowerCase();
- },
-
- "html-asc": function ( x, y )
- {
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- },
-
- "html-desc": function ( x, y )
- {
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- },
-
-
- /*
- * date sorting
- */
- "date-pre": function ( a )
- {
- var x = Date.parse( a );
-
- if ( isNaN(x) || x==="" )
- {
- x = Date.parse( "01/01/1970 00:00:00" );
- }
- return x;
- },
-
- "date-asc": function ( x, y )
- {
- return x - y;
- },
-
- "date-desc": function ( x, y )
- {
- return y - x;
- },
-
-
- /*
- * numerical sorting
- */
- "numeric-pre": function ( a )
- {
- return (a=="-" || a==="") ? 0 : a*1;
- },
-
- "numeric-asc": function ( x, y )
- {
- return x - y;
- },
-
- "numeric-desc": function ( x, y )
- {
- return y - x;
- }
- } );
-
-
- $.extend( DataTable.ext.aTypes, [
- /*
- * Function: -
- * Purpose: Check to see if a string is numeric
- * Returns: string:'numeric' or null
- * Inputs: mixed:sText - string to check
- */
- function ( sData )
- {
- /* Allow zero length strings as a number */
- if ( typeof sData === 'number' )
- {
- return 'numeric';
- }
- else if ( typeof sData !== 'string' )
- {
- return null;
- }
-
- var sValidFirstChars = "0123456789-";
- var sValidChars = "0123456789.";
- var Char;
- var bDecimal = false;
-
- /* Check for a valid first char (no period and allow negatives) */
- Char = sData.charAt(0);
- if (sValidFirstChars.indexOf(Char) == -1)
- {
- return null;
- }
-
- /* Check all the other characters are valid */
- for ( var i=1 ; i<sData.length ; i++ )
- {
- Char = sData.charAt(i);
- if (sValidChars.indexOf(Char) == -1)
- {
- return null;
- }
-
- /* Only allowed one decimal place... */
- if ( Char == "." )
- {
- if ( bDecimal )
- {
- return null;
- }
- bDecimal = true;
- }
- }
-
- return 'numeric';
- },
-
- /*
- * Function: -
- * Purpose: Check to see if a string is actually a formatted date
- * Returns: string:'date' or null
- * Inputs: string:sText - string to check
- */
- function ( sData )
- {
- var iParse = Date.parse(sData);
- if ( (iParse !== null && !isNaN(iParse)) || (typeof sData === 'string' && sData.length === 0) )
- {
- return 'date';
- }
- return null;
- },
-
- /*
- * Function: -
- * Purpose: Check to see if a string should be treated as an HTML string
- * Returns: string:'html' or null
- * Inputs: string:sText - string to check
- */
- function ( sData )
- {
- if ( typeof sData === 'string' && sData.indexOf('<') != -1 && sData.indexOf('>') != -1 )
- {
- return 'html';
- }
- return null;
- }
- ] );
-
-
- // jQuery aliases
- $.fn.DataTable = DataTable;
- $.fn.dataTable = DataTable;
- $.fn.dataTableSettings = DataTable.settings;
- $.fn.dataTableExt = DataTable.ext;
-
-
- // Information about events fired by DataTables - for documentation.
- /**
- * Draw event, fired whenever the table is redrawn on the page, at the same point as
- * fnDrawCallback. This may be useful for binding events or performing calculations when
- * the table is altered at all.
- * @name DataTable#draw
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Filter event, fired when the filtering applied to the table (using the build in global
- * global filter, or column filters) is altered.
- * @name DataTable#filter
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Page change event, fired when the paging of the table is altered.
- * @name DataTable#page
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Sort event, fired when the sorting applied to the table is altered.
- * @name DataTable#sort
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * DataTables initialisation complete event, fired when the table is fully drawn,
- * including Ajax data loaded, if Ajax data is required.
- * @name DataTable#init
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used</li></ol>
- */
-
- /**
- * State save event, fired when the table has changed state a new state save is required.
- * This method allows modification of the state saving object prior to actually doing the
- * save, including addition or other state properties (for plug-ins) or modification
- * of a DataTables core property.
- * @name DataTable#stateSaveParams
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The state information to be saved
- */
-
- /**
- * State load event, fired when the table is loading state from the stored data, but
- * prior to the settings object being modified by the saved state - allowing modification
- * of the saved state is required or loading of state for a plug-in.
- * @name DataTable#stateLoadParams
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * State loaded event, fired when state has been loaded from stored data and the settings
- * object has been modified by the loaded data.
- * @name DataTable#stateLoaded
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * Processing event, fired when DataTables is doing some kind of processing (be it,
- * sort, filter or anything else). Can be used to indicate to the end user that
- * there is something happening, or that something has finished.
- * @name DataTable#processing
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {boolean} bShow Flag for if DataTables is doing processing or not
- */
-
- /**
- * Ajax (XHR) event, fired whenever an Ajax request is completed from a request to
- * made to the server for new data (note that this trigger is called in fnServerData,
- * if you override fnServerData and which to use this event, you need to trigger it in
- * you success function).
- * @name DataTable#xhr
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- * @param {object} json JSON returned from the server
- */
-
- /**
- * Destroy event, fired when the DataTable is destroyed by calling fnDestroy or passing
- * the bDestroy:true parameter in the initialisation object. This can be used to remove
- * bound events, added DOM nodes, etc.
- * @name DataTable#destroy
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-}));
-
-}(window, document));
-
diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.min.js b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.min.js
deleted file mode 100644
index 02694a4..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.min.js
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * File: jquery.dataTables.min.js
- * Version: 1.9.4
- * Author: Allan Jardine (www.sprymedia.co.uk)
- * Info: www.datatables.net
- *
- * Copyright 2008-2012 Allan Jardine, all rights reserved.
- *
- * This source file is free software, under either the GPL v2 license or a
- * BSD style license, available at:
- * http://datatables.net/license_gpl2
- * http://datatables.net/license_bsd
- *
- * This source file is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
- */
-(function(X,l,n){var L=function(h){var j=function(e){function o(a,b){var c=j.defaults.columns,d=a.aoColumns.length,c=h.extend({},j.models.oColumn,c,{sSortingClass:a.oClasses.sSortable,sSortingClassJUI:a.oClasses.sSortJUI,nTh:b?b:l.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.oDefaults:d});a.aoColumns.push(c);if(a.aoPreSearchCols[d]===n||null===a.aoPreSearchCols[d])a.aoPreSearchCols[d]=h.extend({},j.models.oSearch);else if(c=a.aoPreSearchCols[d],
-c.bRegex===n&&(c.bRegex=!0),c.bSmart===n&&(c.bSmart=!0),c.bCaseInsensitive===n)c.bCaseInsensitive=!0;m(a,d,null)}function m(a,b,c){var d=a.aoColumns[b];c!==n&&null!==c&&(c.mDataProp&&!c.mData&&(c.mData=c.mDataProp),c.sType!==n&&(d.sType=c.sType,d._bAutoType=!1),h.extend(d,c),p(d,c,"sWidth","sWidthOrig"),c.iDataSort!==n&&(d.aDataSort=[c.iDataSort]),p(d,c,"aDataSort"));var i=d.mRender?Q(d.mRender):null,f=Q(d.mData);d.fnGetData=function(a,b){var c=f(a,b);return d.mRender&&b&&""!==b?i(c,b,a):c};d.fnSetData=
-L(d.mData);a.oFeatures.bSort||(d.bSortable=!1);!d.bSortable||-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableNone,d.sSortingClassJUI=""):-1==h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortable,d.sSortingClassJUI=a.oClasses.sSortJUI):-1!=h.inArray("asc",d.asSorting)&&-1==h.inArray("desc",d.asSorting)?(d.sSortingClass=a.oClasses.sSortableAsc,d.sSortingClassJUI=a.oClasses.sSortJUIAscAllowed):-1==
-h.inArray("asc",d.asSorting)&&-1!=h.inArray("desc",d.asSorting)&&(d.sSortingClass=a.oClasses.sSortableDesc,d.sSortingClassJUI=a.oClasses.sSortJUIDescAllowed)}function k(a){if(!1===a.oFeatures.bAutoWidth)return!1;da(a);for(var b=0,c=a.aoColumns.length;b<c;b++)a.aoColumns[b].nTh.style.width=a.aoColumns[b].sWidth}function G(a,b){var c=r(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function R(a,b){var c=r(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function t(a){return r(a,"bVisible").length}
-function r(a,b){var c=[];h.map(a.aoColumns,function(a,i){a[b]&&c.push(i)});return c}function B(a){for(var b=j.ext.aTypes,c=b.length,d=0;d<c;d++){var i=b[d](a);if(null!==i)return i}return"string"}function u(a,b){for(var c=b.split(","),d=[],i=0,f=a.aoColumns.length;i<f;i++)for(var g=0;g<f;g++)if(a.aoColumns[i].sName==c[g]){d.push(g);break}return d}function M(a){for(var b="",c=0,d=a.aoColumns.length;c<d;c++)b+=a.aoColumns[c].sName+",";return b.length==d?"":b.slice(0,-1)}function ta(a,b,c,d){var i,f,
-g,e,w;if(b)for(i=b.length-1;0<=i;i--){var j=b[i].aTargets;h.isArray(j)||D(a,1,"aTargets must be an array of targets, not a "+typeof j);f=0;for(g=j.length;f<g;f++)if("number"===typeof j[f]&&0<=j[f]){for(;a.aoColumns.length<=j[f];)o(a);d(j[f],b[i])}else if("number"===typeof j[f]&&0>j[f])d(a.aoColumns.length+j[f],b[i]);else if("string"===typeof j[f]){e=0;for(w=a.aoColumns.length;e<w;e++)("_all"==j[f]||h(a.aoColumns[e].nTh).hasClass(j[f]))&&d(e,b[i])}}if(c){i=0;for(a=c.length;i<a;i++)d(i,c[i])}}function H(a,
-b){var c;c=h.isArray(b)?b.slice():h.extend(!0,{},b);var d=a.aoData.length,i=h.extend(!0,{},j.models.oRow);i._aData=c;a.aoData.push(i);for(var f,i=0,g=a.aoColumns.length;i<g;i++)c=a.aoColumns[i],"function"===typeof c.fnRender&&c.bUseRendered&&null!==c.mData?F(a,d,i,S(a,d,i)):F(a,d,i,v(a,d,i)),c._bAutoType&&"string"!=c.sType&&(f=v(a,d,i,"type"),null!==f&&""!==f&&(f=B(f),null===c.sType?c.sType=f:c.sType!=f&&"html"!=c.sType&&(c.sType="string")));a.aiDisplayMaster.push(d);a.oFeatures.bDeferRender||ea(a,
-d);return d}function ua(a){var b,c,d,i,f,g,e;if(a.bDeferLoading||null===a.sAjaxSource)for(b=a.nTBody.firstChild;b;){if("TR"==b.nodeName.toUpperCase()){c=a.aoData.length;b._DT_RowIndex=c;a.aoData.push(h.extend(!0,{},j.models.oRow,{nTr:b}));a.aiDisplayMaster.push(c);f=b.firstChild;for(d=0;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)F(a,c,d,h.trim(f.innerHTML)),d++;f=f.nextSibling}}b=b.nextSibling}i=T(a);d=[];b=0;for(c=i.length;b<c;b++)for(f=i[b].firstChild;f;)g=f.nodeName.toUpperCase(),("TD"==
-g||"TH"==g)&&d.push(f),f=f.nextSibling;c=0;for(i=a.aoColumns.length;c<i;c++){e=a.aoColumns[c];null===e.sTitle&&(e.sTitle=e.nTh.innerHTML);var w=e._bAutoType,o="function"===typeof e.fnRender,k=null!==e.sClass,n=e.bVisible,m,p;if(w||o||k||!n){g=0;for(b=a.aoData.length;g<b;g++)f=a.aoData[g],m=d[g*i+c],w&&"string"!=e.sType&&(p=v(a,g,c,"type"),""!==p&&(p=B(p),null===e.sType?e.sType=p:e.sType!=p&&"html"!=e.sType&&(e.sType="string"))),e.mRender?m.innerHTML=v(a,g,c,"display"):e.mData!==c&&(m.innerHTML=v(a,
-g,c,"display")),o&&(p=S(a,g,c),m.innerHTML=p,e.bUseRendered&&F(a,g,c,p)),k&&(m.className+=" "+e.sClass),n?f._anHidden[c]=null:(f._anHidden[c]=m,m.parentNode.removeChild(m)),e.fnCreatedCell&&e.fnCreatedCell.call(a.oInstance,m,v(a,g,c,"display"),f._aData,g,c)}}if(0!==a.aoRowCreatedCallback.length){b=0;for(c=a.aoData.length;b<c;b++)f=a.aoData[b],A(a,"aoRowCreatedCallback",null,[f.nTr,f._aData,b])}}function I(a,b){return b._DT_RowIndex!==n?b._DT_RowIndex:null}function fa(a,b,c){for(var b=J(a,b),d=0,a=
-a.aoColumns.length;d<a;d++)if(b[d]===c)return d;return-1}function Y(a,b,c,d){for(var i=[],f=0,g=d.length;f<g;f++)i.push(v(a,b,d[f],c));return i}function v(a,b,c,d){var i=a.aoColumns[c];if((c=i.fnGetData(a.aoData[b]._aData,d))===n)return a.iDrawError!=a.iDraw&&null===i.sDefaultContent&&(D(a,0,"Requested unknown parameter "+("function"==typeof i.mData?"{mData function}":"'"+i.mData+"'")+" from the data source for row "+b),a.iDrawError=a.iDraw),i.sDefaultContent;if(null===c&&null!==i.sDefaultContent)c=
-i.sDefaultContent;else if("function"===typeof c)return c();return"display"==d&&null===c?"":c}function F(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d)}function Q(a){if(null===a)return function(){return null};if("function"===typeof a)return function(b,d,i){return a(b,d,i)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var f=i.split("."),g;if(""!==i){var e=0;for(g=f.length;e<g;e++){if(i=f[e].match(U)){f[e]=f[e].replace(U,"");""!==f[e]&&(a=a[f[e]]);
-g=[];f.splice(0,e+1);for(var f=f.join("."),e=0,h=a.length;e<h;e++)g.push(b(a[e],d,f));a=i[0].substring(1,i[0].length-1);a=""===a?g:g.join(a);break}if(null===a||a[f[e]]===n)return n;a=a[f[e]]}}return a};return function(c,d){return b(c,d,a)}}return function(b){return b[a]}}function L(a){if(null===a)return function(){};if("function"===typeof a)return function(b,d){a(b,"set",d)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("["))){var b=function(a,d,i){var i=i.split("."),f,g,e=0;for(g=
-i.length-1;e<g;e++){if(f=i[e].match(U)){i[e]=i[e].replace(U,"");a[i[e]]=[];f=i.slice();f.splice(0,e+1);g=f.join(".");for(var h=0,j=d.length;h<j;h++)f={},b(f,d[h],g),a[i[e]].push(f);return}if(null===a[i[e]]||a[i[e]]===n)a[i[e]]={};a=a[i[e]]}a[i[i.length-1].replace(U,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Z(a){for(var b=[],c=a.aoData.length,d=0;d<c;d++)b.push(a.aoData[d]._aData);return b}function ga(a){a.aoData.splice(0,a.aoData.length);a.aiDisplayMaster.splice(0,
-a.aiDisplayMaster.length);a.aiDisplay.splice(0,a.aiDisplay.length);y(a)}function ha(a,b){for(var c=-1,d=0,i=a.length;d<i;d++)a[d]==b?c=d:a[d]>b&&a[d]--; -1!=c&&a.splice(c,1)}function S(a,b,c){var d=a.aoColumns[c];return d.fnRender({iDataRow:b,iDataColumn:c,oSettings:a,aData:a.aoData[b]._aData,mDataProp:d.mData},v(a,b,c,"display"))}function ea(a,b){var c=a.aoData[b],d;if(null===c.nTr){c.nTr=l.createElement("tr");c.nTr._DT_RowIndex=b;c._aData.DT_RowId&&(c.nTr.id=c._aData.DT_RowId);c._aData.DT_RowClass&&
-(c.nTr.className=c._aData.DT_RowClass);for(var i=0,f=a.aoColumns.length;i<f;i++){var g=a.aoColumns[i];d=l.createElement(g.sCellType);d.innerHTML="function"===typeof g.fnRender&&(!g.bUseRendered||null===g.mData)?S(a,b,i):v(a,b,i,"display");null!==g.sClass&&(d.className=g.sClass);g.bVisible?(c.nTr.appendChild(d),c._anHidden[i]=null):c._anHidden[i]=d;g.fnCreatedCell&&g.fnCreatedCell.call(a.oInstance,d,v(a,b,i,"display"),c._aData,b,i)}A(a,"aoRowCreatedCallback",null,[c.nTr,c._aData,b])}}function va(a){var b,
-c,d;if(0!==h("th, td",a.nTHead).length){b=0;for(d=a.aoColumns.length;b<d;b++)if(c=a.aoColumns[b].nTh,c.setAttribute("role","columnheader"),a.aoColumns[b].bSortable&&(c.setAttribute("tabindex",a.iTabIndex),c.setAttribute("aria-controls",a.sTableId)),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),a.aoColumns[b].sTitle!=c.innerHTML)c.innerHTML=a.aoColumns[b].sTitle}else{var i=l.createElement("tr");b=0;for(d=a.aoColumns.length;b<d;b++)c=a.aoColumns[b].nTh,c.innerHTML=a.aoColumns[b].sTitle,
-c.setAttribute("tabindex","0"),null!==a.aoColumns[b].sClass&&h(c).addClass(a.aoColumns[b].sClass),i.appendChild(c);h(a.nTHead).html("")[0].appendChild(i);V(a.aoHeader,a.nTHead)}h(a.nTHead).children("tr").attr("role","row");if(a.bJUI){b=0;for(d=a.aoColumns.length;b<d;b++){c=a.aoColumns[b].nTh;i=l.createElement("div");i.className=a.oClasses.sSortJUIWrapper;h(c).contents().appendTo(i);var f=l.createElement("span");f.className=a.oClasses.sSortIcon;i.appendChild(f);c.appendChild(i)}}if(a.oFeatures.bSort)for(b=
-0;b<a.aoColumns.length;b++)!1!==a.aoColumns[b].bSortable?ia(a,a.aoColumns[b].nTh,b):h(a.aoColumns[b].nTh).addClass(a.oClasses.sSortableNone);""!==a.oClasses.sFooterTH&&h(a.nTFoot).children("tr").children("th").addClass(a.oClasses.sFooterTH);if(null!==a.nTFoot){c=N(a,null,a.aoFooter);b=0;for(d=a.aoColumns.length;b<d;b++)c[b]&&(a.aoColumns[b].nTf=c[b],a.aoColumns[b].sClass&&h(c[b]).addClass(a.aoColumns[b].sClass))}}function W(a,b,c){var d,i,f,g=[],e=[],h=a.aoColumns.length,j;c===n&&(c=!1);d=0;for(i=
-b.length;d<i;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=h-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);e.push([])}d=0;for(i=g.length;d<i;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(j=h=1,e[d][f]===n){a.appendChild(g[d][f].cell);for(e[d][f]=1;g[d+h]!==n&&g[d][f].cell==g[d+h][f].cell;)e[d+h][f]=1,h++;for(;g[d][f+j]!==n&&g[d][f].cell==g[d][f+j].cell;){for(c=0;c<h;c++)e[d+c][f+j]=1;j++}g[d][f].cell.rowSpan=h;g[d][f].cell.colSpan=j}}}function x(a){var b=
-A(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))E(a,!1);else{var c,d,b=[],i=0,f=a.asStripeClasses.length;c=a.aoOpenRows.length;a.bDrawing=!0;a.iInitDisplayStart!==n&&-1!=a.iInitDisplayStart&&(a._iDisplayStart=a.oFeatures.bServerSide?a.iInitDisplayStart:a.iInitDisplayStart>=a.fnRecordsDisplay()?0:a.iInitDisplayStart,a.iInitDisplayStart=-1,y(a));if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++;else if(a.oFeatures.bServerSide){if(!a.bDestroying&&!wa(a))return}else a.iDraw++;if(0!==a.aiDisplay.length){var g=
-a._iDisplayStart;d=a._iDisplayEnd;a.oFeatures.bServerSide&&(g=0,d=a.aoData.length);for(;g<d;g++){var e=a.aoData[a.aiDisplay[g]];null===e.nTr&&ea(a,a.aiDisplay[g]);var j=e.nTr;if(0!==f){var o=a.asStripeClasses[i%f];e._sRowStripe!=o&&(h(j).removeClass(e._sRowStripe).addClass(o),e._sRowStripe=o)}A(a,"aoRowCallback",null,[j,a.aoData[a.aiDisplay[g]]._aData,i,g]);b.push(j);i++;if(0!==c)for(e=0;e<c;e++)if(j==a.aoOpenRows[e].nParent){b.push(a.aoOpenRows[e].nTr);break}}}else b[0]=l.createElement("tr"),a.asStripeClasses[0]&&
-(b[0].className=a.asStripeClasses[0]),c=a.oLanguage,f=c.sZeroRecords,1==a.iDraw&&null!==a.sAjaxSource&&!a.oFeatures.bServerSide?f=c.sLoadingRecords:c.sEmptyTable&&0===a.fnRecordsTotal()&&(f=c.sEmptyTable),c=l.createElement("td"),c.setAttribute("valign","top"),c.colSpan=t(a),c.className=a.oClasses.sRowEmpty,c.innerHTML=ja(a,f),b[i].appendChild(c);A(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);A(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],
-Z(a),a._iDisplayStart,a.fnDisplayEnd(),a.aiDisplay]);i=l.createDocumentFragment();c=l.createDocumentFragment();if(a.nTBody){f=a.nTBody.parentNode;c.appendChild(a.nTBody);if(!a.oScroll.bInfinite||!a._bInitComplete||a.bSorted||a.bFiltered)for(;c=a.nTBody.firstChild;)a.nTBody.removeChild(c);c=0;for(d=b.length;c<d;c++)i.appendChild(b[c]);a.nTBody.appendChild(i);null!==f&&f.appendChild(a.nTBody)}A(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1;a.oFeatures.bServerSide&&(E(a,!1),
-a._bInitComplete||$(a))}}function aa(a){a.oFeatures.bSort?O(a,a.oPreviousSearch):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(y(a),x(a))}function xa(a){var b=h("<div></div>")[0];a.nTable.parentNode.insertBefore(b,a.nTable);a.nTableWrapper=h('<div id="'+a.sTableId+'_wrapper" class="'+a.oClasses.sWrapper+'" role="grid"></div>')[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var c=a.nTableWrapper,d=a.sDom.split(""),i,f,g,e,w,o,k,m=0;m<d.length;m++){f=0;g=d[m];if("<"==g){e=h("<div></div>")[0];w=d[m+
-1];if("'"==w||'"'==w){o="";for(k=2;d[m+k]!=w;)o+=d[m+k],k++;"H"==o?o=a.oClasses.sJUIHeader:"F"==o&&(o=a.oClasses.sJUIFooter);-1!=o.indexOf(".")?(w=o.split("."),e.id=w[0].substr(1,w[0].length-1),e.className=w[1]):"#"==o.charAt(0)?e.id=o.substr(1,o.length-1):e.className=o;m+=k}c.appendChild(e);c=e}else if(">"==g)c=c.parentNode;else if("l"==g&&a.oFeatures.bPaginate&&a.oFeatures.bLengthChange)i=ya(a),f=1;else if("f"==g&&a.oFeatures.bFilter)i=za(a),f=1;else if("r"==g&&a.oFeatures.bProcessing)i=Aa(a),f=
-1;else if("t"==g)i=Ba(a),f=1;else if("i"==g&&a.oFeatures.bInfo)i=Ca(a),f=1;else if("p"==g&&a.oFeatures.bPaginate)i=Da(a),f=1;else if(0!==j.ext.aoFeatures.length){e=j.ext.aoFeatures;k=0;for(w=e.length;k<w;k++)if(g==e[k].cFeature){(i=e[k].fnInit(a))&&(f=1);break}}1==f&&null!==i&&("object"!==typeof a.aanFeatures[g]&&(a.aanFeatures[g]=[]),a.aanFeatures[g].push(i),c.appendChild(i))}b.parentNode.replaceChild(a.nTableWrapper,b)}function V(a,b){var c=h(b).children("tr"),d,i,f,g,e,j,o,k,m,p;a.splice(0,a.length);
-f=0;for(j=c.length;f<j;f++)a.push([]);f=0;for(j=c.length;f<j;f++){d=c[f];for(i=d.firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase()){k=1*i.getAttribute("colspan");m=1*i.getAttribute("rowspan");k=!k||0===k||1===k?1:k;m=!m||0===m||1===m?1:m;g=0;for(e=a[f];e[g];)g++;o=g;p=1===k?!0:!1;for(e=0;e<k;e++)for(g=0;g<m;g++)a[f+g][o+e]={cell:i,unique:p},a[f+g].nTr=d}i=i.nextSibling}}}function N(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],V(c,b)));for(var b=0,i=c.length;b<i;b++)for(var f=
-0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function wa(a){if(a.bAjaxDataGet){a.iDraw++;E(a,!0);var b=Ea(a);ka(a,b);a.fnServerData.call(a.oInstance,a.sAjaxSource,b,function(b){Fa(a,b)},a);return!1}return!0}function Ea(a){var b=a.aoColumns.length,c=[],d,i,f,g;c.push({name:"sEcho",value:a.iDraw});c.push({name:"iColumns",value:b});c.push({name:"sColumns",value:M(a)});c.push({name:"iDisplayStart",value:a._iDisplayStart});c.push({name:"iDisplayLength",
-value:!1!==a.oFeatures.bPaginate?a._iDisplayLength:-1});for(f=0;f<b;f++)d=a.aoColumns[f].mData,c.push({name:"mDataProp_"+f,value:"function"===typeof d?"function":d});if(!1!==a.oFeatures.bFilter){c.push({name:"sSearch",value:a.oPreviousSearch.sSearch});c.push({name:"bRegex",value:a.oPreviousSearch.bRegex});for(f=0;f<b;f++)c.push({name:"sSearch_"+f,value:a.aoPreSearchCols[f].sSearch}),c.push({name:"bRegex_"+f,value:a.aoPreSearchCols[f].bRegex}),c.push({name:"bSearchable_"+f,value:a.aoColumns[f].bSearchable})}if(!1!==
-a.oFeatures.bSort){var e=0;d=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(f=0;f<d.length;f++){i=a.aoColumns[d[f][0]].aDataSort;for(g=0;g<i.length;g++)c.push({name:"iSortCol_"+e,value:i[g]}),c.push({name:"sSortDir_"+e,value:d[f][1]}),e++}c.push({name:"iSortingCols",value:e});for(f=0;f<b;f++)c.push({name:"bSortable_"+f,value:a.aoColumns[f].bSortable})}return c}function ka(a,b){A(a,"aoServerParams","serverParams",[b])}function Fa(a,b){if(b.sEcho!==n){if(1*b.sEcho<
-a.iDraw)return;a.iDraw=1*b.sEcho}(!a.oScroll.bInfinite||a.oScroll.bInfinite&&(a.bSorted||a.bFiltered))&&ga(a);a._iRecordsTotal=parseInt(b.iTotalRecords,10);a._iRecordsDisplay=parseInt(b.iTotalDisplayRecords,10);var c=M(a),c=b.sColumns!==n&&""!==c&&b.sColumns!=c,d;c&&(d=u(a,b.sColumns));for(var i=Q(a.sAjaxDataProp)(b),f=0,g=i.length;f<g;f++)if(c){for(var e=[],h=0,j=a.aoColumns.length;h<j;h++)e.push(i[f][d[h]]);H(a,e)}else H(a,i[f]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;x(a);a.bAjaxDataGet=
-!0;E(a,!1)}function za(a){var b=a.oPreviousSearch,c=a.oLanguage.sSearch,c=-1!==c.indexOf("_INPUT_")?c.replace("_INPUT_",'<input type="text" />'):""===c?'<input type="text" />':c+' <input type="text" />',d=l.createElement("div");d.className=a.oClasses.sFilter;d.innerHTML="<label>"+c+"</label>";a.aanFeatures.f||(d.id=a.sTableId+"_filter");c=h('input[type="text"]',d);d._DT_Input=c[0];c.val(b.sSearch.replace('"',"&quot;"));c.bind("keyup.DT",function(){for(var c=a.aanFeatures.f,d=this.value===""?"":this.value,
-g=0,e=c.length;g<e;g++)c[g]!=h(this).parents("div.dataTables_filter")[0]&&h(c[g]._DT_Input).val(d);d!=b.sSearch&&K(a,{sSearch:d,bRegex:b.bRegex,bSmart:b.bSmart,bCaseInsensitive:b.bCaseInsensitive})});c.attr("aria-controls",a.sTableId).bind("keypress.DT",function(a){if(a.keyCode==13)return false});return d}function K(a,b,c){var d=a.oPreviousSearch,i=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};if(a.oFeatures.bServerSide)f(b);
-else{Ga(a,b.sSearch,c,b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<a.aoPreSearchCols.length;b++)Ha(a,i[b].sSearch,b,i[b].bRegex,i[b].bSmart,i[b].bCaseInsensitive);Ia(a)}a.bFiltered=!0;h(a.oInstance).trigger("filter",a);a._iDisplayStart=0;y(a);x(a);la(a,0)}function Ia(a){for(var b=j.ext.afnFiltering,c=r(a,"bSearchable"),d=0,i=b.length;d<i;d++)for(var f=0,g=0,e=a.aiDisplay.length;g<e;g++){var h=a.aiDisplay[g-f];b[d](a,Y(a,h,"filter",c),h)||(a.aiDisplay.splice(g-f,1),f++)}}function Ha(a,b,c,
-d,i,f){if(""!==b)for(var g=0,b=ma(b,d,i,f),d=a.aiDisplay.length-1;0<=d;d--)i=Ja(v(a,a.aiDisplay[d],c,"filter"),a.aoColumns[c].sType),b.test(i)||(a.aiDisplay.splice(d,1),g++)}function Ga(a,b,c,d,i,f){d=ma(b,d,i,f);i=a.oPreviousSearch;c||(c=0);0!==j.ext.afnFiltering.length&&(c=1);if(0>=b.length)a.aiDisplay.splice(0,a.aiDisplay.length),a.aiDisplay=a.aiDisplayMaster.slice();else if(a.aiDisplay.length==a.aiDisplayMaster.length||i.sSearch.length>b.length||1==c||0!==b.indexOf(i.sSearch)){a.aiDisplay.splice(0,
-a.aiDisplay.length);la(a,1);for(b=0;b<a.aiDisplayMaster.length;b++)d.test(a.asDataSearch[b])&&a.aiDisplay.push(a.aiDisplayMaster[b])}else for(b=c=0;b<a.asDataSearch.length;b++)d.test(a.asDataSearch[b])||(a.aiDisplay.splice(b-c,1),c++)}function la(a,b){if(!a.oFeatures.bServerSide){a.asDataSearch=[];for(var c=r(a,"bSearchable"),d=1===b?a.aiDisplayMaster:a.aiDisplay,i=0,f=d.length;i<f;i++)a.asDataSearch[i]=na(a,Y(a,d[i],"filter",c))}}function na(a,b){var c=b.join(" ");-1!==c.indexOf("&")&&(c=h("<div>").html(c).text());
-return c.replace(/[\n\r]/g," ")}function ma(a,b,c,d){if(c)return a=b?a.split(" "):oa(a).split(" "),a="^(?=.*?"+a.join(")(?=.*?")+").*$",RegExp(a,d?"i":"");a=b?a:oa(a);return RegExp(a,d?"i":"")}function Ja(a,b){return"function"===typeof j.ext.ofnSearch[b]?j.ext.ofnSearch[b](a):null===a?"":"html"==b?a.replace(/[\r\n]/g," ").replace(/<.*?>/g,""):"string"===typeof a?a.replace(/[\r\n]/g," "):a}function oa(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),
-"\\$1")}function Ca(a){var b=l.createElement("div");b.className=a.oClasses.sInfo;a.aanFeatures.i||(a.aoDrawCallback.push({fn:Ka,sName:"information"}),b.id=a.sTableId+"_info");a.nTable.setAttribute("aria-describedby",a.sTableId+"_info");return b}function Ka(a){if(a.oFeatures.bInfo&&0!==a.aanFeatures.i.length){var b=a.oLanguage,c=a._iDisplayStart+1,d=a.fnDisplayEnd(),i=a.fnRecordsTotal(),f=a.fnRecordsDisplay(),g;g=0===f?b.sInfoEmpty:b.sInfo;f!=i&&(g+=" "+b.sInfoFiltered);g+=b.sInfoPostFix;g=ja(a,g);
-null!==b.fnInfoCallback&&(g=b.fnInfoCallback.call(a.oInstance,a,c,d,i,f,g));a=a.aanFeatures.i;b=0;for(c=a.length;b<c;b++)h(a[b]).html(g)}}function ja(a,b){var c=a.fnFormatNumber(a._iDisplayStart+1),d=a.fnDisplayEnd(),d=a.fnFormatNumber(d),i=a.fnRecordsDisplay(),i=a.fnFormatNumber(i),f=a.fnRecordsTotal(),f=a.fnFormatNumber(f);a.oScroll.bInfinite&&(c=a.fnFormatNumber(1));return b.replace(/_START_/g,c).replace(/_END_/g,d).replace(/_TOTAL_/g,i).replace(/_MAX_/g,f)}function ba(a){var b,c,d=a.iInitDisplayStart;
-if(!1===a.bInitialised)setTimeout(function(){ba(a)},200);else{xa(a);va(a);W(a,a.aoHeader);a.nTFoot&&W(a,a.aoFooter);E(a,!0);a.oFeatures.bAutoWidth&&da(a);b=0;for(c=a.aoColumns.length;b<c;b++)null!==a.aoColumns[b].sWidth&&(a.aoColumns[b].nTh.style.width=q(a.aoColumns[b].sWidth));a.oFeatures.bSort?O(a):a.oFeatures.bFilter?K(a,a.oPreviousSearch):(a.aiDisplay=a.aiDisplayMaster.slice(),y(a),x(a));null!==a.sAjaxSource&&!a.oFeatures.bServerSide?(c=[],ka(a,c),a.fnServerData.call(a.oInstance,a.sAjaxSource,
-c,function(c){var f=a.sAjaxDataProp!==""?Q(a.sAjaxDataProp)(c):c;for(b=0;b<f.length;b++)H(a,f[b]);a.iInitDisplayStart=d;if(a.oFeatures.bSort)O(a);else{a.aiDisplay=a.aiDisplayMaster.slice();y(a);x(a)}E(a,false);$(a,c)},a)):a.oFeatures.bServerSide||(E(a,!1),$(a))}}function $(a,b){a._bInitComplete=!0;A(a,"aoInitComplete","init",[a,b])}function pa(a){var b=j.defaults.oLanguage;!a.sEmptyTable&&(a.sZeroRecords&&"No data available in table"===b.sEmptyTable)&&p(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&
-(a.sZeroRecords&&"Loading..."===b.sLoadingRecords)&&p(a,a,"sZeroRecords","sLoadingRecords")}function ya(a){if(a.oScroll.bInfinite)return null;var b='<select size="1" '+('name="'+a.sTableId+'_length"')+">",c,d,i=a.aLengthMenu;if(2==i.length&&"object"===typeof i[0]&&"object"===typeof i[1]){c=0;for(d=i[0].length;c<d;c++)b+='<option value="'+i[0][c]+'">'+i[1][c]+"</option>"}else{c=0;for(d=i.length;c<d;c++)b+='<option value="'+i[c]+'">'+i[c]+"</option>"}b+="</select>";i=l.createElement("div");a.aanFeatures.l||
-(i.id=a.sTableId+"_length");i.className=a.oClasses.sLength;i.innerHTML="<label>"+a.oLanguage.sLengthMenu.replace("_MENU_",b)+"</label>";h('select option[value="'+a._iDisplayLength+'"]',i).attr("selected",!0);h("select",i).bind("change.DT",function(){var b=h(this).val(),i=a.aanFeatures.l;c=0;for(d=i.length;c<d;c++)i[c]!=this.parentNode&&h("select",i[c]).val(b);a._iDisplayLength=parseInt(b,10);y(a);if(a.fnDisplayEnd()==a.fnRecordsDisplay()){a._iDisplayStart=a.fnDisplayEnd()-a._iDisplayLength;if(a._iDisplayStart<
-0)a._iDisplayStart=0}if(a._iDisplayLength==-1)a._iDisplayStart=0;x(a)});h("select",i).attr("aria-controls",a.sTableId);return i}function y(a){a._iDisplayEnd=!1===a.oFeatures.bPaginate?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength>a.aiDisplay.length||-1==a._iDisplayLength?a.aiDisplay.length:a._iDisplayStart+a._iDisplayLength}function Da(a){if(a.oScroll.bInfinite)return null;var b=l.createElement("div");b.className=a.oClasses.sPaging+a.sPaginationType;j.ext.oPagination[a.sPaginationType].fnInit(a,
-b,function(a){y(a);x(a)});a.aanFeatures.p||a.aoDrawCallback.push({fn:function(a){j.ext.oPagination[a.sPaginationType].fnUpdate(a,function(a){y(a);x(a)})},sName:"pagination"});return b}function qa(a,b){var c=a._iDisplayStart;if("number"===typeof b)a._iDisplayStart=b*a._iDisplayLength,a._iDisplayStart>a.fnRecordsDisplay()&&(a._iDisplayStart=0);else if("first"==b)a._iDisplayStart=0;else if("previous"==b)a._iDisplayStart=0<=a._iDisplayLength?a._iDisplayStart-a._iDisplayLength:0,0>a._iDisplayStart&&(a._iDisplayStart=
-0);else if("next"==b)0<=a._iDisplayLength?a._iDisplayStart+a._iDisplayLength<a.fnRecordsDisplay()&&(a._iDisplayStart+=a._iDisplayLength):a._iDisplayStart=0;else if("last"==b)if(0<=a._iDisplayLength){var d=parseInt((a.fnRecordsDisplay()-1)/a._iDisplayLength,10)+1;a._iDisplayStart=(d-1)*a._iDisplayLength}else a._iDisplayStart=0;else D(a,0,"Unknown paging action: "+b);h(a.oInstance).trigger("page",a);return c!=a._iDisplayStart}function Aa(a){var b=l.createElement("div");a.aanFeatures.r||(b.id=a.sTableId+
-"_processing");b.innerHTML=a.oLanguage.sProcessing;b.className=a.oClasses.sProcessing;a.nTable.parentNode.insertBefore(b,a.nTable);return b}function E(a,b){if(a.oFeatures.bProcessing)for(var c=a.aanFeatures.r,d=0,i=c.length;d<i;d++)c[d].style.visibility=b?"visible":"hidden";h(a.oInstance).trigger("processing",[a,b])}function Ba(a){if(""===a.oScroll.sX&&""===a.oScroll.sY)return a.nTable;var b=l.createElement("div"),c=l.createElement("div"),d=l.createElement("div"),i=l.createElement("div"),f=l.createElement("div"),
-g=l.createElement("div"),e=a.nTable.cloneNode(!1),j=a.nTable.cloneNode(!1),o=a.nTable.getElementsByTagName("thead")[0],k=0===a.nTable.getElementsByTagName("tfoot").length?null:a.nTable.getElementsByTagName("tfoot")[0],m=a.oClasses;c.appendChild(d);f.appendChild(g);i.appendChild(a.nTable);b.appendChild(c);b.appendChild(i);d.appendChild(e);e.appendChild(o);null!==k&&(b.appendChild(f),g.appendChild(j),j.appendChild(k));b.className=m.sScrollWrapper;c.className=m.sScrollHead;d.className=m.sScrollHeadInner;
-i.className=m.sScrollBody;f.className=m.sScrollFoot;g.className=m.sScrollFootInner;a.oScroll.bAutoCss&&(c.style.overflow="hidden",c.style.position="relative",f.style.overflow="hidden",i.style.overflow="auto");c.style.border="0";c.style.width="100%";f.style.border="0";d.style.width=""!==a.oScroll.sXInner?a.oScroll.sXInner:"100%";e.removeAttribute("id");e.style.marginLeft="0";a.nTable.style.marginLeft="0";null!==k&&(j.removeAttribute("id"),j.style.marginLeft="0");d=h(a.nTable).children("caption");0<
-d.length&&(d=d[0],"top"===d._captionSide?e.appendChild(d):"bottom"===d._captionSide&&k&&j.appendChild(d));""!==a.oScroll.sX&&(c.style.width=q(a.oScroll.sX),i.style.width=q(a.oScroll.sX),null!==k&&(f.style.width=q(a.oScroll.sX)),h(i).scroll(function(){c.scrollLeft=this.scrollLeft;if(k!==null)f.scrollLeft=this.scrollLeft}));""!==a.oScroll.sY&&(i.style.height=q(a.oScroll.sY));a.aoDrawCallback.push({fn:La,sName:"scrolling"});a.oScroll.bInfinite&&h(i).scroll(function(){if(!a.bDrawing&&h(this).scrollTop()!==
-0&&h(this).scrollTop()+h(this).height()>h(a.nTable).height()-a.oScroll.iLoadGap&&a.fnDisplayEnd()<a.fnRecordsDisplay()){qa(a,"next");y(a);x(a)}});a.nScrollHead=c;a.nScrollFoot=f;return b}function La(a){var b=a.nScrollHead.getElementsByTagName("div")[0],c=b.getElementsByTagName("table")[0],d=a.nTable.parentNode,i,f,g,e,j,o,k,m,p=[],n=[],l=null!==a.nTFoot?a.nScrollFoot.getElementsByTagName("div")[0]:null,R=null!==a.nTFoot?l.getElementsByTagName("table")[0]:null,r=a.oBrowser.bScrollOversize,s=function(a){k=
-a.style;k.paddingTop="0";k.paddingBottom="0";k.borderTopWidth="0";k.borderBottomWidth="0";k.height=0};h(a.nTable).children("thead, tfoot").remove();i=h(a.nTHead).clone()[0];a.nTable.insertBefore(i,a.nTable.childNodes[0]);g=a.nTHead.getElementsByTagName("tr");e=i.getElementsByTagName("tr");null!==a.nTFoot&&(j=h(a.nTFoot).clone()[0],a.nTable.insertBefore(j,a.nTable.childNodes[1]),o=a.nTFoot.getElementsByTagName("tr"),j=j.getElementsByTagName("tr"));""===a.oScroll.sX&&(d.style.width="100%",b.parentNode.style.width=
-"100%");var t=N(a,i);i=0;for(f=t.length;i<f;i++)m=G(a,i),t[i].style.width=a.aoColumns[m].sWidth;null!==a.nTFoot&&C(function(a){a.style.width=""},j);a.oScroll.bCollapse&&""!==a.oScroll.sY&&(d.style.height=d.offsetHeight+a.nTHead.offsetHeight+"px");i=h(a.nTable).outerWidth();if(""===a.oScroll.sX){if(a.nTable.style.width="100%",r&&(h("tbody",d).height()>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(h(a.nTable).outerWidth()-a.oScroll.iBarWidth)}else""!==a.oScroll.sXInner?a.nTable.style.width=
-q(a.oScroll.sXInner):i==h(d).width()&&h(d).height()<h(a.nTable).height()?(a.nTable.style.width=q(i-a.oScroll.iBarWidth),h(a.nTable).outerWidth()>i-a.oScroll.iBarWidth&&(a.nTable.style.width=q(i))):a.nTable.style.width=q(i);i=h(a.nTable).outerWidth();C(s,e);C(function(a){p.push(q(h(a).width()))},e);C(function(a,b){a.style.width=p[b]},g);h(e).height(0);null!==a.nTFoot&&(C(s,j),C(function(a){n.push(q(h(a).width()))},j),C(function(a,b){a.style.width=n[b]},o),h(j).height(0));C(function(a,b){a.innerHTML=
-"";a.style.width=p[b]},e);null!==a.nTFoot&&C(function(a,b){a.innerHTML="";a.style.width=n[b]},j);if(h(a.nTable).outerWidth()<i){g=d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")?i+a.oScroll.iBarWidth:i;if(r&&(d.scrollHeight>d.offsetHeight||"scroll"==h(d).css("overflow-y")))a.nTable.style.width=q(g-a.oScroll.iBarWidth);d.style.width=q(g);a.nScrollHead.style.width=q(g);null!==a.nTFoot&&(a.nScrollFoot.style.width=q(g));""===a.oScroll.sX?D(a,1,"The table cannot fit into the current element which will cause column misalignment. The table has been drawn at its minimum possible width."):
-""!==a.oScroll.sXInner&&D(a,1,"The table cannot fit into the current element which will cause column misalignment. Increase the sScrollXInner value or remove it to allow automatic calculation")}else d.style.width=q("100%"),a.nScrollHead.style.width=q("100%"),null!==a.nTFoot&&(a.nScrollFoot.style.width=q("100%"));""===a.oScroll.sY&&r&&(d.style.height=q(a.nTable.offsetHeight+a.oScroll.iBarWidth));""!==a.oScroll.sY&&a.oScroll.bCollapse&&(d.style.height=q(a.oScroll.sY),r=""!==a.oScroll.sX&&a.nTable.offsetWidth>
-d.offsetWidth?a.oScroll.iBarWidth:0,a.nTable.offsetHeight<d.offsetHeight&&(d.style.height=q(a.nTable.offsetHeight+r)));r=h(a.nTable).outerWidth();c.style.width=q(r);b.style.width=q(r);c=h(a.nTable).height()>d.clientHeight||"scroll"==h(d).css("overflow-y");b.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px";null!==a.nTFoot&&(R.style.width=q(r),l.style.width=q(r),l.style.paddingRight=c?a.oScroll.iBarWidth+"px":"0px");h(d).scroll();if(a.bSorted||a.bFiltered)d.scrollTop=0}function C(a,b,c){for(var d=
-0,i=0,f=b.length,g,e;i<f;){g=b[i].firstChild;for(e=c?c[i].firstChild:null;g;)1===g.nodeType&&(c?a(g,e,d):a(g,d),d++),g=g.nextSibling,e=c?e.nextSibling:null;i++}}function Ma(a,b){if(!a||null===a||""===a)return 0;b||(b=l.body);var c,d=l.createElement("div");d.style.width=q(a);b.appendChild(d);c=d.offsetWidth;b.removeChild(d);return c}function da(a){var b=0,c,d=0,i=a.aoColumns.length,f,e,j=h("th",a.nTHead),o=a.nTable.getAttribute("width");e=a.nTable.parentNode;for(f=0;f<i;f++)a.aoColumns[f].bVisible&&
-(d++,null!==a.aoColumns[f].sWidth&&(c=Ma(a.aoColumns[f].sWidthOrig,e),null!==c&&(a.aoColumns[f].sWidth=q(c)),b++));if(i==j.length&&0===b&&d==i&&""===a.oScroll.sX&&""===a.oScroll.sY)for(f=0;f<a.aoColumns.length;f++)c=h(j[f]).width(),null!==c&&(a.aoColumns[f].sWidth=q(c));else{b=a.nTable.cloneNode(!1);f=a.nTHead.cloneNode(!0);d=l.createElement("tbody");c=l.createElement("tr");b.removeAttribute("id");b.appendChild(f);null!==a.nTFoot&&(b.appendChild(a.nTFoot.cloneNode(!0)),C(function(a){a.style.width=
-""},b.getElementsByTagName("tr")));b.appendChild(d);d.appendChild(c);d=h("thead th",b);0===d.length&&(d=h("tbody tr:eq(0)>td",b));j=N(a,f);for(f=d=0;f<i;f++){var k=a.aoColumns[f];k.bVisible&&null!==k.sWidthOrig&&""!==k.sWidthOrig?j[f-d].style.width=q(k.sWidthOrig):k.bVisible?j[f-d].style.width="":d++}for(f=0;f<i;f++)a.aoColumns[f].bVisible&&(d=Na(a,f),null!==d&&(d=d.cloneNode(!0),""!==a.aoColumns[f].sContentPadding&&(d.innerHTML+=a.aoColumns[f].sContentPadding),c.appendChild(d)));e.appendChild(b);
-""!==a.oScroll.sX&&""!==a.oScroll.sXInner?b.style.width=q(a.oScroll.sXInner):""!==a.oScroll.sX?(b.style.width="",h(b).width()<e.offsetWidth&&(b.style.width=q(e.offsetWidth))):""!==a.oScroll.sY?b.style.width=q(e.offsetWidth):o&&(b.style.width=q(o));b.style.visibility="hidden";Oa(a,b);i=h("tbody tr:eq(0)",b).children();0===i.length&&(i=N(a,h("thead",b)[0]));if(""!==a.oScroll.sX){for(f=d=e=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=null===a.aoColumns[f].sWidthOrig?e+h(i[d]).outerWidth():
-e+(parseInt(a.aoColumns[f].sWidth.replace("px",""),10)+(h(i[d]).outerWidth()-h(i[d]).width())),d++);b.style.width=q(e);a.nTable.style.width=q(e)}for(f=d=0;f<a.aoColumns.length;f++)a.aoColumns[f].bVisible&&(e=h(i[d]).width(),null!==e&&0<e&&(a.aoColumns[f].sWidth=q(e)),d++);i=h(b).css("width");a.nTable.style.width=-1!==i.indexOf("%")?i:q(h(b).outerWidth());b.parentNode.removeChild(b)}o&&(a.nTable.style.width=q(o))}function Oa(a,b){""===a.oScroll.sX&&""!==a.oScroll.sY?(h(b).width(),b.style.width=q(h(b).outerWidth()-
-a.oScroll.iBarWidth)):""!==a.oScroll.sX&&(b.style.width=q(h(b).outerWidth()))}function Na(a,b){var c=Pa(a,b);if(0>c)return null;if(null===a.aoData[c].nTr){var d=l.createElement("td");d.innerHTML=v(a,c,b,"");return d}return J(a,c)[b]}function Pa(a,b){for(var c=-1,d=-1,i=0;i<a.aoData.length;i++){var e=v(a,i,b,"display")+"",e=e.replace(/<.*?>/g,"");e.length>c&&(c=e.length,d=i)}return d}function q(a){if(null===a)return"0px";if("number"==typeof a)return 0>a?"0px":a+"px";var b=a.charCodeAt(a.length-1);
-return 48>b||57<b?a:a+"px"}function Qa(){var a=l.createElement("p"),b=a.style;b.width="100%";b.height="200px";b.padding="0px";var c=l.createElement("div"),b=c.style;b.position="absolute";b.top="0px";b.left="0px";b.visibility="hidden";b.width="200px";b.height="150px";b.padding="0px";b.overflow="hidden";c.appendChild(a);l.body.appendChild(c);b=a.offsetWidth;c.style.overflow="scroll";a=a.offsetWidth;b==a&&(a=c.clientWidth);l.body.removeChild(c);return b-a}function O(a,b){var c,d,i,e,g,k,o=[],m=[],p=
-j.ext.oSort,l=a.aoData,q=a.aoColumns,G=a.oLanguage.oAria;if(!a.oFeatures.bServerSide&&(0!==a.aaSorting.length||null!==a.aaSortingFixed)){o=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(c=0;c<o.length;c++)if(d=o[c][0],i=R(a,d),e=a.aoColumns[d].sSortDataType,j.ext.afnSortData[e])if(g=j.ext.afnSortData[e].call(a.oInstance,a,d,i),g.length===l.length){i=0;for(e=l.length;i<e;i++)F(a,i,d,g[i])}else D(a,0,"Returned data sort array (col "+d+") is the wrong length");c=
-0;for(d=a.aiDisplayMaster.length;c<d;c++)m[a.aiDisplayMaster[c]]=c;var r=o.length,s;c=0;for(d=l.length;c<d;c++)for(i=0;i<r;i++){s=q[o[i][0]].aDataSort;g=0;for(k=s.length;g<k;g++)e=q[s[g]].sType,e=p[(e?e:"string")+"-pre"],l[c]._aSortData[s[g]]=e?e(v(a,c,s[g],"sort")):v(a,c,s[g],"sort")}a.aiDisplayMaster.sort(function(a,b){var c,d,e,i,f;for(c=0;c<r;c++){f=q[o[c][0]].aDataSort;d=0;for(e=f.length;d<e;d++)if(i=q[f[d]].sType,i=p[(i?i:"string")+"-"+o[c][1]](l[a]._aSortData[f[d]],l[b]._aSortData[f[d]]),0!==
-i)return i}return p["numeric-asc"](m[a],m[b])})}(b===n||b)&&!a.oFeatures.bDeferRender&&P(a);c=0;for(d=a.aoColumns.length;c<d;c++)e=q[c].sTitle.replace(/<.*?>/g,""),i=q[c].nTh,i.removeAttribute("aria-sort"),i.removeAttribute("aria-label"),q[c].bSortable?0<o.length&&o[0][0]==c?(i.setAttribute("aria-sort","asc"==o[0][1]?"ascending":"descending"),i.setAttribute("aria-label",e+("asc"==(q[c].asSorting[o[0][2]+1]?q[c].asSorting[o[0][2]+1]:q[c].asSorting[0])?G.sSortAscending:G.sSortDescending))):i.setAttribute("aria-label",
-e+("asc"==q[c].asSorting[0]?G.sSortAscending:G.sSortDescending)):i.setAttribute("aria-label",e);a.bSorted=!0;h(a.oInstance).trigger("sort",a);a.oFeatures.bFilter?K(a,a.oPreviousSearch,1):(a.aiDisplay=a.aiDisplayMaster.slice(),a._iDisplayStart=0,y(a),x(a))}function ia(a,b,c,d){Ra(b,{},function(b){if(!1!==a.aoColumns[c].bSortable){var e=function(){var d,e;if(b.shiftKey){for(var f=!1,h=0;h<a.aaSorting.length;h++)if(a.aaSorting[h][0]==c){f=!0;d=a.aaSorting[h][0];e=a.aaSorting[h][2]+1;a.aoColumns[d].asSorting[e]?
-(a.aaSorting[h][1]=a.aoColumns[d].asSorting[e],a.aaSorting[h][2]=e):a.aaSorting.splice(h,1);break}!1===f&&a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0])}else 1==a.aaSorting.length&&a.aaSorting[0][0]==c?(d=a.aaSorting[0][0],e=a.aaSorting[0][2]+1,a.aoColumns[d].asSorting[e]||(e=0),a.aaSorting[0][1]=a.aoColumns[d].asSorting[e],a.aaSorting[0][2]=e):(a.aaSorting.splice(0,a.aaSorting.length),a.aaSorting.push([c,a.aoColumns[c].asSorting[0],0]));O(a)};a.oFeatures.bProcessing?(E(a,!0),setTimeout(function(){e();
-a.oFeatures.bServerSide||E(a,!1)},0)):e();"function"==typeof d&&d(a)}})}function P(a){var b,c,d,e,f,g=a.aoColumns.length,j=a.oClasses;for(b=0;b<g;b++)a.aoColumns[b].bSortable&&h(a.aoColumns[b].nTh).removeClass(j.sSortAsc+" "+j.sSortDesc+" "+a.aoColumns[b].sSortingClass);c=null!==a.aaSortingFixed?a.aaSortingFixed.concat(a.aaSorting):a.aaSorting.slice();for(b=0;b<a.aoColumns.length;b++)if(a.aoColumns[b].bSortable){f=a.aoColumns[b].sSortingClass;e=-1;for(d=0;d<c.length;d++)if(c[d][0]==b){f="asc"==c[d][1]?
-j.sSortAsc:j.sSortDesc;e=d;break}h(a.aoColumns[b].nTh).addClass(f);a.bJUI&&(f=h("span."+j.sSortIcon,a.aoColumns[b].nTh),f.removeClass(j.sSortJUIAsc+" "+j.sSortJUIDesc+" "+j.sSortJUI+" "+j.sSortJUIAscAllowed+" "+j.sSortJUIDescAllowed),f.addClass(-1==e?a.aoColumns[b].sSortingClassJUI:"asc"==c[e][1]?j.sSortJUIAsc:j.sSortJUIDesc))}else h(a.aoColumns[b].nTh).addClass(a.aoColumns[b].sSortingClass);f=j.sSortColumn;if(a.oFeatures.bSort&&a.oFeatures.bSortClasses){a=J(a);e=[];for(b=0;b<g;b++)e.push("");b=0;
-for(d=1;b<c.length;b++)j=parseInt(c[b][0],10),e[j]=f+d,3>d&&d++;f=RegExp(f+"[123]");var o;b=0;for(c=a.length;b<c;b++)j=b%g,d=a[b].className,o=e[j],j=d.replace(f,o),j!=d?a[b].className=h.trim(j):0<o.length&&-1==d.indexOf(o)&&(a[b].className=d+" "+o)}}function ra(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b,c;b=a.oScroll.bInfinite;var d={iCreate:(new Date).getTime(),iStart:b?0:a._iDisplayStart,iEnd:b?a._iDisplayLength:a._iDisplayEnd,iLength:a._iDisplayLength,aaSorting:h.extend(!0,[],a.aaSorting),
-oSearch:h.extend(!0,{},a.oPreviousSearch),aoSearchCols:h.extend(!0,[],a.aoPreSearchCols),abVisCols:[]};b=0;for(c=a.aoColumns.length;b<c;b++)d.abVisCols.push(a.aoColumns[b].bVisible);A(a,"aoStateSaveParams","stateSaveParams",[a,d]);a.fnStateSave.call(a.oInstance,a,d)}}function Sa(a,b){if(a.oFeatures.bStateSave){var c=a.fnStateLoad.call(a.oInstance,a);if(c){var d=A(a,"aoStateLoadParams","stateLoadParams",[a,c]);if(-1===h.inArray(!1,d)){a.oLoadedState=h.extend(!0,{},c);a._iDisplayStart=c.iStart;a.iInitDisplayStart=
-c.iStart;a._iDisplayEnd=c.iEnd;a._iDisplayLength=c.iLength;a.aaSorting=c.aaSorting.slice();a.saved_aaSorting=c.aaSorting.slice();h.extend(a.oPreviousSearch,c.oSearch);h.extend(!0,a.aoPreSearchCols,c.aoSearchCols);b.saved_aoColumns=[];for(d=0;d<c.abVisCols.length;d++)b.saved_aoColumns[d]={},b.saved_aoColumns[d].bVisible=c.abVisCols[d];A(a,"aoStateLoaded","stateLoaded",[a,c])}}}}function s(a){for(var b=0;b<j.settings.length;b++)if(j.settings[b].nTable===a)return j.settings[b];return null}function T(a){for(var b=
-[],a=a.aoData,c=0,d=a.length;c<d;c++)null!==a[c].nTr&&b.push(a[c].nTr);return b}function J(a,b){var c=[],d,e,f,g,h,j;e=0;var o=a.aoData.length;b!==n&&(e=b,o=b+1);for(f=e;f<o;f++)if(j=a.aoData[f],null!==j.nTr){e=[];for(d=j.nTr.firstChild;d;)g=d.nodeName.toLowerCase(),("td"==g||"th"==g)&&e.push(d),d=d.nextSibling;g=d=0;for(h=a.aoColumns.length;g<h;g++)a.aoColumns[g].bVisible?c.push(e[g-d]):(c.push(j._anHidden[g]),d++)}return c}function D(a,b,c){a=null===a?"DataTables warning: "+c:"DataTables warning (table id = '"+
-a.sTableId+"'): "+c;if(0===b)if("alert"==j.ext.sErrMode)alert(a);else throw Error(a);else X.console&&console.log&&console.log(a)}function p(a,b,c,d){d===n&&(d=c);b[c]!==n&&(a[d]=b[c])}function Ta(a,b){var c,d;for(d in b)b.hasOwnProperty(d)&&(c=b[d],"object"===typeof e[d]&&null!==c&&!1===h.isArray(c)?h.extend(!0,a[d],c):a[d]=c);return a}function Ra(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&c(a)}).bind("selectstart.DT",function(){return!1})}
-function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function A(a,b,c,d){for(var b=a[b],e=[],f=b.length-1;0<=f;f--)e.push(b[f].fn.apply(a.oInstance,d));null!==c&&h(a.oInstance).trigger(c,d);return e}function Ua(a){var b=h('<div style="position:absolute; top:0; left:0; height:1px; width:1px; overflow:hidden"><div style="position:absolute; top:1px; left:1px; width:100px; overflow:scroll;"><div id="DT_BrowserTest" style="width:100%; height:10px;"></div></div></div>')[0];l.body.appendChild(b);a.oBrowser.bScrollOversize=
-100===h("#DT_BrowserTest",b)[0].offsetWidth?!0:!1;l.body.removeChild(b)}function Va(a){return function(){var b=[s(this[j.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return j.ext.oApi[a].apply(this,b)}}var U=/\[.*?\]$/,Wa=X.JSON?JSON.stringify:function(a){var b=typeof a;if("object"!==b||null===a)return"string"===b&&(a='"'+a+'"'),a+"";var c,d,e=[],f=h.isArray(a);for(c in a)d=a[c],b=typeof d,"string"===b?d='"'+d+'"':"object"===b&&null!==d&&(d=Wa(d)),e.push((f?"":'"'+c+'":')+d);return(f?
-"[":"{")+e+(f?"]":"}")};this.$=function(a,b){var c,d,e=[],f;d=s(this[j.ext.iApiIndex]);var g=d.aoData,o=d.aiDisplay,k=d.aiDisplayMaster;b||(b={});b=h.extend({},{filter:"none",order:"current",page:"all"},b);if("current"==b.page){c=d._iDisplayStart;for(d=d.fnDisplayEnd();c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("current"==b.order&&"none"==b.filter){c=0;for(d=k.length;c<d;c++)(f=g[k[c]].nTr)&&e.push(f)}else if("current"==b.order&&"applied"==b.filter){c=0;for(d=o.length;c<d;c++)(f=g[o[c]].nTr)&&e.push(f)}else if("original"==
-b.order&&"none"==b.filter){c=0;for(d=g.length;c<d;c++)(f=g[c].nTr)&&e.push(f)}else if("original"==b.order&&"applied"==b.filter){c=0;for(d=g.length;c<d;c++)f=g[c].nTr,-1!==h.inArray(c,o)&&f&&e.push(f)}else D(d,1,"Unknown selection options");e=h(e);c=e.filter(a);e=e.find(a);return h([].concat(h.makeArray(c),h.makeArray(e)))};this._=function(a,b){var c=[],d,e,f=this.$(a,b);d=0;for(e=f.length;d<e;d++)c.push(this.fnGetData(f[d]));return c};this.fnAddData=function(a,b){if(0===a.length)return[];var c=[],
-d,e=s(this[j.ext.iApiIndex]);if("object"===typeof a[0]&&null!==a[0])for(var f=0;f<a.length;f++){d=H(e,a[f]);if(-1==d)return c;c.push(d)}else{d=H(e,a);if(-1==d)return c;c.push(d)}e.aiDisplay=e.aiDisplayMaster.slice();(b===n||b)&&aa(e);return c};this.fnAdjustColumnSizing=function(a){var b=s(this[j.ext.iApiIndex]);k(b);a===n||a?this.fnDraw(!1):(""!==b.oScroll.sX||""!==b.oScroll.sY)&&this.oApi._fnScrollDraw(b)};this.fnClearTable=function(a){var b=s(this[j.ext.iApiIndex]);ga(b);(a===n||a)&&x(b)};this.fnClose=
-function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return(a=b.aoOpenRows[c].nTr.parentNode)&&a.removeChild(b.aoOpenRows[c].nTr),b.aoOpenRows.splice(c,1),0;return 1};this.fnDeleteRow=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,a="object"===typeof a?I(d,a):a,g=d.aoData.splice(a,1);e=0;for(f=d.aoData.length;e<f;e++)null!==d.aoData[e].nTr&&(d.aoData[e].nTr._DT_RowIndex=e);e=h.inArray(a,d.aiDisplay);d.asDataSearch.splice(e,1);ha(d.aiDisplayMaster,
-a);ha(d.aiDisplay,a);"function"===typeof b&&b.call(this,d,g);d._iDisplayStart>=d.fnRecordsDisplay()&&(d._iDisplayStart-=d._iDisplayLength,0>d._iDisplayStart&&(d._iDisplayStart=0));if(c===n||c)y(d),x(d);return g};this.fnDestroy=function(a){var b=s(this[j.ext.iApiIndex]),c=b.nTableWrapper.parentNode,d=b.nTBody,i,f,a=a===n?!1:a;b.bDestroying=!0;A(b,"aoDestroyCallback","destroy",[b]);if(!a){i=0;for(f=b.aoColumns.length;i<f;i++)!1===b.aoColumns[i].bVisible&&this.fnSetColumnVis(i,!0)}h(b.nTableWrapper).find("*").andSelf().unbind(".DT");
-h("tbody>tr>td."+b.oClasses.sRowEmpty,b.nTable).parent().remove();b.nTable!=b.nTHead.parentNode&&(h(b.nTable).children("thead").remove(),b.nTable.appendChild(b.nTHead));b.nTFoot&&b.nTable!=b.nTFoot.parentNode&&(h(b.nTable).children("tfoot").remove(),b.nTable.appendChild(b.nTFoot));b.nTable.parentNode.removeChild(b.nTable);h(b.nTableWrapper).remove();b.aaSorting=[];b.aaSortingFixed=[];P(b);h(T(b)).removeClass(b.asStripeClasses.join(" "));h("th, td",b.nTHead).removeClass([b.oClasses.sSortable,b.oClasses.sSortableAsc,
-b.oClasses.sSortableDesc,b.oClasses.sSortableNone].join(" "));b.bJUI&&(h("th span."+b.oClasses.sSortIcon+", td span."+b.oClasses.sSortIcon,b.nTHead).remove(),h("th, td",b.nTHead).each(function(){var a=h("div."+b.oClasses.sSortJUIWrapper,this),c=a.contents();h(this).append(c);a.remove()}));!a&&b.nTableReinsertBefore?c.insertBefore(b.nTable,b.nTableReinsertBefore):a||c.appendChild(b.nTable);i=0;for(f=b.aoData.length;i<f;i++)null!==b.aoData[i].nTr&&d.appendChild(b.aoData[i].nTr);!0===b.oFeatures.bAutoWidth&&
-(b.nTable.style.width=q(b.sDestroyWidth));if(f=b.asDestroyStripes.length){a=h(d).children("tr");for(i=0;i<f;i++)a.filter(":nth-child("+f+"n + "+i+")").addClass(b.asDestroyStripes[i])}i=0;for(f=j.settings.length;i<f;i++)j.settings[i]==b&&j.settings.splice(i,1);e=b=null};this.fnDraw=function(a){var b=s(this[j.ext.iApiIndex]);!1===a?(y(b),x(b)):aa(b)};this.fnFilter=function(a,b,c,d,e,f){var g=s(this[j.ext.iApiIndex]);if(g.oFeatures.bFilter){if(c===n||null===c)c=!1;if(d===n||null===d)d=!0;if(e===n||null===
-e)e=!0;if(f===n||null===f)f=!0;if(b===n||null===b){if(K(g,{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f},1),e&&g.aanFeatures.f){b=g.aanFeatures.f;c=0;for(d=b.length;c<d;c++)try{b[c]._DT_Input!=l.activeElement&&h(b[c]._DT_Input).val(a)}catch(o){h(b[c]._DT_Input).val(a)}}}else h.extend(g.aoPreSearchCols[b],{sSearch:a+"",bRegex:c,bSmart:d,bCaseInsensitive:f}),K(g,g.oPreviousSearch,1)}};this.fnGetData=function(a,b){var c=s(this[j.ext.iApiIndex]);if(a!==n){var d=a;if("object"===typeof a){var e=a.nodeName.toLowerCase();
-"tr"===e?d=I(c,a):"td"===e&&(d=I(c,a.parentNode),b=fa(c,d,a))}return b!==n?v(c,d,b,""):c.aoData[d]!==n?c.aoData[d]._aData:null}return Z(c)};this.fnGetNodes=function(a){var b=s(this[j.ext.iApiIndex]);return a!==n?b.aoData[a]!==n?b.aoData[a].nTr:null:T(b)};this.fnGetPosition=function(a){var b=s(this[j.ext.iApiIndex]),c=a.nodeName.toUpperCase();return"TR"==c?I(b,a):"TD"==c||"TH"==c?(c=I(b,a.parentNode),a=fa(b,c,a),[c,R(b,a),a]):null};this.fnIsOpen=function(a){for(var b=s(this[j.ext.iApiIndex]),c=0;c<
-b.aoOpenRows.length;c++)if(b.aoOpenRows[c].nParent==a)return!0;return!1};this.fnOpen=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e=T(d);if(-1!==h.inArray(a,e)){this.fnClose(a);var e=l.createElement("tr"),f=l.createElement("td");e.appendChild(f);f.className=c;f.colSpan=t(d);"string"===typeof b?f.innerHTML=b:h(f).html(b);b=h("tr",d.nTBody);-1!=h.inArray(a,b)&&h(e).insertAfter(a);d.aoOpenRows.push({nTr:e,nParent:a});return e}};this.fnPageChange=function(a,b){var c=s(this[j.ext.iApiIndex]);qa(c,a);
-y(c);(b===n||b)&&x(c)};this.fnSetColumnVis=function(a,b,c){var d=s(this[j.ext.iApiIndex]),e,f,g=d.aoColumns,h=d.aoData,o,m;if(g[a].bVisible!=b){if(b){for(e=f=0;e<a;e++)g[e].bVisible&&f++;m=f>=t(d);if(!m)for(e=a;e<g.length;e++)if(g[e].bVisible){o=e;break}e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(m?h[e].nTr.appendChild(h[e]._anHidden[a]):h[e].nTr.insertBefore(h[e]._anHidden[a],J(d,e)[o]))}else{e=0;for(f=h.length;e<f;e++)null!==h[e].nTr&&(o=J(d,e)[a],h[e]._anHidden[a]=o,o.parentNode.removeChild(o))}g[a].bVisible=
-b;W(d,d.aoHeader);d.nTFoot&&W(d,d.aoFooter);e=0;for(f=d.aoOpenRows.length;e<f;e++)d.aoOpenRows[e].nTr.colSpan=t(d);if(c===n||c)k(d),x(d);ra(d)}};this.fnSettings=function(){return s(this[j.ext.iApiIndex])};this.fnSort=function(a){var b=s(this[j.ext.iApiIndex]);b.aaSorting=a;O(b)};this.fnSortListener=function(a,b,c){ia(s(this[j.ext.iApiIndex]),a,b,c)};this.fnUpdate=function(a,b,c,d,e){var f=s(this[j.ext.iApiIndex]),b="object"===typeof b?I(f,b):b;if(h.isArray(a)&&c===n){f.aoData[b]._aData=a.slice();
-for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else if(h.isPlainObject(a)&&c===n){f.aoData[b]._aData=h.extend(!0,{},a);for(c=0;c<f.aoColumns.length;c++)this.fnUpdate(v(f,b,c),b,c,!1,!1)}else{F(f,b,c,a);var a=v(f,b,c,"display"),g=f.aoColumns[c];null!==g.fnRender&&(a=S(f,b,c),g.bUseRendered&&F(f,b,c,a));null!==f.aoData[b].nTr&&(J(f,b)[c].innerHTML=a)}c=h.inArray(b,f.aiDisplay);f.asDataSearch[c]=na(f,Y(f,b,"filter",r(f,"bSearchable")));(e===n||e)&&k(f);(d===n||d)&&aa(f);return 0};
-this.fnVersionCheck=j.ext.fnVersionCheck;this.oApi={_fnExternApiFunc:Va,_fnInitialise:ba,_fnInitComplete:$,_fnLanguageCompat:pa,_fnAddColumn:o,_fnColumnOptions:m,_fnAddData:H,_fnCreateTr:ea,_fnGatherData:ua,_fnBuildHead:va,_fnDrawHead:W,_fnDraw:x,_fnReDraw:aa,_fnAjaxUpdate:wa,_fnAjaxParameters:Ea,_fnAjaxUpdateDraw:Fa,_fnServerParams:ka,_fnAddOptionsHtml:xa,_fnFeatureHtmlTable:Ba,_fnScrollDraw:La,_fnAdjustColumnSizing:k,_fnFeatureHtmlFilter:za,_fnFilterComplete:K,_fnFilterCustom:Ia,_fnFilterColumn:Ha,
-_fnFilter:Ga,_fnBuildSearchArray:la,_fnBuildSearchRow:na,_fnFilterCreateSearch:ma,_fnDataToSearch:Ja,_fnSort:O,_fnSortAttachListener:ia,_fnSortingClasses:P,_fnFeatureHtmlPaginate:Da,_fnPageChange:qa,_fnFeatureHtmlInfo:Ca,_fnUpdateInfo:Ka,_fnFeatureHtmlLength:ya,_fnFeatureHtmlProcessing:Aa,_fnProcessingDisplay:E,_fnVisibleToColumnIndex:G,_fnColumnIndexToVisible:R,_fnNodeToDataIndex:I,_fnVisbleColumns:t,_fnCalculateEnd:y,_fnConvertToWidth:Ma,_fnCalculateColumnWidths:da,_fnScrollingWidthAdjust:Oa,_fnGetWidestNode:Na,
-_fnGetMaxLenString:Pa,_fnStringToCss:q,_fnDetectType:B,_fnSettingsFromNode:s,_fnGetDataMaster:Z,_fnGetTrNodes:T,_fnGetTdNodes:J,_fnEscapeRegex:oa,_fnDeleteIndex:ha,_fnReOrderIndex:u,_fnColumnOrdering:M,_fnLog:D,_fnClearTable:ga,_fnSaveState:ra,_fnLoadState:Sa,_fnCreateCookie:function(a,b,c,d,e){var f=new Date;f.setTime(f.getTime()+1E3*c);var c=X.location.pathname.split("/"),a=a+"_"+c.pop().replace(/[\/:]/g,"").toLowerCase(),g;null!==e?(g="function"===typeof h.parseJSON?h.parseJSON(b):eval("("+b+")"),
-b=e(a,g,f.toGMTString(),c.join("/")+"/")):b=a+"="+encodeURIComponent(b)+"; expires="+f.toGMTString()+"; path="+c.join("/")+"/";a=l.cookie.split(";");e=b.split(";")[0].length;f=[];if(4096<e+l.cookie.length+10){for(var j=0,o=a.length;j<o;j++)if(-1!=a[j].indexOf(d)){var k=a[j].split("=");try{(g=eval("("+decodeURIComponent(k[1])+")"))&&g.iCreate&&f.push({name:k[0],time:g.iCreate})}catch(m){}}for(f.sort(function(a,b){return b.time-a.time});4096<e+l.cookie.length+10;){if(0===f.length)return;d=f.pop();l.cookie=
-d.name+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+c.join("/")+"/"}}l.cookie=b},_fnReadCookie:function(a){for(var b=X.location.pathname.split("/"),a=a+"_"+b[b.length-1].replace(/[\/:]/g,"").toLowerCase()+"=",b=l.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}return null},_fnDetectHeader:V,_fnGetUniqueThs:N,_fnScrollBarWidth:Qa,_fnApplyToChildren:C,_fnMap:p,_fnGetRowData:Y,
-_fnGetCellData:v,_fnSetCellData:F,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:L,_fnApplyColumnDefs:ta,_fnBindAction:Ra,_fnExtend:Ta,_fnCallbackReg:z,_fnCallbackFire:A,_fnJsonString:Wa,_fnRender:S,_fnNodeToColumnIndex:fa,_fnInfoMacros:ja,_fnBrowserDetect:Ua,_fnGetColumns:r};h.extend(j.ext.oApi,this.oApi);for(var sa in j.ext.oApi)sa&&(this[sa]=Va(sa));var ca=this;this.each(function(){var a=0,b,c,d;c=this.getAttribute("id");var i=!1,f=!1;if("table"!=this.nodeName.toLowerCase())D(null,0,"Attempted to initialise DataTables on a node which is not a table: "+
-this.nodeName);else{a=0;for(b=j.settings.length;a<b;a++){if(j.settings[a].nTable==this){if(e===n||e.bRetrieve)return j.settings[a].oInstance;if(e.bDestroy){j.settings[a].oInstance.fnDestroy();break}else{D(j.settings[a],0,"Cannot reinitialise DataTable.\n\nTo retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy");return}}if(j.settings[a].sTableId==this.id){j.settings.splice(a,1);break}}if(null===c||""===c)this.id=c="DataTables_Table_"+j.ext._oExternConfig.iNextUnique++;
-var g=h.extend(!0,{},j.models.oSettings,{nTable:this,oApi:ca.oApi,oInit:e,sDestroyWidth:h(this).width(),sInstance:c,sTableId:c});j.settings.push(g);g.oInstance=1===ca.length?ca:h(this).dataTable();e||(e={});e.oLanguage&&pa(e.oLanguage);e=Ta(h.extend(!0,{},j.defaults),e);p(g.oFeatures,e,"bPaginate");p(g.oFeatures,e,"bLengthChange");p(g.oFeatures,e,"bFilter");p(g.oFeatures,e,"bSort");p(g.oFeatures,e,"bInfo");p(g.oFeatures,e,"bProcessing");p(g.oFeatures,e,"bAutoWidth");p(g.oFeatures,e,"bSortClasses");
-p(g.oFeatures,e,"bServerSide");p(g.oFeatures,e,"bDeferRender");p(g.oScroll,e,"sScrollX","sX");p(g.oScroll,e,"sScrollXInner","sXInner");p(g.oScroll,e,"sScrollY","sY");p(g.oScroll,e,"bScrollCollapse","bCollapse");p(g.oScroll,e,"bScrollInfinite","bInfinite");p(g.oScroll,e,"iScrollLoadGap","iLoadGap");p(g.oScroll,e,"bScrollAutoCss","bAutoCss");p(g,e,"asStripeClasses");p(g,e,"asStripClasses","asStripeClasses");p(g,e,"fnServerData");p(g,e,"fnFormatNumber");p(g,e,"sServerMethod");p(g,e,"aaSorting");p(g,
-e,"aaSortingFixed");p(g,e,"aLengthMenu");p(g,e,"sPaginationType");p(g,e,"sAjaxSource");p(g,e,"sAjaxDataProp");p(g,e,"iCookieDuration");p(g,e,"sCookiePrefix");p(g,e,"sDom");p(g,e,"bSortCellsTop");p(g,e,"iTabIndex");p(g,e,"oSearch","oPreviousSearch");p(g,e,"aoSearchCols","aoPreSearchCols");p(g,e,"iDisplayLength","_iDisplayLength");p(g,e,"bJQueryUI","bJUI");p(g,e,"fnCookieCallback");p(g,e,"fnStateLoad");p(g,e,"fnStateSave");p(g.oLanguage,e,"fnInfoCallback");z(g,"aoDrawCallback",e.fnDrawCallback,"user");
-z(g,"aoServerParams",e.fnServerParams,"user");z(g,"aoStateSaveParams",e.fnStateSaveParams,"user");z(g,"aoStateLoadParams",e.fnStateLoadParams,"user");z(g,"aoStateLoaded",e.fnStateLoaded,"user");z(g,"aoRowCallback",e.fnRowCallback,"user");z(g,"aoRowCreatedCallback",e.fnCreatedRow,"user");z(g,"aoHeaderCallback",e.fnHeaderCallback,"user");z(g,"aoFooterCallback",e.fnFooterCallback,"user");z(g,"aoInitComplete",e.fnInitComplete,"user");z(g,"aoPreDrawCallback",e.fnPreDrawCallback,"user");g.oFeatures.bServerSide&&
-g.oFeatures.bSort&&g.oFeatures.bSortClasses?z(g,"aoDrawCallback",P,"server_side_sort_classes"):g.oFeatures.bDeferRender&&z(g,"aoDrawCallback",P,"defer_sort_classes");e.bJQueryUI?(h.extend(g.oClasses,j.ext.oJUIClasses),e.sDom===j.defaults.sDom&&"lfrtip"===j.defaults.sDom&&(g.sDom='<"H"lfr>t<"F"ip>')):h.extend(g.oClasses,j.ext.oStdClasses);h(this).addClass(g.oClasses.sTable);if(""!==g.oScroll.sX||""!==g.oScroll.sY)g.oScroll.iBarWidth=Qa();g.iInitDisplayStart===n&&(g.iInitDisplayStart=e.iDisplayStart,
-g._iDisplayStart=e.iDisplayStart);e.bStateSave&&(g.oFeatures.bStateSave=!0,Sa(g,e),z(g,"aoDrawCallback",ra,"state_save"));null!==e.iDeferLoading&&(g.bDeferLoading=!0,a=h.isArray(e.iDeferLoading),g._iRecordsDisplay=a?e.iDeferLoading[0]:e.iDeferLoading,g._iRecordsTotal=a?e.iDeferLoading[1]:e.iDeferLoading);null!==e.aaData&&(f=!0);""!==e.oLanguage.sUrl?(g.oLanguage.sUrl=e.oLanguage.sUrl,h.getJSON(g.oLanguage.sUrl,null,function(a){pa(a);h.extend(true,g.oLanguage,e.oLanguage,a);ba(g)}),i=!0):h.extend(!0,
-g.oLanguage,e.oLanguage);null===e.asStripeClasses&&(g.asStripeClasses=[g.oClasses.sStripeOdd,g.oClasses.sStripeEven]);b=g.asStripeClasses.length;g.asDestroyStripes=[];if(b){c=!1;d=h(this).children("tbody").children("tr:lt("+b+")");for(a=0;a<b;a++)d.hasClass(g.asStripeClasses[a])&&(c=!0,g.asDestroyStripes.push(g.asStripeClasses[a]));c&&d.removeClass(g.asStripeClasses.join(" "))}c=[];a=this.getElementsByTagName("thead");0!==a.length&&(V(g.aoHeader,a[0]),c=N(g));if(null===e.aoColumns){d=[];a=0;for(b=
-c.length;a<b;a++)d.push(null)}else d=e.aoColumns;a=0;for(b=d.length;a<b;a++)e.saved_aoColumns!==n&&e.saved_aoColumns.length==b&&(null===d[a]&&(d[a]={}),d[a].bVisible=e.saved_aoColumns[a].bVisible),o(g,c?c[a]:null);ta(g,e.aoColumnDefs,d,function(a,b){m(g,a,b)});a=0;for(b=g.aaSorting.length;a<b;a++){g.aaSorting[a][0]>=g.aoColumns.length&&(g.aaSorting[a][0]=0);var k=g.aoColumns[g.aaSorting[a][0]];g.aaSorting[a][2]===n&&(g.aaSorting[a][2]=0);e.aaSorting===n&&g.saved_aaSorting===n&&(g.aaSorting[a][1]=
-k.asSorting[0]);c=0;for(d=k.asSorting.length;c<d;c++)if(g.aaSorting[a][1]==k.asSorting[c]){g.aaSorting[a][2]=c;break}}P(g);Ua(g);a=h(this).children("caption").each(function(){this._captionSide=h(this).css("caption-side")});b=h(this).children("thead");0===b.length&&(b=[l.createElement("thead")],this.appendChild(b[0]));g.nTHead=b[0];b=h(this).children("tbody");0===b.length&&(b=[l.createElement("tbody")],this.appendChild(b[0]));g.nTBody=b[0];g.nTBody.setAttribute("role","alert");g.nTBody.setAttribute("aria-live",
-"polite");g.nTBody.setAttribute("aria-relevant","all");b=h(this).children("tfoot");if(0===b.length&&0<a.length&&(""!==g.oScroll.sX||""!==g.oScroll.sY))b=[l.createElement("tfoot")],this.appendChild(b[0]);0<b.length&&(g.nTFoot=b[0],V(g.aoFooter,g.nTFoot));if(f)for(a=0;a<e.aaData.length;a++)H(g,e.aaData[a]);else ua(g);g.aiDisplay=g.aiDisplayMaster.slice();g.bInitialised=!0;!1===i&&ba(g)}});ca=null;return this};j.fnVersionCheck=function(e){for(var h=function(e,h){for(;e.length<h;)e+="0";return e},m=j.ext.sVersion.split("."),
-e=e.split("."),k="",n="",l=0,t=e.length;l<t;l++)k+=h(m[l],3),n+=h(e[l],3);return parseInt(k,10)>=parseInt(n,10)};j.fnIsDataTable=function(e){for(var h=j.settings,m=0;m<h.length;m++)if(h[m].nTable===e||h[m].nScrollHead===e||h[m].nScrollFoot===e)return!0;return!1};j.fnTables=function(e){var o=[];jQuery.each(j.settings,function(j,k){(!e||!0===e&&h(k.nTable).is(":visible"))&&o.push(k.nTable)});return o};j.version="1.9.4";j.settings=[];j.models={};j.models.ext={afnFiltering:[],afnSortData:[],aoFeatures:[],
-aTypes:[],fnVersionCheck:j.fnVersionCheck,iApiIndex:0,ofnSearch:{},oApi:{},oStdClasses:{},oJUIClasses:{},oPagination:{},oSort:{},sVersion:j.version,sErrMode:"alert",_oExternConfig:{iNextUnique:0}};j.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};j.models.oRow={nTr:null,_aData:[],_aSortData:[],_anHidden:[],_sRowStripe:""};j.models.oColumn={aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bUseRendered:null,bVisible:null,_bAutoType:!0,fnCreatedCell:null,fnGetData:null,
-fnRender:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};j.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,
-bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollAutoCss:!0,bScrollCollapse:!1,bScrollInfinite:!1,bServerSide:!1,bSort:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCookieCallback:null,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){if(1E3>e)return e;for(var h=e+"",e=h.split(""),j="",h=h.length,k=0;k<h;k++)0===k%3&&0!==k&&(j=this.oLanguage.sInfoThousands+j),j=e[h-k-1]+j;return j},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,
-fnRowCallback:null,fnServerData:function(e,j,m,k){k.jqXHR=h.ajax({url:e,data:j,success:function(e){e.sError&&k.oApi._fnLog(k,0,e.sError);h(k.oInstance).trigger("xhr",[k,e]);m(e)},dataType:"json",cache:!1,type:k.sServerMethod,error:function(e,h){"parsererror"==h&&k.oApi._fnLog(k,0,"DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.")}})},fnServerParams:null,fnStateLoad:function(e){var e=this.oApi._fnReadCookie(e.sCookiePrefix+e.sInstance),j;try{j=
-"function"===typeof h.parseJSON?h.parseJSON(e):eval("("+e+")")}catch(m){j=null}return j},fnStateLoadParams:null,fnStateLoaded:null,fnStateSave:function(e,h){this.oApi._fnCreateCookie(e.sCookiePrefix+e.sInstance,this.oApi._fnJsonString(h),e.iCookieDuration,e.sCookiePrefix,e.fnCookieCallback)},fnStateSaveParams:null,iCookieDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iScrollLoadGap:100,iTabIndex:0,oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},
-oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},j.models.oSearch),sAjaxDataProp:"aaData",
-sAjaxSource:null,sCookiePrefix:"SpryMedia_DataTables_",sDom:"lfrtip",sPaginationType:"two_button",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET"};j.defaults.columns={aDataSort:null,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bUseRendered:!0,bVisible:!0,fnCreatedCell:null,fnRender:null,iDataSort:-1,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};j.models.oSettings={oFeatures:{bAutoWidth:null,
-bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortClasses:null,bStateSave:null},oScroll:{bAutoCss:null,bCollapse:null,bInfinite:null,iBarWidth:0,iLoadGap:null,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1},aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],asDataSearch:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:null,
-asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,sPaginationType:"two_button",iCookieDuration:0,sCookiePrefix:"",fnCookieCallback:null,aoStateSave:[],aoStateLoad:[],
-oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iDisplayEnd:10,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsTotal,10):this.aiDisplayMaster.length},
-fnRecordsDisplay:function(){return this.oFeatures.bServerSide?parseInt(this._iRecordsDisplay,10):this.aiDisplay.length},fnDisplayEnd:function(){return this.oFeatures.bServerSide?!1===this.oFeatures.bPaginate||-1==this._iDisplayLength?this._iDisplayStart+this.aiDisplay.length:Math.min(this._iDisplayStart+this._iDisplayLength,this._iRecordsDisplay):this._iDisplayEnd},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null};j.ext=h.extend(!0,{},j.models.ext);h.extend(j.ext.oStdClasses,
-{sTable:"dataTable",sPagePrevEnabled:"paginate_enabled_previous",sPagePrevDisabled:"paginate_disabled_previous",sPageNextEnabled:"paginate_enabled_next",sPageNextDisabled:"paginate_disabled_next",sPageJUINext:"",sPageJUIPrev:"",sPageButton:"paginate_button",sPageButtonActive:"paginate_active",sPageButtonStaticDisabled:"paginate_button paginate_button_disabled",sPageFirst:"first",sPagePrevious:"previous",sPageNext:"next",sPageLast:"last",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",
-sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",
-sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sFooterTH:"",sJUIHeader:"",sJUIFooter:""});h.extend(j.ext.oJUIClasses,j.ext.oStdClasses,{sPagePrevEnabled:"fg-button ui-button ui-state-default ui-corner-left",sPagePrevDisabled:"fg-button ui-button ui-state-default ui-corner-left ui-state-disabled",sPageNextEnabled:"fg-button ui-button ui-state-default ui-corner-right",
-sPageNextDisabled:"fg-button ui-button ui-state-default ui-corner-right ui-state-disabled",sPageJUINext:"ui-icon ui-icon-circle-arrow-e",sPageJUIPrev:"ui-icon ui-icon-circle-arrow-w",sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"fg-button ui-button ui-state-default ui-state-disabled",sPageButtonStaticDisabled:"fg-button ui-button ui-state-default ui-state-disabled",sPageFirst:"first ui-corner-tl ui-corner-bl",sPageLast:"last ui-corner-tr ui-corner-br",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",
-sSortAsc:"ui-state-default",sSortDesc:"ui-state-default",sSortable:"ui-state-default",sSortableAsc:"ui-state-default",sSortableDesc:"ui-state-default",sSortableNone:"ui-state-default",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",
-sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix"});h.extend(j.ext.oPagination,{two_button:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)},k=!e.bJUI?'<a class="'+
-e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sPrevious+'</a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button">'+k.sNext+"</a>":'<a class="'+e.oClasses.sPagePrevDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUIPrev+'"></span></a><a class="'+e.oClasses.sPageNextDisabled+'" tabindex="'+e.iTabIndex+'" role="button"><span class="'+e.oClasses.sPageJUINext+'"></span></a>';h(j).append(k);var l=h("a",j),
-k=l[0],l=l[1];e.oApi._fnBindAction(k,{action:"previous"},n);e.oApi._fnBindAction(l,{action:"next"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_previous",l.id=e.sTableId+"_next",k.setAttribute("aria-controls",e.sTableId),l.setAttribute("aria-controls",e.sTableId))},fnUpdate:function(e){if(e.aanFeatures.p)for(var h=e.oClasses,j=e.aanFeatures.p,k,l=0,n=j.length;l<n;l++)if(k=j[l].firstChild)k.className=0===e._iDisplayStart?h.sPagePrevDisabled:h.sPagePrevEnabled,k=k.nextSibling,
-k.className=e.fnDisplayEnd()==e.fnRecordsDisplay()?h.sPageNextDisabled:h.sPageNextEnabled}},iFullNumbersShowPages:5,full_numbers:{fnInit:function(e,j,m){var k=e.oLanguage.oPaginate,l=e.oClasses,n=function(h){e.oApi._fnPageChange(e,h.data.action)&&m(e)};h(j).append('<a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageFirst+'">'+k.sFirst+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPagePrevious+'">'+k.sPrevious+'</a><span></span><a tabindex="'+e.iTabIndex+'" class="'+
-l.sPageButton+" "+l.sPageNext+'">'+k.sNext+'</a><a tabindex="'+e.iTabIndex+'" class="'+l.sPageButton+" "+l.sPageLast+'">'+k.sLast+"</a>");var t=h("a",j),k=t[0],l=t[1],r=t[2],t=t[3];e.oApi._fnBindAction(k,{action:"first"},n);e.oApi._fnBindAction(l,{action:"previous"},n);e.oApi._fnBindAction(r,{action:"next"},n);e.oApi._fnBindAction(t,{action:"last"},n);e.aanFeatures.p||(j.id=e.sTableId+"_paginate",k.id=e.sTableId+"_first",l.id=e.sTableId+"_previous",r.id=e.sTableId+"_next",t.id=e.sTableId+"_last")},
-fnUpdate:function(e,o){if(e.aanFeatures.p){var m=j.ext.oPagination.iFullNumbersShowPages,k=Math.floor(m/2),l=Math.ceil(e.fnRecordsDisplay()/e._iDisplayLength),n=Math.ceil(e._iDisplayStart/e._iDisplayLength)+1,t="",r,B=e.oClasses,u,M=e.aanFeatures.p,L=function(h){e.oApi._fnBindAction(this,{page:h+r-1},function(h){e.oApi._fnPageChange(e,h.data.page);o(e);h.preventDefault()})};-1===e._iDisplayLength?n=k=r=1:l<m?(r=1,k=l):n<=k?(r=1,k=m):n>=l-k?(r=l-m+1,k=l):(r=n-Math.ceil(m/2)+1,k=r+m-1);for(m=r;m<=k;m++)t+=
-n!==m?'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButton+'">'+e.fnFormatNumber(m)+"</a>":'<a tabindex="'+e.iTabIndex+'" class="'+B.sPageButtonActive+'">'+e.fnFormatNumber(m)+"</a>";m=0;for(k=M.length;m<k;m++)u=M[m],u.hasChildNodes()&&(h("span:eq(0)",u).html(t).children("a").each(L),u=u.getElementsByTagName("a"),u=[u[0],u[1],u[u.length-2],u[u.length-1]],h(u).removeClass(B.sPageButton+" "+B.sPageButtonActive+" "+B.sPageButtonStaticDisabled),h([u[0],u[1]]).addClass(1==n?B.sPageButtonStaticDisabled:
-B.sPageButton),h([u[2],u[3]]).addClass(0===l||n===l||-1===e._iDisplayLength?B.sPageButtonStaticDisabled:B.sPageButton))}}}});h.extend(j.ext.oSort,{"string-pre":function(e){"string"!=typeof e&&(e=null!==e&&e.toString?e.toString():"");return e.toLowerCase()},"string-asc":function(e,h){return e<h?-1:e>h?1:0},"string-desc":function(e,h){return e<h?1:e>h?-1:0},"html-pre":function(e){return e.replace(/<.*?>/g,"").toLowerCase()},"html-asc":function(e,h){return e<h?-1:e>h?1:0},"html-desc":function(e,h){return e<
-h?1:e>h?-1:0},"date-pre":function(e){e=Date.parse(e);if(isNaN(e)||""===e)e=Date.parse("01/01/1970 00:00:00");return e},"date-asc":function(e,h){return e-h},"date-desc":function(e,h){return h-e},"numeric-pre":function(e){return"-"==e||""===e?0:1*e},"numeric-asc":function(e,h){return e-h},"numeric-desc":function(e,h){return h-e}});h.extend(j.ext.aTypes,[function(e){if("number"===typeof e)return"numeric";if("string"!==typeof e)return null;var h,j=!1;h=e.charAt(0);if(-1=="0123456789-".indexOf(h))return null;
-for(var k=1;k<e.length;k++){h=e.charAt(k);if(-1=="0123456789.".indexOf(h))return null;if("."==h){if(j)return null;j=!0}}return"numeric"},function(e){var h=Date.parse(e);return null!==h&&!isNaN(h)||"string"===typeof e&&0===e.length?"date":null},function(e){return"string"===typeof e&&-1!=e.indexOf("<")&&-1!=e.indexOf(">")?"html":null}]);h.fn.DataTable=j;h.fn.dataTable=j;h.fn.dataTableSettings=j.settings;h.fn.dataTableExt=j.ext};"function"===typeof define&&define.amd?define(["jquery"],L):jQuery&&!jQuery.fn.dataTable&&
-L(jQuery)})(window,document);
diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.js b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.js
deleted file mode 100644
index 380ab1e..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.js
+++ /dev/null
@@ -1,15268 +0,0 @@
-/*! DataTables 1.10.11
- * ©2008-2015 SpryMedia Ltd - datatables.net/license
- */
-
-/**
- * @summary DataTables
- * @description Paginate, search and order HTML tables
- * @version 1.10.11
- * @file jquery.dataTables.js
- * @author SpryMedia Ltd (www.sprymedia.co.uk)
- * @contact www.sprymedia.co.uk/contact
- * @copyright Copyright 2008-2015 SpryMedia Ltd.
- *
- * This source file is free software, available under the following license:
- * MIT license - http://datatables.net/license
- *
- * This source file is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.
- *
- * For details please refer to: http://www.datatables.net
- */
-
-/*jslint evil: true, undef: true, browser: true */
-/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/
-
-(function( factory ) {
- "use strict";
-
- if ( typeof define === 'function' && define.amd ) {
- // AMD
- define( ['jquery'], function ( $ ) {
- return factory( $, window, document );
- } );
- }
- else if ( typeof exports === 'object' ) {
- // CommonJS
- module.exports = function (root, $) {
- if ( ! root ) {
- // CommonJS environments without a window global must pass a
- // root. This will give an error otherwise
- root = window;
- }
-
- if ( ! $ ) {
- $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
- require('jquery') :
- require('jquery')( root );
- }
-
- return factory( $, root, root.document );
- };
- }
- else {
- // Browser
- factory( jQuery, window, document );
- }
-}
-(function( $, window, document, undefined ) {
- "use strict";
-
- /**
- * DataTables is a plug-in for the jQuery Javascript library. It is a highly
- * flexible tool, based upon the foundations of progressive enhancement,
- * which will add advanced interaction controls to any HTML table. For a
- * full list of features please refer to
- * [DataTables.net](href="http://datatables.net).
- *
- * Note that the `DataTable` object is not a global variable but is aliased
- * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may
- * be accessed.
- *
- * @class
- * @param {object} [init={}] Configuration object for DataTables. Options
- * are defined by {@link DataTable.defaults}
- * @requires jQuery 1.7+
- *
- * @example
- * // Basic initialisation
- * $(document).ready( function {
- * $('#example').dataTable();
- * } );
- *
- * @example
- * // Initialisation with configuration options - in this case, disable
- * // pagination and sorting.
- * $(document).ready( function {
- * $('#example').dataTable( {
- * "paginate": false,
- * "sort": false
- * } );
- * } );
- */
- var DataTable;
-
-
- /*
- * It is useful to have variables which are scoped locally so only the
- * DataTables functions can access them and they don't leak into global space.
- * At the same time these functions are often useful over multiple files in the
- * core and API, so we list, or at least document, all variables which are used
- * by DataTables as private variables here. This also ensures that there is no
- * clashing of variable names and that they can easily referenced for reuse.
- */
-
-
- // Defined else where
- // _selector_run
- // _selector_opts
- // _selector_first
- // _selector_row_indexes
-
- var _ext; // DataTable.ext
- var _Api; // DataTable.Api
- var _api_register; // DataTable.Api.register
- var _api_registerPlural; // DataTable.Api.registerPlural
-
- var _re_dic = {};
- var _re_new_lines = /[\r\n]/g;
- var _re_html = /<.*?>/g;
- var _re_date_start = /^[\w\+\-]/;
- var _re_date_end = /[\w\+\-]$/;
-
- // Escape regular expression special characters
- var _re_escape_regex = new RegExp( '(\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\', '$', '^', '-' ].join('|\\') + ')', 'g' );
-
- // http://en.wikipedia.org/wiki/Foreign_exchange_market
- // - \u20BD - Russian ruble.
- // - \u20a9 - South Korean Won
- // - \u20BA - Turkish Lira
- // - \u20B9 - Indian Rupee
- // - R - Brazil (R$) and South Africa
- // - fr - Swiss Franc
- // - kr - Swedish krona, Norwegian krone and Danish krone
- // - \u2009 is thin space and \u202F is narrow no-break space, both used in many
- // standards as thousands separators.
- var _re_formatted_numeric = /[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi;
-
-
- var _empty = function ( d ) {
- return !d || d === true || d === '-' ? true : false;
- };
-
-
- var _intVal = function ( s ) {
- var integer = parseInt( s, 10 );
- return !isNaN(integer) && isFinite(s) ? integer : null;
- };
-
- // Convert from a formatted number with characters other than `.` as the
- // decimal place, to a Javascript number
- var _numToDecimal = function ( num, decimalPoint ) {
- // Cache created regular expressions for speed as this function is called often
- if ( ! _re_dic[ decimalPoint ] ) {
- _re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );
- }
- return typeof num === 'string' && decimalPoint !== '.' ?
- num.replace( /\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :
- num;
- };
-
-
- var _isNumber = function ( d, decimalPoint, formatted ) {
- var strType = typeof d === 'string';
-
- // If empty return immediately so there must be a number if it is a
- // formatted string (this stops the string "k", or "kr", etc being detected
- // as a formatted number for currency
- if ( _empty( d ) ) {
- return true;
- }
-
- if ( decimalPoint && strType ) {
- d = _numToDecimal( d, decimalPoint );
- }
-
- if ( formatted && strType ) {
- d = d.replace( _re_formatted_numeric, '' );
- }
-
- return !isNaN( parseFloat(d) ) && isFinite( d );
- };
-
-
- // A string without HTML in it can be considered to be HTML still
- var _isHtml = function ( d ) {
- return _empty( d ) || typeof d === 'string';
- };
-
-
- var _htmlNumeric = function ( d, decimalPoint, formatted ) {
- if ( _empty( d ) ) {
- return true;
- }
-
- var html = _isHtml( d );
- return ! html ?
- null :
- _isNumber( _stripHtml( d ), decimalPoint, formatted ) ?
- true :
- null;
- };
-
-
- var _pluck = function ( a, prop, prop2 ) {
- var out = [];
- var i=0, ien=a.length;
-
- // Could have the test in the loop for slightly smaller code, but speed
- // is essential here
- if ( prop2 !== undefined ) {
- for ( ; i<ien ; i++ ) {
- if ( a[i] && a[i][ prop ] ) {
- out.push( a[i][ prop ][ prop2 ] );
- }
- }
- }
- else {
- for ( ; i<ien ; i++ ) {
- if ( a[i] ) {
- out.push( a[i][ prop ] );
- }
- }
- }
-
- return out;
- };
-
-
- // Basically the same as _pluck, but rather than looping over `a` we use `order`
- // as the indexes to pick from `a`
- var _pluck_order = function ( a, order, prop, prop2 )
- {
- var out = [];
- var i=0, ien=order.length;
-
- // Could have the test in the loop for slightly smaller code, but speed
- // is essential here
- if ( prop2 !== undefined ) {
- for ( ; i<ien ; i++ ) {
- if ( a[ order[i] ][ prop ] ) {
- out.push( a[ order[i] ][ prop ][ prop2 ] );
- }
- }
- }
- else {
- for ( ; i<ien ; i++ ) {
- out.push( a[ order[i] ][ prop ] );
- }
- }
-
- return out;
- };
-
-
- var _range = function ( len, start )
- {
- var out = [];
- var end;
-
- if ( start === undefined ) {
- start = 0;
- end = len;
- }
- else {
- end = start;
- start = len;
- }
-
- for ( var i=start ; i<end ; i++ ) {
- out.push( i );
- }
-
- return out;
- };
-
-
- var _removeEmpty = function ( a )
- {
- var out = [];
-
- for ( var i=0, ien=a.length ; i<ien ; i++ ) {
- if ( a[i] ) { // careful - will remove all falsy values!
- out.push( a[i] );
- }
- }
-
- return out;
- };
-
-
- var _stripHtml = function ( d ) {
- return d.replace( _re_html, '' );
- };
-
-
- /**
- * Find the unique elements in a source array.
- *
- * @param {array} src Source array
- * @return {array} Array of unique items
- * @ignore
- */
- var _unique = function ( src )
- {
- // A faster unique method is to use object keys to identify used values,
- // but this doesn't work with arrays or objects, which we must also
- // consider. See jsperf.com/compare-array-unique-versions/4 for more
- // information.
- var
- out = [],
- val,
- i, ien=src.length,
- j, k=0;
-
- again: for ( i=0 ; i<ien ; i++ ) {
- val = src[i];
-
- for ( j=0 ; j<k ; j++ ) {
- if ( out[j] === val ) {
- continue again;
- }
- }
-
- out.push( val );
- k++;
- }
-
- return out;
- };
-
-
-
- /**
- * Create a mapping object that allows camel case parameters to be looked up
- * for their Hungarian counterparts. The mapping is stored in a private
- * parameter called `_hungarianMap` which can be accessed on the source object.
- * @param {object} o
- * @memberof DataTable#oApi
- */
- function _fnHungarianMap ( o )
- {
- var
- hungarian = 'a aa ai ao as b fn i m o s ',
- match,
- newKey,
- map = {};
-
- $.each( o, function (key, val) {
- match = key.match(/^([^A-Z]+?)([A-Z])/);
-
- if ( match && hungarian.indexOf(match[1]+' ') !== -1 )
- {
- newKey = key.replace( match[0], match[2].toLowerCase() );
- map[ newKey ] = key;
-
- if ( match[1] === 'o' )
- {
- _fnHungarianMap( o[key] );
- }
- }
- } );
-
- o._hungarianMap = map;
- }
-
-
- /**
- * Convert from camel case parameters to Hungarian, based on a Hungarian map
- * created by _fnHungarianMap.
- * @param {object} src The model object which holds all parameters that can be
- * mapped.
- * @param {object} user The object to convert from camel case to Hungarian.
- * @param {boolean} force When set to `true`, properties which already have a
- * Hungarian value in the `user` object will be overwritten. Otherwise they
- * won't be.
- * @memberof DataTable#oApi
- */
- function _fnCamelToHungarian ( src, user, force )
- {
- if ( ! src._hungarianMap ) {
- _fnHungarianMap( src );
- }
-
- var hungarianKey;
-
- $.each( user, function (key, val) {
- hungarianKey = src._hungarianMap[ key ];
-
- if ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )
- {
- // For objects, we need to buzz down into the object to copy parameters
- if ( hungarianKey.charAt(0) === 'o' )
- {
- // Copy the camelCase options over to the hungarian
- if ( ! user[ hungarianKey ] ) {
- user[ hungarianKey ] = {};
- }
- $.extend( true, user[hungarianKey], user[key] );
-
- _fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );
- }
- else {
- user[hungarianKey] = user[ key ];
- }
- }
- } );
- }
-
-
- /**
- * Language compatibility - when certain options are given, and others aren't, we
- * need to duplicate the values over, in order to provide backwards compatibility
- * with older language files.
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnLanguageCompat( lang )
- {
- var defaults = DataTable.defaults.oLanguage;
- var zeroRecords = lang.sZeroRecords;
-
- /* Backwards compatibility - if there is no sEmptyTable given, then use the same as
- * sZeroRecords - assuming that is given.
- */
- if ( ! lang.sEmptyTable && zeroRecords &&
- defaults.sEmptyTable === "No data available in table" )
- {
- _fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );
- }
-
- /* Likewise with loading records */
- if ( ! lang.sLoadingRecords && zeroRecords &&
- defaults.sLoadingRecords === "Loading..." )
- {
- _fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );
- }
-
- // Old parameter name of the thousands separator mapped onto the new
- if ( lang.sInfoThousands ) {
- lang.sThousands = lang.sInfoThousands;
- }
-
- var decimal = lang.sDecimal;
- if ( decimal ) {
- _addNumericSort( decimal );
- }
- }
-
-
- /**
- * Map one parameter onto another
- * @param {object} o Object to map
- * @param {*} knew The new parameter name
- * @param {*} old The old parameter name
- */
- var _fnCompatMap = function ( o, knew, old ) {
- if ( o[ knew ] !== undefined ) {
- o[ old ] = o[ knew ];
- }
- };
-
-
- /**
- * Provide backwards compatibility for the main DT options. Note that the new
- * options are mapped onto the old parameters, so this is an external interface
- * change only.
- * @param {object} init Object to map
- */
- function _fnCompatOpts ( init )
- {
- _fnCompatMap( init, 'ordering', 'bSort' );
- _fnCompatMap( init, 'orderMulti', 'bSortMulti' );
- _fnCompatMap( init, 'orderClasses', 'bSortClasses' );
- _fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );
- _fnCompatMap( init, 'order', 'aaSorting' );
- _fnCompatMap( init, 'orderFixed', 'aaSortingFixed' );
- _fnCompatMap( init, 'paging', 'bPaginate' );
- _fnCompatMap( init, 'pagingType', 'sPaginationType' );
- _fnCompatMap( init, 'pageLength', 'iDisplayLength' );
- _fnCompatMap( init, 'searching', 'bFilter' );
-
- // Boolean initialisation of x-scrolling
- if ( typeof init.sScrollX === 'boolean' ) {
- init.sScrollX = init.sScrollX ? '100%' : '';
- }
- if ( typeof init.scrollX === 'boolean' ) {
- init.scrollX = init.scrollX ? '100%' : '';
- }
-
- // Column search objects are in an array, so it needs to be converted
- // element by element
- var searchCols = init.aoSearchCols;
-
- if ( searchCols ) {
- for ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {
- if ( searchCols[i] ) {
- _fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );
- }
- }
- }
- }
-
-
- /**
- * Provide backwards compatibility for column options. Note that the new options
- * are mapped onto the old parameters, so this is an external interface change
- * only.
- * @param {object} init Object to map
- */
- function _fnCompatCols ( init )
- {
- _fnCompatMap( init, 'orderable', 'bSortable' );
- _fnCompatMap( init, 'orderData', 'aDataSort' );
- _fnCompatMap( init, 'orderSequence', 'asSorting' );
- _fnCompatMap( init, 'orderDataType', 'sortDataType' );
-
- // orderData can be given as an integer
- var dataSort = init.aDataSort;
- if ( dataSort && ! $.isArray( dataSort ) ) {
- init.aDataSort = [ dataSort ];
- }
- }
-
-
- /**
- * Browser feature detection for capabilities, quirks
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnBrowserDetect( settings )
- {
- // We don't need to do this every time DataTables is constructed, the values
- // calculated are specific to the browser and OS configuration which we
- // don't expect to change between initialisations
- if ( ! DataTable.__browser ) {
- var browser = {};
- DataTable.__browser = browser;
-
- // Scrolling feature / quirks detection
- var n = $('<div/>')
- .css( {
- position: 'fixed',
- top: 0,
- left: 0,
- height: 1,
- width: 1,
- overflow: 'hidden'
- } )
- .append(
- $('<div/>')
- .css( {
- position: 'absolute',
- top: 1,
- left: 1,
- width: 100,
- overflow: 'scroll'
- } )
- .append(
- $('<div/>')
- .css( {
- width: '100%',
- height: 10
- } )
- )
- )
- .appendTo( 'body' );
-
- var outer = n.children();
- var inner = outer.children();
-
- // Numbers below, in order, are:
- // inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth
- //
- // IE6 XP: 100 100 100 83
- // IE7 Vista: 100 100 100 83
- // IE 8+ Windows: 83 83 100 83
- // Evergreen Windows: 83 83 100 83
- // Evergreen Mac with scrollbars: 85 85 100 85
- // Evergreen Mac without scrollbars: 100 100 100 100
-
- // Get scrollbar width
- browser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;
-
- // IE6/7 will oversize a width 100% element inside a scrolling element, to
- // include the width of the scrollbar, while other browsers ensure the inner
- // element is contained without forcing scrolling
- browser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;
-
- // In rtl text layout, some browsers (most, but not all) will place the
- // scrollbar on the left, rather than the right.
- browser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;
-
- // IE8- don't provide height and width for getBoundingClientRect
- browser.bBounding = n[0].getBoundingClientRect().width ? true : false;
-
- n.remove();
- }
-
- $.extend( settings.oBrowser, DataTable.__browser );
- settings.oScroll.iBarWidth = DataTable.__browser.barWidth;
- }
-
-
- /**
- * Array.prototype reduce[Right] method, used for browsers which don't support
- * JS 1.6. Done this way to reduce code size, since we iterate either way
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnReduce ( that, fn, init, start, end, inc )
- {
- var
- i = start,
- value,
- isSet = false;
-
- if ( init !== undefined ) {
- value = init;
- isSet = true;
- }
-
- while ( i !== end ) {
- if ( ! that.hasOwnProperty(i) ) {
- continue;
- }
-
- value = isSet ?
- fn( value, that[i], i, that ) :
- that[i];
-
- isSet = true;
- i += inc;
- }
-
- return value;
- }
-
- /**
- * Add a column to the list used for the table with default values
- * @param {object} oSettings dataTables settings object
- * @param {node} nTh The th element for this column
- * @memberof DataTable#oApi
- */
- function _fnAddColumn( oSettings, nTh )
- {
- // Add column to aoColumns array
- var oDefaults = DataTable.defaults.column;
- var iCol = oSettings.aoColumns.length;
- var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {
- "nTh": nTh ? nTh : document.createElement('th'),
- "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',
- "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],
- "mData": oDefaults.mData ? oDefaults.mData : iCol,
- idx: iCol
- } );
- oSettings.aoColumns.push( oCol );
-
- // Add search object for column specific search. Note that the `searchCols[ iCol ]`
- // passed into extend can be undefined. This allows the user to give a default
- // with only some of the parameters defined, and also not give a default
- var searchCols = oSettings.aoPreSearchCols;
- searchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );
-
- // Use the default column options function to initialise classes etc
- _fnColumnOptions( oSettings, iCol, $(nTh).data() );
- }
-
-
- /**
- * Apply options for a column
- * @param {object} oSettings dataTables settings object
- * @param {int} iCol column index to consider
- * @param {object} oOptions object with sType, bVisible and bSearchable etc
- * @memberof DataTable#oApi
- */
- function _fnColumnOptions( oSettings, iCol, oOptions )
- {
- var oCol = oSettings.aoColumns[ iCol ];
- var oClasses = oSettings.oClasses;
- var th = $(oCol.nTh);
-
- // Try to get width information from the DOM. We can't get it from CSS
- // as we'd need to parse the CSS stylesheet. `width` option can override
- if ( ! oCol.sWidthOrig ) {
- // Width attribute
- oCol.sWidthOrig = th.attr('width') || null;
-
- // Style attribute
- var t = (th.attr('style') || '').match(/width:\s*(\d+[pxem%]+)/);
- if ( t ) {
- oCol.sWidthOrig = t[1];
- }
- }
-
- /* User specified column options */
- if ( oOptions !== undefined && oOptions !== null )
- {
- // Backwards compatibility
- _fnCompatCols( oOptions );
-
- // Map camel case parameters to their Hungarian counterparts
- _fnCamelToHungarian( DataTable.defaults.column, oOptions );
-
- /* Backwards compatibility for mDataProp */
- if ( oOptions.mDataProp !== undefined && !oOptions.mData )
- {
- oOptions.mData = oOptions.mDataProp;
- }
-
- if ( oOptions.sType )
- {
- oCol._sManualType = oOptions.sType;
- }
-
- // `class` is a reserved word in Javascript, so we need to provide
- // the ability to use a valid name for the camel case input
- if ( oOptions.className && ! oOptions.sClass )
- {
- oOptions.sClass = oOptions.className;
- }
-
- $.extend( oCol, oOptions );
- _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" );
-
- /* iDataSort to be applied (backwards compatibility), but aDataSort will take
- * priority if defined
- */
- if ( oOptions.iDataSort !== undefined )
- {
- oCol.aDataSort = [ oOptions.iDataSort ];
- }
- _fnMap( oCol, oOptions, "aDataSort" );
- }
-
- /* Cache the data get and set functions for speed */
- var mDataSrc = oCol.mData;
- var mData = _fnGetObjectDataFn( mDataSrc );
- var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;
-
- var attrTest = function( src ) {
- return typeof src === 'string' && src.indexOf('@') !== -1;
- };
- oCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (
- attrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)
- );
- oCol._setter = null;
-
- oCol.fnGetData = function (rowData, type, meta) {
- var innerData = mData( rowData, type, undefined, meta );
-
- return mRender && type ?
- mRender( innerData, type, rowData, meta ) :
- innerData;
- };
- oCol.fnSetData = function ( rowData, val, meta ) {
- return _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );
- };
-
- // Indicate if DataTables should read DOM data as an object or array
- // Used in _fnGetRowElements
- if ( typeof mDataSrc !== 'number' ) {
- oSettings._rowReadObject = true;
- }
-
- /* Feature sorting overrides column specific when off */
- if ( !oSettings.oFeatures.bSort )
- {
- oCol.bSortable = false;
- th.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called
- }
-
- /* Check that the class assignment is correct for sorting */
- var bAsc = $.inArray('asc', oCol.asSorting) !== -1;
- var bDesc = $.inArray('desc', oCol.asSorting) !== -1;
- if ( !oCol.bSortable || (!bAsc && !bDesc) )
- {
- oCol.sSortingClass = oClasses.sSortableNone;
- oCol.sSortingClassJUI = "";
- }
- else if ( bAsc && !bDesc )
- {
- oCol.sSortingClass = oClasses.sSortableAsc;
- oCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;
- }
- else if ( !bAsc && bDesc )
- {
- oCol.sSortingClass = oClasses.sSortableDesc;
- oCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;
- }
- else
- {
- oCol.sSortingClass = oClasses.sSortable;
- oCol.sSortingClassJUI = oClasses.sSortJUI;
- }
- }
-
-
- /**
- * Adjust the table column widths for new data. Note: you would probably want to
- * do a redraw after calling this function!
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAdjustColumnSizing ( settings )
- {
- /* Not interested in doing column width calculation if auto-width is disabled */
- if ( settings.oFeatures.bAutoWidth !== false )
- {
- var columns = settings.aoColumns;
-
- _fnCalculateColumnWidths( settings );
- for ( var i=0 , iLen=columns.length ; i<iLen ; i++ )
- {
- columns[i].nTh.style.width = columns[i].sWidth;
- }
- }
-
- var scroll = settings.oScroll;
- if ( scroll.sY !== '' || scroll.sX !== '')
- {
- _fnScrollDraw( settings );
- }
-
- _fnCallbackFire( settings, null, 'column-sizing', [settings] );
- }
-
-
- /**
- * Covert the index of a visible column to the index in the data array (take account
- * of hidden columns)
- * @param {object} oSettings dataTables settings object
- * @param {int} iMatch Visible column index to lookup
- * @returns {int} i the data index
- * @memberof DataTable#oApi
- */
- function _fnVisibleToColumnIndex( oSettings, iMatch )
- {
- var aiVis = _fnGetColumns( oSettings, 'bVisible' );
-
- return typeof aiVis[iMatch] === 'number' ?
- aiVis[iMatch] :
- null;
- }
-
-
- /**
- * Covert the index of an index in the data array and convert it to the visible
- * column index (take account of hidden columns)
- * @param {int} iMatch Column index to lookup
- * @param {object} oSettings dataTables settings object
- * @returns {int} i the data index
- * @memberof DataTable#oApi
- */
- function _fnColumnIndexToVisible( oSettings, iMatch )
- {
- var aiVis = _fnGetColumns( oSettings, 'bVisible' );
- var iPos = $.inArray( iMatch, aiVis );
-
- return iPos !== -1 ? iPos : null;
- }
-
-
- /**
- * Get the number of visible columns
- * @param {object} oSettings dataTables settings object
- * @returns {int} i the number of visible columns
- * @memberof DataTable#oApi
- */
- function _fnVisbleColumns( oSettings )
- {
- return $( _pluck( oSettings.aoColumns, 'nTh' ) ).filter(':visible').length;
- }
-
-
- /**
- * Get an array of column indexes that match a given property
- * @param {object} oSettings dataTables settings object
- * @param {string} sParam Parameter in aoColumns to look for - typically
- * bVisible or bSearchable
- * @returns {array} Array of indexes with matched properties
- * @memberof DataTable#oApi
- */
- function _fnGetColumns( oSettings, sParam )
- {
- var a = [];
-
- $.map( oSettings.aoColumns, function(val, i) {
- if ( val[sParam] ) {
- a.push( i );
- }
- } );
-
- return a;
- }
-
-
- /**
- * Calculate the 'type' of a column
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnColumnTypes ( settings )
- {
- var columns = settings.aoColumns;
- var data = settings.aoData;
- var types = DataTable.ext.type.detect;
- var i, ien, j, jen, k, ken;
- var col, cell, detectedType, cache;
-
- // For each column, spin over the
- for ( i=0, ien=columns.length ; i<ien ; i++ ) {
- col = columns[i];
- cache = [];
-
- if ( ! col.sType && col._sManualType ) {
- col.sType = col._sManualType;
- }
- else if ( ! col.sType ) {
- for ( j=0, jen=types.length ; j<jen ; j++ ) {
- for ( k=0, ken=data.length ; k<ken ; k++ ) {
- // Use a cache array so we only need to get the type data
- // from the formatter once (when using multiple detectors)
- if ( cache[k] === undefined ) {
- cache[k] = _fnGetCellData( settings, k, i, 'type' );
- }
-
- detectedType = types[j]( cache[k], settings );
-
- // If null, then this type can't apply to this column, so
- // rather than testing all cells, break out. There is an
- // exception for the last type which is `html`. We need to
- // scan all rows since it is possible to mix string and HTML
- // types
- if ( ! detectedType && j !== types.length-1 ) {
- break;
- }
-
- // Only a single match is needed for html type since it is
- // bottom of the pile and very similar to string
- if ( detectedType === 'html' ) {
- break;
- }
- }
-
- // Type is valid for all data points in the column - use this
- // type
- if ( detectedType ) {
- col.sType = detectedType;
- break;
- }
- }
-
- // Fall back - if no type was detected, always use string
- if ( ! col.sType ) {
- col.sType = 'string';
- }
- }
- }
- }
-
-
- /**
- * Take the column definitions and static columns arrays and calculate how
- * they relate to column indexes. The callback function will then apply the
- * definition found for a column to a suitable configuration object.
- * @param {object} oSettings dataTables settings object
- * @param {array} aoColDefs The aoColumnDefs array that is to be applied
- * @param {array} aoCols The aoColumns array that defines columns individually
- * @param {function} fn Callback function - takes two parameters, the calculated
- * column index and the definition for that column.
- * @memberof DataTable#oApi
- */
- function _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )
- {
- var i, iLen, j, jLen, k, kLen, def;
- var columns = oSettings.aoColumns;
-
- // Column definitions with aTargets
- if ( aoColDefs )
- {
- /* Loop over the definitions array - loop in reverse so first instance has priority */
- for ( i=aoColDefs.length-1 ; i>=0 ; i-- )
- {
- def = aoColDefs[i];
-
- /* Each definition can target multiple columns, as it is an array */
- var aTargets = def.targets !== undefined ?
- def.targets :
- def.aTargets;
-
- if ( ! $.isArray( aTargets ) )
- {
- aTargets = [ aTargets ];
- }
-
- for ( j=0, jLen=aTargets.length ; j<jLen ; j++ )
- {
- if ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )
- {
- /* Add columns that we don't yet know about */
- while( columns.length <= aTargets[j] )
- {
- _fnAddColumn( oSettings );
- }
-
- /* Integer, basic index */
- fn( aTargets[j], def );
- }
- else if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )
- {
- /* Negative integer, right to left column counting */
- fn( columns.length+aTargets[j], def );
- }
- else if ( typeof aTargets[j] === 'string' )
- {
- /* Class name matching on TH element */
- for ( k=0, kLen=columns.length ; k<kLen ; k++ )
- {
- if ( aTargets[j] == "_all" ||
- $(columns[k].nTh).hasClass( aTargets[j] ) )
- {
- fn( k, def );
- }
- }
- }
- }
- }
- }
-
- // Statically defined columns array
- if ( aoCols )
- {
- for ( i=0, iLen=aoCols.length ; i<iLen ; i++ )
- {
- fn( i, aoCols[i] );
- }
- }
- }
-
- /**
- * Add a data array to the table, creating DOM node etc. This is the parallel to
- * _fnGatherData, but for adding rows from a Javascript source, rather than a
- * DOM source.
- * @param {object} oSettings dataTables settings object
- * @param {array} aData data array to be added
- * @param {node} [nTr] TR element to add to the table - optional. If not given,
- * DataTables will create a row automatically
- * @param {array} [anTds] Array of TD|TH elements for the row - must be given
- * if nTr is.
- * @returns {int} >=0 if successful (index of new aoData entry), -1 if failed
- * @memberof DataTable#oApi
- */
- function _fnAddData ( oSettings, aDataIn, nTr, anTds )
- {
- /* Create the object for storing information about this new row */
- var iRow = oSettings.aoData.length;
- var oData = $.extend( true, {}, DataTable.models.oRow, {
- src: nTr ? 'dom' : 'data',
- idx: iRow
- } );
-
- oData._aData = aDataIn;
- oSettings.aoData.push( oData );
-
- /* Create the cells */
- var nTd, sThisType;
- var columns = oSettings.aoColumns;
-
- // Invalidate the column types as the new data needs to be revalidated
- for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
- {
- columns[i].sType = null;
- }
-
- /* Add to the display array */
- oSettings.aiDisplayMaster.push( iRow );
-
- var id = oSettings.rowIdFn( aDataIn );
- if ( id !== undefined ) {
- oSettings.aIds[ id ] = oData;
- }
-
- /* Create the DOM information, or register it if already present */
- if ( nTr || ! oSettings.oFeatures.bDeferRender )
- {
- _fnCreateTr( oSettings, iRow, nTr, anTds );
- }
-
- return iRow;
- }
-
-
- /**
- * Add one or more TR elements to the table. Generally we'd expect to
- * use this for reading data from a DOM sourced table, but it could be
- * used for an TR element. Note that if a TR is given, it is used (i.e.
- * it is not cloned).
- * @param {object} settings dataTables settings object
- * @param {array|node|jQuery} trs The TR element(s) to add to the table
- * @returns {array} Array of indexes for the added rows
- * @memberof DataTable#oApi
- */
- function _fnAddTr( settings, trs )
- {
- var row;
-
- // Allow an individual node to be passed in
- if ( ! (trs instanceof $) ) {
- trs = $(trs);
- }
-
- return trs.map( function (i, el) {
- row = _fnGetRowElements( settings, el );
- return _fnAddData( settings, row.data, el, row.cells );
- } );
- }
-
-
- /**
- * Take a TR element and convert it to an index in aoData
- * @param {object} oSettings dataTables settings object
- * @param {node} n the TR element to find
- * @returns {int} index if the node is found, null if not
- * @memberof DataTable#oApi
- */
- function _fnNodeToDataIndex( oSettings, n )
- {
- return (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;
- }
-
-
- /**
- * Take a TD element and convert it into a column data index (not the visible index)
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow The row number the TD/TH can be found in
- * @param {node} n The TD/TH element to find
- * @returns {int} index if the node is found, -1 if not
- * @memberof DataTable#oApi
- */
- function _fnNodeToColumnIndex( oSettings, iRow, n )
- {
- return $.inArray( n, oSettings.aoData[ iRow ].anCells );
- }
-
-
- /**
- * Get the data for a given cell from the internal cache, taking into account data mapping
- * @param {object} settings dataTables settings object
- * @param {int} rowIdx aoData row id
- * @param {int} colIdx Column index
- * @param {string} type data get type ('display', 'type' 'filter' 'sort')
- * @returns {*} Cell data
- * @memberof DataTable#oApi
- */
- function _fnGetCellData( settings, rowIdx, colIdx, type )
- {
- var draw = settings.iDraw;
- var col = settings.aoColumns[colIdx];
- var rowData = settings.aoData[rowIdx]._aData;
- var defaultContent = col.sDefaultContent;
- var cellData = col.fnGetData( rowData, type, {
- settings: settings,
- row: rowIdx,
- col: colIdx
- } );
-
- if ( cellData === undefined ) {
- if ( settings.iDrawError != draw && defaultContent === null ) {
- _fnLog( settings, 0, "Requested unknown parameter "+
- (typeof col.mData=='function' ? '{function}' : "'"+col.mData+"'")+
- " for row "+rowIdx+", column "+colIdx, 4 );
- settings.iDrawError = draw;
- }
- return defaultContent;
- }
-
- // When the data source is null and a specific data type is requested (i.e.
- // not the original data), we can use default column data
- if ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) {
- cellData = defaultContent;
- }
- else if ( typeof cellData === 'function' ) {
- // If the data source is a function, then we run it and use the return,
- // executing in the scope of the data object (for instances)
- return cellData.call( rowData );
- }
-
- if ( cellData === null && type == 'display' ) {
- return '';
- }
- return cellData;
- }
-
-
- /**
- * Set the value for a specific cell, into the internal data cache
- * @param {object} settings dataTables settings object
- * @param {int} rowIdx aoData row id
- * @param {int} colIdx Column index
- * @param {*} val Value to set
- * @memberof DataTable#oApi
- */
- function _fnSetCellData( settings, rowIdx, colIdx, val )
- {
- var col = settings.aoColumns[colIdx];
- var rowData = settings.aoData[rowIdx]._aData;
-
- col.fnSetData( rowData, val, {
- settings: settings,
- row: rowIdx,
- col: colIdx
- } );
- }
-
-
- // Private variable that is used to match action syntax in the data property object
- var __reArray = /\[.*?\]$/;
- var __reFn = /\(\)$/;
-
- /**
- * Split string on periods, taking into account escaped periods
- * @param {string} str String to split
- * @return {array} Split string
- */
- function _fnSplitObjNotation( str )
- {
- return $.map( str.match(/(\\.|[^\.])+/g) || [''], function ( s ) {
- return s.replace(/\\./g, '.');
- } );
- }
-
-
- /**
- * Return a function that can be used to get data from a source object, taking
- * into account the ability to use nested objects as a source
- * @param {string|int|function} mSource The data source for the object
- * @returns {function} Data get function
- * @memberof DataTable#oApi
- */
- function _fnGetObjectDataFn( mSource )
- {
- if ( $.isPlainObject( mSource ) )
- {
- /* Build an object of get functions, and wrap them in a single call */
- var o = {};
- $.each( mSource, function (key, val) {
- if ( val ) {
- o[key] = _fnGetObjectDataFn( val );
- }
- } );
-
- return function (data, type, row, meta) {
- var t = o[type] || o._;
- return t !== undefined ?
- t(data, type, row, meta) :
- data;
- };
- }
- else if ( mSource === null )
- {
- /* Give an empty string for rendering / sorting etc */
- return function (data) { // type, row and meta also passed, but not used
- return data;
- };
- }
- else if ( typeof mSource === 'function' )
- {
- return function (data, type, row, meta) {
- return mSource( data, type, row, meta );
- };
- }
- else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
- mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
- {
- /* If there is a . in the source string then the data source is in a
- * nested object so we loop over the data for each level to get the next
- * level down. On each loop we test for undefined, and if found immediately
- * return. This allows entire objects to be missing and sDefaultContent to
- * be used if defined, rather than throwing an error
- */
- var fetchData = function (data, type, src) {
- var arrayNotation, funcNotation, out, innerSrc;
-
- if ( src !== "" )
- {
- var a = _fnSplitObjNotation( src );
-
- for ( var i=0, iLen=a.length ; i<iLen ; i++ )
- {
- // Check if we are dealing with special notation
- arrayNotation = a[i].match(__reArray);
- funcNotation = a[i].match(__reFn);
-
- if ( arrayNotation )
- {
- // Array notation
- a[i] = a[i].replace(__reArray, '');
-
- // Condition allows simply [] to be passed in
- if ( a[i] !== "" ) {
- data = data[ a[i] ];
- }
- out = [];
-
- // Get the remainder of the nested object to get
- a.splice( 0, i+1 );
- innerSrc = a.join('.');
-
- // Traverse each entry in the array getting the properties requested
- if ( $.isArray( data ) ) {
- for ( var j=0, jLen=data.length ; j<jLen ; j++ ) {
- out.push( fetchData( data[j], type, innerSrc ) );
- }
- }
-
- // If a string is given in between the array notation indicators, that
- // is used to join the strings together, otherwise an array is returned
- var join = arrayNotation[0].substring(1, arrayNotation[0].length-1);
- data = (join==="") ? out : out.join(join);
-
- // The inner call to fetchData has already traversed through the remainder
- // of the source requested, so we exit from the loop
- break;
- }
- else if ( funcNotation )
- {
- // Function call
- a[i] = a[i].replace(__reFn, '');
- data = data[ a[i] ]();
- continue;
- }
-
- if ( data === null || data[ a[i] ] === undefined )
- {
- return undefined;
- }
- data = data[ a[i] ];
- }
- }
-
- return data;
- };
-
- return function (data, type) { // row and meta also passed, but not used
- return fetchData( data, type, mSource );
- };
- }
- else
- {
- /* Array or flat object mapping */
- return function (data, type) { // row and meta also passed, but not used
- return data[mSource];
- };
- }
- }
-
-
- /**
- * Return a function that can be used to set data from a source object, taking
- * into account the ability to use nested objects as a source
- * @param {string|int|function} mSource The data source for the object
- * @returns {function} Data set function
- * @memberof DataTable#oApi
- */
- function _fnSetObjectDataFn( mSource )
- {
- if ( $.isPlainObject( mSource ) )
- {
- /* Unlike get, only the underscore (global) option is used for for
- * setting data since we don't know the type here. This is why an object
- * option is not documented for `mData` (which is read/write), but it is
- * for `mRender` which is read only.
- */
- return _fnSetObjectDataFn( mSource._ );
- }
- else if ( mSource === null )
- {
- /* Nothing to do when the data source is null */
- return function () {};
- }
- else if ( typeof mSource === 'function' )
- {
- return function (data, val, meta) {
- mSource( data, 'set', val, meta );
- };
- }
- else if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||
- mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )
- {
- /* Like the get, we need to get data from a nested object */
- var setData = function (data, val, src) {
- var a = _fnSplitObjNotation( src ), b;
- var aLast = a[a.length-1];
- var arrayNotation, funcNotation, o, innerSrc;
-
- for ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )
- {
- // Check if we are dealing with an array notation request
- arrayNotation = a[i].match(__reArray);
- funcNotation = a[i].match(__reFn);
-
- if ( arrayNotation )
- {
- a[i] = a[i].replace(__reArray, '');
- data[ a[i] ] = [];
-
- // Get the remainder of the nested object to set so we can recurse
- b = a.slice();
- b.splice( 0, i+1 );
- innerSrc = b.join('.');
-
- // Traverse each entry in the array setting the properties requested
- if ( $.isArray( val ) )
- {
- for ( var j=0, jLen=val.length ; j<jLen ; j++ )
- {
- o = {};
- setData( o, val[j], innerSrc );
- data[ a[i] ].push( o );
- }
- }
- else
- {
- // We've been asked to save data to an array, but it
- // isn't array data to be saved. Best that can be done
- // is to just save the value.
- data[ a[i] ] = val;
- }
-
- // The inner call to setData has already traversed through the remainder
- // of the source and has set the data, thus we can exit here
- return;
- }
- else if ( funcNotation )
- {
- // Function call
- a[i] = a[i].replace(__reFn, '');
- data = data[ a[i] ]( val );
- }
-
- // If the nested object doesn't currently exist - since we are
- // trying to set the value - create it
- if ( data[ a[i] ] === null || data[ a[i] ] === undefined )
- {
- data[ a[i] ] = {};
- }
- data = data[ a[i] ];
- }
-
- // Last item in the input - i.e, the actual set
- if ( aLast.match(__reFn ) )
- {
- // Function call
- data = data[ aLast.replace(__reFn, '') ]( val );
- }
- else
- {
- // If array notation is used, we just want to strip it and use the property name
- // and assign the value. If it isn't used, then we get the result we want anyway
- data[ aLast.replace(__reArray, '') ] = val;
- }
- };
-
- return function (data, val) { // meta is also passed in, but not used
- return setData( data, val, mSource );
- };
- }
- else
- {
- /* Array or flat object mapping */
- return function (data, val) { // meta is also passed in, but not used
- data[mSource] = val;
- };
- }
- }
-
-
- /**
- * Return an array with the full table data
- * @param {object} oSettings dataTables settings object
- * @returns array {array} aData Master data array
- * @memberof DataTable#oApi
- */
- function _fnGetDataMaster ( settings )
- {
- return _pluck( settings.aoData, '_aData' );
- }
-
-
- /**
- * Nuke the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnClearTable( settings )
- {
- settings.aoData.length = 0;
- settings.aiDisplayMaster.length = 0;
- settings.aiDisplay.length = 0;
- settings.aIds = {};
- }
-
-
- /**
- * Take an array of integers (index array) and remove a target integer (value - not
- * the key!)
- * @param {array} a Index array to target
- * @param {int} iTarget value to find
- * @memberof DataTable#oApi
- */
- function _fnDeleteIndex( a, iTarget, splice )
- {
- var iTargetIndex = -1;
-
- for ( var i=0, iLen=a.length ; i<iLen ; i++ )
- {
- if ( a[i] == iTarget )
- {
- iTargetIndex = i;
- }
- else if ( a[i] > iTarget )
- {
- a[i]--;
- }
- }
-
- if ( iTargetIndex != -1 && splice === undefined )
- {
- a.splice( iTargetIndex, 1 );
- }
- }
-
-
- /**
- * Mark cached data as invalid such that a re-read of the data will occur when
- * the cached data is next requested. Also update from the data source object.
- *
- * @param {object} settings DataTables settings object
- * @param {int} rowIdx Row index to invalidate
- * @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom'
- * or 'data'
- * @param {int} [colIdx] Column index to invalidate. If undefined the whole
- * row will be invalidated
- * @memberof DataTable#oApi
- *
- * @todo For the modularisation of v1.11 this will need to become a callback, so
- * the sort and filter methods can subscribe to it. That will required
- * initialisation options for sorting, which is why it is not already baked in
- */
- function _fnInvalidate( settings, rowIdx, src, colIdx )
- {
- var row = settings.aoData[ rowIdx ];
- var i, ien;
- var cellWrite = function ( cell, col ) {
- // This is very frustrating, but in IE if you just write directly
- // to innerHTML, and elements that are overwritten are GC'ed,
- // even if there is a reference to them elsewhere
- while ( cell.childNodes.length ) {
- cell.removeChild( cell.firstChild );
- }
-
- cell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );
- };
-
- // Are we reading last data from DOM or the data object?
- if ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {
- // Read the data from the DOM
- row._aData = _fnGetRowElements(
- settings, row, colIdx, colIdx === undefined ? undefined : row._aData
- )
- .data;
- }
- else {
- // Reading from data object, update the DOM
- var cells = row.anCells;
-
- if ( cells ) {
- if ( colIdx !== undefined ) {
- cellWrite( cells[colIdx], colIdx );
- }
- else {
- for ( i=0, ien=cells.length ; i<ien ; i++ ) {
- cellWrite( cells[i], i );
- }
- }
- }
- }
-
- // For both row and cell invalidation, the cached data for sorting and
- // filtering is nulled out
- row._aSortData = null;
- row._aFilterData = null;
-
- // Invalidate the type for a specific column (if given) or all columns since
- // the data might have changed
- var cols = settings.aoColumns;
- if ( colIdx !== undefined ) {
- cols[ colIdx ].sType = null;
- }
- else {
- for ( i=0, ien=cols.length ; i<ien ; i++ ) {
- cols[i].sType = null;
- }
-
- // Update DataTables special `DT_*` attributes for the row
- _fnRowAttributes( settings, row );
- }
- }
-
-
- /**
- * Build a data source object from an HTML row, reading the contents of the
- * cells that are in the row.
- *
- * @param {object} settings DataTables settings object
- * @param {node|object} TR element from which to read data or existing row
- * object from which to re-read the data from the cells
- * @param {int} [colIdx] Optional column index
- * @param {array|object} [d] Data source object. If `colIdx` is given then this
- * parameter should also be given and will be used to write the data into.
- * Only the column in question will be written
- * @returns {object} Object with two parameters: `data` the data read, in
- * document order, and `cells` and array of nodes (they can be useful to the
- * caller, so rather than needing a second traversal to get them, just return
- * them from here).
- * @memberof DataTable#oApi
- */
- function _fnGetRowElements( settings, row, colIdx, d )
- {
- var
- tds = [],
- td = row.firstChild,
- name, col, o, i=0, contents,
- columns = settings.aoColumns,
- objectRead = settings._rowReadObject;
-
- // Allow the data object to be passed in, or construct
- d = d !== undefined ?
- d :
- objectRead ?
- {} :
- [];
-
- var attr = function ( str, td ) {
- if ( typeof str === 'string' ) {
- var idx = str.indexOf('@');
-
- if ( idx !== -1 ) {
- var attr = str.substring( idx+1 );
- var setter = _fnSetObjectDataFn( str );
- setter( d, td.getAttribute( attr ) );
- }
- }
- };
-
- // Read data from a cell and store into the data object
- var cellProcess = function ( cell ) {
- if ( colIdx === undefined || colIdx === i ) {
- col = columns[i];
- contents = $.trim(cell.innerHTML);
-
- if ( col && col._bAttrSrc ) {
- var setter = _fnSetObjectDataFn( col.mData._ );
- setter( d, contents );
-
- attr( col.mData.sort, cell );
- attr( col.mData.type, cell );
- attr( col.mData.filter, cell );
- }
- else {
- // Depending on the `data` option for the columns the data can
- // be read to either an object or an array.
- if ( objectRead ) {
- if ( ! col._setter ) {
- // Cache the setter function
- col._setter = _fnSetObjectDataFn( col.mData );
- }
- col._setter( d, contents );
- }
- else {
- d[i] = contents;
- }
- }
- }
-
- i++;
- };
-
- if ( td ) {
- // `tr` element was passed in
- while ( td ) {
- name = td.nodeName.toUpperCase();
-
- if ( name == "TD" || name == "TH" ) {
- cellProcess( td );
- tds.push( td );
- }
-
- td = td.nextSibling;
- }
- }
- else {
- // Existing row object passed in
- tds = row.anCells;
-
- for ( var j=0, jen=tds.length ; j<jen ; j++ ) {
- cellProcess( tds[j] );
- }
- }
-
- // Read the ID from the DOM if present
- var rowNode = row.firstChild ? row : row.nTr;
-
- if ( rowNode ) {
- var id = rowNode.getAttribute( 'id' );
-
- if ( id ) {
- _fnSetObjectDataFn( settings.rowId )( d, id );
- }
- }
-
- return {
- data: d,
- cells: tds
- };
- }
- /**
- * Create a new TR element (and it's TD children) for a row
- * @param {object} oSettings dataTables settings object
- * @param {int} iRow Row to consider
- * @param {node} [nTrIn] TR element to add to the table - optional. If not given,
- * DataTables will create a row automatically
- * @param {array} [anTds] Array of TD|TH elements for the row - must be given
- * if nTr is.
- * @memberof DataTable#oApi
- */
- function _fnCreateTr ( oSettings, iRow, nTrIn, anTds )
- {
- var
- row = oSettings.aoData[iRow],
- rowData = row._aData,
- cells = [],
- nTr, nTd, oCol,
- i, iLen;
-
- if ( row.nTr === null )
- {
- nTr = nTrIn || document.createElement('tr');
-
- row.nTr = nTr;
- row.anCells = cells;
-
- /* Use a private property on the node to allow reserve mapping from the node
- * to the aoData array for fast look up
- */
- nTr._DT_RowIndex = iRow;
-
- /* Special parameters can be given by the data source to be used on the row */
- _fnRowAttributes( oSettings, row );
-
- /* Process each column */
- for ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )
- {
- oCol = oSettings.aoColumns[i];
-
- nTd = nTrIn ? anTds[i] : document.createElement( oCol.sCellType );
- nTd._DT_CellIndex = {
- row: iRow,
- column: i
- };
-
- cells.push( nTd );
-
- // Need to create the HTML if new, or if a rendering function is defined
- if ( (!nTrIn || oCol.mRender || oCol.mData !== i) &&
- (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')
- ) {
- nTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );
- }
-
- /* Add user defined class */
- if ( oCol.sClass )
- {
- nTd.className += ' '+oCol.sClass;
- }
-
- // Visibility - add or remove as required
- if ( oCol.bVisible && ! nTrIn )
- {
- nTr.appendChild( nTd );
- }
- else if ( ! oCol.bVisible && nTrIn )
- {
- nTd.parentNode.removeChild( nTd );
- }
-
- if ( oCol.fnCreatedCell )
- {
- oCol.fnCreatedCell.call( oSettings.oInstance,
- nTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i
- );
- }
- }
-
- _fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow] );
- }
-
- // Remove once webkit bug 131819 and Chromium bug 365619 have been resolved
- // and deployed
- row.nTr.setAttribute( 'role', 'row' );
- }
-
-
- /**
- * Add attributes to a row based on the special `DT_*` parameters in a data
- * source object.
- * @param {object} settings DataTables settings object
- * @param {object} DataTables row object for the row to be modified
- * @memberof DataTable#oApi
- */
- function _fnRowAttributes( settings, row )
- {
- var tr = row.nTr;
- var data = row._aData;
-
- if ( tr ) {
- var id = settings.rowIdFn( data );
-
- if ( id ) {
- tr.id = id;
- }
-
- if ( data.DT_RowClass ) {
- // Remove any classes added by DT_RowClass before
- var a = data.DT_RowClass.split(' ');
- row.__rowc = row.__rowc ?
- _unique( row.__rowc.concat( a ) ) :
- a;
-
- $(tr)
- .removeClass( row.__rowc.join(' ') )
- .addClass( data.DT_RowClass );
- }
-
- if ( data.DT_RowAttr ) {
- $(tr).attr( data.DT_RowAttr );
- }
-
- if ( data.DT_RowData ) {
- $(tr).data( data.DT_RowData );
- }
- }
- }
-
-
- /**
- * Create the HTML header for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnBuildHead( oSettings )
- {
- var i, ien, cell, row, column;
- var thead = oSettings.nTHead;
- var tfoot = oSettings.nTFoot;
- var createHeader = $('th, td', thead).length === 0;
- var classes = oSettings.oClasses;
- var columns = oSettings.aoColumns;
-
- if ( createHeader ) {
- row = $('<tr/>').appendTo( thead );
- }
-
- for ( i=0, ien=columns.length ; i<ien ; i++ ) {
- column = columns[i];
- cell = $( column.nTh ).addClass( column.sClass );
-
- if ( createHeader ) {
- cell.appendTo( row );
- }
-
- // 1.11 move into sorting
- if ( oSettings.oFeatures.bSort ) {
- cell.addClass( column.sSortingClass );
-
- if ( column.bSortable !== false ) {
- cell
- .attr( 'tabindex', oSettings.iTabIndex )
- .attr( 'aria-controls', oSettings.sTableId );
-
- _fnSortAttachListener( oSettings, column.nTh, i );
- }
- }
-
- if ( column.sTitle != cell[0].innerHTML ) {
- cell.html( column.sTitle );
- }
-
- _fnRenderer( oSettings, 'header' )(
- oSettings, cell, column, classes
- );
- }
-
- if ( createHeader ) {
- _fnDetectHeader( oSettings.aoHeader, thead );
- }
-
- /* ARIA role for the rows */
- $(thead).find('>tr').attr('role', 'row');
-
- /* Deal with the footer - add classes if required */
- $(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );
- $(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );
-
- // Cache the footer cells. Note that we only take the cells from the first
- // row in the footer. If there is more than one row the user wants to
- // interact with, they need to use the table().foot() method. Note also this
- // allows cells to be used for multiple columns using colspan
- if ( tfoot !== null ) {
- var cells = oSettings.aoFooter[0];
-
- for ( i=0, ien=cells.length ; i<ien ; i++ ) {
- column = columns[i];
- column.nTf = cells[i].cell;
-
- if ( column.sClass ) {
- $(column.nTf).addClass( column.sClass );
- }
- }
- }
- }
-
-
- /**
- * Draw the header (or footer) element based on the column visibility states. The
- * methodology here is to use the layout array from _fnDetectHeader, modified for
- * the instantaneous column visibility, to construct the new layout. The grid is
- * traversed over cell at a time in a rows x columns grid fashion, although each
- * cell insert can cover multiple elements in the grid - which is tracks using the
- * aApplied array. Cell inserts in the grid will only occur where there isn't
- * already a cell in that position.
- * @param {object} oSettings dataTables settings object
- * @param array {objects} aoSource Layout array from _fnDetectHeader
- * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
- * @memberof DataTable#oApi
- */
- function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
- {
- var i, iLen, j, jLen, k, kLen, n, nLocalTr;
- var aoLocal = [];
- var aApplied = [];
- var iColumns = oSettings.aoColumns.length;
- var iRowspan, iColspan;
-
- if ( ! aoSource )
- {
- return;
- }
-
- if ( bIncludeHidden === undefined )
- {
- bIncludeHidden = false;
- }
-
- /* Make a copy of the master layout array, but without the visible columns in it */
- for ( i=0, iLen=aoSource.length ; i<iLen ; i++ )
- {
- aoLocal[i] = aoSource[i].slice();
- aoLocal[i].nTr = aoSource[i].nTr;
-
- /* Remove any columns which are currently hidden */
- for ( j=iColumns-1 ; j>=0 ; j-- )
- {
- if ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )
- {
- aoLocal[i].splice( j, 1 );
- }
- }
-
- /* Prep the applied array - it needs an element for each row */
- aApplied.push( [] );
- }
-
- for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
- {
- nLocalTr = aoLocal[i].nTr;
-
- /* All cells are going to be replaced, so empty out the row */
- if ( nLocalTr )
- {
- while( (n = nLocalTr.firstChild) )
- {
- nLocalTr.removeChild( n );
- }
- }
-
- for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
- {
- iRowspan = 1;
- iColspan = 1;
-
- /* Check to see if there is already a cell (row/colspan) covering our target
- * insert point. If there is, then there is nothing to do.
- */
- if ( aApplied[i][j] === undefined )
- {
- nLocalTr.appendChild( aoLocal[i][j].cell );
- aApplied[i][j] = 1;
-
- /* Expand the cell to cover as many rows as needed */
- while ( aoLocal[i+iRowspan] !== undefined &&
- aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )
- {
- aApplied[i+iRowspan][j] = 1;
- iRowspan++;
- }
-
- /* Expand the cell to cover as many columns as needed */
- while ( aoLocal[i][j+iColspan] !== undefined &&
- aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )
- {
- /* Must update the applied array over the rows for the columns */
- for ( k=0 ; k<iRowspan ; k++ )
- {
- aApplied[i+k][j+iColspan] = 1;
- }
- iColspan++;
- }
-
- /* Do the actual expansion in the DOM */
- $(aoLocal[i][j].cell)
- .attr('rowspan', iRowspan)
- .attr('colspan', iColspan);
- }
- }
- }
- }
-
-
- /**
- * Insert the required TR nodes into the table for display
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnDraw( oSettings )
- {
- /* Provide a pre-callback function which can be used to cancel the draw is false is returned */
- var aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );
- if ( $.inArray( false, aPreDraw ) !== -1 )
- {
- _fnProcessingDisplay( oSettings, false );
- return;
- }
-
- var i, iLen, n;
- var anRows = [];
- var iRowCount = 0;
- var asStripeClasses = oSettings.asStripeClasses;
- var iStripes = asStripeClasses.length;
- var iOpenRows = oSettings.aoOpenRows.length;
- var oLang = oSettings.oLanguage;
- var iInitDisplayStart = oSettings.iInitDisplayStart;
- var bServerSide = _fnDataSource( oSettings ) == 'ssp';
- var aiDisplay = oSettings.aiDisplay;
-
- oSettings.bDrawing = true;
-
- /* Check and see if we have an initial draw position from state saving */
- if ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )
- {
- oSettings._iDisplayStart = bServerSide ?
- iInitDisplayStart :
- iInitDisplayStart >= oSettings.fnRecordsDisplay() ?
- 0 :
- iInitDisplayStart;
-
- oSettings.iInitDisplayStart = -1;
- }
-
- var iDisplayStart = oSettings._iDisplayStart;
- var iDisplayEnd = oSettings.fnDisplayEnd();
-
- /* Server-side processing draw intercept */
- if ( oSettings.bDeferLoading )
- {
- oSettings.bDeferLoading = false;
- oSettings.iDraw++;
- _fnProcessingDisplay( oSettings, false );
- }
- else if ( !bServerSide )
- {
- oSettings.iDraw++;
- }
- else if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )
- {
- return;
- }
-
- if ( aiDisplay.length !== 0 )
- {
- var iStart = bServerSide ? 0 : iDisplayStart;
- var iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;
-
- for ( var j=iStart ; j<iEnd ; j++ )
- {
- var iDataIndex = aiDisplay[j];
- var aoData = oSettings.aoData[ iDataIndex ];
- if ( aoData.nTr === null )
- {
- _fnCreateTr( oSettings, iDataIndex );
- }
-
- var nRow = aoData.nTr;
-
- /* Remove the old striping classes and then add the new one */
- if ( iStripes !== 0 )
- {
- var sStripe = asStripeClasses[ iRowCount % iStripes ];
- if ( aoData._sRowStripe != sStripe )
- {
- $(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );
- aoData._sRowStripe = sStripe;
- }
- }
-
- // Row callback functions - might want to manipulate the row
- // iRowCount and j are not currently documented. Are they at all
- // useful?
- _fnCallbackFire( oSettings, 'aoRowCallback', null,
- [nRow, aoData._aData, iRowCount, j] );
-
- anRows.push( nRow );
- iRowCount++;
- }
- }
- else
- {
- /* Table is empty - create a row with an empty message in it */
- var sZero = oLang.sZeroRecords;
- if ( oSettings.iDraw == 1 && _fnDataSource( oSettings ) == 'ajax' )
- {
- sZero = oLang.sLoadingRecords;
- }
- else if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )
- {
- sZero = oLang.sEmptyTable;
- }
-
- anRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )
- .append( $('<td />', {
- 'valign': 'top',
- 'colSpan': _fnVisbleColumns( oSettings ),
- 'class': oSettings.oClasses.sRowEmpty
- } ).html( sZero ) )[0];
- }
-
- /* Header and footer callbacks */
- _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
- _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
-
- _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
- _fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );
-
- var body = $(oSettings.nTBody);
-
- body.children().detach();
- body.append( $(anRows) );
-
- /* Call all required callback functions for the end of a draw */
- _fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );
-
- /* Draw is complete, sorting and filtering must be as well */
- oSettings.bSorted = false;
- oSettings.bFiltered = false;
- oSettings.bDrawing = false;
- }
-
-
- /**
- * Redraw the table - taking account of the various features which are enabled
- * @param {object} oSettings dataTables settings object
- * @param {boolean} [holdPosition] Keep the current paging position. By default
- * the paging is reset to the first page
- * @memberof DataTable#oApi
- */
- function _fnReDraw( settings, holdPosition )
- {
- var
- features = settings.oFeatures,
- sort = features.bSort,
- filter = features.bFilter;
-
- if ( sort ) {
- _fnSort( settings );
- }
-
- if ( filter ) {
- _fnFilterComplete( settings, settings.oPreviousSearch );
- }
- else {
- // No filtering, so we want to just use the display master
- settings.aiDisplay = settings.aiDisplayMaster.slice();
- }
-
- if ( holdPosition !== true ) {
- settings._iDisplayStart = 0;
- }
-
- // Let any modules know about the draw hold position state (used by
- // scrolling internally)
- settings._drawHold = holdPosition;
-
- _fnDraw( settings );
-
- settings._drawHold = false;
- }
-
-
- /**
- * Add the options to the page HTML for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnAddOptionsHtml ( oSettings )
- {
- var classes = oSettings.oClasses;
- var table = $(oSettings.nTable);
- var holding = $('<div/>').insertBefore( table ); // Holding element for speed
- var features = oSettings.oFeatures;
-
- // All DataTables are wrapped in a div
- var insert = $('<div/>', {
- id: oSettings.sTableId+'_wrapper',
- 'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)
- } );
-
- oSettings.nHolding = holding[0];
- oSettings.nTableWrapper = insert[0];
- oSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;
-
- /* Loop over the user set positioning and place the elements as needed */
- var aDom = oSettings.sDom.split('');
- var featureNode, cOption, nNewNode, cNext, sAttr, j;
- for ( var i=0 ; i<aDom.length ; i++ )
- {
- featureNode = null;
- cOption = aDom[i];
-
- if ( cOption == '<' )
- {
- /* New container div */
- nNewNode = $('<div/>')[0];
-
- /* Check to see if we should append an id and/or a class name to the container */
- cNext = aDom[i+1];
- if ( cNext == "'" || cNext == '"' )
- {
- sAttr = "";
- j = 2;
- while ( aDom[i+j] != cNext )
- {
- sAttr += aDom[i+j];
- j++;
- }
-
- /* Replace jQuery UI constants @todo depreciated */
- if ( sAttr == "H" )
- {
- sAttr = classes.sJUIHeader;
- }
- else if ( sAttr == "F" )
- {
- sAttr = classes.sJUIFooter;
- }
-
- /* The attribute can be in the format of "#id.class", "#id" or "class" This logic
- * breaks the string into parts and applies them as needed
- */
- if ( sAttr.indexOf('.') != -1 )
- {
- var aSplit = sAttr.split('.');
- nNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);
- nNewNode.className = aSplit[1];
- }
- else if ( sAttr.charAt(0) == "#" )
- {
- nNewNode.id = sAttr.substr(1, sAttr.length-1);
- }
- else
- {
- nNewNode.className = sAttr;
- }
-
- i += j; /* Move along the position array */
- }
-
- insert.append( nNewNode );
- insert = $(nNewNode);
- }
- else if ( cOption == '>' )
- {
- /* End container div */
- insert = insert.parent();
- }
- // @todo Move options into their own plugins?
- else if ( cOption == 'l' && features.bPaginate && features.bLengthChange )
- {
- /* Length */
- featureNode = _fnFeatureHtmlLength( oSettings );
- }
- else if ( cOption == 'f' && features.bFilter )
- {
- /* Filter */
- featureNode = _fnFeatureHtmlFilter( oSettings );
- }
- else if ( cOption == 'r' && features.bProcessing )
- {
- /* pRocessing */
- featureNode = _fnFeatureHtmlProcessing( oSettings );
- }
- else if ( cOption == 't' )
- {
- /* Table */
- featureNode = _fnFeatureHtmlTable( oSettings );
- }
- else if ( cOption == 'i' && features.bInfo )
- {
- /* Info */
- featureNode = _fnFeatureHtmlInfo( oSettings );
- }
- else if ( cOption == 'p' && features.bPaginate )
- {
- /* Pagination */
- featureNode = _fnFeatureHtmlPaginate( oSettings );
- }
- else if ( DataTable.ext.feature.length !== 0 )
- {
- /* Plug-in features */
- var aoFeatures = DataTable.ext.feature;
- for ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )
- {
- if ( cOption == aoFeatures[k].cFeature )
- {
- featureNode = aoFeatures[k].fnInit( oSettings );
- break;
- }
- }
- }
-
- /* Add to the 2D features array */
- if ( featureNode )
- {
- var aanFeatures = oSettings.aanFeatures;
-
- if ( ! aanFeatures[cOption] )
- {
- aanFeatures[cOption] = [];
- }
-
- aanFeatures[cOption].push( featureNode );
- insert.append( featureNode );
- }
- }
-
- /* Built our DOM structure - replace the holding div with what we want */
- holding.replaceWith( insert );
- oSettings.nHolding = null;
- }
-
-
- /**
- * Use the DOM source to create up an array of header cells. The idea here is to
- * create a layout grid (array) of rows x columns, which contains a reference
- * to the cell that that point in the grid (regardless of col/rowspan), such that
- * any column / row could be removed and the new grid constructed
- * @param array {object} aLayout Array to store the calculated layout in
- * @param {node} nThead The header/footer element for the table
- * @memberof DataTable#oApi
- */
- function _fnDetectHeader ( aLayout, nThead )
- {
- var nTrs = $(nThead).children('tr');
- var nTr, nCell;
- var i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;
- var bUnique;
- var fnShiftCol = function ( a, i, j ) {
- var k = a[i];
- while ( k[j] ) {
- j++;
- }
- return j;
- };
-
- aLayout.splice( 0, aLayout.length );
-
- /* We know how many rows there are in the layout - so prep it */
- for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
- {
- aLayout.push( [] );
- }
-
- /* Calculate a layout array */
- for ( i=0, iLen=nTrs.length ; i<iLen ; i++ )
- {
- nTr = nTrs[i];
- iColumn = 0;
-
- /* For every cell in the row... */
- nCell = nTr.firstChild;
- while ( nCell ) {
- if ( nCell.nodeName.toUpperCase() == "TD" ||
- nCell.nodeName.toUpperCase() == "TH" )
- {
- /* Get the col and rowspan attributes from the DOM and sanitise them */
- iColspan = nCell.getAttribute('colspan') * 1;
- iRowspan = nCell.getAttribute('rowspan') * 1;
- iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
- iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
-
- /* There might be colspan cells already in this row, so shift our target
- * accordingly
- */
- iColShifted = fnShiftCol( aLayout, i, iColumn );
-
- /* Cache calculation for unique columns */
- bUnique = iColspan === 1 ? true : false;
-
- /* If there is col / rowspan, copy the information into the layout grid */
- for ( l=0 ; l<iColspan ; l++ )
- {
- for ( k=0 ; k<iRowspan ; k++ )
- {
- aLayout[i+k][iColShifted+l] = {
- "cell": nCell,
- "unique": bUnique
- };
- aLayout[i+k].nTr = nTr;
- }
- }
- }
- nCell = nCell.nextSibling;
- }
- }
- }
-
-
- /**
- * Get an array of unique th elements, one for each column
- * @param {object} oSettings dataTables settings object
- * @param {node} nHeader automatically detect the layout from this node - optional
- * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional
- * @returns array {node} aReturn list of unique th's
- * @memberof DataTable#oApi
- */
- function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
- {
- var aReturn = [];
- if ( !aLayout )
- {
- aLayout = oSettings.aoHeader;
- if ( nHeader )
- {
- aLayout = [];
- _fnDetectHeader( aLayout, nHeader );
- }
- }
-
- for ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )
- {
- for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
- {
- if ( aLayout[i][j].unique &&
- (!aReturn[j] || !oSettings.bSortCellsTop) )
- {
- aReturn[j] = aLayout[i][j].cell;
- }
- }
- }
-
- return aReturn;
- }
-
- /**
- * Create an Ajax call based on the table's settings, taking into account that
- * parameters can have multiple forms, and backwards compatibility.
- *
- * @param {object} oSettings dataTables settings object
- * @param {array} data Data to send to the server, required by
- * DataTables - may be augmented by developer callbacks
- * @param {function} fn Callback function to run when data is obtained
- */
- function _fnBuildAjax( oSettings, data, fn )
- {
- // Compatibility with 1.9-, allow fnServerData and event to manipulate
- _fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );
-
- // Convert to object based for 1.10+ if using the old array scheme which can
- // come from server-side processing or serverParams
- if ( data && $.isArray(data) ) {
- var tmp = {};
- var rbracket = /(.*?)\[\]$/;
-
- $.each( data, function (key, val) {
- var match = val.name.match(rbracket);
-
- if ( match ) {
- // Support for arrays
- var name = match[0];
-
- if ( ! tmp[ name ] ) {
- tmp[ name ] = [];
- }
- tmp[ name ].push( val.value );
- }
- else {
- tmp[val.name] = val.value;
- }
- } );
- data = tmp;
- }
-
- var ajaxData;
- var ajax = oSettings.ajax;
- var instance = oSettings.oInstance;
- var callback = function ( json ) {
- _fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );
- fn( json );
- };
-
- if ( $.isPlainObject( ajax ) && ajax.data )
- {
- ajaxData = ajax.data;
-
- var newData = $.isFunction( ajaxData ) ?
- ajaxData( data, oSettings ) : // fn can manipulate data or return
- ajaxData; // an object object or array to merge
-
- // If the function returned something, use that alone
- data = $.isFunction( ajaxData ) && newData ?
- newData :
- $.extend( true, data, newData );
-
- // Remove the data property as we've resolved it already and don't want
- // jQuery to do it again (it is restored at the end of the function)
- delete ajax.data;
- }
-
- var baseAjax = {
- "data": data,
- "success": function (json) {
- var error = json.error || json.sError;
- if ( error ) {
- _fnLog( oSettings, 0, error );
- }
-
- oSettings.json = json;
- callback( json );
- },
- "dataType": "json",
- "cache": false,
- "type": oSettings.sServerMethod,
- "error": function (xhr, error, thrown) {
- var ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );
-
- if ( $.inArray( true, ret ) === -1 ) {
- if ( error == "parsererror" ) {
- _fnLog( oSettings, 0, 'Invalid JSON response', 1 );
- }
- else if ( xhr.readyState === 4 ) {
- _fnLog( oSettings, 0, 'Ajax error', 7 );
- }
- }
-
- _fnProcessingDisplay( oSettings, false );
- }
- };
-
- // Store the data submitted for the API
- oSettings.oAjaxData = data;
-
- // Allow plug-ins and external processes to modify the data
- _fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );
-
- if ( oSettings.fnServerData )
- {
- // DataTables 1.9- compatibility
- oSettings.fnServerData.call( instance,
- oSettings.sAjaxSource,
- $.map( data, function (val, key) { // Need to convert back to 1.9 trad format
- return { name: key, value: val };
- } ),
- callback,
- oSettings
- );
- }
- else if ( oSettings.sAjaxSource || typeof ajax === 'string' )
- {
- // DataTables 1.9- compatibility
- oSettings.jqXHR = $.ajax( $.extend( baseAjax, {
- url: ajax || oSettings.sAjaxSource
- } ) );
- }
- else if ( $.isFunction( ajax ) )
- {
- // Is a function - let the caller define what needs to be done
- oSettings.jqXHR = ajax.call( instance, data, callback, oSettings );
- }
- else
- {
- // Object to extend the base settings
- oSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );
-
- // Restore for next time around
- ajax.data = ajaxData;
- }
- }
-
-
- /**
- * Update the table using an Ajax call
- * @param {object} settings dataTables settings object
- * @returns {boolean} Block the table drawing or not
- * @memberof DataTable#oApi
- */
- function _fnAjaxUpdate( settings )
- {
- if ( settings.bAjaxDataGet ) {
- settings.iDraw++;
- _fnProcessingDisplay( settings, true );
-
- _fnBuildAjax(
- settings,
- _fnAjaxParameters( settings ),
- function(json) {
- _fnAjaxUpdateDraw( settings, json );
- }
- );
-
- return false;
- }
- return true;
- }
-
-
- /**
- * Build up the parameters in an object needed for a server-side processing
- * request. Note that this is basically done twice, is different ways - a modern
- * method which is used by default in DataTables 1.10 which uses objects and
- * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if
- * the sAjaxSource option is used in the initialisation, or the legacyAjax
- * option is set.
- * @param {object} oSettings dataTables settings object
- * @returns {bool} block the table drawing or not
- * @memberof DataTable#oApi
- */
- function _fnAjaxParameters( settings )
- {
- var
- columns = settings.aoColumns,
- columnCount = columns.length,
- features = settings.oFeatures,
- preSearch = settings.oPreviousSearch,
- preColSearch = settings.aoPreSearchCols,
- i, data = [], dataProp, column, columnSearch,
- sort = _fnSortFlatten( settings ),
- displayStart = settings._iDisplayStart,
- displayLength = features.bPaginate !== false ?
- settings._iDisplayLength :
- -1;
-
- var param = function ( name, value ) {
- data.push( { 'name': name, 'value': value } );
- };
-
- // DataTables 1.9- compatible method
- param( 'sEcho', settings.iDraw );
- param( 'iColumns', columnCount );
- param( 'sColumns', _pluck( columns, 'sName' ).join(',') );
- param( 'iDisplayStart', displayStart );
- param( 'iDisplayLength', displayLength );
-
- // DataTables 1.10+ method
- var d = {
- draw: settings.iDraw,
- columns: [],
- order: [],
- start: displayStart,
- length: displayLength,
- search: {
- value: preSearch.sSearch,
- regex: preSearch.bRegex
- }
- };
-
- for ( i=0 ; i<columnCount ; i++ ) {
- column = columns[i];
- columnSearch = preColSearch[i];
- dataProp = typeof column.mData=="function" ? 'function' : column.mData ;
-
- d.columns.push( {
- data: dataProp,
- name: column.sName,
- searchable: column.bSearchable,
- orderable: column.bSortable,
- search: {
- value: columnSearch.sSearch,
- regex: columnSearch.bRegex
- }
- } );
-
- param( "mDataProp_"+i, dataProp );
-
- if ( features.bFilter ) {
- param( 'sSearch_'+i, columnSearch.sSearch );
- param( 'bRegex_'+i, columnSearch.bRegex );
- param( 'bSearchable_'+i, column.bSearchable );
- }
-
- if ( features.bSort ) {
- param( 'bSortable_'+i, column.bSortable );
- }
- }
-
- if ( features.bFilter ) {
- param( 'sSearch', preSearch.sSearch );
- param( 'bRegex', preSearch.bRegex );
- }
-
- if ( features.bSort ) {
- $.each( sort, function ( i, val ) {
- d.order.push( { column: val.col, dir: val.dir } );
-
- param( 'iSortCol_'+i, val.col );
- param( 'sSortDir_'+i, val.dir );
- } );
-
- param( 'iSortingCols', sort.length );
- }
-
- // If the legacy.ajax parameter is null, then we automatically decide which
- // form to use, based on sAjaxSource
- var legacy = DataTable.ext.legacy.ajax;
- if ( legacy === null ) {
- return settings.sAjaxSource ? data : d;
- }
-
- // Otherwise, if legacy has been specified then we use that to decide on the
- // form
- return legacy ? data : d;
- }
-
-
- /**
- * Data the data from the server (nuking the old) and redraw the table
- * @param {object} oSettings dataTables settings object
- * @param {object} json json data return from the server.
- * @param {string} json.sEcho Tracking flag for DataTables to match requests
- * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering
- * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering
- * @param {array} json.aaData The data to display on this page
- * @param {string} [json.sColumns] Column ordering (sName, comma separated)
- * @memberof DataTable#oApi
- */
- function _fnAjaxUpdateDraw ( settings, json )
- {
- // v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.
- // Support both
- var compat = function ( old, modern ) {
- return json[old] !== undefined ? json[old] : json[modern];
- };
-
- var data = _fnAjaxDataSrc( settings, json );
- var draw = compat( 'sEcho', 'draw' );
- var recordsTotal = compat( 'iTotalRecords', 'recordsTotal' );
- var recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );
-
- if ( draw ) {
- // Protect against out of sequence returns
- if ( draw*1 < settings.iDraw ) {
- return;
- }
- settings.iDraw = draw * 1;
- }
-
- _fnClearTable( settings );
- settings._iRecordsTotal = parseInt(recordsTotal, 10);
- settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
-
- for ( var i=0, ien=data.length ; i<ien ; i++ ) {
- _fnAddData( settings, data[i] );
- }
- settings.aiDisplay = settings.aiDisplayMaster.slice();
-
- settings.bAjaxDataGet = false;
- _fnDraw( settings );
-
- if ( ! settings._bInitComplete ) {
- _fnInitComplete( settings, json );
- }
-
- settings.bAjaxDataGet = true;
- _fnProcessingDisplay( settings, false );
- }
-
-
- /**
- * Get the data from the JSON data source to use for drawing a table. Using
- * `_fnGetObjectDataFn` allows the data to be sourced from a property of the
- * source object, or from a processing function.
- * @param {object} oSettings dataTables settings object
- * @param {object} json Data source object / array from the server
- * @return {array} Array of data to use
- */
- function _fnAjaxDataSrc ( oSettings, json )
- {
- var dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?
- oSettings.ajax.dataSrc :
- oSettings.sAjaxDataProp; // Compatibility with 1.9-.
-
- // Compatibility with 1.9-. In order to read from aaData, check if the
- // default has been changed, if not, check for aaData
- if ( dataSrc === 'data' ) {
- return json.aaData || json[dataSrc];
- }
-
- return dataSrc !== "" ?
- _fnGetObjectDataFn( dataSrc )( json ) :
- json;
- }
-
- /**
- * Generate the node required for filtering text
- * @returns {node} Filter control element
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlFilter ( settings )
- {
- var classes = settings.oClasses;
- var tableId = settings.sTableId;
- var language = settings.oLanguage;
- var previousSearch = settings.oPreviousSearch;
- var features = settings.aanFeatures;
- var input = '<input type="search" class="'+classes.sFilterInput+'"/>';
-
- var str = language.sSearch;
- str = str.match(/_INPUT_/) ?
- str.replace('_INPUT_', input) :
- str+input;
-
- var filter = $('<div/>', {
- 'id': ! features.f ? tableId+'_filter' : null,
- 'class': classes.sFilter
- } )
- .append( $('<label/>' ).append( str ) );
-
- var searchFn = function() {
- /* Update all other filter input elements for the new display */
- var n = features.f;
- var val = !this.value ? "" : this.value; // mental IE8 fix :-(
-
- /* Now do the filter */
- if ( val != previousSearch.sSearch ) {
- _fnFilterComplete( settings, {
- "sSearch": val,
- "bRegex": previousSearch.bRegex,
- "bSmart": previousSearch.bSmart ,
- "bCaseInsensitive": previousSearch.bCaseInsensitive
- } );
-
- // Need to redraw, without resorting
- settings._iDisplayStart = 0;
- _fnDraw( settings );
- }
- };
-
- var searchDelay = settings.searchDelay !== null ?
- settings.searchDelay :
- _fnDataSource( settings ) === 'ssp' ?
- 400 :
- 0;
-
- var jqFilter = $('input', filter)
- .val( previousSearch.sSearch )
- .attr( 'placeholder', language.sSearchPlaceholder )
- .bind(
- 'keyup.DT search.DT input.DT paste.DT cut.DT',
- searchDelay ?
- _fnThrottle( searchFn, searchDelay ) :
- searchFn
- )
- .bind( 'keypress.DT', function(e) {
- /* Prevent form submission */
- if ( e.keyCode == 13 ) {
- return false;
- }
- } )
- .attr('aria-controls', tableId);
-
- // Update the input elements whenever the table is filtered
- $(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {
- if ( settings === s ) {
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame...
- try {
- if ( jqFilter[0] !== document.activeElement ) {
- jqFilter.val( previousSearch.sSearch );
- }
- }
- catch ( e ) {}
- }
- } );
-
- return filter[0];
- }
-
-
- /**
- * Filter the table using both the global filter and column based filtering
- * @param {object} oSettings dataTables settings object
- * @param {object} oSearch search information
- * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)
- * @memberof DataTable#oApi
- */
- function _fnFilterComplete ( oSettings, oInput, iForce )
- {
- var oPrevSearch = oSettings.oPreviousSearch;
- var aoPrevSearch = oSettings.aoPreSearchCols;
- var fnSaveFilter = function ( oFilter ) {
- /* Save the filtering values */
- oPrevSearch.sSearch = oFilter.sSearch;
- oPrevSearch.bRegex = oFilter.bRegex;
- oPrevSearch.bSmart = oFilter.bSmart;
- oPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;
- };
- var fnRegex = function ( o ) {
- // Backwards compatibility with the bEscapeRegex option
- return o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;
- };
-
- // Resolve any column types that are unknown due to addition or invalidation
- // @todo As per sort - can this be moved into an event handler?
- _fnColumnTypes( oSettings );
-
- /* In server-side processing all filtering is done by the server, so no point hanging around here */
- if ( _fnDataSource( oSettings ) != 'ssp' )
- {
- /* Global filter */
- _fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );
- fnSaveFilter( oInput );
-
- /* Now do the individual column filter */
- for ( var i=0 ; i<aoPrevSearch.length ; i++ )
- {
- _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),
- aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
- }
-
- /* Custom filtering */
- _fnFilterCustom( oSettings );
- }
- else
- {
- fnSaveFilter( oInput );
- }
-
- /* Tell the draw function we have been filtering */
- oSettings.bFiltered = true;
- _fnCallbackFire( oSettings, null, 'search', [oSettings] );
- }
-
-
- /**
- * Apply custom filtering functions
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnFilterCustom( settings )
- {
- var filters = DataTable.ext.search;
- var displayRows = settings.aiDisplay;
- var row, rowIdx;
-
- for ( var i=0, ien=filters.length ; i<ien ; i++ ) {
- var rows = [];
-
- // Loop over each row and see if it should be included
- for ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {
- rowIdx = displayRows[ j ];
- row = settings.aoData[ rowIdx ];
-
- if ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {
- rows.push( rowIdx );
- }
- }
-
- // So the array reference doesn't break set the results into the
- // existing array
- displayRows.length = 0;
- $.merge( displayRows, rows );
- }
- }
-
-
- /**
- * Filter the table on a per-column basis
- * @param {object} oSettings dataTables settings object
- * @param {string} sInput string to filter on
- * @param {int} iColumn column to filter
- * @param {bool} bRegex treat search string as a regular expression or not
- * @param {bool} bSmart use smart filtering or not
- * @param {bool} bCaseInsensitive Do case insenstive matching or not
- * @memberof DataTable#oApi
- */
- function _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )
- {
- if ( searchStr === '' ) {
- return;
- }
-
- var data;
- var display = settings.aiDisplay;
- var rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );
-
- for ( var i=display.length-1 ; i>=0 ; i-- ) {
- data = settings.aoData[ display[i] ]._aFilterData[ colIdx ];
-
- if ( ! rpSearch.test( data ) ) {
- display.splice( i, 1 );
- }
- }
- }
-
-
- /**
- * Filter the data table based on user input and draw the table
- * @param {object} settings dataTables settings object
- * @param {string} input string to filter on
- * @param {int} force optional - force a research of the master array (1) or not (undefined or 0)
- * @param {bool} regex treat as a regular expression or not
- * @param {bool} smart perform smart filtering or not
- * @param {bool} caseInsensitive Do case insenstive matching or not
- * @memberof DataTable#oApi
- */
- function _fnFilter( settings, input, force, regex, smart, caseInsensitive )
- {
- var rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );
- var prevSearch = settings.oPreviousSearch.sSearch;
- var displayMaster = settings.aiDisplayMaster;
- var display, invalidated, i;
-
- // Need to take account of custom filtering functions - always filter
- if ( DataTable.ext.search.length !== 0 ) {
- force = true;
- }
-
- // Check if any of the rows were invalidated
- invalidated = _fnFilterData( settings );
-
- // If the input is blank - we just want the full data set
- if ( input.length <= 0 ) {
- settings.aiDisplay = displayMaster.slice();
- }
- else {
- // New search - start from the master array
- if ( invalidated ||
- force ||
- prevSearch.length > input.length ||
- input.indexOf(prevSearch) !== 0 ||
- settings.bSorted // On resort, the display master needs to be
- // re-filtered since indexes will have changed
- ) {
- settings.aiDisplay = displayMaster.slice();
- }
-
- // Search the display array
- display = settings.aiDisplay;
-
- for ( i=display.length-1 ; i>=0 ; i-- ) {
- if ( ! rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {
- display.splice( i, 1 );
- }
- }
- }
- }
-
-
- /**
- * Build a regular expression object suitable for searching a table
- * @param {string} sSearch string to search for
- * @param {bool} bRegex treat as a regular expression or not
- * @param {bool} bSmart perform smart filtering or not
- * @param {bool} bCaseInsensitive Do case insensitive matching or not
- * @returns {RegExp} constructed object
- * @memberof DataTable#oApi
- */
- function _fnFilterCreateSearch( search, regex, smart, caseInsensitive )
- {
- search = regex ?
- search :
- _fnEscapeRegex( search );
-
- if ( smart ) {
- /* For smart filtering we want to allow the search to work regardless of
- * word order. We also want double quoted text to be preserved, so word
- * order is important - a la google. So this is what we want to
- * generate:
- *
- * ^(?=.*?\bone\b)(?=.*?\btwo three\b)(?=.*?\bfour\b).*$
- */
- var a = $.map( search.match( /"[^"]+"|[^ ]+/g ) || [''], function ( word ) {
- if ( word.charAt(0) === '"' ) {
- var m = word.match( /^"(.*)"$/ );
- word = m ? m[1] : word;
- }
-
- return word.replace('"', '');
- } );
-
- search = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';
- }
-
- return new RegExp( search, caseInsensitive ? 'i' : '' );
- }
-
-
- /**
- * Escape a string such that it can be used in a regular expression
- * @param {string} sVal string to escape
- * @returns {string} escaped string
- * @memberof DataTable#oApi
- */
- function _fnEscapeRegex ( sVal )
- {
- return sVal.replace( _re_escape_regex, '\\$1' );
- }
-
-
-
- var __filter_div = $('<div>')[0];
- var __filter_div_textContent = __filter_div.textContent !== undefined;
-
- // Update the filtering data for each row if needed (by invalidation or first run)
- function _fnFilterData ( settings )
- {
- var columns = settings.aoColumns;
- var column;
- var i, j, ien, jen, filterData, cellData, row;
- var fomatters = DataTable.ext.type.search;
- var wasInvalidated = false;
-
- for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
- row = settings.aoData[i];
-
- if ( ! row._aFilterData ) {
- filterData = [];
-
- for ( j=0, jen=columns.length ; j<jen ; j++ ) {
- column = columns[j];
-
- if ( column.bSearchable ) {
- cellData = _fnGetCellData( settings, i, j, 'filter' );
-
- if ( fomatters[ column.sType ] ) {
- cellData = fomatters[ column.sType ]( cellData );
- }
-
- // Search in DataTables 1.10 is string based. In 1.11 this
- // should be altered to also allow strict type checking.
- if ( cellData === null ) {
- cellData = '';
- }
-
- if ( typeof cellData !== 'string' && cellData.toString ) {
- cellData = cellData.toString();
- }
- }
- else {
- cellData = '';
- }
-
- // If it looks like there is an HTML entity in the string,
- // attempt to decode it so sorting works as expected. Note that
- // we could use a single line of jQuery to do this, but the DOM
- // method used here is much faster http://jsperf.com/html-decode
- if ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {
- __filter_div.innerHTML = cellData;
- cellData = __filter_div_textContent ?
- __filter_div.textContent :
- __filter_div.innerText;
- }
-
- if ( cellData.replace ) {
- cellData = cellData.replace(/[\r\n]/g, '');
- }
-
- filterData.push( cellData );
- }
-
- row._aFilterData = filterData;
- row._sFilterRow = filterData.join(' ');
- wasInvalidated = true;
- }
- }
-
- return wasInvalidated;
- }
-
-
- /**
- * Convert from the internal Hungarian notation to camelCase for external
- * interaction
- * @param {object} obj Object to convert
- * @returns {object} Inverted object
- * @memberof DataTable#oApi
- */
- function _fnSearchToCamel ( obj )
- {
- return {
- search: obj.sSearch,
- smart: obj.bSmart,
- regex: obj.bRegex,
- caseInsensitive: obj.bCaseInsensitive
- };
- }
-
-
-
- /**
- * Convert from camelCase notation to the internal Hungarian. We could use the
- * Hungarian convert function here, but this is cleaner
- * @param {object} obj Object to convert
- * @returns {object} Inverted object
- * @memberof DataTable#oApi
- */
- function _fnSearchToHung ( obj )
- {
- return {
- sSearch: obj.search,
- bSmart: obj.smart,
- bRegex: obj.regex,
- bCaseInsensitive: obj.caseInsensitive
- };
- }
-
- /**
- * Generate the node required for the info display
- * @param {object} oSettings dataTables settings object
- * @returns {node} Information element
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlInfo ( settings )
- {
- var
- tid = settings.sTableId,
- nodes = settings.aanFeatures.i,
- n = $('<div/>', {
- 'class': settings.oClasses.sInfo,
- 'id': ! nodes ? tid+'_info' : null
- } );
-
- if ( ! nodes ) {
- // Update display on each draw
- settings.aoDrawCallback.push( {
- "fn": _fnUpdateInfo,
- "sName": "information"
- } );
-
- n
- .attr( 'role', 'status' )
- .attr( 'aria-live', 'polite' );
-
- // Table is described by our info div
- $(settings.nTable).attr( 'aria-describedby', tid+'_info' );
- }
-
- return n[0];
- }
-
-
- /**
- * Update the information elements in the display
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnUpdateInfo ( settings )
- {
- /* Show information about the table */
- var nodes = settings.aanFeatures.i;
- if ( nodes.length === 0 ) {
- return;
- }
-
- var
- lang = settings.oLanguage,
- start = settings._iDisplayStart+1,
- end = settings.fnDisplayEnd(),
- max = settings.fnRecordsTotal(),
- total = settings.fnRecordsDisplay(),
- out = total ?
- lang.sInfo :
- lang.sInfoEmpty;
-
- if ( total !== max ) {
- /* Record set after filtering */
- out += ' ' + lang.sInfoFiltered;
- }
-
- // Convert the macros
- out += lang.sInfoPostFix;
- out = _fnInfoMacros( settings, out );
-
- var callback = lang.fnInfoCallback;
- if ( callback !== null ) {
- out = callback.call( settings.oInstance,
- settings, start, end, max, total, out
- );
- }
-
- $(nodes).html( out );
- }
-
-
- function _fnInfoMacros ( settings, str )
- {
- // When infinite scrolling, we are always starting at 1. _iDisplayStart is used only
- // internally
- var
- formatter = settings.fnFormatNumber,
- start = settings._iDisplayStart+1,
- len = settings._iDisplayLength,
- vis = settings.fnRecordsDisplay(),
- all = len === -1;
-
- return str.
- replace(/_START_/g, formatter.call( settings, start ) ).
- replace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).
- replace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).
- replace(/_TOTAL_/g, formatter.call( settings, vis ) ).
- replace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).
- replace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );
- }
-
-
-
- /**
- * Draw the table for the first time, adding all required features
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnInitialise ( settings )
- {
- var i, iLen, iAjaxStart=settings.iInitDisplayStart;
- var columns = settings.aoColumns, column;
- var features = settings.oFeatures;
- var deferLoading = settings.bDeferLoading; // value modified by the draw
-
- /* Ensure that the table data is fully initialised */
- if ( ! settings.bInitialised ) {
- setTimeout( function(){ _fnInitialise( settings ); }, 200 );
- return;
- }
-
- /* Show the display HTML options */
- _fnAddOptionsHtml( settings );
-
- /* Build and draw the header / footer for the table */
- _fnBuildHead( settings );
- _fnDrawHead( settings, settings.aoHeader );
- _fnDrawHead( settings, settings.aoFooter );
-
- /* Okay to show that something is going on now */
- _fnProcessingDisplay( settings, true );
-
- /* Calculate sizes for columns */
- if ( features.bAutoWidth ) {
- _fnCalculateColumnWidths( settings );
- }
-
- for ( i=0, iLen=columns.length ; i<iLen ; i++ ) {
- column = columns[i];
-
- if ( column.sWidth ) {
- column.nTh.style.width = _fnStringToCss( column.sWidth );
- }
- }
-
- _fnCallbackFire( settings, null, 'preInit', [settings] );
-
- // If there is default sorting required - let's do it. The sort function
- // will do the drawing for us. Otherwise we draw the table regardless of the
- // Ajax source - this allows the table to look initialised for Ajax sourcing
- // data (show 'loading' message possibly)
- _fnReDraw( settings );
-
- // Server-side processing init complete is done by _fnAjaxUpdateDraw
- var dataSrc = _fnDataSource( settings );
- if ( dataSrc != 'ssp' || deferLoading ) {
- // if there is an ajax source load the data
- if ( dataSrc == 'ajax' ) {
- _fnBuildAjax( settings, [], function(json) {
- var aData = _fnAjaxDataSrc( settings, json );
-
- // Got the data - add it to the table
- for ( i=0 ; i<aData.length ; i++ ) {
- _fnAddData( settings, aData[i] );
- }
-
- // Reset the init display for cookie saving. We've already done
- // a filter, and therefore cleared it before. So we need to make
- // it appear 'fresh'
- settings.iInitDisplayStart = iAjaxStart;
-
- _fnReDraw( settings );
-
- _fnProcessingDisplay( settings, false );
- _fnInitComplete( settings, json );
- }, settings );
- }
- else {
- _fnProcessingDisplay( settings, false );
- _fnInitComplete( settings );
- }
- }
- }
-
-
- /**
- * Draw the table for the first time, adding all required features
- * @param {object} oSettings dataTables settings object
- * @param {object} [json] JSON from the server that completed the table, if using Ajax source
- * with client-side processing (optional)
- * @memberof DataTable#oApi
- */
- function _fnInitComplete ( settings, json )
- {
- settings._bInitComplete = true;
-
- // When data was added after the initialisation (data or Ajax) we need to
- // calculate the column sizing
- if ( json || settings.oInit.aaData ) {
- _fnAdjustColumnSizing( settings );
- }
-
- _fnCallbackFire( settings, null, 'plugin-init', [settings, json] );
- _fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );
- }
-
-
- function _fnLengthChange ( settings, val )
- {
- var len = parseInt( val, 10 );
- settings._iDisplayLength = len;
-
- _fnLengthOverflow( settings );
-
- // Fire length change event
- _fnCallbackFire( settings, null, 'length', [settings, len] );
- }
-
-
- /**
- * Generate the node required for user display length changing
- * @param {object} settings dataTables settings object
- * @returns {node} Display length feature node
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlLength ( settings )
- {
- var
- classes = settings.oClasses,
- tableId = settings.sTableId,
- menu = settings.aLengthMenu,
- d2 = $.isArray( menu[0] ),
- lengths = d2 ? menu[0] : menu,
- language = d2 ? menu[1] : menu;
-
- var select = $('<select/>', {
- 'name': tableId+'_length',
- 'aria-controls': tableId,
- 'class': classes.sLengthSelect
- } );
-
- for ( var i=0, ien=lengths.length ; i<ien ; i++ ) {
- select[0][ i ] = new Option( language[i], lengths[i] );
- }
-
- var div = $('<div><label/></div>').addClass( classes.sLength );
- if ( ! settings.aanFeatures.l ) {
- div[0].id = tableId+'_length';
- }
-
- div.children().append(
- settings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )
- );
-
- // Can't use `select` variable as user might provide their own and the
- // reference is broken by the use of outerHTML
- $('select', div)
- .val( settings._iDisplayLength )
- .bind( 'change.DT', function(e) {
- _fnLengthChange( settings, $(this).val() );
- _fnDraw( settings );
- } );
-
- // Update node value whenever anything changes the table's length
- $(settings.nTable).bind( 'length.dt.DT', function (e, s, len) {
- if ( settings === s ) {
- $('select', div).val( len );
- }
- } );
-
- return div[0];
- }
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Note that most of the paging logic is done in
- * DataTable.ext.pager
- */
-
- /**
- * Generate the node required for default pagination
- * @param {object} oSettings dataTables settings object
- * @returns {node} Pagination feature node
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlPaginate ( settings )
- {
- var
- type = settings.sPaginationType,
- plugin = DataTable.ext.pager[ type ],
- modern = typeof plugin === 'function',
- redraw = function( settings ) {
- _fnDraw( settings );
- },
- node = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],
- features = settings.aanFeatures;
-
- if ( ! modern ) {
- plugin.fnInit( settings, node, redraw );
- }
-
- /* Add a draw callback for the pagination on first instance, to update the paging display */
- if ( ! features.p )
- {
- node.id = settings.sTableId+'_paginate';
-
- settings.aoDrawCallback.push( {
- "fn": function( settings ) {
- if ( modern ) {
- var
- start = settings._iDisplayStart,
- len = settings._iDisplayLength,
- visRecords = settings.fnRecordsDisplay(),
- all = len === -1,
- page = all ? 0 : Math.ceil( start / len ),
- pages = all ? 1 : Math.ceil( visRecords / len ),
- buttons = plugin(page, pages),
- i, ien;
-
- for ( i=0, ien=features.p.length ; i<ien ; i++ ) {
- _fnRenderer( settings, 'pageButton' )(
- settings, features.p[i], i, buttons, page, pages
- );
- }
- }
- else {
- plugin.fnUpdate( settings, redraw );
- }
- },
- "sName": "pagination"
- } );
- }
-
- return node;
- }
-
-
- /**
- * Alter the display settings to change the page
- * @param {object} settings DataTables settings object
- * @param {string|int} action Paging action to take: "first", "previous",
- * "next" or "last" or page number to jump to (integer)
- * @param [bool] redraw Automatically draw the update or not
- * @returns {bool} true page has changed, false - no change
- * @memberof DataTable#oApi
- */
- function _fnPageChange ( settings, action, redraw )
- {
- var
- start = settings._iDisplayStart,
- len = settings._iDisplayLength,
- records = settings.fnRecordsDisplay();
-
- if ( records === 0 || len === -1 )
- {
- start = 0;
- }
- else if ( typeof action === "number" )
- {
- start = action * len;
-
- if ( start > records )
- {
- start = 0;
- }
- }
- else if ( action == "first" )
- {
- start = 0;
- }
- else if ( action == "previous" )
- {
- start = len >= 0 ?
- start - len :
- 0;
-
- if ( start < 0 )
- {
- start = 0;
- }
- }
- else if ( action == "next" )
- {
- if ( start + len < records )
- {
- start += len;
- }
- }
- else if ( action == "last" )
- {
- start = Math.floor( (records-1) / len) * len;
- }
- else
- {
- _fnLog( settings, 0, "Unknown paging action: "+action, 5 );
- }
-
- var changed = settings._iDisplayStart !== start;
- settings._iDisplayStart = start;
-
- if ( changed ) {
- _fnCallbackFire( settings, null, 'page', [settings] );
-
- if ( redraw ) {
- _fnDraw( settings );
- }
- }
-
- return changed;
- }
-
-
-
- /**
- * Generate the node required for the processing node
- * @param {object} settings dataTables settings object
- * @returns {node} Processing element
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlProcessing ( settings )
- {
- return $('<div/>', {
- 'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,
- 'class': settings.oClasses.sProcessing
- } )
- .html( settings.oLanguage.sProcessing )
- .insertBefore( settings.nTable )[0];
- }
-
-
- /**
- * Display or hide the processing indicator
- * @param {object} settings dataTables settings object
- * @param {bool} show Show the processing indicator (true) or not (false)
- * @memberof DataTable#oApi
- */
- function _fnProcessingDisplay ( settings, show )
- {
- if ( settings.oFeatures.bProcessing ) {
- $(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );
- }
-
- _fnCallbackFire( settings, null, 'processing', [settings, show] );
- }
-
- /**
- * Add any control elements for the table - specifically scrolling
- * @param {object} settings dataTables settings object
- * @returns {node} Node to add to the DOM
- * @memberof DataTable#oApi
- */
- function _fnFeatureHtmlTable ( settings )
- {
- var table = $(settings.nTable);
-
- // Add the ARIA grid role to the table
- table.attr( 'role', 'grid' );
-
- // Scrolling from here on in
- var scroll = settings.oScroll;
-
- if ( scroll.sX === '' && scroll.sY === '' ) {
- return settings.nTable;
- }
-
- var scrollX = scroll.sX;
- var scrollY = scroll.sY;
- var classes = settings.oClasses;
- var caption = table.children('caption');
- var captionSide = caption.length ? caption[0]._captionSide : null;
- var headerClone = $( table[0].cloneNode(false) );
- var footerClone = $( table[0].cloneNode(false) );
- var footer = table.children('tfoot');
- var _div = '<div/>';
- var size = function ( s ) {
- return !s ? null : _fnStringToCss( s );
- };
-
- if ( ! footer.length ) {
- footer = null;
- }
-
- /*
- * The HTML structure that we want to generate in this function is:
- * div - scroller
- * div - scroll head
- * div - scroll head inner
- * table - scroll head table
- * thead - thead
- * div - scroll body
- * table - table (master table)
- * thead - thead clone for sizing
- * tbody - tbody
- * div - scroll foot
- * div - scroll foot inner
- * table - scroll foot table
- * tfoot - tfoot
- */
- var scroller = $( _div, { 'class': classes.sScrollWrapper } )
- .append(
- $(_div, { 'class': classes.sScrollHead } )
- .css( {
- overflow: 'hidden',
- position: 'relative',
- border: 0,
- width: scrollX ? size(scrollX) : '100%'
- } )
- .append(
- $(_div, { 'class': classes.sScrollHeadInner } )
- .css( {
- 'box-sizing': 'content-box',
- width: scroll.sXInner || '100%'
- } )
- .append(
- headerClone
- .removeAttr('id')
- .css( 'margin-left', 0 )
- .append( captionSide === 'top' ? caption : null )
- .append(
- table.children('thead')
- )
- )
- )
- )
- .append(
- $(_div, { 'class': classes.sScrollBody } )
- .css( {
- position: 'relative',
- overflow: 'auto',
- width: size( scrollX )
- } )
- .append( table )
- );
-
- if ( footer ) {
- scroller.append(
- $(_div, { 'class': classes.sScrollFoot } )
- .css( {
- overflow: 'hidden',
- border: 0,
- width: scrollX ? size(scrollX) : '100%'
- } )
- .append(
- $(_div, { 'class': classes.sScrollFootInner } )
- .append(
- footerClone
- .removeAttr('id')
- .css( 'margin-left', 0 )
- .append( captionSide === 'bottom' ? caption : null )
- .append(
- table.children('tfoot')
- )
- )
- )
- );
- }
-
- var children = scroller.children();
- var scrollHead = children[0];
- var scrollBody = children[1];
- var scrollFoot = footer ? children[2] : null;
-
- // When the body is scrolled, then we also want to scroll the headers
- if ( scrollX ) {
- $(scrollBody).on( 'scroll.DT', function (e) {
- var scrollLeft = this.scrollLeft;
-
- scrollHead.scrollLeft = scrollLeft;
-
- if ( footer ) {
- scrollFoot.scrollLeft = scrollLeft;
- }
- } );
- }
-
- $(scrollBody).css(
- scrollY && scroll.bCollapse ? 'max-height' : 'height',
- scrollY
- );
-
- settings.nScrollHead = scrollHead;
- settings.nScrollBody = scrollBody;
- settings.nScrollFoot = scrollFoot;
-
- // On redraw - align columns
- settings.aoDrawCallback.push( {
- "fn": _fnScrollDraw,
- "sName": "scrolling"
- } );
-
- return scroller[0];
- }
-
-
-
- /**
- * Update the header, footer and body tables for resizing - i.e. column
- * alignment.
- *
- * Welcome to the most horrible function DataTables. The process that this
- * function follows is basically:
- * 1. Re-create the table inside the scrolling div
- * 2. Take live measurements from the DOM
- * 3. Apply the measurements to align the columns
- * 4. Clean up
- *
- * @param {object} settings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnScrollDraw ( settings )
- {
- // Given that this is such a monster function, a lot of variables are use
- // to try and keep the minimised size as small as possible
- var
- scroll = settings.oScroll,
- scrollX = scroll.sX,
- scrollXInner = scroll.sXInner,
- scrollY = scroll.sY,
- barWidth = scroll.iBarWidth,
- divHeader = $(settings.nScrollHead),
- divHeaderStyle = divHeader[0].style,
- divHeaderInner = divHeader.children('div'),
- divHeaderInnerStyle = divHeaderInner[0].style,
- divHeaderTable = divHeaderInner.children('table'),
- divBodyEl = settings.nScrollBody,
- divBody = $(divBodyEl),
- divBodyStyle = divBodyEl.style,
- divFooter = $(settings.nScrollFoot),
- divFooterInner = divFooter.children('div'),
- divFooterTable = divFooterInner.children('table'),
- header = $(settings.nTHead),
- table = $(settings.nTable),
- tableEl = table[0],
- tableStyle = tableEl.style,
- footer = settings.nTFoot ? $(settings.nTFoot) : null,
- browser = settings.oBrowser,
- ie67 = browser.bScrollOversize,
- dtHeaderCells = _pluck( settings.aoColumns, 'nTh' ),
- headerTrgEls, footerTrgEls,
- headerSrcEls, footerSrcEls,
- headerCopy, footerCopy,
- headerWidths=[], footerWidths=[],
- headerContent=[], footerContent=[],
- idx, correction, sanityWidth,
- zeroOut = function(nSizer) {
- var style = nSizer.style;
- style.paddingTop = "0";
- style.paddingBottom = "0";
- style.borderTopWidth = "0";
- style.borderBottomWidth = "0";
- style.height = 0;
- };
-
- // If the scrollbar visibility has changed from the last draw, we need to
- // adjust the column sizes as the table width will have changed to account
- // for the scrollbar
- var scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;
-
- if ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {
- settings.scrollBarVis = scrollBarVis;
- _fnAdjustColumnSizing( settings );
- return; // adjust column sizing will call this function again
- }
- else {
- settings.scrollBarVis = scrollBarVis;
- }
-
- /*
- * 1. Re-create the table inside the scrolling div
- */
-
- // Remove the old minimised thead and tfoot elements in the inner table
- table.children('thead, tfoot').remove();
-
- if ( footer ) {
- footerCopy = footer.clone().prependTo( table );
- footerTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized
- footerSrcEls = footerCopy.find('tr');
- }
-
- // Clone the current header and footer elements and then place it into the inner table
- headerCopy = header.clone().prependTo( table );
- headerTrgEls = header.find('tr'); // original header is in its own table
- headerSrcEls = headerCopy.find('tr');
- headerCopy.find('th, td').removeAttr('tabindex');
-
-
- /*
- * 2. Take live measurements from the DOM - do not alter the DOM itself!
- */
-
- // Remove old sizing and apply the calculated column widths
- // Get the unique column headers in the newly created (cloned) header. We want to apply the
- // calculated sizes to this header
- if ( ! scrollX )
- {
- divBodyStyle.width = '100%';
- divHeader[0].style.width = '100%';
- }
-
- $.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {
- idx = _fnVisibleToColumnIndex( settings, i );
- el.style.width = settings.aoColumns[idx].sWidth;
- } );
-
- if ( footer ) {
- _fnApplyToChildren( function(n) {
- n.style.width = "";
- }, footerSrcEls );
- }
-
- // Size the table as a whole
- sanityWidth = table.outerWidth();
- if ( scrollX === "" ) {
- // No x scrolling
- tableStyle.width = "100%";
-
- // IE7 will make the width of the table when 100% include the scrollbar
- // - which is shouldn't. When there is a scrollbar we need to take this
- // into account.
- if ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||
- divBody.css('overflow-y') == "scroll")
- ) {
- tableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);
- }
-
- // Recalculate the sanity width
- sanityWidth = table.outerWidth();
- }
- else if ( scrollXInner !== "" ) {
- // legacy x scroll inner has been given - use it
- tableStyle.width = _fnStringToCss(scrollXInner);
-
- // Recalculate the sanity width
- sanityWidth = table.outerWidth();
- }
-
- // Hidden header should have zero height, so remove padding and borders. Then
- // set the width based on the real headers
-
- // Apply all styles in one pass
- _fnApplyToChildren( zeroOut, headerSrcEls );
-
- // Read all widths in next pass
- _fnApplyToChildren( function(nSizer) {
- headerContent.push( nSizer.innerHTML );
- headerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
- }, headerSrcEls );
-
- // Apply all widths in final pass
- _fnApplyToChildren( function(nToSize, i) {
- // Only apply widths to the DataTables detected header cells - this
- // prevents complex headers from having contradictory sizes applied
- if ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {
- nToSize.style.width = headerWidths[i];
- }
- }, headerTrgEls );
-
- $(headerSrcEls).height(0);
-
- /* Same again with the footer if we have one */
- if ( footer )
- {
- _fnApplyToChildren( zeroOut, footerSrcEls );
-
- _fnApplyToChildren( function(nSizer) {
- footerContent.push( nSizer.innerHTML );
- footerWidths.push( _fnStringToCss( $(nSizer).css('width') ) );
- }, footerSrcEls );
-
- _fnApplyToChildren( function(nToSize, i) {
- nToSize.style.width = footerWidths[i];
- }, footerTrgEls );
-
- $(footerSrcEls).height(0);
- }
-
-
- /*
- * 3. Apply the measurements
- */
-
- // "Hide" the header and footer that we used for the sizing. We need to keep
- // the content of the cell so that the width applied to the header and body
- // both match, but we want to hide it completely. We want to also fix their
- // width to what they currently are
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+headerContent[i]+'</div>';
- nSizer.style.width = headerWidths[i];
- }, headerSrcEls );
-
- if ( footer )
- {
- _fnApplyToChildren( function(nSizer, i) {
- nSizer.innerHTML = '<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+footerContent[i]+'</div>';
- nSizer.style.width = footerWidths[i];
- }, footerSrcEls );
- }
-
- // Sanity check that the table is of a sensible width. If not then we are going to get
- // misalignment - try to prevent this by not allowing the table to shrink below its min width
- if ( table.outerWidth() < sanityWidth )
- {
- // The min width depends upon if we have a vertical scrollbar visible or not */
- correction = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||
- divBody.css('overflow-y') == "scroll")) ?
- sanityWidth+barWidth :
- sanityWidth;
-
- // IE6/7 are a law unto themselves...
- if ( ie67 && (divBodyEl.scrollHeight >
- divBodyEl.offsetHeight || divBody.css('overflow-y') == "scroll")
- ) {
- tableStyle.width = _fnStringToCss( correction-barWidth );
- }
-
- // And give the user a warning that we've stopped the table getting too small
- if ( scrollX === "" || scrollXInner !== "" ) {
- _fnLog( settings, 1, 'Possible column misalignment', 6 );
- }
- }
- else
- {
- correction = '100%';
- }
-
- // Apply to the container elements
- divBodyStyle.width = _fnStringToCss( correction );
- divHeaderStyle.width = _fnStringToCss( correction );
-
- if ( footer ) {
- settings.nScrollFoot.style.width = _fnStringToCss( correction );
- }
-
-
- /*
- * 4. Clean up
- */
- if ( ! scrollY ) {
- /* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting
- * the scrollbar height from the visible display, rather than adding it on. We need to
- * set the height in order to sort this. Don't want to do it in any other browsers.
- */
- if ( ie67 ) {
- divBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );
- }
- }
-
- /* Finally set the width's of the header and footer tables */
- var iOuterWidth = table.outerWidth();
- divHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );
- divHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );
-
- // Figure out if there are scrollbar present - if so then we need a the header and footer to
- // provide a bit more space to allow "overflow" scrolling (i.e. past the scrollbar)
- var bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == "scroll";
- var padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );
- divHeaderInnerStyle[ padding ] = bScrolling ? barWidth+"px" : "0px";
-
- if ( footer ) {
- divFooterTable[0].style.width = _fnStringToCss( iOuterWidth );
- divFooterInner[0].style.width = _fnStringToCss( iOuterWidth );
- divFooterInner[0].style[padding] = bScrolling ? barWidth+"px" : "0px";
- }
-
- // Correct DOM ordering for colgroup - comes before the thead
- table.children('colgroup').insertBefore( table.children('thead') );
-
- /* Adjust the position of the header in case we loose the y-scrollbar */
- divBody.scroll();
-
- // If sorting or filtering has occurred, jump the scrolling back to the top
- // only if we aren't holding the position
- if ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {
- divBodyEl.scrollTop = 0;
- }
- }
-
-
-
- /**
- * Apply a given function to the display child nodes of an element array (typically
- * TD children of TR rows
- * @param {function} fn Method to apply to the objects
- * @param array {nodes} an1 List of elements to look through for display children
- * @param array {nodes} an2 Another list (identical structure to the first) - optional
- * @memberof DataTable#oApi
- */
- function _fnApplyToChildren( fn, an1, an2 )
- {
- var index=0, i=0, iLen=an1.length;
- var nNode1, nNode2;
-
- while ( i < iLen ) {
- nNode1 = an1[i].firstChild;
- nNode2 = an2 ? an2[i].firstChild : null;
-
- while ( nNode1 ) {
- if ( nNode1.nodeType === 1 ) {
- if ( an2 ) {
- fn( nNode1, nNode2, index );
- }
- else {
- fn( nNode1, index );
- }
-
- index++;
- }
-
- nNode1 = nNode1.nextSibling;
- nNode2 = an2 ? nNode2.nextSibling : null;
- }
-
- i++;
- }
- }
-
-
-
- var __re_html_remove = /<.*?>/g;
-
-
- /**
- * Calculate the width of columns for the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnCalculateColumnWidths ( oSettings )
- {
- var
- table = oSettings.nTable,
- columns = oSettings.aoColumns,
- scroll = oSettings.oScroll,
- scrollY = scroll.sY,
- scrollX = scroll.sX,
- scrollXInner = scroll.sXInner,
- columnCount = columns.length,
- visibleColumns = _fnGetColumns( oSettings, 'bVisible' ),
- headerCells = $('th', oSettings.nTHead),
- tableWidthAttr = table.getAttribute('width'), // from DOM element
- tableContainer = table.parentNode,
- userInputs = false,
- i, column, columnIdx, width, outerWidth,
- browser = oSettings.oBrowser,
- ie67 = browser.bScrollOversize;
-
- var styleWidth = table.style.width;
- if ( styleWidth && styleWidth.indexOf('%') !== -1 ) {
- tableWidthAttr = styleWidth;
- }
-
- /* Convert any user input sizes into pixel sizes */
- for ( i=0 ; i<visibleColumns.length ; i++ ) {
- column = columns[ visibleColumns[i] ];
-
- if ( column.sWidth !== null ) {
- column.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );
-
- userInputs = true;
- }
- }
-
- /* If the number of columns in the DOM equals the number that we have to
- * process in DataTables, then we can use the offsets that are created by
- * the web- browser. No custom sizes can be set in order for this to happen,
- * nor scrolling used
- */
- if ( ie67 || ! userInputs && ! scrollX && ! scrollY &&
- columnCount == _fnVisbleColumns( oSettings ) &&
- columnCount == headerCells.length
- ) {
- for ( i=0 ; i<columnCount ; i++ ) {
- var colIdx = _fnVisibleToColumnIndex( oSettings, i );
-
- if ( colIdx !== null ) {
- columns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );
- }
- }
- }
- else
- {
- // Otherwise construct a single row, worst case, table with the widest
- // node in the data, assign any user defined widths, then insert it into
- // the DOM and allow the browser to do all the hard work of calculating
- // table widths
- var tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table
- .css( 'visibility', 'hidden' )
- .removeAttr( 'id' );
-
- // Clean up the table body
- tmpTable.find('tbody tr').remove();
- var tr = $('<tr/>').appendTo( tmpTable.find('tbody') );
-
- // Clone the table header and footer - we can't use the header / footer
- // from the cloned table, since if scrolling is active, the table's
- // real header and footer are contained in different table tags
- tmpTable.find('thead, tfoot').remove();
- tmpTable
- .append( $(oSettings.nTHead).clone() )
- .append( $(oSettings.nTFoot).clone() );
-
- // Remove any assigned widths from the footer (from scrolling)
- tmpTable.find('tfoot th, tfoot td').css('width', '');
-
- // Apply custom sizing to the cloned header
- headerCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );
-
- for ( i=0 ; i<visibleColumns.length ; i++ ) {
- column = columns[ visibleColumns[i] ];
-
- headerCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?
- _fnStringToCss( column.sWidthOrig ) :
- '';
-
- // For scrollX we need to force the column width otherwise the
- // browser will collapse it. If this width is smaller than the
- // width the column requires, then it will have no effect
- if ( column.sWidthOrig && scrollX ) {
- $( headerCells[i] ).append( $('<div/>').css( {
- width: column.sWidthOrig,
- margin: 0,
- padding: 0,
- border: 0,
- height: 1
- } ) );
- }
- }
-
- // Find the widest cell for each column and put it into the table
- if ( oSettings.aoData.length ) {
- for ( i=0 ; i<visibleColumns.length ; i++ ) {
- columnIdx = visibleColumns[i];
- column = columns[ columnIdx ];
-
- $( _fnGetWidestNode( oSettings, columnIdx ) )
- .clone( false )
- .append( column.sContentPadding )
- .appendTo( tr );
- }
- }
-
- // Tidy the temporary table - remove name attributes so there aren't
- // duplicated in the dom (radio elements for example)
- $('[name]', tmpTable).removeAttr('name');
-
- // Table has been built, attach to the document so we can work with it.
- // A holding element is used, positioned at the top of the container
- // with minimal height, so it has no effect on if the container scrolls
- // or not. Otherwise it might trigger scrolling when it actually isn't
- // needed
- var holder = $('<div/>').css( scrollX || scrollY ?
- {
- position: 'absolute',
- top: 0,
- left: 0,
- height: 1,
- right: 0,
- overflow: 'hidden'
- } :
- {}
- )
- .append( tmpTable )
- .appendTo( tableContainer );
-
- // When scrolling (X or Y) we want to set the width of the table as
- // appropriate. However, when not scrolling leave the table width as it
- // is. This results in slightly different, but I think correct behaviour
- if ( scrollX && scrollXInner ) {
- tmpTable.width( scrollXInner );
- }
- else if ( scrollX ) {
- tmpTable.css( 'width', 'auto' );
- tmpTable.removeAttr('width');
-
- // If there is no width attribute or style, then allow the table to
- // collapse
- if ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {
- tmpTable.width( tableContainer.clientWidth );
- }
- }
- else if ( scrollY ) {
- tmpTable.width( tableContainer.clientWidth );
- }
- else if ( tableWidthAttr ) {
- tmpTable.width( tableWidthAttr );
- }
-
- // Get the width of each column in the constructed table - we need to
- // know the inner width (so it can be assigned to the other table's
- // cells) and the outer width so we can calculate the full width of the
- // table. This is safe since DataTables requires a unique cell for each
- // column, but if ever a header can span multiple columns, this will
- // need to be modified.
- var total = 0;
- for ( i=0 ; i<visibleColumns.length ; i++ ) {
- var cell = $(headerCells[i]);
- var border = cell.outerWidth() - cell.width();
-
- // Use getBounding... where possible (not IE8-) because it can give
- // sub-pixel accuracy, which we then want to round up!
- var bounding = browser.bBounding ?
- Math.ceil( headerCells[i].getBoundingClientRect().width ) :
- cell.outerWidth();
-
- // Total is tracked to remove any sub-pixel errors as the outerWidth
- // of the table might not equal the total given here (IE!).
- total += bounding;
-
- // Width for each column to use
- columns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );
- }
-
- table.style.width = _fnStringToCss( total );
-
- // Finished with the table - ditch it
- holder.remove();
- }
-
- // If there is a width attr, we want to attach an event listener which
- // allows the table sizing to automatically adjust when the window is
- // resized. Use the width attr rather than CSS, since we can't know if the
- // CSS is a relative value or absolute - DOM read is always px.
- if ( tableWidthAttr ) {
- table.style.width = _fnStringToCss( tableWidthAttr );
- }
-
- if ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {
- var bindResize = function () {
- $(window).bind('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {
- _fnAdjustColumnSizing( oSettings );
- } ) );
- };
-
- // IE6/7 will crash if we bind a resize event handler on page load.
- // To be removed in 1.11 which drops IE6/7 support
- if ( ie67 ) {
- setTimeout( bindResize, 1000 );
- }
- else {
- bindResize();
- }
-
- oSettings._reszEvt = true;
- }
- }
-
-
- /**
- * Throttle the calls to a function. Arguments and context are maintained for
- * the throttled function
- * @param {function} fn Function to be called
- * @param {int} [freq=200] call frequency in mS
- * @returns {function} wrapped function
- * @memberof DataTable#oApi
- */
- function _fnThrottle( fn, freq ) {
- var
- frequency = freq !== undefined ? freq : 200,
- last,
- timer;
-
- return function () {
- var
- that = this,
- now = +new Date(),
- args = arguments;
-
- if ( last && now < last + frequency ) {
- clearTimeout( timer );
-
- timer = setTimeout( function () {
- last = undefined;
- fn.apply( that, args );
- }, frequency );
- }
- else {
- last = now;
- fn.apply( that, args );
- }
- };
- }
-
-
- /**
- * Convert a CSS unit width to pixels (e.g. 2em)
- * @param {string} width width to be converted
- * @param {node} parent parent to get the with for (required for relative widths) - optional
- * @returns {int} width in pixels
- * @memberof DataTable#oApi
- */
- function _fnConvertToWidth ( width, parent )
- {
- if ( ! width ) {
- return 0;
- }
-
- var n = $('<div/>')
- .css( 'width', _fnStringToCss( width ) )
- .appendTo( parent || document.body );
-
- var val = n[0].offsetWidth;
- n.remove();
-
- return val;
- }
-
-
- /**
- * Get the widest node
- * @param {object} settings dataTables settings object
- * @param {int} colIdx column of interest
- * @returns {node} widest table node
- * @memberof DataTable#oApi
- */
- function _fnGetWidestNode( settings, colIdx )
- {
- var idx = _fnGetMaxLenString( settings, colIdx );
- if ( idx < 0 ) {
- return null;
- }
-
- var data = settings.aoData[ idx ];
- return ! data.nTr ? // Might not have been created when deferred rendering
- $('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :
- data.anCells[ colIdx ];
- }
-
-
- /**
- * Get the maximum strlen for each data column
- * @param {object} settings dataTables settings object
- * @param {int} colIdx column of interest
- * @returns {string} max string length for each column
- * @memberof DataTable#oApi
- */
- function _fnGetMaxLenString( settings, colIdx )
- {
- var s, max=-1, maxIdx = -1;
-
- for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
- s = _fnGetCellData( settings, i, colIdx, 'display' )+'';
- s = s.replace( __re_html_remove, '' );
- s = s.replace( /&nbsp;/g, ' ' );
-
- if ( s.length > max ) {
- max = s.length;
- maxIdx = i;
- }
- }
-
- return maxIdx;
- }
-
-
- /**
- * Append a CSS unit (only if required) to a string
- * @param {string} value to css-ify
- * @returns {string} value with css unit
- * @memberof DataTable#oApi
- */
- function _fnStringToCss( s )
- {
- if ( s === null ) {
- return '0px';
- }
-
- if ( typeof s == 'number' ) {
- return s < 0 ?
- '0px' :
- s+'px';
- }
-
- // Check it has a unit character already
- return s.match(/\d$/) ?
- s+'px' :
- s;
- }
-
-
-
- function _fnSortFlatten ( settings )
- {
- var
- i, iLen, k, kLen,
- aSort = [],
- aiOrig = [],
- aoColumns = settings.aoColumns,
- aDataSort, iCol, sType, srcCol,
- fixed = settings.aaSortingFixed,
- fixedObj = $.isPlainObject( fixed ),
- nestedSort = [],
- add = function ( a ) {
- if ( a.length && ! $.isArray( a[0] ) ) {
- // 1D array
- nestedSort.push( a );
- }
- else {
- // 2D array
- $.merge( nestedSort, a );
- }
- };
-
- // Build the sort array, with pre-fix and post-fix options if they have been
- // specified
- if ( $.isArray( fixed ) ) {
- add( fixed );
- }
-
- if ( fixedObj && fixed.pre ) {
- add( fixed.pre );
- }
-
- add( settings.aaSorting );
-
- if (fixedObj && fixed.post ) {
- add( fixed.post );
- }
-
- for ( i=0 ; i<nestedSort.length ; i++ )
- {
- srcCol = nestedSort[i][0];
- aDataSort = aoColumns[ srcCol ].aDataSort;
-
- for ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )
- {
- iCol = aDataSort[k];
- sType = aoColumns[ iCol ].sType || 'string';
-
- if ( nestedSort[i]._idx === undefined ) {
- nestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );
- }
-
- aSort.push( {
- src: srcCol,
- col: iCol,
- dir: nestedSort[i][1],
- index: nestedSort[i]._idx,
- type: sType,
- formatter: DataTable.ext.type.order[ sType+"-pre" ]
- } );
- }
- }
-
- return aSort;
- }
-
- /**
- * Change the order of the table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- * @todo This really needs split up!
- */
- function _fnSort ( oSettings )
- {
- var
- i, ien, iLen, j, jLen, k, kLen,
- sDataType, nTh,
- aiOrig = [],
- oExtSort = DataTable.ext.type.order,
- aoData = oSettings.aoData,
- aoColumns = oSettings.aoColumns,
- aDataSort, data, iCol, sType, oSort,
- formatters = 0,
- sortCol,
- displayMaster = oSettings.aiDisplayMaster,
- aSort;
-
- // Resolve any column types that are unknown due to addition or invalidation
- // @todo Can this be moved into a 'data-ready' handler which is called when
- // data is going to be used in the table?
- _fnColumnTypes( oSettings );
-
- aSort = _fnSortFlatten( oSettings );
-
- for ( i=0, ien=aSort.length ; i<ien ; i++ ) {
- sortCol = aSort[i];
-
- // Track if we can use the fast sort algorithm
- if ( sortCol.formatter ) {
- formatters++;
- }
-
- // Load the data needed for the sort, for each cell
- _fnSortData( oSettings, sortCol.col );
- }
-
- /* No sorting required if server-side or no sorting array */
- if ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )
- {
- // Create a value - key array of the current row positions such that we can use their
- // current position during the sort, if values match, in order to perform stable sorting
- for ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {
- aiOrig[ displayMaster[i] ] = i;
- }
-
- /* Do the sort - here we want multi-column sorting based on a given data source (column)
- * and sorting function (from oSort) in a certain direction. It's reasonably complex to
- * follow on it's own, but this is what we want (example two column sorting):
- * fnLocalSorting = function(a,b){
- * var iTest;
- * iTest = oSort['string-asc']('data11', 'data12');
- * if (iTest !== 0)
- * return iTest;
- * iTest = oSort['numeric-desc']('data21', 'data22');
- * if (iTest !== 0)
- * return iTest;
- * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
- * }
- * Basically we have a test for each sorting column, if the data in that column is equal,
- * test the next column. If all columns match, then we use a numeric sort on the row
- * positions in the original data array to provide a stable sort.
- *
- * Note - I know it seems excessive to have two sorting methods, but the first is around
- * 15% faster, so the second is only maintained for backwards compatibility with sorting
- * methods which do not have a pre-sort formatting function.
- */
- if ( formatters === aSort.length ) {
- // All sort types have formatting functions
- displayMaster.sort( function ( a, b ) {
- var
- x, y, k, test, sort,
- len=aSort.length,
- dataA = aoData[a]._aSortData,
- dataB = aoData[b]._aSortData;
-
- for ( k=0 ; k<len ; k++ ) {
- sort = aSort[k];
-
- x = dataA[ sort.col ];
- y = dataB[ sort.col ];
-
- test = x<y ? -1 : x>y ? 1 : 0;
- if ( test !== 0 ) {
- return sort.dir === 'asc' ? test : -test;
- }
- }
-
- x = aiOrig[a];
- y = aiOrig[b];
- return x<y ? -1 : x>y ? 1 : 0;
- } );
- }
- else {
- // Depreciated - remove in 1.11 (providing a plug-in option)
- // Not all sort types have formatting methods, so we have to call their sorting
- // methods.
- displayMaster.sort( function ( a, b ) {
- var
- x, y, k, l, test, sort, fn,
- len=aSort.length,
- dataA = aoData[a]._aSortData,
- dataB = aoData[b]._aSortData;
-
- for ( k=0 ; k<len ; k++ ) {
- sort = aSort[k];
-
- x = dataA[ sort.col ];
- y = dataB[ sort.col ];
-
- fn = oExtSort[ sort.type+"-"+sort.dir ] || oExtSort[ "string-"+sort.dir ];
- test = fn( x, y );
- if ( test !== 0 ) {
- return test;
- }
- }
-
- x = aiOrig[a];
- y = aiOrig[b];
- return x<y ? -1 : x>y ? 1 : 0;
- } );
- }
- }
-
- /* Tell the draw function that we have sorted the data */
- oSettings.bSorted = true;
- }
-
-
- function _fnSortAria ( settings )
- {
- var label;
- var nextSort;
- var columns = settings.aoColumns;
- var aSort = _fnSortFlatten( settings );
- var oAria = settings.oLanguage.oAria;
-
- // ARIA attributes - need to loop all columns, to update all (removing old
- // attributes as needed)
- for ( var i=0, iLen=columns.length ; i<iLen ; i++ )
- {
- var col = columns[i];
- var asSorting = col.asSorting;
- var sTitle = col.sTitle.replace( /<.*?>/g, "" );
- var th = col.nTh;
-
- // IE7 is throwing an error when setting these properties with jQuery's
- // attr() and removeAttr() methods...
- th.removeAttribute('aria-sort');
-
- /* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */
- if ( col.bSortable ) {
- if ( aSort.length > 0 && aSort[0].col == i ) {
- th.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
- nextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];
- }
- else {
- nextSort = asSorting[0];
- }
-
- label = sTitle + ( nextSort === "asc" ?
- oAria.sSortAscending :
- oAria.sSortDescending
- );
- }
- else {
- label = sTitle;
- }
-
- th.setAttribute('aria-label', label);
- }
- }
-
-
- /**
- * Function to run on user sort request
- * @param {object} settings dataTables settings object
- * @param {node} attachTo node to attach the handler to
- * @param {int} colIdx column sorting index
- * @param {boolean} [append=false] Append the requested sort to the existing
- * sort if true (i.e. multi-column sort)
- * @param {function} [callback] callback function
- * @memberof DataTable#oApi
- */
- function _fnSortListener ( settings, colIdx, append, callback )
- {
- var col = settings.aoColumns[ colIdx ];
- var sorting = settings.aaSorting;
- var asSorting = col.asSorting;
- var nextSortIdx;
- var next = function ( a, overflow ) {
- var idx = a._idx;
- if ( idx === undefined ) {
- idx = $.inArray( a[1], asSorting );
- }
-
- return idx+1 < asSorting.length ?
- idx+1 :
- overflow ?
- null :
- 0;
- };
-
- // Convert to 2D array if needed
- if ( typeof sorting[0] === 'number' ) {
- sorting = settings.aaSorting = [ sorting ];
- }
-
- // If appending the sort then we are multi-column sorting
- if ( append && settings.oFeatures.bSortMulti ) {
- // Are we already doing some kind of sort on this column?
- var sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );
-
- if ( sortIdx !== -1 ) {
- // Yes, modify the sort
- nextSortIdx = next( sorting[sortIdx], true );
-
- if ( nextSortIdx === null && sorting.length === 1 ) {
- nextSortIdx = 0; // can't remove sorting completely
- }
-
- if ( nextSortIdx === null ) {
- sorting.splice( sortIdx, 1 );
- }
- else {
- sorting[sortIdx][1] = asSorting[ nextSortIdx ];
- sorting[sortIdx]._idx = nextSortIdx;
- }
- }
- else {
- // No sort on this column yet
- sorting.push( [ colIdx, asSorting[0], 0 ] );
- sorting[sorting.length-1]._idx = 0;
- }
- }
- else if ( sorting.length && sorting[0][0] == colIdx ) {
- // Single column - already sorting on this column, modify the sort
- nextSortIdx = next( sorting[0] );
-
- sorting.length = 1;
- sorting[0][1] = asSorting[ nextSortIdx ];
- sorting[0]._idx = nextSortIdx;
- }
- else {
- // Single column - sort only on this column
- sorting.length = 0;
- sorting.push( [ colIdx, asSorting[0] ] );
- sorting[0]._idx = 0;
- }
-
- // Run the sort by calling a full redraw
- _fnReDraw( settings );
-
- // callback used for async user interaction
- if ( typeof callback == 'function' ) {
- callback( settings );
- }
- }
-
-
- /**
- * Attach a sort handler (click) to a node
- * @param {object} settings dataTables settings object
- * @param {node} attachTo node to attach the handler to
- * @param {int} colIdx column sorting index
- * @param {function} [callback] callback function
- * @memberof DataTable#oApi
- */
- function _fnSortAttachListener ( settings, attachTo, colIdx, callback )
- {
- var col = settings.aoColumns[ colIdx ];
-
- _fnBindAction( attachTo, {}, function (e) {
- /* If the column is not sortable - don't to anything */
- if ( col.bSortable === false ) {
- return;
- }
-
- // If processing is enabled use a timeout to allow the processing
- // display to be shown - otherwise to it synchronously
- if ( settings.oFeatures.bProcessing ) {
- _fnProcessingDisplay( settings, true );
-
- setTimeout( function() {
- _fnSortListener( settings, colIdx, e.shiftKey, callback );
-
- // In server-side processing, the draw callback will remove the
- // processing display
- if ( _fnDataSource( settings ) !== 'ssp' ) {
- _fnProcessingDisplay( settings, false );
- }
- }, 0 );
- }
- else {
- _fnSortListener( settings, colIdx, e.shiftKey, callback );
- }
- } );
- }
-
-
- /**
- * Set the sorting classes on table's body, Note: it is safe to call this function
- * when bSort and bSortClasses are false
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnSortingClasses( settings )
- {
- var oldSort = settings.aLastSort;
- var sortClass = settings.oClasses.sSortColumn;
- var sort = _fnSortFlatten( settings );
- var features = settings.oFeatures;
- var i, ien, colIdx;
-
- if ( features.bSort && features.bSortClasses ) {
- // Remove old sorting classes
- for ( i=0, ien=oldSort.length ; i<ien ; i++ ) {
- colIdx = oldSort[i].src;
-
- // Remove column sorting
- $( _pluck( settings.aoData, 'anCells', colIdx ) )
- .removeClass( sortClass + (i<2 ? i+1 : 3) );
- }
-
- // Add new column sorting
- for ( i=0, ien=sort.length ; i<ien ; i++ ) {
- colIdx = sort[i].src;
-
- $( _pluck( settings.aoData, 'anCells', colIdx ) )
- .addClass( sortClass + (i<2 ? i+1 : 3) );
- }
- }
-
- settings.aLastSort = sort;
- }
-
-
- // Get the data to sort a column, be it from cache, fresh (populating the
- // cache), or from a sort formatter
- function _fnSortData( settings, idx )
- {
- // Custom sorting function - provided by the sort data type
- var column = settings.aoColumns[ idx ];
- var customSort = DataTable.ext.order[ column.sSortDataType ];
- var customData;
-
- if ( customSort ) {
- customData = customSort.call( settings.oInstance, settings, idx,
- _fnColumnIndexToVisible( settings, idx )
- );
- }
-
- // Use / populate cache
- var row, cellData;
- var formatter = DataTable.ext.type.order[ column.sType+"-pre" ];
-
- for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
- row = settings.aoData[i];
-
- if ( ! row._aSortData ) {
- row._aSortData = [];
- }
-
- if ( ! row._aSortData[idx] || customSort ) {
- cellData = customSort ?
- customData[i] : // If there was a custom sort function, use data from there
- _fnGetCellData( settings, i, idx, 'sort' );
-
- row._aSortData[ idx ] = formatter ?
- formatter( cellData ) :
- cellData;
- }
- }
- }
-
-
-
- /**
- * Save the state of a table
- * @param {object} oSettings dataTables settings object
- * @memberof DataTable#oApi
- */
- function _fnSaveState ( settings )
- {
- if ( !settings.oFeatures.bStateSave || settings.bDestroying )
- {
- return;
- }
-
- /* Store the interesting variables */
- var state = {
- time: +new Date(),
- start: settings._iDisplayStart,
- length: settings._iDisplayLength,
- order: $.extend( true, [], settings.aaSorting ),
- search: _fnSearchToCamel( settings.oPreviousSearch ),
- columns: $.map( settings.aoColumns, function ( col, i ) {
- return {
- visible: col.bVisible,
- search: _fnSearchToCamel( settings.aoPreSearchCols[i] )
- };
- } )
- };
-
- _fnCallbackFire( settings, "aoStateSaveParams", 'stateSaveParams', [settings, state] );
-
- settings.oSavedState = state;
- settings.fnStateSaveCallback.call( settings.oInstance, settings, state );
- }
-
-
- /**
- * Attempt to load a saved table state
- * @param {object} oSettings dataTables settings object
- * @param {object} oInit DataTables init object so we can override settings
- * @memberof DataTable#oApi
- */
- function _fnLoadState ( settings, oInit )
- {
- var i, ien;
- var columns = settings.aoColumns;
-
- if ( ! settings.oFeatures.bStateSave ) {
- return;
- }
-
- var state = settings.fnStateLoadCallback.call( settings.oInstance, settings );
- if ( ! state || ! state.time ) {
- return;
- }
-
- /* Allow custom and plug-in manipulation functions to alter the saved data set and
- * cancelling of loading by returning false
- */
- var abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, state] );
- if ( $.inArray( false, abStateLoad ) !== -1 ) {
- return;
- }
-
- /* Reject old data */
- var duration = settings.iStateDuration;
- if ( duration > 0 && state.time < +new Date() - (duration*1000) ) {
- return;
- }
-
- // Number of columns have changed - all bets are off, no restore of settings
- if ( columns.length !== state.columns.length ) {
- return;
- }
-
- // Store the saved state so it might be accessed at any time
- settings.oLoadedState = $.extend( true, {}, state );
-
- // Restore key features - todo - for 1.11 this needs to be done by
- // subscribed events
- if ( state.start !== undefined ) {
- settings._iDisplayStart = state.start;
- settings.iInitDisplayStart = state.start;
- }
- if ( state.length !== undefined ) {
- settings._iDisplayLength = state.length;
- }
-
- // Order
- if ( state.order !== undefined ) {
- settings.aaSorting = [];
- $.each( state.order, function ( i, col ) {
- settings.aaSorting.push( col[0] >= columns.length ?
- [ 0, col[1] ] :
- col
- );
- } );
- }
-
- // Search
- if ( state.search !== undefined ) {
- $.extend( settings.oPreviousSearch, _fnSearchToHung( state.search ) );
- }
-
- // Columns
- for ( i=0, ien=state.columns.length ; i<ien ; i++ ) {
- var col = state.columns[i];
-
- // Visibility
- if ( col.visible !== undefined ) {
- columns[i].bVisible = col.visible;
- }
-
- // Search
- if ( col.search !== undefined ) {
- $.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );
- }
- }
-
- _fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, state] );
- }
-
-
- /**
- * Return the settings object for a particular table
- * @param {node} table table we are using as a dataTable
- * @returns {object} Settings object - or null if not found
- * @memberof DataTable#oApi
- */
- function _fnSettingsFromNode ( table )
- {
- var settings = DataTable.settings;
- var idx = $.inArray( table, _pluck( settings, 'nTable' ) );
-
- return idx !== -1 ?
- settings[ idx ] :
- null;
- }
-
-
- /**
- * Log an error message
- * @param {object} settings dataTables settings object
- * @param {int} level log error messages, or display them to the user
- * @param {string} msg error message
- * @param {int} tn Technical note id to get more information about the error.
- * @memberof DataTable#oApi
- */
- function _fnLog( settings, level, msg, tn )
- {
- msg = 'DataTables warning: '+
- (settings ? 'table id='+settings.sTableId+' - ' : '')+msg;
-
- if ( tn ) {
- msg += '. For more information about this error, please see '+
- 'http://datatables.net/tn/'+tn;
- }
-
- if ( ! level ) {
- // Backwards compatibility pre 1.10
- var ext = DataTable.ext;
- var type = ext.sErrMode || ext.errMode;
-
- if ( settings ) {
- _fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );
- }
-
- if ( type == 'alert' ) {
- alert( msg );
- }
- else if ( type == 'throw' ) {
- throw new Error(msg);
- }
- else if ( typeof type == 'function' ) {
- type( settings, tn, msg );
- }
- }
- else if ( window.console && console.log ) {
- console.log( msg );
- }
- }
-
-
- /**
- * See if a property is defined on one object, if so assign it to the other object
- * @param {object} ret target object
- * @param {object} src source object
- * @param {string} name property
- * @param {string} [mappedName] name to map too - optional, name used if not given
- * @memberof DataTable#oApi
- */
- function _fnMap( ret, src, name, mappedName )
- {
- if ( $.isArray( name ) ) {
- $.each( name, function (i, val) {
- if ( $.isArray( val ) ) {
- _fnMap( ret, src, val[0], val[1] );
- }
- else {
- _fnMap( ret, src, val );
- }
- } );
-
- return;
- }
-
- if ( mappedName === undefined ) {
- mappedName = name;
- }
-
- if ( src[name] !== undefined ) {
- ret[mappedName] = src[name];
- }
- }
-
-
- /**
- * Extend objects - very similar to jQuery.extend, but deep copy objects, and
- * shallow copy arrays. The reason we need to do this, is that we don't want to
- * deep copy array init values (such as aaSorting) since the dev wouldn't be
- * able to override them, but we do want to deep copy arrays.
- * @param {object} out Object to extend
- * @param {object} extender Object from which the properties will be applied to
- * out
- * @param {boolean} breakRefs If true, then arrays will be sliced to take an
- * independent copy with the exception of the `data` or `aaData` parameters
- * if they are present. This is so you can pass in a collection to
- * DataTables and have that used as your data source without breaking the
- * references
- * @returns {object} out Reference, just for convenience - out === the return.
- * @memberof DataTable#oApi
- * @todo This doesn't take account of arrays inside the deep copied objects.
- */
- function _fnExtend( out, extender, breakRefs )
- {
- var val;
-
- for ( var prop in extender ) {
- if ( extender.hasOwnProperty(prop) ) {
- val = extender[prop];
-
- if ( $.isPlainObject( val ) ) {
- if ( ! $.isPlainObject( out[prop] ) ) {
- out[prop] = {};
- }
- $.extend( true, out[prop], val );
- }
- else if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {
- out[prop] = val.slice();
- }
- else {
- out[prop] = val;
- }
- }
- }
-
- return out;
- }
-
-
- /**
- * Bind an event handers to allow a click or return key to activate the callback.
- * This is good for accessibility since a return on the keyboard will have the
- * same effect as a click, if the element has focus.
- * @param {element} n Element to bind the action to
- * @param {object} oData Data object to pass to the triggered function
- * @param {function} fn Callback function for when the event is triggered
- * @memberof DataTable#oApi
- */
- function _fnBindAction( n, oData, fn )
- {
- $(n)
- .bind( 'click.DT', oData, function (e) {
- n.blur(); // Remove focus outline for mouse users
- fn(e);
- } )
- .bind( 'keypress.DT', oData, function (e){
- if ( e.which === 13 ) {
- e.preventDefault();
- fn(e);
- }
- } )
- .bind( 'selectstart.DT', function () {
- /* Take the brutal approach to cancelling text selection */
- return false;
- } );
- }
-
-
- /**
- * Register a callback function. Easily allows a callback function to be added to
- * an array store of callback functions that can then all be called together.
- * @param {object} oSettings dataTables settings object
- * @param {string} sStore Name of the array storage for the callbacks in oSettings
- * @param {function} fn Function to be called back
- * @param {string} sName Identifying name for the callback (i.e. a label)
- * @memberof DataTable#oApi
- */
- function _fnCallbackReg( oSettings, sStore, fn, sName )
- {
- if ( fn )
- {
- oSettings[sStore].push( {
- "fn": fn,
- "sName": sName
- } );
- }
- }
-
-
- /**
- * Fire callback functions and trigger events. Note that the loop over the
- * callback array store is done backwards! Further note that you do not want to
- * fire off triggers in time sensitive applications (for example cell creation)
- * as its slow.
- * @param {object} settings dataTables settings object
- * @param {string} callbackArr Name of the array storage for the callbacks in
- * oSettings
- * @param {string} eventName Name of the jQuery custom event to trigger. If
- * null no trigger is fired
- * @param {array} args Array of arguments to pass to the callback function /
- * trigger
- * @memberof DataTable#oApi
- */
- function _fnCallbackFire( settings, callbackArr, eventName, args )
- {
- var ret = [];
-
- if ( callbackArr ) {
- ret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {
- return val.fn.apply( settings.oInstance, args );
- } );
- }
-
- if ( eventName !== null ) {
- var e = $.Event( eventName+'.dt' );
-
- $(settings.nTable).trigger( e, args );
-
- ret.push( e.result );
- }
-
- return ret;
- }
-
-
- function _fnLengthOverflow ( settings )
- {
- var
- start = settings._iDisplayStart,
- end = settings.fnDisplayEnd(),
- len = settings._iDisplayLength;
-
- /* If we have space to show extra rows (backing up from the end point - then do so */
- if ( start >= end )
- {
- start = end - len;
- }
-
- // Keep the start record on the current page
- start -= (start % len);
-
- if ( len === -1 || start < 0 )
- {
- start = 0;
- }
-
- settings._iDisplayStart = start;
- }
-
-
- function _fnRenderer( settings, type )
- {
- var renderer = settings.renderer;
- var host = DataTable.ext.renderer[type];
-
- if ( $.isPlainObject( renderer ) && renderer[type] ) {
- // Specific renderer for this type. If available use it, otherwise use
- // the default.
- return host[renderer[type]] || host._;
- }
- else if ( typeof renderer === 'string' ) {
- // Common renderer - if there is one available for this type use it,
- // otherwise use the default
- return host[renderer] || host._;
- }
-
- // Use the default
- return host._;
- }
-
-
- /**
- * Detect the data source being used for the table. Used to simplify the code
- * a little (ajax) and to make it compress a little smaller.
- *
- * @param {object} settings dataTables settings object
- * @returns {string} Data source
- * @memberof DataTable#oApi
- */
- function _fnDataSource ( settings )
- {
- if ( settings.oFeatures.bServerSide ) {
- return 'ssp';
- }
- else if ( settings.ajax || settings.sAjaxSource ) {
- return 'ajax';
- }
- return 'dom';
- }
-
-
- DataTable = function( options )
- {
- /**
- * Perform a jQuery selector action on the table's TR elements (from the tbody) and
- * return the resulting jQuery object.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter
- * criterion ("applied") or all TR elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {object} jQuery object, filtered by the given selector.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Highlight every second row
- * oTable.$('tr:odd').css('backgroundColor', 'blue');
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to rows with 'Webkit' in them, add a background colour and then
- * // remove the filter, thus highlighting the 'Webkit' rows only.
- * oTable.fnFilter('Webkit');
- * oTable.$('tr', {"search": "applied"}).css('backgroundColor', 'blue');
- * oTable.fnFilter('');
- * } );
- */
- this.$ = function ( sSelector, oOpts )
- {
- return this.api(true).$( sSelector, oOpts );
- };
-
-
- /**
- * Almost identical to $ in operation, but in this case returns the data for the matched
- * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
- * rather than any descendants, so the data can be obtained for the row/cell. If matching
- * rows are found, the data returned is the original data array/object that was used to
- * create the row (or a generated array if from a DOM source).
- *
- * This method is often useful in-combination with $ where both functions are given the
- * same parameters and the array indexes will match identically.
- * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on
- * @param {object} [oOpts] Optional parameters for modifying the rows to be included
- * @param {string} [oOpts.filter=none] Select elements that meet the current filter
- * criterion ("applied") or all elements (i.e. no filter).
- * @param {string} [oOpts.order=current] Order of the data in the processed array.
- * Can be either 'current', whereby the current sorting of the table is used, or
- * 'original' whereby the original order the data was read into the table is used.
- * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
- * 'current' and filter is 'applied', regardless of what they might be given as.
- * @returns {array} Data for the matched elements. If any elements, as a result of the
- * selector, were not TR, TD or TH elements in the DataTable, they will have a null
- * entry in the array.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the data from the first row in the table
- * var data = oTable._('tr:first');
- *
- * // Do something useful with the data
- * alert( "First cell is: "+data[0] );
- * } );
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Filter to 'Webkit' and get all data for
- * oTable.fnFilter('Webkit');
- * var data = oTable._('tr', {"search": "applied"});
- *
- * // Do something with the data
- * alert( data.length+" rows matched the search" );
- * } );
- */
- this._ = function ( sSelector, oOpts )
- {
- return this.api(true).rows( sSelector, oOpts ).data();
- };
-
-
- /**
- * Create a DataTables Api instance, with the currently selected tables for
- * the Api's context.
- * @param {boolean} [traditional=false] Set the API instance's context to be
- * only the table referred to by the `DataTable.ext.iApiIndex` option, as was
- * used in the API presented by DataTables 1.9- (i.e. the traditional mode),
- * or if all tables captured in the jQuery object should be used.
- * @return {DataTables.Api}
- */
- this.api = function ( traditional )
- {
- return traditional ?
- new _Api(
- _fnSettingsFromNode( this[ _ext.iApiIndex ] )
- ) :
- new _Api( this );
- };
-
-
- /**
- * Add a single new row or multiple rows of data to the table. Please note
- * that this is suitable for client-side processing only - if you are using
- * server-side processing (i.e. "bServerSide": true), then to add data, you
- * must add it to the data source, i.e. the server-side, through an Ajax call.
- * @param {array|object} data The data to be added to the table. This can be:
- * <ul>
- * <li>1D array of data - add a single row with the data provided</li>
- * <li>2D array of arrays - add multiple rows in a single call</li>
- * <li>object - data object when using <i>mData</i></li>
- * <li>array of objects - multiple data objects when using <i>mData</i></li>
- * </ul>
- * @param {bool} [redraw=true] redraw the table or not
- * @returns {array} An array of integers, representing the list of indexes in
- * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
- * the table.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * // Global var for counter
- * var giCount = 2;
- *
- * $(document).ready(function() {
- * $('#example').dataTable();
- * } );
- *
- * function fnClickAddRow() {
- * $('#example').dataTable().fnAddData( [
- * giCount+".1",
- * giCount+".2",
- * giCount+".3",
- * giCount+".4" ]
- * );
- *
- * giCount++;
- * }
- */
- this.fnAddData = function( data, redraw )
- {
- var api = this.api( true );
-
- /* Check if we want to add multiple rows or not */
- var rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?
- api.rows.add( data ) :
- api.row.add( data );
-
- if ( redraw === undefined || redraw ) {
- api.draw();
- }
-
- return rows.flatten().toArray();
- };
-
-
- /**
- * This function will make DataTables recalculate the column sizes, based on the data
- * contained in the table and the sizes applied to the columns (in the DOM, CSS or
- * through the sWidth parameter). This can be useful when the width of the table's
- * parent element changes (for example a window resize).
- * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable( {
- * "sScrollY": "200px",
- * "bPaginate": false
- * } );
- *
- * $(window).bind('resize', function () {
- * oTable.fnAdjustColumnSizing();
- * } );
- * } );
- */
- this.fnAdjustColumnSizing = function ( bRedraw )
- {
- var api = this.api( true ).columns.adjust();
- var settings = api.settings()[0];
- var scroll = settings.oScroll;
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw( false );
- }
- else if ( scroll.sX !== "" || scroll.sY !== "" ) {
- /* If not redrawing, but scrolling, we want to apply the new column sizes anyway */
- _fnScrollDraw( settings );
- }
- };
-
-
- /**
- * Quickly and simply clear a table
- * @param {bool} [bRedraw=true] redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
- * oTable.fnClearTable();
- * } );
- */
- this.fnClearTable = function( bRedraw )
- {
- var api = this.api( true ).clear();
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw();
- }
- };
-
-
- /**
- * The exact opposite of 'opening' a row, this function will close any rows which
- * are currently 'open'.
- * @param {node} nTr the table row to 'close'
- * @returns {int} 0 on success, or 1 if failed (can't find the row)
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnClose = function( nTr )
- {
- this.api( true ).row( nTr ).child.hide();
- };
-
-
- /**
- * Remove a row for the table
- * @param {mixed} target The index of the row from aoData to be deleted, or
- * the TR element you want to delete
- * @param {function|null} [callBack] Callback function
- * @param {bool} [redraw=true] Redraw the table or not
- * @returns {array} The row that was deleted
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Immediately remove the first row
- * oTable.fnDeleteRow( 0 );
- * } );
- */
- this.fnDeleteRow = function( target, callback, redraw )
- {
- var api = this.api( true );
- var rows = api.rows( target );
- var settings = rows.settings()[0];
- var data = settings.aoData[ rows[0][0] ];
-
- rows.remove();
-
- if ( callback ) {
- callback.call( this, settings, data );
- }
-
- if ( redraw === undefined || redraw ) {
- api.draw();
- }
-
- return data;
- };
-
-
- /**
- * Restore the table to it's original state in the DOM by removing all of DataTables
- * enhancements, alterations to the DOM structure of the table and event listeners.
- * @param {boolean} [remove=false] Completely remove the table from the DOM
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * // This example is fairly pointless in reality, but shows how fnDestroy can be used
- * var oTable = $('#example').dataTable();
- * oTable.fnDestroy();
- * } );
- */
- this.fnDestroy = function ( remove )
- {
- this.api( true ).destroy( remove );
- };
-
-
- /**
- * Redraw the table
- * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
- * oTable.fnDraw();
- * } );
- */
- this.fnDraw = function( complete )
- {
- // Note that this isn't an exact match to the old call to _fnDraw - it takes
- // into account the new data, but can hold position.
- this.api( true ).draw( complete );
- };
-
-
- /**
- * Filter the input based on data
- * @param {string} sInput String to filter the table on
- * @param {int|null} [iColumn] Column to limit filtering to
- * @param {bool} [bRegex=false] Treat as regular expression or not
- * @param {bool} [bSmart=true] Perform smart filtering or not
- * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)
- * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sometime later - filter...
- * oTable.fnFilter( 'test string' );
- * } );
- */
- this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )
- {
- var api = this.api( true );
-
- if ( iColumn === null || iColumn === undefined ) {
- api.search( sInput, bRegex, bSmart, bCaseInsensitive );
- }
- else {
- api.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );
- }
-
- api.draw();
- };
-
-
- /**
- * Get the data for the whole table, an individual row or an individual cell based on the
- * provided parameters.
- * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as
- * a TR node then the data source for the whole row will be returned. If given as a
- * TD/TH cell node then iCol will be automatically calculated and the data for the
- * cell returned. If given as an integer, then this is treated as the aoData internal
- * data index for the row (see fnGetPosition) and the data for that row used.
- * @param {int} [col] Optional column index that you want the data of.
- * @returns {array|object|string} If mRow is undefined, then the data for all rows is
- * returned. If mRow is defined, just data for that row, and is iCol is
- * defined, only data for the designated cell is returned.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * // Row data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('tr').click( function () {
- * var data = oTable.fnGetData( this );
- * // ... do something with the array / object of data for the row
- * } );
- * } );
- *
- * @example
- * // Individual cell data
- * $(document).ready(function() {
- * oTable = $('#example').dataTable();
- *
- * oTable.$('td').click( function () {
- * var sData = oTable.fnGetData( this );
- * alert( 'The cell clicked on had the value of '+sData );
- * } );
- * } );
- */
- this.fnGetData = function( src, col )
- {
- var api = this.api( true );
-
- if ( src !== undefined ) {
- var type = src.nodeName ? src.nodeName.toLowerCase() : '';
-
- return col !== undefined || type == 'td' || type == 'th' ?
- api.cell( src, col ).data() :
- api.row( src ).data() || null;
- }
-
- return api.data().toArray();
- };
-
-
- /**
- * Get an array of the TR nodes that are used in the table's body. Note that you will
- * typically want to use the '$' API method in preference to this as it is more
- * flexible.
- * @param {int} [iRow] Optional row index for the TR element you want
- * @returns {array|node} If iRow is undefined, returns an array of all TR elements
- * in the table's body, or iRow is defined, just the TR element requested.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Get the nodes from the table
- * var nNodes = oTable.fnGetNodes( );
- * } );
- */
- this.fnGetNodes = function( iRow )
- {
- var api = this.api( true );
-
- return iRow !== undefined ?
- api.row( iRow ).node() :
- api.rows().nodes().flatten().toArray();
- };
-
-
- /**
- * Get the array indexes of a particular cell from it's DOM element
- * and column index including hidden columns
- * @param {node} node this can either be a TR, TD or TH in the table's body
- * @returns {int} If nNode is given as a TR, then a single index is returned, or
- * if given as a cell, an array of [row index, column index (visible),
- * column index (all)] is given.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * $('#example tbody td').click( function () {
- * // Get the position of the current data from the node
- * var aPos = oTable.fnGetPosition( this );
- *
- * // Get the data array for this row
- * var aData = oTable.fnGetData( aPos[0] );
- *
- * // Update the data array and return the value
- * aData[ aPos[1] ] = 'clicked';
- * this.innerHTML = 'clicked';
- * } );
- *
- * // Init DataTables
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnGetPosition = function( node )
- {
- var api = this.api( true );
- var nodeName = node.nodeName.toUpperCase();
-
- if ( nodeName == 'TR' ) {
- return api.row( node ).index();
- }
- else if ( nodeName == 'TD' || nodeName == 'TH' ) {
- var cell = api.cell( node ).index();
-
- return [
- cell.row,
- cell.columnVisible,
- cell.column
- ];
- }
- return null;
- };
-
-
- /**
- * Check to see if a row is 'open' or not.
- * @param {node} nTr the table row to check
- * @returns {boolean} true if the row is currently open, false otherwise
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnIsOpen = function( nTr )
- {
- return this.api( true ).row( nTr ).child.isShown();
- };
-
-
- /**
- * This function will place a new row directly after a row which is currently
- * on display on the page, with the HTML contents that is passed into the
- * function. This can be used, for example, to ask for confirmation that a
- * particular record should be deleted.
- * @param {node} nTr The table row to 'open'
- * @param {string|node|jQuery} mHtml The HTML to put into the row
- * @param {string} sClass Class to give the new TD cell
- * @returns {node} The row opened. Note that if the table row passed in as the
- * first parameter, is not found in the table, this method will silently
- * return.
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable;
- *
- * // 'open' an information row when a row is clicked on
- * $('#example tbody tr').click( function () {
- * if ( oTable.fnIsOpen(this) ) {
- * oTable.fnClose( this );
- * } else {
- * oTable.fnOpen( this, "Temporary row opened", "info_row" );
- * }
- * } );
- *
- * oTable = $('#example').dataTable();
- * } );
- */
- this.fnOpen = function( nTr, mHtml, sClass )
- {
- return this.api( true )
- .row( nTr )
- .child( mHtml, sClass )
- .show()
- .child()[0];
- };
-
-
- /**
- * Change the pagination - provides the internal logic for pagination in a simple API
- * function. With this function you can have a DataTables table go to the next,
- * previous, first or last pages.
- * @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
- * or page number to jump to (integer), note that page 0 is the first page.
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnPageChange( 'next' );
- * } );
- */
- this.fnPageChange = function ( mAction, bRedraw )
- {
- var api = this.api( true ).page( mAction );
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw(false);
- }
- };
-
-
- /**
- * Show a particular column
- * @param {int} iCol The column whose display should be changed
- * @param {bool} bShow Show (true) or hide (false) the column
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Hide the second column after initialisation
- * oTable.fnSetColumnVis( 1, false );
- * } );
- */
- this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
- {
- var api = this.api( true ).column( iCol ).visible( bShow );
-
- if ( bRedraw === undefined || bRedraw ) {
- api.columns.adjust().draw();
- }
- };
-
-
- /**
- * Get the settings for a particular table for external manipulation
- * @returns {object} DataTables settings object. See
- * {@link DataTable.models.oSettings}
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * var oSettings = oTable.fnSettings();
- *
- * // Show an example parameter from the settings
- * alert( oSettings._iDisplayStart );
- * } );
- */
- this.fnSettings = function()
- {
- return _fnSettingsFromNode( this[_ext.iApiIndex] );
- };
-
-
- /**
- * Sort the table by a particular column
- * @param {int} iCol the data index to sort on. Note that this will not match the
- * 'display index' if you have hidden data entries
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort immediately with columns 0 and 1
- * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
- * } );
- */
- this.fnSort = function( aaSort )
- {
- this.api( true ).order( aaSort ).draw();
- };
-
-
- /**
- * Attach a sort listener to an element for a given column
- * @param {node} nNode the element to attach the sort listener to
- * @param {int} iColumn the column that a click on this node will sort on
- * @param {function} [fnCallback] callback function when sort is run
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- *
- * // Sort on column 1, when 'sorter' is clicked on
- * oTable.fnSortListener( document.getElementById('sorter'), 1 );
- * } );
- */
- this.fnSortListener = function( nNode, iColumn, fnCallback )
- {
- this.api( true ).order.listener( nNode, iColumn, fnCallback );
- };
-
-
- /**
- * Update a table cell or row - this method will accept either a single value to
- * update the cell with, an array of values with one element for each column or
- * an object in the same format as the original data source. The function is
- * self-referencing in order to make the multi column updates easier.
- * @param {object|array|string} mData Data to update the cell/row with
- * @param {node|int} mRow TR element you want to update or the aoData index
- * @param {int} [iColumn] The column to update, give as null or undefined to
- * update a whole row.
- * @param {bool} [bRedraw=true] Redraw the table or not
- * @param {bool} [bAction=true] Perform pre-draw actions or not
- * @returns {int} 0 on success, 1 on error
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell
- * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row
- * } );
- */
- this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
- {
- var api = this.api( true );
-
- if ( iColumn === undefined || iColumn === null ) {
- api.row( mRow ).data( mData );
- }
- else {
- api.cell( mRow, iColumn ).data( mData );
- }
-
- if ( bAction === undefined || bAction ) {
- api.columns.adjust();
- }
-
- if ( bRedraw === undefined || bRedraw ) {
- api.draw();
- }
- return 0;
- };
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being used, in order
- * to ensure compatibility.
- * @param {string} sVersion Version string to check for, in the format "X.Y.Z". Note that the
- * formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to the required
- * version, or false if this version of DataTales is not suitable
- * @method
- * @dtopt API
- * @deprecated Since v1.10
- *
- * @example
- * $(document).ready(function() {
- * var oTable = $('#example').dataTable();
- * alert( oTable.fnVersionCheck( '1.9.0' ) );
- * } );
- */
- this.fnVersionCheck = _ext.fnVersionCheck;
-
-
- var _that = this;
- var emptyInit = options === undefined;
- var len = this.length;
-
- if ( emptyInit ) {
- options = {};
- }
-
- this.oApi = this.internal = _ext.internal;
-
- // Extend with old style plug-in API methods
- for ( var fn in DataTable.ext.internal ) {
- if ( fn ) {
- this[fn] = _fnExternApiFunc(fn);
- }
- }
-
- this.each(function() {
- // For each initialisation we want to give it a clean initialisation
- // object that can be bashed around
- var o = {};
- var oInit = len > 1 ? // optimisation for single table case
- _fnExtend( o, options, true ) :
- options;
-
- /*global oInit,_that,emptyInit*/
- var i=0, iLen, j, jLen, k, kLen;
- var sId = this.getAttribute( 'id' );
- var bInitHandedOff = false;
- var defaults = DataTable.defaults;
- var $this = $(this);
-
-
- /* Sanity check */
- if ( this.nodeName.toLowerCase() != 'table' )
- {
- _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );
- return;
- }
-
- /* Backwards compatibility for the defaults */
- _fnCompatOpts( defaults );
- _fnCompatCols( defaults.column );
-
- /* Convert the camel-case defaults to Hungarian */
- _fnCamelToHungarian( defaults, defaults, true );
- _fnCamelToHungarian( defaults.column, defaults.column, true );
-
- /* Setting up the initialisation object */
- _fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ) );
-
-
-
- /* Check to see if we are re-initialising a table */
- var allSettings = DataTable.settings;
- for ( i=0, iLen=allSettings.length ; i<iLen ; i++ )
- {
- var s = allSettings[i];
-
- /* Base check on table node */
- if ( s.nTable == this || s.nTHead.parentNode == this || (s.nTFoot && s.nTFoot.parentNode == this) )
- {
- var bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;
- var bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;
-
- if ( emptyInit || bRetrieve )
- {
- return s.oInstance;
- }
- else if ( bDestroy )
- {
- s.oInstance.fnDestroy();
- break;
- }
- else
- {
- _fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );
- return;
- }
- }
-
- /* If the element we are initialising has the same ID as a table which was previously
- * initialised, but the table nodes don't match (from before) then we destroy the old
- * instance by simply deleting it. This is under the assumption that the table has been
- * destroyed by other methods. Anyone using non-id selectors will need to do this manually
- */
- if ( s.sTableId == this.id )
- {
- allSettings.splice( i, 1 );
- break;
- }
- }
-
- /* Ensure the table has an ID - required for accessibility */
- if ( sId === null || sId === "" )
- {
- sId = "DataTables_Table_"+(DataTable.ext._unique++);
- this.id = sId;
- }
-
- /* Create the settings object for this table and set some of the default parameters */
- var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
- "sDestroyWidth": $this[0].style.width,
- "sInstance": sId,
- "sTableId": sId
- } );
- oSettings.nTable = this;
- oSettings.oApi = _that.internal;
- oSettings.oInit = oInit;
-
- allSettings.push( oSettings );
-
- // Need to add the instance after the instance after the settings object has been added
- // to the settings array, so we can self reference the table instance if more than one
- oSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();
-
- // Backwards compatibility, before we apply all the defaults
- _fnCompatOpts( oInit );
-
- if ( oInit.oLanguage )
- {
- _fnLanguageCompat( oInit.oLanguage );
- }
-
- // If the length menu is given, but the init display length is not, use the length menu
- if ( oInit.aLengthMenu && ! oInit.iDisplayLength )
- {
- oInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?
- oInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];
- }
-
- // Apply the defaults and init options to make a single init object will all
- // options defined from defaults and instance options.
- oInit = _fnExtend( $.extend( true, {}, defaults ), oInit );
-
-
- // Map the initialisation options onto the settings object
- _fnMap( oSettings.oFeatures, oInit, [
- "bPaginate",
- "bLengthChange",
- "bFilter",
- "bSort",
- "bSortMulti",
- "bInfo",
- "bProcessing",
- "bAutoWidth",
- "bSortClasses",
- "bServerSide",
- "bDeferRender"
- ] );
- _fnMap( oSettings, oInit, [
- "asStripeClasses",
- "ajax",
- "fnServerData",
- "fnFormatNumber",
- "sServerMethod",
- "aaSorting",
- "aaSortingFixed",
- "aLengthMenu",
- "sPaginationType",
- "sAjaxSource",
- "sAjaxDataProp",
- "iStateDuration",
- "sDom",
- "bSortCellsTop",
- "iTabIndex",
- "fnStateLoadCallback",
- "fnStateSaveCallback",
- "renderer",
- "searchDelay",
- "rowId",
- [ "iCookieDuration", "iStateDuration" ], // backwards compat
- [ "oSearch", "oPreviousSearch" ],
- [ "aoSearchCols", "aoPreSearchCols" ],
- [ "iDisplayLength", "_iDisplayLength" ],
- [ "bJQueryUI", "bJUI" ]
- ] );
- _fnMap( oSettings.oScroll, oInit, [
- [ "sScrollX", "sX" ],
- [ "sScrollXInner", "sXInner" ],
- [ "sScrollY", "sY" ],
- [ "bScrollCollapse", "bCollapse" ]
- ] );
- _fnMap( oSettings.oLanguage, oInit, "fnInfoCallback" );
-
- /* Callback functions which are array driven */
- _fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' );
- _fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' );
- _fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' );
- _fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' );
- _fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );
- _fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );
-
- oSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );
-
- /* Browser support detection */
- _fnBrowserDetect( oSettings );
-
- var oClasses = oSettings.oClasses;
-
- // @todo Remove in 1.11
- if ( oInit.bJQueryUI )
- {
- /* Use the JUI classes object for display. You could clone the oStdClasses object if
- * you want to have multiple tables with multiple independent classes
- */
- $.extend( oClasses, DataTable.ext.oJUIClasses, oInit.oClasses );
-
- if ( oInit.sDom === defaults.sDom && defaults.sDom === "lfrtip" )
- {
- /* Set the DOM to use a layout suitable for jQuery UI's theming */
- oSettings.sDom = '<"H"lfr>t<"F"ip>';
- }
-
- if ( ! oSettings.renderer ) {
- oSettings.renderer = 'jqueryui';
- }
- else if ( $.isPlainObject( oSettings.renderer ) && ! oSettings.renderer.header ) {
- oSettings.renderer.header = 'jqueryui';
- }
- }
- else
- {
- $.extend( oClasses, DataTable.ext.classes, oInit.oClasses );
- }
- $this.addClass( oClasses.sTable );
-
-
- if ( oSettings.iInitDisplayStart === undefined )
- {
- /* Display start point, taking into account the save saving */
- oSettings.iInitDisplayStart = oInit.iDisplayStart;
- oSettings._iDisplayStart = oInit.iDisplayStart;
- }
-
- if ( oInit.iDeferLoading !== null )
- {
- oSettings.bDeferLoading = true;
- var tmp = $.isArray( oInit.iDeferLoading );
- oSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;
- oSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;
- }
-
- /* Language definitions */
- var oLanguage = oSettings.oLanguage;
- $.extend( true, oLanguage, oInit.oLanguage );
-
- if ( oLanguage.sUrl !== "" )
- {
- /* Get the language definitions from a file - because this Ajax call makes the language
- * get async to the remainder of this function we use bInitHandedOff to indicate that
- * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
- */
- $.ajax( {
- dataType: 'json',
- url: oLanguage.sUrl,
- success: function ( json ) {
- _fnLanguageCompat( json );
- _fnCamelToHungarian( defaults.oLanguage, json );
- $.extend( true, oLanguage, json );
- _fnInitialise( oSettings );
- },
- error: function () {
- // Error occurred loading language file, continue on as best we can
- _fnInitialise( oSettings );
- }
- } );
- bInitHandedOff = true;
- }
-
- /*
- * Stripes
- */
- if ( oInit.asStripeClasses === null )
- {
- oSettings.asStripeClasses =[
- oClasses.sStripeOdd,
- oClasses.sStripeEven
- ];
- }
-
- /* Remove row stripe classes if they are already on the table row */
- var stripeClasses = oSettings.asStripeClasses;
- var rowOne = $this.children('tbody').find('tr').eq(0);
- if ( $.inArray( true, $.map( stripeClasses, function(el, i) {
- return rowOne.hasClass(el);
- } ) ) !== -1 ) {
- $('tbody tr', this).removeClass( stripeClasses.join(' ') );
- oSettings.asDestroyStripes = stripeClasses.slice();
- }
-
- /*
- * Columns
- * See if we should load columns automatically or use defined ones
- */
- var anThs = [];
- var aoColumnsInit;
- var nThead = this.getElementsByTagName('thead');
- if ( nThead.length !== 0 )
- {
- _fnDetectHeader( oSettings.aoHeader, nThead[0] );
- anThs = _fnGetUniqueThs( oSettings );
- }
-
- /* If not given a column array, generate one with nulls */
- if ( oInit.aoColumns === null )
- {
- aoColumnsInit = [];
- for ( i=0, iLen=anThs.length ; i<iLen ; i++ )
- {
- aoColumnsInit.push( null );
- }
- }
- else
- {
- aoColumnsInit = oInit.aoColumns;
- }
-
- /* Add the columns */
- for ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )
- {
- _fnAddColumn( oSettings, anThs ? anThs[i] : null );
- }
-
- /* Apply the column definitions */
- _fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {
- _fnColumnOptions( oSettings, iCol, oDef );
- } );
-
- /* HTML5 attribute detection - build an mData object automatically if the
- * attributes are found
- */
- if ( rowOne.length ) {
- var a = function ( cell, name ) {
- return cell.getAttribute( 'data-'+name ) !== null ? name : null;
- };
-
- $( rowOne[0] ).children('th, td').each( function (i, cell) {
- var col = oSettings.aoColumns[i];
-
- if ( col.mData === i ) {
- var sort = a( cell, 'sort' ) || a( cell, 'order' );
- var filter = a( cell, 'filter' ) || a( cell, 'search' );
-
- if ( sort !== null || filter !== null ) {
- col.mData = {
- _: i+'.display',
- sort: sort !== null ? i+'.@data-'+sort : undefined,
- type: sort !== null ? i+'.@data-'+sort : undefined,
- filter: filter !== null ? i+'.@data-'+filter : undefined
- };
-
- _fnColumnOptions( oSettings, i );
- }
- }
- } );
- }
-
- var features = oSettings.oFeatures;
-
- /* Must be done after everything which can be overridden by the state saving! */
- if ( oInit.bStateSave )
- {
- features.bStateSave = true;
- _fnLoadState( oSettings, oInit );
- _fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );
- }
-
-
- /*
- * Sorting
- * @todo For modularisation (1.11) this needs to do into a sort start up handler
- */
-
- // If aaSorting is not defined, then we use the first indicator in asSorting
- // in case that has been altered, so the default sort reflects that option
- if ( oInit.aaSorting === undefined )
- {
- var sorting = oSettings.aaSorting;
- for ( i=0, iLen=sorting.length ; i<iLen ; i++ )
- {
- sorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];
- }
- }
-
- /* Do a first pass on the sorting classes (allows any size changes to be taken into
- * account, and also will apply sorting disabled classes if disabled
- */
- _fnSortingClasses( oSettings );
-
- if ( features.bSort )
- {
- _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
- if ( oSettings.bSorted ) {
- var aSort = _fnSortFlatten( oSettings );
- var sortedColumns = {};
-
- $.each( aSort, function (i, val) {
- sortedColumns[ val.src ] = val.dir;
- } );
-
- _fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );
- _fnSortAria( oSettings );
- }
- } );
- }
-
- _fnCallbackReg( oSettings, 'aoDrawCallback', function () {
- if ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {
- _fnSortingClasses( oSettings );
- }
- }, 'sc' );
-
-
- /*
- * Final init
- * Cache the header, body and footer as required, creating them if needed
- */
-
- // Work around for Webkit bug 83867 - store the caption-side before removing from doc
- var captions = $this.children('caption').each( function () {
- this._captionSide = $this.css('caption-side');
- } );
-
- var thead = $this.children('thead');
- if ( thead.length === 0 )
- {
- thead = $('<thead/>').appendTo(this);
- }
- oSettings.nTHead = thead[0];
-
- var tbody = $this.children('tbody');
- if ( tbody.length === 0 )
- {
- tbody = $('<tbody/>').appendTo(this);
- }
- oSettings.nTBody = tbody[0];
-
- var tfoot = $this.children('tfoot');
- if ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== "" || oSettings.oScroll.sY !== "") )
- {
- // If we are a scrolling table, and no footer has been given, then we need to create
- // a tfoot element for the caption element to be appended to
- tfoot = $('<tfoot/>').appendTo(this);
- }
-
- if ( tfoot.length === 0 || tfoot.children().length === 0 ) {
- $this.addClass( oClasses.sNoFooter );
- }
- else if ( tfoot.length > 0 ) {
- oSettings.nTFoot = tfoot[0];
- _fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );
- }
-
- /* Check if there is data passing into the constructor */
- if ( oInit.aaData )
- {
- for ( i=0 ; i<oInit.aaData.length ; i++ )
- {
- _fnAddData( oSettings, oInit.aaData[ i ] );
- }
- }
- else if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' )
- {
- /* Grab the data from the page - only do this when deferred loading or no Ajax
- * source since there is no point in reading the DOM data if we are then going
- * to replace it with Ajax data
- */
- _fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );
- }
-
- /* Copy the data index array */
- oSettings.aiDisplay = oSettings.aiDisplayMaster.slice();
-
- /* Initialisation complete - table can be drawn */
- oSettings.bInitialised = true;
-
- /* Check if we need to initialise the table (it might not have been handed off to the
- * language processor)
- */
- if ( bInitHandedOff === false )
- {
- _fnInitialise( oSettings );
- }
- } );
- _that = null;
- return this;
- };
-
-
-
- /**
- * Computed structure of the DataTables API, defined by the options passed to
- * `DataTable.Api.register()` when building the API.
- *
- * The structure is built in order to speed creation and extension of the Api
- * objects since the extensions are effectively pre-parsed.
- *
- * The array is an array of objects with the following structure, where this
- * base array represents the Api prototype base:
- *
- * [
- * {
- * name: 'data' -- string - Property name
- * val: function () {}, -- function - Api method (or undefined if just an object
- * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
- * propExt: [ ... ] -- array - Array of Api object definitions to extend the property
- * },
- * {
- * name: 'row'
- * val: {},
- * methodExt: [ ... ],
- * propExt: [
- * {
- * name: 'data'
- * val: function () {},
- * methodExt: [ ... ],
- * propExt: [ ... ]
- * },
- * ...
- * ]
- * }
- * ]
- *
- * @type {Array}
- * @ignore
- */
- var __apiStruct = [];
-
-
- /**
- * `Array.prototype` reference.
- *
- * @type object
- * @ignore
- */
- var __arrayProto = Array.prototype;
-
-
- /**
- * Abstraction for `context` parameter of the `Api` constructor to allow it to
- * take several different forms for ease of use.
- *
- * Each of the input parameter types will be converted to a DataTables settings
- * object where possible.
- *
- * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one
- * of:
- *
- * * `string` - jQuery selector. Any DataTables' matching the given selector
- * with be found and used.
- * * `node` - `TABLE` node which has already been formed into a DataTable.
- * * `jQuery` - A jQuery object of `TABLE` nodes.
- * * `object` - DataTables settings object
- * * `DataTables.Api` - API instance
- * @return {array|null} Matching DataTables settings objects. `null` or
- * `undefined` is returned if no matching DataTable is found.
- * @ignore
- */
- var _toSettings = function ( mixed )
- {
- var idx, jq;
- var settings = DataTable.settings;
- var tables = $.map( settings, function (el, i) {
- return el.nTable;
- } );
-
- if ( ! mixed ) {
- return [];
- }
- else if ( mixed.nTable && mixed.oApi ) {
- // DataTables settings object
- return [ mixed ];
- }
- else if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {
- // Table node
- idx = $.inArray( mixed, tables );
- return idx !== -1 ? [ settings[idx] ] : null;
- }
- else if ( mixed && typeof mixed.settings === 'function' ) {
- return mixed.settings().toArray();
- }
- else if ( typeof mixed === 'string' ) {
- // jQuery selector
- jq = $(mixed);
- }
- else if ( mixed instanceof $ ) {
- // jQuery object (also DataTables instance)
- jq = mixed;
- }
-
- if ( jq ) {
- return jq.map( function(i) {
- idx = $.inArray( this, tables );
- return idx !== -1 ? settings[idx] : null;
- } ).toArray();
- }
- };
-
-
- /**
- * DataTables API class - used to control and interface with one or more
- * DataTables enhanced tables.
- *
- * The API class is heavily based on jQuery, presenting a chainable interface
- * that you can use to interact with tables. Each instance of the API class has
- * a "context" - i.e. the tables that it will operate on. This could be a single
- * table, all tables on a page or a sub-set thereof.
- *
- * Additionally the API is designed to allow you to easily work with the data in
- * the tables, retrieving and manipulating it as required. This is done by
- * presenting the API class as an array like interface. The contents of the
- * array depend upon the actions requested by each method (for example
- * `rows().nodes()` will return an array of nodes, while `rows().data()` will
- * return an array of objects or arrays depending upon your table's
- * configuration). The API object has a number of array like methods (`push`,
- * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,
- * `unique` etc) to assist your working with the data held in a table.
- *
- * Most methods (those which return an Api instance) are chainable, which means
- * the return from a method call also has all of the methods available that the
- * top level object had. For example, these two calls are equivalent:
- *
- * // Not chained
- * api.row.add( {...} );
- * api.draw();
- *
- * // Chained
- * api.row.add( {...} ).draw();
- *
- * @class DataTable.Api
- * @param {array|object|string|jQuery} context DataTable identifier. This is
- * used to define which DataTables enhanced tables this API will operate on.
- * Can be one of:
- *
- * * `string` - jQuery selector. Any DataTables' matching the given selector
- * with be found and used.
- * * `node` - `TABLE` node which has already been formed into a DataTable.
- * * `jQuery` - A jQuery object of `TABLE` nodes.
- * * `object` - DataTables settings object
- * @param {array} [data] Data to initialise the Api instance with.
- *
- * @example
- * // Direct initialisation during DataTables construction
- * var api = $('#example').DataTable();
- *
- * @example
- * // Initialisation using a DataTables jQuery object
- * var api = $('#example').dataTable().api();
- *
- * @example
- * // Initialisation as a constructor
- * var api = new $.fn.DataTable.Api( 'table.dataTable' );
- */
- _Api = function ( context, data )
- {
- if ( ! (this instanceof _Api) ) {
- return new _Api( context, data );
- }
-
- var settings = [];
- var ctxSettings = function ( o ) {
- var a = _toSettings( o );
- if ( a ) {
- settings = settings.concat( a );
- }
- };
-
- if ( $.isArray( context ) ) {
- for ( var i=0, ien=context.length ; i<ien ; i++ ) {
- ctxSettings( context[i] );
- }
- }
- else {
- ctxSettings( context );
- }
-
- // Remove duplicates
- this.context = _unique( settings );
-
- // Initial data
- if ( data ) {
- $.merge( this, data );
- }
-
- // selector
- this.selector = {
- rows: null,
- cols: null,
- opts: null
- };
-
- _Api.extend( this, this, __apiStruct );
- };
-
- DataTable.Api = _Api;
-
- // Don't destroy the existing prototype, just extend it. Required for jQuery 2's
- // isPlainObject.
- $.extend( _Api.prototype, {
- any: function ()
- {
- return this.count() !== 0;
- },
-
-
- concat: __arrayProto.concat,
-
-
- context: [], // array of table settings objects
-
-
- count: function ()
- {
- return this.flatten().length;
- },
-
-
- each: function ( fn )
- {
- for ( var i=0, ien=this.length ; i<ien; i++ ) {
- fn.call( this, this[i], i, this );
- }
-
- return this;
- },
-
-
- eq: function ( idx )
- {
- var ctx = this.context;
-
- return ctx.length > idx ?
- new _Api( ctx[idx], this[idx] ) :
- null;
- },
-
-
- filter: function ( fn )
- {
- var a = [];
-
- if ( __arrayProto.filter ) {
- a = __arrayProto.filter.call( this, fn, this );
- }
- else {
- // Compatibility for browsers without EMCA-252-5 (JS 1.6)
- for ( var i=0, ien=this.length ; i<ien ; i++ ) {
- if ( fn.call( this, this[i], i, this ) ) {
- a.push( this[i] );
- }
- }
- }
-
- return new _Api( this.context, a );
- },
-
-
- flatten: function ()
- {
- var a = [];
- return new _Api( this.context, a.concat.apply( a, this.toArray() ) );
- },
-
-
- join: __arrayProto.join,
-
-
- indexOf: __arrayProto.indexOf || function (obj, start)
- {
- for ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {
- if ( this[i] === obj ) {
- return i;
- }
- }
- return -1;
- },
-
- iterator: function ( flatten, type, fn, alwaysNew ) {
- var
- a = [], ret,
- i, ien, j, jen,
- context = this.context,
- rows, items, item,
- selector = this.selector;
-
- // Argument shifting
- if ( typeof flatten === 'string' ) {
- alwaysNew = fn;
- fn = type;
- type = flatten;
- flatten = false;
- }
-
- for ( i=0, ien=context.length ; i<ien ; i++ ) {
- var apiInst = new _Api( context[i] );
-
- if ( type === 'table' ) {
- ret = fn.call( apiInst, context[i], i );
-
- if ( ret !== undefined ) {
- a.push( ret );
- }
- }
- else if ( type === 'columns' || type === 'rows' ) {
- // this has same length as context - one entry for each table
- ret = fn.call( apiInst, context[i], this[i], i );
-
- if ( ret !== undefined ) {
- a.push( ret );
- }
- }
- else if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {
- // columns and rows share the same structure.
- // 'this' is an array of column indexes for each context
- items = this[i];
-
- if ( type === 'column-rows' ) {
- rows = _selector_row_indexes( context[i], selector.opts );
- }
-
- for ( j=0, jen=items.length ; j<jen ; j++ ) {
- item = items[j];
-
- if ( type === 'cell' ) {
- ret = fn.call( apiInst, context[i], item.row, item.column, i, j );
- }
- else {
- ret = fn.call( apiInst, context[i], item, i, j, rows );
- }
-
- if ( ret !== undefined ) {
- a.push( ret );
- }
- }
- }
- }
-
- if ( a.length || alwaysNew ) {
- var api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );
- var apiSelector = api.selector;
- apiSelector.rows = selector.rows;
- apiSelector.cols = selector.cols;
- apiSelector.opts = selector.opts;
- return api;
- }
- return this;
- },
-
-
- lastIndexOf: __arrayProto.lastIndexOf || function (obj, start)
- {
- // Bit cheeky...
- return this.indexOf.apply( this.toArray.reverse(), arguments );
- },
-
-
- length: 0,
-
-
- map: function ( fn )
- {
- var a = [];
-
- if ( __arrayProto.map ) {
- a = __arrayProto.map.call( this, fn, this );
- }
- else {
- // Compatibility for browsers without EMCA-252-5 (JS 1.6)
- for ( var i=0, ien=this.length ; i<ien ; i++ ) {
- a.push( fn.call( this, this[i], i ) );
- }
- }
-
- return new _Api( this.context, a );
- },
-
-
- pluck: function ( prop )
- {
- return this.map( function ( el ) {
- return el[ prop ];
- } );
- },
-
- pop: __arrayProto.pop,
-
-
- push: __arrayProto.push,
-
-
- // Does not return an API instance
- reduce: __arrayProto.reduce || function ( fn, init )
- {
- return _fnReduce( this, fn, init, 0, this.length, 1 );
- },
-
-
- reduceRight: __arrayProto.reduceRight || function ( fn, init )
- {
- return _fnReduce( this, fn, init, this.length-1, -1, -1 );
- },
-
-
- reverse: __arrayProto.reverse,
-
-
- // Object with rows, columns and opts
- selector: null,
-
-
- shift: __arrayProto.shift,
-
-
- sort: __arrayProto.sort, // ? name - order?
-
-
- splice: __arrayProto.splice,
-
-
- toArray: function ()
- {
- return __arrayProto.slice.call( this );
- },
-
-
- to$: function ()
- {
- return $( this );
- },
-
-
- toJQuery: function ()
- {
- return $( this );
- },
-
-
- unique: function ()
- {
- return new _Api( this.context, _unique(this) );
- },
-
-
- unshift: __arrayProto.unshift
- } );
-
-
- _Api.extend = function ( scope, obj, ext )
- {
- // Only extend API instances and static properties of the API
- if ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {
- return;
- }
-
- var
- i, ien,
- j, jen,
- struct, inner,
- methodScoping = function ( scope, fn, struc ) {
- return function () {
- var ret = fn.apply( scope, arguments );
-
- // Method extension
- _Api.extend( ret, ret, struc.methodExt );
- return ret;
- };
- };
-
- for ( i=0, ien=ext.length ; i<ien ; i++ ) {
- struct = ext[i];
-
- // Value
- obj[ struct.name ] = typeof struct.val === 'function' ?
- methodScoping( scope, struct.val, struct ) :
- $.isPlainObject( struct.val ) ?
- {} :
- struct.val;
-
- obj[ struct.name ].__dt_wrapper = true;
-
- // Property extension
- _Api.extend( scope, obj[ struct.name ], struct.propExt );
- }
- };
-
-
- // @todo - Is there need for an augment function?
- // _Api.augment = function ( inst, name )
- // {
- // // Find src object in the structure from the name
- // var parts = name.split('.');
-
- // _Api.extend( inst, obj );
- // };
-
-
- // [
- // {
- // name: 'data' -- string - Property name
- // val: function () {}, -- function - Api method (or undefined if just an object
- // methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result
- // propExt: [ ... ] -- array - Array of Api object definitions to extend the property
- // },
- // {
- // name: 'row'
- // val: {},
- // methodExt: [ ... ],
- // propExt: [
- // {
- // name: 'data'
- // val: function () {},
- // methodExt: [ ... ],
- // propExt: [ ... ]
- // },
- // ...
- // ]
- // }
- // ]
-
- _Api.register = _api_register = function ( name, val )
- {
- if ( $.isArray( name ) ) {
- for ( var j=0, jen=name.length ; j<jen ; j++ ) {
- _Api.register( name[j], val );
- }
- return;
- }
-
- var
- i, ien,
- heir = name.split('.'),
- struct = __apiStruct,
- key, method;
-
- var find = function ( src, name ) {
- for ( var i=0, ien=src.length ; i<ien ; i++ ) {
- if ( src[i].name === name ) {
- return src[i];
- }
- }
- return null;
- };
-
- for ( i=0, ien=heir.length ; i<ien ; i++ ) {
- method = heir[i].indexOf('()') !== -1;
- key = method ?
- heir[i].replace('()', '') :
- heir[i];
-
- var src = find( struct, key );
- if ( ! src ) {
- src = {
- name: key,
- val: {},
- methodExt: [],
- propExt: []
- };
- struct.push( src );
- }
-
- if ( i === ien-1 ) {
- src.val = val;
- }
- else {
- struct = method ?
- src.methodExt :
- src.propExt;
- }
- }
- };
-
-
- _Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {
- _Api.register( pluralName, val );
-
- _Api.register( singularName, function () {
- var ret = val.apply( this, arguments );
-
- if ( ret === this ) {
- // Returned item is the API instance that was passed in, return it
- return this;
- }
- else if ( ret instanceof _Api ) {
- // New API instance returned, want the value from the first item
- // in the returned array for the singular result.
- return ret.length ?
- $.isArray( ret[0] ) ?
- new _Api( ret.context, ret[0] ) : // Array results are 'enhanced'
- ret[0] :
- undefined;
- }
-
- // Non-API return - just fire it back
- return ret;
- } );
- };
-
-
- /**
- * Selector for HTML tables. Apply the given selector to the give array of
- * DataTables settings objects.
- *
- * @param {string|integer} [selector] jQuery selector string or integer
- * @param {array} Array of DataTables settings objects to be filtered
- * @return {array}
- * @ignore
- */
- var __table_selector = function ( selector, a )
- {
- // Integer is used to pick out a table by index
- if ( typeof selector === 'number' ) {
- return [ a[ selector ] ];
- }
-
- // Perform a jQuery selector on the table nodes
- var nodes = $.map( a, function (el, i) {
- return el.nTable;
- } );
-
- return $(nodes)
- .filter( selector )
- .map( function (i) {
- // Need to translate back from the table node to the settings
- var idx = $.inArray( this, nodes );
- return a[ idx ];
- } )
- .toArray();
- };
-
-
-
- /**
- * Context selector for the API's context (i.e. the tables the API instance
- * refers to.
- *
- * @name DataTable.Api#tables
- * @param {string|integer} [selector] Selector to pick which tables the iterator
- * should operate on. If not given, all tables in the current context are
- * used. This can be given as a jQuery selector (for example `':gt(0)'`) to
- * select multiple tables or as an integer to select a single table.
- * @returns {DataTable.Api} Returns a new API instance if a selector is given.
- */
- _api_register( 'tables()', function ( selector ) {
- // A new instance is created if there was a selector specified
- return selector ?
- new _Api( __table_selector( selector, this.context ) ) :
- this;
- } );
-
-
- _api_register( 'table()', function ( selector ) {
- var tables = this.tables( selector );
- var ctx = tables.context;
-
- // Truncate to the first matched table
- return ctx.length ?
- new _Api( ctx[0] ) :
- tables;
- } );
-
-
- _api_registerPlural( 'tables().nodes()', 'table().node()' , function () {
- return this.iterator( 'table', function ( ctx ) {
- return ctx.nTable;
- }, 1 );
- } );
-
-
- _api_registerPlural( 'tables().body()', 'table().body()' , function () {
- return this.iterator( 'table', function ( ctx ) {
- return ctx.nTBody;
- }, 1 );
- } );
-
-
- _api_registerPlural( 'tables().header()', 'table().header()' , function () {
- return this.iterator( 'table', function ( ctx ) {
- return ctx.nTHead;
- }, 1 );
- } );
-
-
- _api_registerPlural( 'tables().footer()', 'table().footer()' , function () {
- return this.iterator( 'table', function ( ctx ) {
- return ctx.nTFoot;
- }, 1 );
- } );
-
-
- _api_registerPlural( 'tables().containers()', 'table().container()' , function () {
- return this.iterator( 'table', function ( ctx ) {
- return ctx.nTableWrapper;
- }, 1 );
- } );
-
-
-
- /**
- * Redraw the tables in the current context.
- */
- _api_register( 'draw()', function ( paging ) {
- return this.iterator( 'table', function ( settings ) {
- if ( paging === 'page' ) {
- _fnDraw( settings );
- }
- else {
- if ( typeof paging === 'string' ) {
- paging = paging === 'full-hold' ?
- false :
- true;
- }
-
- _fnReDraw( settings, paging===false );
- }
- } );
- } );
-
-
-
- /**
- * Get the current page index.
- *
- * @return {integer} Current page index (zero based)
- *//**
- * Set the current page.
- *
- * Note that if you attempt to show a page which does not exist, DataTables will
- * not throw an error, but rather reset the paging.
- *
- * @param {integer|string} action The paging action to take. This can be one of:
- * * `integer` - The page index to jump to
- * * `string` - An action to take:
- * * `first` - Jump to first page.
- * * `next` - Jump to the next page
- * * `previous` - Jump to previous page
- * * `last` - Jump to the last page.
- * @returns {DataTables.Api} this
- */
- _api_register( 'page()', function ( action ) {
- if ( action === undefined ) {
- return this.page.info().page; // not an expensive call
- }
-
- // else, have an action to take on all tables
- return this.iterator( 'table', function ( settings ) {
- _fnPageChange( settings, action );
- } );
- } );
-
-
- /**
- * Paging information for the first table in the current context.
- *
- * If you require paging information for another table, use the `table()` method
- * with a suitable selector.
- *
- * @return {object} Object with the following properties set:
- * * `page` - Current page index (zero based - i.e. the first page is `0`)
- * * `pages` - Total number of pages
- * * `start` - Display index for the first record shown on the current page
- * * `end` - Display index for the last record shown on the current page
- * * `length` - Display length (number of records). Note that generally `start
- * + length = end`, but this is not always true, for example if there are
- * only 2 records to show on the final page, with a length of 10.
- * * `recordsTotal` - Full data set length
- * * `recordsDisplay` - Data set length once the current filtering criterion
- * are applied.
- */
- _api_register( 'page.info()', function ( action ) {
- if ( this.context.length === 0 ) {
- return undefined;
- }
-
- var
- settings = this.context[0],
- start = settings._iDisplayStart,
- len = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,
- visRecords = settings.fnRecordsDisplay(),
- all = len === -1;
-
- return {
- "page": all ? 0 : Math.floor( start / len ),
- "pages": all ? 1 : Math.ceil( visRecords / len ),
- "start": start,
- "end": settings.fnDisplayEnd(),
- "length": len,
- "recordsTotal": settings.fnRecordsTotal(),
- "recordsDisplay": visRecords,
- "serverSide": _fnDataSource( settings ) === 'ssp'
- };
- } );
-
-
- /**
- * Get the current page length.
- *
- * @return {integer} Current page length. Note `-1` indicates that all records
- * are to be shown.
- *//**
- * Set the current page length.
- *
- * @param {integer} Page length to set. Use `-1` to show all records.
- * @returns {DataTables.Api} this
- */
- _api_register( 'page.len()', function ( len ) {
- // Note that we can't call this function 'length()' because `length`
- // is a Javascript property of functions which defines how many arguments
- // the function expects.
- if ( len === undefined ) {
- return this.context.length !== 0 ?
- this.context[0]._iDisplayLength :
- undefined;
- }
-
- // else, set the page length
- return this.iterator( 'table', function ( settings ) {
- _fnLengthChange( settings, len );
- } );
- } );
-
-
-
- var __reload = function ( settings, holdPosition, callback ) {
- // Use the draw event to trigger a callback
- if ( callback ) {
- var api = new _Api( settings );
-
- api.one( 'draw', function () {
- callback( api.ajax.json() );
- } );
- }
-
- if ( _fnDataSource( settings ) == 'ssp' ) {
- _fnReDraw( settings, holdPosition );
- }
- else {
- _fnProcessingDisplay( settings, true );
-
- // Cancel an existing request
- var xhr = settings.jqXHR;
- if ( xhr && xhr.readyState !== 4 ) {
- xhr.abort();
- }
-
- // Trigger xhr
- _fnBuildAjax( settings, [], function( json ) {
- _fnClearTable( settings );
-
- var data = _fnAjaxDataSrc( settings, json );
- for ( var i=0, ien=data.length ; i<ien ; i++ ) {
- _fnAddData( settings, data[i] );
- }
-
- _fnReDraw( settings, holdPosition );
- _fnProcessingDisplay( settings, false );
- } );
- }
- };
-
-
- /**
- * Get the JSON response from the last Ajax request that DataTables made to the
- * server. Note that this returns the JSON from the first table in the current
- * context.
- *
- * @return {object} JSON received from the server.
- */
- _api_register( 'ajax.json()', function () {
- var ctx = this.context;
-
- if ( ctx.length > 0 ) {
- return ctx[0].json;
- }
-
- // else return undefined;
- } );
-
-
- /**
- * Get the data submitted in the last Ajax request
- */
- _api_register( 'ajax.params()', function () {
- var ctx = this.context;
-
- if ( ctx.length > 0 ) {
- return ctx[0].oAjaxData;
- }
-
- // else return undefined;
- } );
-
-
- /**
- * Reload tables from the Ajax data source. Note that this function will
- * automatically re-draw the table when the remote data has been loaded.
- *
- * @param {boolean} [reset=true] Reset (default) or hold the current paging
- * position. A full re-sort and re-filter is performed when this method is
- * called, which is why the pagination reset is the default action.
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.reload()', function ( callback, resetPaging ) {
- return this.iterator( 'table', function (settings) {
- __reload( settings, resetPaging===false, callback );
- } );
- } );
-
-
- /**
- * Get the current Ajax URL. Note that this returns the URL from the first
- * table in the current context.
- *
- * @return {string} Current Ajax source URL
- *//**
- * Set the Ajax URL. Note that this will set the URL for all tables in the
- * current context.
- *
- * @param {string} url URL to set.
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.url()', function ( url ) {
- var ctx = this.context;
-
- if ( url === undefined ) {
- // get
- if ( ctx.length === 0 ) {
- return undefined;
- }
- ctx = ctx[0];
-
- return ctx.ajax ?
- $.isPlainObject( ctx.ajax ) ?
- ctx.ajax.url :
- ctx.ajax :
- ctx.sAjaxSource;
- }
-
- // set
- return this.iterator( 'table', function ( settings ) {
- if ( $.isPlainObject( settings.ajax ) ) {
- settings.ajax.url = url;
- }
- else {
- settings.ajax = url;
- }
- // No need to consider sAjaxSource here since DataTables gives priority
- // to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any
- // value of `sAjaxSource` redundant.
- } );
- } );
-
-
- /**
- * Load data from the newly set Ajax URL. Note that this method is only
- * available when `ajax.url()` is used to set a URL. Additionally, this method
- * has the same effect as calling `ajax.reload()` but is provided for
- * convenience when setting a new URL. Like `ajax.reload()` it will
- * automatically redraw the table once the remote data has been loaded.
- *
- * @returns {DataTables.Api} this
- */
- _api_register( 'ajax.url().load()', function ( callback, resetPaging ) {
- // Same as a reload, but makes sense to present it for easy access after a
- // url change
- return this.iterator( 'table', function ( ctx ) {
- __reload( ctx, resetPaging===false, callback );
- } );
- } );
-
-
-
-
- var _selector_run = function ( type, selector, selectFn, settings, opts )
- {
- var
- out = [], res,
- a, i, ien, j, jen,
- selectorType = typeof selector;
-
- // Can't just check for isArray here, as an API or jQuery instance might be
- // given with their array like look
- if ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {
- selector = [ selector ];
- }
-
- for ( i=0, ien=selector.length ; i<ien ; i++ ) {
- a = selector[i] && selector[i].split ?
- selector[i].split(',') :
- [ selector[i] ];
-
- for ( j=0, jen=a.length ; j<jen ; j++ ) {
- res = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );
-
- if ( res && res.length ) {
- out = out.concat( res );
- }
- }
- }
-
- // selector extensions
- var ext = _ext.selector[ type ];
- if ( ext.length ) {
- for ( i=0, ien=ext.length ; i<ien ; i++ ) {
- out = ext[i]( settings, opts, out );
- }
- }
-
- return _unique( out );
- };
-
-
- var _selector_opts = function ( opts )
- {
- if ( ! opts ) {
- opts = {};
- }
-
- // Backwards compatibility for 1.9- which used the terminology filter rather
- // than search
- if ( opts.filter && opts.search === undefined ) {
- opts.search = opts.filter;
- }
-
- return $.extend( {
- search: 'none',
- order: 'current',
- page: 'all'
- }, opts );
- };
-
-
- var _selector_first = function ( inst )
- {
- // Reduce the API instance to the first item found
- for ( var i=0, ien=inst.length ; i<ien ; i++ ) {
- if ( inst[i].length > 0 ) {
- // Assign the first element to the first item in the instance
- // and truncate the instance and context
- inst[0] = inst[i];
- inst[0].length = 1;
- inst.length = 1;
- inst.context = [ inst.context[i] ];
-
- return inst;
- }
- }
-
- // Not found - return an empty instance
- inst.length = 0;
- return inst;
- };
-
-
- var _selector_row_indexes = function ( settings, opts )
- {
- var
- i, ien, tmp, a=[],
- displayFiltered = settings.aiDisplay,
- displayMaster = settings.aiDisplayMaster;
-
- var
- search = opts.search, // none, applied, removed
- order = opts.order, // applied, current, index (original - compatibility with 1.9)
- page = opts.page; // all, current
-
- if ( _fnDataSource( settings ) == 'ssp' ) {
- // In server-side processing mode, most options are irrelevant since
- // rows not shown don't exist and the index order is the applied order
- // Removed is a special case - for consistency just return an empty
- // array
- return search === 'removed' ?
- [] :
- _range( 0, displayMaster.length );
- }
- else if ( page == 'current' ) {
- // Current page implies that order=current and fitler=applied, since it is
- // fairly senseless otherwise, regardless of what order and search actually
- // are
- for ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {
- a.push( displayFiltered[i] );
- }
- }
- else if ( order == 'current' || order == 'applied' ) {
- a = search == 'none' ?
- displayMaster.slice() : // no search
- search == 'applied' ?
- displayFiltered.slice() : // applied search
- $.map( displayMaster, function (el, i) { // removed search
- return $.inArray( el, displayFiltered ) === -1 ? el : null;
- } );
- }
- else if ( order == 'index' || order == 'original' ) {
- for ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
- if ( search == 'none' ) {
- a.push( i );
- }
- else { // applied | removed
- tmp = $.inArray( i, displayFiltered );
-
- if ((tmp === -1 && search == 'removed') ||
- (tmp >= 0 && search == 'applied') )
- {
- a.push( i );
- }
- }
- }
- }
-
- return a;
- };
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Rows
- *
- * {} - no selector - use all available rows
- * {integer} - row aoData index
- * {node} - TR node
- * {string} - jQuery selector to apply to the TR elements
- * {array} - jQuery array of nodes, or simply an array of TR nodes
- *
- */
-
-
- var __row_selector = function ( settings, selector, opts )
- {
- var run = function ( sel ) {
- var selInt = _intVal( sel );
- var i, ien;
-
- // Short cut - selector is a number and no options provided (default is
- // all records, so no need to check if the index is in there, since it
- // must be - dev error if the index doesn't exist).
- if ( selInt !== null && ! opts ) {
- return [ selInt ];
- }
-
- var rows = _selector_row_indexes( settings, opts );
-
- if ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {
- // Selector - integer
- return [ selInt ];
- }
- else if ( ! sel ) {
- // Selector - none
- return rows;
- }
-
- // Selector - function
- if ( typeof sel === 'function' ) {
- return $.map( rows, function (idx) {
- var row = settings.aoData[ idx ];
- return sel( idx, row._aData, row.nTr ) ? idx : null;
- } );
- }
-
- // Get nodes in the order from the `rows` array with null values removed
- var nodes = _removeEmpty(
- _pluck_order( settings.aoData, rows, 'nTr' )
- );
-
- // Selector - node
- if ( sel.nodeName ) {
- if ( sel._DT_RowIndex !== undefined ) {
- return [ sel._DT_RowIndex ]; // Property added by DT for fast lookup
- }
- else if ( sel._DT_CellIndex ) {
- return [ sel._DT_CellIndex.row ];
- }
- else {
- var host = $(sel).closest('*[data-dt-row]');
- return host.length ?
- [ host.data('dt-row') ] :
- [];
- }
- }
-
- // ID selector. Want to always be able to select rows by id, regardless
- // of if the tr element has been created or not, so can't rely upon
- // jQuery here - hence a custom implementation. This does not match
- // Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,
- // but to select it using a CSS selector engine (like Sizzle or
- // querySelect) it would need to need to be escaped for some characters.
- // DataTables simplifies this for row selectors since you can select
- // only a row. A # indicates an id any anything that follows is the id -
- // unescaped.
- if ( typeof sel === 'string' && sel.charAt(0) === '#' ) {
- // get row index from id
- var rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];
- if ( rowObj !== undefined ) {
- return [ rowObj.idx ];
- }
-
- // need to fall through to jQuery in case there is DOM id that
- // matches
- }
-
- // Selector - jQuery selector string, array of nodes or jQuery object/
- // As jQuery's .filter() allows jQuery objects to be passed in filter,
- // it also allows arrays, so this will cope with all three options
- return $(nodes)
- .filter( sel )
- .map( function () {
- return this._DT_RowIndex;
- } )
- .toArray();
- };
-
- return _selector_run( 'row', selector, run, settings, opts );
- };
-
-
- _api_register( 'rows()', function ( selector, opts ) {
- // argument shifting
- if ( selector === undefined ) {
- selector = '';
- }
- else if ( $.isPlainObject( selector ) ) {
- opts = selector;
- selector = '';
- }
-
- opts = _selector_opts( opts );
-
- var inst = this.iterator( 'table', function ( settings ) {
- return __row_selector( settings, selector, opts );
- }, 1 );
-
- // Want argument shifting here and in __row_selector?
- inst.selector.rows = selector;
- inst.selector.opts = opts;
-
- return inst;
- } );
-
- _api_register( 'rows().nodes()', function () {
- return this.iterator( 'row', function ( settings, row ) {
- return settings.aoData[ row ].nTr || undefined;
- }, 1 );
- } );
-
- _api_register( 'rows().data()', function () {
- return this.iterator( true, 'rows', function ( settings, rows ) {
- return _pluck_order( settings.aoData, rows, '_aData' );
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {
- return this.iterator( 'row', function ( settings, row ) {
- var r = settings.aoData[ row ];
- return type === 'search' ? r._aFilterData : r._aSortData;
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {
- return this.iterator( 'row', function ( settings, row ) {
- _fnInvalidate( settings, row, src );
- } );
- } );
-
- _api_registerPlural( 'rows().indexes()', 'row().index()', function () {
- return this.iterator( 'row', function ( settings, row ) {
- return row;
- }, 1 );
- } );
-
- _api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {
- var a = [];
- var context = this.context;
-
- // `iterator` will drop undefined values, but in this case we want them
- for ( var i=0, ien=context.length ; i<ien ; i++ ) {
- for ( var j=0, jen=this[i].length ; j<jen ; j++ ) {
- var id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );
- a.push( (hash === true ? '#' : '' )+ id );
- }
- }
-
- return new _Api( context, a );
- } );
-
- _api_registerPlural( 'rows().remove()', 'row().remove()', function () {
- var that = this;
-
- this.iterator( 'row', function ( settings, row, thatIdx ) {
- var data = settings.aoData;
- var rowData = data[ row ];
- var i, ien, j, jen;
- var loopRow, loopCells;
-
- data.splice( row, 1 );
-
- // Update the cached indexes
- for ( i=0, ien=data.length ; i<ien ; i++ ) {
- loopRow = data[i];
- loopCells = loopRow.anCells;
-
- // Rows
- if ( loopRow.nTr !== null ) {
- loopRow.nTr._DT_RowIndex = i;
- }
-
- // Cells
- if ( loopCells !== null ) {
- for ( j=0, jen=loopCells.length ; j<jen ; j++ ) {
- loopCells[j]._DT_CellIndex.row = i;
- }
- }
- }
-
- // Delete from the display arrays
- _fnDeleteIndex( settings.aiDisplayMaster, row );
- _fnDeleteIndex( settings.aiDisplay, row );
- _fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes
-
- // Check for an 'overflow' they case for displaying the table
- _fnLengthOverflow( settings );
-
- // Remove the row's ID reference if there is one
- var id = settings.rowIdFn( rowData._aData );
- if ( id !== undefined ) {
- delete settings.aIds[ id ];
- }
- } );
-
- this.iterator( 'table', function ( settings ) {
- for ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {
- settings.aoData[i].idx = i;
- }
- } );
-
- return this;
- } );
-
-
- _api_register( 'rows.add()', function ( rows ) {
- var newRows = this.iterator( 'table', function ( settings ) {
- var row, i, ien;
- var out = [];
-
- for ( i=0, ien=rows.length ; i<ien ; i++ ) {
- row = rows[i];
-
- if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
- out.push( _fnAddTr( settings, row )[0] );
- }
- else {
- out.push( _fnAddData( settings, row ) );
- }
- }
-
- return out;
- }, 1 );
-
- // Return an Api.rows() extended instance, so rows().nodes() etc can be used
- var modRows = this.rows( -1 );
- modRows.pop();
- $.merge( modRows, newRows );
-
- return modRows;
- } );
-
-
-
-
-
- /**
- *
- */
- _api_register( 'row()', function ( selector, opts ) {
- return _selector_first( this.rows( selector, opts ) );
- } );
-
-
- _api_register( 'row().data()', function ( data ) {
- var ctx = this.context;
-
- if ( data === undefined ) {
- // Get
- return ctx.length && this.length ?
- ctx[0].aoData[ this[0] ]._aData :
- undefined;
- }
-
- // Set
- ctx[0].aoData[ this[0] ]._aData = data;
-
- // Automatically invalidate
- _fnInvalidate( ctx[0], this[0], 'data' );
-
- return this;
- } );
-
-
- _api_register( 'row().node()', function () {
- var ctx = this.context;
-
- return ctx.length && this.length ?
- ctx[0].aoData[ this[0] ].nTr || null :
- null;
- } );
-
-
- _api_register( 'row.add()', function ( row ) {
- // Allow a jQuery object to be passed in - only a single row is added from
- // it though - the first element in the set
- if ( row instanceof $ && row.length ) {
- row = row[0];
- }
-
- var rows = this.iterator( 'table', function ( settings ) {
- if ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {
- return _fnAddTr( settings, row )[0];
- }
- return _fnAddData( settings, row );
- } );
-
- // Return an Api.rows() extended instance, with the newly added row selected
- return this.row( rows[0] );
- } );
-
-
-
- var __details_add = function ( ctx, row, data, klass )
- {
- // Convert to array of TR elements
- var rows = [];
- var addRow = function ( r, k ) {
- // Recursion to allow for arrays of jQuery objects
- if ( $.isArray( r ) || r instanceof $ ) {
- for ( var i=0, ien=r.length ; i<ien ; i++ ) {
- addRow( r[i], k );
- }
- return;
- }
-
- // If we get a TR element, then just add it directly - up to the dev
- // to add the correct number of columns etc
- if ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {
- rows.push( r );
- }
- else {
- // Otherwise create a row with a wrapper
- var created = $('<tr><td/></tr>').addClass( k );
- $('td', created)
- .addClass( k )
- .html( r )
- [0].colSpan = _fnVisbleColumns( ctx );
-
- rows.push( created[0] );
- }
- };
-
- addRow( data, klass );
-
- if ( row._details ) {
- row._details.remove();
- }
-
- row._details = $(rows);
-
- // If the children were already shown, that state should be retained
- if ( row._detailsShow ) {
- row._details.insertAfter( row.nTr );
- }
- };
-
-
- var __details_remove = function ( api, idx )
- {
- var ctx = api.context;
-
- if ( ctx.length ) {
- var row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];
-
- if ( row && row._details ) {
- row._details.remove();
-
- row._detailsShow = undefined;
- row._details = undefined;
- }
- }
- };
-
-
- var __details_display = function ( api, show ) {
- var ctx = api.context;
-
- if ( ctx.length && api.length ) {
- var row = ctx[0].aoData[ api[0] ];
-
- if ( row._details ) {
- row._detailsShow = show;
-
- if ( show ) {
- row._details.insertAfter( row.nTr );
- }
- else {
- row._details.detach();
- }
-
- __details_events( ctx[0] );
- }
- }
- };
-
-
- var __details_events = function ( settings )
- {
- var api = new _Api( settings );
- var namespace = '.dt.DT_details';
- var drawEvent = 'draw'+namespace;
- var colvisEvent = 'column-visibility'+namespace;
- var destroyEvent = 'destroy'+namespace;
- var data = settings.aoData;
-
- api.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );
-
- if ( _pluck( data, '_details' ).length > 0 ) {
- // On each draw, insert the required elements into the document
- api.on( drawEvent, function ( e, ctx ) {
- if ( settings !== ctx ) {
- return;
- }
-
- api.rows( {page:'current'} ).eq(0).each( function (idx) {
- // Internal data grab
- var row = data[ idx ];
-
- if ( row._detailsShow ) {
- row._details.insertAfter( row.nTr );
- }
- } );
- } );
-
- // Column visibility change - update the colspan
- api.on( colvisEvent, function ( e, ctx, idx, vis ) {
- if ( settings !== ctx ) {
- return;
- }
-
- // Update the colspan for the details rows (note, only if it already has
- // a colspan)
- var row, visible = _fnVisbleColumns( ctx );
-
- for ( var i=0, ien=data.length ; i<ien ; i++ ) {
- row = data[i];
-
- if ( row._details ) {
- row._details.children('td[colspan]').attr('colspan', visible );
- }
- }
- } );
-
- // Table destroyed - nuke any child rows
- api.on( destroyEvent, function ( e, ctx ) {
- if ( settings !== ctx ) {
- return;
- }
-
- for ( var i=0, ien=data.length ; i<ien ; i++ ) {
- if ( data[i]._details ) {
- __details_remove( api, i );
- }
- }
- } );
- }
- };
-
- // Strings for the method names to help minification
- var _emp = '';
- var _child_obj = _emp+'row().child';
- var _child_mth = _child_obj+'()';
-
- // data can be:
- // tr
- // string
- // jQuery or array of any of the above
- _api_register( _child_mth, function ( data, klass ) {
- var ctx = this.context;
-
- if ( data === undefined ) {
- // get
- return ctx.length && this.length ?
- ctx[0].aoData[ this[0] ]._details :
- undefined;
- }
- else if ( data === true ) {
- // show
- this.child.show();
- }
- else if ( data === false ) {
- // remove
- __details_remove( this );
- }
- else if ( ctx.length && this.length ) {
- // set
- __details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );
- }
-
- return this;
- } );
-
-
- _api_register( [
- _child_obj+'.show()',
- _child_mth+'.show()' // only when `child()` was called with parameters (without
- ], function ( show ) { // it returns an object and this method is not executed)
- __details_display( this, true );
- return this;
- } );
-
-
- _api_register( [
- _child_obj+'.hide()',
- _child_mth+'.hide()' // only when `child()` was called with parameters (without
- ], function () { // it returns an object and this method is not executed)
- __details_display( this, false );
- return this;
- } );
-
-
- _api_register( [
- _child_obj+'.remove()',
- _child_mth+'.remove()' // only when `child()` was called with parameters (without
- ], function () { // it returns an object and this method is not executed)
- __details_remove( this );
- return this;
- } );
-
-
- _api_register( _child_obj+'.isShown()', function () {
- var ctx = this.context;
-
- if ( ctx.length && this.length ) {
- // _detailsShown as false or undefined will fall through to return false
- return ctx[0].aoData[ this[0] ]._detailsShow || false;
- }
- return false;
- } );
-
-
-
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Columns
- *
- * {integer} - column index (>=0 count from left, <0 count from right)
- * "{integer}:visIdx" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)
- * "{integer}:visible" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)
- * "{string}:name" - column name
- * "{string}" - jQuery selector on column header nodes
- *
- */
-
- // can be an array of these items, comma separated list, or an array of comma
- // separated lists
-
- var __re_column_selector = /^(.+):(name|visIdx|visible)$/;
-
-
- // r1 and r2 are redundant - but it means that the parameters match for the
- // iterator callback in columns().data()
- var __columnData = function ( settings, column, r1, r2, rows ) {
- var a = [];
- for ( var row=0, ien=rows.length ; row<ien ; row++ ) {
- a.push( _fnGetCellData( settings, rows[row], column ) );
- }
- return a;
- };
-
-
- var __column_selector = function ( settings, selector, opts )
- {
- var
- columns = settings.aoColumns,
- names = _pluck( columns, 'sName' ),
- nodes = _pluck( columns, 'nTh' );
-
- var run = function ( s ) {
- var selInt = _intVal( s );
-
- // Selector - all
- if ( s === '' ) {
- return _range( columns.length );
- }
-
- // Selector - index
- if ( selInt !== null ) {
- return [ selInt >= 0 ?
- selInt : // Count from left
- columns.length + selInt // Count from right (+ because its a negative value)
- ];
- }
-
- // Selector = function
- if ( typeof s === 'function' ) {
- var rows = _selector_row_indexes( settings, opts );
-
- return $.map( columns, function (col, idx) {
- return s(
- idx,
- __columnData( settings, idx, 0, 0, rows ),
- nodes[ idx ]
- ) ? idx : null;
- } );
- }
-
- // jQuery or string selector
- var match = typeof s === 'string' ?
- s.match( __re_column_selector ) :
- '';
-
- if ( match ) {
- switch( match[2] ) {
- case 'visIdx':
- case 'visible':
- var idx = parseInt( match[1], 10 );
- // Visible index given, convert to column index
- if ( idx < 0 ) {
- // Counting from the right
- var visColumns = $.map( columns, function (col,i) {
- return col.bVisible ? i : null;
- } );
- return [ visColumns[ visColumns.length + idx ] ];
- }
- // Counting from the left
- return [ _fnVisibleToColumnIndex( settings, idx ) ];
-
- case 'name':
- // match by name. `names` is column index complete and in order
- return $.map( names, function (name, i) {
- return name === match[1] ? i : null;
- } );
-
- default:
- return [];
- }
- }
-
- // Cell in the table body
- if ( s.nodeName && s._DT_CellIndex ) {
- return [ s._DT_CellIndex.column ];
- }
-
- // jQuery selector on the TH elements for the columns
- var jqResult = $( nodes )
- .filter( s )
- .map( function () {
- return $.inArray( this, nodes ); // `nodes` is column index complete and in order
- } )
- .toArray();
-
- if ( jqResult.length || ! s.nodeName ) {
- return jqResult;
- }
-
- // Otherwise a node which might have a `dt-column` data attribute, or be
- // a child or such an element
- var host = $(s).closest('*[data-dt-column]');
- return host.length ?
- [ host.data('dt-column') ] :
- [];
- };
-
- return _selector_run( 'column', selector, run, settings, opts );
- };
-
-
- var __setColumnVis = function ( settings, column, vis, recalc ) {
- var
- cols = settings.aoColumns,
- col = cols[ column ],
- data = settings.aoData,
- row, cells, i, ien, tr;
-
- // Get
- if ( vis === undefined ) {
- return col.bVisible;
- }
-
- // Set
- // No change
- if ( col.bVisible === vis ) {
- return;
- }
-
- if ( vis ) {
- // Insert column
- // Need to decide if we should use appendChild or insertBefore
- var insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );
-
- for ( i=0, ien=data.length ; i<ien ; i++ ) {
- tr = data[i].nTr;
- cells = data[i].anCells;
-
- if ( tr ) {
- // insertBefore can act like appendChild if 2nd arg is null
- tr.insertBefore( cells[ column ], cells[ insertBefore ] || null );
- }
- }
- }
- else {
- // Remove column
- $( _pluck( settings.aoData, 'anCells', column ) ).detach();
- }
-
- // Common actions
- col.bVisible = vis;
- _fnDrawHead( settings, settings.aoHeader );
- _fnDrawHead( settings, settings.aoFooter );
-
- if ( recalc === undefined || recalc ) {
- // Automatically adjust column sizing
- _fnAdjustColumnSizing( settings );
- }
-
- _fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, recalc] );
-
- _fnSaveState( settings );
- };
-
-
- _api_register( 'columns()', function ( selector, opts ) {
- // argument shifting
- if ( selector === undefined ) {
- selector = '';
- }
- else if ( $.isPlainObject( selector ) ) {
- opts = selector;
- selector = '';
- }
-
- opts = _selector_opts( opts );
-
- var inst = this.iterator( 'table', function ( settings ) {
- return __column_selector( settings, selector, opts );
- }, 1 );
-
- // Want argument shifting here and in _row_selector?
- inst.selector.cols = selector;
- inst.selector.opts = opts;
-
- return inst;
- } );
-
- _api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {
- return this.iterator( 'column', function ( settings, column ) {
- return settings.aoColumns[column].nTh;
- }, 1 );
- } );
-
- _api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {
- return this.iterator( 'column', function ( settings, column ) {
- return settings.aoColumns[column].nTf;
- }, 1 );
- } );
-
- _api_registerPlural( 'columns().data()', 'column().data()', function () {
- return this.iterator( 'column-rows', __columnData, 1 );
- } );
-
- _api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {
- return this.iterator( 'column', function ( settings, column ) {
- return settings.aoColumns[column].mData;
- }, 1 );
- } );
-
- _api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {
- return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
- return _pluck_order( settings.aoData, rows,
- type === 'search' ? '_aFilterData' : '_aSortData', column
- );
- }, 1 );
- } );
-
- _api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {
- return this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {
- return _pluck_order( settings.aoData, rows, 'anCells', column ) ;
- }, 1 );
- } );
-
- _api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {
- return this.iterator( 'column', function ( settings, column ) {
- if ( vis === undefined ) {
- return settings.aoColumns[ column ].bVisible;
- } // else
- __setColumnVis( settings, column, vis, calc );
- } );
- } );
-
- _api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {
- return this.iterator( 'column', function ( settings, column ) {
- return type === 'visible' ?
- _fnColumnIndexToVisible( settings, column ) :
- column;
- }, 1 );
- } );
-
- _api_register( 'columns.adjust()', function () {
- return this.iterator( 'table', function ( settings ) {
- _fnAdjustColumnSizing( settings );
- }, 1 );
- } );
-
- _api_register( 'column.index()', function ( type, idx ) {
- if ( this.context.length !== 0 ) {
- var ctx = this.context[0];
-
- if ( type === 'fromVisible' || type === 'toData' ) {
- return _fnVisibleToColumnIndex( ctx, idx );
- }
- else if ( type === 'fromData' || type === 'toVisible' ) {
- return _fnColumnIndexToVisible( ctx, idx );
- }
- }
- } );
-
- _api_register( 'column()', function ( selector, opts ) {
- return _selector_first( this.columns( selector, opts ) );
- } );
-
-
-
-
- var __cell_selector = function ( settings, selector, opts )
- {
- var data = settings.aoData;
- var rows = _selector_row_indexes( settings, opts );
- var cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );
- var allCells = $( [].concat.apply([], cells) );
- var row;
- var columns = settings.aoColumns.length;
- var a, i, ien, j, o, host;
-
- var run = function ( s ) {
- var fnSelector = typeof s === 'function';
-
- if ( s === null || s === undefined || fnSelector ) {
- // All cells and function selectors
- a = [];
-
- for ( i=0, ien=rows.length ; i<ien ; i++ ) {
- row = rows[i];
-
- for ( j=0 ; j<columns ; j++ ) {
- o = {
- row: row,
- column: j
- };
-
- if ( fnSelector ) {
- // Selector - function
- host = data[ row ];
-
- if ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {
- a.push( o );
- }
- }
- else {
- // Selector - all
- a.push( o );
- }
- }
- }
-
- return a;
- }
-
- // Selector - index
- if ( $.isPlainObject( s ) ) {
- return [s];
- }
-
- // Selector - jQuery filtered cells
- var jqResult = allCells
- .filter( s )
- .map( function (i, el) {
- return { // use a new object, in case someone changes the values
- row: el._DT_CellIndex.row,
- column: el._DT_CellIndex.column
- };
- } )
- .toArray();
-
- if ( jqResult.length || ! s.nodeName ) {
- return jqResult;
- }
-
- // Otherwise the selector is a node, and there is one last option - the
- // element might be a child of an element which has dt-row and dt-column
- // data attributes
- host = $(s).closest('*[data-dt-row]');
- return host.length ?
- [ {
- row: host.data('dt-row'),
- column: host.data('dt-column')
- } ] :
- [];
- };
-
- return _selector_run( 'cell', selector, run, settings, opts );
- };
-
-
-
-
- _api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {
- // Argument shifting
- if ( $.isPlainObject( rowSelector ) ) {
- // Indexes
- if ( rowSelector.row === undefined ) {
- // Selector options in first parameter
- opts = rowSelector;
- rowSelector = null;
- }
- else {
- // Cell index objects in first parameter
- opts = columnSelector;
- columnSelector = null;
- }
- }
- if ( $.isPlainObject( columnSelector ) ) {
- opts = columnSelector;
- columnSelector = null;
- }
-
- // Cell selector
- if ( columnSelector === null || columnSelector === undefined ) {
- return this.iterator( 'table', function ( settings ) {
- return __cell_selector( settings, rowSelector, _selector_opts( opts ) );
- } );
- }
-
- // Row + column selector
- var columns = this.columns( columnSelector, opts );
- var rows = this.rows( rowSelector, opts );
- var a, i, ien, j, jen;
-
- var cells = this.iterator( 'table', function ( settings, idx ) {
- a = [];
-
- for ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {
- for ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {
- a.push( {
- row: rows[idx][i],
- column: columns[idx][j]
- } );
- }
- }
-
- return a;
- }, 1 );
-
- $.extend( cells.selector, {
- cols: columnSelector,
- rows: rowSelector,
- opts: opts
- } );
-
- return cells;
- } );
-
-
- _api_registerPlural( 'cells().nodes()', 'cell().node()', function () {
- return this.iterator( 'cell', function ( settings, row, column ) {
- var data = settings.aoData[ row ];
-
- return data && data.anCells ?
- data.anCells[ column ] :
- undefined;
- }, 1 );
- } );
-
-
- _api_register( 'cells().data()', function () {
- return this.iterator( 'cell', function ( settings, row, column ) {
- return _fnGetCellData( settings, row, column );
- }, 1 );
- } );
-
-
- _api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {
- type = type === 'search' ? '_aFilterData' : '_aSortData';
-
- return this.iterator( 'cell', function ( settings, row, column ) {
- return settings.aoData[ row ][ type ][ column ];
- }, 1 );
- } );
-
-
- _api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {
- return this.iterator( 'cell', function ( settings, row, column ) {
- return _fnGetCellData( settings, row, column, type );
- }, 1 );
- } );
-
-
- _api_registerPlural( 'cells().indexes()', 'cell().index()', function () {
- return this.iterator( 'cell', function ( settings, row, column ) {
- return {
- row: row,
- column: column,
- columnVisible: _fnColumnIndexToVisible( settings, column )
- };
- }, 1 );
- } );
-
-
- _api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {
- return this.iterator( 'cell', function ( settings, row, column ) {
- _fnInvalidate( settings, row, src, column );
- } );
- } );
-
-
-
- _api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {
- return _selector_first( this.cells( rowSelector, columnSelector, opts ) );
- } );
-
-
- _api_register( 'cell().data()', function ( data ) {
- var ctx = this.context;
- var cell = this[0];
-
- if ( data === undefined ) {
- // Get
- return ctx.length && cell.length ?
- _fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :
- undefined;
- }
-
- // Set
- _fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );
- _fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );
-
- return this;
- } );
-
-
-
- /**
- * Get current ordering (sorting) that has been applied to the table.
- *
- * @returns {array} 2D array containing the sorting information for the first
- * table in the current context. Each element in the parent array represents
- * a column being sorted upon (i.e. multi-sorting with two columns would have
- * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is
- * the column index that the sorting condition applies to, the second is the
- * direction of the sort (`desc` or `asc`) and, optionally, the third is the
- * index of the sorting order from the `column.sorting` initialisation array.
- *//**
- * Set the ordering for the table.
- *
- * @param {integer} order Column index to sort upon.
- * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)
- * @returns {DataTables.Api} this
- *//**
- * Set the ordering for the table.
- *
- * @param {array} order 1D array of sorting information to be applied.
- * @param {array} [...] Optional additional sorting conditions
- * @returns {DataTables.Api} this
- *//**
- * Set the ordering for the table.
- *
- * @param {array} order 2D array of sorting information to be applied.
- * @returns {DataTables.Api} this
- */
- _api_register( 'order()', function ( order, dir ) {
- var ctx = this.context;
-
- if ( order === undefined ) {
- // get
- return ctx.length !== 0 ?
- ctx[0].aaSorting :
- undefined;
- }
-
- // set
- if ( typeof order === 'number' ) {
- // Simple column / direction passed in
- order = [ [ order, dir ] ];
- }
- else if ( ! $.isArray( order[0] ) ) {
- // Arguments passed in (list of 1D arrays)
- order = Array.prototype.slice.call( arguments );
- }
- // otherwise a 2D array was passed in
-
- return this.iterator( 'table', function ( settings ) {
- settings.aaSorting = order.slice();
- } );
- } );
-
-
- /**
- * Attach a sort listener to an element for a given column
- *
- * @param {node|jQuery|string} node Identifier for the element(s) to attach the
- * listener to. This can take the form of a single DOM node, a jQuery
- * collection of nodes or a jQuery selector which will identify the node(s).
- * @param {integer} column the column that a click on this node will sort on
- * @param {function} [callback] callback function when sort is run
- * @returns {DataTables.Api} this
- */
- _api_register( 'order.listener()', function ( node, column, callback ) {
- return this.iterator( 'table', function ( settings ) {
- _fnSortAttachListener( settings, node, column, callback );
- } );
- } );
-
-
- _api_register( 'order.fixed()', function ( set ) {
- if ( ! set ) {
- var ctx = this.context;
- var fixed = ctx.length ?
- ctx[0].aaSortingFixed :
- undefined;
-
- return $.isArray( fixed ) ?
- { pre: fixed } :
- fixed;
- }
-
- return this.iterator( 'table', function ( settings ) {
- settings.aaSortingFixed = $.extend( true, {}, set );
- } );
- } );
-
-
- // Order by the selected column(s)
- _api_register( [
- 'columns().order()',
- 'column().order()'
- ], function ( dir ) {
- var that = this;
-
- return this.iterator( 'table', function ( settings, i ) {
- var sort = [];
-
- $.each( that[i], function (j, col) {
- sort.push( [ col, dir ] );
- } );
-
- settings.aaSorting = sort;
- } );
- } );
-
-
-
- _api_register( 'search()', function ( input, regex, smart, caseInsen ) {
- var ctx = this.context;
-
- if ( input === undefined ) {
- // get
- return ctx.length !== 0 ?
- ctx[0].oPreviousSearch.sSearch :
- undefined;
- }
-
- // set
- return this.iterator( 'table', function ( settings ) {
- if ( ! settings.oFeatures.bFilter ) {
- return;
- }
-
- _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {
- "sSearch": input+"",
- "bRegex": regex === null ? false : regex,
- "bSmart": smart === null ? true : smart,
- "bCaseInsensitive": caseInsen === null ? true : caseInsen
- } ), 1 );
- } );
- } );
-
-
- _api_registerPlural(
- 'columns().search()',
- 'column().search()',
- function ( input, regex, smart, caseInsen ) {
- return this.iterator( 'column', function ( settings, column ) {
- var preSearch = settings.aoPreSearchCols;
-
- if ( input === undefined ) {
- // get
- return preSearch[ column ].sSearch;
- }
-
- // set
- if ( ! settings.oFeatures.bFilter ) {
- return;
- }
-
- $.extend( preSearch[ column ], {
- "sSearch": input+"",
- "bRegex": regex === null ? false : regex,
- "bSmart": smart === null ? true : smart,
- "bCaseInsensitive": caseInsen === null ? true : caseInsen
- } );
-
- _fnFilterComplete( settings, settings.oPreviousSearch, 1 );
- } );
- }
- );
-
- /*
- * State API methods
- */
-
- _api_register( 'state()', function () {
- return this.context.length ?
- this.context[0].oSavedState :
- null;
- } );
-
-
- _api_register( 'state.clear()', function () {
- return this.iterator( 'table', function ( settings ) {
- // Save an empty object
- settings.fnStateSaveCallback.call( settings.oInstance, settings, {} );
- } );
- } );
-
-
- _api_register( 'state.loaded()', function () {
- return this.context.length ?
- this.context[0].oLoadedState :
- null;
- } );
-
-
- _api_register( 'state.save()', function () {
- return this.iterator( 'table', function ( settings ) {
- _fnSaveState( settings );
- } );
- } );
-
-
-
- /**
- * Provide a common method for plug-ins to check the version of DataTables being
- * used, in order to ensure compatibility.
- *
- * @param {string} version Version string to check for, in the format "X.Y.Z".
- * Note that the formats "X" and "X.Y" are also acceptable.
- * @returns {boolean} true if this version of DataTables is greater or equal to
- * the required version, or false if this version of DataTales is not
- * suitable
- * @static
- * @dtopt API-Static
- *
- * @example
- * alert( $.fn.dataTable.versionCheck( '1.9.0' ) );
- */
- DataTable.versionCheck = DataTable.fnVersionCheck = function( version )
- {
- var aThis = DataTable.version.split('.');
- var aThat = version.split('.');
- var iThis, iThat;
-
- for ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {
- iThis = parseInt( aThis[i], 10 ) || 0;
- iThat = parseInt( aThat[i], 10 ) || 0;
-
- // Parts are the same, keep comparing
- if (iThis === iThat) {
- continue;
- }
-
- // Parts are different, return immediately
- return iThis > iThat;
- }
-
- return true;
- };
-
-
- /**
- * Check if a `<table>` node is a DataTable table already or not.
- *
- * @param {node|jquery|string} table Table node, jQuery object or jQuery
- * selector for the table to test. Note that if more than more than one
- * table is passed on, only the first will be checked
- * @returns {boolean} true the table given is a DataTable, or false otherwise
- * @static
- * @dtopt API-Static
- *
- * @example
- * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {
- * $('#example').dataTable();
- * }
- */
- DataTable.isDataTable = DataTable.fnIsDataTable = function ( table )
- {
- var t = $(table).get(0);
- var is = false;
-
- $.each( DataTable.settings, function (i, o) {
- var head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;
- var foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;
-
- if ( o.nTable === t || head === t || foot === t ) {
- is = true;
- }
- } );
-
- return is;
- };
-
-
- /**
- * Get all DataTable tables that have been initialised - optionally you can
- * select to get only currently visible tables.
- *
- * @param {boolean} [visible=false] Flag to indicate if you want all (default)
- * or visible tables only.
- * @returns {array} Array of `table` nodes (not DataTable instances) which are
- * DataTables
- * @static
- * @dtopt API-Static
- *
- * @example
- * $.each( $.fn.dataTable.tables(true), function () {
- * $(table).DataTable().columns.adjust();
- * } );
- */
- DataTable.tables = DataTable.fnTables = function ( visible )
- {
- var api = false;
-
- if ( $.isPlainObject( visible ) ) {
- api = visible.api;
- visible = visible.visible;
- }
-
- var a = $.map( DataTable.settings, function (o) {
- if ( !visible || (visible && $(o.nTable).is(':visible')) ) {
- return o.nTable;
- }
- } );
-
- return api ?
- new _Api( a ) :
- a;
- };
-
-
- /**
- * DataTables utility methods
- *
- * This namespace provides helper methods that DataTables uses internally to
- * create a DataTable, but which are not exclusively used only for DataTables.
- * These methods can be used by extension authors to save the duplication of
- * code.
- *
- * @namespace
- */
- DataTable.util = {
- /**
- * Throttle the calls to a function. Arguments and context are maintained
- * for the throttled function.
- *
- * @param {function} fn Function to be called
- * @param {integer} freq Call frequency in mS
- * @return {function} Wrapped function
- */
- throttle: _fnThrottle,
-
-
- /**
- * Escape a string such that it can be used in a regular expression
- *
- * @param {string} sVal string to escape
- * @returns {string} escaped string
- */
- escapeRegex: _fnEscapeRegex
- };
-
-
- /**
- * Convert from camel case parameters to Hungarian notation. This is made public
- * for the extensions to provide the same ability as DataTables core to accept
- * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase
- * parameters.
- *
- * @param {object} src The model object which holds all parameters that can be
- * mapped.
- * @param {object} user The object to convert from camel case to Hungarian.
- * @param {boolean} force When set to `true`, properties which already have a
- * Hungarian value in the `user` object will be overwritten. Otherwise they
- * won't be.
- */
- DataTable.camelToHungarian = _fnCamelToHungarian;
-
-
-
- /**
- *
- */
- _api_register( '$()', function ( selector, opts ) {
- var
- rows = this.rows( opts ).nodes(), // Get all rows
- jqRows = $(rows);
-
- return $( [].concat(
- jqRows.filter( selector ).toArray(),
- jqRows.find( selector ).toArray()
- ) );
- } );
-
-
- // jQuery functions to operate on the tables
- $.each( [ 'on', 'one', 'off' ], function (i, key) {
- _api_register( key+'()', function ( /* event, handler */ ) {
- var args = Array.prototype.slice.call(arguments);
-
- // Add the `dt` namespace automatically if it isn't already present
- if ( ! args[0].match(/\.dt\b/) ) {
- args[0] += '.dt';
- }
-
- var inst = $( this.tables().nodes() );
- inst[key].apply( inst, args );
- return this;
- } );
- } );
-
-
- _api_register( 'clear()', function () {
- return this.iterator( 'table', function ( settings ) {
- _fnClearTable( settings );
- } );
- } );
-
-
- _api_register( 'settings()', function () {
- return new _Api( this.context, this.context );
- } );
-
-
- _api_register( 'init()', function () {
- var ctx = this.context;
- return ctx.length ? ctx[0].oInit : null;
- } );
-
-
- _api_register( 'data()', function () {
- return this.iterator( 'table', function ( settings ) {
- return _pluck( settings.aoData, '_aData' );
- } ).flatten();
- } );
-
-
- _api_register( 'destroy()', function ( remove ) {
- remove = remove || false;
-
- return this.iterator( 'table', function ( settings ) {
- var orig = settings.nTableWrapper.parentNode;
- var classes = settings.oClasses;
- var table = settings.nTable;
- var tbody = settings.nTBody;
- var thead = settings.nTHead;
- var tfoot = settings.nTFoot;
- var jqTable = $(table);
- var jqTbody = $(tbody);
- var jqWrapper = $(settings.nTableWrapper);
- var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
- var i, ien;
-
- // Flag to note that the table is currently being destroyed - no action
- // should be taken
- settings.bDestroying = true;
-
- // Fire off the destroy callbacks for plug-ins etc
- _fnCallbackFire( settings, "aoDestroyCallback", "destroy", [settings] );
-
- // If not being removed from the document, make all columns visible
- if ( ! remove ) {
- new _Api( settings ).columns().visible( true );
- }
-
- // Blitz all `DT` namespaced events (these are internal events, the
- // lowercase, `dt` events are user subscribed and they are responsible
- // for removing them
- jqWrapper.unbind('.DT').find(':not(tbody *)').unbind('.DT');
- $(window).unbind('.DT-'+settings.sInstance);
-
- // When scrolling we had to break the table up - restore it
- if ( table != thead.parentNode ) {
- jqTable.children('thead').detach();
- jqTable.append( thead );
- }
-
- if ( tfoot && table != tfoot.parentNode ) {
- jqTable.children('tfoot').detach();
- jqTable.append( tfoot );
- }
-
- settings.aaSorting = [];
- settings.aaSortingFixed = [];
- _fnSortingClasses( settings );
-
- $( rows ).removeClass( settings.asStripeClasses.join(' ') );
-
- $('th, td', thead).removeClass( classes.sSortable+' '+
- classes.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone
- );
-
- if ( settings.bJUI ) {
- $('th span.'+classes.sSortIcon+ ', td span.'+classes.sSortIcon, thead).detach();
- $('th, td', thead).each( function () {
- var wrapper = $('div.'+classes.sSortJUIWrapper, this);
- $(this).append( wrapper.contents() );
- wrapper.detach();
- } );
- }
-
- // Add the TR elements back into the table in their original order
- jqTbody.children().detach();
- jqTbody.append( rows );
-
- // Remove the DataTables generated nodes, events and classes
- var removedMethod = remove ? 'remove' : 'detach';
- jqTable[ removedMethod ]();
- jqWrapper[ removedMethod ]();
-
- // If we need to reattach the table to the document
- if ( ! remove && orig ) {
- // insertBefore acts like appendChild if !arg[1]
- orig.insertBefore( table, settings.nTableReinsertBefore );
-
- // Restore the width of the original table - was read from the style property,
- // so we can restore directly to that
- jqTable
- .css( 'width', settings.sDestroyWidth )
- .removeClass( classes.sTable );
-
- // If the were originally stripe classes - then we add them back here.
- // Note this is not fool proof (for example if not all rows had stripe
- // classes - but it's a good effort without getting carried away
- ien = settings.asDestroyStripes.length;
-
- if ( ien ) {
- jqTbody.children().each( function (i) {
- $(this).addClass( settings.asDestroyStripes[i % ien] );
- } );
- }
- }
-
- /* Remove the settings object from the settings array */
- var idx = $.inArray( settings, DataTable.settings );
- if ( idx !== -1 ) {
- DataTable.settings.splice( idx, 1 );
- }
- } );
- } );
-
-
- // Add the `every()` method for rows, columns and cells in a compact form
- $.each( [ 'column', 'row', 'cell' ], function ( i, type ) {
- _api_register( type+'s().every()', function ( fn ) {
- var opts = this.selector.opts;
- var api = this;
-
- return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {
- // Rows and columns:
- // arg1 - index
- // arg2 - table counter
- // arg3 - loop counter
- // arg4 - undefined
- // Cells:
- // arg1 - row index
- // arg2 - column index
- // arg3 - table counter
- // arg4 - loop counter
- fn.call(
- api[ type ](
- arg1,
- type==='cell' ? arg2 : opts,
- type==='cell' ? opts : undefined
- ),
- arg1, arg2, arg3, arg4
- );
- } );
- } );
- } );
-
-
- // i18n method for extensions to be able to use the language object from the
- // DataTable
- _api_register( 'i18n()', function ( token, def, plural ) {
- var ctx = this.context[0];
- var resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );
-
- if ( resolved === undefined ) {
- resolved = def;
- }
-
- if ( plural !== undefined && $.isPlainObject( resolved ) ) {
- resolved = resolved[ plural ] !== undefined ?
- resolved[ plural ] :
- resolved._;
- }
-
- return resolved.replace( '%d', plural ); // nb: plural might be undefined,
- } );
-
- /**
- * Version string for plug-ins to check compatibility. Allowed format is
- * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used
- * only for non-release builds. See http://semver.org/ for more information.
- * @member
- * @type string
- * @default Version number
- */
- DataTable.version = "1.10.11";
-
- /**
- * Private data store, containing all of the settings objects that are
- * created for the tables on a given page.
- *
- * Note that the `DataTable.settings` object is aliased to
- * `jQuery.fn.dataTableExt` through which it may be accessed and
- * manipulated, or `jQuery.fn.dataTable.settings`.
- * @member
- * @type array
- * @default []
- * @private
- */
- DataTable.settings = [];
-
- /**
- * Object models container, for the various models that DataTables has
- * available to it. These models define the objects that are used to hold
- * the active state and configuration of the table.
- * @namespace
- */
- DataTable.models = {};
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * search information for the global filter and individual column filters.
- * @namespace
- */
- DataTable.models.oSearch = {
- /**
- * Flag to indicate if the filtering should be case insensitive or not
- * @type boolean
- * @default true
- */
- "bCaseInsensitive": true,
-
- /**
- * Applied search term
- * @type string
- * @default <i>Empty string</i>
- */
- "sSearch": "",
-
- /**
- * Flag to indicate if the search term should be interpreted as a
- * regular expression (true) or not (false) and therefore and special
- * regex characters escaped.
- * @type boolean
- * @default false
- */
- "bRegex": false,
-
- /**
- * Flag to indicate if DataTables is to use its smart filtering or not.
- * @type boolean
- * @default true
- */
- "bSmart": true
- };
-
-
-
-
- /**
- * Template object for the way in which DataTables holds information about
- * each individual row. This is the object format used for the settings
- * aoData array.
- * @namespace
- */
- DataTable.models.oRow = {
- /**
- * TR element for the row
- * @type node
- * @default null
- */
- "nTr": null,
-
- /**
- * Array of TD elements for each row. This is null until the row has been
- * created.
- * @type array nodes
- * @default []
- */
- "anCells": null,
-
- /**
- * Data object from the original data source for the row. This is either
- * an array if using the traditional form of DataTables, or an object if
- * using mData options. The exact type will depend on the passed in
- * data from the data source, or will be an array if using DOM a data
- * source.
- * @type array|object
- * @default []
- */
- "_aData": [],
-
- /**
- * Sorting data cache - this array is ostensibly the same length as the
- * number of columns (although each index is generated only as it is
- * needed), and holds the data that is used for sorting each column in the
- * row. We do this cache generation at the start of the sort in order that
- * the formatting of the sort data need be done only once for each cell
- * per sort. This array should not be read from or written to by anything
- * other than the master sorting methods.
- * @type array
- * @default null
- * @private
- */
- "_aSortData": null,
-
- /**
- * Per cell filtering data cache. As per the sort data cache, used to
- * increase the performance of the filtering in DataTables
- * @type array
- * @default null
- * @private
- */
- "_aFilterData": null,
-
- /**
- * Filtering data cache. This is the same as the cell filtering cache, but
- * in this case a string rather than an array. This is easily computed with
- * a join on `_aFilterData`, but is provided as a cache so the join isn't
- * needed on every search (memory traded for performance)
- * @type array
- * @default null
- * @private
- */
- "_sFilterRow": null,
-
- /**
- * Cache of the class name that DataTables has applied to the row, so we
- * can quickly look at this variable rather than needing to do a DOM check
- * on className for the nTr property.
- * @type string
- * @default <i>Empty string</i>
- * @private
- */
- "_sRowStripe": "",
-
- /**
- * Denote if the original data source was from the DOM, or the data source
- * object. This is used for invalidating data, so DataTables can
- * automatically read data from the original source, unless uninstructed
- * otherwise.
- * @type string
- * @default null
- * @private
- */
- "src": null,
-
- /**
- * Index in the aoData array. This saves an indexOf lookup when we have the
- * object, but want to know the index
- * @type integer
- * @default -1
- * @private
- */
- "idx": -1
- };
-
-
- /**
- * Template object for the column information object in DataTables. This object
- * is held in the settings aoColumns array and contains all the information that
- * DataTables needs about each individual column.
- *
- * Note that this object is related to {@link DataTable.defaults.column}
- * but this one is the internal data store for DataTables's cache of columns.
- * It should NOT be manipulated outside of DataTables. Any configuration should
- * be done through the initialisation options.
- * @namespace
- */
- DataTable.models.oColumn = {
- /**
- * Column index. This could be worked out on-the-fly with $.inArray, but it
- * is faster to just hold it as a variable
- * @type integer
- * @default null
- */
- "idx": null,
-
- /**
- * A list of the columns that sorting should occur on when this column
- * is sorted. That this property is an array allows multi-column sorting
- * to be defined for a column (for example first name / last name columns
- * would benefit from this). The values are integers pointing to the
- * columns to be sorted on (typically it will be a single integer pointing
- * at itself, but that doesn't need to be the case).
- * @type array
- */
- "aDataSort": null,
-
- /**
- * Define the sorting directions that are applied to the column, in sequence
- * as the column is repeatedly sorted upon - i.e. the first value is used
- * as the sorting direction when the column if first sorted (clicked on).
- * Sort it again (click again) and it will move on to the next index.
- * Repeat until loop.
- * @type array
- */
- "asSorting": null,
-
- /**
- * Flag to indicate if the column is searchable, and thus should be included
- * in the filtering or not.
- * @type boolean
- */
- "bSearchable": null,
-
- /**
- * Flag to indicate if the column is sortable or not.
- * @type boolean
- */
- "bSortable": null,
-
- /**
- * Flag to indicate if the column is currently visible in the table or not
- * @type boolean
- */
- "bVisible": null,
-
- /**
- * Store for manual type assignment using the `column.type` option. This
- * is held in store so we can manipulate the column's `sType` property.
- * @type string
- * @default null
- * @private
- */
- "_sManualType": null,
-
- /**
- * Flag to indicate if HTML5 data attributes should be used as the data
- * source for filtering or sorting. True is either are.
- * @type boolean
- * @default false
- * @private
- */
- "_bAttrSrc": false,
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} nTd The TD node that has been created
- * @param {*} sData The Data for the cell
- * @param {array|object} oData The data for the whole row
- * @param {int} iRow The row index for the aoData data store
- * @default null
- */
- "fnCreatedCell": null,
-
- /**
- * Function to get data from a cell in a column. You should <b>never</b>
- * access data directly through _aData internally in DataTables - always use
- * the method attached to this property. It allows mData to function as
- * required. This function is automatically assigned by the column
- * initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {string} sSpecific The specific data type you want to get -
- * 'display', 'type' 'filter' 'sort'
- * @returns {*} The data for the cell from the given row's data
- * @default null
- */
- "fnGetData": null,
-
- /**
- * Function to set data for a cell in the column. You should <b>never</b>
- * set the data directly to _aData internally in DataTables - always use
- * this method. It allows mData to function as required. This function
- * is automatically assigned by the column initialisation method
- * @type function
- * @param {array|object} oData The data array/object for the array
- * (i.e. aoData[]._aData)
- * @param {*} sValue Value to set
- * @default null
- */
- "fnSetData": null,
-
- /**
- * Property to read the value for the cells in the column from the data
- * source array / object. If null, then the default content is used, if a
- * function is given then the return from the function is used.
- * @type function|int|string|null
- * @default null
- */
- "mData": null,
-
- /**
- * Partner property to mData which is used (only when defined) to get
- * the data - i.e. it is basically the same as mData, but without the
- * 'set' option, and also the data fed to it is the result from mData.
- * This is the rendering method to match the data method of mData.
- * @type function|int|string|null
- * @default null
- */
- "mRender": null,
-
- /**
- * Unique header TH/TD element for this column - this is what the sorting
- * listener is attached to (if sorting is enabled.)
- * @type node
- * @default null
- */
- "nTh": null,
-
- /**
- * Unique footer TH/TD element for this column (if there is one). Not used
- * in DataTables as such, but can be used for plug-ins to reference the
- * footer for each column.
- * @type node
- * @default null
- */
- "nTf": null,
-
- /**
- * The class to apply to all TD elements in the table's TBODY for the column
- * @type string
- * @default null
- */
- "sClass": null,
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * @type string
- */
- "sContentPadding": null,
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because mData
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- */
- "sDefaultContent": null,
-
- /**
- * Name for the column, allowing reference to the column by name as well as
- * by index (needs a lookup to work by name).
- * @type string
- */
- "sName": null,
-
- /**
- * Custom sorting data type - defines which of the available plug-ins in
- * afnSortData the custom sorting will use - if any is defined.
- * @type string
- * @default std
- */
- "sSortDataType": 'std',
-
- /**
- * Class to be applied to the header element when sorting on this column
- * @type string
- * @default null
- */
- "sSortingClass": null,
-
- /**
- * Class to be applied to the header element when sorting on this column -
- * when jQuery UI theming is used.
- * @type string
- * @default null
- */
- "sSortingClassJUI": null,
-
- /**
- * Title of the column - what is seen in the TH element (nTh).
- * @type string
- */
- "sTitle": null,
-
- /**
- * Column sorting and filtering type
- * @type string
- * @default null
- */
- "sType": null,
-
- /**
- * Width of the column
- * @type string
- * @default null
- */
- "sWidth": null,
-
- /**
- * Width of the column when it was first "encountered"
- * @type string
- * @default null
- */
- "sWidthOrig": null
- };
-
-
- /*
- * Developer note: The properties of the object below are given in Hungarian
- * notation, that was used as the interface for DataTables prior to v1.10, however
- * from v1.10 onwards the primary interface is camel case. In order to avoid
- * breaking backwards compatibility utterly with this change, the Hungarian
- * version is still, internally the primary interface, but is is not documented
- * - hence the @name tags in each doc comment. This allows a Javascript function
- * to create a map from Hungarian notation to camel case (going the other direction
- * would require each property to be listed, which would at around 3K to the size
- * of DataTables, while this method is about a 0.5K hit.
- *
- * Ultimately this does pave the way for Hungarian notation to be dropped
- * completely, but that is a massive amount of work and will break current
- * installs (therefore is on-hold until v2).
- */
-
- /**
- * Initialisation options that can be given to DataTables at initialisation
- * time.
- * @namespace
- */
- DataTable.defaults = {
- /**
- * An array of data to use for the table, passed in at initialisation which
- * will be used in preference to any data which is already in the DOM. This is
- * particularly useful for constructing tables purely in Javascript, for
- * example with a custom Ajax call.
- * @type array
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.data
- *
- * @example
- * // Using a 2D array data source
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "data": [
- * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],
- * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],
- * ],
- * "columns": [
- * { "title": "Engine" },
- * { "title": "Browser" },
- * { "title": "Platform" },
- * { "title": "Version" },
- * { "title": "Grade" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using an array of objects as a data source (`data`)
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "data": [
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 4.0",
- * "platform": "Win 95+",
- * "version": 4,
- * "grade": "X"
- * },
- * {
- * "engine": "Trident",
- * "browser": "Internet Explorer 5.0",
- * "platform": "Win 95+",
- * "version": 5,
- * "grade": "C"
- * }
- * ],
- * "columns": [
- * { "title": "Engine", "data": "engine" },
- * { "title": "Browser", "data": "browser" },
- * { "title": "Platform", "data": "platform" },
- * { "title": "Version", "data": "version" },
- * { "title": "Grade", "data": "grade" }
- * ]
- * } );
- * } );
- */
- "aaData": null,
-
-
- /**
- * If ordering is enabled, then DataTables will perform a first pass sort on
- * initialisation. You can define which column(s) the sort is performed
- * upon, and the sorting direction, with this variable. The `sorting` array
- * should contain an array for each column to be sorted initially containing
- * the column's index and a direction string ('asc' or 'desc').
- * @type array
- * @default [[0,'asc']]
- *
- * @dtopt Option
- * @name DataTable.defaults.order
- *
- * @example
- * // Sort by 3rd column first, and then 4th column
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "order": [[2,'asc'], [3,'desc']]
- * } );
- * } );
- *
- * // No initial sorting
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "order": []
- * } );
- * } );
- */
- "aaSorting": [[0,'asc']],
-
-
- /**
- * This parameter is basically identical to the `sorting` parameter, but
- * cannot be overridden by user interaction with the table. What this means
- * is that you could have a column (visible or hidden) which the sorting
- * will always be forced on first - any sorting after that (from the user)
- * will then be performed as required. This can be useful for grouping rows
- * together.
- * @type array
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.orderFixed
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "orderFixed": [[0,'asc']]
- * } );
- * } )
- */
- "aaSortingFixed": [],
-
-
- /**
- * DataTables can be instructed to load data to display in the table from a
- * Ajax source. This option defines how that Ajax call is made and where to.
- *
- * The `ajax` property has three different modes of operation, depending on
- * how it is defined. These are:
- *
- * * `string` - Set the URL from where the data should be loaded from.
- * * `object` - Define properties for `jQuery.ajax`.
- * * `function` - Custom data get function
- *
- * `string`
- * --------
- *
- * As a string, the `ajax` property simply defines the URL from which
- * DataTables will load data.
- *
- * `object`
- * --------
- *
- * As an object, the parameters in the object are passed to
- * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control
- * of the Ajax request. DataTables has a number of default parameters which
- * you can override using this option. Please refer to the jQuery
- * documentation for a full description of the options available, although
- * the following parameters provide additional options in DataTables or
- * require special consideration:
- *
- * * `data` - As with jQuery, `data` can be provided as an object, but it
- * can also be used as a function to manipulate the data DataTables sends
- * to the server. The function takes a single parameter, an object of
- * parameters with the values that DataTables has readied for sending. An
- * object may be returned which will be merged into the DataTables
- * defaults, or you can add the items to the object that was passed in and
- * not return anything from the function. This supersedes `fnServerParams`
- * from DataTables 1.9-.
- *
- * * `dataSrc` - By default DataTables will look for the property `data` (or
- * `aaData` for compatibility with DataTables 1.9-) when obtaining data
- * from an Ajax source or for server-side processing - this parameter
- * allows that property to be changed. You can use Javascript dotted
- * object notation to get a data source for multiple levels of nesting, or
- * it my be used as a function. As a function it takes a single parameter,
- * the JSON returned from the server, which can be manipulated as
- * required, with the returned value being that used by DataTables as the
- * data source for the table. This supersedes `sAjaxDataProp` from
- * DataTables 1.9-.
- *
- * * `success` - Should not be overridden it is used internally in
- * DataTables. To manipulate / transform the data returned by the server
- * use `ajax.dataSrc`, or use `ajax` as a function (see below).
- *
- * `function`
- * ----------
- *
- * As a function, making the Ajax call is left up to yourself allowing
- * complete control of the Ajax request. Indeed, if desired, a method other
- * than Ajax could be used to obtain the required data, such as Web storage
- * or an AIR database.
- *
- * The function is given four parameters and no return is required. The
- * parameters are:
- *
- * 1. _object_ - Data to send to the server
- * 2. _function_ - Callback function that must be executed when the required
- * data has been obtained. That data should be passed into the callback
- * as the only parameter
- * 3. _object_ - DataTables settings object for the table
- *
- * Note that this supersedes `fnServerData` from DataTables 1.9-.
- *
- * @type string|object|function
- * @default null
- *
- * @dtopt Option
- * @name DataTable.defaults.ajax
- * @since 1.10.0
- *
- * @example
- * // Get JSON data from a file via Ajax.
- * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).
- * $('#example').dataTable( {
- * "ajax": "data.json"
- * } );
- *
- * @example
- * // Get JSON data from a file via Ajax, using `dataSrc` to change
- * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": "tableData"
- * }
- * } );
- *
- * @example
- * // Get JSON data from a file via Ajax, using `dataSrc` to read data
- * // from a plain array rather than an array in an object
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": ""
- * }
- * } );
- *
- * @example
- * // Manipulate the data returned from the server - add a link to data
- * // (note this can, should, be done using `render` for the column - this
- * // is just a simple example of how the data can be manipulated).
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "dataSrc": function ( json ) {
- * for ( var i=0, ien=json.length ; i<ien ; i++ ) {
- * json[i][0] = '<a href="/message/'+json[i][0]+'>View message</a>';
- * }
- * return json;
- * }
- * }
- * } );
- *
- * @example
- * // Add data to the request
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "data": function ( d ) {
- * return {
- * "extra_search": $('#extra').val()
- * };
- * }
- * }
- * } );
- *
- * @example
- * // Send request as POST
- * $('#example').dataTable( {
- * "ajax": {
- * "url": "data.json",
- * "type": "POST"
- * }
- * } );
- *
- * @example
- * // Get the data from localStorage (could interface with a form for
- * // adding, editing and removing rows).
- * $('#example').dataTable( {
- * "ajax": function (data, callback, settings) {
- * callback(
- * JSON.parse( localStorage.getItem('dataTablesData') )
- * );
- * }
- * } );
- */
- "ajax": null,
-
-
- /**
- * This parameter allows you to readily specify the entries in the length drop
- * down menu that DataTables shows when pagination is enabled. It can be
- * either a 1D array of options which will be used for both the displayed
- * option and the value, or a 2D array which will use the array in the first
- * position as the value, and the array in the second position as the
- * displayed options (useful for language strings such as 'All').
- *
- * Note that the `pageLength` property will be automatically set to the
- * first value given in this array, unless `pageLength` is also provided.
- * @type array
- * @default [ 10, 25, 50, 100 ]
- *
- * @dtopt Option
- * @name DataTable.defaults.lengthMenu
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
- * } );
- * } );
- */
- "aLengthMenu": [ 10, 25, 50, 100 ],
-
-
- /**
- * The `columns` option in the initialisation parameter allows you to define
- * details about the way individual columns behave. For a full list of
- * column options that can be set, please see
- * {@link DataTable.defaults.column}. Note that if you use `columns` to
- * define your columns, you must have an entry in the array for every single
- * column that you have in your table (these can be null if you don't which
- * to specify any options).
- * @member
- *
- * @name DataTable.defaults.column
- */
- "aoColumns": null,
-
- /**
- * Very similar to `columns`, `columnDefs` allows you to target a specific
- * column, multiple columns, or all columns, using the `targets` property of
- * each object in the array. This allows great flexibility when creating
- * tables, as the `columnDefs` arrays can be of any length, targeting the
- * columns you specifically want. `columnDefs` may use any of the column
- * options available: {@link DataTable.defaults.column}, but it _must_
- * have `targets` defined in each object in the array. Values in the `targets`
- * array may be:
- * <ul>
- * <li>a string - class name will be matched on the TH for the column</li>
- * <li>0 or a positive integer - column index counting from the left</li>
- * <li>a negative integer - column index counting from the right</li>
- * <li>the string "_all" - all columns (i.e. assign a default)</li>
- * </ul>
- * @member
- *
- * @name DataTable.defaults.columnDefs
- */
- "aoColumnDefs": null,
-
-
- /**
- * Basically the same as `search`, this parameter defines the individual column
- * filtering state at initialisation time. The array must be of the same size
- * as the number of columns, and each element be an object with the parameters
- * `search` and `escapeRegex` (the latter is optional). 'null' is also
- * accepted and the default will be used.
- * @type array
- * @default []
- *
- * @dtopt Option
- * @name DataTable.defaults.searchCols
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "searchCols": [
- * null,
- * { "search": "My filter" },
- * null,
- * { "search": "^[0-9]", "escapeRegex": false }
- * ]
- * } );
- * } )
- */
- "aoSearchCols": [],
-
-
- /**
- * An array of CSS classes that should be applied to displayed rows. This
- * array may be of any length, and DataTables will apply each class
- * sequentially, looping when required.
- * @type array
- * @default null <i>Will take the values determined by the `oClasses.stripe*`
- * options</i>
- *
- * @dtopt Option
- * @name DataTable.defaults.stripeClasses
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stripeClasses": [ 'strip1', 'strip2', 'strip3' ]
- * } );
- * } )
- */
- "asStripeClasses": null,
-
-
- /**
- * Enable or disable automatic column width calculation. This can be disabled
- * as an optimisation (it takes some time to calculate the widths) if the
- * tables widths are passed in using `columns`.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.autoWidth
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "autoWidth": false
- * } );
- * } );
- */
- "bAutoWidth": true,
-
-
- /**
- * Deferred rendering can provide DataTables with a huge speed boost when you
- * are using an Ajax or JS data source for the table. This option, when set to
- * true, will cause DataTables to defer the creation of the table elements for
- * each row until they are needed for a draw - saving a significant amount of
- * time.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.deferRender
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajax": "sources/arrays.txt",
- * "deferRender": true
- * } );
- * } );
- */
- "bDeferRender": false,
-
-
- /**
- * Replace a DataTable which matches the given selector and replace it with
- * one which has the properties of the new initialisation object passed. If no
- * table matches the selector, then the new DataTable will be constructed as
- * per normal.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.destroy
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "srollY": "200px",
- * "paginate": false
- * } );
- *
- * // Some time later....
- * $('#example').dataTable( {
- * "filter": false,
- * "destroy": true
- * } );
- * } );
- */
- "bDestroy": false,
-
-
- /**
- * Enable or disable filtering of data. Filtering in DataTables is "smart" in
- * that it allows the end user to input multiple words (space separated) and
- * will match a row containing those words, even if not in the order that was
- * specified (this allow matching across multiple columns). Note that if you
- * wish to use filtering in DataTables this must remain 'true' - to remove the
- * default filtering input box and retain filtering abilities, please use
- * {@link DataTable.defaults.dom}.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.searching
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "searching": false
- * } );
- * } );
- */
- "bFilter": true,
-
-
- /**
- * Enable or disable the table information display. This shows information
- * about the data that is currently visible on the page, including information
- * about filtered data if that action is being performed.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.info
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "info": false
- * } );
- * } );
- */
- "bInfo": true,
-
-
- /**
- * Enable jQuery UI ThemeRoller support (required as ThemeRoller requires some
- * slightly different and additional mark-up from what DataTables has
- * traditionally used).
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.jQueryUI
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "jQueryUI": true
- * } );
- * } );
- */
- "bJQueryUI": false,
-
-
- /**
- * Allows the end user to select the size of a formatted page from a select
- * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.lengthChange
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "lengthChange": false
- * } );
- * } );
- */
- "bLengthChange": true,
-
-
- /**
- * Enable or disable pagination.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.paging
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "paging": false
- * } );
- * } );
- */
- "bPaginate": true,
-
-
- /**
- * Enable or disable the display of a 'processing' indicator when the table is
- * being processed (e.g. a sort). This is particularly useful for tables with
- * large amounts of data where it can take a noticeable amount of time to sort
- * the entries.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.processing
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "processing": true
- * } );
- * } );
- */
- "bProcessing": false,
-
-
- /**
- * Retrieve the DataTables object for the given selector. Note that if the
- * table has already been initialised, this parameter will cause DataTables
- * to simply return the object that has already been set up - it will not take
- * account of any changes you might have made to the initialisation object
- * passed to DataTables (setting this parameter to true is an acknowledgement
- * that you understand this). `destroy` can be used to reinitialise a table if
- * you need.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.retrieve
- *
- * @example
- * $(document).ready( function() {
- * initTable();
- * tableActions();
- * } );
- *
- * function initTable ()
- * {
- * return $('#example').dataTable( {
- * "scrollY": "200px",
- * "paginate": false,
- * "retrieve": true
- * } );
- * }
- *
- * function tableActions ()
- * {
- * var table = initTable();
- * // perform API operations with oTable
- * }
- */
- "bRetrieve": false,
-
-
- /**
- * When vertical (y) scrolling is enabled, DataTables will force the height of
- * the table's viewport to the given height at all times (useful for layout).
- * However, this can look odd when filtering data down to a small data set,
- * and the footer is left "floating" further down. This parameter (when
- * enabled) will cause DataTables to collapse the table's viewport down when
- * the result set will fit within the given Y height.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.scrollCollapse
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollY": "200",
- * "scrollCollapse": true
- * } );
- * } );
- */
- "bScrollCollapse": false,
-
-
- /**
- * Configure DataTables to use server-side processing. Note that the
- * `ajax` parameter must also be given in order to give DataTables a
- * source to obtain the required data for each draw.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @dtopt Server-side
- * @name DataTable.defaults.serverSide
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "xhr.php"
- * } );
- * } );
- */
- "bServerSide": false,
-
-
- /**
- * Enable or disable sorting of columns. Sorting of individual columns can be
- * disabled by the `sortable` option for each column.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.ordering
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "ordering": false
- * } );
- * } );
- */
- "bSort": true,
-
-
- /**
- * Enable or display DataTables' ability to sort multiple columns at the
- * same time (activated by shift-click by the user).
- * @type boolean
- * @default true
- *
- * @dtopt Options
- * @name DataTable.defaults.orderMulti
- *
- * @example
- * // Disable multiple column sorting ability
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "orderMulti": false
- * } );
- * } );
- */
- "bSortMulti": true,
-
-
- /**
- * Allows control over whether DataTables should use the top (true) unique
- * cell that is found for a single column, or the bottom (false - default).
- * This is useful when using complex headers.
- * @type boolean
- * @default false
- *
- * @dtopt Options
- * @name DataTable.defaults.orderCellsTop
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "orderCellsTop": true
- * } );
- * } );
- */
- "bSortCellsTop": false,
-
-
- /**
- * Enable or disable the addition of the classes `sorting\_1`, `sorting\_2` and
- * `sorting\_3` to the columns which are currently being sorted on. This is
- * presented as a feature switch as it can increase processing time (while
- * classes are removed and added) so for large data sets you might want to
- * turn this off.
- * @type boolean
- * @default true
- *
- * @dtopt Features
- * @name DataTable.defaults.orderClasses
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "orderClasses": false
- * } );
- * } );
- */
- "bSortClasses": true,
-
-
- /**
- * Enable or disable state saving. When enabled HTML5 `localStorage` will be
- * used to save table display information such as pagination information,
- * display length, filtering and sorting. As such when the end user reloads
- * the page the display display will match what thy had previously set up.
- *
- * Due to the use of `localStorage` the default state saving is not supported
- * in IE6 or 7. If state saving is required in those browsers, use
- * `stateSaveCallback` to provide a storage solution such as cookies.
- * @type boolean
- * @default false
- *
- * @dtopt Features
- * @name DataTable.defaults.stateSave
- *
- * @example
- * $(document).ready( function () {
- * $('#example').dataTable( {
- * "stateSave": true
- * } );
- * } );
- */
- "bStateSave": false,
-
-
- /**
- * This function is called when a TR element is created (and all TD child
- * elements have been inserted), or registered if using a DOM source, allowing
- * manipulation of the TR element (adding classes etc).
- * @type function
- * @param {node} row "TR" element for the current row
- * @param {array} data Raw data array for this row
- * @param {int} dataIndex The index of this row in the internal aoData array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.createdRow
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "createdRow": function( row, data, dataIndex ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( data[4] == "A" )
- * {
- * $('td:eq(4)', row).html( '<b>A</b>' );
- * }
- * }
- * } );
- * } );
- */
- "fnCreatedRow": null,
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify any aspect you want about the created DOM.
- * @type function
- * @param {object} settings DataTables settings object
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.drawCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "drawCallback": function( settings ) {
- * alert( 'DataTables has redrawn the table' );
- * }
- * } );
- * } );
- */
- "fnDrawCallback": null,
-
-
- /**
- * Identical to fnHeaderCallback() but for the table footer this function
- * allows you to modify the table footer on every 'draw' event.
- * @type function
- * @param {node} foot "TR" element for the footer
- * @param {array} data Full table data (as derived from the original HTML)
- * @param {int} start Index for the current display starting point in the
- * display array
- * @param {int} end Index for the current display ending point in the
- * display array
- * @param {array int} display Index array to translate the visual position
- * to the full data array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.footerCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "footerCallback": function( tfoot, data, start, end, display ) {
- * tfoot.getElementsByTagName('th')[0].innerHTML = "Starting index is "+start;
- * }
- * } );
- * } )
- */
- "fnFooterCallback": null,
-
-
- /**
- * When rendering large numbers in the information element for the table
- * (i.e. "Showing 1 to 10 of 57 entries") DataTables will render large numbers
- * to have a comma separator for the 'thousands' units (e.g. 1 million is
- * rendered as "1,000,000") to help readability for the end user. This
- * function will override the default method DataTables uses.
- * @type function
- * @member
- * @param {int} toFormat number to be formatted
- * @returns {string} formatted string for DataTables to show the number
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.formatNumber
- *
- * @example
- * // Format a number using a single quote for the separator (note that
- * // this can also be done with the language.thousands option)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "formatNumber": function ( toFormat ) {
- * return toFormat.toString().replace(
- * /\B(?=(\d{3})+(?!\d))/g, "'"
- * );
- * };
- * } );
- * } );
- */
- "fnFormatNumber": function ( toFormat ) {
- return toFormat.toString().replace(
- /\B(?=(\d{3})+(?!\d))/g,
- this.oLanguage.sThousands
- );
- },
-
-
- /**
- * This function is called on every 'draw' event, and allows you to
- * dynamically modify the header row. This can be used to calculate and
- * display useful information about the table.
- * @type function
- * @param {node} head "TR" element for the header
- * @param {array} data Full table data (as derived from the original HTML)
- * @param {int} start Index for the current display starting point in the
- * display array
- * @param {int} end Index for the current display ending point in the
- * display array
- * @param {array int} display Index array to translate the visual position
- * to the full data array
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.headerCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "fheaderCallback": function( head, data, start, end, display ) {
- * head.getElementsByTagName('th')[0].innerHTML = "Displaying "+(end-start)+" records";
- * }
- * } );
- * } )
- */
- "fnHeaderCallback": null,
-
-
- /**
- * The information element can be used to convey information about the current
- * state of the table. Although the internationalisation options presented by
- * DataTables are quite capable of dealing with most customisations, there may
- * be times where you wish to customise the string further. This callback
- * allows you to do exactly that.
- * @type function
- * @param {object} oSettings DataTables settings object
- * @param {int} start Starting position in data for the draw
- * @param {int} end End position in data for the draw
- * @param {int} max Total number of rows in the table (regardless of
- * filtering)
- * @param {int} total Total number of rows in the data set, after filtering
- * @param {string} pre The string that DataTables has formatted using it's
- * own rules
- * @returns {string} The string to be displayed in the information element.
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.infoCallback
- *
- * @example
- * $('#example').dataTable( {
- * "infoCallback": function( settings, start, end, max, total, pre ) {
- * return start +" to "+ end;
- * }
- * } );
- */
- "fnInfoCallback": null,
-
-
- /**
- * Called when the table has been initialised. Normally DataTables will
- * initialise sequentially and there will be no need for this function,
- * however, this does not hold true when using external language information
- * since that is obtained using an async XHR call.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.initComplete
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "initComplete": function(settings, json) {
- * alert( 'DataTables has finished its initialisation.' );
- * }
- * } );
- * } )
- */
- "fnInitComplete": null,
-
-
- /**
- * Called at the very start of each table draw and can be used to cancel the
- * draw by returning false, any other return (including undefined) results in
- * the full draw occurring).
- * @type function
- * @param {object} settings DataTables settings object
- * @returns {boolean} False will cancel the draw, anything else (including no
- * return) will allow it to complete.
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.preDrawCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "preDrawCallback": function( settings ) {
- * if ( $('#test').val() == 1 ) {
- * return false;
- * }
- * }
- * } );
- * } );
- */
- "fnPreDrawCallback": null,
-
-
- /**
- * This function allows you to 'post process' each row after it have been
- * generated for each table draw, but before it is rendered on screen. This
- * function might be used for setting the row class name etc.
- * @type function
- * @param {node} row "TR" element for the current row
- * @param {array} data Raw data array for this row
- * @param {int} displayIndex The display index for the current table draw
- * @param {int} displayIndexFull The index of the data in the full list of
- * rows (after filtering)
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.rowCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "rowCallback": function( row, data, displayIndex, displayIndexFull ) {
- * // Bold the grade for all 'A' grade browsers
- * if ( data[4] == "A" ) {
- * $('td:eq(4)', row).html( '<b>A</b>' );
- * }
- * }
- * } );
- * } );
- */
- "fnRowCallback": null,
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * This parameter allows you to override the default function which obtains
- * the data from the server so something more suitable for your application.
- * For example you could use POST data, or pull information from a Gears or
- * AIR database.
- * @type function
- * @member
- * @param {string} source HTTP source to obtain the data from (`ajax`)
- * @param {array} data A key/value pair object containing the data to send
- * to the server
- * @param {function} callback to be called on completion of the data get
- * process that will draw the data on the page.
- * @param {object} settings DataTables settings object
- *
- * @dtopt Callbacks
- * @dtopt Server-side
- * @name DataTable.defaults.serverData
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "fnServerData": null,
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * It is often useful to send extra data to the server when making an Ajax
- * request - for example custom filtering information, and this callback
- * function makes it trivial to send extra information to the server. The
- * passed in parameter is the data set that has been constructed by
- * DataTables, and you can add to this or modify it as you require.
- * @type function
- * @param {array} data Data array (array of objects which are name/value
- * pairs) that has been constructed by DataTables and will be sent to the
- * server. In the case of Ajax sourced data with server-side processing
- * this will be an empty array, for server-side processing there will be a
- * significant number of parameters!
- * @returns {undefined} Ensure that you modify the data array passed in,
- * as this is passed by reference.
- *
- * @dtopt Callbacks
- * @dtopt Server-side
- * @name DataTable.defaults.serverParams
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "fnServerParams": null,
-
-
- /**
- * Load the table state. With this function you can define from where, and how, the
- * state of a table is loaded. By default DataTables will load from `localStorage`
- * but you might wish to use a server-side database or cookies.
- * @type function
- * @member
- * @param {object} settings DataTables settings object
- * @return {object} The DataTables state object to be loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoadCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadCallback": function (settings) {
- * var o;
- *
- * // Send an Ajax request to the server to get the data. Note that
- * // this is a synchronous request.
- * $.ajax( {
- * "url": "/state_load",
- * "async": false,
- * "dataType": "json",
- * "success": function (json) {
- * o = json;
- * }
- * } );
- *
- * return o;
- * }
- * } );
- * } );
- */
- "fnStateLoadCallback": function ( settings ) {
- try {
- return JSON.parse(
- (settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(
- 'DataTables_'+settings.sInstance+'_'+location.pathname
- )
- );
- } catch (e) {}
- },
-
-
- /**
- * Callback which allows modification of the saved state prior to loading that state.
- * This callback is called when the table is loading state from the stored data, but
- * prior to the settings object being modified by the saved state. Note that for
- * plug-in authors, you should use the `stateLoadParams` event to load parameters for
- * a plug-in.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object that is to be loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoadParams
- *
- * @example
- * // Remove a saved filter, so filtering is never loaded
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadParams": function (settings, data) {
- * data.oSearch.sSearch = "";
- * }
- * } );
- * } );
- *
- * @example
- * // Disallow state loading by returning false
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoadParams": function (settings, data) {
- * return false;
- * }
- * } );
- * } );
- */
- "fnStateLoadParams": null,
-
-
- /**
- * Callback that is called when the state has been loaded from the state saving method
- * and the DataTables settings object has been modified as a result of the loaded state.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object that was loaded
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateLoaded
- *
- * @example
- * // Show an alert with the filtering value that was saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateLoaded": function (settings, data) {
- * alert( 'Saved filter was: '+data.oSearch.sSearch );
- * }
- * } );
- * } );
- */
- "fnStateLoaded": null,
-
-
- /**
- * Save the table state. This function allows you to define where and how the state
- * information for the table is stored By default DataTables will use `localStorage`
- * but you might wish to use a server-side database or cookies.
- * @type function
- * @member
- * @param {object} settings DataTables settings object
- * @param {object} data The state object to be saved
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateSaveCallback
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateSaveCallback": function (settings, data) {
- * // Send an Ajax request to the server with the state object
- * $.ajax( {
- * "url": "/state_save",
- * "data": data,
- * "dataType": "json",
- * "method": "POST"
- * "success": function () {}
- * } );
- * }
- * } );
- * } );
- */
- "fnStateSaveCallback": function ( settings, data ) {
- try {
- (settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(
- 'DataTables_'+settings.sInstance+'_'+location.pathname,
- JSON.stringify( data )
- );
- } catch (e) {}
- },
-
-
- /**
- * Callback which allows modification of the state to be saved. Called when the table
- * has changed state a new state save is required. This method allows modification of
- * the state saving object prior to actually doing the save, including addition or
- * other state properties or modification. Note that for plug-in authors, you should
- * use the `stateSaveParams` event to save parameters for a plug-in.
- * @type function
- * @param {object} settings DataTables settings object
- * @param {object} data The state object to be saved
- *
- * @dtopt Callbacks
- * @name DataTable.defaults.stateSaveParams
- *
- * @example
- * // Remove a saved filter, so filtering is never saved
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateSave": true,
- * "stateSaveParams": function (settings, data) {
- * data.oSearch.sSearch = "";
- * }
- * } );
- * } );
- */
- "fnStateSaveParams": null,
-
-
- /**
- * Duration for which the saved state information is considered valid. After this period
- * has elapsed the state will be returned to the default.
- * Value is given in seconds.
- * @type int
- * @default 7200 <i>(2 hours)</i>
- *
- * @dtopt Options
- * @name DataTable.defaults.stateDuration
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "stateDuration": 60*60*24; // 1 day
- * } );
- * } )
- */
- "iStateDuration": 7200,
-
-
- /**
- * When enabled DataTables will not make a request to the server for the first
- * page draw - rather it will use the data already on the page (no sorting etc
- * will be applied to it), thus saving on an XHR at load time. `deferLoading`
- * is used to indicate that deferred loading is required, but it is also used
- * to tell DataTables how many records there are in the full table (allowing
- * the information element and pagination to be displayed correctly). In the case
- * where a filtering is applied to the table on initial load, this can be
- * indicated by giving the parameter as an array, where the first element is
- * the number of records available after filtering and the second element is the
- * number of records without filtering (allowing the table information element
- * to be shown correctly).
- * @type int | array
- * @default null
- *
- * @dtopt Options
- * @name DataTable.defaults.deferLoading
- *
- * @example
- * // 57 records available in the table, no filtering applied
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "scripts/server_processing.php",
- * "deferLoading": 57
- * } );
- * } );
- *
- * @example
- * // 57 records after filtering, 100 without filtering (an initial filter applied)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "serverSide": true,
- * "ajax": "scripts/server_processing.php",
- * "deferLoading": [ 57, 100 ],
- * "search": {
- * "search": "my_filter"
- * }
- * } );
- * } );
- */
- "iDeferLoading": null,
-
-
- /**
- * Number of rows to display on a single page when using pagination. If
- * feature enabled (`lengthChange`) then the end user will be able to override
- * this to a custom setting using a pop-up menu.
- * @type int
- * @default 10
- *
- * @dtopt Options
- * @name DataTable.defaults.pageLength
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "pageLength": 50
- * } );
- * } )
- */
- "iDisplayLength": 10,
-
-
- /**
- * Define the starting point for data display when using DataTables with
- * pagination. Note that this parameter is the number of records, rather than
- * the page number, so if you have 10 records per page and want to start on
- * the third page, it should be "20".
- * @type int
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.displayStart
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "displayStart": 20
- * } );
- * } )
- */
- "iDisplayStart": 0,
-
-
- /**
- * By default DataTables allows keyboard navigation of the table (sorting, paging,
- * and filtering) by adding a `tabindex` attribute to the required elements. This
- * allows you to tab through the controls and press the enter key to activate them.
- * The tabindex is default 0, meaning that the tab follows the flow of the document.
- * You can overrule this using this parameter if you wish. Use a value of -1 to
- * disable built-in keyboard navigation.
- * @type int
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.tabIndex
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "tabIndex": 1
- * } );
- * } );
- */
- "iTabIndex": 0,
-
-
- /**
- * Classes that DataTables assigns to the various components and features
- * that it adds to the HTML table. This allows classes to be configured
- * during initialisation in addition to through the static
- * {@link DataTable.ext.oStdClasses} object).
- * @namespace
- * @name DataTable.defaults.classes
- */
- "oClasses": {},
-
-
- /**
- * All strings that DataTables uses in the user interface that it creates
- * are defined in this object, allowing you to modified them individually or
- * completely replace them all as required.
- * @namespace
- * @name DataTable.defaults.language
- */
- "oLanguage": {
- /**
- * Strings that are used for WAI-ARIA labels and controls only (these are not
- * actually visible on the page, but will be read by screenreaders, and thus
- * must be internationalised as well).
- * @namespace
- * @name DataTable.defaults.language.aria
- */
- "oAria": {
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted ascending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- *
- * @dtopt Language
- * @name DataTable.defaults.language.aria.sortAscending
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "aria": {
- * "sortAscending": " - click/return to sort ascending"
- * }
- * }
- * } );
- * } );
- */
- "sSortAscending": ": activate to sort column ascending",
-
- /**
- * ARIA label that is added to the table headers when the column may be
- * sorted descending by activing the column (click or return when focused).
- * Note that the column header is prefixed to this string.
- * @type string
- * @default : activate to sort column ascending
- *
- * @dtopt Language
- * @name DataTable.defaults.language.aria.sortDescending
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "aria": {
- * "sortDescending": " - click/return to sort descending"
- * }
- * }
- * } );
- * } );
- */
- "sSortDescending": ": activate to sort column descending"
- },
-
- /**
- * Pagination string used by DataTables for the built-in pagination
- * control types.
- * @namespace
- * @name DataTable.defaults.language.paginate
- */
- "oPaginate": {
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the first page.
- * @type string
- * @default First
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.first
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "first": "First page"
- * }
- * }
- * } );
- * } );
- */
- "sFirst": "First",
-
-
- /**
- * Text to use when using the 'full_numbers' type of pagination for the
- * button to take the user to the last page.
- * @type string
- * @default Last
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.last
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "last": "Last page"
- * }
- * }
- * } );
- * } );
- */
- "sLast": "Last",
-
-
- /**
- * Text to use for the 'next' pagination button (to take the user to the
- * next page).
- * @type string
- * @default Next
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.next
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "next": "Next page"
- * }
- * }
- * } );
- * } );
- */
- "sNext": "Next",
-
-
- /**
- * Text to use for the 'previous' pagination button (to take the user to
- * the previous page).
- * @type string
- * @default Previous
- *
- * @dtopt Language
- * @name DataTable.defaults.language.paginate.previous
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "paginate": {
- * "previous": "Previous page"
- * }
- * }
- * } );
- * } );
- */
- "sPrevious": "Previous"
- },
-
- /**
- * This string is shown in preference to `zeroRecords` when the table is
- * empty of data (regardless of filtering). Note that this is an optional
- * parameter - if it is not given, the value of `zeroRecords` will be used
- * instead (either the default or given value).
- * @type string
- * @default No data available in table
- *
- * @dtopt Language
- * @name DataTable.defaults.language.emptyTable
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "emptyTable": "No data available in table"
- * }
- * } );
- * } );
- */
- "sEmptyTable": "No data available in table",
-
-
- /**
- * This string gives information to the end user about the information
- * that is current on display on the page. The following tokens can be
- * used in the string and will be dynamically replaced as the table
- * display updates. This tokens can be placed anywhere in the string, or
- * removed as needed by the language requires:
- *
- * * `\_START\_` - Display index of the first record on the current page
- * * `\_END\_` - Display index of the last record on the current page
- * * `\_TOTAL\_` - Number of records in the table after filtering
- * * `\_MAX\_` - Number of records in the table without filtering
- * * `\_PAGE\_` - Current page number
- * * `\_PAGES\_` - Total number of pages of data in the table
- *
- * @type string
- * @default Showing _START_ to _END_ of _TOTAL_ entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.info
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "info": "Showing page _PAGE_ of _PAGES_"
- * }
- * } );
- * } );
- */
- "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
-
-
- /**
- * Display information string for when the table is empty. Typically the
- * format of this string should match `info`.
- * @type string
- * @default Showing 0 to 0 of 0 entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoEmpty
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoEmpty": "No entries to show"
- * }
- * } );
- * } );
- */
- "sInfoEmpty": "Showing 0 to 0 of 0 entries",
-
-
- /**
- * When a user filters the information in a table, this string is appended
- * to the information (`info`) to give an idea of how strong the filtering
- * is. The variable _MAX_ is dynamically updated.
- * @type string
- * @default (filtered from _MAX_ total entries)
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoFiltered
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoFiltered": " - filtering from _MAX_ records"
- * }
- * } );
- * } );
- */
- "sInfoFiltered": "(filtered from _MAX_ total entries)",
-
-
- /**
- * If can be useful to append extra information to the info string at times,
- * and this variable does exactly that. This information will be appended to
- * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are
- * being used) at all times.
- * @type string
- * @default <i>Empty string</i>
- *
- * @dtopt Language
- * @name DataTable.defaults.language.infoPostFix
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "infoPostFix": "All records shown are derived from real information."
- * }
- * } );
- * } );
- */
- "sInfoPostFix": "",
-
-
- /**
- * This decimal place operator is a little different from the other
- * language options since DataTables doesn't output floating point
- * numbers, so it won't ever use this for display of a number. Rather,
- * what this parameter does is modify the sort methods of the table so
- * that numbers which are in a format which has a character other than
- * a period (`.`) as a decimal place will be sorted numerically.
- *
- * Note that numbers with different decimal places cannot be shown in
- * the same table and still be sortable, the table must be consistent.
- * However, multiple different tables on the page can use different
- * decimal place characters.
- * @type string
- * @default
- *
- * @dtopt Language
- * @name DataTable.defaults.language.decimal
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "decimal": ","
- * "thousands": "."
- * }
- * } );
- * } );
- */
- "sDecimal": "",
-
-
- /**
- * DataTables has a build in number formatter (`formatNumber`) which is
- * used to format large numbers that are used in the table information.
- * By default a comma is used, but this can be trivially changed to any
- * character you wish with this parameter.
- * @type string
- * @default ,
- *
- * @dtopt Language
- * @name DataTable.defaults.language.thousands
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "thousands": "'"
- * }
- * } );
- * } );
- */
- "sThousands": ",",
-
-
- /**
- * Detail the action that will be taken when the drop down menu for the
- * pagination length option is changed. The '_MENU_' variable is replaced
- * with a default select list of 10, 25, 50 and 100, and can be replaced
- * with a custom select box if required.
- * @type string
- * @default Show _MENU_ entries
- *
- * @dtopt Language
- * @name DataTable.defaults.language.lengthMenu
- *
- * @example
- * // Language change only
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "lengthMenu": "Display _MENU_ records"
- * }
- * } );
- * } );
- *
- * @example
- * // Language and options change
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "lengthMenu": 'Display <select>'+
- * '<option value="10">10</option>'+
- * '<option value="20">20</option>'+
- * '<option value="30">30</option>'+
- * '<option value="40">40</option>'+
- * '<option value="50">50</option>'+
- * '<option value="-1">All</option>'+
- * '</select> records'
- * }
- * } );
- * } );
- */
- "sLengthMenu": "Show _MENU_ entries",
-
-
- /**
- * When using Ajax sourced data and during the first draw when DataTables is
- * gathering the data, this message is shown in an empty row in the table to
- * indicate to the end user the the data is being loaded. Note that this
- * parameter is not used when loading data by server-side processing, just
- * Ajax sourced data with client-side processing.
- * @type string
- * @default Loading...
- *
- * @dtopt Language
- * @name DataTable.defaults.language.loadingRecords
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "loadingRecords": "Please wait - loading..."
- * }
- * } );
- * } );
- */
- "sLoadingRecords": "Loading...",
-
-
- /**
- * Text which is displayed when the table is processing a user action
- * (usually a sort command or similar).
- * @type string
- * @default Processing...
- *
- * @dtopt Language
- * @name DataTable.defaults.language.processing
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "processing": "DataTables is currently busy"
- * }
- * } );
- * } );
- */
- "sProcessing": "Processing...",
-
-
- /**
- * Details the actions that will be taken when the user types into the
- * filtering input text box. The variable "_INPUT_", if used in the string,
- * is replaced with the HTML text box for the filtering input allowing
- * control over where it appears in the string. If "_INPUT_" is not given
- * then the input box is appended to the string automatically.
- * @type string
- * @default Search:
- *
- * @dtopt Language
- * @name DataTable.defaults.language.search
- *
- * @example
- * // Input text box will be appended at the end automatically
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "search": "Filter records:"
- * }
- * } );
- * } );
- *
- * @example
- * // Specify where the filter should appear
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "search": "Apply filter _INPUT_ to table"
- * }
- * } );
- * } );
- */
- "sSearch": "Search:",
-
-
- /**
- * Assign a `placeholder` attribute to the search `input` element
- * @type string
- * @default
- *
- * @dtopt Language
- * @name DataTable.defaults.language.searchPlaceholder
- */
- "sSearchPlaceholder": "",
-
-
- /**
- * All of the language information can be stored in a file on the
- * server-side, which DataTables will look up if this parameter is passed.
- * It must store the URL of the language file, which is in a JSON format,
- * and the object has the same properties as the oLanguage object in the
- * initialiser object (i.e. the above parameters). Please refer to one of
- * the example language files to see how this works in action.
- * @type string
- * @default <i>Empty string - i.e. disabled</i>
- *
- * @dtopt Language
- * @name DataTable.defaults.language.url
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "url": "http://www.sprymedia.co.uk/dataTables/lang.txt"
- * }
- * } );
- * } );
- */
- "sUrl": "",
-
-
- /**
- * Text shown inside the table records when the is no information to be
- * displayed after filtering. `emptyTable` is shown when there is simply no
- * information in the table at all (regardless of filtering).
- * @type string
- * @default No matching records found
- *
- * @dtopt Language
- * @name DataTable.defaults.language.zeroRecords
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "language": {
- * "zeroRecords": "No records to display"
- * }
- * } );
- * } );
- */
- "sZeroRecords": "No matching records found"
- },
-
-
- /**
- * This parameter allows you to have define the global filtering state at
- * initialisation time. As an object the `search` parameter must be
- * defined, but all other parameters are optional. When `regex` is true,
- * the search string will be treated as a regular expression, when false
- * (default) it will be treated as a straight string. When `smart`
- * DataTables will use it's smart filtering methods (to word match at
- * any point in the data), when false this will not be done.
- * @namespace
- * @extends DataTable.models.oSearch
- *
- * @dtopt Options
- * @name DataTable.defaults.search
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "search": {"search": "Initial search"}
- * } );
- * } )
- */
- "oSearch": $.extend( {}, DataTable.models.oSearch ),
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * By default DataTables will look for the property `data` (or `aaData` for
- * compatibility with DataTables 1.9-) when obtaining data from an Ajax
- * source or for server-side processing - this parameter allows that
- * property to be changed. You can use Javascript dotted object notation to
- * get a data source for multiple levels of nesting.
- * @type string
- * @default data
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.ajaxDataProp
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sAjaxDataProp": "data",
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * You can instruct DataTables to load data from an external
- * source using this parameter (use aData if you want to pass data in you
- * already have). Simply provide a url a JSON object can be obtained from.
- * @type string
- * @default null
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.ajaxSource
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sAjaxSource": null,
-
-
- /**
- * This initialisation variable allows you to specify exactly where in the
- * DOM you want DataTables to inject the various controls it adds to the page
- * (for example you might want the pagination controls at the top of the
- * table). DIV elements (with or without a custom class) can also be added to
- * aid styling. The follow syntax is used:
- * <ul>
- * <li>The following options are allowed:
- * <ul>
- * <li>'l' - Length changing</li>
- * <li>'f' - Filtering input</li>
- * <li>'t' - The table!</li>
- * <li>'i' - Information</li>
- * <li>'p' - Pagination</li>
- * <li>'r' - pRocessing</li>
- * </ul>
- * </li>
- * <li>The following constants are allowed:
- * <ul>
- * <li>'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>
- * <li>'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>
- * </ul>
- * </li>
- * <li>The following syntax is expected:
- * <ul>
- * <li>'&lt;' and '&gt;' - div elements</li>
- * <li>'&lt;"class" and '&gt;' - div with a class</li>
- * <li>'&lt;"#id" and '&gt;' - div with an ID</li>
- * </ul>
- * </li>
- * <li>Examples:
- * <ul>
- * <li>'&lt;"wrapper"flipt&gt;'</li>
- * <li>'&lt;lf&lt;t&gt;ip&gt;'</li>
- * </ul>
- * </li>
- * </ul>
- * @type string
- * @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>
- * <"H"lfr>t<"F"ip> <i>(when `jQueryUI` is true)</i>
- *
- * @dtopt Options
- * @name DataTable.defaults.dom
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "dom": '&lt;"top"i&gt;rt&lt;"bottom"flp&gt;&lt;"clear"&gt;'
- * } );
- * } );
- */
- "sDom": "lfrtip",
-
-
- /**
- * Search delay option. This will throttle full table searches that use the
- * DataTables provided search input element (it does not effect calls to
- * `dt-api search()`, providing a delay before the search is made.
- * @type integer
- * @default 0
- *
- * @dtopt Options
- * @name DataTable.defaults.searchDelay
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "searchDelay": 200
- * } );
- * } )
- */
- "searchDelay": null,
-
-
- /**
- * DataTables features four different built-in options for the buttons to
- * display for pagination control:
- *
- * * `simple` - 'Previous' and 'Next' buttons only
- * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
- * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
- * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus
- * page numbers
- *
- * Further methods can be added using {@link DataTable.ext.oPagination}.
- * @type string
- * @default simple_numbers
- *
- * @dtopt Options
- * @name DataTable.defaults.pagingType
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "pagingType": "full_numbers"
- * } );
- * } )
- */
- "sPaginationType": "simple_numbers",
-
-
- /**
- * Enable horizontal scrolling. When a table is too wide to fit into a
- * certain layout, or you have a large number of columns in the table, you
- * can enable x-scrolling to show the table in a viewport, which can be
- * scrolled. This property can be `true` which will allow the table to
- * scroll horizontally when needed, or any CSS unit, or a number (in which
- * case it will be treated as a pixel measurement). Setting as simply `true`
- * is recommended.
- * @type boolean|string
- * @default <i>blank string - i.e. disabled</i>
- *
- * @dtopt Features
- * @name DataTable.defaults.scrollX
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollX": true,
- * "scrollCollapse": true
- * } );
- * } );
- */
- "sScrollX": "",
-
-
- /**
- * This property can be used to force a DataTable to use more width than it
- * might otherwise do when x-scrolling is enabled. For example if you have a
- * table which requires to be well spaced, this parameter is useful for
- * "over-sizing" the table, and thus forcing scrolling. This property can by
- * any CSS unit, or a number (in which case it will be treated as a pixel
- * measurement).
- * @type string
- * @default <i>blank string - i.e. disabled</i>
- *
- * @dtopt Options
- * @name DataTable.defaults.scrollXInner
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollX": "100%",
- * "scrollXInner": "110%"
- * } );
- * } );
- */
- "sScrollXInner": "",
-
-
- /**
- * Enable vertical scrolling. Vertical scrolling will constrain the DataTable
- * to the given height, and enable scrolling for any data which overflows the
- * current viewport. This can be used as an alternative to paging to display
- * a lot of data in a small area (although paging and scrolling can both be
- * enabled at the same time). This property can be any CSS unit, or a number
- * (in which case it will be treated as a pixel measurement).
- * @type string
- * @default <i>blank string - i.e. disabled</i>
- *
- * @dtopt Features
- * @name DataTable.defaults.scrollY
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "scrollY": "200px",
- * "paginate": false
- * } );
- * } );
- */
- "sScrollY": "",
-
-
- /**
- * __Deprecated__ The functionality provided by this parameter has now been
- * superseded by that provided through `ajax`, which should be used instead.
- *
- * Set the HTTP method that is used to make the Ajax call for server-side
- * processing or Ajax sourced data.
- * @type string
- * @default GET
- *
- * @dtopt Options
- * @dtopt Server-side
- * @name DataTable.defaults.serverMethod
- *
- * @deprecated 1.10. Please use `ajax` for this functionality now.
- */
- "sServerMethod": "GET",
-
-
- /**
- * DataTables makes use of renderers when displaying HTML elements for
- * a table. These renderers can be added or modified by plug-ins to
- * generate suitable mark-up for a site. For example the Bootstrap
- * integration plug-in for DataTables uses a paging button renderer to
- * display pagination buttons in the mark-up required by Bootstrap.
- *
- * For further information about the renderers available see
- * DataTable.ext.renderer
- * @type string|object
- * @default null
- *
- * @name DataTable.defaults.renderer
- *
- */
- "renderer": null,
-
-
- /**
- * Set the data property name that DataTables should use to get a row's id
- * to set as the `id` property in the node.
- * @type string
- * @default DT_RowId
- *
- * @name DataTable.defaults.rowId
- */
- "rowId": "DT_RowId"
- };
-
- _fnHungarianMap( DataTable.defaults );
-
-
-
- /*
- * Developer note - See note in model.defaults.js about the use of Hungarian
- * notation and camel case.
- */
-
- /**
- * Column options that can be given to DataTables at initialisation time.
- * @namespace
- */
- DataTable.defaults.column = {
- /**
- * Define which column(s) an order will occur on for this column. This
- * allows a column's ordering to take multiple columns into account when
- * doing a sort or use the data from a different column. For example first
- * name / last name columns make sense to do a multi-column sort over the
- * two columns.
- * @type array|int
- * @default null <i>Takes the value of the column index automatically</i>
- *
- * @name DataTable.defaults.column.orderData
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderData": [ 0, 1 ], "targets": [ 0 ] },
- * { "orderData": [ 1, 0 ], "targets": [ 1 ] },
- * { "orderData": 2, "targets": [ 2 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "orderData": [ 0, 1 ] },
- * { "orderData": [ 1, 0 ] },
- * { "orderData": 2 },
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "aDataSort": null,
- "iDataSort": -1,
-
-
- /**
- * You can control the default ordering direction, and even alter the
- * behaviour of the sort handler (i.e. only allow ascending ordering etc)
- * using this parameter.
- * @type array
- * @default [ 'asc', 'desc' ]
- *
- * @name DataTable.defaults.column.orderSequence
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderSequence": [ "asc" ], "targets": [ 1 ] },
- * { "orderSequence": [ "desc", "asc", "asc" ], "targets": [ 2 ] },
- * { "orderSequence": [ "desc" ], "targets": [ 3 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * { "orderSequence": [ "asc" ] },
- * { "orderSequence": [ "desc", "asc", "asc" ] },
- * { "orderSequence": [ "desc" ] },
- * null
- * ]
- * } );
- * } );
- */
- "asSorting": [ 'asc', 'desc' ],
-
-
- /**
- * Enable or disable filtering on the data in this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.searchable
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "searchable": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "searchable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSearchable": true,
-
-
- /**
- * Enable or disable ordering on this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.orderable
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderable": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "orderable": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bSortable": true,
-
-
- /**
- * Enable or disable the display of this column.
- * @type boolean
- * @default true
- *
- * @name DataTable.defaults.column.visible
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "visible": false, "targets": [ 0 ] }
- * ] } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "visible": false },
- * null,
- * null,
- * null,
- * null
- * ] } );
- * } );
- */
- "bVisible": true,
-
-
- /**
- * Developer definable function that is called whenever a cell is created (Ajax source,
- * etc) or processed for input (DOM source). This can be used as a compliment to mRender
- * allowing you to modify the DOM element (add background colour for example) when the
- * element is available.
- * @type function
- * @param {element} td The TD node that has been created
- * @param {*} cellData The Data for the cell
- * @param {array|object} rowData The data for the whole row
- * @param {int} row The row index for the aoData data store
- * @param {int} col The column index for aoColumns
- *
- * @name DataTable.defaults.column.createdCell
- * @dtopt Columns
- *
- * @example
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [3],
- * "createdCell": function (td, cellData, rowData, row, col) {
- * if ( cellData == "1.7" ) {
- * $(td).css('color', 'blue')
- * }
- * }
- * } ]
- * });
- * } );
- */
- "fnCreatedCell": null,
-
-
- /**
- * This parameter has been replaced by `data` in DataTables to ensure naming
- * consistency. `dataProp` can still be used, as there is backwards
- * compatibility in DataTables for this option, but it is strongly
- * recommended that you use `data` in preference to `dataProp`.
- * @name DataTable.defaults.column.dataProp
- */
-
-
- /**
- * This property can be used to read data from any data source property,
- * including deeply nested objects / properties. `data` can be given in a
- * number of different ways which effect its behaviour:
- *
- * * `integer` - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).
- * * `string` - read an object property from the data source. There are
- * three 'special' options that can be used in the string to alter how
- * DataTables reads the data from the source object:
- * * `.` - Dotted Javascript notation. Just as you use a `.` in
- * Javascript to read from nested objects, so to can the options
- * specified in `data`. For example: `browser.version` or
- * `browser.name`. If your object parameter name contains a period, use
- * `\\` to escape it - i.e. `first\\.name`.
- * * `[]` - Array notation. DataTables can automatically combine data
- * from and array source, joining the data with the characters provided
- * between the two brackets. For example: `name[, ]` would provide a
- * comma-space separated list from the source array. If no characters
- * are provided between the brackets, the original array source is
- * returned.
- * * `()` - Function notation. Adding `()` to the end of a parameter will
- * execute a function of the name given. For example: `browser()` for a
- * simple function on the data source, `browser.version()` for a
- * function in a nested property or even `browser().version` to get an
- * object property if the function called returns an object. Note that
- * function notation is recommended for use in `render` rather than
- * `data` as it is much simpler to use as a renderer.
- * * `null` - use the original data source for the row rather than plucking
- * data directly from it. This action has effects on two other
- * initialisation options:
- * * `defaultContent` - When null is given as the `data` option and
- * `defaultContent` is specified for the column, the value defined by
- * `defaultContent` will be used for the cell.
- * * `render` - When null is used for the `data` option and the `render`
- * option is specified for the column, the whole data source for the
- * row is used for the renderer.
- * * `function` - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * * Parameters:
- * * `{array|object}` The data source for the row
- * * `{string}` The type call data requested - this will be 'set' when
- * setting data or 'filter', 'display', 'type', 'sort' or undefined
- * when gathering data. Note that when `undefined` is given for the
- * type DataTables expects to get the raw data for the object back<
- * * `{*}` Data to set when the second parameter is 'set'.
- * * Return:
- * * The return value from the function is not required when 'set' is
- * the type of call, but otherwise the return is what will be used
- * for the data requested.
- *
- * Note that `data` is a getter and setter option. If you just require
- * formatting of data for output, you will likely want to use `render` which
- * is simply a getter and thus simpler to use.
- *
- * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The
- * name change reflects the flexibility of this property and is consistent
- * with the naming of mRender. If 'mDataProp' is given, then it will still
- * be used by DataTables, as it automatically maps the old name to the new
- * if required.
- *
- * @type string|int|function|null
- * @default null <i>Use automatically calculated column index</i>
- *
- * @name DataTable.defaults.column.data
- * @dtopt Columns
- *
- * @example
- * // Read table data from objects
- * // JSON structure for each row:
- * // {
- * // "engine": {value},
- * // "browser": {value},
- * // "platform": {value},
- * // "version": {value},
- * // "grade": {value}
- * // }
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/objects.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * { "data": "platform" },
- * { "data": "version" },
- * { "data": "grade" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Read information from deeply nested objects
- * // JSON structure for each row:
- * // {
- * // "engine": {value},
- * // "browser": {value},
- * // "platform": {
- * // "inner": {value}
- * // },
- * // "details": [
- * // {value}, {value}
- * // ]
- * // }
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/deep.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * { "data": "platform.inner" },
- * { "data": "platform.details.0" },
- * { "data": "platform.details.1" }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `data` as a function to provide different information for
- * // sorting, filtering and display. In this case, currency (price)
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": function ( source, type, val ) {
- * if (type === 'set') {
- * source.price = val;
- * // Store the computed dislay and filter values for efficiency
- * source.price_display = val=="" ? "" : "$"+numberFormat(val);
- * source.price_filter = val=="" ? "" : "$"+numberFormat(val)+" "+val;
- * return;
- * }
- * else if (type === 'display') {
- * return source.price_display;
- * }
- * else if (type === 'filter') {
- * return source.price_filter;
- * }
- * // 'sort', 'type' and undefined all just use the integer
- * return source.price;
- * }
- * } ]
- * } );
- * } );
- *
- * @example
- * // Using default content
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null,
- * "defaultContent": "Click to edit"
- * } ]
- * } );
- * } );
- *
- * @example
- * // Using array notation - outputting a list from an array
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": "name[, ]"
- * } ]
- * } );
- * } );
- *
- */
- "mData": null,
-
-
- /**
- * This property is the rendering partner to `data` and it is suggested that
- * when you want to manipulate data for display (including filtering,
- * sorting etc) without altering the underlying data for the table, use this
- * property. `render` can be considered to be the the read only companion to
- * `data` which is read / write (then as such more complex). Like `data`
- * this option can be given in a number of different ways to effect its
- * behaviour:
- *
- * * `integer` - treated as an array index for the data source. This is the
- * default that DataTables uses (incrementally increased for each column).
- * * `string` - read an object property from the data source. There are
- * three 'special' options that can be used in the string to alter how
- * DataTables reads the data from the source object:
- * * `.` - Dotted Javascript notation. Just as you use a `.` in
- * Javascript to read from nested objects, so to can the options
- * specified in `data`. For example: `browser.version` or
- * `browser.name`. If your object parameter name contains a period, use
- * `\\` to escape it - i.e. `first\\.name`.
- * * `[]` - Array notation. DataTables can automatically combine data
- * from and array source, joining the data with the characters provided
- * between the two brackets. For example: `name[, ]` would provide a
- * comma-space separated list from the source array. If no characters
- * are provided between the brackets, the original array source is
- * returned.
- * * `()` - Function notation. Adding `()` to the end of a parameter will
- * execute a function of the name given. For example: `browser()` for a
- * simple function on the data source, `browser.version()` for a
- * function in a nested property or even `browser().version` to get an
- * object property if the function called returns an object.
- * * `object` - use different data for the different data types requested by
- * DataTables ('filter', 'display', 'type' or 'sort'). The property names
- * of the object is the data type the property refers to and the value can
- * defined using an integer, string or function using the same rules as
- * `render` normally does. Note that an `_` option _must_ be specified.
- * This is the default value to use if you haven't specified a value for
- * the data type requested by DataTables.
- * * `function` - the function given will be executed whenever DataTables
- * needs to set or get the data for a cell in the column. The function
- * takes three parameters:
- * * Parameters:
- * * {array|object} The data source for the row (based on `data`)
- * * {string} The type call data requested - this will be 'filter',
- * 'display', 'type' or 'sort'.
- * * {array|object} The full data source for the row (not based on
- * `data`)
- * * Return:
- * * The return value from the function is what will be used for the
- * data requested.
- *
- * @type string|int|function|object|null
- * @default null Use the data source value.
- *
- * @name DataTable.defaults.column.render
- * @dtopt Columns
- *
- * @example
- * // Create a comma separated list from an array of objects
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "ajaxSource": "sources/deep.txt",
- * "columns": [
- * { "data": "engine" },
- * { "data": "browser" },
- * {
- * "data": "platform",
- * "render": "[, ].name"
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Execute a function to obtain data
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null, // Use the full data source object for the renderer's source
- * "render": "browserName()"
- * } ]
- * } );
- * } );
- *
- * @example
- * // As an object, extracting different data for the different types
- * // This would be used with a data source such as:
- * // { "phone": 5552368, "phone_filter": "5552368 555-2368", "phone_display": "555-2368" }
- * // Here the `phone` integer is used for sorting and type detection, while `phone_filter`
- * // (which has both forms) is used for filtering for if a user inputs either format, while
- * // the formatted phone number is the one that is shown in the table.
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": null, // Use the full data source object for the renderer's source
- * "render": {
- * "_": "phone",
- * "filter": "phone_filter",
- * "display": "phone_display"
- * }
- * } ]
- * } );
- * } );
- *
- * @example
- * // Use as a function to create a link from the data source
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "data": "download_link",
- * "render": function ( data, type, full ) {
- * return '<a href="'+data+'">Download</a>';
- * }
- * } ]
- * } );
- * } );
- */
- "mRender": null,
-
-
- /**
- * Change the cell type created for the column - either TD cells or TH cells. This
- * can be useful as TH cells have semantic meaning in the table body, allowing them
- * to act as a header for a row (you may wish to add scope='row' to the TH elements).
- * @type string
- * @default td
- *
- * @name DataTable.defaults.column.cellType
- * @dtopt Columns
- *
- * @example
- * // Make the first column use TH cells
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [ {
- * "targets": [ 0 ],
- * "cellType": "th"
- * } ]
- * } );
- * } );
- */
- "sCellType": "td",
-
-
- /**
- * Class to give to each cell in this column.
- * @type string
- * @default <i>Empty string</i>
- *
- * @name DataTable.defaults.column.class
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "class": "my_class", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "class": "my_class" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sClass": "",
-
- /**
- * When DataTables calculates the column widths to assign to each column,
- * it finds the longest string in each column and then constructs a
- * temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
- * string - thus the calculation can go wrong (doing it properly and putting
- * it into an DOM object and measuring that is horribly(!) slow). Thus as
- * a "work around" we provide this option. It will append its value to the
- * text that is found to be the longest string for the column - i.e. padding.
- * Generally you shouldn't need this!
- * @type string
- * @default <i>Empty string<i>
- *
- * @name DataTable.defaults.column.contentPadding
- * @dtopt Columns
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * null,
- * {
- * "contentPadding": "mmm"
- * }
- * ]
- * } );
- * } );
- */
- "sContentPadding": "",
-
-
- /**
- * Allows a default value to be given for a column's data, and will be used
- * whenever a null data source is encountered (this can be because `data`
- * is set to null, or because the data source itself is null).
- * @type string
- * @default null
- *
- * @name DataTable.defaults.column.defaultContent
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * {
- * "data": null,
- * "defaultContent": "Edit",
- * "targets": [ -1 ]
- * }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * null,
- * {
- * "data": null,
- * "defaultContent": "Edit"
- * }
- * ]
- * } );
- * } );
- */
- "sDefaultContent": null,
-
-
- /**
- * This parameter is only used in DataTables' server-side processing. It can
- * be exceptionally useful to know what columns are being displayed on the
- * client side, and to map these to database fields. When defined, the names
- * also allow DataTables to reorder information from the server if it comes
- * back in an unexpected order (i.e. if you switch your columns around on the
- * client-side, your server-side code does not also need updating).
- * @type string
- * @default <i>Empty string</i>
- *
- * @name DataTable.defaults.column.name
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "name": "engine", "targets": [ 0 ] },
- * { "name": "browser", "targets": [ 1 ] },
- * { "name": "platform", "targets": [ 2 ] },
- * { "name": "version", "targets": [ 3 ] },
- * { "name": "grade", "targets": [ 4 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "name": "engine" },
- * { "name": "browser" },
- * { "name": "platform" },
- * { "name": "version" },
- * { "name": "grade" }
- * ]
- * } );
- * } );
- */
- "sName": "",
-
-
- /**
- * Defines a data source type for the ordering which can be used to read
- * real-time information from the table (updating the internally cached
- * version) prior to ordering. This allows ordering to occur on user
- * editable elements such as form inputs.
- * @type string
- * @default std
- *
- * @name DataTable.defaults.column.orderDataType
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "orderDataType": "dom-text", "targets": [ 2, 3 ] },
- * { "type": "numeric", "targets": [ 3 ] },
- * { "orderDataType": "dom-select", "targets": [ 4 ] },
- * { "orderDataType": "dom-checkbox", "targets": [ 5 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * null,
- * null,
- * { "orderDataType": "dom-text" },
- * { "orderDataType": "dom-text", "type": "numeric" },
- * { "orderDataType": "dom-select" },
- * { "orderDataType": "dom-checkbox" }
- * ]
- * } );
- * } );
- */
- "sSortDataType": "std",
-
-
- /**
- * The title of this column.
- * @type string
- * @default null <i>Derived from the 'TH' value for this column in the
- * original HTML table.</i>
- *
- * @name DataTable.defaults.column.title
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "title": "My column title", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "title": "My column title" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sTitle": null,
-
-
- /**
- * The type allows you to specify how the data for this column will be
- * ordered. Four types (string, numeric, date and html (which will strip
- * HTML tags before ordering)) are currently available. Note that only date
- * formats understood by Javascript's Date() object will be accepted as type
- * date. For example: "Mar 26, 2008 5:03 PM". May take the values: 'string',
- * 'numeric', 'date' or 'html' (by default). Further types can be adding
- * through plug-ins.
- * @type string
- * @default null <i>Auto-detected from raw data</i>
- *
- * @name DataTable.defaults.column.type
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "type": "html", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "type": "html" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sType": null,
-
-
- /**
- * Defining the width of the column, this parameter may take any CSS value
- * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not
- * been given a specific width through this interface ensuring that the table
- * remains readable.
- * @type string
- * @default null <i>Automatic</i>
- *
- * @name DataTable.defaults.column.width
- * @dtopt Columns
- *
- * @example
- * // Using `columnDefs`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columnDefs": [
- * { "width": "20%", "targets": [ 0 ] }
- * ]
- * } );
- * } );
- *
- * @example
- * // Using `columns`
- * $(document).ready( function() {
- * $('#example').dataTable( {
- * "columns": [
- * { "width": "20%" },
- * null,
- * null,
- * null,
- * null
- * ]
- * } );
- * } );
- */
- "sWidth": null
- };
-
- _fnHungarianMap( DataTable.defaults.column );
-
-
-
- /**
- * DataTables settings object - this holds all the information needed for a
- * given table, including configuration, data and current application of the
- * table options. DataTables does not have a single instance for each DataTable
- * with the settings attached to that instance, but rather instances of the
- * DataTable "class" are created on-the-fly as needed (typically by a
- * $().dataTable() call) and the settings object is then applied to that
- * instance.
- *
- * Note that this object is related to {@link DataTable.defaults} but this
- * one is the internal data store for DataTables's cache of columns. It should
- * NOT be manipulated outside of DataTables. Any configuration should be done
- * through the initialisation options.
- * @namespace
- * @todo Really should attach the settings object to individual instances so we
- * don't need to create new instances on each $().dataTable() call (if the
- * table already exists). It would also save passing oSettings around and
- * into every single function. However, this is a very significant
- * architecture change for DataTables and will almost certainly break
- * backwards compatibility with older installations. This is something that
- * will be done in 2.0.
- */
- DataTable.models.oSettings = {
- /**
- * Primary features of DataTables and their enablement state.
- * @namespace
- */
- "oFeatures": {
-
- /**
- * Flag to say if DataTables should automatically try to calculate the
- * optimum table and columns widths (true) or not (false).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bAutoWidth": null,
-
- /**
- * Delay the creation of TR and TD elements until they are actually
- * needed by a driven page draw. This can give a significant speed
- * increase for Ajax source and Javascript source data, but makes no
- * difference at all fro DOM and server-side processing tables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bDeferRender": null,
-
- /**
- * Enable filtering on the table or not. Note that if this is disabled
- * then there is no filtering at all on the table, including fnFilter.
- * To just remove the filtering input use sDom and remove the 'f' option.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bFilter": null,
-
- /**
- * Table information element (the 'Showing x of y records' div) enable
- * flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bInfo": null,
-
- /**
- * Present a user control allowing the end user to change the page size
- * when pagination is enabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bLengthChange": null,
-
- /**
- * Pagination enabled or not. Note that if this is disabled then length
- * changing must also be disabled.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bPaginate": null,
-
- /**
- * Processing indicator enable flag whenever DataTables is enacting a
- * user request - typically an Ajax request for server-side processing.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bProcessing": null,
-
- /**
- * Server-side processing enabled flag - when enabled DataTables will
- * get all data from the server for every draw - there is no filtering,
- * sorting or paging done on the client-side.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bServerSide": null,
-
- /**
- * Sorting enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSort": null,
-
- /**
- * Multi-column sorting
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortMulti": null,
-
- /**
- * Apply a class to the columns which are being sorted to provide a
- * visual highlight or not. This can slow things down when enabled since
- * there is a lot of DOM interaction.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortClasses": null,
-
- /**
- * State saving enablement flag.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bStateSave": null
- },
-
-
- /**
- * Scrolling settings for a table.
- * @namespace
- */
- "oScroll": {
- /**
- * When the table is shorter in height than sScrollY, collapse the
- * table container down to the height of the table (when true).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bCollapse": null,
-
- /**
- * Width of the scrollbar for the web-browser's platform. Calculated
- * during table initialisation.
- * @type int
- * @default 0
- */
- "iBarWidth": 0,
-
- /**
- * Viewport width for horizontal scrolling. Horizontal scrolling is
- * disabled if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sX": null,
-
- /**
- * Width to expand the table to when using x-scrolling. Typically you
- * should not need to use this.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @deprecated
- */
- "sXInner": null,
-
- /**
- * Viewport height for vertical scrolling. Vertical scrolling is disabled
- * if an empty string.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sY": null
- },
-
- /**
- * Language information for the table.
- * @namespace
- * @extends DataTable.defaults.oLanguage
- */
- "oLanguage": {
- /**
- * Information callback function. See
- * {@link DataTable.defaults.fnInfoCallback}
- * @type function
- * @default null
- */
- "fnInfoCallback": null
- },
-
- /**
- * Browser support parameters
- * @namespace
- */
- "oBrowser": {
- /**
- * Indicate if the browser incorrectly calculates width:100% inside a
- * scrolling element (IE6/7)
- * @type boolean
- * @default false
- */
- "bScrollOversize": false,
-
- /**
- * Determine if the vertical scrollbar is on the right or left of the
- * scrolling container - needed for rtl language layout, although not
- * all browsers move the scrollbar (Safari).
- * @type boolean
- * @default false
- */
- "bScrollbarLeft": false,
-
- /**
- * Flag for if `getBoundingClientRect` is fully supported or not
- * @type boolean
- * @default false
- */
- "bBounding": false,
-
- /**
- * Browser scrollbar width
- * @type integer
- * @default 0
- */
- "barWidth": 0
- },
-
-
- "ajax": null,
-
-
- /**
- * Array referencing the nodes which are used for the features. The
- * parameters of this object match what is allowed by sDom - i.e.
- * <ul>
- * <li>'l' - Length changing</li>
- * <li>'f' - Filtering input</li>
- * <li>'t' - The table!</li>
- * <li>'i' - Information</li>
- * <li>'p' - Pagination</li>
- * <li>'r' - pRocessing</li>
- * </ul>
- * @type array
- * @default []
- */
- "aanFeatures": [],
-
- /**
- * Store data information - see {@link DataTable.models.oRow} for detailed
- * information.
- * @type array
- * @default []
- */
- "aoData": [],
-
- /**
- * Array of indexes which are in the current display (after filtering etc)
- * @type array
- * @default []
- */
- "aiDisplay": [],
-
- /**
- * Array of indexes for display - no filtering
- * @type array
- * @default []
- */
- "aiDisplayMaster": [],
-
- /**
- * Map of row ids to data indexes
- * @type object
- * @default {}
- */
- "aIds": {},
-
- /**
- * Store information about each column that is in use
- * @type array
- * @default []
- */
- "aoColumns": [],
-
- /**
- * Store information about the table's header
- * @type array
- * @default []
- */
- "aoHeader": [],
-
- /**
- * Store information about the table's footer
- * @type array
- * @default []
- */
- "aoFooter": [],
-
- /**
- * Store the applied global search information in case we want to force a
- * research or compare the old search to a new one.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @namespace
- * @extends DataTable.models.oSearch
- */
- "oPreviousSearch": {},
-
- /**
- * Store the applied search for each column - see
- * {@link DataTable.models.oSearch} for the format that is used for the
- * filtering information for each column.
- * @type array
- * @default []
- */
- "aoPreSearchCols": [],
-
- /**
- * Sorting that is applied to the table. Note that the inner arrays are
- * used in the following manner:
- * <ul>
- * <li>Index 0 - column number</li>
- * <li>Index 1 - current sorting direction</li>
- * </ul>
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @todo These inner arrays should really be objects
- */
- "aaSorting": null,
-
- /**
- * Sorting that is always applied to the table (i.e. prefixed in front of
- * aaSorting).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "aaSortingFixed": [],
-
- /**
- * Classes to use for the striping of a table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "asStripeClasses": null,
-
- /**
- * If restoring a table - we should restore its striping classes as well
- * @type array
- * @default []
- */
- "asDestroyStripes": [],
-
- /**
- * If restoring a table - we should restore its width
- * @type int
- * @default 0
- */
- "sDestroyWidth": 0,
-
- /**
- * Callback functions array for every time a row is inserted (i.e. on a draw).
- * @type array
- * @default []
- */
- "aoRowCallback": [],
-
- /**
- * Callback functions for the header on each draw.
- * @type array
- * @default []
- */
- "aoHeaderCallback": [],
-
- /**
- * Callback function for the footer on each draw.
- * @type array
- * @default []
- */
- "aoFooterCallback": [],
-
- /**
- * Array of callback functions for draw callback functions
- * @type array
- * @default []
- */
- "aoDrawCallback": [],
-
- /**
- * Array of callback functions for row created function
- * @type array
- * @default []
- */
- "aoRowCreatedCallback": [],
-
- /**
- * Callback functions for just before the table is redrawn. A return of
- * false will be used to cancel the draw.
- * @type array
- * @default []
- */
- "aoPreDrawCallback": [],
-
- /**
- * Callback functions for when the table has been initialised.
- * @type array
- * @default []
- */
- "aoInitComplete": [],
-
-
- /**
- * Callbacks for modifying the settings to be stored for state saving, prior to
- * saving state.
- * @type array
- * @default []
- */
- "aoStateSaveParams": [],
-
- /**
- * Callbacks for modifying the settings that have been stored for state saving
- * prior to using the stored values to restore the state.
- * @type array
- * @default []
- */
- "aoStateLoadParams": [],
-
- /**
- * Callbacks for operating on the settings object once the saved state has been
- * loaded
- * @type array
- * @default []
- */
- "aoStateLoaded": [],
-
- /**
- * Cache the table ID for quick access
- * @type string
- * @default <i>Empty string</i>
- */
- "sTableId": "",
-
- /**
- * The TABLE node for the main table
- * @type node
- * @default null
- */
- "nTable": null,
-
- /**
- * Permanent ref to the thead element
- * @type node
- * @default null
- */
- "nTHead": null,
-
- /**
- * Permanent ref to the tfoot element - if it exists
- * @type node
- * @default null
- */
- "nTFoot": null,
-
- /**
- * Permanent ref to the tbody element
- * @type node
- * @default null
- */
- "nTBody": null,
-
- /**
- * Cache the wrapper node (contains all DataTables controlled elements)
- * @type node
- * @default null
- */
- "nTableWrapper": null,
-
- /**
- * Indicate if when using server-side processing the loading of data
- * should be deferred until the second draw.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- * @default false
- */
- "bDeferLoading": false,
-
- /**
- * Indicate if all required information has been read in
- * @type boolean
- * @default false
- */
- "bInitialised": false,
-
- /**
- * Information about open rows. Each object in the array has the parameters
- * 'nTr' and 'nParent'
- * @type array
- * @default []
- */
- "aoOpenRows": [],
-
- /**
- * Dictate the positioning of DataTables' control elements - see
- * {@link DataTable.model.oInit.sDom}.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sDom": null,
-
- /**
- * Search delay (in mS)
- * @type integer
- * @default null
- */
- "searchDelay": null,
-
- /**
- * Which type of pagination should be used.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default two_button
- */
- "sPaginationType": "two_button",
-
- /**
- * The state duration (for `stateSave`) in seconds.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type int
- * @default 0
- */
- "iStateDuration": 0,
-
- /**
- * Array of callback functions for state saving. Each array element is an
- * object with the following parameters:
- * <ul>
- * <li>function:fn - function to call. Takes two parameters, oSettings
- * and the JSON string to save that has been thus far created. Returns
- * a JSON string to be inserted into a json object
- * (i.e. '"param": [ 0, 1, 2]')</li>
- * <li>string:sName - name of callback</li>
- * </ul>
- * @type array
- * @default []
- */
- "aoStateSave": [],
-
- /**
- * Array of callback functions for state loading. Each array element is an
- * object with the following parameters:
- * <ul>
- * <li>function:fn - function to call. Takes two parameters, oSettings
- * and the object stored. May return false to cancel state loading</li>
- * <li>string:sName - name of callback</li>
- * </ul>
- * @type array
- * @default []
- */
- "aoStateLoad": [],
-
- /**
- * State that was saved. Useful for back reference
- * @type object
- * @default null
- */
- "oSavedState": null,
-
- /**
- * State that was loaded. Useful for back reference
- * @type object
- * @default null
- */
- "oLoadedState": null,
-
- /**
- * Source url for AJAX data for the table.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- * @default null
- */
- "sAjaxSource": null,
-
- /**
- * Property from a given object from which to read the table data from. This
- * can be an empty string (when not server-side processing), in which case
- * it is assumed an an array is given directly.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sAjaxDataProp": null,
-
- /**
- * Note if draw should be blocked while getting data
- * @type boolean
- * @default true
- */
- "bAjaxDataGet": true,
-
- /**
- * The last jQuery XHR object that was used for server-side data gathering.
- * This can be used for working with the XHR information in one of the
- * callbacks
- * @type object
- * @default null
- */
- "jqXHR": null,
-
- /**
- * JSON returned from the server in the last Ajax request
- * @type object
- * @default undefined
- */
- "json": undefined,
-
- /**
- * Data submitted as part of the last Ajax request
- * @type object
- * @default undefined
- */
- "oAjaxData": undefined,
-
- /**
- * Function to get the server-side data.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnServerData": null,
-
- /**
- * Functions which are called prior to sending an Ajax request so extra
- * parameters can easily be sent to the server
- * @type array
- * @default []
- */
- "aoServerParams": [],
-
- /**
- * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if
- * required).
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type string
- */
- "sServerMethod": null,
-
- /**
- * Format numbers for display.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type function
- */
- "fnFormatNumber": null,
-
- /**
- * List of options that can be used for the user selectable length menu.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type array
- * @default []
- */
- "aLengthMenu": null,
-
- /**
- * Counter for the draws that the table does. Also used as a tracker for
- * server-side processing
- * @type int
- * @default 0
- */
- "iDraw": 0,
-
- /**
- * Indicate if a redraw is being done - useful for Ajax
- * @type boolean
- * @default false
- */
- "bDrawing": false,
-
- /**
- * Draw index (iDraw) of the last error when parsing the returned data
- * @type int
- * @default -1
- */
- "iDrawError": -1,
-
- /**
- * Paging display length
- * @type int
- * @default 10
- */
- "_iDisplayLength": 10,
-
- /**
- * Paging start point - aiDisplay index
- * @type int
- * @default 0
- */
- "_iDisplayStart": 0,
-
- /**
- * Server-side processing - number of records in the result set
- * (i.e. before filtering), Use fnRecordsTotal rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type int
- * @default 0
- * @private
- */
- "_iRecordsTotal": 0,
-
- /**
- * Server-side processing - number of records in the current display set
- * (i.e. after filtering). Use fnRecordsDisplay rather than
- * this property to get the value of the number of records, regardless of
- * the server-side processing setting.
- * @type boolean
- * @default 0
- * @private
- */
- "_iRecordsDisplay": 0,
-
- /**
- * Flag to indicate if jQuery UI marking and classes should be used.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bJUI": null,
-
- /**
- * The classes to use for the table
- * @type object
- * @default {}
- */
- "oClasses": {},
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if filtering has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bFiltered": false,
-
- /**
- * Flag attached to the settings object so you can check in the draw
- * callback if sorting has been done in the draw. Deprecated in favour of
- * events.
- * @type boolean
- * @default false
- * @deprecated
- */
- "bSorted": false,
-
- /**
- * Indicate that if multiple rows are in the header and there is more than
- * one unique cell per column, if the top one (true) or bottom one (false)
- * should be used for sorting / title by DataTables.
- * Note that this parameter will be set by the initialisation routine. To
- * set a default use {@link DataTable.defaults}.
- * @type boolean
- */
- "bSortCellsTop": null,
-
- /**
- * Initialisation object that is used for the table
- * @type object
- * @default null
- */
- "oInit": null,
-
- /**
- * Destroy callback functions - for plug-ins to attach themselves to the
- * destroy so they can clean up markup and events.
- * @type array
- * @default []
- */
- "aoDestroyCallback": [],
-
-
- /**
- * Get the number of records in the current record set, before filtering
- * @type function
- */
- "fnRecordsTotal": function ()
- {
- return _fnDataSource( this ) == 'ssp' ?
- this._iRecordsTotal * 1 :
- this.aiDisplayMaster.length;
- },
-
- /**
- * Get the number of records in the current record set, after filtering
- * @type function
- */
- "fnRecordsDisplay": function ()
- {
- return _fnDataSource( this ) == 'ssp' ?
- this._iRecordsDisplay * 1 :
- this.aiDisplay.length;
- },
-
- /**
- * Get the display end point - aiDisplay index
- * @type function
- */
- "fnDisplayEnd": function ()
- {
- var
- len = this._iDisplayLength,
- start = this._iDisplayStart,
- calc = start + len,
- records = this.aiDisplay.length,
- features = this.oFeatures,
- paginate = features.bPaginate;
-
- if ( features.bServerSide ) {
- return paginate === false || len === -1 ?
- start + records :
- Math.min( start+len, this._iRecordsDisplay );
- }
- else {
- return ! paginate || calc>records || len===-1 ?
- records :
- calc;
- }
- },
-
- /**
- * The DataTables object for this table
- * @type object
- * @default null
- */
- "oInstance": null,
-
- /**
- * Unique identifier for each instance of the DataTables object. If there
- * is an ID on the table node, then it takes that value, otherwise an
- * incrementing internal counter is used.
- * @type string
- * @default null
- */
- "sInstance": null,
-
- /**
- * tabindex attribute value that is added to DataTables control elements, allowing
- * keyboard navigation of the table and its controls.
- */
- "iTabIndex": 0,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollHead": null,
-
- /**
- * DIV container for the footer scrolling table if scrolling
- */
- "nScrollFoot": null,
-
- /**
- * Last applied sort
- * @type array
- * @default []
- */
- "aLastSort": [],
-
- /**
- * Stored plug-in instances
- * @type object
- * @default {}
- */
- "oPlugins": {},
-
- /**
- * Function used to get a row's id from the row's data
- * @type function
- * @default null
- */
- "rowIdFn": null,
-
- /**
- * Data location where to store a row's id
- * @type string
- * @default null
- */
- "rowId": null
- };
-
- /**
- * Extension object for DataTables that is used to provide all extension
- * options.
- *
- * Note that the `DataTable.ext` object is available through
- * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is
- * also aliased to `jQuery.fn.dataTableExt` for historic reasons.
- * @namespace
- * @extends DataTable.models.ext
- */
-
-
- /**
- * DataTables extensions
- *
- * This namespace acts as a collection area for plug-ins that can be used to
- * extend DataTables capabilities. Indeed many of the build in methods
- * use this method to provide their own capabilities (sorting methods for
- * example).
- *
- * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy
- * reasons
- *
- * @namespace
- */
- DataTable.ext = _ext = {
- /**
- * Buttons. For use with the Buttons extension for DataTables. This is
- * defined here so other extensions can define buttons regardless of load
- * order. It is _not_ used by DataTables core.
- *
- * @type object
- * @default {}
- */
- buttons: {},
-
-
- /**
- * Element class names
- *
- * @type object
- * @default {}
- */
- classes: {},
-
-
- /**
- * DataTables build type (expanded by the download builder)
- *
- * @type string
- */
- builder: "-source-",
-
-
- /**
- * Error reporting.
- *
- * How should DataTables report an error. Can take the value 'alert',
- * 'throw', 'none' or a function.
- *
- * @type string|function
- * @default alert
- */
- errMode: "alert",
-
-
- /**
- * Feature plug-ins.
- *
- * This is an array of objects which describe the feature plug-ins that are
- * available to DataTables. These feature plug-ins are then available for
- * use through the `dom` initialisation option.
- *
- * Each feature plug-in is described by an object which must have the
- * following properties:
- *
- * * `fnInit` - function that is used to initialise the plug-in,
- * * `cFeature` - a character so the feature can be enabled by the `dom`
- * instillation option. This is case sensitive.
- *
- * The `fnInit` function has the following input parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- *
- * And the following return is expected:
- *
- * * {node|null} The element which contains your feature. Note that the
- * return may also be void if your plug-in does not require to inject any
- * DOM elements into DataTables control (`dom`) - for example this might
- * be useful when developing a plug-in which allows table control via
- * keyboard entry
- *
- * @type array
- *
- * @example
- * $.fn.dataTable.ext.features.push( {
- * "fnInit": function( oSettings ) {
- * return new TableTools( { "oDTSettings": oSettings } );
- * },
- * "cFeature": "T"
- * } );
- */
- feature: [],
-
-
- /**
- * Row searching.
- *
- * This method of searching is complimentary to the default type based
- * searching, and a lot more comprehensive as it allows you complete control
- * over the searching logic. Each element in this array is a function
- * (parameters described below) that is called for every row in the table,
- * and your logic decides if it should be included in the searching data set
- * or not.
- *
- * Searching functions have the following input parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- * 2. `{array|object}` Data for the row to be processed (same as the
- * original format that was passed in as the data source, or an array
- * from a DOM data source
- * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which
- * can be useful to retrieve the `TR` element if you need DOM interaction.
- *
- * And the following return is expected:
- *
- * * {boolean} Include the row in the searched result set (true) or not
- * (false)
- *
- * Note that as with the main search ability in DataTables, technically this
- * is "filtering", since it is subtractive. However, for consistency in
- * naming we call it searching here.
- *
- * @type array
- * @default []
- *
- * @example
- * // The following example shows custom search being applied to the
- * // fourth column (i.e. the data[3] index) based on two input values
- * // from the end-user, matching the data in a certain range.
- * $.fn.dataTable.ext.search.push(
- * function( settings, data, dataIndex ) {
- * var min = document.getElementById('min').value * 1;
- * var max = document.getElementById('max').value * 1;
- * var version = data[3] == "-" ? 0 : data[3]*1;
- *
- * if ( min == "" && max == "" ) {
- * return true;
- * }
- * else if ( min == "" && version < max ) {
- * return true;
- * }
- * else if ( min < version && "" == max ) {
- * return true;
- * }
- * else if ( min < version && version < max ) {
- * return true;
- * }
- * return false;
- * }
- * );
- */
- search: [],
-
-
- /**
- * Selector extensions
- *
- * The `selector` option can be used to extend the options available for the
- * selector modifier options (`selector-modifier` object data type) that
- * each of the three built in selector types offer (row, column and cell +
- * their plural counterparts). For example the Select extension uses this
- * mechanism to provide an option to select only rows, columns and cells
- * that have been marked as selected by the end user (`{selected: true}`),
- * which can be used in conjunction with the existing built in selector
- * options.
- *
- * Each property is an array to which functions can be pushed. The functions
- * take three attributes:
- *
- * * Settings object for the host table
- * * Options object (`selector-modifier` object type)
- * * Array of selected item indexes
- *
- * The return is an array of the resulting item indexes after the custom
- * selector has been applied.
- *
- * @type object
- */
- selector: {
- cell: [],
- column: [],
- row: []
- },
-
-
- /**
- * Internal functions, exposed for used in plug-ins.
- *
- * Please note that you should not need to use the internal methods for
- * anything other than a plug-in (and even then, try to avoid if possible).
- * The internal function may change between releases.
- *
- * @type object
- * @default {}
- */
- internal: {},
-
-
- /**
- * Legacy configuration options. Enable and disable legacy options that
- * are available in DataTables.
- *
- * @type object
- */
- legacy: {
- /**
- * Enable / disable DataTables 1.9 compatible server-side processing
- * requests
- *
- * @type boolean
- * @default null
- */
- ajax: null
- },
-
-
- /**
- * Pagination plug-in methods.
- *
- * Each entry in this object is a function and defines which buttons should
- * be shown by the pagination rendering method that is used for the table:
- * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the
- * buttons are displayed in the document, while the functions here tell it
- * what buttons to display. This is done by returning an array of button
- * descriptions (what each button will do).
- *
- * Pagination types (the four built in options and any additional plug-in
- * options defined here) can be used through the `paginationType`
- * initialisation parameter.
- *
- * The functions defined take two parameters:
- *
- * 1. `{int} page` The current page index
- * 2. `{int} pages` The number of pages in the table
- *
- * Each function is expected to return an array where each element of the
- * array can be one of:
- *
- * * `first` - Jump to first page when activated
- * * `last` - Jump to last page when activated
- * * `previous` - Show previous page when activated
- * * `next` - Show next page when activated
- * * `{int}` - Show page of the index given
- * * `{array}` - A nested array containing the above elements to add a
- * containing 'DIV' element (might be useful for styling).
- *
- * Note that DataTables v1.9- used this object slightly differently whereby
- * an object with two functions would be defined for each plug-in. That
- * ability is still supported by DataTables 1.10+ to provide backwards
- * compatibility, but this option of use is now decremented and no longer
- * documented in DataTables 1.10+.
- *
- * @type object
- * @default {}
- *
- * @example
- * // Show previous, next and current page buttons only
- * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {
- * return [ 'previous', page, 'next' ];
- * };
- */
- pager: {},
-
-
- renderer: {
- pageButton: {},
- header: {}
- },
-
-
- /**
- * Ordering plug-ins - custom data source
- *
- * The extension options for ordering of data available here is complimentary
- * to the default type based ordering that DataTables typically uses. It
- * allows much greater control over the the data that is being used to
- * order a column, but is necessarily therefore more complex.
- *
- * This type of ordering is useful if you want to do ordering based on data
- * live from the DOM (for example the contents of an 'input' element) rather
- * than just the static string that DataTables knows of.
- *
- * The way these plug-ins work is that you create an array of the values you
- * wish to be ordering for the column in question and then return that
- * array. The data in the array much be in the index order of the rows in
- * the table (not the currently ordering order!). Which order data gathering
- * function is run here depends on the `dt-init columns.orderDataType`
- * parameter that is used for the column (if any).
- *
- * The functions defined take two parameters:
- *
- * 1. `{object}` DataTables settings object: see
- * {@link DataTable.models.oSettings}
- * 2. `{int}` Target column index
- *
- * Each function is expected to return an array:
- *
- * * `{array}` Data for the column to be ordering upon
- *
- * @type array
- *
- * @example
- * // Ordering using `input` node values
- * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )
- * {
- * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
- * return $('input', td).val();
- * } );
- * }
- */
- order: {},
-
-
- /**
- * Type based plug-ins.
- *
- * Each column in DataTables has a type assigned to it, either by automatic
- * detection or by direct assignment using the `type` option for the column.
- * The type of a column will effect how it is ordering and search (plug-ins
- * can also make use of the column type if required).
- *
- * @namespace
- */
- type: {
- /**
- * Type detection functions.
- *
- * The functions defined in this object are used to automatically detect
- * a column's type, making initialisation of DataTables super easy, even
- * when complex data is in the table.
- *
- * The functions defined take two parameters:
- *
- * 1. `{*}` Data from the column cell to be analysed
- * 2. `{settings}` DataTables settings object. This can be used to
- * perform context specific type detection - for example detection
- * based on language settings such as using a comma for a decimal
- * place. Generally speaking the options from the settings will not
- * be required
- *
- * Each function is expected to return:
- *
- * * `{string|null}` Data type detected, or null if unknown (and thus
- * pass it on to the other type detection functions.
- *
- * @type array
- *
- * @example
- * // Currency type detection plug-in:
- * $.fn.dataTable.ext.type.detect.push(
- * function ( data, settings ) {
- * // Check the numeric part
- * if ( ! $.isNumeric( data.substring(1) ) ) {
- * return null;
- * }
- *
- * // Check prefixed by currency
- * if ( data.charAt(0) == '$' || data.charAt(0) == '&pound;' ) {
- * return 'currency';
- * }
- * return null;
- * }
- * );
- */
- detect: [],
-
-
- /**
- * Type based search formatting.
- *
- * The type based searching functions can be used to pre-format the
- * data to be search on. For example, it can be used to strip HTML
- * tags or to de-format telephone numbers for numeric only searching.
- *
- * Note that is a search is not defined for a column of a given type,
- * no search formatting will be performed.
- *
- * Pre-processing of searching data plug-ins - When you assign the sType
- * for a column (or have it automatically detected for you by DataTables
- * or a type detection plug-in), you will typically be using this for
- * custom sorting, but it can also be used to provide custom searching
- * by allowing you to pre-processing the data and returning the data in
- * the format that should be searched upon. This is done by adding
- * functions this object with a parameter name which matches the sType
- * for that target column. This is the corollary of <i>afnSortData</i>
- * for searching data.
- *
- * The functions defined take a single parameter:
- *
- * 1. `{*}` Data from the column cell to be prepared for searching
- *
- * Each function is expected to return:
- *
- * * `{string|null}` Formatted string that will be used for the searching.
- *
- * @type object
- * @default {}
- *
- * @example
- * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {
- * return d.replace(/\n/g," ").replace( /<.*?>/g, "" );
- * }
- */
- search: {},
-
-
- /**
- * Type based ordering.
- *
- * The column type tells DataTables what ordering to apply to the table
- * when a column is sorted upon. The order for each type that is defined,
- * is defined by the functions available in this object.
- *
- * Each ordering option can be described by three properties added to
- * this object:
- *
- * * `{type}-pre` - Pre-formatting function
- * * `{type}-asc` - Ascending order function
- * * `{type}-desc` - Descending order function
- *
- * All three can be used together, only `{type}-pre` or only
- * `{type}-asc` and `{type}-desc` together. It is generally recommended
- * that only `{type}-pre` is used, as this provides the optimal
- * implementation in terms of speed, although the others are provided
- * for compatibility with existing Javascript sort functions.
- *
- * `{type}-pre`: Functions defined take a single parameter:
- *
- * 1. `{*}` Data from the column cell to be prepared for ordering
- *
- * And return:
- *
- * * `{*}` Data to be sorted upon
- *
- * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort
- * functions, taking two parameters:
- *
- * 1. `{*}` Data to compare to the second parameter
- * 2. `{*}` Data to compare to the first parameter
- *
- * And returning:
- *
- * * `{*}` Ordering match: <0 if first parameter should be sorted lower
- * than the second parameter, ===0 if the two parameters are equal and
- * >0 if the first parameter should be sorted height than the second
- * parameter.
- *
- * @type object
- * @default {}
- *
- * @example
- * // Numeric ordering of formatted numbers with a pre-formatter
- * $.extend( $.fn.dataTable.ext.type.order, {
- * "string-pre": function(x) {
- * a = (a === "-" || a === "") ? 0 : a.replace( /[^\d\-\.]/g, "" );
- * return parseFloat( a );
- * }
- * } );
- *
- * @example
- * // Case-sensitive string ordering, with no pre-formatting method
- * $.extend( $.fn.dataTable.ext.order, {
- * "string-case-asc": function(x,y) {
- * return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- * },
- * "string-case-desc": function(x,y) {
- * return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- * }
- * } );
- */
- order: {}
- },
-
- /**
- * Unique DataTables instance counter
- *
- * @type int
- * @private
- */
- _unique: 0,
-
-
- //
- // Depreciated
- // The following properties are retained for backwards compatiblity only.
- // The should not be used in new projects and will be removed in a future
- // version
- //
-
- /**
- * Version check function.
- * @type function
- * @depreciated Since 1.10
- */
- fnVersionCheck: DataTable.fnVersionCheck,
-
-
- /**
- * Index for what 'this' index API functions should use
- * @type int
- * @deprecated Since v1.10
- */
- iApiIndex: 0,
-
-
- /**
- * jQuery UI class container
- * @type object
- * @deprecated Since v1.10
- */
- oJUIClasses: {},
-
-
- /**
- * Software version
- * @type string
- * @deprecated Since v1.10
- */
- sVersion: DataTable.version
- };
-
-
- //
- // Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts
- //
- $.extend( _ext, {
- afnFiltering: _ext.search,
- aTypes: _ext.type.detect,
- ofnSearch: _ext.type.search,
- oSort: _ext.type.order,
- afnSortData: _ext.order,
- aoFeatures: _ext.feature,
- oApi: _ext.internal,
- oStdClasses: _ext.classes,
- oPagination: _ext.pager
- } );
-
-
- $.extend( DataTable.ext.classes, {
- "sTable": "dataTable",
- "sNoFooter": "no-footer",
-
- /* Paging buttons */
- "sPageButton": "paginate_button",
- "sPageButtonActive": "current",
- "sPageButtonDisabled": "disabled",
-
- /* Striping classes */
- "sStripeOdd": "odd",
- "sStripeEven": "even",
-
- /* Empty row */
- "sRowEmpty": "dataTables_empty",
-
- /* Features */
- "sWrapper": "dataTables_wrapper",
- "sFilter": "dataTables_filter",
- "sInfo": "dataTables_info",
- "sPaging": "dataTables_paginate paging_", /* Note that the type is postfixed */
- "sLength": "dataTables_length",
- "sProcessing": "dataTables_processing",
-
- /* Sorting */
- "sSortAsc": "sorting_asc",
- "sSortDesc": "sorting_desc",
- "sSortable": "sorting", /* Sortable in both directions */
- "sSortableAsc": "sorting_asc_disabled",
- "sSortableDesc": "sorting_desc_disabled",
- "sSortableNone": "sorting_disabled",
- "sSortColumn": "sorting_", /* Note that an int is postfixed for the sorting order */
-
- /* Filtering */
- "sFilterInput": "",
-
- /* Page length */
- "sLengthSelect": "",
-
- /* Scrolling */
- "sScrollWrapper": "dataTables_scroll",
- "sScrollHead": "dataTables_scrollHead",
- "sScrollHeadInner": "dataTables_scrollHeadInner",
- "sScrollBody": "dataTables_scrollBody",
- "sScrollFoot": "dataTables_scrollFoot",
- "sScrollFootInner": "dataTables_scrollFootInner",
-
- /* Misc */
- "sHeaderTH": "",
- "sFooterTH": "",
-
- // Deprecated
- "sSortJUIAsc": "",
- "sSortJUIDesc": "",
- "sSortJUI": "",
- "sSortJUIAscAllowed": "",
- "sSortJUIDescAllowed": "",
- "sSortJUIWrapper": "",
- "sSortIcon": "",
- "sJUIHeader": "",
- "sJUIFooter": ""
- } );
-
-
- (function() {
-
- // Reused strings for better compression. Closure compiler appears to have a
- // weird edge case where it is trying to expand strings rather than use the
- // variable version. This results in about 200 bytes being added, for very
- // little preference benefit since it this run on script load only.
- var _empty = '';
- _empty = '';
-
- var _stateDefault = _empty + 'ui-state-default';
- var _sortIcon = _empty + 'css_right ui-icon ui-icon-';
- var _headerFooter = _empty + 'fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix';
-
- $.extend( DataTable.ext.oJUIClasses, DataTable.ext.classes, {
- /* Full numbers paging buttons */
- "sPageButton": "fg-button ui-button "+_stateDefault,
- "sPageButtonActive": "ui-state-disabled",
- "sPageButtonDisabled": "ui-state-disabled",
-
- /* Features */
- "sPaging": "dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi "+
- "ui-buttonset-multi paging_", /* Note that the type is postfixed */
-
- /* Sorting */
- "sSortAsc": _stateDefault+" sorting_asc",
- "sSortDesc": _stateDefault+" sorting_desc",
- "sSortable": _stateDefault+" sorting",
- "sSortableAsc": _stateDefault+" sorting_asc_disabled",
- "sSortableDesc": _stateDefault+" sorting_desc_disabled",
- "sSortableNone": _stateDefault+" sorting_disabled",
- "sSortJUIAsc": _sortIcon+"triangle-1-n",
- "sSortJUIDesc": _sortIcon+"triangle-1-s",
- "sSortJUI": _sortIcon+"carat-2-n-s",
- "sSortJUIAscAllowed": _sortIcon+"carat-1-n",
- "sSortJUIDescAllowed": _sortIcon+"carat-1-s",
- "sSortJUIWrapper": "DataTables_sort_wrapper",
- "sSortIcon": "DataTables_sort_icon",
-
- /* Scrolling */
- "sScrollHead": "dataTables_scrollHead "+_stateDefault,
- "sScrollFoot": "dataTables_scrollFoot "+_stateDefault,
-
- /* Misc */
- "sHeaderTH": _stateDefault,
- "sFooterTH": _stateDefault,
- "sJUIHeader": _headerFooter+" ui-corner-tl ui-corner-tr",
- "sJUIFooter": _headerFooter+" ui-corner-bl ui-corner-br"
- } );
-
- }());
-
-
-
- var extPagination = DataTable.ext.pager;
-
- function _numbers ( page, pages ) {
- var
- numbers = [],
- buttons = extPagination.numbers_length,
- half = Math.floor( buttons / 2 ),
- i = 1;
-
- if ( pages <= buttons ) {
- numbers = _range( 0, pages );
- }
- else if ( page <= half ) {
- numbers = _range( 0, buttons-2 );
- numbers.push( 'ellipsis' );
- numbers.push( pages-1 );
- }
- else if ( page >= pages - 1 - half ) {
- numbers = _range( pages-(buttons-2), pages );
- numbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6
- numbers.splice( 0, 0, 0 );
- }
- else {
- numbers = _range( page-half+2, page+half-1 );
- numbers.push( 'ellipsis' );
- numbers.push( pages-1 );
- numbers.splice( 0, 0, 'ellipsis' );
- numbers.splice( 0, 0, 0 );
- }
-
- numbers.DT_el = 'span';
- return numbers;
- }
-
-
- $.extend( extPagination, {
- simple: function ( page, pages ) {
- return [ 'previous', 'next' ];
- },
-
- full: function ( page, pages ) {
- return [ 'first', 'previous', 'next', 'last' ];
- },
-
- numbers: function ( page, pages ) {
- return [ _numbers(page, pages) ];
- },
-
- simple_numbers: function ( page, pages ) {
- return [ 'previous', _numbers(page, pages), 'next' ];
- },
-
- full_numbers: function ( page, pages ) {
- return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
- },
-
- // For testing and plug-ins to use
- _numbers: _numbers,
-
- // Number of number buttons (including ellipsis) to show. _Must be odd!_
- numbers_length: 7
- } );
-
-
- $.extend( true, DataTable.ext.renderer, {
- pageButton: {
- _: function ( settings, host, idx, buttons, page, pages ) {
- var classes = settings.oClasses;
- var lang = settings.oLanguage.oPaginate;
- var aria = settings.oLanguage.oAria.paginate || {};
- var btnDisplay, btnClass, counter=0;
-
- var attach = function( container, buttons ) {
- var i, ien, node, button;
- var clickHandler = function ( e ) {
- _fnPageChange( settings, e.data.action, true );
- };
-
- for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
- button = buttons[i];
-
- if ( $.isArray( button ) ) {
- var inner = $( '<'+(button.DT_el || 'div')+'/>' )
- .appendTo( container );
- attach( inner, button );
- }
- else {
- btnDisplay = null;
- btnClass = '';
-
- switch ( button ) {
- case 'ellipsis':
- container.append('<span class="ellipsis">&#x2026;</span>');
- break;
-
- case 'first':
- btnDisplay = lang.sFirst;
- btnClass = button + (page > 0 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'previous':
- btnDisplay = lang.sPrevious;
- btnClass = button + (page > 0 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'next':
- btnDisplay = lang.sNext;
- btnClass = button + (page < pages-1 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- case 'last':
- btnDisplay = lang.sLast;
- btnClass = button + (page < pages-1 ?
- '' : ' '+classes.sPageButtonDisabled);
- break;
-
- default:
- btnDisplay = button + 1;
- btnClass = page === button ?
- classes.sPageButtonActive : '';
- break;
- }
-
- if ( btnDisplay !== null ) {
- node = $('<a>', {
- 'class': classes.sPageButton+' '+btnClass,
- 'aria-controls': settings.sTableId,
- 'aria-label': aria[ button ],
- 'data-dt-idx': counter,
- 'tabindex': settings.iTabIndex,
- 'id': idx === 0 && typeof button === 'string' ?
- settings.sTableId +'_'+ button :
- null
- } )
- .html( btnDisplay )
- .appendTo( container );
-
- _fnBindAction(
- node, {action: button}, clickHandler
- );
-
- counter++;
- }
- }
- }
- };
-
- // IE9 throws an 'unknown error' if document.activeElement is used
- // inside an iframe or frame. Try / catch the error. Not good for
- // accessibility, but neither are frames.
- var activeEl;
-
- try {
- // Because this approach is destroying and recreating the paging
- // elements, focus is lost on the select button which is bad for
- // accessibility. So we want to restore focus once the draw has
- // completed
- activeEl = $(host).find(document.activeElement).data('dt-idx');
- }
- catch (e) {}
-
- attach( $(host).empty(), buttons );
-
- if ( activeEl ) {
- $(host).find( '[data-dt-idx='+activeEl+']' ).focus();
- }
- }
- }
- } );
-
-
-
- // Built in type detection. See model.ext.aTypes for information about
- // what is required from this methods.
- $.extend( DataTable.ext.type.detect, [
- // Plain numbers - first since V8 detects some plain numbers as dates
- // e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _isNumber( d, decimal ) ? 'num'+decimal : null;
- },
-
- // Dates (only those recognised by the browser's Date.parse)
- function ( d, settings )
- {
- // V8 will remove any unknown characters at the start and end of the
- // expression, leading to false matches such as `$245.12` or `10%` being
- // a valid date. See forum thread 18941 for detail.
- if ( d && !(d instanceof Date) && ( ! _re_date_start.test(d) || ! _re_date_end.test(d) ) ) {
- return null;
- }
- var parsed = Date.parse(d);
- return (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;
- },
-
- // Formatted numbers
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;
- },
-
- // HTML numeric
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;
- },
-
- // HTML numeric, formatted
- function ( d, settings )
- {
- var decimal = settings.oLanguage.sDecimal;
- return _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;
- },
-
- // HTML (this is strict checking - there must be html)
- function ( d, settings )
- {
- return _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?
- 'html' : null;
- }
- ] );
-
-
-
- // Filter formatting functions. See model.ext.ofnSearch for information about
- // what is required from these methods.
- //
- // Note that additional search methods are added for the html numbers and
- // html formatted numbers by `_addNumericSort()` when we know what the decimal
- // place is
-
-
- $.extend( DataTable.ext.type.search, {
- html: function ( data ) {
- return _empty(data) ?
- data :
- typeof data === 'string' ?
- data
- .replace( _re_new_lines, " " )
- .replace( _re_html, "" ) :
- '';
- },
-
- string: function ( data ) {
- return _empty(data) ?
- data :
- typeof data === 'string' ?
- data.replace( _re_new_lines, " " ) :
- data;
- }
- } );
-
-
-
- var __numericReplace = function ( d, decimalPlace, re1, re2 ) {
- if ( d !== 0 && (!d || d === '-') ) {
- return -Infinity;
- }
-
- // If a decimal place other than `.` is used, it needs to be given to the
- // function so we can detect it and replace with a `.` which is the only
- // decimal place Javascript recognises - it is not locale aware.
- if ( decimalPlace ) {
- d = _numToDecimal( d, decimalPlace );
- }
-
- if ( d.replace ) {
- if ( re1 ) {
- d = d.replace( re1, '' );
- }
-
- if ( re2 ) {
- d = d.replace( re2, '' );
- }
- }
-
- return d * 1;
- };
-
-
- // Add the numeric 'deformatting' functions for sorting and search. This is done
- // in a function to provide an easy ability for the language options to add
- // additional methods if a non-period decimal place is used.
- function _addNumericSort ( decimalPlace ) {
- $.each(
- {
- // Plain numbers
- "num": function ( d ) {
- return __numericReplace( d, decimalPlace );
- },
-
- // Formatted numbers
- "num-fmt": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_formatted_numeric );
- },
-
- // HTML numeric
- "html-num": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_html );
- },
-
- // HTML numeric, formatted
- "html-num-fmt": function ( d ) {
- return __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );
- }
- },
- function ( key, fn ) {
- // Add the ordering method
- _ext.type.order[ key+decimalPlace+'-pre' ] = fn;
-
- // For HTML types add a search formatter that will strip the HTML
- if ( key.match(/^html\-/) ) {
- _ext.type.search[ key+decimalPlace ] = _ext.type.search.html;
- }
- }
- );
- }
-
-
- // Default sort methods
- $.extend( _ext.type.order, {
- // Dates
- "date-pre": function ( d ) {
- return Date.parse( d ) || 0;
- },
-
- // html
- "html-pre": function ( a ) {
- return _empty(a) ?
- '' :
- a.replace ?
- a.replace( /<.*?>/g, "" ).toLowerCase() :
- a+'';
- },
-
- // string
- "string-pre": function ( a ) {
- // This is a little complex, but faster than always calling toString,
- // http://jsperf.com/tostring-v-check
- return _empty(a) ?
- '' :
- typeof a === 'string' ?
- a.toLowerCase() :
- ! a.toString ?
- '' :
- a.toString();
- },
-
- // string-asc and -desc are retained only for compatibility with the old
- // sort methods
- "string-asc": function ( x, y ) {
- return ((x < y) ? -1 : ((x > y) ? 1 : 0));
- },
-
- "string-desc": function ( x, y ) {
- return ((x < y) ? 1 : ((x > y) ? -1 : 0));
- }
- } );
-
-
- // Numeric sorting types - order doesn't matter here
- _addNumericSort( '' );
-
-
- $.extend( true, DataTable.ext.renderer, {
- header: {
- _: function ( settings, cell, column, classes ) {
- // No additional mark-up required
- // Attach a sort listener to update on sort - note that using the
- // `DT` namespace will allow the event to be removed automatically
- // on destroy, while the `dt` namespaced event is the one we are
- // listening for
- $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
- if ( settings !== ctx ) { // need to check this this is the host
- return; // table, not a nested one
- }
-
- var colIdx = column.idx;
-
- cell
- .removeClass(
- column.sSortingClass +' '+
- classes.sSortAsc +' '+
- classes.sSortDesc
- )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortDesc :
- column.sSortingClass
- );
- } );
- },
-
- jqueryui: function ( settings, cell, column, classes ) {
- $('<div/>')
- .addClass( classes.sSortJUIWrapper )
- .append( cell.contents() )
- .append( $('<span/>')
- .addClass( classes.sSortIcon+' '+column.sSortingClassJUI )
- )
- .appendTo( cell );
-
- // Attach a sort listener to update on sort
- $(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {
- if ( settings !== ctx ) {
- return;
- }
-
- var colIdx = column.idx;
-
- cell
- .removeClass( classes.sSortAsc +" "+classes.sSortDesc )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortDesc :
- column.sSortingClass
- );
-
- cell
- .find( 'span.'+classes.sSortIcon )
- .removeClass(
- classes.sSortJUIAsc +" "+
- classes.sSortJUIDesc +" "+
- classes.sSortJUI +" "+
- classes.sSortJUIAscAllowed +" "+
- classes.sSortJUIDescAllowed
- )
- .addClass( columns[ colIdx ] == 'asc' ?
- classes.sSortJUIAsc : columns[ colIdx ] == 'desc' ?
- classes.sSortJUIDesc :
- column.sSortingClassJUI
- );
- } );
- }
- }
- } );
-
- /*
- * Public helper functions. These aren't used internally by DataTables, or
- * called by any of the options passed into DataTables, but they can be used
- * externally by developers working with DataTables. They are helper functions
- * to make working with DataTables a little bit easier.
- */
-
- var __htmlEscapeEntities = function ( d ) {
- return typeof d === 'string' ?
- d.replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') :
- d;
- };
-
- /**
- * Helpers for `columns.render`.
- *
- * The options defined here can be used with the `columns.render` initialisation
- * option to provide a display renderer. The following functions are defined:
- *
- * * `number` - Will format numeric data (defined by `columns.data`) for
- * display, retaining the original unformatted data for sorting and filtering.
- * It takes 5 parameters:
- * * `string` - Thousands grouping separator
- * * `string` - Decimal point indicator
- * * `integer` - Number of decimal points to show
- * * `string` (optional) - Prefix.
- * * `string` (optional) - Postfix (/suffix).
- * * `text` - Escape HTML to help prevent XSS attacks. It has no optional
- * parameters.
- *
- * @example
- * // Column definition using the number renderer
- * {
- * data: "salary",
- * render: $.fn.dataTable.render.number( '\'', '.', 0, '$' )
- * }
- *
- * @namespace
- */
- DataTable.render = {
- number: function ( thousands, decimal, precision, prefix, postfix ) {
- return {
- display: function ( d ) {
- if ( typeof d !== 'number' && typeof d !== 'string' ) {
- return d;
- }
-
- var negative = d < 0 ? '-' : '';
- var flo = parseFloat( d );
-
- // If NaN then there isn't much formatting that we can do - just
- // return immediately, escaping any HTML (this was supposed to
- // be a number after all)
- if ( isNaN( flo ) ) {
- return __htmlEscapeEntities( d );
- }
-
- d = Math.abs( flo );
-
- var intPart = parseInt( d, 10 );
- var floatPart = precision ?
- decimal+(d - intPart).toFixed( precision ).substring( 2 ):
- '';
-
- return negative + (prefix||'') +
- intPart.toString().replace(
- /\B(?=(\d{3})+(?!\d))/g, thousands
- ) +
- floatPart +
- (postfix||'');
- }
- };
- },
-
- text: function () {
- return {
- display: __htmlEscapeEntities
- };
- }
- };
-
-
- /*
- * This is really a good bit rubbish this method of exposing the internal methods
- * publicly... - To be fixed in 2.0 using methods on the prototype
- */
-
-
- /**
- * Create a wrapper function for exporting an internal functions to an external API.
- * @param {string} fn API function name
- * @returns {function} wrapped function
- * @memberof DataTable#internal
- */
- function _fnExternApiFunc (fn)
- {
- return function() {
- var args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(
- Array.prototype.slice.call(arguments)
- );
- return DataTable.ext.internal[fn].apply( this, args );
- };
- }
-
-
- /**
- * Reference to internal functions for use by plug-in developers. Note that
- * these methods are references to internal functions and are considered to be
- * private. If you use these methods, be aware that they are liable to change
- * between versions.
- * @namespace
- */
- $.extend( DataTable.ext.internal, {
- _fnExternApiFunc: _fnExternApiFunc,
- _fnBuildAjax: _fnBuildAjax,
- _fnAjaxUpdate: _fnAjaxUpdate,
- _fnAjaxParameters: _fnAjaxParameters,
- _fnAjaxUpdateDraw: _fnAjaxUpdateDraw,
- _fnAjaxDataSrc: _fnAjaxDataSrc,
- _fnAddColumn: _fnAddColumn,
- _fnColumnOptions: _fnColumnOptions,
- _fnAdjustColumnSizing: _fnAdjustColumnSizing,
- _fnVisibleToColumnIndex: _fnVisibleToColumnIndex,
- _fnColumnIndexToVisible: _fnColumnIndexToVisible,
- _fnVisbleColumns: _fnVisbleColumns,
- _fnGetColumns: _fnGetColumns,
- _fnColumnTypes: _fnColumnTypes,
- _fnApplyColumnDefs: _fnApplyColumnDefs,
- _fnHungarianMap: _fnHungarianMap,
- _fnCamelToHungarian: _fnCamelToHungarian,
- _fnLanguageCompat: _fnLanguageCompat,
- _fnBrowserDetect: _fnBrowserDetect,
- _fnAddData: _fnAddData,
- _fnAddTr: _fnAddTr,
- _fnNodeToDataIndex: _fnNodeToDataIndex,
- _fnNodeToColumnIndex: _fnNodeToColumnIndex,
- _fnGetCellData: _fnGetCellData,
- _fnSetCellData: _fnSetCellData,
- _fnSplitObjNotation: _fnSplitObjNotation,
- _fnGetObjectDataFn: _fnGetObjectDataFn,
- _fnSetObjectDataFn: _fnSetObjectDataFn,
- _fnGetDataMaster: _fnGetDataMaster,
- _fnClearTable: _fnClearTable,
- _fnDeleteIndex: _fnDeleteIndex,
- _fnInvalidate: _fnInvalidate,
- _fnGetRowElements: _fnGetRowElements,
- _fnCreateTr: _fnCreateTr,
- _fnBuildHead: _fnBuildHead,
- _fnDrawHead: _fnDrawHead,
- _fnDraw: _fnDraw,
- _fnReDraw: _fnReDraw,
- _fnAddOptionsHtml: _fnAddOptionsHtml,
- _fnDetectHeader: _fnDetectHeader,
- _fnGetUniqueThs: _fnGetUniqueThs,
- _fnFeatureHtmlFilter: _fnFeatureHtmlFilter,
- _fnFilterComplete: _fnFilterComplete,
- _fnFilterCustom: _fnFilterCustom,
- _fnFilterColumn: _fnFilterColumn,
- _fnFilter: _fnFilter,
- _fnFilterCreateSearch: _fnFilterCreateSearch,
- _fnEscapeRegex: _fnEscapeRegex,
- _fnFilterData: _fnFilterData,
- _fnFeatureHtmlInfo: _fnFeatureHtmlInfo,
- _fnUpdateInfo: _fnUpdateInfo,
- _fnInfoMacros: _fnInfoMacros,
- _fnInitialise: _fnInitialise,
- _fnInitComplete: _fnInitComplete,
- _fnLengthChange: _fnLengthChange,
- _fnFeatureHtmlLength: _fnFeatureHtmlLength,
- _fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,
- _fnPageChange: _fnPageChange,
- _fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,
- _fnProcessingDisplay: _fnProcessingDisplay,
- _fnFeatureHtmlTable: _fnFeatureHtmlTable,
- _fnScrollDraw: _fnScrollDraw,
- _fnApplyToChildren: _fnApplyToChildren,
- _fnCalculateColumnWidths: _fnCalculateColumnWidths,
- _fnThrottle: _fnThrottle,
- _fnConvertToWidth: _fnConvertToWidth,
- _fnGetWidestNode: _fnGetWidestNode,
- _fnGetMaxLenString: _fnGetMaxLenString,
- _fnStringToCss: _fnStringToCss,
- _fnSortFlatten: _fnSortFlatten,
- _fnSort: _fnSort,
- _fnSortAria: _fnSortAria,
- _fnSortListener: _fnSortListener,
- _fnSortAttachListener: _fnSortAttachListener,
- _fnSortingClasses: _fnSortingClasses,
- _fnSortData: _fnSortData,
- _fnSaveState: _fnSaveState,
- _fnLoadState: _fnLoadState,
- _fnSettingsFromNode: _fnSettingsFromNode,
- _fnLog: _fnLog,
- _fnMap: _fnMap,
- _fnBindAction: _fnBindAction,
- _fnCallbackReg: _fnCallbackReg,
- _fnCallbackFire: _fnCallbackFire,
- _fnLengthOverflow: _fnLengthOverflow,
- _fnRenderer: _fnRenderer,
- _fnDataSource: _fnDataSource,
- _fnRowAttributes: _fnRowAttributes,
- _fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant
- // in 1.10, so this dead-end function is
- // added to prevent errors
- } );
-
-
- // jQuery access
- $.fn.dataTable = DataTable;
-
- // Provide access to the host jQuery object (circular reference)
- DataTable.$ = $;
-
- // Legacy aliases
- $.fn.dataTableSettings = DataTable.settings;
- $.fn.dataTableExt = DataTable.ext;
-
- // With a capital `D` we return a DataTables API instance rather than a
- // jQuery object
- $.fn.DataTable = function ( opts ) {
- return $(this).dataTable( opts ).api();
- };
-
- // All properties that are available to $.fn.dataTable should also be
- // available on $.fn.DataTable
- $.each( DataTable, function ( prop, val ) {
- $.fn.DataTable[ prop ] = val;
- } );
-
-
- // Information about events fired by DataTables - for documentation.
- /**
- * Draw event, fired whenever the table is redrawn on the page, at the same
- * point as fnDrawCallback. This may be useful for binding events or
- * performing calculations when the table is altered at all.
- * @name DataTable#draw.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Search event, fired when the searching applied to the table (using the
- * built-in global search, or column filters) is altered.
- * @name DataTable#search.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Page change event, fired when the paging of the table is altered.
- * @name DataTable#page.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Order event, fired when the ordering applied to the table is altered.
- * @name DataTable#order.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * DataTables initialisation complete event, fired when the table is fully
- * drawn, including Ajax data loaded, if Ajax data is required.
- * @name DataTable#init.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The JSON object request from the server - only
- * present if client-side Ajax sourced data is used</li></ol>
- */
-
- /**
- * State save event, fired when the table has changed state a new state save
- * is required. This event allows modification of the state saving object
- * prior to actually doing the save, including addition or other state
- * properties (for plug-ins) or modification of a DataTables core property.
- * @name DataTable#stateSaveParams.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The state information to be saved
- */
-
- /**
- * State load event, fired when the table is loading state from the stored
- * data, but prior to the settings object being modified by the saved state
- * - allowing modification of the saved state is required or loading of
- * state for a plug-in.
- * @name DataTable#stateLoadParams.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * State loaded event, fired when state has been loaded from stored data and
- * the settings object has been modified by the loaded data.
- * @name DataTable#stateLoaded.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {object} json The saved state information
- */
-
- /**
- * Processing event, fired when DataTables is doing some kind of processing
- * (be it, order, searcg or anything else). It can be used to indicate to
- * the end user that there is something happening, or that something has
- * finished.
- * @name DataTable#processing.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} oSettings DataTables settings object
- * @param {boolean} bShow Flag for if DataTables is doing processing or not
- */
-
- /**
- * Ajax (XHR) event, fired whenever an Ajax request is completed from a
- * request to made to the server for new data. This event is called before
- * DataTables processed the returned data, so it can also be used to pre-
- * process the data returned from the server, if needed.
- *
- * Note that this trigger is called in `fnServerData`, if you override
- * `fnServerData` and which to use this event, you need to trigger it in you
- * success function.
- * @name DataTable#xhr.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- * @param {object} json JSON returned from the server
- *
- * @example
- * // Use a custom property returned from the server in another DOM element
- * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
- * $('#status').html( json.status );
- * } );
- *
- * @example
- * // Pre-process the data returned from the server
- * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {
- * for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {
- * json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;
- * }
- * // Note no return - manipulate the data directly in the JSON object.
- * } );
- */
-
- /**
- * Destroy event, fired when the DataTable is destroyed by calling fnDestroy
- * or passing the bDestroy:true parameter in the initialisation object. This
- * can be used to remove bound events, added DOM nodes, etc.
- * @name DataTable#destroy.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Page length change event, fired when number of records to show on each
- * page (the length) is changed.
- * @name DataTable#length.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- * @param {integer} len New length
- */
-
- /**
- * Column sizing has changed.
- * @name DataTable#column-sizing.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- */
-
- /**
- * Column visibility has changed.
- * @name DataTable#column-visibility.dt
- * @event
- * @param {event} e jQuery event object
- * @param {object} o DataTables settings object {@link DataTable.models.oSettings}
- * @param {int} column Column index
- * @param {bool} vis `false` if column now hidden, or `true` if visible
- */
-
- return $.fn.dataTable;
-}));
diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.css b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.css
deleted file mode 100644
index b6fb737..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.css
+++ /dev/null
@@ -1 +0,0 @@
-table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc{cursor:pointer;*cursor:hand}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{-webkit-box-sizing:content-box;box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table,.dataTables_wrapper.no-footer div.dataTables_scrollBody table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.js b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.js
deleted file mode 100644
index e28e037..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.js
+++ /dev/null
@@ -1,166 +0,0 @@
-/*!
- DataTables 1.10.11
- ©2008-2015 SpryMedia Ltd - datatables.net/license
-*/
-(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(D){return h(D,window,document)}):"object"===typeof exports?module.exports=function(D,I){D||(D=window);I||(I="undefined"!==typeof window?require("jquery"):require("jquery")(D));return h(I,D,D.document)}:h(jQuery,window,document)})(function(h,D,I,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),
-d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function K(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),K(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&E(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&E(a,a,"sZeroRecords","sLoadingRecords");
-a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
-a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&K(m.models.oSearch,a[b])}function fb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;b&&!h.isArray(b)&&(a.aDataSort=[b])}function gb(a){if(!m.__browser){var b={};m.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,
-width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function hb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&
-(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:I.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);ja(a,d,h(b).data())}function ja(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=
-(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),K(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),E(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),E(b,c,"aDataSort"));var g=b.mData,j=Q(g),i=b.mRender?Q(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&
-(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return R(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):
-!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function U(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&ka(a);u(a,null,"column-sizing",[a])}function Z(a,b){var c=la(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function $(a,b){var c=la(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}
-function aa(a){return h(F(a.aoColumns,"nTh")).filter(":visible").length}function la(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ia(a){var b=a.aoColumns,c=a.aoData,d=m.ext.type.detect,e,f,g,j,i,h,l,q,t;e=0;for(f=b.length;e<f;e++)if(l=b[e],t=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){t[i]===k&&(t[i]=B(a,i,e,"type"));q=d[g](t[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=
-q;break}}l.sType||(l.sType="string")}}function ib(a,b,c,d){var e,f,g,j,i,n,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var q=n.targets!==k?n.targets:n.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ga(a);d(q[f],n)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}
-function N(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ja(a,e,c,d);return e}function ma(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ka(a,e);return N(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,
-i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(L(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function jb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function La(a){return h.map(a.match(/(\\.|[^\.])+/g)||
-[""],function(a){return a.replace(/\\./g,".")})}function Q(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=Q(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=La(f);for(var i=0,n=j.length;i<n;i++){f=j[i].match(ba);g=
-j[i].match(V);if(f){j[i]=j[i].replace(ba,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(n=a.length;i<n;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(V,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function R(a){if(h.isPlainObject(a))return R(a._);if(null===a)return function(){};if("function"===
-typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=La(e),f;f=e[e.length-1];for(var g,j,i=0,n=e.length-1;i<n;i++){g=e[i].match(ba);j=e[i].match(V);if(g){e[i]=e[i].replace(ba,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(n=d.length;j<n;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(V,""),a=a[e[i]](d));if(null===a[e[i]]||
-a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(V))a[f.replace(V,"")](d);else a[f.replace(ba,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ma(a){return F(a.aoData,"_aData")}function na(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function oa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function ca(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);
-c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;Na(a,e)}}function Ka(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,n,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],t=function(a,b){if("string"===typeof a){var c=a.indexOf("@");
--1!==c&&(c=a.substring(c+1),R(a)(d,b.getAttribute(c)))}},S=function(a){if(c===k||c===i)j=l[i],n=h.trim(a.innerHTML),j&&j._bAttrSrc?(R(j.mData._)(d,n),t(j.mData.sort,a),t(j.mData.type,a),t(j.mData.filter,a)):q?(j._setter||(j._setter=R(j.mData)),j._setter(d,n)):d[i]=n;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)S(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)S(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&R(a.rowId)(d,b);return{data:d,cells:e}}
-function Ja(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,n,l,q;if(null===e.nTr){j=c||I.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;Na(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){n=a.aoColumns[l];i=c?d[l]:I.createElement(n.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||n.mRender||n.mData!==l)&&(!h.isPlainObject(n.mData)||n.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");n.sClass&&(i.className+=" "+n.sClass);n.bVisible&&!c?j.appendChild(i):!n.bVisible&&c&&i.parentNode.removeChild(i);
-n.fnCreatedCell&&n.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}u(a,"aoRowCreatedCallback",null,[j,f,b])}e.nTr.setAttribute("role","row")}function Na(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?pa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function kb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===
-h("th, td",g).length,n=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Pa(a,"header")(a,d,f,n);i&&da(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);
-if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function ea(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,n;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(n=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);
-for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+n]!==k&&g[d][f].cell==g[d][f+n].cell;){for(c=0;c<i;c++)j[d+c][f+n]=1;n++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",n)}}}}function O(a){var b=u(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=
--1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!lb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==e){var t=d[c%e];q._sRowStripe!=t&&(h(l).removeClass(q._sRowStripe).addClass(t),q._sRowStripe=t)}u(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:
-f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:aa(a),"class":a.oClasses.sRowEmpty}).html(c))[0];u(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);u(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));u(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;
-c.bSort&&mb(a);d?fa(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,t=0;t<f.length;t++){g=null;j=f[t];if("<"==j){i=h("<div/>")[0];
-n=f[t+1];if("'"==n||'"'==n){l="";for(q=2;f[t+q]!=n;)l+=f[t+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;t+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=ob(a);else if("f"==j&&d.bFilter)g=pb(a);else if("r"==j&&d.bProcessing)g=qb(a);else if("t"==j)g=rb(a);else if("i"==j&&d.bInfo)g=sb(a);else if("p"==
-j&&d.bPaginate)g=tb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q<n;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function da(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,n,l,q,t;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");
-q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;n=g;t=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][n+j]={cell:e,unique:t},a[f+g].nTr=d}e=e.nextSibling}}}function qa(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],da(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function ra(a,b,c){u(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},
-e=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){u(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var n=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&n?n:h.extend(!0,b,n);delete g.data}n={data:b,success:function(b){var c=b.error||b.sError;c&&L(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=u(a,null,"xhr",
-[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?L(a,0,"Invalid JSON response",1):4===b.readyState&&L(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;u(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(n,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(n,g)),g.data=f)}function lb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,
-!0),ra(a,ub(a),function(b){vb(a,b)}),!1):!0}function ub(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,n,l,q=W(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var k=function(a,b){j.push({name:a,value:b})};k("sEcho",a.iDraw);k("iColumns",c);k("sColumns",F(b,"sName").join(","));k("iDisplayStart",g);k("iDisplayLength",i);var S={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)n=b[g],
-l=f[g],i="function"==typeof n.mData?"function":n.mData,S.columns.push({data:i,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),k("mDataProp_"+g,i),d.bFilter&&(k("sSearch_"+g,l.sSearch),k("bRegex_"+g,l.bRegex),k("bSearchable_"+g,n.bSearchable)),d.bSort&&k("bSortable_"+g,n.bSortable);d.bFilter&&(k("sSearch",e.sSearch),k("bRegex",e.bRegex));d.bSort&&(h.each(q,function(a,b){S.order.push({column:b.col,dir:b.dir});k("iSortCol_"+a,b.col);k("sSortDir_"+
-a,b.dir)}),k("iSortingCols",q.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:S:b?j:S}function vb(a,b){var c=sa(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}na(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)N(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;O(a);a._bInitComplete||
-ta(a,b);a.bAjaxDataGet=!0;C(a,!1)}function sa(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?Q(c)(b):b}function pb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?
-"":this.value;b!=e.sSearch&&(fa(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,O(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",g?ua(f,g):f).bind("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==I.activeElement&&i.val(e.sSearch)}catch(d){}});
-return b[0]}function fa(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){wb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)xb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);yb(a)}else f(b);a.bFiltered=!0;u(a,null,"search",[a])}function yb(a){for(var b=
-m.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,n=c.length;i<n;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function xb(a,b,c,d,e,f){if(""!==b)for(var g=a.aiDisplay,d=Qa(b,d,e,f),e=g.length-1;0<=e;e--)b=a.aoData[g[e]]._aFilterData[c],d.test(b)||g.splice(e,1)}function wb(a,b,c,d,e,f){var d=Qa(b,d,e,f),e=a.oPreviousSearch.sSearch,f=a.aiDisplayMaster,g;0!==m.ext.search.length&&(c=!0);g=zb(a);if(0>=b.length)a.aiDisplay=f.slice();
-else{if(g||c||e.length>b.length||0!==b.indexOf(e)||a.bSorted)a.aiDisplay=f.slice();b=a.aiDisplay;for(c=b.length-1;0<=c;c--)d.test(a.aoData[b[c]]._sFilterRow)||b.splice(c,1)}}function Qa(a,b,c,d){a=b?a:va(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function va(a){return a.replace(Zb,"\\$1")}function zb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=
-m.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(wa.innerHTML=i,i=$b?wa.textContent:wa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join(" ");c=!0}return c}function Ab(a){return{search:a.sSearch,smart:a.bSmart,
-regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Bb(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function sb(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Cb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Cb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,
-d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Db(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Db(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,
-c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ga(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){nb(a);kb(a);ea(a,a.aoHeader);ea(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=x(f.sWidth));u(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?ra(a,[],function(c){var f=sa(a,c);for(b=0;b<f.length;b++)N(a,f[b]);
-a.iInitDisplayStart=d;T(a);C(a,!1);ta(a,c)},a):(C(a,!1),ta(a))}else setTimeout(function(){ga(a)},200)}function ta(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&U(a);u(a,null,"plugin-init",[a,b]);u(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);u(a,null,"length",[a,c])}function ob(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),
-g=0,j=f.length;g<j;g++)e[0][g]=new Option(d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).bind("change.DT",function(){Ra(a,h(this).val());O(a)});h(a.nTable).bind("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function tb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},
-b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ta(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===
-e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:L(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(u(a,null,"page",[a]),c&&O(a));return b}function qb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",
-b?"block":"none");u(a,null,"processing",[a,b])}function rb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:x(d):"100%"}).append(h("<div/>",
-{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:x(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:x(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",
-0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],t=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(t.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=t;a.aoDrawCallback.push({fn:ka,sName:"scrolling"});return i[0]}function ka(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"),
-j=a.nScrollBody,l=h(j),q=j.style,t=h(a.nScrollFoot).children("div"),m=t.children("table"),o=h(a.nTHead),G=h(a.nTable),p=G[0],r=p.style,u=a.nTFoot?h(a.nTFoot):null,Eb=a.oBrowser,Ua=Eb.bScrollOversize,s=F(a.aoColumns,"nTh"),P,v,w,y,z=[],A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};v=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==v&&a.scrollBarVis!==k)a.scrollBarVis=v,U(a);else{a.scrollBarVis=v;G.children("thead, tfoot").remove();
-u&&(w=u.clone().prependTo(G),P=u.find("tr"),w=w.find("tr"));y=o.clone().prependTo(G);o=o.find("tr");v=y.find("tr");y.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(qa(a,y),function(b,c){D=Z(a,b);c.style.width=a.aoColumns[D].sWidth});u&&J(function(a){a.style.width=""},w);f=G.outerWidth();if(""===c){r.width="100%";if(Ua&&(G.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=x(G.outerWidth()-b);f=G.outerWidth()}else""!==d&&(r.width=
-x(d),f=G.outerWidth());J(E,v);J(function(a){B.push(a.innerHTML);z.push(x(h(a).css("width")))},v);J(function(a,b){if(h.inArray(a,s)!==-1)a.style.width=z[b]},o);h(v).height(0);u&&(J(E,w),J(function(a){C.push(a.innerHTML);A.push(x(h(a).css("width")))},w),J(function(a,b){a.style.width=A[b]},P),h(w).height(0));J(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+B[b]+"</div>";a.style.width=z[b]},v);u&&J(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+
-C[b]+"</div>";a.style.width=A[b]},w);if(G.outerWidth()<f){P=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(Ua&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=x(P-b);(""===c||""!==d)&&L(a,1,"Possible column misalignment",6)}else P="100%";q.width=x(P);g.width=x(P);u&&(a.nScrollFoot.style.width=x(P));!e&&Ua&&(q.height=x(p.offsetHeight+b));c=G.outerWidth();n[0].style.width=x(c);i.width=x(c);d=G.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+
-(Eb.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=x(c),t[0].style.width=x(c),t[0].style[e]=d?b+"px":"0px");G.children("colgroup").insertBefore(G.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function J(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Ha(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,
-e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=la(a,"bVisible"),n=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,t=!1,m,o,p=a.oBrowser,d=p.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)o=c[i[m]],null!==o.sWidth&&(o.sWidth=Fb(o.sWidthOrig,k),t=!0);if(d||!t&&!f&&!e&&j==aa(a)&&j==n.length)for(m=0;m<j;m++)i=Z(a,m),null!==i&&(c[i].sWidth=x(n.eq(m).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var r=h("<tr/>").appendTo(j.find("tbody"));
-j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=qa(a,j.find("thead")[0]);for(m=0;m<i.length;m++)o=c[i[m]],n[m].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?x(o.sWidthOrig):"",o.sWidthOrig&&f&&h(n[m]).append(h("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m<i.length;m++)t=i[m],o=c[t],h(Gb(a,t)).clone(!1).append(o.sContentPadding).appendTo(r);h("[name]",
-j).removeAttr("name");o=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(m=e=0;m<i.length;m++)k=h(n[m]),g=k.outerWidth()-k.width(),k=p.bBounding?Math.ceil(n[m].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[m]].sWidth=x(k-g);b.style.width=x(e);o.remove()}l&&(b.style.width=
-x(l));if((l||f)&&!a._reszEvt)b=function(){h(D).bind("resize.DT-"+a.sInstance,ua(function(){U(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function ua(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,j=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,j)},c)):(d=g,a.apply(b,j))}}function Fb(a,b){if(!a)return 0;var c=h("<div/>").css("width",x(a)).appendTo(b||I.body),d=c[0].offsetWidth;c.remove();return d}function Gb(a,b){var c=Hb(a,b);if(0>c)return null;var d=
-a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Hb(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(ac,""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function x(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,
-a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){i=n[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||"string",n[a]._idx===k&&(n[a]._idx=h.inArray(n[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:n[a][1],index:n[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return d}function mb(a){var b,c,d=[],e=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ia(a);h=W(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Ib(a,
-j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],e=m[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];
-g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Jb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Va(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,
-g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,F(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Oa(a,b,c,d){var e=
-a.aoColumns[c];Wa(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Va(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Va(a,c,b.shiftKey,d))})}function xa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=W(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(F(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(F(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Ib(a,
-b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,$(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function ya(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Ab(a.oPreviousSearch),columns:h.map(a.aoColumns,
-function(b,d){return{visible:b.bVisible,search:Ab(a.aoPreSearchCols[d])}})};u(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Kb(a){var b,c,d=a.aoColumns;if(a.oFeatures.bStateSave){var e=a.fnStateLoadCallback.call(a.oInstance,a);if(e&&e.time&&(b=u(a,"aoStateLoadParams","stateLoadParams",[a,e]),-1===h.inArray(!1,b)&&(b=a.iStateDuration,!(0<b&&e.time<+new Date-1E3*b)&&d.length===e.columns.length))){a.oLoadedState=h.extend(!0,{},e);
-e.start!==k&&(a._iDisplayStart=e.start,a.iInitDisplayStart=e.start);e.length!==k&&(a._iDisplayLength=e.length);e.order!==k&&(a.aaSorting=[],h.each(e.order,function(b,c){a.aaSorting.push(c[0]>=d.length?[0,c[1]]:c)}));e.search!==k&&h.extend(a.oPreviousSearch,Bb(e.search));b=0;for(c=e.columns.length;b<c;b++){var f=e.columns[b];f.visible!==k&&(d[b].bVisible=f.visible);f.search!==k&&h.extend(a.aoPreSearchCols[b],Bb(f.search))}u(a,"aoStateLoaded","stateLoaded",[a,e])}}}function za(a){var b=m.settings,a=
-h.inArray(a,F(b,"nTable"));return-1!==a?b[a]:null}function L(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)D.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,a&&u(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function E(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?E(a,b,d[0],
-d[1]):E(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Lb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Wa(a,b,c){h(a).bind("click.DT",b,function(b){a.blur();c(b)}).bind("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).bind("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}
-function u(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?
-"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function Aa(a,b){var c=[],c=Mb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function db(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Xa)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Xa)}},function(b,
-c){v.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(v.type.search[b+a]=v.type.search.html)})}function Nb(a){return function(){var b=[za(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m,v,r,p,s,Ya={},Ob=/[\r\n]/g,Ca=/<.*?>/g,bc=/^[\w\+\-]/,cc=/[\w\+\-]$/,Zb=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},
-Pb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Qb=function(a,b){Ya[b]||(Ya[b]=RegExp(va(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Qb(a,b));c&&d&&(a=a.replace(Xa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Rb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:Za(a.replace(Ca,""),b,c)?!0:null},F=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<
-f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},ha=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},X=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Sb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},pa=function(a){var b=[],c,d,e=a.length,f,g=0;d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===
-c)continue a;b.push(c);g++}return b},A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ba=/\[.*?\]$/,V=/\(\)$/,wa=h("<div>")[0],$b=wa.textContent!==k,ac=/<.*?>/g;m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new r(za(this[v.iApiIndex])):new r(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};
-this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ka(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};
-this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=
-function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};
-this.fnSettings=function(){return za(this[v.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=v.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=v.internal;for(var e in m.ext.internal)e&&(this[e]=
-Nb(e));this.each(function(){var e={},e=1<d?Lb(e,a,!0):a,g=0,j,i=this.getAttribute("id"),n=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())L(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(l);fb(l.column);K(l,l,!0);K(l.column,l.column,!0);K(l,h.extend(e,q.data()));var t=m.settings,g=0;for(j=t.length;g<j;g++){var p=t[g];if(p.nTable==this||p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){g=e.bRetrieve!==k?e.bRetrieve:l.bRetrieve;if(c||g)return p.oInstance;
-if(e.bDestroy!==k?e.bDestroy:l.bDestroy){p.oInstance.fnDestroy();break}else{L(p,0,"Cannot reinitialise DataTable",3);return}}if(p.sTableId==this.id){t.splice(g,1);break}}if(null===i||""===i)this.id=i="DataTables_Table_"+m.ext._unique++;var o=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:i,sTableId:i});o.nTable=this;o.oApi=b.internal;o.oInit=e;t.push(o);o.oInstance=1===b.length?b:q.dataTable();eb(e);e.oLanguage&&Fa(e.oLanguage);e.aLengthMenu&&!e.iDisplayLength&&(e.iDisplayLength=
-h.isArray(e.aLengthMenu[0])?e.aLengthMenu[0][0]:e.aLengthMenu[0]);e=Lb(h.extend(!0,{},l),e);E(o.oFeatures,e,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));E(o,e,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback",
-"renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);E(o.oScroll,e,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);E(o.oLanguage,e,"fnInfoCallback");z(o,"aoDrawCallback",e.fnDrawCallback,"user");z(o,"aoServerParams",e.fnServerParams,"user");z(o,"aoStateSaveParams",e.fnStateSaveParams,"user");z(o,"aoStateLoadParams",
-e.fnStateLoadParams,"user");z(o,"aoStateLoaded",e.fnStateLoaded,"user");z(o,"aoRowCallback",e.fnRowCallback,"user");z(o,"aoRowCreatedCallback",e.fnCreatedRow,"user");z(o,"aoHeaderCallback",e.fnHeaderCallback,"user");z(o,"aoFooterCallback",e.fnFooterCallback,"user");z(o,"aoInitComplete",e.fnInitComplete,"user");z(o,"aoPreDrawCallback",e.fnPreDrawCallback,"user");o.rowIdFn=Q(e.rowId);gb(o);i=o.oClasses;e.bJQueryUI?(h.extend(i,m.ext.oJUIClasses,e.oClasses),e.sDom===l.sDom&&"lfrtip"===l.sDom&&(o.sDom=
-'<"H"lfr>t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&&!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(i,m.ext.classes,e.oClasses);q.addClass(i.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=e.iDisplayStart,o._iDisplayStart=e.iDisplayStart);null!==e.iDeferLoading&&(o.bDeferLoading=!0,g=h.isArray(e.iDeferLoading),o._iRecordsDisplay=g?e.iDeferLoading[0]:e.iDeferLoading,o._iRecordsTotal=g?e.iDeferLoading[1]:e.iDeferLoading);var r=o.oLanguage;h.extend(!0,
-r,e.oLanguage);""!==r.sUrl&&(h.ajax({dataType:"json",url:r.sUrl,success:function(a){Fa(a);K(l.oLanguage,a);h.extend(true,r,a);ga(o)},error:function(){ga(o)}}),n=!0);null===e.asStripeClasses&&(o.asStripeClasses=[i.sStripeOdd,i.sStripeEven]);var g=o.asStripeClasses,v=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(g,function(a){return v.hasClass(a)}))&&(h("tbody tr",this).removeClass(g.join(" ")),o.asDestroyStripes=g.slice());t=[];g=this.getElementsByTagName("thead");0!==g.length&&(da(o.aoHeader,
-g[0]),t=qa(o));if(null===e.aoColumns){p=[];g=0;for(j=t.length;g<j;g++)p.push(null)}else p=e.aoColumns;g=0;for(j=p.length;g<j;g++)Ga(o,t?t[g]:null);ib(o,e.aoColumnDefs,p,function(a,b){ja(o,a,b)});if(v.length){var s=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(v[0]).children("th, td").each(function(a,b){var c=o.aoColumns[a];if(c.mData===a){var d=s(b,"sort")||s(b,"order"),e=s(b,"filter")||s(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==
-null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};ja(o,a)}}})}var w=o.oFeatures;e.bStateSave&&(w.bStateSave=!0,Kb(o,e),z(o,"aoDrawCallback",ya,"state_save"));if(e.aaSorting===k){t=o.aaSorting;g=0;for(j=t.length;g<j;g++)t[g][1]=o.aoColumns[g].asSorting[0]}xa(o);w.bSort&&z(o,"aoDrawCallback",function(){if(o.bSorted){var a=W(o),b={};h.each(a,function(a,c){b[c.src]=c.dir});u(o,null,"order",[o,a,b]);Jb(o)}});z(o,"aoDrawCallback",function(){(o.bSorted||y(o)==="ssp"||w.bDeferRender)&&xa(o)},"sc");g=
-q.children("caption").each(function(){this._captionSide=q.css("caption-side")});j=q.children("thead");0===j.length&&(j=h("<thead/>").appendTo(this));o.nTHead=j[0];j=q.children("tbody");0===j.length&&(j=h("<tbody/>").appendTo(this));o.nTBody=j[0];j=q.children("tfoot");if(0===j.length&&0<g.length&&(""!==o.oScroll.sX||""!==o.oScroll.sY))j=h("<tfoot/>").appendTo(this);0===j.length||0===j.children().length?q.addClass(i.sNoFooter):0<j.length&&(o.nTFoot=j[0],da(o.aoFooter,o.nTFoot));if(e.aaData)for(g=0;g<
-e.aaData.length;g++)N(o,e.aaData[g]);else(o.bDeferLoading||"dom"==y(o))&&ma(o,h(o.nTBody).children("tr"));o.aiDisplay=o.aiDisplayMaster.slice();o.bInitialised=!0;!1===n&&ga(o)}});b=null;return this};var Tb=[],w=Array.prototype,dc=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===
-typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};r=function(a,b){if(!(this instanceof r))return new r(a,b);var c=[],d=function(a){(a=dc(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=pa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};r.extend(this,this,Tb)};m.Api=r;h.extend(r.prototype,{any:function(){return 0!==this.count()},concat:w.concat,
-context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new r(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new r(this.context,b)},flatten:function(){var a=[];return new r(this.context,a.concat.apply(a,this.toArray()))},join:w.join,
-indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,h,i,n,l=this.context,m,t,p=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var o=new r(l[g]);if("table"===b)f=c.call(o,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(o,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){t=this[g];"column-rows"===b&&(m=Da(l[g],
-p.opts));i=0;for(n=t.length;i<n;i++)f=t[i],f="cell"===b?c.call(o,l[g],f.row,f.column,g,i):c.call(o,l[g],f,g,i,m),f!==k&&e.push(f)}}return e.length||d?(a=new r(l,a?e.concat.apply([],e):e),b=a.selector,b.rows=p.rows,b.cols=p.cols,b.opts=p.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new r(this.context,
-b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new r(this.context,pa(this))},unshift:w.unshift});r.extend=
-function(a,b,c){if(c.length&&b&&(b instanceof r||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);r.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,r.extend(a,b[f.name],f.propExt)}};r.register=p=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)r.register(a[c],b);else for(var e=a.split("."),f=Tb,g,j,c=0,d=e.length;c<d;c++){g=
-(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var n=f.length;i<n;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};r.registerPlural=s=function(a,b,c){r.register(a,c);r.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof r?a.length?h.isArray(a[0])?new r(a.context,a[0]):a[0]:k:a})};p("tables()",function(a){var b;if(a){b=r;var c=this.context;if("number"===
-typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=this;return b});p("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new r(b[0]):a});s("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});s("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});s("tables().header()",
-"table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});s("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});s("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});p("draw()",function(a){return this.iterator("table",function(b){"page"===a?O(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});p("page()",function(a){return a===
-k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});p("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});p("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:
-k:this.iterator("table",function(b){Ra(b,a)})});var Ub=function(a,b,c){if(c){var d=new r(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ra(a,[],function(c){na(a);for(var c=sa(a,c),d=0,e=c.length;d<e;d++)N(a,c[d]);T(a,b);C(a,!1)})}};p("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});p("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});p("ajax.reload()",function(a,
-b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});p("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});p("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Ub(c,!1===b,a)})});var $a=function(a,b,c,d,e){var f=[],g,j,i,n,l,m;i=typeof b;if(!b||"string"===i||"function"===
-i||b.length===k)b=[b];i=0;for(n=b.length;i<n;i++){j=b[i]&&b[i].split?b[i].split(","):[b[i]];l=0;for(m=j.length;l<m;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=v.selector[a];if(a.length){i=0;for(n=a.length;i<n;i++)f=a[i](d,e,f)}return pa(f)},ab=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},bb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=
-1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c,d,e,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;d=b.order;e=b.page;if("ssp"==y(a))return"removed"===j?[]:X(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==d||"applied"==d)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==
-j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};p("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var e=b;return $a("row",a,function(a){var b=Pb(a);if(b!==null&&!e)return[b];var j=Da(c,e);if(b!==null&&h.inArray(b,j)!==-1)return[b];if(!a)return j;if(typeof a==="function")return h.map(j,function(b){var e=c.aoData[b];return a(b,e._aData,e.nTr)?b:null});b=Sb(ha(c.aoData,j,"nTr"));if(a.nodeName){if(a._DT_RowIndex!==
-k)return[a._DT_RowIndex];if(a._DT_CellIndex)return[a._DT_CellIndex.row];b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){j=c.aIds[a.replace(/^#/,"")];if(j!==k)return[j.idx]}return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});p("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});p("rows().data()",function(){return this.iterator(!0,
-"rows",function(a,b){return ha(a.aoData,b,"_aData")},1)});s("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});s("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){ca(b,c,a)})});s("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});s("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,
-d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new r(c,b)});s("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,n,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(n=l.length;i<n;i++)l[i]._DT_CellIndex.row=g}oa(b.aiDisplayMaster,c);oa(b.aiDisplay,c);oa(a[d],c,!1);
-Sa(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});p("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(ma(b,c)[0]):h.push(N(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});p("row()",function(a,b){return bb(this.rows(a,b))});p("row().data()",function(a){var b=
-this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;b[0].aoData[this[0]]._aData=a;ca(b[0],this[0],"data");return this});p("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});p("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?ma(b,a)[0]:N(b,a)});return this.row(b[0])});var cb=function(a,b){var c=a.context;if(c.length&&
-(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=k,c._details=k},Vb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new r(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<F(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];
-a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(e===b)for(var c,d=aa(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&cb(f,c)}))}}};p("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===
-a)cb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=aa(d),e.push(c[0]))};f(a,b);c._details&&c._details.remove();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Vb(this,
-!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Vb(this,!1);return this});p(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var ec=/^(.+):(name|visIdx|visible)$/,Wb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};p("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&
-(b=a,a="");var b=ab(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,j=F(g,"sName"),i=F(g,"nTh");return $a("column",e,function(a){var b=Pb(a);if(a==="")return X(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Wb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(ec):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});
-return[m[m.length+b]]}return[Z(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});s("columns().header()","column().header()",function(){return this.iterator("column",
-function(a,b){return a.aoColumns[b].nTh},1)});s("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});s("columns().data()","column().data()",function(){return this.iterator("column-rows",Wb,1)});s("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});s("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,
-c,d,e,f){return ha(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});s("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ha(a.aoData,e,"anCells",b)},1)});s("columns().visible()","column().visible()",function(a,b){return this.iterator("column",function(c,d){if(a===k)return c.aoColumns[d].bVisible;var e=c.aoColumns,f=e[d],g=c.aoData,j,i,n;if(a!==k&&f.bVisible!==a){if(a){var l=h.inArray(!0,F(e,"bVisible"),d+1);j=0;for(i=g.length;j<
-i;j++)n=g[j].nTr,e=g[j].anCells,n&&n.insertBefore(e[d],e[l]||null)}else h(F(c.aoData,"anCells",d)).detach();f.bVisible=a;ea(c,c.aoHeader);ea(c,c.aoFooter);(b===k||b)&&U(c);u(c,null,"column-visibility",[c,d,a,b]);ya(c)}})});s("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?$(b,c):c},1)});p("columns.adjust()",function(){return this.iterator("table",function(a){U(a)},1)});p("column.index()",function(a,b){if(0!==this.context.length){var c=
-this.context[0];if("fromVisible"===a||"toData"===a)return Z(c,b);if("fromData"===a||"toVisible"===a)return $(c,b)}});p("column()",function(a,b){return bb(this.columns(a,b))});p("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=ab(c),f=b.aoData,g=Da(b,e),j=Sb(ha(f,g,"anCells")),i=h([].concat.apply([],j)),l,n=b.aoColumns.length,m,p,r,u,v,s;return $a("cell",d,function(a){var c=
-typeof a==="function";if(a===null||a===k||c){m=[];p=0;for(r=g.length;p<r;p++){l=g[p];for(u=0;u<n;u++){v={row:l,column:u};if(c){s=f[l];a(v,B(b,l,u),s.anCells?s.anCells[u]:null)&&m.push(v)}else m.push(v)}}return m}if(h.isPlainObject(a))return[a];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;s=h(a).closest("*[data-dt-row]");return s.length?[{row:s.data("dt-row"),column:s.data("dt-column")}]:[]},b,e)});var d=
-this.columns(b,c),e=this.rows(a,c),f,g,j,i,n,l=this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(n=d[b].length;i<n;i++)f.push({row:e[b][g],column:d[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});s("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});p("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});s("cells().cache()",
-"cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});s("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});s("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:$(a,c)}},1)});s("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,
-c,d){ca(b,c,a,d)})});p("cell()",function(a,b,c){return bb(this.cells(a,b,c))});p("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;jb(b[0],c[0].row,c[0].column,a);ca(b[0],c[0].row,"data",c[0].column);return this});p("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:h.isArray(a[0])||(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=
-a.slice()})});p("order.listener()",function(a,b,c){return this.iterator("table",function(d){Oa(d,a,b,c)})});p("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});p(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});p("search()",function(a,
-b,c,d){var e=this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&fa(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});s("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===
-c?!0:c,bCaseInsensitive:null===d?!0:d}),fa(e,e.oPreviousSearch,1))})});p("state()",function(){return this.context.length?this.context[0].oSavedState:null});p("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){ya(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=
-m.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings,function(b){if(!a||
-a&&h(b.nTable).is(":visible"))return b.nTable});return b?new r(c):c};m.util={throttle:ua,escapeRegex:va};m.camelToHungarian=K;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",
-function(a){na(a)})});p("settings()",function(){return new r(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return F(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),
-p;b.bDestroying=!0;u(b,"aoDestroyCallback","destroy",[b]);a||(new r(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");h(D).unbind(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];xa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+
-d.sSortIcon+", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column",
-"row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,n){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,n)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=Q(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.11";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,
-_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults=
-{aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
-this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+
-"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",
-sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};
-Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,
-bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],
-aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,
-aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=
-this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=v={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},
-header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(v,{afnFiltering:v.search,aTypes:v.type.detect,ofnSearch:v.type.search,oSort:v.type.order,afnSortData:v.order,aoFeatures:v.feature,oApi:v.internal,oStdClasses:v.classes,oPagination:v.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",
-sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",
-sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",H=Ea+"ui-state-default",ia=Ea+"css_right ui-icon ui-icon-",Xb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses,
-m.ext.classes,{sPageButton:"fg-button ui-button "+H,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:H+" sorting_asc",sSortDesc:H+" sorting_desc",sSortable:H+" sorting",sSortableAsc:H+" sorting_asc_disabled",sSortableDesc:H+" sorting_desc_disabled",sSortableNone:H+" sorting_disabled",sSortJUIAsc:ia+"triangle-1-n",sSortJUIDesc:ia+"triangle-1-s",sSortJUI:ia+"carat-2-n-s",
-sSortJUIAscAllowed:ia+"carat-1-n",sSortJUIDescAllowed:ia+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+H,sScrollFoot:"dataTables_scrollFoot "+H,sHeaderTH:H,sFooterTH:H,sJUIHeader:Xb+" ui-corner-tl ui-corner-tr",sJUIFooter:Xb+" ui-corner-bl ui-corner-br"});var Mb=m.ext.pager;h.extend(Mb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[Aa(a,
-b)]},simple_numbers:function(a,b){return["previous",Aa(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Aa(a,b),"next","last"]},_numbers:Aa,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},k,l,m=0,p=function(b,d){var o,r,u,s,v=function(b){Ta(a,b.data.action,true)};o=0;for(r=d.length;o<r;o++){s=d[o];if(h.isArray(s)){u=h("<"+(s.DT_el||"div")+"/>").appendTo(b);p(u,s)}else{k=null;
-l="";switch(s){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":k=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":k=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":k=j.sNext;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":k=j.sLast;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:k=s+1;l=e===s?g.sPageButtonActive:""}if(k!==null){u=h("<a>",{"class":g.sPageButton+" "+l,"aria-controls":a.sTableId,"aria-label":i[s],
-"data-dt-idx":m,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(k).appendTo(b);Wa(u,{action:s},v);m++}}}},r;try{r=h(b).find(I.activeElement).data("dt-idx")}catch(o){}p(h(b).empty(),d);r&&h(b).find("[data-dt-idx="+r+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!bc.test(a)||!cc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||M(a)?"date":
-null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Rb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Ob," ").replace(Ca,""):""},string:function(a){return M(a)?a:"string"===typeof a?a.replace(Ob,
-" "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Qb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(v.type.order,{"date-pre":function(a){return Date.parse(a)||0},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,
-b){return a<b?1:a>b?-1:0}});db("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(e,
-f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Yb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};m.render={number:function(a,
-b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Yb(f);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Yb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Nb,_fnBuildAjax:ra,_fnAjaxUpdate:lb,_fnAjaxParameters:ub,_fnAjaxUpdateDraw:vb,_fnAjaxDataSrc:sa,_fnAddColumn:Ga,_fnColumnOptions:ja,
-_fnAdjustColumnSizing:U,_fnVisibleToColumnIndex:Z,_fnColumnIndexToVisible:$,_fnVisbleColumns:aa,_fnGetColumns:la,_fnColumnTypes:Ia,_fnApplyColumnDefs:ib,_fnHungarianMap:Y,_fnCamelToHungarian:K,_fnLanguageCompat:Fa,_fnBrowserDetect:gb,_fnAddData:N,_fnAddTr:ma,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:jb,_fnSplitObjNotation:La,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:R,
-_fnGetDataMaster:Ma,_fnClearTable:na,_fnDeleteIndex:oa,_fnInvalidate:ca,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:kb,_fnDrawHead:ea,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:nb,_fnDetectHeader:da,_fnGetUniqueThs:qa,_fnFeatureHtmlFilter:pb,_fnFilterComplete:fa,_fnFilterCustom:yb,_fnFilterColumn:xb,_fnFilter:wb,_fnFilterCreateSearch:Qa,_fnEscapeRegex:va,_fnFilterData:zb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:Cb,_fnInfoMacros:Db,_fnInitialise:ga,_fnInitComplete:ta,_fnLengthChange:Ra,_fnFeatureHtmlLength:ob,
-_fnFeatureHtmlPaginate:tb,_fnPageChange:Ta,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:rb,_fnScrollDraw:ka,_fnApplyToChildren:J,_fnCalculateColumnWidths:Ha,_fnThrottle:ua,_fnConvertToWidth:Fb,_fnGetWidestNode:Gb,_fnGetMaxLenString:Hb,_fnStringToCss:x,_fnSortFlatten:W,_fnSort:mb,_fnSortAria:Jb,_fnSortListener:Va,_fnSortAttachListener:Oa,_fnSortingClasses:xa,_fnSortData:Ib,_fnSaveState:ya,_fnLoadState:Kb,_fnSettingsFromNode:za,_fnLog:L,_fnMap:E,_fnBindAction:Wa,_fnCallbackReg:z,
-_fnCallbackFire:u,_fnLengthOverflow:Sa,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});
diff --git a/common/src/main/webapp/thirdparty/data-tables/style-datatable.css b/common/src/main/webapp/thirdparty/data-tables/style-datatable.css
deleted file mode 100644
index 516848f..0000000
--- a/common/src/main/webapp/thirdparty/data-tables/style-datatable.css
+++ /dev/null
@@ -1,154 +0,0 @@
-/* remove rounds from all elements */
-
-div,
-input,
-select,
-textarea,
-span,
-img,
-table,
-td,
-th,
-p,
-a,
-button,
-ul,
-code,
-pre,
-li {
- -webkit-border-radius: 0 !important;
- -moz-border-radius: 0 !important;
- border-radius: 0 !important;
-}
-
-.input-mini {
- width: 25px !important;
- height:15px !important;
- padding-top: 2px !important;
- margin: 0 2px !important;
-}
-
-.input-xsmall {
- width: 80px !important;
- height:25px !important;
- padding-top: 2%;
-}
-
-.input-small {
- width: 120px !important;
-}
-
-.input-medium {
- width: 240px !important;
-}
-
-.input-large {
- width: 320px !important;
-}
-
-.input-xlarge {
- width: 480px !important;
-}
-
-.input-inline {
- display: inline-block;
- width: auto;
- vertical-align: middle;
-}
-
-.form-control {
- font-size: 14px;
- font-weight: normal;
- color: #333333;
- background-color: #ffffff;
- border: 1px solid #e5e5e5;
- border-radius: 0;
- -webkit-box-shadow: none;
- box-shadow: none;
- -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
- transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
-}
-
-.pagination-panel {
- font-size: 13px !important;
-}
-
-.dataTables_length label {
- font-weight: 400;
- font-size: 13px !important;
-}
-
-.dataTables_info {
- font-size: 13px !important;
-}
-
-.dataTable tbody {
- font-size: 13px;
-}
-
-/***
-Bootstrap Tables
-***/
-
-.table thead > tr > th {
- border-bottom: 0;
-}
-
-.table tbody tr.active td,
-.table tbody tr.active th {
- background-color: #e9e9e9 !important;
-}
-
-.table tbody tr.active:hover td,
-.table tbody tr.active:hover th {
- background-color: #e1e1e1 !important;
-}
-
-.table-striped tbody tr.active:nth-child(odd) td,
-.table-striped tbody tr.active:nth-child(odd) th {
- background-color: #017ebc;
-}
-
-.table .heading > th {
- background-color: #eee !important;
-}
-
-.detailTable {
- border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;
-}
-
-.detailTable td{border:1px solid #ddd !important;}
-
-/*
-.detailTitleStyle {
- background-color: #428bca !important;
-}
-*/
-
-.labelDetailTable {
- display: inline;
- padding: .2em .6em .3em;
- font-size: 75%;
- font-weight: bold;
- line-height: 1;
- text-align: center;
- white-space: nowrap;
- vertical-align: baseline;
- border-radius: .25em;
-}
-/*
-.oddDetailTable td{
- background-color: #fff !important;
-}
-*/
-.evenDetailTable td{
- background-color: #f9f9f9 !important;
-}
-
-.detailCellStyle{
- WORD-WRAP: break-word;
-}
-
-#buttonConfirm:hover {
- cursor:pointer !important;
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/echarts/echarts-all.js b/common/src/main/webapp/thirdparty/echarts/echarts-all.js
deleted file mode 100644
index e45bf99..0000000
--- a/common/src/main/webapp/thirdparty/echarts/echarts-all.js
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2015 ZTE, Inc. and others. All rights reserved. (ZTE)
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-!function(e){var t,i;!function(){function e(e,t){if(!t)return e;if(0===e.indexOf(".")){var i=t.split("/"),n=e.split("/"),a=i.length-1,o=n.length,r=0,s=0;e:for(var l=0;o>l;l++)switch(n[l]){case"..":if(!(a>r))break e;r++,s++;break;case".":s++;break;default:break e}return i.length=a-r,n=n.slice(s),i.concat(n).join("/")}return e}function n(t){function i(i,r){if("string"==typeof i){var s=n[i];return s||(s=o(e(i,t)),n[i]=s),s}i instanceof Array&&(r=r||function(){},r.apply(this,a(i,r,t)))}var n={};return i}function a(i,n,a){for(var s=[],l=r[a],h=0,m=Math.min(i.length,n.length);m>h;h++){var V,U=e(i[h],a);switch(U){case"require":V=l&&l.require||t;break;case"exports":V=l.exports;break;case"module":V=l;break;default:V=o(U)}s.push(V)}return s}function o(e){var t=r[e];if(!t)throw new Error("No "+e);if(!t.defined){var i=t.factory,n=i.apply(this,a(t.deps||[],i,e));"undefined"!=typeof n&&(t.exports=n),t.defined=1}return t.exports}var r={};i=function(e,t,i){r[e]={id:e,deps:t,factory:i,defined:0,exports:{},require:n(e)}},t=n("")}(),i("echarts",["echarts/echarts"],function(e){return e}),i("echarts/echarts",["require","./config","zrender/tool/util","zrender/tool/event","zrender/tool/env","zrender","zrender/config","./chart/island","./component/toolbox","./component","./component/title","./component/tooltip","./component/legend","./util/ecData","./chart","zrender/tool/color","./component/timeline","zrender/shape/Image","zrender/loadingEffect/Bar","zrender/loadingEffect/Bubble","zrender/loadingEffect/DynamicLine","zrender/loadingEffect/Ring","zrender/loadingEffect/Spin","zrender/loadingEffect/Whirling","./theme/macarons","./theme/infographic"],function(e){function t(){r.Dispatcher.call(this)}function i(e){e.innerHTML="",this._themeConfig={},this.dom=e,this._connected=!1,this._status={dragIn:!1,dragOut:!1,needRefresh:!1},this._curEventType=!1,this._chartList=[],this._messageCenter=new t,this._messageCenterOutSide=new t,this.resize=this.resize(),this._init()}function n(e,t,i,n,a){for(var o=e._chartList,r=o.length;r--;){var s=o[r];"function"==typeof s[t]&&s[t](i,n,a)}}var a=e("./config"),o=e("zrender/tool/util"),r=e("zrender/tool/event"),s={},l=e("zrender/tool/env").canvasSupported,h=new Date-0,m={},V="_echarts_instance_";s.version="2.2.7",s.dependencies={zrender:"2.1.1"},s.init=function(t,n){var a=e("zrender");a.version.replace(".","")-0<s.dependencies.zrender.replace(".","")-0&&console.error("ZRender "+a.version+" is too old for ECharts "+s.version+". Current version need ZRender "+s.dependencies.zrender+"+"),t=t instanceof Array?t[0]:t;var o=t.getAttribute(V);return o||(o=h++,t.setAttribute(V,o)),m[o]&&m[o].dispose(),m[o]=new i(t),m[o].id=o,m[o].canvasSupported=l,m[o].setTheme(n),m[o]},s.getInstanceById=function(e){return m[e]},o.merge(t.prototype,r.Dispatcher.prototype,!0);var U=e("zrender/config").EVENT,d=["CLICK","DBLCLICK","MOUSEOVER","MOUSEOUT","DRAGSTART","DRAGEND","DRAGENTER","DRAGOVER","DRAGLEAVE","DROP"];return i.prototype={_init:function(){var t=this,i=e("zrender").init(this.dom);this._zr=i,this._messageCenter.dispatch=function(e,i,n,a){n=n||{},n.type=e,n.event=i,t._messageCenter.dispatchWithContext(e,n,a),t._messageCenterOutSide.dispatchWithContext(e,n,a)},this._onevent=function(e){return t.__onevent(e)};for(var n in a.EVENT)"CLICK"!=n&&"DBLCLICK"!=n&&"HOVER"!=n&&"MOUSEOUT"!=n&&"MAP_ROAM"!=n&&this._messageCenter.bind(a.EVENT[n],this._onevent,this);var o={};this._onzrevent=function(e){return t[o[e.type]](e)};for(var r=0,s=d.length;s>r;r++){var l=d[r],h=U[l];o[h]="_on"+l.toLowerCase(),i.on(h,this._onzrevent)}this.chart={},this.component={};var m=e("./chart/island");this._island=new m(this._themeConfig,this._messageCenter,i,{},this),this.chart.island=this._island;var V=e("./component/toolbox");this._toolbox=new V(this._themeConfig,this._messageCenter,i,{},this),this.component.toolbox=this._toolbox;var p=e("./component");p.define("title",e("./component/title")),p.define("tooltip",e("./component/tooltip")),p.define("legend",e("./component/legend")),(0===i.getWidth()||0===i.getHeight())&&console.error("Dom’s width & height should be ready before init.")},__onevent:function(e){e.__echartsId=e.__echartsId||this.id;var t=e.__echartsId===this.id;switch(this._curEventType||(this._curEventType=e.type),e.type){case a.EVENT.LEGEND_SELECTED:this._onlegendSelected(e);break;case a.EVENT.DATA_ZOOM:if(!t){var i=this.component.dataZoom;i&&(i.silence(!0),i.absoluteZoom(e.zoom),i.silence(!1))}this._ondataZoom(e);break;case a.EVENT.DATA_RANGE:t&&this._ondataRange(e);break;case a.EVENT.MAGIC_TYPE_CHANGED:if(!t){var n=this.component.toolbox;n&&(n.silence(!0),n.setMagicType(e.magicType),n.silence(!1))}this._onmagicTypeChanged(e);break;case a.EVENT.DATA_VIEW_CHANGED:t&&this._ondataViewChanged(e);break;case a.EVENT.TOOLTIP_HOVER:t&&this._tooltipHover(e);break;case a.EVENT.RESTORE:this._onrestore();break;case a.EVENT.REFRESH:t&&this._onrefresh(e);break;case a.EVENT.TOOLTIP_IN_GRID:case a.EVENT.TOOLTIP_OUT_GRID:if(t){if(this._connected){var o=this.component.grid;o&&(e.x=(e.event.zrenderX-o.getX())/o.getWidth(),e.y=(e.event.zrenderY-o.getY())/o.getHeight())}}else{var o=this.component.grid;o&&this._zr.trigger("mousemove",{connectTrigger:!0,zrenderX:o.getX()+e.x*o.getWidth(),zrenderY:o.getY()+e.y*o.getHeight()})}}if(this._connected&&t&&this._curEventType===e.type){for(var r in this._connected)this._connected[r].connectedEventHandler(e);this._curEventType=null}(!t||!this._connected&&t)&&(this._curEventType=null)},_onclick:function(e){if(n(this,"onclick",e),e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.CLICK,e.event,t,this)}},_ondblclick:function(e){if(n(this,"ondblclick",e),e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.DBLCLICK,e.event,t,this)}},_onmouseover:function(e){if(e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.HOVER,e.event,t,this)}},_onmouseout:function(e){if(e.target){var t=this._eventPackage(e.target);t&&null!=t.seriesIndex&&this._messageCenter.dispatch(a.EVENT.MOUSEOUT,e.event,t,this)}},_ondragstart:function(e){this._status={dragIn:!1,dragOut:!1,needRefresh:!1},n(this,"ondragstart",e)},_ondragenter:function(e){n(this,"ondragenter",e)},_ondragover:function(e){n(this,"ondragover",e)},_ondragleave:function(e){n(this,"ondragleave",e)},_ondrop:function(e){n(this,"ondrop",e,this._status),this._island.ondrop(e,this._status)},_ondragend:function(e){if(n(this,"ondragend",e,this._status),this._timeline&&this._timeline.ondragend(e,this._status),this._island.ondragend(e,this._status),this._status.needRefresh){this._syncBackupData(this._option);var t=this._messageCenter;t.dispatch(a.EVENT.DATA_CHANGED,e.event,this._eventPackage(e.target),this),t.dispatch(a.EVENT.REFRESH,null,null,this)}},_onlegendSelected:function(e){this._status.needRefresh=!1,n(this,"onlegendSelected",e,this._status),this._status.needRefresh&&this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_ondataZoom:function(e){this._status.needRefresh=!1,n(this,"ondataZoom",e,this._status),this._status.needRefresh&&this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_ondataRange:function(e){this._clearEffect(),this._status.needRefresh=!1,n(this,"ondataRange",e,this._status),this._status.needRefresh&&this._zr.refreshNextFrame()},_onmagicTypeChanged:function(){this._clearEffect(),this._render(this._toolbox.getMagicOption())},_ondataViewChanged:function(e){this._syncBackupData(e.option),this._messageCenter.dispatch(a.EVENT.DATA_CHANGED,null,e,this),this._messageCenter.dispatch(a.EVENT.REFRESH,null,null,this)},_tooltipHover:function(e){var t=[];n(this,"ontooltipHover",e,t)},_onrestore:function(){this.restore()},_onrefresh:function(e){this._refreshInside=!0,this.refresh(e),this._refreshInside=!1},_syncBackupData:function(e){this.component.dataZoom&&this.component.dataZoom.syncBackupData(e)},_eventPackage:function(t){if(t){var i=e("./util/ecData"),n=i.get(t,"seriesIndex"),a=i.get(t,"dataIndex");return a=-1!=n&&this.component.dataZoom?this.component.dataZoom.getRealDataIndex(n,a):a,{seriesIndex:n,seriesName:(i.get(t,"series")||{}).name,dataIndex:a,data:i.get(t,"data"),name:i.get(t,"name"),value:i.get(t,"value"),special:i.get(t,"special")}}},_noDataCheck:function(e){for(var t=e.series,i=0,n=t.length;n>i;i++)if(t[i].type==a.CHART_TYPE_MAP||t[i].data&&t[i].data.length>0||t[i].markPoint&&t[i].markPoint.data&&t[i].markPoint.data.length>0||t[i].markLine&&t[i].markLine.data&&t[i].markLine.data.length>0||t[i].nodes&&t[i].nodes.length>0||t[i].links&&t[i].links.length>0||t[i].matrix&&t[i].matrix.length>0||t[i].eventList&&t[i].eventList.length>0)return!1;var o=this._option&&this._option.noDataLoadingOption||this._themeConfig.noDataLoadingOption||a.noDataLoadingOption||{text:this._option&&this._option.noDataText||this._themeConfig.noDataText||a.noDataText,effect:this._option&&this._option.noDataEffect||this._themeConfig.noDataEffect||a.noDataEffect};return this.clear(),this.showLoading(o),!0},_render:function(t){if(this._mergeGlobalConifg(t),!this._noDataCheck(t)){var i=t.backgroundColor;if(i)if(l||-1==i.indexOf("rgba"))this.dom.style.backgroundColor=i;else{var n=i.split(",");this.dom.style.filter="alpha(opacity="+100*n[3].substring(0,n[3].lastIndexOf(")"))+")",n.length=3,n[0]=n[0].replace("a",""),this.dom.style.backgroundColor=n.join(",")+")"}this._zr.clearAnimation(),this._chartList=[];var o=e("./chart"),r=e("./component");(t.xAxis||t.yAxis)&&(t.grid=t.grid||{},t.dataZoom=t.dataZoom||{});for(var s,h,m,V=["title","legend","tooltip","dataRange","roamController","grid","dataZoom","xAxis","yAxis","polar"],U=0,d=V.length;d>U;U++)h=V[U],m=this.component[h],t[h]?(m?m.refresh&&m.refresh(t):(s=r.get(/^[xy]Axis$/.test(h)?"axis":h),m=new s(this._themeConfig,this._messageCenter,this._zr,t,this,h),this.component[h]=m),this._chartList.push(m)):m&&(m.dispose(),this.component[h]=null,delete this.component[h]);for(var p,c,u,y={},U=0,d=t.series.length;d>U;U++)c=t.series[U].type,c?y[c]||(y[c]=!0,p=o.get(c),p?(this.chart[c]?(u=this.chart[c],u.refresh(t)):u=new p(this._themeConfig,this._messageCenter,this._zr,t,this),this._chartList.push(u),this.chart[c]=u):console.error(c+" has not been required.")):console.error("series["+U+"] chart type has not been defined.");for(c in this.chart)c==a.CHART_TYPE_ISLAND||y[c]||(this.chart[c].dispose(),this.chart[c]=null,delete this.chart[c]);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._island.refresh(t),this._toolbox.refresh(t),t.animation&&!t.renderAsImage?this._zr.refresh():this._zr.render();var g="IMG"+this.id,b=document.getElementById(g);t.renderAsImage&&l?(b?b.src=this.getDataURL(t.renderAsImage):(b=this.getImage(t.renderAsImage),b.id=g,b.style.position="absolute",b.style.left=0,b.style.top=0,this.dom.firstChild.appendChild(b)),this.un(),this._zr.un(),this._disposeChartList(),this._zr.clear()):b&&b.parentNode.removeChild(b),b=null,this._option=t}},restore:function(){this._clearEffect(),this._option=o.clone(this._optionRestore),this._disposeChartList(),this._island.clear(),this._toolbox.reset(this._option,!0),this._render(this._option)},refresh:function(e){this._clearEffect(),e=e||{};var t=e.option;!this._refreshInside&&t&&(t=this.getOption(),o.merge(t,e.option,!0),o.merge(this._optionRestore,e.option,!0),this._toolbox.reset(t)),this._island.refresh(t),this._toolbox.refresh(t),this._zr.clearAnimation();for(var i=0,n=this._chartList.length;n>i;i++)this._chartList[i].refresh&&this._chartList[i].refresh(t);this.component.grid&&this.component.grid.refixAxisShape(this.component),this._zr.refresh()},_disposeChartList:function(){this._clearEffect(),this._zr.clearAnimation();for(var e=this._chartList.length;e--;){var t=this._chartList[e];if(t){var i=t.type;this.chart[i]&&delete this.chart[i],this.component[i]&&delete this.component[i],t.dispose&&t.dispose()}}this._chartList=[]},_mergeGlobalConifg:function(t){for(var i=["backgroundColor","calculable","calculableColor","calculableHolderColor","nameConnector","valueConnector","animation","animationThreshold","animationDuration","animationDurationUpdate","animationEasing","addDataAnimation","symbolList","DRAG_ENABLE_TIME"],n=i.length;n--;){var o=i[n];null==t[o]&&(t[o]=null!=this._themeConfig[o]?this._themeConfig[o]:a[o])}var r=t.color;r&&r.length||(r=this._themeConfig.color||a.color),this._zr.getColor=function(t){var i=e("zrender/tool/color");return i.getColor(t,r)},l||(t.animation=!1,t.addDataAnimation=!1)},setOption:function(e,t){return e.timeline?this._setTimelineOption(e):this._setOption(e,t)},_setOption:function(e,t,i){return!t&&this._option?this._option=o.merge(this.getOption(),o.clone(e),!0):(this._option=o.clone(e),!i&&this._timeline&&this._timeline.dispose()),this._optionRestore=o.clone(this._option),this._option.series&&0!==this._option.series.length?(this.component.dataZoom&&(this._option.dataZoom||this._option.toolbox&&this._option.toolbox.feature&&this._option.toolbox.feature.dataZoom&&this._option.toolbox.feature.dataZoom.show)&&this.component.dataZoom.syncOption(this._option),this._toolbox.reset(this._option),this._render(this._option),this):void this._zr.clear()},getOption:function(){function e(e){var n=i._optionRestore[e];if(n)if(n instanceof Array)for(var a=n.length;a--;)t[e][a].data=o.clone(n[a].data);else t[e].data=o.clone(n.data)}var t=o.clone(this._option),i=this;return e("xAxis"),e("yAxis"),e("series"),t},setSeries:function(e,t){return t?(this._option.series=e,this.setOption(this._option,t)):this.setOption({series:e}),this},getSeries:function(){return this.getOption().series},_setTimelineOption:function(t){this._timeline&&this._timeline.dispose();var i=e("./component/timeline"),n=new i(this._themeConfig,this._messageCenter,this._zr,t,this);return this._timeline=n,this.component.timeline=this._timeline,this},addData:function(e,t,i,n,r){function s(){if(V._zr){V._zr.clearAnimation();for(var e=0,t=X.length;t>e;e++)X[e].motionlessOnce=h.addDataAnimation&&X[e].addDataAnimation;V._messageCenter.dispatch(a.EVENT.REFRESH,null,{option:h},V)}}for(var l=e instanceof Array?e:[[e,t,i,n,r]],h=this.getOption(),m=this._optionRestore,V=this,U=0,d=l.length;d>U;U++){e=l[U][0],t=l[U][1],i=l[U][2],n=l[U][3],r=l[U][4];var p=m.series[e],c=i?"unshift":"push",u=i?"pop":"shift";if(p){var y=p.data,g=h.series[e].data;if(y[c](t),g[c](t),n||(y[u](),t=g[u]()),null!=r){var b,f;if(p.type===a.CHART_TYPE_PIE&&(b=m.legend)&&(f=b.data)){var k=h.legend.data;if(f[c](r),k[c](r),!n){var x=o.indexOf(f,t.name);-1!=x&&f.splice(x,1),x=o.indexOf(k,t.name),-1!=x&&k.splice(x,1)}}else if(null!=m.xAxis&&null!=m.yAxis){var _,L,W=p.xAxisIndex||0;(null==m.xAxis[W].type||"category"===m.xAxis[W].type)&&(_=m.xAxis[W].data,L=h.xAxis[W].data,_[c](r),L[c](r),n||(_[u](),L[u]())),W=p.yAxisIndex||0,"category"===m.yAxis[W].type&&(_=m.yAxis[W].data,L=h.yAxis[W].data,_[c](r),L[c](r),n||(_[u](),L[u]()))}}this._option.series[e].data=h.series[e].data}}this._zr.clearAnimation();for(var X=this._chartList,v=0,w=function(){v--,0===v&&s()},U=0,d=X.length;d>U;U++)h.addDataAnimation&&X[U].addDataAnimation&&(v++,X[U].addDataAnimation(l,w));return this.component.dataZoom&&this.component.dataZoom.syncOption(h),this._option=h,h.addDataAnimation||setTimeout(s,0),this},addMarkPoint:function(e,t){return this._addMark(e,t,"markPoint")},addMarkLine:function(e,t){return this._addMark(e,t,"markLine")},_addMark:function(e,t,i){var n,a=this._option.series;if(a&&(n=a[e])){var r=this._optionRestore.series,s=r[e],l=n[i],h=s[i];l=n[i]=l||{data:[]},h=s[i]=h||{data:[]};for(var m in t)"data"===m?(l.data=l.data.concat(t.data),h.data=h.data.concat(t.data)):"object"!=typeof t[m]||null==l[m]?l[m]=h[m]=t[m]:(o.merge(l[m],t[m],!0),o.merge(h[m],t[m],!0));var V=this.chart[n.type];V&&V.addMark(e,t,i)}return this},delMarkPoint:function(e,t){return this._delMark(e,t,"markPoint")},delMarkLine:function(e,t){return this._delMark(e,t,"markLine")},_delMark:function(e,t,i){var n,a,o,r=this._option.series;if(!(r&&(n=r[e])&&(a=n[i])&&(o=a.data)))return this;t=t.split(" > ");for(var s=-1,l=0,h=o.length;h>l;l++){var m=o[l];if(m instanceof Array){if(m[0].name===t[0]&&m[1].name===t[1]){s=l;break}}else if(m.name===t[0]){s=l;break}}if(s>-1){o.splice(s,1),this._optionRestore.series[e][i].data.splice(s,1);var V=this.chart[n.type];V&&V.delMark(e,t.join(" > "),i)}return this},getDom:function(){return this.dom},getZrender:function(){return this._zr},getDataURL:function(e){if(!l)return"";if(0===this._chartList.length){var t="IMG"+this.id,i=document.getElementById(t);if(i)return i.src}var n=this.component.tooltip;switch(n&&n.hideTip(),e){case"jpeg":break;default:e="png"}var a=this._option.backgroundColor;return a&&"rgba(0,0,0,0)"===a.replace(" ","")&&(a="#fff"),this._zr.toDataURL("image/"+e,a)},getImage:function(e){var t=this._optionRestore.title,i=document.createElement("img");return i.src=this.getDataURL(e),i.title=t&&t.text||"ECharts",i},getConnectedDataURL:function(t){if(!this.isConnected())return this.getDataURL(t);var i=this.dom,n={self:{img:this.getDataURL(t),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight}},a=n.self.left,o=n.self.top,r=n.self.right,s=n.self.bottom;for(var l in this._connected)i=this._connected[l].getDom(),n[l]={img:this._connected[l].getDataURL(t),left:i.offsetLeft,top:i.offsetTop,right:i.offsetLeft+i.offsetWidth,bottom:i.offsetTop+i.offsetHeight},a=Math.min(a,n[l].left),o=Math.min(o,n[l].top),r=Math.max(r,n[l].right),s=Math.max(s,n[l].bottom);var h=document.createElement("div");h.style.position="absolute",h.style.left="-4000px",h.style.width=r-a+"px",h.style.height=s-o+"px",document.body.appendChild(h);var m=e("zrender").init(h),V=e("zrender/shape/Image");for(var l in n)m.addShape(new V({style:{x:n[l].left-a,y:n[l].top-o,image:n[l].img}}));m.render();var U=this._option.backgroundColor;U&&"rgba(0,0,0,0)"===U.replace(/ /g,"")&&(U="#fff");var d=m.toDataURL("image/png",U);return setTimeout(function(){m.dispose(),h.parentNode.removeChild(h),h=null},100),d},getConnectedImage:function(e){var t=this._optionRestore.title,i=document.createElement("img");return i.src=this.getConnectedDataURL(e),i.title=t&&t.text||"ECharts",i},on:function(e,t){return this._messageCenterOutSide.bind(e,t,this),this},un:function(e,t){return this._messageCenterOutSide.unbind(e,t),this},connect:function(e){if(!e)return this;if(this._connected||(this._connected={}),e instanceof Array)for(var t=0,i=e.length;i>t;t++)this._connected[e[t].id]=e[t];else this._connected[e.id]=e;return this},disConnect:function(e){if(!e||!this._connected)return this;if(e instanceof Array)for(var t=0,i=e.length;i>t;t++)delete this._connected[e[t].id];else delete this._connected[e.id];for(var n in this._connected)return this;return this._connected=!1,this},connectedEventHandler:function(e){e.__echartsId!=this.id&&this._onevent(e)},isConnected:function(){return!!this._connected},showLoading:function(t){var i={bar:e("zrender/loadingEffect/Bar"),bubble:e("zrender/loadingEffect/Bubble"),dynamicLine:e("zrender/loadingEffect/DynamicLine"),ring:e("zrender/loadingEffect/Ring"),spin:e("zrender/loadingEffect/Spin"),whirling:e("zrender/loadingEffect/Whirling")};this._toolbox.hideDataView(),t=t||{};var n=t.textStyle||{};t.textStyle=n;var r=o.merge(o.merge(o.clone(n),this._themeConfig.textStyle),a.textStyle);n.textFont=r.fontStyle+" "+r.fontWeight+" "+r.fontSize+"px "+r.fontFamily,n.text=t.text||this._option&&this._option.loadingText||this._themeConfig.loadingText||a.loadingText,null!=t.x&&(n.x=t.x),null!=t.y&&(n.y=t.y),t.effectOption=t.effectOption||{},t.effectOption.textStyle=n;var s=t.effect;return("string"==typeof s||null==s)&&(s=i[t.effect||this._option&&this._option.loadingEffect||this._themeConfig.loadingEffect||a.loadingEffect]||i.spin),this._zr.showLoading(new s(t.effectOption)),this},hideLoading:function(){return this._zr.hideLoading(),this},setTheme:function(t){if(t){if("string"==typeof t)switch(t){case"macarons":t=e("./theme/macarons");break;case"infographic":t=e("./theme/infographic");break;default:t={}}else t=t||{};this._themeConfig=t}if(!l){var i=this._themeConfig.textStyle;i&&i.fontFamily&&i.fontFamily2&&(i.fontFamily=i.fontFamily2),i=a.textStyle,i.fontFamily=i.fontFamily2}this._timeline&&this._timeline.setTheme(!0),this._optionRestore&&this.restore()},resize:function(){var e=this;return function(){if(e._clearEffect(),e._zr.resize(),e._option&&e._option.renderAsImage&&l)return e._render(e._option),e;e._zr.clearAnimation(),e._island.resize(),e._toolbox.resize(),e._timeline&&e._timeline.resize();for(var t=0,i=e._chartList.length;i>t;t++)e._chartList[t].resize&&e._chartList[t].resize();return e.component.grid&&e.component.grid.refixAxisShape(e.component),e._zr.refresh(),e._messageCenter.dispatch(a.EVENT.RESIZE,null,null,e),e}},_clearEffect:function(){this._zr.modLayer(a.EFFECT_ZLEVEL,{motionBlur:!1}),this._zr.painter.clearLayer(a.EFFECT_ZLEVEL)},clear:function(){return this._disposeChartList(),this._zr.clear(),this._option={},this._optionRestore={},this.dom.style.backgroundColor=null,this},dispose:function(){var e=this.dom.getAttribute(V);e&&delete m[e],this._island.dispose(),this._toolbox.dispose(),this._timeline&&this._timeline.dispose(),this._messageCenter.unbind(),this.clear(),this._zr.dispose(),this._zr=null}},s}),i("echarts/config",[],function(){var e={CHART_TYPE_LINE:"line",CHART_TYPE_BAR:"bar",CHART_TYPE_SCATTER:"scatter",CHART_TYPE_PIE:"pie",CHART_TYPE_RADAR:"radar",CHART_TYPE_VENN:"venn",CHART_TYPE_TREEMAP:"treemap",CHART_TYPE_TREE:"tree",CHART_TYPE_MAP:"map",CHART_TYPE_K:"k",CHART_TYPE_ISLAND:"island",CHART_TYPE_FORCE:"force",CHART_TYPE_CHORD:"chord",CHART_TYPE_GAUGE:"gauge",CHART_TYPE_FUNNEL:"funnel",CHART_TYPE_EVENTRIVER:"eventRiver",CHART_TYPE_WORDCLOUD:"wordCloud",CHART_TYPE_HEATMAP:"heatmap",COMPONENT_TYPE_TITLE:"title",COMPONENT_TYPE_LEGEND:"legend",COMPONENT_TYPE_DATARANGE:"dataRange",COMPONENT_TYPE_DATAVIEW:"dataView",COMPONENT_TYPE_DATAZOOM:"dataZoom",COMPONENT_TYPE_TOOLBOX:"toolbox",COMPONENT_TYPE_TOOLTIP:"tooltip",COMPONENT_TYPE_GRID:"grid",COMPONENT_TYPE_AXIS:"axis",COMPONENT_TYPE_POLAR:"polar",COMPONENT_TYPE_X_AXIS:"xAxis",COMPONENT_TYPE_Y_AXIS:"yAxis",COMPONENT_TYPE_AXIS_CATEGORY:"categoryAxis",COMPONENT_TYPE_AXIS_VALUE:"valueAxis",COMPONENT_TYPE_TIMELINE:"timeline",COMPONENT_TYPE_ROAMCONTROLLER:"roamController",backgroundColor:"rgba(0,0,0,0)",color:["#ff7f50","#87cefa","#da70d6","#32cd32","#6495ed","#ff69b4","#ba55d3","#cd5c5c","#ffa500","#40e0d0","#1e90ff","#ff6347","#7b68ee","#00fa9a","#ffd700","#6699FF","#ff6666","#3cb371","#b8860b","#30e0e0"],markPoint:{clickable:!0,symbol:"pin",symbolSize:10,large:!1,effect:{show:!1,loop:!0,period:15,type:"scale",scaleSize:2,bounceDistance:10},itemStyle:{normal:{borderWidth:2,label:{show:!0,position:"inside"}},emphasis:{label:{show:!0}}}},markLine:{clickable:!0,symbol:["circle","arrow"],symbolSize:[2,4],smoothness:.2,precision:2,effect:{show:!1,loop:!0,period:15,scaleSize:2},bundling:{enable:!1,maxTurningAngle:45},itemStyle:{normal:{borderWidth:1.5,label:{show:!0,position:"end"},lineStyle:{type:"dashed"}},emphasis:{label:{show:!1},lineStyle:{}}}},textStyle:{decoration:"none",fontFamily:"Arial, Verdana, sans-serif",fontFamily2:"微软雅黑",fontSize:12,fontStyle:"normal",fontWeight:"normal"},EVENT:{REFRESH:"refresh",RESTORE:"restore",RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",HOVER:"hover",MOUSEOUT:"mouseout",DATA_CHANGED:"dataChanged",DATA_ZOOM:"dataZoom",DATA_RANGE:"dataRange",DATA_RANGE_SELECTED:"dataRangeSelected",DATA_RANGE_HOVERLINK:"dataRangeHoverLink",LEGEND_SELECTED:"legendSelected",LEGEND_HOVERLINK:"legendHoverLink",MAP_SELECTED:"mapSelected",PIE_SELECTED:"pieSelected",MAGIC_TYPE_CHANGED:"magicTypeChanged",DATA_VIEW_CHANGED:"dataViewChanged",TIMELINE_CHANGED:"timelineChanged",MAP_ROAM:"mapRoam",FORCE_LAYOUT_END:"forceLayoutEnd",TOOLTIP_HOVER:"tooltipHover",TOOLTIP_IN_GRID:"tooltipInGrid",TOOLTIP_OUT_GRID:"tooltipOutGrid",ROAMCONTROLLER:"roamController"},DRAG_ENABLE_TIME:120,EFFECT_ZLEVEL:10,effectBlendAlpha:.95,symbolList:["circle","rectangle","triangle","diamond","emptyCircle","emptyRectangle","emptyTriangle","emptyDiamond"],loadingEffect:"spin",loadingText:"数据读取中...",noDataEffect:"bubble",noDataText:"暂无数据",calculable:!1,calculableColor:"rgba(255,165,0,0.6)",calculableHolderColor:"#ccc",nameConnector:" & ",valueConnector:": ",animation:!0,addDataAnimation:!0,animationThreshold:2e3,animationDuration:2e3,animationDurationUpdate:500,animationEasing:"ExponentialOut"};return e}),i("zrender/tool/util",["require","../dep/excanvas"],function(e){function t(e){return e&&1===e.nodeType&&"string"==typeof e.nodeName}function i(e){if("object"==typeof e&&null!==e){var n=e;if(e instanceof Array){n=[];for(var a=0,o=e.length;o>a;a++)n[a]=i(e[a])}else if(!y[g.call(e)]&&!t(e)){n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=i(e[r]))}return n}return e}function n(e,i,n,o){if(i.hasOwnProperty(n)){var r=e[n];"object"!=typeof r||y[g.call(r)]||t(r)?!o&&n in e||(e[n]=i[n]):a(e[n],i[n],o)}}function a(e,t,i){for(var a in t)n(e,t,a,i);return e}function o(){if(!U)if(e("../dep/excanvas"),window.G_vmlCanvasManager){var t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",document.body.appendChild(t),U=G_vmlCanvasManager.initElement(t).getContext("2d")}else U=document.createElement("canvas").getContext("2d");return U}function r(e,t){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return i;return-1}function s(e,t){function i(){}var n=e.prototype;i.prototype=t.prototype,e.prototype=new i;for(var a in n)e.prototype[a]=n[a];e.constructor=e}function l(e,t,i){if(e&&t)if(e.forEach&&e.forEach===p)e.forEach(t,i);else if(e.length===+e.length)for(var n=0,a=e.length;a>n;n++)t.call(i,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)}function h(e,t,i){if(e&&t){if(e.map&&e.map===c)return e.map(t,i);for(var n=[],a=0,o=e.length;o>a;a++)n.push(t.call(i,e[a],a,e));return n}}function m(e,t,i){if(e&&t){if(e.filter&&e.filter===u)return e.filter(t,i);for(var n=[],a=0,o=e.length;o>a;a++)t.call(i,e[a],a,e)&&n.push(e[a]);return n}}function V(e,t){return function(){e.apply(t,arguments)}}var U,d=Array.prototype,p=d.forEach,c=d.map,u=d.filter,y={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},g=Object.prototype.toString;return{inherits:s,clone:i,merge:a,getContext:o,indexOf:r,each:l,map:h,filter:m,bind:V}}),i("zrender/tool/event",["require","../mixin/Eventful"],function(e){"use strict";function t(e){return"undefined"!=typeof e.zrenderX&&e.zrenderX||"undefined"!=typeof e.offsetX&&e.offsetX||"undefined"!=typeof e.layerX&&e.layerX||"undefined"!=typeof e.clientX&&e.clientX}function i(e){return"undefined"!=typeof e.zrenderY&&e.zrenderY||"undefined"!=typeof e.offsetY&&e.offsetY||"undefined"!=typeof e.layerY&&e.layerY||"undefined"!=typeof e.clientY&&e.clientY}function n(e){return"undefined"!=typeof e.zrenderDelta&&e.zrenderDelta||"undefined"!=typeof e.wheelDelta&&e.wheelDelta||"undefined"!=typeof e.detail&&-e.detail}var a=e("../mixin/Eventful"),o="function"==typeof window.addEventListener?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};return{getX:t,getY:i,getDelta:n,stop:o,Dispatcher:a}}),i("zrender/tool/env",[],function(){function e(e){var t=this.os={},i=this.browser={},n=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=e.match(/(Android);?[\s\/]+([\d.]+)?/),o=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!o&&e.match(/(iPhone\sOS)\s([\d_]+)/),l=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),h=l&&e.match(/TouchPad/),m=e.match(/Kindle\/([\d.]+)/),V=e.match(/Silk\/([\d._]+)/),U=e.match(/(BlackBerry).*Version\/([\d.]+)/),d=e.match(/(BB10).*Version\/([\d.]+)/),p=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),c=e.match(/PlayBook/),u=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),y=e.match(/Firefox\/([\d.]+)/),g=e.match(/MSIE ([\d.]+)/),b=n&&e.match(/Mobile\//)&&!u,f=e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!u,g=e.match(/MSIE\s([\d.]+)/);return(i.webkit=!!n)&&(i.version=n[1]),a&&(t.android=!0,t.version=a[2]),s&&!r&&(t.ios=t.iphone=!0,t.version=s[2].replace(/_/g,".")),o&&(t.ios=t.ipad=!0,t.version=o[2].replace(/_/g,".")),r&&(t.ios=t.ipod=!0,t.version=r[3]?r[3].replace(/_/g,"."):null),l&&(t.webos=!0,t.version=l[2]),h&&(t.touchpad=!0),U&&(t.blackberry=!0,t.version=U[2]),d&&(t.bb10=!0,t.version=d[2]),p&&(t.rimtabletos=!0,t.version=p[2]),c&&(i.playbook=!0),m&&(t.kindle=!0,t.version=m[1]),V&&(i.silk=!0,i.version=V[1]),!V&&t.android&&e.match(/Kindle Fire/)&&(i.silk=!0),u&&(i.chrome=!0,i.version=u[1]),y&&(i.firefox=!0,i.version=y[1]),g&&(i.ie=!0,i.version=g[1]),b&&(e.match(/Safari/)||t.ios)&&(i.safari=!0),f&&(i.webview=!0),g&&(i.ie=!0,i.version=g[1]),t.tablet=!!(o||c||a&&!e.match(/Mobile/)||y&&e.match(/Tablet/)||g&&!e.match(/Phone/)&&e.match(/Touch/)),t.phone=!(t.tablet||t.ipod||!(a||s||l||U||d||u&&e.match(/Android/)||u&&e.match(/CriOS\/([\d.]+)/)||y&&e.match(/Mobile/)||g&&e.match(/Touch/))),{browser:i,os:t,canvasSupported:document.createElement("canvas").getContext?!0:!1}}return e(navigator.userAgent)}),i("zrender",["zrender/zrender"],function(e){return e}),i("zrender/zrender",["require","./dep/excanvas","./tool/util","./tool/log","./tool/guid","./Handler","./Painter","./Storage","./animation/Animation","./tool/env"],function(e){function t(e){return function(){e._needsRefreshNextFrame&&e.refresh()}}e("./dep/excanvas");var i=e("./tool/util"),n=e("./tool/log"),a=e("./tool/guid"),o=e("./Handler"),r=e("./Painter"),s=e("./Storage"),l=e("./animation/Animation"),h={},m={};m.version="2.1.1",m.init=function(e){var t=new V(a(),e);return h[t.id]=t,t},m.dispose=function(e){if(e)e.dispose();else{for(var t in h)h[t].dispose();h={}}return m},m.getInstance=function(e){return h[e]},m.delInstance=function(e){return delete h[e],m};var V=function(i,n){this.id=i,this.env=e("./tool/env"),this.storage=new s,this.painter=new r(n,this.storage),this.handler=new o(n,this.storage,this.painter),this.animation=new l({stage:{update:t(this)}}),this.animation.start();var a=this;this.painter.refreshNextFrame=function(){a.refreshNextFrame()},this._needsRefreshNextFrame=!1;var a=this,h=this.storage,m=h.delFromMap;h.delFromMap=function(e){var t=h.get(e);a.stopAnimation(t),m.call(h,e)}};return V.prototype.getId=function(){return this.id},V.prototype.addShape=function(e){return this.addElement(e),this},V.prototype.addGroup=function(e){return this.addElement(e),this},V.prototype.delShape=function(e){return this.delElement(e),this},V.prototype.delGroup=function(e){return this.delElement(e),this},V.prototype.modShape=function(e,t){return this.modElement(e,t),this},V.prototype.modGroup=function(e,t){return this.modElement(e,t),this},V.prototype.addElement=function(e){return this.storage.addRoot(e),this._needsRefreshNextFrame=!0,this},V.prototype.delElement=function(e){return this.storage.delRoot(e),this._needsRefreshNextFrame=!0,this},V.prototype.modElement=function(e,t){return this.storage.mod(e,t),this._needsRefreshNextFrame=!0,this},V.prototype.modLayer=function(e,t){return this.painter.modLayer(e,t),this._needsRefreshNextFrame=!0,this},V.prototype.addHoverShape=function(e){return this.storage.addHover(e),this},V.prototype.render=function(e){return this.painter.render(e),this._needsRefreshNextFrame=!1,this},V.prototype.refresh=function(e){return this.painter.refresh(e),this._needsRefreshNextFrame=!1,this},V.prototype.refreshNextFrame=function(){return this._needsRefreshNextFrame=!0,this},V.prototype.refreshHover=function(e){return this.painter.refreshHover(e),this},V.prototype.refreshShapes=function(e,t){return this.painter.refreshShapes(e,t),this},V.prototype.resize=function(){return this.painter.resize(),this},V.prototype.animate=function(e,t,a){var o=this;if("string"==typeof e&&(e=this.storage.get(e)),e){var r;if(t){for(var s=t.split("."),l=e,h=0,m=s.length;m>h;h++)l&&(l=l[s[h]]);l&&(r=l)}else r=e;if(!r)return void n('Property "'+t+'" is not existed in element '+e.id);
-
-null==e.__animators&&(e.__animators=[]);var V=e.__animators,U=this.animation.animate(r,{loop:a}).during(function(){o.modShape(e)}).done(function(){var t=i.indexOf(e.__animators,U);t>=0&&V.splice(t,1)});return V.push(U),U}n("Element not existed")},V.prototype.stopAnimation=function(e){if(e.__animators){for(var t=e.__animators,i=t.length,n=0;i>n;n++)t[n].stop();t.length=0}return this},V.prototype.clearAnimation=function(){return this.animation.clear(),this},V.prototype.showLoading=function(e){return this.painter.showLoading(e),this},V.prototype.hideLoading=function(){return this.painter.hideLoading(),this},V.prototype.getWidth=function(){return this.painter.getWidth()},V.prototype.getHeight=function(){return this.painter.getHeight()},V.prototype.toDataURL=function(e,t,i){return this.painter.toDataURL(e,t,i)},V.prototype.shapeToImage=function(e,t,i){var n=a();return this.painter.shapeToImage(n,e,t,i)},V.prototype.on=function(e,t,i){return this.handler.on(e,t,i),this},V.prototype.un=function(e,t){return this.handler.un(e,t),this},V.prototype.trigger=function(e,t){return this.handler.trigger(e,t),this},V.prototype.clear=function(){return this.storage.delRoot(),this.painter.clear(),this},V.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,m.delInstance(this.id)},m}),i("zrender/config",[],function(){var e={EVENT:{RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},elementClassName:"zr-element",catchBrushException:!1,debugMode:0,devicePixelRatio:Math.max(window.devicePixelRatio||1,1)};return e}),i("echarts/chart/island",["require","./base","zrender/shape/Circle","../config","../util/ecData","zrender/tool/util","zrender/tool/event","zrender/tool/color","../util/accMath","../chart"],function(e){function t(e,t,n,a,r){i.call(this,e,t,n,a,r),this._nameConnector,this._valueConnector,this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth();var l=this;l.shapeHandler.onmousewheel=function(e){var t=e.target,i=e.event,n=s.getDelta(i);n=n>0?-1:1,t.style.r-=n,t.style.r=t.style.r<5?5:t.style.r;var a=o.get(t,"value"),r=a*l.option.island.calculateStep;a=r>1?Math.round(a-r*n):+(a-r*n).toFixed(2);var h=o.get(t,"name");t.style.text=h+":"+a,o.set(t,"value",a),o.set(t,"name",h),l.zr.modShape(t.id),l.zr.refreshNextFrame(),s.stop(i)}}var i=e("./base"),n=e("zrender/shape/Circle"),a=e("../config");a.island={zlevel:0,z:5,r:15,calculateStep:.1};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/event");return t.prototype={type:a.CHART_TYPE_ISLAND,_combine:function(t,i){var n=e("zrender/tool/color"),a=e("../util/accMath"),r=a.accAdd(o.get(t,"value"),o.get(i,"value")),s=o.get(t,"name")+this._nameConnector+o.get(i,"name");t.style.text=s+this._valueConnector+r,o.set(t,"value",r),o.set(t,"name",s),t.style.r=this.option.island.r,t.style.color=n.mix(t.style.color,i.style.color)},refresh:function(e){e&&(e.island=this.reformOption(e.island),this.option=e,this._nameConnector=this.option.nameConnector,this._valueConnector=this.option.valueConnector)},getOption:function(){return this.option},resize:function(){var e=this.zr.getWidth(),t=this.zr.getHeight(),i=e/(this._zrWidth||e),n=t/(this._zrHeight||t);if(1!==i||1!==n){this._zrWidth=e,this._zrHeight=t;for(var a=0,o=this.shapeList.length;o>a;a++)this.zr.modShape(this.shapeList[a].id,{style:{x:Math.round(this.shapeList[a].style.x*i),y:Math.round(this.shapeList[a].style.y*n)}})}},add:function(e){var t=o.get(e,"name"),i=o.get(e,"value"),a=null!=o.get(e,"series")?o.get(e,"series").name:"",r=this.getFont(this.option.island.textStyle),s=this.option.island,l={zlevel:s.zlevel,z:s.z,style:{x:e.style.x,y:e.style.y,r:this.option.island.r,color:e.style.color||e.style.strokeColor,text:t+this._valueConnector+i,textFont:r},draggable:!0,hoverable:!0,onmousewheel:this.shapeHandler.onmousewheel,_type:"island"};"#fff"===l.style.color&&(l.style.color=e.style.strokeColor),this.setCalculable(l),l.dragEnableTime=0,o.pack(l,{name:a},-1,i,-1,t),l=new n(l),this.shapeList.push(l),this.zr.addShape(l)},del:function(e){this.zr.delShape(e.id);for(var t=[],i=0,n=this.shapeList.length;n>i;i++)this.shapeList[i].id!=e.id&&t.push(this.shapeList[i]);this.shapeList=t},ondrop:function(e,t){if(this.isDrop&&e.target){var i=e.target,n=e.dragged;this._combine(i,n),this.zr.modShape(i.id),t.dragIn=!0,this.isDrop=!1}},ondragend:function(e,t){var i=e.target;this.isDragend?t.dragIn&&(this.del(i),t.needRefresh=!0):t.dragIn||(i.style.x=s.getX(e.event),i.style.y=s.getY(e.event),this.add(i),t.needRefresh=!0),this.isDragend=!1}},r.inherits(t,i),e("../chart").define("island",t),t}),i("echarts/component/toolbox",["require","./base","zrender/shape/Line","zrender/shape/Image","zrender/shape/Rectangle","../util/shape/Icon","../config","zrender/tool/util","zrender/config","zrender/tool/event","./dataView","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.dom=o.dom,this._magicType={},this._magicMap={},this._isSilence=!1,this._iconList,this._iconShapeMap={},this._featureTitle={},this._featureIcon={},this._featureColor={},this._featureOption={},this._enableColor="red",this._disableColor="#ccc",this._markShapeList=[];var r=this;r._onMark=function(e){r.__onMark(e)},r._onMarkUndo=function(e){r.__onMarkUndo(e)},r._onMarkClear=function(e){r.__onMarkClear(e)},r._onDataZoom=function(e){r.__onDataZoom(e)},r._onDataZoomReset=function(e){r.__onDataZoomReset(e)},r._onDataView=function(e){r.__onDataView(e)},r._onRestore=function(e){r.__onRestore(e)},r._onSaveAsImage=function(e){r.__onSaveAsImage(e)},r._onMagicType=function(e){r.__onMagicType(e)},r._onCustomHandler=function(e){r.__onCustomHandler(e)},r._onmousemove=function(e){return r.__onmousemove(e)},r._onmousedown=function(e){return r.__onmousedown(e)},r._onmouseup=function(e){return r.__onmouseup(e)},r._onclick=function(e){return r.__onclick(e)}}var i=e("./base"),n=e("zrender/shape/Line"),a=e("zrender/shape/Image"),o=e("zrender/shape/Rectangle"),r=e("../util/shape/Icon"),s=e("../config");s.toolbox={zlevel:0,z:6,show:!1,orient:"horizontal",x:"right",y:"top",color:["#1e90ff","#22bb22","#4b0082","#d2691e"],disableColor:"#ddd",effectiveColor:"red",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemSize:16,showTitle:!0,feature:{mark:{show:!1,title:{mark:"辅助线开关",markUndo:"删除辅助线",markClear:"清空辅助线"},lineStyle:{width:1,color:"#1e90ff",type:"dashed"}},dataZoom:{show:!1,title:{dataZoom:"区域缩放",dataZoomReset:"区域缩放后退"}},dataView:{show:!1,title:"数据视图",readOnly:!1,lang:["数据视图","关闭","刷新"]},magicType:{show:!1,title:{line:"折线图切换",bar:"柱形图切换",stack:"堆积",tiled:"平铺",force:"力导向布局图切换",chord:"和弦图切换",pie:"饼图切换",funnel:"漏斗图切换"},type:[]},restore:{show:!1,title:"还原"},saveAsImage:{show:!1,title:"保存为图片",type:"png",lang:["点击保存"]}}};var l=e("zrender/tool/util"),h=e("zrender/config"),m=e("zrender/tool/event"),V="stack",U="tiled";return t.prototype={type:s.COMPONENT_TYPE_TOOLBOX,_buildShape:function(){this._iconList=[];var e=this.option.toolbox;this._enableColor=e.effectiveColor,this._disableColor=e.disableColor;var t=e.feature,i=[];for(var n in t)if(t[n].show)switch(n){case"mark":i.push({key:n,name:"mark"}),i.push({key:n,name:"markUndo"}),i.push({key:n,name:"markClear"});break;case"magicType":for(var a=0,o=t[n].type.length;o>a;a++)t[n].title[t[n].type[a]+"Chart"]=t[n].title[t[n].type[a]],t[n].option&&(t[n].option[t[n].type[a]+"Chart"]=t[n].option[t[n].type[a]]),i.push({key:n,name:t[n].type[a]+"Chart"});break;case"dataZoom":i.push({key:n,name:"dataZoom"}),i.push({key:n,name:"dataZoomReset"});break;case"saveAsImage":this.canvasSupported&&i.push({key:n,name:"saveAsImage"});break;default:i.push({key:n,name:n})}if(i.length>0){for(var r,n,a=0,o=i.length;o>a;a++)r=i[a].name,n=i[a].key,this._iconList.push(r),this._featureTitle[r]=t[n].title[r]||t[n].title,t[n].icon&&(this._featureIcon[r]=t[n].icon[r]||t[n].icon),t[n].color&&(this._featureColor[r]=t[n].color[r]||t[n].color),t[n].option&&(this._featureOption[r]=t[n].option[r]||t[n].option);this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var a=0,o=this.shapeList.length;o>a;a++)this.zr.addShape(this.shapeList[a]);this._iconShapeMap.mark&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear)),this._iconShapeMap.dataZoomReset&&0===this._zoomQueue.length&&this._iconDisable(this._iconShapeMap.dataZoomReset)}},_buildItem:function(){var t,i,n,o,s=this.option.toolbox,l=this._iconList.length,h=this._itemGroupLocation.x,m=this._itemGroupLocation.y,V=s.itemSize,U=s.itemGap,d=s.color instanceof Array?s.color:[s.color],p=this.getFont(s.textStyle);"horizontal"===s.orient?(i=this._itemGroupLocation.y/this.zr.getHeight()<.5?"bottom":"top",n=this._itemGroupLocation.x/this.zr.getWidth()<.5?"left":"right",o=this._itemGroupLocation.y/this.zr.getHeight()<.5?"top":"bottom"):i=this._itemGroupLocation.x/this.zr.getWidth()<.5?"right":"left",this._iconShapeMap={};for(var c=this,u=0;l>u;u++){switch(t={type:"icon",zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:h,y:m,width:V,height:V,iconType:this._iconList[u],lineWidth:1,strokeColor:this._featureColor[this._iconList[u]]||d[u%d.length],brushType:"stroke"},highlightStyle:{lineWidth:1,text:s.showTitle?this._featureTitle[this._iconList[u]]:void 0,textFont:p,textPosition:i,strokeColor:this._featureColor[this._iconList[u]]||d[u%d.length]},hoverable:!0,clickable:!0},this._featureIcon[this._iconList[u]]&&(t.style.image=this._featureIcon[this._iconList[u]].replace(new RegExp("^image:\\/\\/"),""),t.style.opacity=.8,t.highlightStyle.opacity=1,t.type="image"),"horizontal"===s.orient&&(0===u&&"left"===n&&(t.highlightStyle.textPosition="specific",t.highlightStyle.textAlign=n,t.highlightStyle.textBaseline=o,t.highlightStyle.textX=h,t.highlightStyle.textY="top"===o?m+V+10:m-10),u===l-1&&"right"===n&&(t.highlightStyle.textPosition="specific",t.highlightStyle.textAlign=n,t.highlightStyle.textBaseline=o,t.highlightStyle.textX=h+V,t.highlightStyle.textY="top"===o?m+V+10:m-10)),this._iconList[u]){case"mark":t.onclick=c._onMark;break;case"markUndo":t.onclick=c._onMarkUndo;break;case"markClear":t.onclick=c._onMarkClear;break;case"dataZoom":t.onclick=c._onDataZoom;break;case"dataZoomReset":t.onclick=c._onDataZoomReset;break;case"dataView":if(!this._dataView){var y=e("./dataView");this._dataView=new y(this.ecTheme,this.messageCenter,this.zr,this.option,this.myChart)}t.onclick=c._onDataView;break;case"restore":t.onclick=c._onRestore;break;case"saveAsImage":t.onclick=c._onSaveAsImage;break;default:this._iconList[u].match("Chart")?(t._name=this._iconList[u].replace("Chart",""),t.onclick=c._onMagicType):t.onclick=c._onCustomHandler}"icon"===t.type?t=new r(t):"image"===t.type&&(t=new a(t)),this.shapeList.push(t),this._iconShapeMap[this._iconList[u]]=t,"horizontal"===s.orient?h+=V+U:m+=V+U}},_buildBackground:function(){var e=this.option.toolbox,t=this.reformCssArray(this.option.toolbox.padding);this.shapeList.push(new o({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-t[3],y:this._itemGroupLocation.y-t[0],width:this._itemGroupLocation.width+t[3]+t[1],height:this._itemGroupLocation.height+t[0]+t[2],brushType:0===e.borderWidth?"fill":"both",color:e.backgroundColor,strokeColor:e.borderColor,lineWidth:e.borderWidth}}))},_getItemGroupLocation:function(){var e=this.option.toolbox,t=this.reformCssArray(this.option.toolbox.padding),i=this._iconList.length,n=e.itemGap,a=e.itemSize,o=0,r=0;"horizontal"===e.orient?(o=(a+n)*i-n,r=a):(r=(a+n)*i-n,o=a);var s,l=this.zr.getWidth();switch(e.x){case"center":s=Math.floor((l-o)/2);break;case"left":s=t[3]+e.borderWidth;break;case"right":s=l-o-t[1]-e.borderWidth;break;default:s=e.x-0,s=isNaN(s)?0:s}var h,m=this.zr.getHeight();switch(e.y){case"top":h=t[0]+e.borderWidth;break;case"bottom":h=m-r-t[2]-e.borderWidth;break;case"center":h=Math.floor((m-r)/2);break;default:h=e.y-0,h=isNaN(h)?0:h}return{x:s,y:h,width:o,height:r}},__onmousemove:function(e){this._marking&&(this._markShape.style.xEnd=m.getX(e.event),this._markShape.style.yEnd=m.getY(e.event),this.zr.addHoverShape(this._markShape)),this._zooming&&(this._zoomShape.style.width=m.getX(e.event)-this._zoomShape.style.x,this._zoomShape.style.height=m.getY(e.event)-this._zoomShape.style.y,this.zr.addHoverShape(this._zoomShape),this.dom.style.cursor="crosshair",m.stop(e.event)),this._zoomStart&&"pointer"!=this.dom.style.cursor&&"move"!=this.dom.style.cursor&&(this.dom.style.cursor="crosshair")},__onmousedown:function(e){if(!e.target){this._zooming=!0;var t=m.getX(e.event),i=m.getY(e.event),n=this.option.dataZoom||{};return this._zoomShape=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:t,y:i,width:1,height:1,brushType:"both"},highlightStyle:{lineWidth:2,color:n.fillerColor||s.dataZoom.fillerColor,strokeColor:n.handleColor||s.dataZoom.handleColor,brushType:"both"}}),this.zr.addHoverShape(this._zoomShape),!0}},__onmouseup:function(){if(!this._zoomShape||Math.abs(this._zoomShape.style.width)<10||Math.abs(this._zoomShape.style.height)<10)return this._zooming=!1,!0;if(this._zooming&&this.component.dataZoom){this._zooming=!1;var e=this.component.dataZoom.rectZoom(this._zoomShape.style);e&&(this._zoomQueue.push({start:e.start,end:e.end,start2:e.start2,end2:e.end2}),this._iconEnable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame())}return!0},__onclick:function(e){if(!e.target)if(this._marking)this._marking=!1,this._markShapeList.push(this._markShape),this._iconEnable(this._iconShapeMap.markUndo),this._iconEnable(this._iconShapeMap.markClear),this.zr.addShape(this._markShape),this.zr.refreshNextFrame();else if(this._markStart){this._marking=!0;var t=m.getX(e.event),i=m.getY(e.event);this._markShape=new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:t,yStart:i,xEnd:t,yEnd:i,lineWidth:this.query(this.option,"toolbox.feature.mark.lineStyle.width"),strokeColor:this.query(this.option,"toolbox.feature.mark.lineStyle.color"),lineType:this.query(this.option,"toolbox.feature.mark.lineStyle.type")}}),this.zr.addHoverShape(this._markShape)}},__onMark:function(e){var t=e.target;if(this._marking||this._markStart)this._resetMark(),this.zr.refreshNextFrame();else{this._resetZoom(),this.zr.modShape(t.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._markStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(h.EVENT.CLICK,i._onclick)&&i.zr.on(h.EVENT.MOUSEMOVE,i._onmousemove)},10)}return!0},__onMarkUndo:function(){if(this._marking)this._marking=!1;else{var e=this._markShapeList.length;if(e>=1){var t=this._markShapeList[e-1];this.zr.delShape(t.id),this.zr.refreshNextFrame(),this._markShapeList.pop(),1===e&&(this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear))}}return!0},__onMarkClear:function(){this._marking&&(this._marking=!1);var e=this._markShapeList.length;if(e>0){for(;e--;)this.zr.delShape(this._markShapeList.pop().id);this._iconDisable(this._iconShapeMap.markUndo),this._iconDisable(this._iconShapeMap.markClear),this.zr.refreshNextFrame()}return!0},__onDataZoom:function(e){var t=e.target;if(this._zooming||this._zoomStart)this._resetZoom(),this.zr.refreshNextFrame(),this.dom.style.cursor="default";else{this._resetMark(),this.zr.modShape(t.id,{style:{strokeColor:this._enableColor}}),this.zr.refreshNextFrame(),this._zoomStart=!0;var i=this;setTimeout(function(){i.zr&&i.zr.on(h.EVENT.MOUSEDOWN,i._onmousedown)&&i.zr.on(h.EVENT.MOUSEUP,i._onmouseup)&&i.zr.on(h.EVENT.MOUSEMOVE,i._onmousemove)},10),this.dom.style.cursor="crosshair"}return!0},__onDataZoomReset:function(){return this._zooming&&(this._zooming=!1),this._zoomQueue.pop(),this._zoomQueue.length>0?this.component.dataZoom.absoluteZoom(this._zoomQueue[this._zoomQueue.length-1]):(this.component.dataZoom.rectZoom(),this._iconDisable(this._iconShapeMap.dataZoomReset),this.zr.refreshNextFrame()),!0},_resetMark:function(){this._marking=!1,this._markStart&&(this._markStart=!1,this._iconShapeMap.mark&&this.zr.modShape(this._iconShapeMap.mark.id,{style:{strokeColor:this._iconShapeMap.mark.highlightStyle.strokeColor}}),this.zr.un(h.EVENT.CLICK,this._onclick),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove))},_resetZoom:function(){this._zooming=!1,this._zoomStart&&(this._zoomStart=!1,this._iconShapeMap.dataZoom&&this.zr.modShape(this._iconShapeMap.dataZoom.id,{style:{strokeColor:this._iconShapeMap.dataZoom.highlightStyle.strokeColor}}),this.zr.un(h.EVENT.MOUSEDOWN,this._onmousedown),this.zr.un(h.EVENT.MOUSEUP,this._onmouseup),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove))},_iconDisable:function(e){"image"!=e.type?this.zr.modShape(e.id,{hoverable:!1,clickable:!1,style:{strokeColor:this._disableColor}}):this.zr.modShape(e.id,{hoverable:!1,clickable:!1,style:{opacity:.3}})},_iconEnable:function(e){"image"!=e.type?this.zr.modShape(e.id,{hoverable:!0,clickable:!0,style:{strokeColor:e.highlightStyle.strokeColor}}):this.zr.modShape(e.id,{hoverable:!0,clickable:!0,style:{opacity:.8}})},__onDataView:function(){return this._dataView.show(this.option),!0},__onRestore:function(){return this._resetMark(),this._resetZoom(),this.messageCenter.dispatch(s.EVENT.RESTORE,null,null,this.myChart),!0},__onSaveAsImage:function(){var e=this.option.toolbox.feature.saveAsImage,t=e.type||"png";"png"!=t&&"jpeg"!=t&&(t="png");var i;i=this.myChart.isConnected()?this.myChart.getConnectedDataURL(t):this.zr.toDataURL("image/"+t,this.option.backgroundColor&&"rgba(0,0,0,0)"===this.option.backgroundColor.replace(" ","")?"#fff":this.option.backgroundColor);var n=document.createElement("div");n.id="__echarts_download_wrap__",n.style.cssText="position:fixed;z-index:99999;display:block;top:0;left:0;background-color:rgba(33,33,33,0.5);text-align:center;width:100%;height:100%;line-height:"+document.documentElement.clientHeight+"px;";var a=document.createElement("a");a.href=i,a.setAttribute("download",(e.name?e.name:this.option.title&&(this.option.title.text||this.option.title.subtext)?this.option.title.text||this.option.title.subtext:"ECharts")+"."+t),a.innerHTML='<img style="vertical-align:middle" src="'+i+'" title="'+(window.ActiveXObject||"ActiveXObject"in window?"右键->图片另存为":e.lang?e.lang[0]:"点击保存")+'"/>',n.appendChild(a),document.body.appendChild(n),a=null,n=null,setTimeout(function(){var e=document.getElementById("__echarts_download_wrap__");e&&(e.onclick=function(){var e=document.getElementById("__echarts_download_wrap__");e.onclick=null,e.innerHTML="",document.body.removeChild(e),e=null},e=null)},500)},__onMagicType:function(e){this._resetMark();var t=e.target._name;return this._magicType[t]||(this._magicType[t]=!0,t===s.CHART_TYPE_LINE?this._magicType[s.CHART_TYPE_BAR]=!1:t===s.CHART_TYPE_BAR&&(this._magicType[s.CHART_TYPE_LINE]=!1),t===s.CHART_TYPE_PIE?this._magicType[s.CHART_TYPE_FUNNEL]=!1:t===s.CHART_TYPE_FUNNEL&&(this._magicType[s.CHART_TYPE_PIE]=!1),t===s.CHART_TYPE_FORCE?this._magicType[s.CHART_TYPE_CHORD]=!1:t===s.CHART_TYPE_CHORD&&(this._magicType[s.CHART_TYPE_FORCE]=!1),t===V?this._magicType[U]=!1:t===U&&(this._magicType[V]=!1),this.messageCenter.dispatch(s.EVENT.MAGIC_TYPE_CHANGED,e.event,{magicType:this._magicType},this.myChart)),!0},setMagicType:function(e){this._resetMark(),this._magicType=e,!this._isSilence&&this.messageCenter.dispatch(s.EVENT.MAGIC_TYPE_CHANGED,null,{magicType:this._magicType},this.myChart)},__onCustomHandler:function(e){var t=e.target.style.iconType,i=this.option.toolbox.feature[t].onclick;"function"==typeof i&&i.call(this,this.option)},reset:function(e,t){if(t&&this.clear(),this.query(e,"toolbox.show")&&this.query(e,"toolbox.feature.magicType.show")){var i=e.toolbox.feature.magicType.type,n=i.length;for(this._magicMap={};n--;)this._magicMap[i[n]]=!0;n=e.series.length;for(var a,o;n--;)a=e.series[n].type,this._magicMap[a]&&(o=e.xAxis instanceof Array?e.xAxis[e.series[n].xAxisIndex||0]:e.xAxis,o&&"category"===(o.type||"category")&&(o.__boundaryGap=null!=o.boundaryGap?o.boundaryGap:!0),o=e.yAxis instanceof Array?e.yAxis[e.series[n].yAxisIndex||0]:e.yAxis,o&&"category"===o.type&&(o.__boundaryGap=null!=o.boundaryGap?o.boundaryGap:!0),e.series[n].__type=a,e.series[n].__itemStyle=l.clone(e.series[n].itemStyle||{})),(this._magicMap[V]||this._magicMap[U])&&(e.series[n].__stack=e.series[n].stack)}this._magicType=t?{}:this._magicType||{};for(var r in this._magicType)if(this._magicType[r]){this.option=e,this.getMagicOption();break}var s=e.dataZoom;if(s&&s.show){var h=null!=s.start&&s.start>=0&&s.start<=100?s.start:0,m=null!=s.end&&s.end>=0&&s.end<=100?s.end:100;h>m&&(h+=m,m=h-m,h-=m),this._zoomQueue=[{start:h,end:m,start2:0,end2:100}]}else this._zoomQueue=[]},getMagicOption:function(){var e,t;if(this._magicType[s.CHART_TYPE_LINE]||this._magicType[s.CHART_TYPE_BAR]){for(var i=this._magicType[s.CHART_TYPE_LINE]?!1:!0,n=0,a=this.option.series.length;a>n;n++)t=this.option.series[n].type,(t==s.CHART_TYPE_LINE||t==s.CHART_TYPE_BAR)&&(e=this.option.xAxis instanceof Array?this.option.xAxis[this.option.series[n].xAxisIndex||0]:this.option.xAxis,e&&"category"===(e.type||"category")&&(e.boundaryGap=i?!0:e.__boundaryGap),e=this.option.yAxis instanceof Array?this.option.yAxis[this.option.series[n].yAxisIndex||0]:this.option.yAxis,e&&"category"===e.type&&(e.boundaryGap=i?!0:e.__boundaryGap));this._defaultMagic(s.CHART_TYPE_LINE,s.CHART_TYPE_BAR)}if(this._defaultMagic(s.CHART_TYPE_CHORD,s.CHART_TYPE_FORCE),this._defaultMagic(s.CHART_TYPE_PIE,s.CHART_TYPE_FUNNEL),this._magicType[V]||this._magicType[U])for(var n=0,a=this.option.series.length;a>n;n++)this._magicType[V]?(this.option.series[n].stack="_ECHARTS_STACK_KENER_2014_",t=V):this._magicType[U]&&(this.option.series[n].stack=null,t=U),this._featureOption[t+"Chart"]&&l.merge(this.option.series[n],this._featureOption[t+"Chart"]||{},!0);return this.option},_defaultMagic:function(e,t){if(this._magicType[e]||this._magicType[t])for(var i=0,n=this.option.series.length;n>i;i++){var a=this.option.series[i].type;(a==e||a==t)&&(this.option.series[i].type=this._magicType[e]?e:t,this.option.series[i].itemStyle=l.clone(this.option.series[i].__itemStyle),a=this.option.series[i].type,this._featureOption[a+"Chart"]&&l.merge(this.option.series[i],this._featureOption[a+"Chart"]||{},!0))}},silence:function(e){this._isSilence=e},resize:function(){this._resetMark(),this.clear(),this.option&&this.option.toolbox&&this.option.toolbox.show&&this._buildShape(),this._dataView&&this._dataView.resize()},hideDataView:function(){this._dataView&&this._dataView.hide()},clear:function(e){this.zr&&(this.zr.delShape(this.shapeList),this.shapeList=[],e||(this.zr.delShape(this._markShapeList),this._markShapeList=[]))},onbeforDispose:function(){this._dataView&&(this._dataView.dispose(),this._dataView=null),this._markShapeList=null},refresh:function(e){e&&(this._resetMark(),this._resetZoom(),e.toolbox=this.reformOption(e.toolbox),this.option=e,this.clear(!0),e.toolbox.show&&this._buildShape(),this.hideDataView())}},l.inherits(t,i),e("../component").define("toolbox",t),t}),i("echarts/component",[],function(){var e={},t={};return e.define=function(i,n){return t[i]=n,e},e.get=function(e){return t[e]},e}),i("echarts/component/title",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","zrender/tool/color","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("../config");o.title={zlevel:0,z:6,show:!0,text:"",subtext:"",x:"left",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:5,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}};var r=e("zrender/tool/util"),s=e("zrender/tool/area"),l=e("zrender/tool/color");return t.prototype={type:o.COMPONENT_TYPE_TITLE,_buildShape:function(){if(this.titleOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){var e=this.titleOption.text,t=this.titleOption.link,i=this.titleOption.target,a=this.titleOption.subtext,o=this.titleOption.sublink,r=this.titleOption.subtarget,s=this.getFont(this.titleOption.textStyle),h=this.getFont(this.titleOption.subtextStyle),m=this._itemGroupLocation.x,V=this._itemGroupLocation.y,U=this._itemGroupLocation.width,d=this._itemGroupLocation.height,p={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:V,color:this.titleOption.textStyle.color,text:e,textFont:s,textBaseline:"top"},highlightStyle:{color:l.lift(this.titleOption.textStyle.color,1),brushType:"fill"},hoverable:!1};t&&(p.hoverable=!0,p.clickable=!0,p.onclick=function(){i&&"self"==i?window.location=t:window.open(t)});var c={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{y:V+d,color:this.titleOption.subtextStyle.color,text:a,textFont:h,textBaseline:"bottom"},highlightStyle:{color:l.lift(this.titleOption.subtextStyle.color,1),brushType:"fill"},hoverable:!1};switch(o&&(c.hoverable=!0,c.clickable=!0,c.onclick=function(){r&&"self"==r?window.location=o:window.open(o)}),this.titleOption.x){case"center":p.style.x=c.style.x=m+U/2,p.style.textAlign=c.style.textAlign="center";break;case"left":p.style.x=c.style.x=m,p.style.textAlign=c.style.textAlign="left";break;case"right":p.style.x=c.style.x=m+U,p.style.textAlign=c.style.textAlign="right";break;default:m=this.titleOption.x-0,m=isNaN(m)?0:m,p.style.x=c.style.x=m}this.titleOption.textAlign&&(p.style.textAlign=c.style.textAlign=this.titleOption.textAlign),this.shapeList.push(new n(p)),""!==a&&this.shapeList.push(new n(c))},_buildBackground:function(){var e=this.reformCssArray(this.titleOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.titleOption.borderWidth?"fill":"both",color:this.titleOption.backgroundColor,strokeColor:this.titleOption.borderColor,lineWidth:this.titleOption.borderWidth}}))},_getItemGroupLocation:function(){var e,t=this.reformCssArray(this.titleOption.padding),i=this.titleOption.text,n=this.titleOption.subtext,a=this.getFont(this.titleOption.textStyle),o=this.getFont(this.titleOption.subtextStyle),r=Math.max(s.getTextWidth(i,a),s.getTextWidth(n,o)),l=s.getTextHeight(i,a)+(""===n?0:this.titleOption.itemGap+s.getTextHeight(n,o)),h=this.zr.getWidth();switch(this.titleOption.x){case"center":e=Math.floor((h-r)/2);break;case"left":e=t[3]+this.titleOption.borderWidth;break;case"right":e=h-r-t[1]-this.titleOption.borderWidth;break;default:e=this.titleOption.x-0,e=isNaN(e)?0:e}var m,V=this.zr.getHeight();switch(this.titleOption.y){case"top":m=t[0]+this.titleOption.borderWidth;break;case"bottom":m=V-l-t[2]-this.titleOption.borderWidth;break;case"center":m=Math.floor((V-l)/2);break;default:m=this.titleOption.y-0,m=isNaN(m)?0:m}return{x:e,y:m,width:r,height:l}},refresh:function(e){e&&(this.option=e,this.option.title=this.reformOption(this.option.title),this.titleOption=this.option.title,this.titleOption.textStyle=this.getTextStyle(this.titleOption.textStyle),this.titleOption.subtextStyle=this.getTextStyle(this.titleOption.subtextStyle)),this.clear(),this._buildShape()}},r.inherits(t,i),e("../component").define("title",t),t}),i("echarts/component/tooltip",["require","./base","../util/shape/Cross","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/area","zrender/tool/color","zrender/tool/util","zrender/shape/Base","../component"],function(e){function t(e,t,o,r,s){i.call(this,e,t,o,r,s),this.dom=s.dom;var l=this;l._onmousemove=function(e){return l.__onmousemove(e)},l._onglobalout=function(e){return l.__onglobalout(e)},this.zr.on(h.EVENT.MOUSEMOVE,l._onmousemove),this.zr.on(h.EVENT.GLOBALOUT,l._onglobalout),l._hide=function(e){return l.__hide(e)},l._tryShow=function(e){return l.__tryShow(e)},l._refixed=function(e){return l.__refixed(e)},l._setContent=function(e,t){return l.__setContent(e,t)},this._tDom=this._tDom||document.createElement("div"),this._tDom.onselectstart=function(){return!1},this._tDom.onmouseover=function(){l._mousein=!0},this._tDom.onmouseout=function(){l._mousein=!1},this._tDom.className="echarts-tooltip",this._tDom.style.position="absolute",this.hasAppend=!1,this._axisLineShape&&this.zr.delShape(this._axisLineShape.id),this._axisLineShape=new a({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisLineShape),this.zr.addShape(this._axisLineShape),this._axisShadowShape&&this.zr.delShape(this._axisShadowShape.id),this._axisShadowShape=new a({zlevel:this.getZlevelBase(),z:1,invisible:!0,hoverable:!1}),this.shapeList.push(this._axisShadowShape),this.zr.addShape(this._axisShadowShape),this._axisCrossShape&&this.zr.delShape(this._axisCrossShape.id),this._axisCrossShape=new n({zlevel:this.getZlevelBase(),z:this.getZBase(),invisible:!0,hoverable:!1}),this.shapeList.push(this._axisCrossShape),this.zr.addShape(this._axisCrossShape),this.showing=!1,this.refresh(r)}var i=e("./base"),n=e("../util/shape/Cross"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=new o({}),s=e("../config");s.tooltip={zlevel:1,z:8,show:!0,showContent:!0,trigger:"item",islandFormatter:"{a} <br/>{b} : {c}",showDelay:20,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",lineStyle:{color:"#48b",width:2,type:"solid"},crossStyle:{color:"#1e90ff",width:1,type:"dashed"},shadowStyle:{color:"rgba(150,150,150,0.3)",width:"auto",type:"default"}},textStyle:{color:"#fff"}};var l=e("../util/ecData"),h=e("zrender/config"),m=e("zrender/tool/event"),V=e("zrender/tool/area"),U=e("zrender/tool/color"),d=e("zrender/tool/util"),p=e("zrender/shape/Base");return t.prototype={type:s.COMPONENT_TYPE_TOOLTIP,_gCssText:"position:absolute;display:block;border-style:solid;white-space:nowrap;",_style:function(e){if(!e)return"";var t=[];if(e.transitionDuration){var i="left "+e.transitionDuration+"s,top "+e.transitionDuration+"s";t.push("transition:"+i),t.push("-moz-transition:"+i),t.push("-webkit-transition:"+i),t.push("-o-transition:"+i)}e.backgroundColor&&(t.push("background-Color:"+U.toHex(e.backgroundColor)),t.push("filter:alpha(opacity=70)"),t.push("background-Color:"+e.backgroundColor)),null!=e.borderWidth&&t.push("border-width:"+e.borderWidth+"px"),null!=e.borderColor&&t.push("border-color:"+e.borderColor),null!=e.borderRadius&&(t.push("border-radius:"+e.borderRadius+"px"),t.push("-moz-border-radius:"+e.borderRadius+"px"),t.push("-webkit-border-radius:"+e.borderRadius+"px"),t.push("-o-border-radius:"+e.borderRadius+"px"));var n=e.textStyle;n&&(n.color&&t.push("color:"+n.color),n.decoration&&t.push("text-decoration:"+n.decoration),n.align&&t.push("text-align:"+n.align),n.fontFamily&&t.push("font-family:"+n.fontFamily),n.fontSize&&t.push("font-size:"+n.fontSize+"px"),n.fontSize&&t.push("line-height:"+Math.round(3*n.fontSize/2)+"px"),n.fontStyle&&t.push("font-style:"+n.fontStyle),n.fontWeight&&t.push("font-weight:"+n.fontWeight));var a=e.padding;return null!=a&&(a=this.reformCssArray(a),t.push("padding:"+a[0]+"px "+a[1]+"px "+a[2]+"px "+a[3]+"px")),t=t.join(";")+";"},__hide:function(){this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,this._tDom&&(this._tDom.style.display="none");var e=!1;this._axisLineShape.invisible||(this._axisLineShape.invisible=!0,
-this.zr.modShape(this._axisLineShape.id),e=!0),this._axisShadowShape.invisible||(this._axisShadowShape.invisible=!0,this.zr.modShape(this._axisShadowShape.id),e=!0),this._axisCrossShape.invisible||(this._axisCrossShape.invisible=!0,this.zr.modShape(this._axisCrossShape.id),e=!0),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2),e&&this.zr.refreshNextFrame(),this.showing=!1},_show:function(e,t,i,n){var a=this._tDom.offsetHeight,o=this._tDom.offsetWidth;e&&("function"==typeof e&&(e=e([t,i])),e instanceof Array&&(t=e[0],i=e[1])),t+o>this._zrWidth&&(t-=o+40),i+a>this._zrHeight&&(i-=a-20),20>i&&(i=0),this._tDom.style.cssText=this._gCssText+this._defaultCssText+(n?n:"")+"left:"+t+"px;top:"+i+"px;",(10>a||10>o)&&setTimeout(this._refixed,20),this.showing=!0},__refixed:function(){if(this._tDom){var e="",t=this._tDom.offsetHeight,i=this._tDom.offsetWidth;this._tDom.offsetLeft+i>this._zrWidth&&(e+="left:"+(this._zrWidth-i-20)+"px;"),this._tDom.offsetTop+t>this._zrHeight&&(e+="top:"+(this._zrHeight-t-10)+"px;"),""!==e&&(this._tDom.style.cssText+=e)}},__tryShow:function(){var e,t;if(this._curTarget){if("island"===this._curTarget._type&&this.option.tooltip.show)return void this._showItemTrigger();var i=l.get(this._curTarget,"series"),n=l.get(this._curTarget,"data");e=this.deepQuery([n,i,this.option],"tooltip.show"),null!=i&&null!=n&&e?(t=this.deepQuery([n,i,this.option],"tooltip.trigger"),"axis"===t?this._showAxisTrigger(i.xAxisIndex,i.yAxisIndex,l.get(this._curTarget,"dataIndex")):this._showItemTrigger()):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}else this._findPolarTrigger()||this._findAxisTrigger()},_findAxisTrigger:function(){if(!this.component.xAxis||!this.component.yAxis)return void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));for(var e,t,i=this.option.series,n=0,a=i.length;a>n;n++)if("axis"===this.deepQuery([i[n],this.option],"tooltip.trigger"))return e=i[n].xAxisIndex||0,t=i[n].yAxisIndex||0,this.component.xAxis.getAxis(e)&&this.component.xAxis.getAxis(e).type===s.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(e,t,this._getNearestDataIndex("x",this.component.xAxis.getAxis(e))):this.component.yAxis.getAxis(t)&&this.component.yAxis.getAxis(t).type===s.COMPONENT_TYPE_AXIS_CATEGORY?void this._showAxisTrigger(e,t,this._getNearestDataIndex("y",this.component.yAxis.getAxis(t))):void this._showAxisTrigger(e,t,-1);"cross"===this.option.tooltip.axisPointer.type&&this._showAxisTrigger(-1,-1,-1)},_findPolarTrigger:function(){if(!this.component.polar)return!1;var e,t=m.getX(this._event),i=m.getY(this._event),n=this.component.polar.getNearestIndex([t,i]);return n?(e=n.valueIndex,n=n.polarIndex):n=-1,-1!=n?this._showPolarTrigger(n,e):!1},_getNearestDataIndex:function(e,t){var i=-1,n=m.getX(this._event),a=m.getY(this._event);if("x"===e){for(var o,r,s=this.component.grid.getXend(),l=t.getCoordByIndex(i);s>l&&(r=l,n>=l);)o=l,l=t.getCoordByIndex(++i);return 0>=i?i=0:r-n>=n-o?i-=1:null==t.getNameByIndex(i)&&(i-=1),i}for(var h,V,U=this.component.grid.getY(),l=t.getCoordByIndex(i);l>U&&(h=l,l>=a);)V=l,l=t.getCoordByIndex(++i);return 0>=i?i=0:a-h>=V-a?i-=1:null==t.getNameByIndex(i)&&(i-=1),i},_showAxisTrigger:function(e,t,i){if(!this._event.connectTrigger&&this.messageCenter.dispatch(s.EVENT.TOOLTIP_IN_GRID,this._event,null,this.myChart),null==this.component.xAxis||null==this.component.yAxis||null==e||null==t)return clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),void(this._hidingTicket=setTimeout(this._hide,this._hideDelay));var n,a,o,r,l=this.option.series,h=[],V=[],U="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return;a=this.option.tooltip.formatter,o=this.option.tooltip.position}var d,p,c=-1!=e&&this.component.xAxis.getAxis(e).type===s.COMPONENT_TYPE_AXIS_CATEGORY?"xAxis":-1!=t&&this.component.yAxis.getAxis(t).type===s.COMPONENT_TYPE_AXIS_CATEGORY?"yAxis":!1;if(c){var u="xAxis"==c?e:t;n=this.component[c].getAxis(u);for(var y=0,g=l.length;g>y;y++)this._isSelected(l[y].name)&&l[y][c+"Index"]===u&&"axis"===this.deepQuery([l[y],this.option],"tooltip.trigger")&&(r=this.query(l[y],"tooltip.showContent")||r,a=this.query(l[y],"tooltip.formatter")||a,o=this.query(l[y],"tooltip.position")||o,U+=this._style(this.query(l[y],"tooltip")),null!=l[y].stack&&"xAxis"==c?(h.unshift(l[y]),V.unshift(y)):(h.push(l[y]),V.push(y)));this.messageCenter.dispatch(s.EVENT.TOOLTIP_HOVER,this._event,{seriesIndex:V,dataIndex:i},this.myChart);var b;"xAxis"==c?(d=this.subPixelOptimize(n.getCoordByIndex(i),this._axisLineWidth),p=m.getY(this._event),b=[d,this.component.grid.getY(),d,this.component.grid.getYend()]):(d=m.getX(this._event),p=this.subPixelOptimize(n.getCoordByIndex(i),this._axisLineWidth),b=[this.component.grid.getX(),p,this.component.grid.getXend(),p]),this._styleAxisPointer(h,b[0],b[1],b[2],b[3],n.getGap(),d,p)}else d=m.getX(this._event),p=m.getY(this._event),this._styleAxisPointer(l,this.component.grid.getX(),p,this.component.grid.getXend(),p,0,d,p),i>=0?this._showItemTrigger(!0):(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._tDom.style.display="none");if(h.length>0){if(this._lastItemTriggerId=-1,this._lastDataIndex!=i||this._lastSeriesIndex!=V[0]){this._lastDataIndex=i,this._lastSeriesIndex=V[0];var f,k;if("function"==typeof a){for(var x=[],y=0,g=h.length;g>y;y++)f=h[y].data[i],k=this.getDataFromOption(f,"-"),x.push({seriesIndex:V[y],seriesName:h[y].name||"",series:h[y],dataIndex:i,data:f,name:n.getNameByIndex(i),value:k,0:h[y].name||"",1:n.getNameByIndex(i),2:k,3:f});this._curTicket="axis:"+i,this._tDom.innerHTML=a.call(this.myChart,x,this._curTicket,this._setContent)}else if("string"==typeof a){this._curTicket=0/0,a=a.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}");for(var y=0,g=h.length;g>y;y++)a=a.replace("{a"+y+"}",this._encodeHTML(h[y].name||"")),a=a.replace("{b"+y+"}",this._encodeHTML(n.getNameByIndex(i))),f=h[y].data[i],f=this.getDataFromOption(f,"-"),a=a.replace("{c"+y+"}",f instanceof Array?f:this.numAddCommas(f));this._tDom.innerHTML=a}else{this._curTicket=0/0,a=this._encodeHTML(n.getNameByIndex(i));for(var y=0,g=h.length;g>y;y++)a+="<br/>"+this._encodeHTML(h[y].name||"")+" : ",f=h[y].data[i],f=this.getDataFromOption(f,"-"),a+=f instanceof Array?f:this.numAddCommas(f);this._tDom.innerHTML=a}}if(r===!1||!this.option.tooltip.showContent)return;this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(o,d+10,p+10,U)}},_showPolarTrigger:function(e,t){if(null==this.component.polar||null==e||null==t||0>t)return!1;var i,n,a,o=this.option.series,r=[],s=[],l="";if("axis"===this.option.tooltip.trigger){if(!this.option.tooltip.show)return!1;i=this.option.tooltip.formatter,n=this.option.tooltip.position}for(var h=this.option.polar[e].indicator[t].text,V=0,U=o.length;U>V;V++)this._isSelected(o[V].name)&&o[V].polarIndex===e&&"axis"===this.deepQuery([o[V],this.option],"tooltip.trigger")&&(a=this.query(o[V],"tooltip.showContent")||a,i=this.query(o[V],"tooltip.formatter")||i,n=this.query(o[V],"tooltip.position")||n,l+=this._style(this.query(o[V],"tooltip")),r.push(o[V]),s.push(V));if(r.length>0){for(var d,p,c,u=[],V=0,U=r.length;U>V;V++){d=r[V].data;for(var y=0,g=d.length;g>y;y++)p=d[y],this._isSelected(p.name)&&(p=null!=p?p:{name:"",value:{dataIndex:"-"}},c=this.getDataFromOption(p.value[t]),u.push({seriesIndex:s[V],seriesName:r[V].name||"",series:r[V],dataIndex:t,data:p,name:p.name,indicator:h,value:c,0:r[V].name||"",1:p.name,2:c,3:h}))}if(u.length<=0)return;if(this._lastItemTriggerId=-1,this._lastDataIndex!=t||this._lastSeriesIndex!=s[0])if(this._lastDataIndex=t,this._lastSeriesIndex=s[0],"function"==typeof i)this._curTicket="axis:"+t,this._tDom.innerHTML=i.call(this.myChart,u,this._curTicket,this._setContent);else if("string"==typeof i){i=i.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}");for(var V=0,U=u.length;U>V;V++)i=i.replace("{a"+V+"}",this._encodeHTML(u[V].seriesName)),i=i.replace("{b"+V+"}",this._encodeHTML(u[V].name)),i=i.replace("{c"+V+"}",this.numAddCommas(u[V].value)),i=i.replace("{d"+V+"}",this._encodeHTML(u[V].indicator));this._tDom.innerHTML=i}else{i=this._encodeHTML(u[0].name)+"<br/>"+this._encodeHTML(u[0].indicator)+" : "+this.numAddCommas(u[0].value);for(var V=1,U=u.length;U>V;V++)i+="<br/>"+this._encodeHTML(u[V].name)+"<br/>",i+=this._encodeHTML(u[V].indicator)+" : "+this.numAddCommas(u[V].value);this._tDom.innerHTML=i}if(a===!1||!this.option.tooltip.showContent)return;return this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(n,m.getX(this._event),m.getY(this._event),l),!0}},_showItemTrigger:function(e){if(this._curTarget){var t,i,n,a=l.get(this._curTarget,"series"),o=l.get(this._curTarget,"seriesIndex"),r=l.get(this._curTarget,"data"),h=l.get(this._curTarget,"dataIndex"),V=l.get(this._curTarget,"name"),U=l.get(this._curTarget,"value"),d=l.get(this._curTarget,"special"),p=l.get(this._curTarget,"special2"),c=[r,a,this.option],u="";if("island"!=this._curTarget._type){var y=e?"axis":"item";this.option.tooltip.trigger===y&&(t=this.option.tooltip.formatter,i=this.option.tooltip.position),this.query(a,"tooltip.trigger")===y&&(n=this.query(a,"tooltip.showContent")||n,t=this.query(a,"tooltip.formatter")||t,i=this.query(a,"tooltip.position")||i,u+=this._style(this.query(a,"tooltip"))),n=this.query(r,"tooltip.showContent")||n,t=this.query(r,"tooltip.formatter")||t,i=this.query(r,"tooltip.position")||i,u+=this._style(this.query(r,"tooltip"))}else this._lastItemTriggerId=0/0,n=this.deepQuery(c,"tooltip.showContent"),t=this.deepQuery(c,"tooltip.islandFormatter"),i=this.deepQuery(c,"tooltip.islandPosition");this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId!==this._curTarget.id&&(this._lastItemTriggerId=this._curTarget.id,"function"==typeof t?(this._curTicket=(a.name||"")+":"+h,this._tDom.innerHTML=t.call(this.myChart,{seriesIndex:o,seriesName:a.name||"",series:a,dataIndex:h,data:r,name:V,value:U,percent:d,indicator:d,value2:p,indicator2:p,0:a.name||"",1:V,2:U,3:d,4:p,5:r,6:o,7:h},this._curTicket,this._setContent)):"string"==typeof t?(this._curTicket=0/0,t=t.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),t=t.replace("{a0}",this._encodeHTML(a.name||"")).replace("{b0}",this._encodeHTML(V)).replace("{c0}",U instanceof Array?U:this.numAddCommas(U)),t=t.replace("{d}","{d0}").replace("{d0}",d||""),t=t.replace("{e}","{e0}").replace("{e0}",l.get(this._curTarget,"special2")||""),this._tDom.innerHTML=t):(this._curTicket=0/0,this._tDom.innerHTML=a.type===s.CHART_TYPE_RADAR&&d?this._itemFormatter.radar.call(this,a,V,U,d):a.type===s.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,a,V,U,r):""+(null!=a.name?this._encodeHTML(a.name)+"<br/>":"")+(""===V?"":this._encodeHTML(V)+" : ")+(U instanceof Array?U:this.numAddCommas(U))));var g=m.getX(this._event),b=m.getY(this._event);this.deepQuery(c,"tooltip.axisPointer.show")&&this.component.grid?this._styleAxisPointer([a],this.component.grid.getX(),b,this.component.grid.getXend(),b,0,g,b):this._hide(),n!==!1&&this.option.tooltip.showContent&&(this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(i,g+20,b-20,u))}},_itemFormatter:{radar:function(e,t,i,n){var a="";a+=this._encodeHTML(""===t?e.name||"":t),a+=""===a?"":"<br />";for(var o=0;o<n.length;o++)a+=this._encodeHTML(n[o].text)+" : "+this.numAddCommas(i[o])+"<br />";return a},chord:function(e,t,i,n,a){if(null==a)return this._encodeHTML(t)+" ("+this.numAddCommas(i)+")";var o=this._encodeHTML(t),r=this._encodeHTML(n);return""+(null!=e.name?this._encodeHTML(e.name)+"<br/>":"")+o+" -> "+r+" ("+this.numAddCommas(i)+")<br />"+r+" -> "+o+" ("+this.numAddCommas(a)+")"},eventRiver:function(e,t,i,n){var a="";a+=this._encodeHTML(""===e.name?"":e.name+" : "),a+=this._encodeHTML(t),a+=""===a?"":"<br />",n=n.evolution;for(var o=0,r=n.length;r>o;o++)a+='<div style="padding-top:5px;">',n[o].detail&&(n[o].detail.img&&(a+='<img src="'+n[o].detail.img+'" style="float:left;width:40px;height:40px;">'),a+='<div style="margin-left:45px;">'+n[o].time+"<br/>",a+='<a href="'+n[o].detail.link+'" target="_blank">',a+=n[o].detail.text+"</a></div>",a+="</div>");return a}},_styleAxisPointer:function(e,t,i,n,a,o,r,s){if(e.length>0){var l,h,m=this.option.tooltip.axisPointer,V=m.type,U={line:{},cross:{},shadow:{}};for(var d in U)U[d].color=m[d+"Style"].color,U[d].width=m[d+"Style"].width,U[d].type=m[d+"Style"].type;for(var p=0,c=e.length;c>p;p++)l=e[p],h=this.query(l,"tooltip.axisPointer.type"),V=h||V,h&&(U[h].color=this.query(l,"tooltip.axisPointer."+h+"Style.color")||U[h].color,U[h].width=this.query(l,"tooltip.axisPointer."+h+"Style.width")||U[h].width,U[h].type=this.query(l,"tooltip.axisPointer."+h+"Style.type")||U[h].type);if("line"===V){var u=U.line.width,y=t==n;this._axisLineShape.style={xStart:y?this.subPixelOptimize(t,u):t,yStart:y?i:this.subPixelOptimize(i,u),xEnd:y?this.subPixelOptimize(n,u):n,yEnd:y?a:this.subPixelOptimize(a,u),strokeColor:U.line.color,lineWidth:u,lineType:U.line.type},this._axisLineShape.invisible=!1,this.zr.modShape(this._axisLineShape.id)}else if("cross"===V){var g=U.cross.width;this._axisCrossShape.style={brushType:"stroke",rect:this.component.grid.getArea(),x:this.subPixelOptimize(r,g),y:this.subPixelOptimize(s,g),text:("( "+this.component.xAxis.getAxis(0).getValueFromCoord(r)+" , "+this.component.yAxis.getAxis(0).getValueFromCoord(s)+" )").replace(" , "," ").replace(" , "," "),textPosition:"specific",strokeColor:U.cross.color,lineWidth:g,lineType:U.cross.type},this.component.grid.getXend()-r>100?(this._axisCrossShape.style.textAlign="left",this._axisCrossShape.style.textX=r+10):(this._axisCrossShape.style.textAlign="right",this._axisCrossShape.style.textX=r-10),s-this.component.grid.getY()>50?(this._axisCrossShape.style.textBaseline="bottom",this._axisCrossShape.style.textY=s-10):(this._axisCrossShape.style.textBaseline="top",this._axisCrossShape.style.textY=s+10),this._axisCrossShape.invisible=!1,this.zr.modShape(this._axisCrossShape.id)}else"shadow"===V&&((null==U.shadow.width||"auto"===U.shadow.width||isNaN(U.shadow.width))&&(U.shadow.width=o),t===n?Math.abs(this.component.grid.getX()-t)<2?(U.shadow.width/=2,t=n+=U.shadow.width/2):Math.abs(this.component.grid.getXend()-t)<2&&(U.shadow.width/=2,t=n-=U.shadow.width/2):i===a&&(Math.abs(this.component.grid.getY()-i)<2?(U.shadow.width/=2,i=a+=U.shadow.width/2):Math.abs(this.component.grid.getYend()-i)<2&&(U.shadow.width/=2,i=a-=U.shadow.width/2)),this._axisShadowShape.style={xStart:t,yStart:i,xEnd:n,yEnd:a,strokeColor:U.shadow.color,lineWidth:U.shadow.width},this._axisShadowShape.invisible=!1,this.zr.modShape(this._axisShadowShape.id));this.zr.refreshNextFrame()}},__onmousemove:function(e){if(clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),!this._mousein||!this._enterable){var t=e.target,i=m.getX(e.event),n=m.getY(e.event);if(t){this._curTarget=t,this._event=e.event,this._event.zrenderX=i,this._event.zrenderY=n;var a;if(this._needAxisTrigger&&this.component.polar&&-1!=(a=this.component.polar.isInside([i,n])))for(var o=this.option.series,l=0,h=o.length;h>l;l++)if(o[l].polarIndex===a&&"axis"===this.deepQuery([o[l],this.option],"tooltip.trigger")){this._curTarget=null;break}this._showingTicket=setTimeout(this._tryShow,this._showDelay)}else this._curTarget=!1,this._event=e.event,this._event.zrenderX=i,this._event.zrenderY=n,this._needAxisTrigger&&this.component.grid&&V.isInside(r,this.component.grid.getArea(),i,n)?this._showingTicket=setTimeout(this._tryShow,this._showDelay):this._needAxisTrigger&&this.component.polar&&-1!=this.component.polar.isInside([i,n])?this._showingTicket=setTimeout(this._tryShow,this._showDelay):(!this._event.connectTrigger&&this.messageCenter.dispatch(s.EVENT.TOOLTIP_OUT_GRID,this._event,null,this.myChart),this._hidingTicket=setTimeout(this._hide,this._hideDelay))}},__onglobalout:function(){clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this._hidingTicket=setTimeout(this._hide,this._hideDelay)},__setContent:function(e,t){this._tDom&&(e===this._curTicket&&(this._tDom.innerHTML=t),setTimeout(this._refixed,20))},ontooltipHover:function(e,t){if(!this._lastTipShape||this._lastTipShape&&this._lastTipShape.dataIndex!=e.dataIndex){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&(this.zr.delShape(this._lastTipShape.tipShape),this.shapeList.length=2);for(var i=0,n=t.length;n>i;i++)t[i].zlevel=this.getZlevelBase(),t[i].z=this.getZBase(),t[i].style=p.prototype.getHighlightStyle(t[i].style,t[i].highlightStyle),t[i].draggable=!1,t[i].hoverable=!1,t[i].clickable=!1,t[i].ondragend=null,t[i].ondragover=null,t[i].ondrop=null,this.shapeList.push(t[i]),this.zr.addShape(t[i]);this._lastTipShape={dataIndex:e.dataIndex,tipShape:t}}},ondragend:function(){this._hide()},onlegendSelected:function(e){this._selectedMap=e.selected},_setSelectedMap:function(){this._selectedMap=this.component.legend?d.clone(this.component.legend.getSelectedMap()):{}},_isSelected:function(e){return null!=this._selectedMap[e]?this._selectedMap[e]:!0},showTip:function(e){if(e){var t,i=this.option.series;if(null!=e.seriesIndex)t=e.seriesIndex;else for(var n=e.seriesName,a=0,o=i.length;o>a;a++)if(i[a].name===n){t=a;break}var r=i[t];if(null!=r){var m=this.myChart.chart[r.type],V="axis"===this.deepQuery([r,this.option],"tooltip.trigger");if(m)if(V){var U=e.dataIndex;switch(m.type){case s.CHART_TYPE_LINE:case s.CHART_TYPE_BAR:case s.CHART_TYPE_K:case s.CHART_TYPE_RADAR:if(null==this.component.polar||r.data[0].value.length<=U)return;var d=r.polarIndex||0,p=this.component.polar.getVector(d,U,"max");this._event={zrenderX:p[0],zrenderY:p[1]},this._showPolarTrigger(d,U)}}else{var c,u,y=m.shapeList;switch(m.type){case s.CHART_TYPE_LINE:case s.CHART_TYPE_BAR:case s.CHART_TYPE_K:case s.CHART_TYPE_TREEMAP:case s.CHART_TYPE_SCATTER:for(var U=e.dataIndex,a=0,o=y.length;o>a;a++)if(null==y[a]._mark&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"dataIndex")==U){this._curTarget=y[a],c=y[a].style.x,u=m.type!=s.CHART_TYPE_K?y[a].style.y:y[a].style.y[0];break}break;case s.CHART_TYPE_RADAR:for(var U=e.dataIndex,a=0,o=y.length;o>a;a++)if("polygon"===y[a].type&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"dataIndex")==U){this._curTarget=y[a];var p=this.component.polar.getCenter(r.polarIndex||0);c=p[0],u=p[1];break}break;case s.CHART_TYPE_PIE:for(var g=e.name,a=0,o=y.length;o>a;a++)if("sector"===y[a].type&&l.get(y[a],"seriesIndex")==t&&l.get(y[a],"name")==g){this._curTarget=y[a];var b=this._curTarget.style,f=(b.startAngle+b.endAngle)/2*Math.PI/180;c=this._curTarget.style.x+Math.cos(f)*b.r/1.5,u=this._curTarget.style.y-Math.sin(f)*b.r/1.5;break}break;case s.CHART_TYPE_MAP:for(var g=e.name,k=r.mapType,a=0,o=y.length;o>a;a++)if("text"===y[a].type&&y[a]._mapType===k&&y[a].style._name===g){this._curTarget=y[a],c=this._curTarget.style.x+this._curTarget.position[0],u=this._curTarget.style.y+this._curTarget.position[1];break}break;case s.CHART_TYPE_CHORD:for(var g=e.name,a=0,o=y.length;o>a;a++)if("sector"===y[a].type&&l.get(y[a],"name")==g){this._curTarget=y[a];var b=this._curTarget.style,f=(b.startAngle+b.endAngle)/2*Math.PI/180;return c=this._curTarget.style.x+Math.cos(f)*(b.r-2),u=this._curTarget.style.y-Math.sin(f)*(b.r-2),void this.zr.trigger(h.EVENT.MOUSEMOVE,{zrenderX:c,zrenderY:u})}break;case s.CHART_TYPE_FORCE:for(var g=e.name,a=0,o=y.length;o>a;a++)if("circle"===y[a].type&&l.get(y[a],"name")==g){this._curTarget=y[a],c=this._curTarget.position[0],u=this._curTarget.position[1];break}}null!=c&&null!=u&&(this._event={zrenderX:c,zrenderY:u},this.zr.addHoverShape(this._curTarget),this.zr.refreshHover(),this._showItemTrigger())}}}},hideTip:function(){this._hide()},refresh:function(e){if(this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),this._lastTipShape=!1,this.shapeList.length=2,this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId=-1,e){this.option=e,this.option.tooltip=this.reformOption(this.option.tooltip),this.option.tooltip.textStyle=d.merge(this.option.tooltip.textStyle,this.ecTheme.textStyle),this._needAxisTrigger=!1,"axis"===this.option.tooltip.trigger&&(this._needAxisTrigger=!0);for(var t=this.option.series,i=0,n=t.length;n>i;i++)if("axis"===this.query(t[i],"tooltip.trigger")){this._needAxisTrigger=!0;break}this._showDelay=this.option.tooltip.showDelay,this._hideDelay=this.option.tooltip.hideDelay,this._defaultCssText=this._style(this.option.tooltip),this._setSelectedMap(),this._axisLineWidth=this.option.tooltip.axisPointer.lineStyle.width,this._enterable=this.option.tooltip.enterable,!this._enterable&&this._tDom.className.indexOf(h.elementClassName)<0&&(this._tDom.className+=" "+h.elementClassName)}if(this.showing){var a=this;setTimeout(function(){a.zr.trigger(h.EVENT.MOUSEMOVE,a.zr.handler._event)},50)}},onbeforDispose:function(){this._lastTipShape&&this._lastTipShape.tipShape.length>0&&this.zr.delShape(this._lastTipShape.tipShape),clearTimeout(this._hidingTicket),clearTimeout(this._showingTicket),this.zr.un(h.EVENT.MOUSEMOVE,this._onmousemove),this.zr.un(h.EVENT.GLOBALOUT,this._onglobalout),this.hasAppend&&this.dom.firstChild&&this.dom.firstChild.removeChild(this._tDom),this._tDom=null},_encodeHTML:function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}},d.inherits(t,i),e("../component").define("tooltip",t),t}),i("echarts/component/legend",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","zrender/shape/Sector","../util/shape/Icon","../util/shape/Candle","../config","zrender/tool/util","zrender/tool/area","../component"],function(e){function t(e,t,n,a,o){if(!this.query(a,"legend.data"))return void console.error("option.legend.data has not been defined.");i.call(this,e,t,n,a,o);var r=this;r._legendSelected=function(e){r.__legendSelected(e)},r._dispatchHoverLink=function(e){return r.__dispatchHoverLink(e)},this._colorIndex=0,this._colorMap={},this._selectedMap={},this._hasDataMap={},this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("zrender/shape/Sector"),r=e("../util/shape/Icon"),s=e("../util/shape/Candle"),l=e("../config");l.legend={zlevel:0,z:4,show:!0,orient:"horizontal",x:"center",y:"top",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,textStyle:{color:"#333"},selectedMode:!0};var h=e("zrender/tool/util"),m=e("zrender/tool/area");t.prototype={type:l.COMPONENT_TYPE_LEGEND,_buildShape:function(){if(this.legendOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){var e,t,i,a,o,s,l,V,U=this.legendOption.data,d=U.length,p=this.legendOption.textStyle,c=this.zr.getWidth(),u=this.zr.getHeight(),y=this._itemGroupLocation.x,g=this._itemGroupLocation.y,b=this.legendOption.itemWidth,f=this.legendOption.itemHeight,k=this.legendOption.itemGap;"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(y=this._itemGroupLocation.x+this._itemGroupLocation.width-b);for(var x=0;d>x;x++)o=h.merge(U[x].textStyle||{},p),s=this.getFont(o),e=this._getName(U[x]),l=this._getFormatterName(e),""!==e?(t=U[x].icon||this._getSomethingByName(e).type,V=this.getColor(e),"horizontal"===this.legendOption.orient?200>c-y&&b+5+m.getTextWidth(l,s)+(x===d-1||""===U[x+1]?0:k)>=c-y&&(y=this._itemGroupLocation.x,g+=f+k):200>u-g&&f+(x===d-1||""===U[x+1]?0:k)>=u-g&&("right"===this.legendOption.x?y-=this._itemGroupLocation.maxWidth+k:y+=this._itemGroupLocation.maxWidth+k,g=this._itemGroupLocation.y),i=this._getItemShapeByType(y,g,b,f,this._selectedMap[e]&&this._hasDataMap[e]?V:"#ccc",t,V),i._name=e,i=new r(i),a={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:y+b+5,y:g+f/2,color:this._selectedMap[e]?"auto"===o.color?V:o.color:"#ccc",text:l,textFont:s,textBaseline:"middle"},highlightStyle:{color:V,brushType:"fill"},hoverable:!!this.legendOption.selectedMode,clickable:!!this.legendOption.selectedMode},"vertical"===this.legendOption.orient&&"right"===this.legendOption.x&&(a.style.x-=b+10,a.style.textAlign="right"),a._name=e,a=new n(a),this.legendOption.selectedMode&&(i.onclick=a.onclick=this._legendSelected,i.onmouseover=a.onmouseover=this._dispatchHoverLink,i.hoverConnect=a.id,a.hoverConnect=i.id),this.shapeList.push(i),this.shapeList.push(a),"horizontal"===this.legendOption.orient?y+=b+5+m.getTextWidth(l,s)+k:g+=f+k):"horizontal"===this.legendOption.orient?(y=this._itemGroupLocation.x,g+=f+k):("right"===this.legendOption.x?y-=this._itemGroupLocation.maxWidth+k:y+=this._itemGroupLocation.maxWidth+k,g=this._itemGroupLocation.y);"horizontal"===this.legendOption.orient&&"center"===this.legendOption.x&&g!=this._itemGroupLocation.y&&this._mLineOptimize()},_getName:function(e){return"undefined"!=typeof e.name?e.name:e},_getFormatterName:function(e){var t,i=this.legendOption.formatter;return t="function"==typeof i?i.call(this.myChart,e):"string"==typeof i?i.replace("{name}",e):e},_getFormatterNameFromData:function(e){var t=this._getName(e);return this._getFormatterName(t)},_mLineOptimize:function(){for(var e=[],t=this._itemGroupLocation.x,i=2,n=this.shapeList.length;n>i;i++)this.shapeList[i].style.x===t?e.push((this._itemGroupLocation.width-(this.shapeList[i-1].style.x+m.getTextWidth(this.shapeList[i-1].style.text,this.shapeList[i-1].style.textFont)-t))/2):i===n-1&&e.push((this._itemGroupLocation.width-(this.shapeList[i].style.x+m.getTextWidth(this.shapeList[i].style.text,this.shapeList[i].style.textFont)-t))/2);for(var a=-1,i=1,n=this.shapeList.length;n>i;i++)this.shapeList[i].style.x===t&&a++,0!==e[a]&&(this.shapeList[i].style.x+=e[a])},_buildBackground:function(){var e=this.reformCssArray(this.legendOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.legendOption.borderWidth?"fill":"both",color:this.legendOption.backgroundColor,strokeColor:this.legendOption.borderColor,lineWidth:this.legendOption.borderWidth}}))},_getItemGroupLocation:function(){var e=this.legendOption.data,t=e.length,i=this.legendOption.itemGap,n=this.legendOption.itemWidth+5,a=this.legendOption.itemHeight,o=this.legendOption.textStyle,r=this.getFont(o),s=0,l=0,V=this.reformCssArray(this.legendOption.padding),U=this.zr.getWidth()-V[1]-V[3],d=this.zr.getHeight()-V[0]-V[2],p=0,c=0;if("horizontal"===this.legendOption.orient){l=a;for(var u=0;t>u;u++)if(""!==this._getName(e[u])){var y=m.getTextWidth(this._getFormatterNameFromData(e[u]),e[u].textStyle?this.getFont(h.merge(e[u].textStyle||{},o)):r);p+n+y+i>U?(p-=i,s=Math.max(s,p),l+=a+i,p=0):(p+=n+y+i,s=Math.max(s,p-i))}else p-=i,s=Math.max(s,p),l+=a+i,p=0}else{for(var u=0;t>u;u++)c=Math.max(c,m.getTextWidth(this._getFormatterNameFromData(e[u]),e[u].textStyle?this.getFont(h.merge(e[u].textStyle||{},o)):r));c+=n,s=c;for(var u=0;t>u;u++)""!==this._getName(e[u])?p+a+i>d?(s+=c+i,p-=i,l=Math.max(l,p),p=0):(p+=a+i,l=Math.max(l,p-i)):(s+=c+i,p-=i,l=Math.max(l,p),p=0)}U=this.zr.getWidth(),d=this.zr.getHeight();var g;switch(this.legendOption.x){case"center":g=Math.floor((U-s)/2);break;case"left":g=V[3]+this.legendOption.borderWidth;break;case"right":g=U-s-V[1]-V[3]-2*this.legendOption.borderWidth;break;default:g=this.parsePercent(this.legendOption.x,U)}var b;switch(this.legendOption.y){case"top":b=V[0]+this.legendOption.borderWidth;break;case"bottom":b=d-l-V[0]-V[2]-2*this.legendOption.borderWidth;break;case"center":b=Math.floor((d-l)/2);break;default:b=this.parsePercent(this.legendOption.y,d)}return{x:g,y:b,width:s,height:l,maxWidth:c}},_getSomethingByName:function(e){for(var t,i=this.option.series,n=0,a=i.length;a>n;n++){if(i[n].name===e)return{type:i[n].type,series:i[n],seriesIndex:n,data:null,dataIndex:-1};if(i[n].type===l.CHART_TYPE_PIE||i[n].type===l.CHART_TYPE_RADAR||i[n].type===l.CHART_TYPE_CHORD||i[n].type===l.CHART_TYPE_FORCE||i[n].type===l.CHART_TYPE_FUNNEL||i[n].type===l.CHART_TYPE_TREEMAP){t=i[n].categories||i[n].data||i[n].nodes;for(var o=0,r=t.length;r>o;o++)if(t[o].name===e)return{type:i[n].type,series:i[n],seriesIndex:n,data:t[o],dataIndex:o}}}return{type:"bar",series:null,seriesIndex:-1,data:null,dataIndex:-1}},_getItemShapeByType:function(e,t,i,n,a,o,r){var s,h="#ccc"===a?r:a,m={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{iconType:"legendicon"+o,x:e,y:t,width:i,height:n,color:a,strokeColor:a,lineWidth:2},highlightStyle:{color:h,strokeColor:h,lineWidth:1},hoverable:this.legendOption.selectedMode,clickable:this.legendOption.selectedMode};if(o.match("image")){var s=o.replace(new RegExp("^image:\\/\\/"),"");o="image"}switch(o){case"line":m.style.brushType="stroke",m.highlightStyle.lineWidth=3;break;case"radar":case"venn":case"tree":case"treemap":case"scatter":m.highlightStyle.lineWidth=3;break;case"k":m.style.brushType="both",m.highlightStyle.lineWidth=3,m.highlightStyle.color=m.style.color=this.deepQuery([this.ecTheme,l],"k.itemStyle.normal.color")||"#fff",m.style.strokeColor="#ccc"!=a?this.deepQuery([this.ecTheme,l],"k.itemStyle.normal.lineStyle.color")||"#ff3200":a;break;case"image":m.style.iconType="image",m.style.image=s,"#ccc"===a&&(m.style.opacity=.5)}return m},__legendSelected:function(e){var t=e.target._name;if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[t]=!this._selectedMap[t],this.messageCenter.dispatch(l.EVENT.LEGEND_SELECTED,e.event,{selected:this._selectedMap,target:t},this.myChart)},__dispatchHoverLink:function(e){this.messageCenter.dispatch(l.EVENT.LEGEND_HOVERLINK,e.event,{target:e.target._name},this.myChart)},refresh:function(e){if(e){this.option=e||this.option,this.option.legend=this.reformOption(this.option.legend),this.legendOption=this.option.legend;var t,i,n,a,o=this.legendOption.data||[];if(this.legendOption.selected)for(var r in this.legendOption.selected)this._selectedMap[r]="undefined"!=typeof this._selectedMap[r]?this._selectedMap[r]:this.legendOption.selected[r];for(var s=0,h=o.length;h>s;s++)t=this._getName(o[s]),""!==t&&(i=this._getSomethingByName(t),i.series?(this._hasDataMap[t]=!0,a=!i.data||i.type!==l.CHART_TYPE_PIE&&i.type!==l.CHART_TYPE_FORCE&&i.type!==l.CHART_TYPE_FUNNEL?[i.series]:[i.data,i.series],n=this.getItemStyleColor(this.deepQuery(a,"itemStyle.normal.color"),i.seriesIndex,i.dataIndex,i.data),n&&i.type!=l.CHART_TYPE_K&&this.setColor(t,n),this._selectedMap[t]=null!=this._selectedMap[t]?this._selectedMap[t]:!0):this._hasDataMap[t]=!1)}this.clear(),this._buildShape()},getRelatedAmount:function(e){for(var t,i=0,n=this.option.series,a=0,o=n.length;o>a;a++)if(n[a].name===e&&i++,n[a].type===l.CHART_TYPE_PIE||n[a].type===l.CHART_TYPE_RADAR||n[a].type===l.CHART_TYPE_CHORD||n[a].type===l.CHART_TYPE_FORCE||n[a].type===l.CHART_TYPE_FUNNEL){t=n[a].type!=l.CHART_TYPE_FORCE?n[a].data:n[a].categories;for(var r=0,s=t.length;s>r;r++)t[r].name===e&&"-"!=t[r].value&&i++}return i},setColor:function(e,t){this._colorMap[e]=t},getColor:function(e){return this._colorMap[e]||(this._colorMap[e]=this.zr.getColor(this._colorIndex++)),this._colorMap[e]},hasColor:function(e){return this._colorMap[e]?this._colorMap[e]:!1},add:function(e,t){
-for(var i=this.legendOption.data,n=0,a=i.length;a>n;n++)if(this._getName(i[n])===e)return;this.legendOption.data.push(e),this.setColor(e,t),this._selectedMap[e]=!0,this._hasDataMap[e]=!0},del:function(e){for(var t=this.legendOption.data,i=0,n=t.length;n>i;i++)if(this._getName(t[i])===e)return this.legendOption.data.splice(i,1)},getItemShape:function(e){if(null!=e)for(var t,i=0,n=this.shapeList.length;n>i;i++)if(t=this.shapeList[i],t._name===e&&"text"!=t.type)return t},setItemShape:function(e,t){for(var i,n=0,a=this.shapeList.length;a>n;n++)i=this.shapeList[n],i._name===e&&"text"!=i.type&&(this._selectedMap[e]||(t.style.color="#ccc",t.style.strokeColor="#ccc"),this.zr.modShape(i.id,t))},isSelected:function(e){return"undefined"!=typeof this._selectedMap[e]?this._selectedMap[e]:!0},getSelectedMap:function(){return this._selectedMap},setSelected:function(e,t){if("single"===this.legendOption.selectedMode)for(var i in this._selectedMap)this._selectedMap[i]=!1;this._selectedMap[e]=t,this.messageCenter.dispatch(l.EVENT.LEGEND_SELECTED,null,{selected:this._selectedMap,target:e},this.myChart)},onlegendSelected:function(e,t){var i=e.selected;for(var n in i)this._selectedMap[n]!=i[n]&&(t.needRefresh=!0),this._selectedMap[n]=i[n]}};var V={line:function(e,t){var i=t.height/2;e.moveTo(t.x,t.y+i),e.lineTo(t.x+t.width,t.y+i)},pie:function(e,t){var i=t.x,n=t.y,a=t.width,r=t.height;o.prototype.buildPath(e,{x:i+a/2,y:n+r+2,r:r,r0:6,startAngle:45,endAngle:135})},eventRiver:function(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;e.moveTo(i,n+o),e.bezierCurveTo(i+a,n+o,i,n+4,i+a,n+4),e.lineTo(i+a,n),e.bezierCurveTo(i,n,i+a,n+o-4,i,n+o-4),e.lineTo(i,n+o)},k:function(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;s.prototype.buildPath(e,{x:i+a/2,y:[n+1,n+1,n+o-6,n+o],width:a-6})},bar:function(e,t){var i=t.x,n=t.y+1,a=t.width,o=t.height-2,r=3;e.moveTo(i+r,n),e.lineTo(i+a-r,n),e.quadraticCurveTo(i+a,n,i+a,n+r),e.lineTo(i+a,n+o-r),e.quadraticCurveTo(i+a,n+o,i+a-r,n+o),e.lineTo(i+r,n+o),e.quadraticCurveTo(i,n+o,i,n+o-r),e.lineTo(i,n+r),e.quadraticCurveTo(i,n,i+r,n)},force:function(e,t){r.prototype.iconLibrary.circle(e,t)},radar:function(e,t){var i=6,n=t.x+t.width/2,a=t.y+t.height/2,o=t.height/2,r=2*Math.PI/i,s=-Math.PI/2,l=n+o*Math.cos(s),h=a+o*Math.sin(s);e.moveTo(l,h),s+=r;for(var m=0,V=i-1;V>m;m++)e.lineTo(n+o*Math.cos(s),a+o*Math.sin(s)),s+=r;e.lineTo(l,h)}};V.chord=V.pie,V.map=V.bar;for(var U in V)r.prototype.iconLibrary["legendicon"+U]=V[U];return h.inherits(t,i),e("../component").define("legend",t),t}),i("echarts/util/ecData",[],function(){function e(e,t,i,n,a,o,r,s){var l;return"undefined"!=typeof n&&(l=null==n.value?n:n.value),e._echartsData={_series:t,_seriesIndex:i,_data:n,_dataIndex:a,_name:o,_value:l,_special:r,_special2:s},e._echartsData}function t(e,t){var i=e._echartsData;if(!t)return i;switch(t){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":return i&&i["_"+t]}return null}function i(e,t,i){switch(e._echartsData=e._echartsData||{},t){case"series":case"seriesIndex":case"data":case"dataIndex":case"name":case"value":case"special":case"special2":e._echartsData["_"+t]=i}}function n(e,t){t._echartsData={_series:e._echartsData._series,_seriesIndex:e._echartsData._seriesIndex,_data:e._echartsData._data,_dataIndex:e._echartsData._dataIndex,_name:e._echartsData._name,_value:e._echartsData._value,_special:e._echartsData._special,_special2:e._echartsData._special2}}return{pack:e,set:i,get:t,clone:n}}),i("echarts/chart",[],function(){var e={},t={};return e.define=function(i,n){return t[i]=n,e},e.get=function(e){return t[e]},e}),i("zrender/tool/color",["require","../tool/util"],function(e){function t(e){D=e}function i(){D=N}function n(e,t){return e=0|e,t=t||D,t[e%t.length]}function a(e){B=e}function o(){H=B}function r(){return B}function s(e,t,i,n,a,o,r){O||(O=P.getContext());for(var s=O.createRadialGradient(e,t,i,n,a,o),l=0,h=r.length;h>l;l++)s.addColorStop(r[l][0],r[l][1]);return s.__nonRecursion=!0,s}function l(e,t,i,n,a){O||(O=P.getContext());for(var o=O.createLinearGradient(e,t,i,n),r=0,s=a.length;s>r;r++)o.addColorStop(a[r][0],a[r][1]);return o.__nonRecursion=!0,o}function h(e,t,i){e=p(e),t=p(t),e=I(e),t=I(t);for(var n=[],a=(t[0]-e[0])/i,o=(t[1]-e[1])/i,r=(t[2]-e[2])/i,s=(t[3]-e[3])/i,l=0,h=e[0],m=e[1],U=e[2],d=e[3];i>l;l++)n[l]=V([S(Math.floor(h),[0,255]),S(Math.floor(m),[0,255]),S(Math.floor(U),[0,255]),d.toFixed(4)-0],"rgba"),h+=a,m+=o,U+=r,d+=s;return h=t[0],m=t[1],U=t[2],d=t[3],n[l]=V([h,m,U,d],"rgba"),n}function m(e,t){var i=[],n=e.length;if(void 0===t&&(t=20),1===n)i=h(e[0],e[0],t);else if(n>1)for(var a=0,o=n-1;o>a;a++){var r=h(e[a],e[a+1],t);o-1>a&&r.pop(),i=i.concat(r)}return i}function V(e,t){if(t=t||"rgb",e&&(3===e.length||4===e.length)){if(e=C(e,function(e){return e>1?Math.ceil(e):e}),t.indexOf("hex")>-1)return"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1);if(t.indexOf("hs")>-1){var i=C(e.slice(1,3),function(e){return e+"%"});e[1]=i[0],e[2]=i[1]}return t.indexOf("a")>-1?(3===e.length&&e.push(1),e[3]=S(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}function U(e){e=L(e),e.indexOf("rgba")<0&&(e=p(e));var t=[],i=0;return e.replace(/[\d.]+/g,function(e){e=3>i?0|e:+e,t[i++]=e}),t}function d(e,t){if(!E(e))return e;var i=I(e),n=i[3];return"undefined"==typeof n&&(n=1),e.indexOf("hsb")>-1?i=F(i):e.indexOf("hsl")>-1&&(i=T(i)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?i=A(i):t.indexOf("hsl")>-1&&(i=M(i)),i[3]=n,V(i,t)}function p(e){return d(e,"rgba")}function c(e){return d(e,"rgb")}function u(e){return d(e,"hex")}function y(e){return d(e,"hsva")}function g(e){return d(e,"hsv")}function b(e){return d(e,"hsba")}function f(e){return d(e,"hsb")}function k(e){return d(e,"hsla")}function x(e){return d(e,"hsl")}function _(e){for(var t in G)if(u(G[t])===u(e))return t;return null}function L(e){return String(e).replace(/\s+/g,"")}function W(e){if(G[e]&&(e=G[e]),e=L(e),e=e.replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(e)){e=parseInt(e.slice(1),16);var t=(3840&e)<<8,i=(240&e)<<4,n=15&e;e="#"+((1<<24)+(t<<4)+t+(i<<4)+i+(n<<4)+n).toString(16).slice(1)}return e}function X(e,t){if(!E(e))return e;var i=t>0?1:-1;"undefined"==typeof t&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=c(e);for(var n=I(e),a=0;3>a;a++)n[a]=1===i?n[a]*(1-t)|0:(255-n[a])*t+n[a]|0;return"rgb("+n.join(",")+")"}function v(e){if(!E(e))return e;var t=I(p(e));return t=C(t,function(e){return 255-e}),V(t,"rgb")}function w(e,t,i){if(!E(e)||!E(t))return e;"undefined"==typeof i&&(i=.5),i=1-S(i,[0,1]);for(var n=2*i-1,a=I(p(e)),o=I(p(t)),r=a[3]-o[3],s=((n*r===-1?n:(n+r)/(1+n*r))+1)/2,l=1-s,h=[],m=0;3>m;m++)h[m]=a[m]*s+o[m]*l;var U=a[3]*i+o[3]*(1-i);return U=Math.max(0,Math.min(1,U)),1===a[3]&&1===o[3]?V(h,"rgb"):(h[3]=U,V(h,"rgba"))}function K(){return"#"+(Math.random().toString(16)+"0000").slice(2,8)}function I(e){e=W(e);var t=e.match(R);if(null===t)throw new Error("The color format error");var i,n,a,o=[];if(t[2])i=t[2].replace("#","").split(""),a=[i[0]+i[1],i[2]+i[3],i[4]+i[5]],o=C(a,function(e){return S(parseInt(e,16),[0,255])});else if(t[4]){var r=t[4].split(",");n=r[3],a=r.slice(0,3),o=C(a,function(e){return e=Math.floor(e.indexOf("%")>0?2.55*parseInt(e,0):e),S(e,[0,255])}),"undefined"!=typeof n&&o.push(S(parseFloat(n),[0,1]))}else if(t[5]||t[6]){var s=(t[5]||t[6]).split(","),l=parseInt(s[0],0)/360,h=s[1],m=s[2];n=s[3],o=C([h,m],function(e){return S(parseFloat(e)/100,[0,1])}),o.unshift(l),"undefined"!=typeof n&&o.push(S(parseFloat(n),[0,1]))}return o}function J(e,t){if(!E(e))return e;null===t&&(t=1);var i=I(p(e));return i[3]=S(Number(t).toFixed(4),[0,1]),V(i,"rgba")}function C(e,t){if("function"!=typeof t)throw new TypeError;for(var i=e?e.length:0,n=0;i>n;n++)e[n]=t(e[n]);return e}function S(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e}function E(e){return e instanceof Array||"string"==typeof e}function F(e){var t,i,n,a=e[0],o=e[1],r=e[2];if(0===o)t=255*r,i=255*r,n=255*r;else{var s=6*a;6===s&&(s=0);var l=0|s,h=r*(1-o),m=r*(1-o*(s-l)),V=r*(1-o*(1-(s-l))),U=0,d=0,p=0;0===l?(U=r,d=V,p=h):1===l?(U=m,d=r,p=h):2===l?(U=h,d=r,p=V):3===l?(U=h,d=m,p=r):4===l?(U=V,d=h,p=r):(U=r,d=h,p=m),t=255*U,i=255*d,n=255*p}return[t,i,n]}function T(e){var t,i,n,a=e[0],o=e[1],r=e[2];if(0===o)t=255*r,i=255*r,n=255*r;else{var s;s=.5>r?r*(1+o):r+o-o*r;var l=2*r-s;t=255*z(l,s,a+1/3),i=255*z(l,s,a),n=255*z(l,s,a-1/3)}return[t,i,n]}function z(e,t,i){return 0>i&&(i+=1),i>1&&(i-=1),1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}function A(e){var t,i,n=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,h=s;if(0===l)t=0,i=0;else{i=l/s;var m=((s-n)/6+l/2)/l,V=((s-a)/6+l/2)/l,U=((s-o)/6+l/2)/l;n===s?t=U-V:a===s?t=1/3+m-U:o===s&&(t=2/3+V-m),0>t&&(t+=1),t>1&&(t-=1)}return t=360*t,i=100*i,h=100*h,[t,i,h]}function M(e){var t,i,n=e[0]/255,a=e[1]/255,o=e[2]/255,r=Math.min(n,a,o),s=Math.max(n,a,o),l=s-r,h=(s+r)/2;if(0===l)t=0,i=0;else{i=.5>h?l/(s+r):l/(2-s-r);var m=((s-n)/6+l/2)/l,V=((s-a)/6+l/2)/l,U=((s-o)/6+l/2)/l;n===s?t=U-V:a===s?t=1/3+m-U:o===s&&(t=2/3+V-m),0>t&&(t+=1),t>1&&(t-=1)}return t=360*t,i=100*i,h=100*h,[t,i,h]}var O,P=e("../tool/util"),D=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],N=D,B="rgba(255,255,0,0.5)",H=B,R=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,G={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"};return{customPalette:t,resetPalette:i,getColor:n,getHighlightColor:r,customHighlight:a,resetHighlight:o,getRadialGradient:s,getLinearGradient:l,getGradientColors:m,getStepColors:h,reverse:v,mix:w,lift:X,trim:L,random:K,toRGB:c,toRGBA:p,toHex:u,toHSL:x,toHSLA:k,toHSB:f,toHSBA:b,toHSV:g,toHSVA:y,toName:_,toColor:V,toArray:U,alpha:J,getData:I}}),i("echarts/component/timeline",["require","./base","zrender/shape/Rectangle","../util/shape/Icon","../util/shape/Chain","../config","zrender/tool/util","zrender/tool/area","zrender/tool/event","../component"],function(e){function t(e,t,i,a,o){n.call(this,e,t,i,a,o);var r=this;if(r._onclick=function(e){return r.__onclick(e)},r._ondrift=function(e,t){return r.__ondrift(this,e,t)},r._ondragend=function(){return r.__ondragend()},r._setCurrentOption=function(){var e=r.timelineOption;r.currentIndex%=e.data.length;var t=r.options[r.currentIndex]||{};r.myChart._setOption(t,e.notMerge,!0),r.messageCenter.dispatch(s.EVENT.TIMELINE_CHANGED,null,{currentIndex:r.currentIndex,data:null!=e.data[r.currentIndex].name?e.data[r.currentIndex].name:e.data[r.currentIndex]},r.myChart)},r._onFrame=function(){r._setCurrentOption(),r._syncHandleShape(),r.timelineOption.autoPlay&&(r.playTicket=setTimeout(function(){return r.currentIndex+=1,!r.timelineOption.loop&&r.currentIndex>=r.timelineOption.data.length?(r.currentIndex=r.timelineOption.data.length-1,void r.stop()):void r._onFrame()},r.timelineOption.playInterval))},this.setTheme(!1),this.options=this.option.options,this.currentIndex=this.timelineOption.currentIndex%this.timelineOption.data.length,this.timelineOption.notMerge||0===this.currentIndex||(this.options[this.currentIndex]=l.merge(this.options[this.currentIndex],this.options[0])),this.timelineOption.show&&(this._buildShape(),this._syncHandleShape()),this._setCurrentOption(),this.timelineOption.autoPlay){var r=this;this.playTicket=setTimeout(function(){r.play()},null!=this.ecTheme.animationDuration?this.ecTheme.animationDuration:s.animationDuration)}}function i(e,t){var i=2,n=t.x+i,a=t.y+i+2,r=t.width-i,s=t.height-i,l=t.symbol;if("last"===l)e.moveTo(n+r-2,a+s/3),e.lineTo(n+r-2,a),e.lineTo(n+2,a+s/2),e.lineTo(n+r-2,a+s),e.lineTo(n+r-2,a+s/3*2),e.moveTo(n,a),e.lineTo(n,a);else if("next"===l)e.moveTo(n+2,a+s/3),e.lineTo(n+2,a),e.lineTo(n+r-2,a+s/2),e.lineTo(n+2,a+s),e.lineTo(n+2,a+s/3*2),e.moveTo(n,a),e.lineTo(n,a);else if("play"===l)if("stop"===t.status)e.moveTo(n+2,a),e.lineTo(n+r-2,a+s/2),e.lineTo(n+2,a+s),e.lineTo(n+2,a);else{var h="both"===t.brushType?2:3;e.rect(n+2,a,h,s),e.rect(n+r-h-2,a,h,s)}else if(l.match("image")){var m="";m=l.replace(new RegExp("^image:\\/\\/"),""),l=o.prototype.iconLibrary.image,l(e,{x:n,y:a,width:r,height:s,image:m})}}var n=e("./base"),a=e("zrender/shape/Rectangle"),o=e("../util/shape/Icon"),r=e("../util/shape/Chain"),s=e("../config");s.timeline={zlevel:0,z:4,show:!0,type:"time",notMerge:!1,realtime:!0,x:80,x2:80,y2:0,height:50,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,controlPosition:"left",autoPlay:!1,loop:!0,playInterval:2e3,lineStyle:{width:1,color:"#666",type:"dashed"},label:{show:!0,interval:"auto",rotate:0,textStyle:{color:"#333"}},checkpointStyle:{symbol:"auto",symbolSize:"auto",color:"auto",borderColor:"auto",borderWidth:"auto",label:{show:!1,textStyle:{color:"auto"}}},controlStyle:{itemSize:15,itemGap:5,normal:{color:"#333"},emphasis:{color:"#1e90ff"}},symbol:"emptyDiamond",symbolSize:4,currentIndex:0};var l=e("zrender/tool/util"),h=e("zrender/tool/area"),m=e("zrender/tool/event");return t.prototype={type:s.COMPONENT_TYPE_TIMELINE,_buildShape:function(){if(this._location=this._getLocation(),this._buildBackground(),this._buildControl(),this._chainPoint=this._getChainPoint(),this.timelineOption.label.show)for(var e=this._getInterval(),t=0,i=this._chainPoint.length;i>t;t+=e)this._chainPoint[t].showLabel=!0;this._buildChain(),this._buildHandle();for(var t=0,n=this.shapeList.length;n>t;t++)this.zr.addShape(this.shapeList[t])},_getLocation:function(){var e,t=this.timelineOption,i=this.reformCssArray(this.timelineOption.padding),n=this.zr.getWidth(),a=this.parsePercent(t.x,n),o=this.parsePercent(t.x2,n);null==t.width?(e=n-a-o,o=n-o):(e=this.parsePercent(t.width,n),o=a+e);var r,s,l=this.zr.getHeight(),h=this.parsePercent(t.height,l);return null!=t.y?(r=this.parsePercent(t.y,l),s=r+h):(s=l-this.parsePercent(t.y2,l),r=s-h),{x:a+i[3],y:r+i[0],x2:o-i[1],y2:s-i[2],width:e-i[1]-i[3],height:h-i[0]-i[2]}},_getReformedLabel:function(e){var t=this.timelineOption,i=null!=t.data[e].name?t.data[e].name:t.data[e],n=t.data[e].formatter||t.label.formatter;return n&&("function"==typeof n?i=n.call(this.myChart,i):"string"==typeof n&&(i=n.replace("{value}",i))),i},_getInterval:function(){var e=this._chainPoint,t=this.timelineOption,i=t.label.interval;if("auto"===i){var n=t.label.textStyle.fontSize,a=t.data,o=t.data.length;if(o>3){var r,s,l=!1;for(i=0;!l&&o>i;){i++,l=!0;for(var m=i;o>m;m+=i){if(r=e[m].x-e[m-i].x,0!==t.label.rotate)s=n;else if(a[m].textStyle)s=h.getTextWidth(e[m].name,e[m].textFont);else{var V=e[m].name+"",U=(V.match(/\w/g)||"").length,d=V.length-U;s=U*n*2/3+d*n}if(s>r){l=!1;break}}}}else i=1}else i=i-0+1;return i},_getChainPoint:function(){function e(e){return null!=h[e].name?h[e].name:h[e]+""}var t,i=this.timelineOption,n=i.symbol.toLowerCase(),a=i.symbolSize,o=i.label.rotate,r=i.label.textStyle,s=this.getFont(r),h=i.data,m=this._location.x,V=this._location.y+this._location.height/4*3,U=this._location.x2-this._location.x,d=h.length,p=[];if(d>1){var c=U/d;if(c=c>50?50:20>c?5:c,U-=2*c,"number"===i.type)for(var u=0;d>u;u++)p.push(m+c+U/(d-1)*u);else{p[0]=new Date(e(0).replace(/-/g,"/")),p[d-1]=new Date(e(d-1).replace(/-/g,"/"))-p[0];for(var u=1;d>u;u++)p[u]=m+c+U*(new Date(e(u).replace(/-/g,"/"))-p[0])/p[d-1];p[0]=m+c}}else p.push(m+U/2);for(var y,g,b,f,k,x=[],u=0;d>u;u++)m=p[u],y=h[u].symbol&&h[u].symbol.toLowerCase()||n,y.match("empty")?(y=y.replace("empty",""),b=!0):b=!1,y.match("star")&&(g=y.replace("star","")-0||5,y="star"),t=h[u].textStyle?l.merge(h[u].textStyle||{},r):r,f=t.align||"center",o?(f=o>0?"right":"left",k=[o*Math.PI/180,m,V-5]):k=!1,x.push({x:m,n:g,isEmpty:b,symbol:y,symbolSize:h[u].symbolSize||a,color:h[u].color,borderColor:h[u].borderColor,borderWidth:h[u].borderWidth,name:this._getReformedLabel(u),textColor:t.color,textAlign:f,textBaseline:t.baseline||"middle",textX:m,textY:V-(o?5:0),textFont:h[u].textStyle?this.getFont(t):s,rotation:k,showLabel:!1});return x},_buildBackground:function(){var e=this.timelineOption,t=this.reformCssArray(this.timelineOption.padding),i=this._location.width,n=this._location.height;(0!==e.borderWidth||"rgba(0,0,0,0)"!=e.backgroundColor.replace(/\s/g,""))&&this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x-t[3],y:this._location.y-t[0],width:i+t[1]+t[3],height:n+t[0]+t[2],brushType:0===e.borderWidth?"fill":"both",color:e.backgroundColor,strokeColor:e.borderColor,lineWidth:e.borderWidth}}))},_buildControl:function(){var e=this,t=this.timelineOption,i=t.lineStyle,n=t.controlStyle;if("none"!==t.controlPosition){var a,r=n.itemSize,s=n.itemGap;"left"===t.controlPosition?(a=this._location.x,this._location.x+=3*(r+s)):(a=this._location.x2-(3*(r+s)-s),this._location.x2-=3*(r+s));var h=this._location.y,m={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{iconType:"timelineControl",symbol:"last",x:a,y:h,width:r,height:r,brushType:"stroke",color:n.normal.color,strokeColor:n.normal.color,lineWidth:i.width},highlightStyle:{color:n.emphasis.color,strokeColor:n.emphasis.color,lineWidth:i.width+1},clickable:!0};this._ctrLastShape=new o(m),this._ctrLastShape.onclick=function(){e.last()},this.shapeList.push(this._ctrLastShape),a+=r+s,this._ctrPlayShape=new o(l.clone(m)),this._ctrPlayShape.style.brushType="fill",this._ctrPlayShape.style.symbol="play",this._ctrPlayShape.style.status=this.timelineOption.autoPlay?"playing":"stop",this._ctrPlayShape.style.x=a,this._ctrPlayShape.onclick=function(){"stop"===e._ctrPlayShape.style.status?e.play():e.stop()},this.shapeList.push(this._ctrPlayShape),a+=r+s,this._ctrNextShape=new o(l.clone(m)),this._ctrNextShape.style.symbol="next",this._ctrNextShape.style.x=a,this._ctrNextShape.onclick=function(){e.next()},this.shapeList.push(this._ctrNextShape)}},_buildChain:function(){var e=this.timelineOption,t=e.lineStyle;this._timelineShae={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:this._location.x,y:this.subPixelOptimize(this._location.y,t.width),width:this._location.x2-this._location.x,height:this._location.height,chainPoint:this._chainPoint,brushType:"both",strokeColor:t.color,lineWidth:t.width,lineType:t.type},hoverable:!1,clickable:!0,onclick:this._onclick},this._timelineShae=new r(this._timelineShae),this.shapeList.push(this._timelineShae)},_buildHandle:function(){var e=this._chainPoint[this.currentIndex],t=e.symbolSize+1;t=5>t?5:t,this._handleShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,hoverable:!1,draggable:!0,style:{iconType:"diamond",n:e.n,x:e.x-t,y:this._location.y+this._location.height/4-t,width:2*t,height:2*t,brushType:"both",textPosition:"specific",textX:e.x,textY:this._location.y-this._location.height/4,textAlign:"center",textBaseline:"middle"},highlightStyle:{},ondrift:this._ondrift,ondragend:this._ondragend},this._handleShape=new o(this._handleShape),this.shapeList.push(this._handleShape)},_syncHandleShape:function(){if(this.timelineOption.show){var e=this.timelineOption,t=e.checkpointStyle,i=this._chainPoint[this.currentIndex];this._handleShape.style.text=t.label.show?i.name:"",this._handleShape.style.textFont=i.textFont,this._handleShape.style.n=i.n,"auto"===t.symbol?this._handleShape.style.iconType="none"!=i.symbol?i.symbol:"diamond":(this._handleShape.style.iconType=t.symbol,t.symbol.match("star")&&(this._handleShape.style.n=t.symbol.replace("star","")-0||5,this._handleShape.style.iconType="star"));var n;"auto"===t.symbolSize?(n=i.symbolSize+2,n=5>n?5:n):n=t.symbolSize-0,this._handleShape.style.color="auto"===t.color?i.color?i.color:e.controlStyle.emphasis.color:t.color,this._handleShape.style.textColor="auto"===t.label.textStyle.color?this._handleShape.style.color:t.label.textStyle.color,this._handleShape.highlightStyle.strokeColor=this._handleShape.style.strokeColor="auto"===t.borderColor?i.borderColor?i.borderColor:"#fff":t.borderColor,this._handleShape.style.lineWidth="auto"===t.borderWidth?i.borderWidth?i.borderWidth:0:t.borderWidth-0,this._handleShape.highlightStyle.lineWidth=this._handleShape.style.lineWidth+1,this.zr.animate(this._handleShape.id,"style").when(500,{x:i.x-n,textX:i.x,y:this._location.y+this._location.height/4-n,width:2*n,height:2*n}).start("ExponentialOut")}},_findChainIndex:function(e){var t=this._chainPoint,i=t.length;if(e<=t[0].x)return 0;if(e>=t[i-1].x)return i-1;for(var n=0;i-1>n;n++)if(e>=t[n].x&&e<=t[n+1].x)return Math.abs(e-t[n].x)<Math.abs(e-t[n+1].x)?n:n+1},__onclick:function(e){var t=m.getX(e.event),i=this._findChainIndex(t);return i===this.currentIndex?!0:(this.currentIndex=i,this.timelineOption.autoPlay&&this.stop(),clearTimeout(this.playTicket),void this._onFrame())},__ondrift:function(e,t){this.timelineOption.autoPlay&&this.stop();var i,n=this._chainPoint,a=n.length;e.style.x+t<=n[0].x-n[0].symbolSize?(e.style.x=n[0].x-n[0].symbolSize,i=0):e.style.x+t>=n[a-1].x-n[a-1].symbolSize?(e.style.x=n[a-1].x-n[a-1].symbolSize,i=a-1):(e.style.x+=t,i=this._findChainIndex(e.style.x));var o=n[i],r=o.symbolSize+2;if(e.style.iconType=o.symbol,e.style.n=o.n,e.style.textX=e.style.x+r/2,e.style.y=this._location.y+this._location.height/4-r,e.style.width=2*r,e.style.height=2*r,e.style.text=o.name,i===this.currentIndex)return!0;if(this.currentIndex=i,this.timelineOption.realtime){clearTimeout(this.playTicket);var s=this;this.playTicket=setTimeout(function(){s._setCurrentOption()},200)}return!0},__ondragend:function(){this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(!this.timelineOption.realtime&&this._setCurrentOption(),t.dragOut=!0,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1,this._syncHandleShape())},last:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex-=1,this.currentIndex<0&&(this.currentIndex=this.timelineOption.data.length-1),this._onFrame(),this.currentIndex},next:function(){return this.timelineOption.autoPlay&&this.stop(),this.currentIndex+=1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},play:function(e,t){return this._ctrPlayShape&&"playing"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="playing",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=null!=t?t:!0,this.timelineOption.autoPlay||clearTimeout(this.playTicket),this.currentIndex=null!=e?e:this.currentIndex+1,this.currentIndex>=this.timelineOption.data.length&&(this.currentIndex=0),this._onFrame(),this.currentIndex},stop:function(){return this._ctrPlayShape&&"stop"!=this._ctrPlayShape.style.status&&(this._ctrPlayShape.style.status="stop",this.zr.modShape(this._ctrPlayShape.id),this.zr.refreshNextFrame()),this.timelineOption.autoPlay=!1,clearTimeout(this.playTicket),this.currentIndex},resize:function(){this.timelineOption.show&&(this.clear(),this._buildShape(),this._syncHandleShape())},setTheme:function(e){this.timelineOption=this.reformOption(l.clone(this.option.timeline)),this.timelineOption.label.textStyle=this.getTextStyle(this.timelineOption.label.textStyle),this.timelineOption.checkpointStyle.label.textStyle=this.getTextStyle(this.timelineOption.checkpointStyle.label.textStyle),this.myChart.canvasSupported||(this.timelineOption.realtime=!1),this.timelineOption.show&&e&&(this.clear(),this._buildShape(),this._syncHandleShape())},onbeforDispose:function(){clearTimeout(this.playTicket)}},o.prototype.iconLibrary.timelineControl=i,l.inherits(t,n),e("../component").define("timeline",t),t}),i("zrender/shape/Image",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"image",brush:function(e,t,i){var n=this.style||{};t&&(n=this.getHighlightStyle(n,this.highlightStyle||{}));var a=n.image,o=this;if(this._imageCache||(this._imageCache={}),"string"==typeof a){var r=a;this._imageCache[r]?a=this._imageCache[r]:(a=new Image,a.onload=function(){a.onload=null,o.modSelf(),i()},a.src=r,this._imageCache[r]=a)}if(a){if("IMG"==a.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=a.readyState)return}else if(!a.complete)return;var s=n.width||a.width,l=n.height||a.height,h=n.x,m=n.y;if(!a.width||!a.height)return;if(e.save(),this.doClip(e),this.setContext(e,n),this.setTransform(e),n.sWidth&&n.sHeight){var V=n.sx||0,U=n.sy||0;e.drawImage(a,V,U,n.sWidth,n.sHeight,h,m,s,l)}else if(n.sx&&n.sy){var V=n.sx,U=n.sy,d=s-V,p=l-U;e.drawImage(a,V,U,d,p,h,m,s,l)}else e.drawImage(a,h,m,s,l);n.width||(n.width=s),n.height||(n.height=l),this.style.width||(this.style.width=s),this.style.height||(this.style.height=l),this.drawText(e,n,this.style),e.restore()}},getRect:function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},clearCache:function(){this._imageCache={}}},e("../tool/util").inherits(i,t),i}),i("zrender/loadingEffect/Bar",["require","./Base","../tool/util","../tool/color","../shape/Rectangle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Rectangle");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effectOption:{x:0,y:this.canvasHeight/2-30,width:this.canvasWidth,height:5,brushType:"fill",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effectOption,h=new o({highlightStyle:n.clone(l)});return h.highlightStyle.color=l.color||a.getLinearGradient(l.x,l.y,l.x+l.width,l.y+l.height,[[0,"#ff6400"],[.5,"#ffe100"],[1,"#b1ff00"]]),null!=i.progress?(e(s),h.highlightStyle.width=this.adjust(i.progress,[0,1])*i.effectOption.width,e(h),e(r),void t()):(h.highlightStyle.width=0,setInterval(function(){e(s),h.highlightStyle.width<l.width?h.highlightStyle.width+=8:h.highlightStyle.width=0,e(h),e(r),t()},l.timeInterval))},t}),i("zrender/loadingEffect/Bubble",["require","./Base","../tool/util","../tool/color","../shape/Circle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Circle");return n.inherits(t,i),t.prototype._start=function(e,t){for(var i=n.merge(this.options,{textStyle:{color:"#888"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{n:50,lineWidth:2,brushType:"stroke",color:"random",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effect,h=l.n,m=l.brushType,V=l.lineWidth,U=[],d=this.canvasWidth,p=this.canvasHeight,c=0;h>c;c++){var u="random"==l.color?a.alpha(a.random(),.3):l.color;U[c]=new o({highlightStyle:{x:Math.ceil(Math.random()*d),y:Math.ceil(Math.random()*p),r:Math.ceil(40*Math.random()),brushType:m,color:u,strokeColor:u,lineWidth:V},animationY:Math.ceil(20*Math.random())})}return setInterval(function(){e(s);for(var i=0;h>i;i++){var n=U[i].highlightStyle;n.y-U[i].animationY+n.r<=0&&(U[i].highlightStyle.y=p+n.r,U[i].highlightStyle.x=Math.ceil(Math.random()*d)),U[i].highlightStyle.y-=U[i].animationY,e(U[i])}e(r),t()},l.timeInterval)},t}),i("zrender/loadingEffect/DynamicLine",["require","./Base","../tool/util","../tool/color","../shape/Line"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Line");return n.inherits(t,i),t.prototype._start=function(e,t){for(var i=n.merge(this.options,{textStyle:{color:"#fff"},backgroundColor:"rgba(0, 0, 0, 0.8)",effectOption:{n:30,lineWidth:1,color:"random",timeInterval:100}}),r=this.createTextShape(i.textStyle),s=this.createBackgroundShape(i.backgroundColor),l=i.effectOption,h=l.n,m=l.lineWidth,V=[],U=this.canvasWidth,d=this.canvasHeight,p=0;h>p;p++){var c=-Math.ceil(1e3*Math.random()),u=Math.ceil(400*Math.random()),y=Math.ceil(Math.random()*d),g="random"==l.color?a.random():l.color;V[p]=new o({highlightStyle:{xStart:c,yStart:y,xEnd:c+u,yEnd:y,strokeColor:g,lineWidth:m},animationX:Math.ceil(100*Math.random()),len:u})}return setInterval(function(){e(s);for(var i=0;h>i;i++){var n=V[i].highlightStyle;n.xStart>=U&&(V[i].len=Math.ceil(400*Math.random()),n.xStart=-400,n.xEnd=-400+V[i].len,n.yStart=Math.ceil(Math.random()*d),n.yEnd=n.yStart),n.xStart+=V[i].animationX,n.xEnd+=V[i].animationX,e(V[i])}e(r),t()},l.timeInterval)},t}),i("zrender/loadingEffect/Ring",["require","./Base","../tool/util","../tool/color","../shape/Ring","../shape/Sector"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../shape/Ring"),r=e("../shape/Sector");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#07a"},backgroundColor:"rgba(250, 250, 250, 0.8)",effect:{x:this.canvasWidth/2,y:this.canvasHeight/2,r0:60,r:100,color:"#bbdcff",brushType:"fill",textPosition:"inside",textFont:"normal 30px verdana",textColor:"rgba(30, 144, 255, 0.6)",timeInterval:100}}),s=i.effect,l=i.textStyle;
-
-null==l.x&&(l.x=s.x),null==l.y&&(l.y=s.y+(s.r0+s.r)/2-5);for(var h=this.createTextShape(i.textStyle),m=this.createBackgroundShape(i.backgroundColor),V=s.x,U=s.y,d=s.r0+6,p=s.r-6,c=s.color,u=a.lift(c,.1),y=new o({highlightStyle:n.clone(s)}),g=[],b=a.getGradientColors(["#ff6400","#ffe100","#97ff00"],25),f=15,k=240,x=0;16>x;x++)g.push(new r({highlightStyle:{x:V,y:U,r0:d,r:p,startAngle:k-f,endAngle:k,brushType:"fill",color:u},_color:a.getLinearGradient(V+d*Math.cos(k,!0),U-d*Math.sin(k,!0),V+d*Math.cos(k-f,!0),U-d*Math.sin(k-f,!0),[[0,b[2*x]],[1,b[2*x+1]]])})),k-=f;k=360;for(var x=0;4>x;x++)g.push(new r({highlightStyle:{x:V,y:U,r0:d,r:p,startAngle:k-f,endAngle:k,brushType:"fill",color:u},_color:a.getLinearGradient(V+d*Math.cos(k,!0),U-d*Math.sin(k,!0),V+d*Math.cos(k-f,!0),U-d*Math.sin(k-f,!0),[[0,b[2*x+32]],[1,b[2*x+33]]])})),k-=f;var _=0;if(null!=i.progress){e(m),_=100*this.adjust(i.progress,[0,1]).toFixed(2)/5,y.highlightStyle.text=5*_+"%",e(y);for(var x=0;20>x;x++)g[x].highlightStyle.color=_>x?g[x]._color:u,e(g[x]);return e(h),void t()}return setInterval(function(){e(m),_+=_>=20?-20:1,e(y);for(var i=0;20>i;i++)g[i].highlightStyle.color=_>i?g[i]._color:u,e(g[i]);e(h),t()},s.timeInterval)},t}),i("zrender/loadingEffect/Spin",["require","./Base","../tool/util","../tool/color","../tool/area","../shape/Sector"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/color"),o=e("../tool/area"),r=e("../shape/Sector");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#fff",textAlign:"start"},backgroundColor:"rgba(0, 0, 0, 0.8)"}),s=this.createTextShape(i.textStyle),l=10,h=o.getTextWidth(s.highlightStyle.text,s.highlightStyle.textFont),m=o.getTextHeight(s.highlightStyle.text,s.highlightStyle.textFont),V=n.merge(this.options.effect||{},{r0:9,r:15,n:18,color:"#fff",timeInterval:100}),U=this.getLocation(this.options.textStyle,h+l+2*V.r,Math.max(2*V.r,m));V.x=U.x+V.r,V.y=s.highlightStyle.y=U.y+U.height/2,s.highlightStyle.x=V.x+V.r+l;for(var d=this.createBackgroundShape(i.backgroundColor),p=V.n,c=V.x,u=V.y,y=V.r0,g=V.r,b=V.color,f=[],k=Math.round(180/p),x=0;p>x;x++)f[x]=new r({highlightStyle:{x:c,y:u,r0:y,r:g,startAngle:k*x*2,endAngle:k*x*2+k,color:a.alpha(b,(x+1)/p),brushType:"fill"}});var _=[0,c,u];return setInterval(function(){e(d),_[0]-=.3;for(var i=0;p>i;i++)f[i].rotation=_,e(f[i]);e(s),t()},V.timeInterval)},t}),i("zrender/loadingEffect/Whirling",["require","./Base","../tool/util","../tool/area","../shape/Ring","../shape/Droplet","../shape/Circle"],function(e){function t(e){i.call(this,e)}var i=e("./Base"),n=e("../tool/util"),a=e("../tool/area"),o=e("../shape/Ring"),r=e("../shape/Droplet"),s=e("../shape/Circle");return n.inherits(t,i),t.prototype._start=function(e,t){var i=n.merge(this.options,{textStyle:{color:"#888",textAlign:"start"},backgroundColor:"rgba(250, 250, 250, 0.8)"}),l=this.createTextShape(i.textStyle),h=10,m=a.getTextWidth(l.highlightStyle.text,l.highlightStyle.textFont),V=a.getTextHeight(l.highlightStyle.text,l.highlightStyle.textFont),U=n.merge(this.options.effect||{},{r:18,colorIn:"#fff",colorOut:"#555",colorWhirl:"#6cf",timeInterval:50}),d=this.getLocation(this.options.textStyle,m+h+2*U.r,Math.max(2*U.r,V));U.x=d.x+U.r,U.y=l.highlightStyle.y=d.y+d.height/2,l.highlightStyle.x=U.x+U.r+h;var p=this.createBackgroundShape(i.backgroundColor),c=new r({highlightStyle:{a:Math.round(U.r/2),b:Math.round(U.r-U.r/6),brushType:"fill",color:U.colorWhirl}}),u=new s({highlightStyle:{r:Math.round(U.r/6),brushType:"fill",color:U.colorIn}}),y=new o({highlightStyle:{r0:Math.round(U.r-U.r/3),r:U.r,brushType:"fill",color:U.colorOut}}),g=[0,U.x,U.y];return c.highlightStyle.x=u.highlightStyle.x=y.highlightStyle.x=g[1],c.highlightStyle.y=u.highlightStyle.y=y.highlightStyle.y=g[2],setInterval(function(){e(p),e(y),g[0]-=.3,c.rotation=g,e(c),e(u),e(l),t()},U.timeInterval)},t}),i("echarts/theme/macarons",[],function(){var e={color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],title:{textStyle:{fontWeight:"normal",color:"#008acd"}},dataRange:{itemWidth:15,color:["#5ab1ef","#e0ffff"]},toolbox:{color:["#1e90ff","#1e90ff","#1e90ff","#1e90ff"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#008acd"},crossStyle:{color:"#008acd"},shadowStyle:{color:"rgba(200,200,200,0.2)"}}},dataZoom:{dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd"},grid:{borderColor:"#eee"},categoryAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#008acd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#008acd"},controlStyle:{normal:{color:"#008acd"},emphasis:{color:"#008acd"}},symbol:"emptyCircle",symbolSize:3},bar:{itemStyle:{normal:{barBorderRadius:5},emphasis:{barBorderRadius:5}}},line:{smooth:!0,symbol:"emptyCircle",symbolSize:3},k:{itemStyle:{normal:{color:"#d87a80",color0:"#2ec7c9",lineStyle:{color:"#d87a80",color0:"#2ec7c9"}}}},scatter:{symbol:"circle",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#d87a80"}}},emphasis:{areaStyle:{color:"#fe994e"}}}},force:{itemStyle:{normal:{linkStyle:{color:"#1e90ff"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{axisLine:{lineStyle:{color:[[.2,"#2ec7c9"],[.8,"#5ab1ef"],[1,"#d87a80"]],width:10}},axisTick:{splitNumber:10,length:15,lineStyle:{color:"auto"}},splitLine:{length:22,lineStyle:{color:"auto"}},pointer:{width:5}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return e}),i("echarts/theme/infographic",[],function(){var e={color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],title:{textStyle:{fontWeight:"normal",color:"#27727B"}},dataRange:{x:"right",y:"center",itemWidth:5,itemHeight:25,color:["#C1232B","#FCCE10"]},toolbox:{color:["#C1232B","#B5C334","#FCCE10","#E87C25","#27727B","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD"],effectiveColor:"#ff4500"},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},polar:{axisLine:{lineStyle:{color:"#ddd"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(200,200,200,0.2)"]}},splitLine:{lineStyle:{color:"#ddd"}}},timeline:{lineStyle:{color:"#27727B"},controlStyle:{normal:{color:"#27727B"},emphasis:{color:"#27727B"}},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{normal:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3}},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},k:{itemStyle:{normal:{color:"#C1232B",color0:"#B5C334",lineStyle:{width:1,color:"#C1232B",color0:"#B5C334"}}}},scatter:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(200,200,200,0.5)"},emphasis:{borderWidth:0}},symbol:"star4",symbolSize:4},radar:{symbol:"emptyCircle",symbolSize:3},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#C1232B"}}},emphasis:{areaStyle:{color:"#fe994e"},label:{textStyle:{color:"rgb(100,0,0)"}}}}},force:{itemStyle:{normal:{linkStyle:{color:"#27727B"}}}},chord:{itemStyle:{normal:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{borderWidth:1,borderColor:"rgba(128, 128, 128, 0.5)",chordStyle:{lineStyle:{color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{center:["50%","80%"],radius:"100%",startAngle:180,endAngle:0,axisLine:{show:!0,lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]],width:"40%"}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff",fontWeight:"bolder"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},pointer:{width:"40%",length:"80%",color:"#fff"},title:{offsetCenter:[0,-20],textStyle:{color:"auto",fontSize:20}},detail:{offsetCenter:[0,0],textStyle:{color:"auto",fontSize:40}}},textStyle:{fontFamily:"微软雅黑, Arial, Verdana, sans-serif"}};return e}),i("zrender/dep/excanvas",["require"],function(){return document.createElement("canvas").getContext?G_vmlCanvasManager=!1:!function(){function e(){return this.context_||(this.context_=new f(this))}function t(e,t){var i=O.call(arguments,2);return function(){return e.apply(t,i.concat(O.call(arguments)))}}function i(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function n(e,t,i){e.namespaces[t]||e.namespaces.add(t,i,"#default#VML")}function a(e){if(n(e,"g_vml_","urn:schemas-microsoft-com:vml"),n(e,"g_o_","urn:schemas-microsoft-com:office:office"),!e.styleSheets.ex_canvas_){var t=e.createStyleSheet();t.owningElement.id="ex_canvas_",t.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function o(e){var t=e.srcElement;switch(e.propertyName){case"width":t.getContext().clearRect(),t.style.width=t.attributes.width.nodeValue+"px",t.firstChild.style.width=t.clientWidth+"px";break;case"height":t.getContext().clearRect(),t.style.height=t.attributes.height.nodeValue+"px",t.firstChild.style.height=t.clientHeight+"px"}}function r(e){var t=e.srcElement;t.firstChild&&(t.firstChild.style.width=t.clientWidth+"px",t.firstChild.style.height=t.clientHeight+"px")}function s(){return[[1,0,0],[0,1,0],[0,0,1]]}function l(e,t){for(var i=s(),n=0;3>n;n++)for(var a=0;3>a;a++){for(var o=0,r=0;3>r;r++)o+=e[n][r]*t[r][a];i[n][a]=o}return i}function h(e,t){t.fillStyle=e.fillStyle,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.shadowBlur=e.shadowBlur,t.shadowColor=e.shadowColor,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY,t.strokeStyle=e.strokeStyle,t.globalAlpha=e.globalAlpha,t.font=e.font,t.textAlign=e.textAlign,t.textBaseline=e.textBaseline,t.scaleX_=e.scaleX_,t.scaleY_=e.scaleY_,t.lineScale_=e.lineScale_}function m(e){var t=e.indexOf("(",3),i=e.indexOf(")",t+1),n=e.substring(t+1,i).split(",");return(4!=n.length||"a"!=e.charAt(3))&&(n[3]=1),n}function V(e){return parseFloat(e)/100}function U(e,t,i){return Math.min(i,Math.max(t,e))}function d(e){var t,i,n,a,o,r;if(a=parseFloat(e[0])/360%360,0>a&&a++,o=U(V(e[1]),0,1),r=U(V(e[2]),0,1),0==o)t=i=n=r;else{var s=.5>r?r*(1+o):r+o-r*o,l=2*r-s;t=p(l,s,a+1/3),i=p(l,s,a),n=p(l,s,a-1/3)}return"#"+D[Math.floor(255*t)]+D[Math.floor(255*i)]+D[Math.floor(255*n)]}function p(e,t,i){return 0>i&&i++,i>1&&i--,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+(t-e)*(2/3-i)*6:e}function c(e){if(e in R)return R[e];var t,i=1;if(e=String(e),"#"==e.charAt(0))t=e;else if(/^rgb/.test(e)){for(var n,a=m(e),t="#",o=0;3>o;o++)n=-1!=a[o].indexOf("%")?Math.floor(255*V(a[o])):+a[o],t+=D[U(n,0,255)];i=+a[3]}else if(/^hsl/.test(e)){var a=m(e);t=d(a),i=a[3]}else t=H[e]||e;return R[e]={color:t,alpha:i}}function u(e){if(Y[e])return Y[e];var t,i=document.createElement("div"),n=i.style;try{n.font=e,t=n.fontFamily.split(",")[0]}catch(a){}return Y[e]={style:n.fontStyle||G.style,variant:n.fontVariant||G.variant,weight:n.fontWeight||G.weight,size:n.fontSize||G.size,family:t||G.family}}function y(e,t){var i={};for(var n in e)i[n]=e[n];var a=parseFloat(t.currentStyle.fontSize),o=parseFloat(e.size);return i.size="number"==typeof e.size?e.size:-1!=e.size.indexOf("px")?o:-1!=e.size.indexOf("em")?a*o:-1!=e.size.indexOf("%")?a/100*o:-1!=e.size.indexOf("pt")?o/.75:a,i}function g(e){return e.style+" "+e.variant+" "+e.weight+" "+e.size+"px '"+e.family+"'"}function b(e){return Q[e]||"square"}function f(e){this.m_=s(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=1*A,this.globalAlpha=1,this.font="12px 微软雅黑",this.textAlign="left",this.textBaseline="alphabetic",this.canvas=e;var t="width:"+e.clientWidth+"px;height:"+e.clientHeight+"px;overflow:hidden;position:absolute",i=e.ownerDocument.createElement("div");i.style.cssText=t,e.appendChild(i);var n=i.cloneNode(!1);n.style.backgroundColor="#fff",n.style.filter="alpha(opacity=0)",e.appendChild(n),this.element_=i,this.scaleX_=1,this.scaleY_=1,this.lineScale_=1}function k(e,t,i,n){e.currentPath_.push({type:"bezierCurveTo",cp1x:t.x,cp1y:t.y,cp2x:i.x,cp2y:i.y,x:n.x,y:n.y}),e.currentX_=n.x,e.currentY_=n.y}function x(e,t){var i=c(e.strokeStyle),n=i.color,a=i.alpha*e.globalAlpha,o=e.lineScale_*e.lineWidth;1>o&&(a*=o),t.push("<g_vml_:stroke",' opacity="',a,'"',' joinstyle="',e.lineJoin,'"',' miterlimit="',e.miterLimit,'"',' endcap="',b(e.lineCap),'"',' weight="',o,'px"',' color="',n,'" />')}function _(e,t,i,n){var a=e.fillStyle,o=e.scaleX_,r=e.scaleY_,s=n.x-i.x,l=n.y-i.y;if(a instanceof v){var h=0,m={x:0,y:0},V=0,U=1;if("gradient"==a.type_){var d=a.x0_/o,p=a.y0_/r,u=a.x1_/o,y=a.y1_/r,g=L(e,d,p),b=L(e,u,y),f=b.x-g.x,k=b.y-g.y;h=180*Math.atan2(f,k)/Math.PI,0>h&&(h+=360),1e-6>h&&(h=0)}else{var g=L(e,a.x0_,a.y0_);m={x:(g.x-i.x)/s,y:(g.y-i.y)/l},s/=o*A,l/=r*A;var x=C.max(s,l);V=2*a.r0_/x,U=2*a.r1_/x-V}var _=a.colors_;_.sort(function(e,t){return e.offset-t.offset});for(var W=_.length,X=_[0].color,K=_[W-1].color,I=_[0].alpha*e.globalAlpha,J=_[W-1].alpha*e.globalAlpha,S=[],E=0;W>E;E++){var F=_[E];S.push(F.offset*U+V+" "+F.color)}t.push('<g_vml_:fill type="',a.type_,'"',' method="none" focus="100%"',' color="',X,'"',' color2="',K,'"',' colors="',S.join(","),'"',' opacity="',J,'"',' g_o_:opacity2="',I,'"',' angle="',h,'"',' focusposition="',m.x,",",m.y,'" />')}else if(a instanceof w){if(s&&l){var T=-i.x,z=-i.y;t.push("<g_vml_:fill",' position="',T/s*o*o,",",z/l*r*r,'"',' type="tile"',' src="',a.src_,'" />')}}else{var M=c(e.fillStyle),O=M.color,P=M.alpha*e.globalAlpha;t.push('<g_vml_:fill color="',O,'" opacity="',P,'" />')}}function L(e,t,i){var n=e.m_;return{x:A*(t*n[0][0]+i*n[1][0]+n[2][0])-M,y:A*(t*n[0][1]+i*n[1][1]+n[2][1])-M}}function W(e){return isFinite(e[0][0])&&isFinite(e[0][1])&&isFinite(e[1][0])&&isFinite(e[1][1])&&isFinite(e[2][0])&&isFinite(e[2][1])}function X(e,t,i){if(W(t)&&(e.m_=t,e.scaleX_=Math.sqrt(t[0][0]*t[0][0]+t[0][1]*t[0][1]),e.scaleY_=Math.sqrt(t[1][0]*t[1][0]+t[1][1]*t[1][1]),i)){var n=t[0][0]*t[1][1]-t[0][1]*t[1][0];e.lineScale_=z(T(n))}}function v(e){this.type_=e,this.x0_=0,this.y0_=0,this.r0_=0,this.x1_=0,this.y1_=0,this.r1_=0,this.colors_=[]}function w(e,t){switch(I(e),t){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=t;break;default:K("SYNTAX_ERR")}this.src_=e.src,this.width_=e.width,this.height_=e.height}function K(e){throw new J(e)}function I(e){e&&1==e.nodeType&&"IMG"==e.tagName||K("TYPE_MISMATCH_ERR"),"complete"!=e.readyState&&K("INVALID_STATE_ERR")}function J(e){this.code=this[e],this.message=e+": DOM Exception "+this.code}var C=Math,S=C.round,E=C.sin,F=C.cos,T=C.abs,z=C.sqrt,A=10,M=A/2,O=(+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1],Array.prototype.slice);a(document);var P={init:function(e){var i=e||document;i.createElement("canvas"),i.attachEvent("onreadystatechange",t(this.init_,this,i))},init_:function(e){for(var t=e.getElementsByTagName("canvas"),i=0;i<t.length;i++)this.initElement(t[i])},initElement:function(t){if(!t.getContext){t.getContext=e,a(t.ownerDocument),t.innerHTML="",t.attachEvent("onpropertychange",o),t.attachEvent("onresize",r);var i=t.attributes;i.width&&i.width.specified?t.style.width=i.width.nodeValue+"px":t.width=t.clientWidth,i.height&&i.height.specified?t.style.height=i.height.nodeValue+"px":t.height=t.clientHeight}return t}};P.init();for(var D=[],N=0;16>N;N++)for(var B=0;16>B;B++)D[16*N+B]=N.toString(16)+B.toString(16);var H={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"},R={},G={style:"normal",variant:"normal",weight:"normal",size:12,family:"微软雅黑"},Y={},Q={butt:"flat",round:"round"},Z=f.prototype;Z.clearRect=function(){this.textMeasureEl_&&(this.textMeasureEl_.removeNode(!0),this.textMeasureEl_=null),this.element_.innerHTML=""},Z.beginPath=function(){this.currentPath_=[]},Z.moveTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"moveTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},Z.lineTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"lineTo",x:i.x,y:i.y}),this.currentX_=i.x,this.currentY_=i.y},Z.bezierCurveTo=function(e,t,i,n,a,o){var r=L(this,a,o),s=L(this,e,t),l=L(this,i,n);k(this,s,l,r)},Z.quadraticCurveTo=function(e,t,i,n){var a=L(this,e,t),o=L(this,i,n),r={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)},s={x:r.x+(o.x-this.currentX_)/3,y:r.y+(o.y-this.currentY_)/3};k(this,r,s,o)},Z.arc=function(e,t,i,n,a,o){i*=A;var r=o?"at":"wa",s=e+F(n)*i-M,l=t+E(n)*i-M,h=e+F(a)*i-M,m=t+E(a)*i-M;s!=h||o||(s+=.125);var V=L(this,e,t),U=L(this,s,l),d=L(this,h,m);this.currentPath_.push({type:r,x:V.x,y:V.y,radius:i,xStart:U.x,yStart:U.y,xEnd:d.x,yEnd:d.y})},Z.rect=function(e,t,i,n){this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath()},Z.strokeRect=function(e,t,i,n){var a=this.currentPath_;this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath(),this.stroke(),this.currentPath_=a},Z.fillRect=function(e,t,i,n){var a=this.currentPath_;this.beginPath(),this.moveTo(e,t),this.lineTo(e+i,t),this.lineTo(e+i,t+n),this.lineTo(e,t+n),this.closePath(),this.fill(),this.currentPath_=a},Z.createLinearGradient=function(e,t,i,n){var a=new v("gradient");return a.x0_=e,a.y0_=t,a.x1_=i,a.y1_=n,a},Z.createRadialGradient=function(e,t,i,n,a,o){var r=new v("gradientradial");return r.x0_=e,r.y0_=t,r.r0_=i,r.x1_=n,r.y1_=a,r.r1_=o,r},Z.drawImage=function(e){var t,i,n,a,o,r,s,l,h=e.runtimeStyle.width,m=e.runtimeStyle.height;e.runtimeStyle.width="auto",e.runtimeStyle.height="auto";var V=e.width,U=e.height;if(e.runtimeStyle.width=h,e.runtimeStyle.height=m,3==arguments.length)t=arguments[1],i=arguments[2],o=r=0,s=n=V,l=a=U;else if(5==arguments.length)t=arguments[1],i=arguments[2],n=arguments[3],a=arguments[4],o=r=0,s=V,l=U;else{if(9!=arguments.length)throw Error("Invalid number of arguments");o=arguments[1],r=arguments[2],s=arguments[3],l=arguments[4],t=arguments[5],i=arguments[6],n=arguments[7],a=arguments[8]}var d=L(this,t,i),p=[],c=10,u=10,y=b=1;if(p.push(" <g_vml_:group",' coordsize="',A*c,",",A*u,'"',' coordorigin="0,0"',' style="width:',c,"px;height:",u,"px;position:absolute;"),1!=this.m_[0][0]||this.m_[0][1]||1!=this.m_[1][1]||this.m_[1][0]){var g=[],y=this.scaleX_,b=this.scaleY_;g.push("M11=",this.m_[0][0]/y,",","M12=",this.m_[1][0]/b,",","M21=",this.m_[0][1]/y,",","M22=",this.m_[1][1]/b,",","Dx=",S(d.x/A),",","Dy=",S(d.y/A),"");var f=d,k=L(this,t+n,i),x=L(this,t,i+a),_=L(this,t+n,i+a);f.x=C.max(f.x,k.x,x.x,_.x),f.y=C.max(f.y,k.y,x.y,_.y),p.push("padding:0 ",S(f.x/A),"px ",S(f.y/A),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",g.join(""),", SizingMethod='clip');")}else p.push("top:",S(d.y/A),"px;left:",S(d.x/A),"px;");p.push(' ">'),(o||r)&&p.push('<div style="overflow: hidden; width:',Math.ceil((n+o*n/s)*y),"px;"," height:",Math.ceil((a+r*a/l)*b),"px;"," filter:progid:DxImageTransform.Microsoft.Matrix(Dx=",-o*n/s*y,",Dy=",-r*a/l*b,');">'),p.push('<div style="width:',Math.round(y*V*n/s),"px;"," height:",Math.round(b*U*a/l),"px;"," filter:"),this.globalAlpha<1&&p.push(" progid:DXImageTransform.Microsoft.Alpha(opacity="+100*this.globalAlpha+")"),p.push(" progid:DXImageTransform.Microsoft.AlphaImageLoader(src=",e.src,',sizingMethod=scale)">'),(o||r)&&p.push("</div>"),p.push("</div></div>"),this.element_.insertAdjacentHTML("BeforeEnd",p.join(""))},Z.stroke=function(e){var t=[],i=10,n=10;t.push("<g_vml_:shape",' filled="',!!e,'"',' style="position:absolute;width:',i,"px;height:",n,'px;"',' coordorigin="0,0"',' coordsize="',A*i,",",A*n,'"',' stroked="',!e,'"',' path="');for(var a={x:null,y:null},o={x:null,y:null},r=0;r<this.currentPath_.length;r++){var s,l=this.currentPath_[r];switch(l.type){case"moveTo":s=l,t.push(" m ",S(l.x),",",S(l.y));break;case"lineTo":t.push(" l ",S(l.x),",",S(l.y));break;case"close":t.push(" x "),l=null;break;case"bezierCurveTo":t.push(" c ",S(l.cp1x),",",S(l.cp1y),",",S(l.cp2x),",",S(l.cp2y),",",S(l.x),",",S(l.y));break;case"at":case"wa":t.push(" ",l.type," ",S(l.x-this.scaleX_*l.radius),",",S(l.y-this.scaleY_*l.radius)," ",S(l.x+this.scaleX_*l.radius),",",S(l.y+this.scaleY_*l.radius)," ",S(l.xStart),",",S(l.yStart)," ",S(l.xEnd),",",S(l.yEnd))}l&&((null==a.x||l.x<a.x)&&(a.x=l.x),(null==o.x||l.x>o.x)&&(o.x=l.x),(null==a.y||l.y<a.y)&&(a.y=l.y),(null==o.y||l.y>o.y)&&(o.y=l.y))}t.push(' ">'),e?_(this,t,a,o):x(this,t),t.push("</g_vml_:shape>"),this.element_.insertAdjacentHTML("beforeEnd",t.join(""))},Z.fill=function(){this.stroke(!0)},Z.closePath=function(){this.currentPath_.push({type:"close"})},Z.save=function(){var e={};h(this,e),this.aStack_.push(e),this.mStack_.push(this.m_),this.m_=l(s(),this.m_)},Z.restore=function(){this.aStack_.length&&(h(this.aStack_.pop(),this),this.m_=this.mStack_.pop())},Z.translate=function(e,t){var i=[[1,0,0],[0,1,0],[e,t,1]];X(this,l(i,this.m_),!1)},Z.rotate=function(e){var t=F(e),i=E(e),n=[[t,i,0],[-i,t,0],[0,0,1]];X(this,l(n,this.m_),!1)},Z.scale=function(e,t){var i=[[e,0,0],[0,t,0],[0,0,1]];X(this,l(i,this.m_),!0)},Z.transform=function(e,t,i,n,a,o){var r=[[e,t,0],[i,n,0],[a,o,1]];X(this,l(r,this.m_),!0)},Z.setTransform=function(e,t,i,n,a,o){var r=[[e,t,0],[i,n,0],[a,o,1]];X(this,r,!0)},Z.drawText_=function(e,t,n,a,o){var r=this.m_,s=1e3,l=0,h=s,m={x:0,y:0},V=[],U=y(u(this.font),this.element_),d=g(U),p=this.element_.currentStyle,c=this.textAlign.toLowerCase();switch(c){case"left":case"center":case"right":break;case"end":c="ltr"==p.direction?"right":"left";break;case"start":c="rtl"==p.direction?"right":"left";break;default:c="left"}switch(this.textBaseline){case"hanging":case"top":m.y=U.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":m.y=-U.size/2.25}switch(c){case"right":l=s,h=.05;break;case"center":l=h=s/2}var b=L(this,t+m.x,n+m.y);V.push('<g_vml_:line from="',-l,' 0" to="',h,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!o,'" stroked="',!!o,'" style="position:absolute;width:1px;height:1px;">'),o?x(this,V):_(this,V,{x:-l,y:0},{x:h,y:U.size});var f=r[0][0].toFixed(3)+","+r[1][0].toFixed(3)+","+r[0][1].toFixed(3)+","+r[1][1].toFixed(3)+",0,0",k=S(b.x/A)+","+S(b.y/A);V.push('<g_vml_:skew on="t" matrix="',f,'" ',' offset="',k,'" origin="',l,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',i(e),'" style="v-text-align:',c,";font:",i(d),'" /></g_vml_:line>'),this.element_.insertAdjacentHTML("beforeEnd",V.join(""))},Z.fillText=function(e,t,i,n){this.drawText_(e,t,i,n,!1)},Z.strokeText=function(e,t,i,n){this.drawText_(e,t,i,n,!0)},Z.measureText=function(e){if(!this.textMeasureEl_){var t='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",t),this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";try{this.textMeasureEl_.style.font=this.font}catch(n){}return this.textMeasureEl_.appendChild(i.createTextNode(e)),{width:this.textMeasureEl_.offsetWidth}},Z.clip=function(){},Z.arcTo=function(){},Z.createPattern=function(e,t){return new w(e,t)},v.prototype.addColorStop=function(e,t){t=c(t),this.colors_.push({offset:e,color:t.color,alpha:t.alpha})};var q=J.prototype=new Error;q.INDEX_SIZE_ERR=1,q.DOMSTRING_SIZE_ERR=2,q.HIERARCHY_REQUEST_ERR=3,q.WRONG_DOCUMENT_ERR=4,q.INVALID_CHARACTER_ERR=5,q.NO_DATA_ALLOWED_ERR=6,q.NO_MODIFICATION_ALLOWED_ERR=7,q.NOT_FOUND_ERR=8,q.NOT_SUPPORTED_ERR=9,q.INUSE_ATTRIBUTE_ERR=10,q.INVALID_STATE_ERR=11,q.SYNTAX_ERR=12,q.INVALID_MODIFICATION_ERR=13,q.NAMESPACE_ERR=14,q.INVALID_ACCESS_ERR=15,q.VALIDATION_ERR=16,q.TYPE_MISMATCH_ERR=17,G_vmlCanvasManager=P,CanvasRenderingContext2D=f,CanvasGradient=v,CanvasPattern=w,DOMException=J}(),G_vmlCanvasManager}),i("zrender/mixin/Eventful",["require"],function(){var e=function(){this._handlers={}};return e.prototype.one=function(e,t,i){var n=this._handlers;return t&&e?(n[e]||(n[e]=[]),n[e].push({h:t,one:!0,ctx:i||this}),this):this},e.prototype.bind=function(e,t,i){var n=this._handlers;return t&&e?(n[e]||(n[e]=[]),n[e].push({h:t,one:!1,ctx:i||this}),this):this},e.prototype.unbind=function(e,t){var i=this._handlers;if(!e)return this._handlers={},this;if(t){if(i[e]){for(var n=[],a=0,o=i[e].length;o>a;a++)i[e][a].h!=t&&n.push(i[e][a]);i[e]=n}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},e.prototype.dispatch=function(e){if(this._handlers[e]){var t=arguments,i=t.length;i>3&&(t=Array.prototype.slice.call(t,1));for(var n=this._handlers[e],a=n.length,o=0;a>o;){switch(i){case 1:n[o].h.call(n[o].ctx);break;case 2:n[o].h.call(n[o].ctx,t[1]);break;case 3:n[o].h.call(n[o].ctx,t[1],t[2]);break;default:n[o].h.apply(n[o].ctx,t)}n[o].one?(n.splice(o,1),a--):o++}}return this},e.prototype.dispatchWithContext=function(e){if(this._handlers[e]){var t=arguments,i=t.length;i>4&&(t=Array.prototype.slice.call(t,1,t.length-1));for(var n=t[t.length-1],a=this._handlers[e],o=a.length,r=0;o>r;){switch(i){case 1:a[r].h.call(n);break;case 2:a[r].h.call(n,t[1]);break;case 3:a[r].h.call(n,t[1],t[2]);break;default:a[r].h.apply(n,t)}a[r].one?(a.splice(r,1),o--):r++}}return this},e}),i("zrender/tool/log",["require","../config"],function(e){var t=e("../config");return function(){if(0!==t.debugMode)if(1==t.debugMode)for(var e in arguments)throw new Error(arguments[e]);else if(t.debugMode>1)for(var e in arguments)console.log(arguments[e])}}),i("zrender/tool/guid",[],function(){var e=2311;return function(){return"zrender__"+e++}}),i("zrender/Handler",["require","./config","./tool/env","./tool/event","./tool/util","./tool/vector","./tool/matrix","./mixin/Eventful"],function(e){"use strict";function t(e,t){return function(i,n){return e.call(t,i,n)}}function i(e,t){return function(i,n,a){return e.call(t,i,n,a)}}function n(e){for(var i=d.length;i--;){var n=d[i];e["_"+n+"Handler"]=t(c[n],e)}}function a(e,t,i){if(this._draggingTarget&&this._draggingTarget.id==e.id||e.isSilent())return!1;var n=this._event;if(e.isCover(t,i)){e.hoverable&&this.storage.addHover(e);for(var a=e.parent;a;){if(a.clipShape&&!a.clipShape.isCover(this._mouseX,this._mouseY))return!1;a=a.parent}return this._lastHover!=e&&(this._processOutShape(n),this._processDragLeave(n),this._lastHover=e,this._processDragEnter(n)),this._processOverShape(n),this._processDragOver(n),this._hasfound=1,!0}return!1}var o=e("./config"),r=e("./tool/env"),s=e("./tool/event"),l=e("./tool/util"),h=e("./tool/vector"),m=e("./tool/matrix"),V=o.EVENT,U=e("./mixin/Eventful"),d=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],p=function(e){if(window.G_vmlCanvasManager)return!0;e=e||window.event;var t=e.toElement||e.relatedTarget||e.srcElement||e.target;return t&&t.className.match(o.elementClassName)},c={resize:function(e){e=e||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(V.RESIZE,e)},click:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,V.CLICK,e),this._mousemoveHandler(e)}},dblclick:function(e,t){if(p(e)||t){e=e||window.event,e=this._zrenderEventFixed(e);var i=this._lastHover;(i&&i.clickable||!i)&&this._clickThreshold<5&&this._dispatchAgency(i,V.DBLCLICK,e),this._mousemoveHandler(e)}},mousewheel:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=e.wheelDelta||-e.detail,n=i>0?1.1:1/1.1,a=!1,o=this._mouseX,r=this._mouseY;this.painter.eachBuildinLayer(function(t){var i=t.position;if(t.zoomable){t.__zoom=t.__zoom||1;var l=t.__zoom;l*=n,l=Math.max(Math.min(t.maxZoom,l),t.minZoom),n=l/t.__zoom,t.__zoom=l,i[0]-=(o-i[0])*(n-1),i[1]-=(r-i[1])*(n-1),t.scale[0]*=n,t.scale[1]*=n,t.dirty=!0,a=!0,s.stop(e)}}),a&&this.painter.refresh(),this._dispatchAgency(this._lastHover,V.MOUSEWHEEL,e),this._mousemoveHandler(e)}},mousemove:function(e,t){if((p(e)||t)&&!this.painter.isLoading()){e=this._zrenderEventFixed(e),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=s.getX(e),this._mouseY=s.getY(e);var i=this._mouseX-this._lastX,n=this._mouseY-this._lastY;this._processDragStart(e),this._hasfound=0,this._event=e,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(e),
-this._processDragLeave(e)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var a="default";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,i,n),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget),this._clickThreshold++;else if(this._isMouseDown){var o=!1;this.painter.eachBuildinLayer(function(e){e.panable&&(a="move",e.position[0]+=i,e.position[1]+=n,o=!0,e.dirty=!0)}),o&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?a="move":this._hasfound&&this._lastHover.clickable&&(a="pointer"),this.root.style.cursor=a,this._dispatchAgency(this._lastHover,V.MOUSEMOVE,e),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()}},mouseout:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e);var i=e.toElement||e.relatedTarget;if(i!=this.root)for(;i&&9!=i.nodeType;){if(i==this.root)return void this._mousemoveHandler(e);i=i.parentNode}e.zrenderX=this._lastX,e.zrenderY=this._lastY,this.root.style.cursor="default",this._isMouseDown=0,this._processOutShape(e),this._processDrop(e),this._processDragEnd(e),this.painter.isLoading()||this.painter.refreshHover(),this.dispatch(V.GLOBALOUT,e)}},mousedown:function(e,t){if(p(e)||t){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=e.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,e=this._zrenderEventFixed(e),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,V.MOUSEDOWN,e),this._lastDownButton=e.button}},mouseup:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e),this.root.style.cursor="default",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,V.MOUSEUP,e),this._processDrop(e),this._processDragEnd(e))},touchstart:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e,!0),this._lastTouchMoment=new Date,this._mobileFindFixed(e),this._mousedownHandler(e))},touchmove:function(e,t){(p(e)||t)&&(e=this._zrenderEventFixed(e,!0),this._mousemoveHandler(e),this._isDragging&&s.stop(e))},touchend:function(e,t){if(p(e)||t){e=this._zrenderEventFixed(e,!0),this._mouseupHandler(e);var i=new Date;i-this._lastTouchMoment<V.touchClickDelay&&(this._mobileFindFixed(e),this._clickHandler(e),i-this._lastClickMoment<V.touchClickDelay/2&&(this._dblclickHandler(e),this._lastHover&&this._lastHover.clickable&&s.stop(e)),this._lastClickMoment=i),this.painter.clearHover()}}},u=function(e,t,o){U.call(this),this.root=e,this.storage=t,this.painter=o,this._lastX=this._lastY=this._mouseX=this._mouseY=0,this._findHover=i(a,this),this._domHover=o.getDomHover(),n(this),window.addEventListener?(window.addEventListener("resize",this._resizeHandler),r.os.tablet||r.os.phone?(e.addEventListener("touchstart",this._touchstartHandler),e.addEventListener("touchmove",this._touchmoveHandler),e.addEventListener("touchend",this._touchendHandler)):(e.addEventListener("click",this._clickHandler),e.addEventListener("dblclick",this._dblclickHandler),e.addEventListener("mousewheel",this._mousewheelHandler),e.addEventListener("mousemove",this._mousemoveHandler),e.addEventListener("mousedown",this._mousedownHandler),e.addEventListener("mouseup",this._mouseupHandler)),e.addEventListener("DOMMouseScroll",this._mousewheelHandler),e.addEventListener("mouseout",this._mouseoutHandler)):(window.attachEvent("onresize",this._resizeHandler),e.attachEvent("onclick",this._clickHandler),e.ondblclick=this._dblclickHandler,e.attachEvent("onmousewheel",this._mousewheelHandler),e.attachEvent("onmousemove",this._mousemoveHandler),e.attachEvent("onmouseout",this._mouseoutHandler),e.attachEvent("onmousedown",this._mousedownHandler),e.attachEvent("onmouseup",this._mouseupHandler))};u.prototype.on=function(e,t,i){return this.bind(e,t,i),this},u.prototype.un=function(e,t){return this.unbind(e,t),this},u.prototype.trigger=function(e,t){switch(e){case V.RESIZE:case V.CLICK:case V.DBLCLICK:case V.MOUSEWHEEL:case V.MOUSEMOVE:case V.MOUSEDOWN:case V.MOUSEUP:case V.MOUSEOUT:this["_"+e+"Handler"](t,!0)}},u.prototype.dispose=function(){var e=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),r.os.tablet||r.os.phone?(e.removeEventListener("touchstart",this._touchstartHandler),e.removeEventListener("touchmove",this._touchmoveHandler),e.removeEventListener("touchend",this._touchendHandler)):(e.removeEventListener("click",this._clickHandler),e.removeEventListener("dblclick",this._dblclickHandler),e.removeEventListener("mousewheel",this._mousewheelHandler),e.removeEventListener("mousemove",this._mousemoveHandler),e.removeEventListener("mousedown",this._mousedownHandler),e.removeEventListener("mouseup",this._mouseupHandler)),e.removeEventListener("DOMMouseScroll",this._mousewheelHandler),e.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),e.detachEvent("onclick",this._clickHandler),e.detachEvent("dblclick",this._dblclickHandler),e.detachEvent("onmousewheel",this._mousewheelHandler),e.detachEvent("onmousemove",this._mousemoveHandler),e.detachEvent("onmouseout",this._mouseoutHandler),e.detachEvent("onmousedown",this._mousedownHandler),e.detachEvent("onmouseup",this._mouseupHandler)),this.root=this._domHover=this.storage=this.painter=null,this.un()},u.prototype._processDragStart=function(e){var t=this._lastHover;if(this._isMouseDown&&t&&t.draggable&&!this._draggingTarget&&this._mouseDownTarget==t){if(t.dragEnableTime&&new Date-this._lastMouseDownMoment<t.dragEnableTime)return;var i=t;this._draggingTarget=i,this._isDragging=1,i.invisible=!0,this.storage.mod(i.id),this._dispatchAgency(i,V.DRAGSTART,e),this.painter.refresh()}},u.prototype._processDragEnter=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGENTER,e,this._draggingTarget)},u.prototype._processDragOver=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGOVER,e,this._draggingTarget)},u.prototype._processDragLeave=function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,V.DRAGLEAVE,e,this._draggingTarget)},u.prototype._processDrop=function(e){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,V.DROP,e,this._draggingTarget))},u.prototype._processDragEnd=function(e){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,V.DRAGEND,e),this._lastHover=null),this._isDragging=0,this._draggingTarget=null},u.prototype._processOverShape=function(e){this._dispatchAgency(this._lastHover,V.MOUSEOVER,e)},u.prototype._processOutShape=function(e){this._dispatchAgency(this._lastHover,V.MOUSEOUT,e)},u.prototype._dispatchAgency=function(e,t,i,n){var a="on"+t,o={type:t,event:i,target:e,cancelBubble:!1},r=e;for(n&&(o.dragged=n);r&&(r[a]&&(o.cancelBubble=r[a](o)),r.dispatch(t,o),r=r.parent,!o.cancelBubble););if(e)o.cancelBubble||this.dispatch(t,o);else if(!n){var s={type:t,event:i};this.dispatch(t,s),this.painter.eachOtherLayer(function(e){"function"==typeof e[a]&&e[a](s),e.dispatch&&e.dispatch(t,s)})}},u.prototype._iterateAndFindHover=function(){var e=m.create();return function(){for(var t,i,n=this.storage.getShapeList(),a=[0,0],o=n.length-1;o>=0;o--){var r=n[o];if(t!==r.zlevel&&(i=this.painter.getLayer(r.zlevel,i),a[0]=this._mouseX,a[1]=this._mouseY,i.needTransform&&(m.invert(e,i.transform),h.applyTransform(a,a,e))),this._findHover(r,a[0],a[1]))break}}}();var y=[{x:10},{x:-20},{x:10,y:10},{y:-20}];return u.prototype._mobileFindFixed=function(e){this._lastHover=null,this._mouseX=e.zrenderX,this._mouseY=e.zrenderY,this._event=e,this._iterateAndFindHover();for(var t=0;!this._lastHover&&t<y.length;t++){var i=y[t];i.x&&(this._mouseX+=i.x),i.y&&(this._mouseY+=i.y),this._iterateAndFindHover()}this._lastHover&&(e.zrenderX=this._mouseX,e.zrenderY=this._mouseY)},u.prototype._zrenderEventFixed=function(e,t){if(e.zrenderFixed)return e;if(t){var i="touchend"!=e.type?e.targetTouches[0]:e.changedTouches[0];if(i){var n=this.painter._domRoot.getBoundingClientRect();e.zrenderX=i.clientX-n.left,e.zrenderY=i.clientY-n.top}}else{e=e||window.event;var a=e.toElement||e.relatedTarget||e.srcElement||e.target;a&&a!=this._domHover&&(e.zrenderX=("undefined"!=typeof e.offsetX?e.offsetX:e.layerX)+a.offsetLeft,e.zrenderY=("undefined"!=typeof e.offsetY?e.offsetY:e.layerY)+a.offsetTop)}return e.zrenderFixed=1,e},l.merge(u.prototype,U.prototype,!0),u}),i("zrender/Painter",["require","./config","./tool/util","./tool/log","./loadingEffect/Base","./Layer","./shape/Image"],function(e){"use strict";function t(){return!1}function i(){}function n(e){return e?e.isBuildin?!0:"function"!=typeof e.resize||"function"!=typeof e.refresh?!1:!0:!1}var a=e("./config"),o=e("./tool/util"),r=e("./tool/log"),s=e("./loadingEffect/Base"),l=e("./Layer"),h=function(e,i){this.root=e,e.style["-webkit-tap-highlight-color"]="transparent",e.style["-webkit-user-select"]="none",e.style["user-select"]="none",e.style["-webkit-touch-callout"]="none",this.storage=i,e.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var n=document.createElement("div");this._domRoot=n,n.style.position="relative",n.style.overflow="hidden",n.style.width=this._width+"px",n.style.height=this._height+"px",e.appendChild(n),this._layers={},this._zlevelList=[],this._layerConfig={},this._loadingEffect=new s({}),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=document.createElement("div"),this._bgDom.style.cssText=["position:absolute;left:0px;top:0px;width:",this._width,"px;height:",this._height+"px;","-webkit-user-select:none;user-select;none;","-webkit-touch-callout:none;"].join(""),this._bgDom.setAttribute("data-zr-dom-id","bg"),this._bgDom.className=a.elementClassName,n.appendChild(this._bgDom),this._bgDom.onselectstart=t;var o=new l("_zrender_hover_",this);this._layers.hover=o,n.appendChild(o.dom),o.initContext(),o.dom.onselectstart=t,o.dom.style["-webkit-user-select"]="none",o.dom.style["user-select"]="none",o.dom.style["-webkit-touch-callout"]="none",this.refreshNextFrame=null};return h.prototype.render=function(e){return this.isLoading()&&this.hideLoading(),this.refresh(e,!0),this},h.prototype.refresh=function(e,t){var i=this.storage.getShapeList(!0);this._paintList(i,t);for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n],o=this._layers[a];!o.isBuildin&&o.refresh&&o.refresh()}return"function"==typeof e&&e(),this},h.prototype._preProcessLayer=function(e){e.unusedCount++,e.updateTransform()},h.prototype._postProcessLayer=function(e){e.dirty=!1,1==e.unusedCount&&e.clear()},h.prototype._paintList=function(e,t){"undefined"==typeof t&&(t=!1),this._updateLayerStatus(e);var i,n,o;this.eachBuildinLayer(this._preProcessLayer);for(var s=0,l=e.length;l>s;s++){var h=e[s];if(n!==h.zlevel&&(i&&(i.needTransform&&o.restore(),o.flush&&o.flush()),n=h.zlevel,i=this.getLayer(n),i.isBuildin||r("ZLevel "+n+" has been used by unkown layer "+i.id),o=i.ctx,i.unusedCount=0,(i.dirty||t)&&i.clear(),i.needTransform&&(o.save(),i.setTransform(o))),(i.dirty||t)&&!h.invisible&&(!h.onbrush||h.onbrush&&!h.onbrush(o,!1)))if(a.catchBrushException)try{h.brush(o,!1,this.refreshNextFrame)}catch(m){r(m,"brush error of "+h.type,h)}else h.brush(o,!1,this.refreshNextFrame);h.__dirty=!1}i&&(i.needTransform&&o.restore(),o.flush&&o.flush()),this.eachBuildinLayer(this._postProcessLayer)},h.prototype.getLayer=function(e){var t=this._layers[e];return t||(t=new l(e,this),t.isBuildin=!0,this._layerConfig[e]&&o.merge(t,this._layerConfig[e],!0),t.updateTransform(),this.insertLayer(e,t),t.initContext()),t},h.prototype.insertLayer=function(e,t){if(this._layers[e])return void r("ZLevel "+e+" has been used already");if(!n(t))return void r("Layer of zlevel "+e+" is not valid");var i=this._zlevelList.length,a=null,o=-1;if(i>0&&e>this._zlevelList[0]){for(o=0;i-1>o&&!(this._zlevelList[o]<e&&this._zlevelList[o+1]>e);o++);a=this._layers[this._zlevelList[o]]}this._zlevelList.splice(o+1,0,e);var s=a?a.dom:this._bgDom;s.nextSibling?s.parentNode.insertBefore(t.dom,s.nextSibling):s.parentNode.appendChild(t.dom),this._layers[e]=t},h.prototype.eachLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i];e.call(t,this._layers[n],n)}},h.prototype.eachBuildinLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i],a=this._layers[n];a.isBuildin&&e.call(t,a,n)}},h.prototype.eachOtherLayer=function(e,t){for(var i=0;i<this._zlevelList.length;i++){var n=this._zlevelList[i],a=this._layers[n];a.isBuildin||e.call(t,a,n)}},h.prototype.getLayers=function(){return this._layers},h.prototype._updateLayerStatus=function(e){var t=this._layers,i={};this.eachBuildinLayer(function(e,t){i[t]=e.elCount,e.elCount=0});for(var n=0,a=e.length;a>n;n++){var o=e[n],r=o.zlevel,s=t[r];if(s){if(s.elCount++,s.dirty)continue;s.dirty=o.__dirty}}this.eachBuildinLayer(function(e,t){i[t]!==e.elCount&&(e.dirty=!0)})},h.prototype.refreshShapes=function(e,t){for(var i=0,n=e.length;n>i;i++){var a=e[i];a.modSelf()}return this.refresh(t),this},h.prototype.setLoadingEffect=function(e){return this._loadingEffect=e,this},h.prototype.clear=function(){return this.eachBuildinLayer(this._clearLayer),this},h.prototype._clearLayer=function(e){e.clear()},h.prototype.modLayer=function(e,t){if(t){this._layerConfig[e]?o.merge(this._layerConfig[e],t,!0):this._layerConfig[e]=t;var i=this._layers[e];i&&o.merge(i,this._layerConfig[e],!0)}},h.prototype.delLayer=function(e){var t=this._layers[e];t&&(this.modLayer(e,{position:t.position,rotation:t.rotation,scale:t.scale}),t.dom.parentNode.removeChild(t.dom),delete this._layers[e],this._zlevelList.splice(o.indexOf(this._zlevelList,e),1))},h.prototype.refreshHover=function(){this.clearHover();for(var e=this.storage.getHoverShapes(!0),t=0,i=e.length;i>t;t++)this._brushHover(e[t]);var n=this._layers.hover.ctx;return n.flush&&n.flush(),this.storage.delHover(),this},h.prototype.clearHover=function(){var e=this._layers.hover;return e&&e.clear(),this},h.prototype.showLoading=function(e){return this._loadingEffect&&this._loadingEffect.stop(),e&&this.setLoadingEffect(e),this._loadingEffect.start(this),this.loading=!0,this},h.prototype.hideLoading=function(){return this._loadingEffect.stop(),this.clearHover(),this.loading=!1,this},h.prototype.isLoading=function(){return this.loading},h.prototype.resize=function(){var e=this._domRoot;e.style.display="none";var t=this._getWidth(),i=this._getHeight();if(e.style.display="",this._width!=t||i!=this._height){this._width=t,this._height=i,e.style.width=t+"px",e.style.height=i+"px";for(var n in this._layers)this._layers[n].resize(t,i);this.refresh(null,!0)}return this},h.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},h.prototype.dispose=function(){this.isLoading()&&this.hideLoading(),this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},h.prototype.getDomHover=function(){return this._layers.hover.dom},h.prototype.toDataURL=function(e,t,i){if(window.G_vmlCanvasManager)return null;var n=new l("image",this);this._bgDom.appendChild(n.dom),n.initContext();var o=n.ctx;n.clearColor=t||"#fff",n.clear();var s=this;this.storage.iterShape(function(e){if(!e.invisible&&(!e.onbrush||e.onbrush&&!e.onbrush(o,!1)))if(a.catchBrushException)try{e.brush(o,!1,s.refreshNextFrame)}catch(t){r(t,"brush error of "+e.type,e)}else e.brush(o,!1,s.refreshNextFrame)},{normal:"up",update:!0});var h=n.dom.toDataURL(e,i);return o=null,this._bgDom.removeChild(n.dom),h},h.prototype.getWidth=function(){return this._width},h.prototype.getHeight=function(){return this._height},h.prototype._getWidth=function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10)).toFixed(0)-0},h.prototype._getHeight=function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)).toFixed(0)-0},h.prototype._brushHover=function(e){var t=this._layers.hover.ctx;if(!e.onbrush||e.onbrush&&!e.onbrush(t,!0)){var i=this.getLayer(e.zlevel);if(i.needTransform&&(t.save(),i.setTransform(t)),a.catchBrushException)try{e.brush(t,!0,this.refreshNextFrame)}catch(n){r(n,"hoverBrush error of "+e.type,e)}else e.brush(t,!0,this.refreshNextFrame);i.needTransform&&t.restore()}},h.prototype._shapeToImage=function(t,i,n,a,o){var r=document.createElement("canvas"),s=r.getContext("2d");r.style.width=n+"px",r.style.height=a+"px",r.setAttribute("width",n*o),r.setAttribute("height",a*o),s.clearRect(0,0,n*o,a*o);var l={position:i.position,rotation:i.rotation,scale:i.scale};i.position=[0,0,0],i.rotation=0,i.scale=[1,1],i&&i.brush(s,!1);var h=e("./shape/Image"),m=new h({id:t,style:{x:0,y:0,image:r}});return null!=l.position&&(m.position=i.position=l.position),null!=l.rotation&&(m.rotation=i.rotation=l.rotation),null!=l.scale&&(m.scale=i.scale=l.scale),m},h.prototype._createShapeToImageProcessor=function(){if(window.G_vmlCanvasManager)return i;var e=this;return function(t,i,n,o){return e._shapeToImage(t,i,n,o,a.devicePixelRatio)}},h}),i("zrender/Storage",["require","./tool/util","./Group"],function(e){"use strict";function t(e,t){return e.zlevel==t.zlevel?e.z==t.z?e.__renderidx-t.__renderidx:e.z-t.z:e.zlevel-t.zlevel}var i=e("./tool/util"),n=e("./Group"),a={hover:!1,normal:"down",update:!1},o=function(){this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0};return o.prototype.iterShape=function(e,t){if(t||(t=a),t.hover)for(var i=0,n=this._hoverElements.length;n>i;i++){var o=this._hoverElements[i];if(o.updateTransform(),e(o))return this}switch(t.update&&this.updateShapeList(),t.normal){case"down":for(var n=this._shapeList.length;n--;)if(e(this._shapeList[n]))return this;break;default:for(var i=0,n=this._shapeList.length;n>i;i++)if(e(this._shapeList[i]))return this}return this},o.prototype.getHoverShapes=function(e){for(var i=[],n=0,a=this._hoverElements.length;a>n;n++){i.push(this._hoverElements[n]);var o=this._hoverElements[n].hoverConnect;if(o){var r;o=o instanceof Array?o:[o];for(var s=0,l=o.length;l>s;s++)r=o[s].id?o[s]:this.get(o[s]),r&&i.push(r)}}if(i.sort(t),e)for(var n=0,a=i.length;a>n;n++)i[n].updateTransform();return i},o.prototype.getShapeList=function(e){return e&&this.updateShapeList(),this._shapeList},o.prototype.updateShapeList=function(){this._shapeListOffset=0;for(var e=0,i=this._roots.length;i>e;e++){var n=this._roots[e];this._updateAndAddShape(n)}this._shapeList.length=this._shapeListOffset;for(var e=0,i=this._shapeList.length;i>e;e++)this._shapeList[e].__renderidx=e;this._shapeList.sort(t)},o.prototype._updateAndAddShape=function(e,t){if(!e.ignore)if(e.updateTransform(),e.clipShape&&(e.clipShape.parent=e,e.clipShape.updateTransform(),t?(t=t.slice(),t.push(e.clipShape)):t=[e.clipShape]),"group"==e.type){for(var i=0;i<e._children.length;i++){var n=e._children[i];n.__dirty=e.__dirty||n.__dirty,this._updateAndAddShape(n,t)}e.__dirty=!1}else e.__clipShapes=t,this._shapeList[this._shapeListOffset++]=e},o.prototype.mod=function(e,t){if("string"==typeof e&&(e=this._elements[e]),e&&(e.modSelf(),t))if(t.parent||t._storage||t.__clipShapes){var n={};for(var a in t)"parent"!==a&&"_storage"!==a&&"__clipShapes"!==a&&t.hasOwnProperty(a)&&(n[a]=t[a]);i.merge(e,n,!0)}else i.merge(e,t,!0);return this},o.prototype.drift=function(e,t,i){var n=this._elements[e];return n&&(n.needTransform=!0,"horizontal"===n.draggable?i=0:"vertical"===n.draggable&&(t=0),(!n.ondrift||n.ondrift&&!n.ondrift(t,i))&&n.drift(t,i)),this},o.prototype.addHover=function(e){return e.updateNeedTransform(),this._hoverElements.push(e),this},o.prototype.delHover=function(){return this._hoverElements=[],this},o.prototype.hasHoverShape=function(){return this._hoverElements.length>0},o.prototype.addRoot=function(e){this._elements[e.id]||(e instanceof n&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e))},o.prototype.delRoot=function(e){if("undefined"==typeof e){for(var t=0;t<this._roots.length;t++){var a=this._roots[t];a instanceof n&&a.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],void(this._shapeListOffset=0)}if(e instanceof Array)for(var t=0,o=e.length;o>t;t++)this.delRoot(e[t]);else{var r;r="string"==typeof e?this._elements[e]:e;var s=i.indexOf(this._roots,r);s>=0&&(this.delFromMap(r.id),this._roots.splice(s,1),r instanceof n&&r.delChildrenFromStorage(this))}},o.prototype.addToMap=function(e){return e instanceof n&&(e._storage=this),e.modSelf(),this._elements[e.id]=e,this},o.prototype.get=function(e){return this._elements[e]},o.prototype.delFromMap=function(e){var t=this._elements[e];return t&&(delete this._elements[e],t instanceof n&&(t._storage=null)),this},o.prototype.dispose=function(){this._elements=this._renderList=this._roots=this._hoverElements=null},o}),i("zrender/animation/Animation",["require","./Clip","../tool/color","../tool/util","../tool/event"],function(e){"use strict";function t(e,t){return e[t]}function i(e,t,i){e[t]=i}function n(e,t,i){return(t-e)*i+e}function a(e,t,i,a,o){var r=e.length;if(1==o)for(var s=0;r>s;s++)a[s]=n(e[s],t[s],i);else for(var l=e[0].length,s=0;r>s;s++)for(var h=0;l>h;h++)a[s][h]=n(e[s][h],t[s][h],i)}function o(e){switch(typeof e){case"undefined":case"string":return!1}return"undefined"!=typeof e.length}function r(e,t,i,n,a,o,r,l,h){var m=e.length;if(1==h)for(var V=0;m>V;V++)l[V]=s(e[V],t[V],i[V],n[V],a,o,r);else for(var U=e[0].length,V=0;m>V;V++)for(var d=0;U>d;d++)l[V][d]=s(e[V][d],t[V][d],i[V][d],n[V][d],a,o,r)}function s(e,t,i,n,a,o,r){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*r+(-3*(t-i)-2*s-l)*o+s*a+t}function l(e){if(o(e)){var t=e.length;if(o(e[0])){for(var i=[],n=0;t>n;n++)i.push(c.call(e[n]));return i}return c.call(e)}return e}function h(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}var m=e("./Clip"),V=e("../tool/color"),U=e("../tool/util"),d=e("../tool/event").Dispatcher,p=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},c=Array.prototype.slice,u=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time=0,d.call(this)};u.prototype={add:function(e){this._clips.push(e)},remove:function(e){if(e.__inStep)e.__needsRemove=!0;else{var t=U.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)}},_update:function(){for(var e=(new Date).getTime(),t=e-this._time,i=this._clips,n=i.length,a=[],o=[],r=0;n>r;r++){var s=i[r];s.__inStep=!0;var l=s.step(e);s.__inStep=!1,l&&(a.push(l),o.push(s))}for(var r=0;n>r;)i[r].__needsRemove?(i[r]=i[n-1],i.pop(),n--):r++;n=a.length;for(var r=0;n>r;r++)o[r].fire(a[r]);this._time=e,this.onframe(t),this.dispatch("frame",t),this.stage.update&&this.stage.update()},start:function(){function e(){t._running&&(p(e),t._update())}var t=this;this._running=!0,this._time=(new Date).getTime(),p(e)},stop:function(){this._running=!1},clear:function(){this._clips=[]},animate:function(e,t){t=t||{};var i=new y(e,t.loop,t.getter,t.setter);return i.animation=this,i},constructor:u},U.merge(u.prototype,d.prototype,!0);var y=function(e,n,a,o){this._tracks={},this._target=e,this._loop=n||!1,this._getter=a||t,this._setter=o||i,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};return y.prototype={when:function(e,t){for(var i in t)this._tracks[i]||(this._tracks[i]=[],0!==e&&this._tracks[i].push({time:0,value:l(this._getter(this._target,i))})),this._tracks[i].push({time:parseInt(e,10),value:t[i]});return this},during:function(e){return this._onframeList.push(e),this},start:function(e){var t=this,i=this._setter,l=this._getter,U="spline"===e,d=function(){if(t._clipCount--,0===t._clipCount){t._tracks={};for(var e=t._doneList.length,i=0;e>i;i++)t._doneList[i].call(t)}},p=function(p,c){var u=p.length;if(u){var y=p[0].value,g=o(y),b=!1,f=g&&o(y[0])?2:1;p.sort(function(e,t){return e.time-t.time});var k;if(u){k=p[u-1].time;for(var x=[],_=[],L=0;u>L;L++){x.push(p[L].time/k);var W=p[L].value;"string"==typeof W&&(W=V.toArray(W),0===W.length&&(W[0]=W[1]=W[2]=0,W[3]=1),b=!0),_.push(W)}var X,L,v,w,K,I,J,C=0,S=0;if(b)var E=[0,0,0,0];var F=function(e,o){if(S>o){for(X=Math.min(C+1,u-1),L=X;L>=0&&!(x[L]<=o);L--);L=Math.min(L,u-2)}else{for(L=C;u>L&&!(x[L]>o);L++);L=Math.min(L-1,u-2)}C=L,S=o;var m=x[L+1]-x[L];if(0!==m){if(v=(o-x[L])/m,U)if(K=_[L],w=_[0===L?L:L-1],I=_[L>u-2?u-1:L+1],J=_[L>u-3?u-1:L+2],g)r(w,K,I,J,v,v*v,v*v*v,l(e,c),f);else{var V;b?(V=r(w,K,I,J,v,v*v,v*v*v,E,1),V=h(E)):V=s(w,K,I,J,v,v*v,v*v*v),i(e,c,V)}else if(g)a(_[L],_[L+1],v,l(e,c),f);else{var V;b?(a(_[L],_[L+1],v,E,1),V=h(E)):V=n(_[L],_[L+1],v),i(e,c,V)}for(L=0;L<t._onframeList.length;L++)t._onframeList[L](e,o)}},T=new m({target:t._target,life:k,loop:t._loop,delay:t._delay,onframe:F,ondestroy:d});e&&"spline"!==e&&(T.easing=e),t._clipList.push(T),t._clipCount++,t.animation.add(T)}}};for(var c in this._tracks)p(this._tracks[c],c);return this},stop:function(){for(var e=0;e<this._clipList.length;e++){var t=this._clipList[e];this.animation.remove(t)}this._clipList=[]},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this}},u}),i("zrender/tool/vector",[],function(){var e="undefined"==typeof Float32Array?Array:Float32Array,t={create:function(t,i){var n=new e(2);return n[0]=t||0,n[1]=i||0,n},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},clone:function(t){var i=new e(2);return i[0]=t[0],i[1]=t[1],i},set:function(e,t,i){return e[0]=t,e[1]=i,e},add:function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e},scaleAndAdd:function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e},sub:function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e},len:function(e){return Math.sqrt(this.lenSquare(e))},lenSquare:function(e){return e[0]*e[0]+e[1]*e[1]},mul:function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e},div:function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e},normalize:function(e,i){var n=t.len(i);return 0===n?(e[0]=0,e[1]=0):(e[0]=i[0]/n,e[1]=i[1]/n),e},distance:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))},distanceSquare:function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},lerp:function(e,t,i,n){return e[0]=t[0]+n*(i[0]-t[0]),e[1]=t[1]+n*(i[1]-t[1]),e},applyTransform:function(e,t,i){var n=t[0],a=t[1];return e[0]=i[0]*n+i[2]*a+i[4],e[1]=i[1]*n+i[3]*a+i[5],e},min:function(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e},max:function(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}};return t.length=t.len,t.lengthSquare=t.lenSquare,t.dist=t.distance,t.distSquare=t.distanceSquare,t}),i("zrender/tool/matrix",[],function(){var e="undefined"==typeof Float32Array?Array:Float32Array,t={create:function(){var i=new e(6);return t.identity(i),i},identity:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},mul:function(e,t,i){return e[0]=t[0]*i[0]+t[2]*i[1],e[1]=t[1]*i[0]+t[3]*i[1],e[2]=t[0]*i[2]+t[2]*i[3],e[3]=t[1]*i[2]+t[3]*i[3],e[4]=t[0]*i[4]+t[2]*i[5]+t[4],e[5]=t[1]*i[4]+t[3]*i[5]+t[5],e},translate:function(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e},rotate:function(e,t,i){var n=t[0],a=t[2],o=t[4],r=t[1],s=t[3],l=t[5],h=Math.sin(i),m=Math.cos(i);return e[0]=n*m+r*h,e[1]=-n*h+r*m,e[2]=a*m+s*h,e[3]=-a*h+m*s,e[4]=m*o+h*l,e[5]=m*l-h*o,e},scale:function(e,t,i){var n=i[0],a=i[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e},invert:function(e,t){var i=t[0],n=t[2],a=t[4],o=t[1],r=t[3],s=t[5],l=i*r-o*n;return l?(l=1/l,e[0]=r*l,e[1]=-o*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*s-r*a)*l,e[5]=(o*a-i*s)*l,e):null}};return t}),i("zrender/loadingEffect/Base",["require","../tool/util","../shape/Text","../shape/Rectangle"],function(e){function t(e){this.setOptions(e)}var i=e("../tool/util"),n=e("../shape/Text"),a=e("../shape/Rectangle"),o="Loading...",r="normal 16px Arial";return t.prototype.createTextShape=function(e){return new n({highlightStyle:i.merge({x:this.canvasWidth/2,y:this.canvasHeight/2,text:o,textAlign:"center",textBaseline:"middle",textFont:r,color:"#333",brushType:"fill"},e,!0)})},t.prototype.createBackgroundShape=function(e){return new a({highlightStyle:{x:0,y:0,width:this.canvasWidth,height:this.canvasHeight,brushType:"fill",color:e}})},t.prototype.start=function(e){function t(t){e.storage.addHover(t)}function i(){e.refreshHover()}this.canvasWidth=e._width,this.canvasHeight=e._height,this.loadingTimer=this._start(t,i)},t.prototype._start=function(){return setInterval(function(){},1e4)},t.prototype.stop=function(){clearInterval(this.loadingTimer)},t.prototype.setOptions=function(e){this.options=e||{}},t.prototype.adjust=function(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e},t.prototype.getLocation=function(e,t,i){var n=null!=e.x?e.x:"center";switch(n){case"center":n=Math.floor((this.canvasWidth-t)/2);break;case"left":n=0;break;case"right":n=this.canvasWidth-t}var a=null!=e.y?e.y:"center";switch(a){case"center":a=Math.floor((this.canvasHeight-i)/2);break;case"top":a=0;break;case"bottom":a=this.canvasHeight-i}return{x:n,y:a,width:t,height:i}},t}),i("zrender/Layer",["require","./mixin/Transformable","./tool/util","./config"],function(e){function t(){return!1}function i(e,t,i){var n=document.createElement(t),a=i.getWidth(),o=i.getHeight();return n.style.position="absolute",n.style.left=0,n.style.top=0,n.style.width=a+"px",n.style.height=o+"px",n.width=a*r.devicePixelRatio,n.height=o*r.devicePixelRatio,n.setAttribute("data-zr-dom-id",e),n}var n=e("./mixin/Transformable"),a=e("./tool/util"),o=window.G_vmlCanvasManager,r=e("./config"),s=function(e,a){this.id=e,this.dom=i(e,"canvas",a),this.dom.onselectstart=t,this.dom.style["-webkit-user-select"]="none",this.dom.style["user-select"]="none",this.dom.style["-webkit-touch-callout"]="none",this.dom.style["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",this.dom.className=r.elementClassName,o&&o.initElement(this.dom),this.domBack=null,this.ctxBack=null,this.painter=a,this.unusedCount=0,this.config=null,this.dirty=!0,this.elCount=0,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.zoomable=!1,this.panable=!1,this.maxZoom=1/0,this.minZoom=0,n.call(this)};return s.prototype.initContext=function(){this.ctx=this.dom.getContext("2d");var e=r.devicePixelRatio;1!=e&&this.ctx.scale(e,e)},s.prototype.createBackBuffer=function(){if(!o){this.domBack=i("back-"+this.id,"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d");var e=r.devicePixelRatio;1!=e&&this.ctxBack.scale(e,e)}},s.prototype.resize=function(e,t){var i=r.devicePixelRatio;this.dom.style.width=e+"px",this.dom.style.height=t+"px",this.dom.setAttribute("width",e*i),this.dom.setAttribute("height",t*i),1!=i&&this.ctx.scale(i,i),this.domBack&&(this.domBack.setAttribute("width",e*i),this.domBack.setAttribute("height",t*i),1!=i&&this.ctxBack.scale(i,i))},s.prototype.clear=function(){var e=this.dom,t=this.ctx,i=e.width,n=e.height,a=this.clearColor&&!o,s=this.motionBlur&&!o,l=this.lastFrameAlpha,h=r.devicePixelRatio;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/h,n/h)),t.clearRect(0,0,i/h,n/h),a&&(t.save(),t.fillStyle=this.clearColor,t.fillRect(0,0,i/h,n/h),t.restore()),s){var m=this.domBack;t.save(),t.globalAlpha=l,t.drawImage(m,0,0,i/h,n/h),t.restore()}},a.merge(s.prototype,n.prototype),s}),i("zrender/shape/Text",["require","../tool/area","./Base","../tool/util"],function(e){
-var t=e("../tool/area"),i=e("./Base"),n=function(e){i.call(this,e)};return n.prototype={type:"text",brush:function(e,i){var n=this.style;if(i&&(n=this.getHighlightStyle(n,this.highlightStyle||{})),"undefined"!=typeof n.text&&n.text!==!1){e.save(),this.doClip(e),this.setContext(e,n),this.setTransform(e),n.textFont&&(e.font=n.textFont),e.textAlign=n.textAlign||"start",e.textBaseline=n.textBaseline||"middle";var a,o=(n.text+"").split("\n"),r=t.getTextHeight("国",n.textFont),s=this.getRect(n),l=n.x;a="top"==n.textBaseline?s.y:"bottom"==n.textBaseline?s.y+r:s.y+r/2;for(var h=0,m=o.length;m>h;h++){if(n.maxWidth)switch(n.brushType){case"fill":e.fillText(o[h],l,a,n.maxWidth);break;case"stroke":e.strokeText(o[h],l,a,n.maxWidth);break;case"both":e.fillText(o[h],l,a,n.maxWidth),e.strokeText(o[h],l,a,n.maxWidth);break;default:e.fillText(o[h],l,a,n.maxWidth)}else switch(n.brushType){case"fill":e.fillText(o[h],l,a);break;case"stroke":e.strokeText(o[h],l,a);break;case"both":e.fillText(o[h],l,a),e.strokeText(o[h],l,a);break;default:e.fillText(o[h],l,a)}a+=r}e.restore()}},getRect:function(e){if(e.__rect)return e.__rect;var i=t.getTextWidth(e.text,e.textFont),n=t.getTextHeight(e.text,e.textFont),a=e.x;"end"==e.textAlign||"right"==e.textAlign?a-=i:"center"==e.textAlign&&(a-=i/2);var o;return o="top"==e.textBaseline?e.y:"bottom"==e.textBaseline?e.y-n:e.y-n/2,e.__rect={x:a,y:o,width:i,height:n},e.__rect}},e("../tool/util").inherits(n,i),n}),i("zrender/shape/Rectangle",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"rectangle",_buildRadiusPath:function(e,t){var i,n,a,o,r=t.x,s=t.y,l=t.width,h=t.height,m=t.radius;"number"==typeof m?i=n=a=o=m:m instanceof Array?1===m.length?i=n=a=o=m[0]:2===m.length?(i=a=m[0],n=o=m[1]):3===m.length?(i=m[0],n=o=m[1],a=m[2]):(i=m[0],n=m[1],a=m[2],o=m[3]):i=n=a=o=0;var V;i+n>l&&(V=i+n,i*=l/V,n*=l/V),a+o>l&&(V=a+o,a*=l/V,o*=l/V),n+a>h&&(V=n+a,n*=h/V,a*=h/V),i+o>h&&(V=i+o,i*=h/V,o*=h/V),e.moveTo(r+i,s),e.lineTo(r+l-n,s),0!==n&&e.quadraticCurveTo(r+l,s,r+l,s+n),e.lineTo(r+l,s+h-a),0!==a&&e.quadraticCurveTo(r+l,s+h,r+l-a,s+h),e.lineTo(r+o,s+h),0!==o&&e.quadraticCurveTo(r,s+h,r,s+h-o),e.lineTo(r,s+i),0!==i&&e.quadraticCurveTo(r,s,r+i,s)},buildPath:function(e,t){t.radius?this._buildRadiusPath(e,t):(e.moveTo(t.x,t.y),e.lineTo(t.x+t.width,t.y),e.lineTo(t.x+t.width,t.y+t.height),e.lineTo(t.x,t.y+t.height),e.lineTo(t.x,t.y)),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-t/2),y:Math.round(e.y-t/2),width:e.width+t,height:e.height+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("zrender/tool/area",["require","./util","./curve"],function(e){"use strict";function t(e){return e%=C,0>e&&(e+=C),e}function i(e,t,i,o){if(!t||!e)return!1;var r=e.type;L=L||W.getContext();var s=n(e,t,i,o);if("undefined"!=typeof s)return s;if(e.buildPath&&L.isPointInPath)return a(e,L,t,i,o);switch(r){case"ellipse":return!0;case"trochoid":var l="out"==t.location?t.r1+t.r2+t.d:t.r1-t.r2+t.d;return d(t,i,o,l);case"rose":return d(t,i,o,t.maxr);default:return!1}}function n(e,t,i,n){var a=e.type;switch(a){case"bezier-curve":return"undefined"==typeof t.cpX2?l(t.xStart,t.yStart,t.cpX1,t.cpY1,t.xEnd,t.yEnd,t.lineWidth,i,n):s(t.xStart,t.yStart,t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd,t.lineWidth,i,n);case"line":return r(t.xStart,t.yStart,t.xEnd,t.yEnd,t.lineWidth,i,n);case"polyline":return m(t.pointList,t.lineWidth,i,n);case"ring":return V(t.x,t.y,t.r0,t.r,i,n);case"circle":return d(t.x,t.y,t.r,i,n);case"sector":var o=t.startAngle*Math.PI/180,h=t.endAngle*Math.PI/180;return t.clockWise||(o=-o,h=-h),p(t.x,t.y,t.r0,t.r,o,h,!t.clockWise,i,n);case"path":return t.pathArray&&k(t.pathArray,Math.max(t.lineWidth,5),t.brushType,i,n);case"polygon":case"star":case"isogon":return c(t.pointList,i,n);case"text":var u=t.__rect||e.getRect(t);return U(u.x,u.y,u.width,u.height,i,n);case"rectangle":case"image":return U(t.x,t.y,t.width,t.height,i,n)}}function a(e,t,i,n,a){return t.beginPath(),e.buildPath(t,i),t.closePath(),t.isPointInPath(n,a)}function o(e,t,n,a){return!i(e,t,n,a)}function r(e,t,i,n,a,o,r){if(0===a)return!1;var s=Math.max(a,5),l=0,h=e;if(r>t+s&&r>n+s||t-s>r&&n-s>r||o>e+s&&o>i+s||e-s>o&&i-s>o)return!1;if(e===i)return Math.abs(o-e)<=s/2;l=(t-n)/(e-i),h=(e*n-i*t)/(e-i);var m=l*o-r+h,V=m*m/(l*l+1);return s/2*s/2>=V}function s(e,t,i,n,a,o,r,s,l,h,m){if(0===l)return!1;var V=Math.max(l,5);if(m>t+V&&m>n+V&&m>o+V&&m>s+V||t-V>m&&n-V>m&&o-V>m&&s-V>m||h>e+V&&h>i+V&&h>a+V&&h>r+V||e-V>h&&i-V>h&&a-V>h&&r-V>h)return!1;var U=X.cubicProjectPoint(e,t,i,n,a,o,r,s,h,m,null);return V/2>=U}function l(e,t,i,n,a,o,r,s,l){if(0===r)return!1;var h=Math.max(r,5);if(l>t+h&&l>n+h&&l>o+h||t-h>l&&n-h>l&&o-h>l||s>e+h&&s>i+h&&s>a+h||e-h>s&&i-h>s&&a-h>s)return!1;var m=X.quadraticProjectPoint(e,t,i,n,a,o,s,l,null);return h/2>=m}function h(e,i,n,a,o,r,s,l,h){if(0===s)return!1;var m=Math.max(s,5);l-=e,h-=i;var V=Math.sqrt(l*l+h*h);if(V-m>n||n>V+m)return!1;if(Math.abs(a-o)>=C)return!0;if(r){var U=a;a=t(o),o=t(U)}else a=t(a),o=t(o);a>o&&(o+=C);var d=Math.atan2(h,l);return 0>d&&(d+=C),d>=a&&o>=d||d+C>=a&&o>=d+C}function m(e,t,i,n){for(var t=Math.max(t,10),a=0,o=e.length-1;o>a;a++){var s=e[a][0],l=e[a][1],h=e[a+1][0],m=e[a+1][1];if(r(s,l,h,m,t,i,n))return!0}return!1}function V(e,t,i,n,a,o){var r=(a-e)*(a-e)+(o-t)*(o-t);return n*n>r&&r>i*i}function U(e,t,i,n,a,o){return a>=e&&e+i>=a&&o>=t&&t+n>=o}function d(e,t,i,n,a){return i*i>(n-e)*(n-e)+(a-t)*(a-t)}function p(e,t,i,n,a,o,r,s,l){return h(e,t,(i+n)/2,a,o,r,n-i,s,l)}function c(e,t,i){for(var n=e.length,a=0,o=0,r=n-1;n>o;o++){var s=e[r][0],l=e[r][1],h=e[o][0],m=e[o][1];a+=u(s,l,h,m,t,i),r=o}return 0!==a}function u(e,t,i,n,a,o){if(o>t&&o>n||t>o&&n>o)return 0;if(n==t)return 0;var r=t>n?1:-1,s=(o-t)/(n-t),l=s*(i-e)+e;return l>a?r:0}function y(){var e=E[0];E[0]=E[1],E[1]=e}function g(e,t,i,n,a,o,r,s,l,h){if(h>t&&h>n&&h>o&&h>s||t>h&&n>h&&o>h&&s>h)return 0;var m=X.cubicRootAt(t,n,o,s,h,S);if(0===m)return 0;for(var V,U,d=0,p=-1,c=0;m>c;c++){var u=S[c],g=X.cubicAt(e,i,a,r,u);l>g||(0>p&&(p=X.cubicExtrema(t,n,o,s,E),E[1]<E[0]&&p>1&&y(),V=X.cubicAt(t,n,o,s,E[0]),p>1&&(U=X.cubicAt(t,n,o,s,E[1]))),d+=2==p?u<E[0]?t>V?1:-1:u<E[1]?V>U?1:-1:U>s?1:-1:u<E[0]?t>V?1:-1:V>s?1:-1)}return d}function b(e,t,i,n,a,o,r,s){if(s>t&&s>n&&s>o||t>s&&n>s&&o>s)return 0;var l=X.quadraticRootAt(t,n,o,s,S);if(0===l)return 0;var h=X.quadraticExtremum(t,n,o);if(h>=0&&1>=h){for(var m=0,V=X.quadraticAt(t,n,o,h),U=0;l>U;U++){var d=X.quadraticAt(e,i,a,S[U]);r>d||(m+=S[U]<h?t>V?1:-1:V>o?1:-1)}return m}var d=X.quadraticAt(e,i,a,S[0]);return r>d?0:t>o?1:-1}function f(e,i,n,a,o,r,s,l){if(l-=i,l>n||-n>l)return 0;var h=Math.sqrt(n*n-l*l);if(S[0]=-h,S[1]=h,Math.abs(a-o)>=C){a=0,o=C;var m=r?1:-1;return s>=S[0]+e&&s<=S[1]+e?m:0}if(r){var h=a;a=t(o),o=t(h)}else a=t(a),o=t(o);a>o&&(o+=C);for(var V=0,U=0;2>U;U++){var d=S[U];if(d+e>s){var p=Math.atan2(l,d),m=r?1:-1;0>p&&(p=C+p),(p>=a&&o>=p||p+C>=a&&o>=p+C)&&(p>Math.PI/2&&p<1.5*Math.PI&&(m=-m),V+=m)}}return V}function k(e,t,i,n,a){var o=0,m=0,V=0,U=0,d=0,p=!0,c=!0;i=i||"fill";for(var y="stroke"===i||"both"===i,k="fill"===i||"both"===i,x=0;x<e.length;x++){var _=e[x],L=_.points;if(p||"M"===_.command){if(x>0&&(k&&(o+=u(m,V,U,d,n,a)),0!==o))return!0;U=L[L.length-2],d=L[L.length-1],p=!1,c&&"A"!==_.command&&(c=!1,m=U,V=d)}switch(_.command){case"M":m=L[0],V=L[1];break;case"L":if(y&&r(m,V,L[0],L[1],t,n,a))return!0;k&&(o+=u(m,V,L[0],L[1],n,a)),m=L[0],V=L[1];break;case"C":if(y&&s(m,V,L[0],L[1],L[2],L[3],L[4],L[5],t,n,a))return!0;k&&(o+=g(m,V,L[0],L[1],L[2],L[3],L[4],L[5],n,a)),m=L[4],V=L[5];break;case"Q":if(y&&l(m,V,L[0],L[1],L[2],L[3],t,n,a))return!0;k&&(o+=b(m,V,L[0],L[1],L[2],L[3],n,a)),m=L[2],V=L[3];break;case"A":var W=L[0],X=L[1],v=L[2],w=L[3],K=L[4],I=L[5],J=Math.cos(K)*v+W,C=Math.sin(K)*w+X;c?(c=!1,U=J,d=C):o+=u(m,V,J,C);var S=(n-W)*w/v+W;if(y&&h(W,X,w,K,K+I,1-L[7],t,S,a))return!0;k&&(o+=f(W,X,w,K,K+I,1-L[7],S,a)),m=Math.cos(K+I)*v+W,V=Math.sin(K+I)*w+X;break;case"z":if(y&&r(m,V,U,d,t,n,a))return!0;p=!0}}return k&&(o+=u(m,V,U,d,n,a)),0!==o}function x(e,t){var i=e+":"+t;if(v[i])return v[i];L=L||W.getContext(),L.save(),t&&(L.font=t),e=(e+"").split("\n");for(var n=0,a=0,o=e.length;o>a;a++)n=Math.max(L.measureText(e[a]).width,n);return L.restore(),v[i]=n,++K>J&&(K=0,v={}),n}function _(e,t){var i=e+":"+t;if(w[i])return w[i];L=L||W.getContext(),L.save(),t&&(L.font=t),e=(e+"").split("\n");var n=(L.measureText("国").width+2)*e.length;return L.restore(),w[i]=n,++I>J&&(I=0,w={}),n}var L,W=e("./util"),X=e("./curve"),v={},w={},K=0,I=0,J=5e3,C=2*Math.PI,S=[-1,-1,-1],E=[-1,-1];return{isInside:i,isOutside:o,getTextWidth:x,getTextHeight:_,isInsidePath:k,isInsidePolygon:c,isInsideSector:p,isInsideCircle:d,isInsideLine:r,isInsideRect:U,isInsidePolyline:m,isInsideCubicStroke:s,isInsideQuadraticStroke:l}}),i("zrender/shape/Base",["require","../tool/matrix","../tool/guid","../tool/util","../tool/log","../mixin/Transformable","../mixin/Eventful","../tool/area","../tool/color"],function(e){function t(t,n,a,o,r,s,l){r&&(t.font=r),t.textAlign=s,t.textBaseline=l;var h=i(n,a,o,r,s,l);n=(n+"").split("\n");var m=e("../tool/area").getTextHeight("国",r);switch(l){case"top":o=h.y;break;case"bottom":o=h.y+m;break;default:o=h.y+m/2}for(var V=0,U=n.length;U>V;V++)t.fillText(n[V],a,o),o+=m}function i(t,i,n,a,o,r){var s=e("../tool/area"),l=s.getTextWidth(t,a),h=s.getTextHeight("国",a);switch(t=(t+"").split("\n"),o){case"end":case"right":i-=l;break;case"center":i-=l/2}switch(r){case"top":break;case"bottom":n-=h*t.length;break;default:n-=h*t.length/2}return{x:i,y:n,width:l,height:h*t.length}}var n=window.G_vmlCanvasManager,a=e("../tool/matrix"),o=e("../tool/guid"),r=e("../tool/util"),s=e("../tool/log"),l=e("../mixin/Transformable"),h=e("../mixin/Eventful"),m=function(e){e=e||{},this.id=e.id||o();for(var t in e)this[t]=e[t];this.style=this.style||{},this.highlightStyle=this.highlightStyle||null,this.parent=null,this.__dirty=!0,this.__clipShapes=[],l.call(this),h.call(this)};m.prototype.invisible=!1,m.prototype.ignore=!1,m.prototype.zlevel=0,m.prototype.draggable=!1,m.prototype.clickable=!1,m.prototype.hoverable=!0,m.prototype.z=0,m.prototype.brush=function(e,t){var i=this.beforeBrush(e,t);switch(e.beginPath(),this.buildPath(e,i),i.brushType){case"both":e.fill();case"stroke":i.lineWidth>0&&e.stroke();break;default:e.fill()}this.drawText(e,i,this.style),this.afterBrush(e)},m.prototype.beforeBrush=function(e,t){var i=this.style;return this.brushTypeOnly&&(i.brushType=this.brushTypeOnly),t&&(i=this.getHighlightStyle(i,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(i.strokeColor=i.strokeColor||i.color),e.save(),this.doClip(e),this.setContext(e,i),this.setTransform(e),i},m.prototype.afterBrush=function(e){e.restore()};var V=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]];m.prototype.setContext=function(e,t){for(var i=0,n=V.length;n>i;i++){var a=V[i][0],o=t[a],r=V[i][1];"undefined"!=typeof o&&(e[r]=o)}};var U=a.create();return m.prototype.doClip=function(e){if(this.__clipShapes&&!n)for(var t=0;t<this.__clipShapes.length;t++){var i=this.__clipShapes[t];if(i.needTransform){var o=i.transform;a.invert(U,o),e.transform(o[0],o[1],o[2],o[3],o[4],o[5])}if(e.beginPath(),i.buildPath(e,i.style),e.clip(),i.needTransform){var o=U;e.transform(o[0],o[1],o[2],o[3],o[4],o[5])}}},m.prototype.getHighlightStyle=function(t,i,n){var a={};for(var o in t)a[o]=t[o];var r=e("../tool/color"),s=r.getHighlightColor();"stroke"!=t.brushType?(a.strokeColor=s,a.lineWidth=(t.lineWidth||1)+this.getHighlightZoom(),a.brushType="both"):"stroke"!=n?(a.strokeColor=s,a.lineWidth=(t.lineWidth||1)+this.getHighlightZoom()):a.strokeColor=i.strokeColor||r.mix(t.strokeColor,r.toRGB(s));for(var o in i)"undefined"!=typeof i[o]&&(a[o]=i[o]);return a},m.prototype.getHighlightZoom=function(){return"text"!=this.type?6:2},m.prototype.drift=function(e,t){this.position[0]+=e,this.position[1]+=t},m.prototype.buildPath=function(){s("buildPath not implemented in "+this.type)},m.prototype.getRect=function(){s("getRect not implemented in "+this.type)},m.prototype.isCover=function(t,i){var n=this.transformCoordToLocal(t,i);return t=n[0],i=n[1],this.isCoverRect(t,i)?e("../tool/area").isInside(this,this.style,t,i):!1},m.prototype.isCoverRect=function(e,t){var i=this.style.__rect;return i||(i=this.style.__rect=this.getRect(this.style)),e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},m.prototype.drawText=function(e,i,n){if("undefined"!=typeof i.text&&i.text!==!1){var a=i.textColor||i.color||i.strokeColor;e.fillStyle=a;var o,r,s,l,h=10,m=i.textPosition||this.textPosition||"top";switch(m){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var V=(n||i).__rect||this.getRect(n||i);switch(m){case"inside":s=V.x+V.width/2,l=V.y+V.height/2,o="center",r="middle","stroke"!=i.brushType&&a==i.color&&(e.fillStyle="#fff");break;case"left":s=V.x-h,l=V.y+V.height/2,o="end",r="middle";break;case"right":s=V.x+V.width+h,l=V.y+V.height/2,o="start",r="middle";break;case"top":s=V.x+V.width/2,l=V.y-h,o="center",r="bottom";break;case"bottom":s=V.x+V.width/2,l=V.y+V.height+h,o="center",r="top"}}break;case"start":case"end":var U=i.pointList||[[i.xStart||0,i.yStart||0],[i.xEnd||0,i.yEnd||0]],d=U.length;if(2>d)return;var p,c,u,y;switch(m){case"start":p=U[1][0],c=U[0][0],u=U[1][1],y=U[0][1];break;case"end":p=U[d-2][0],c=U[d-1][0],u=U[d-2][1],y=U[d-1][1]}s=c,l=y;var g=Math.atan((u-y)/(c-p))/Math.PI*180;0>c-p?g+=180:0>u-y&&(g+=360),h=5,g>=30&&150>=g?(o="center",r="bottom",l-=h):g>150&&210>g?(o="right",r="middle",s-=h):g>=210&&330>=g?(o="center",r="top",l+=h):(o="left",r="middle",s+=h);break;case"specific":s=i.textX||0,l=i.textY||0,o="start",r="middle"}null!=s&&null!=l&&t(e,i.text,s,l,i.textFont,i.textAlign||o,i.textBaseline||r)}},m.prototype.modSelf=function(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)},m.prototype.isSilent=function(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)},r.merge(m.prototype,l.prototype,!0),r.merge(m.prototype,h.prototype,!0),m}),i("zrender/tool/curve",["require","./vector"],function(e){function t(e){return e>-u&&u>e}function i(e){return e>u||-u>e}function n(e,t,i,n,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*n+3*o*i)}function a(e,t,i,n,a){var o=1-a;return 3*(((t-e)*o+2*(i-t)*a)*o+(n-i)*a*a)}function o(e,i,n,a,o,r){var s=a+3*(i-n)-e,l=3*(n-2*i+e),h=3*(i-e),m=e-o,V=l*l-3*s*h,U=l*h-9*s*m,d=h*h-3*l*m,p=0;if(t(V)&&t(U))if(t(l))r[0]=0;else{var c=-h/l;c>=0&&1>=c&&(r[p++]=c)}else{var u=U*U-4*V*d;if(t(u)){var b=U/V,c=-l/s+b,f=-b/2;c>=0&&1>=c&&(r[p++]=c),f>=0&&1>=f&&(r[p++]=f)}else if(u>0){var k=Math.sqrt(u),x=V*l+1.5*s*(-U+k),_=V*l+1.5*s*(-U-k);x=0>x?-Math.pow(-x,g):Math.pow(x,g),_=0>_?-Math.pow(-_,g):Math.pow(_,g);var c=(-l-(x+_))/(3*s);c>=0&&1>=c&&(r[p++]=c)}else{var L=(2*V*l-3*s*U)/(2*Math.sqrt(V*V*V)),W=Math.acos(L)/3,X=Math.sqrt(V),v=Math.cos(W),c=(-l-2*X*v)/(3*s),f=(-l+X*(v+y*Math.sin(W)))/(3*s),w=(-l+X*(v-y*Math.sin(W)))/(3*s);c>=0&&1>=c&&(r[p++]=c),f>=0&&1>=f&&(r[p++]=f),w>=0&&1>=w&&(r[p++]=w)}}return p}function r(e,n,a,o,r){var s=6*a-12*n+6*e,l=9*n+3*o-3*e-9*a,h=3*n-3*e,m=0;if(t(l)){if(i(s)){var V=-h/s;V>=0&&1>=V&&(r[m++]=V)}}else{var U=s*s-4*l*h;if(t(U))r[0]=-s/(2*l);else if(U>0){var d=Math.sqrt(U),V=(-s+d)/(2*l),p=(-s-d)/(2*l);V>=0&&1>=V&&(r[m++]=V),p>=0&&1>=p&&(r[m++]=p)}}return m}function s(e,t,i,n,a,o){var r=(t-e)*a+e,s=(i-t)*a+t,l=(n-i)*a+i,h=(s-r)*a+r,m=(l-s)*a+s,V=(m-h)*a+h;o[0]=e,o[1]=r,o[2]=h,o[3]=V,o[4]=V,o[5]=m,o[6]=l,o[7]=n}function l(e,t,i,a,o,r,s,l,h,m,V){var U,d=.005,p=1/0;b[0]=h,b[1]=m;for(var y=0;1>y;y+=.05){f[0]=n(e,i,o,s,y),f[1]=n(t,a,r,l,y);var g=c.distSquare(b,f);p>g&&(U=y,p=g)}p=1/0;for(var x=0;32>x&&!(u>d);x++){var _=U-d,L=U+d;f[0]=n(e,i,o,s,_),f[1]=n(t,a,r,l,_);var g=c.distSquare(f,b);if(_>=0&&p>g)U=_,p=g;else{k[0]=n(e,i,o,s,L),k[1]=n(t,a,r,l,L);var W=c.distSquare(k,b);1>=L&&p>W?(U=L,p=W):d*=.5}}return V&&(V[0]=n(e,i,o,s,U),V[1]=n(t,a,r,l,U)),Math.sqrt(p)}function h(e,t,i,n){var a=1-n;return a*(a*e+2*n*t)+n*n*i}function m(e,t,i,n){return 2*((1-n)*(t-e)+n*(i-t))}function V(e,n,a,o,r){var s=e-2*n+a,l=2*(n-e),h=e-o,m=0;if(t(s)){if(i(l)){var V=-h/l;V>=0&&1>=V&&(r[m++]=V)}}else{var U=l*l-4*s*h;if(t(U)){var V=-l/(2*s);V>=0&&1>=V&&(r[m++]=V)}else if(U>0){var d=Math.sqrt(U),V=(-l+d)/(2*s),p=(-l-d)/(2*s);V>=0&&1>=V&&(r[m++]=V),p>=0&&1>=p&&(r[m++]=p)}}return m}function U(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n}function d(e,t,i,n,a){var o=(t-e)*n+e,r=(i-t)*n+t,s=(r-o)*n+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=r,a[5]=i}function p(e,t,i,n,a,o,r,s,l){var m,V=.005,U=1/0;b[0]=r,b[1]=s;for(var d=0;1>d;d+=.05){f[0]=h(e,i,a,d),f[1]=h(t,n,o,d);var p=c.distSquare(b,f);U>p&&(m=d,U=p)}U=1/0;for(var y=0;32>y&&!(u>V);y++){var g=m-V,x=m+V;f[0]=h(e,i,a,g),f[1]=h(t,n,o,g);var p=c.distSquare(f,b);if(g>=0&&U>p)m=g,U=p;else{k[0]=h(e,i,a,x),k[1]=h(t,n,o,x);var _=c.distSquare(k,b);1>=x&&U>_?(m=x,U=_):V*=.5}}return l&&(l[0]=h(e,i,a,m),l[1]=h(t,n,o,m)),Math.sqrt(U)}var c=e("./vector"),u=1e-4,y=Math.sqrt(3),g=1/3,b=c.create(),f=c.create(),k=c.create();return{cubicAt:n,cubicDerivativeAt:a,cubicRootAt:o,cubicExtrema:r,cubicSubdivide:s,cubicProjectPoint:l,quadraticAt:h,quadraticDerivativeAt:m,quadraticRootAt:V,quadraticExtremum:U,quadraticSubdivide:d,quadraticProjectPoint:p}}),i("zrender/mixin/Transformable",["require","../tool/matrix","../tool/vector"],function(e){"use strict";function t(e){return e>-s&&s>e}function i(e){return e>s||-s>e}var n=e("../tool/matrix"),a=e("../tool/vector"),o=[0,0],r=n.translate,s=5e-5,l=function(){this.position||(this.position=[0,0]),"undefined"==typeof this.rotation&&(this.rotation=[0,0,0]),this.scale||(this.scale=[1,1,0,0]),this.needLocalTransform=!1,this.needTransform=!1};return l.prototype={constructor:l,updateNeedTransform:function(){this.needLocalTransform=i(this.rotation[0])||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},updateTransform:function(){this.updateNeedTransform();var e=this.parent&&this.parent.needTransform;if(this.needTransform=this.needLocalTransform||e,this.needTransform){var t=this.transform||n.create();if(n.identity(t),this.needLocalTransform){var a=this.scale;if(i(a[0])||i(a[1])){o[0]=-a[2]||0,o[1]=-a[3]||0;var s=i(o[0])||i(o[1]);s&&r(t,t,o),n.scale(t,t,a),s&&(o[0]=-o[0],o[1]=-o[1],r(t,t,o))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){o[0]=-this.rotation[1]||0,o[1]=-this.rotation[2]||0;var s=i(o[0])||i(o[1]);s&&r(t,t,o),n.rotate(t,t,this.rotation[0]),s&&(o[0]=-o[0],o[1]=-o[1],r(t,t,o))}}else 0!==this.rotation&&n.rotate(t,t,this.rotation);(i(this.position[0])||i(this.position[1]))&&r(t,t,this.position)}e&&(this.needLocalTransform?n.mul(t,this.parent.transform,t):n.copy(t,this.parent.transform)),this.transform=t,this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,t)}},setTransform:function(e){if(this.needTransform){var t=this.transform;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},lookAt:function(){var e=a.create();return function(i){this.transform||(this.transform=n.create());var o=this.transform;if(a.sub(e,i,this.position),!t(e[0])||!t(e[1])){a.normalize(e,e);var r=this.scale;o[2]=e[0]*r[1],o[3]=e[1]*r[1],o[0]=e[1]*r[0],o[1]=-e[0]*r[0],o[4]=this.position[0],o[5]=this.position[1],this.decomposeTransform()}}}(),decomposeTransform:function(){if(this.transform){var e=this.transform,t=e[0]*e[0]+e[1]*e[1],n=this.position,a=this.scale,o=this.rotation;i(t-1)&&(t=Math.sqrt(t));var r=e[2]*e[2]+e[3]*e[3];i(r-1)&&(r=Math.sqrt(r)),n[0]=e[4],n[1]=e[5],a[0]=t,a[1]=r,a[2]=a[3]=0,o[0]=Math.atan2(-e[1]/r,e[0]/t),o[1]=o[2]=0}},transformCoordToLocal:function(e,t){var i=[e,t];return this.needTransform&&this.invTransform&&a.applyTransform(i,i,this.invTransform),i}},l}),i("zrender/Group",["require","./tool/guid","./tool/util","./mixin/Transformable","./mixin/Eventful"],function(e){var t=e("./tool/guid"),i=e("./tool/util"),n=e("./mixin/Transformable"),a=e("./mixin/Eventful"),o=function(e){e=e||{},this.id=e.id||t();for(var i in e)this[i]=e[i];this.type="group",this.clipShape=null,this._children=[],this._storage=null,this.__dirty=!0,n.call(this),a.call(this)};return o.prototype.ignore=!1,o.prototype.children=function(){return this._children.slice()},o.prototype.childAt=function(e){return this._children[e]},o.prototype.addChild=function(e){e!=this&&e.parent!=this&&(e.parent&&e.parent.removeChild(e),this._children.push(e),e.parent=this,this._storage&&this._storage!==e._storage&&(this._storage.addToMap(e),e instanceof o&&e.addChildrenToStorage(this._storage)))},o.prototype.removeChild=function(e){var t=i.indexOf(this._children,e);t>=0&&this._children.splice(t,1),e.parent=null,this._storage&&(this._storage.delFromMap(e.id),e instanceof o&&e.delChildrenFromStorage(this._storage))},o.prototype.clearChildren=function(){for(var e=0;e<this._children.length;e++){var t=this._children[e];this._storage&&(this._storage.delFromMap(t.id),t instanceof o&&t.delChildrenFromStorage(this._storage))}this._children.length=0},o.prototype.eachChild=function(e,t){for(var i=!!t,n=0;n<this._children.length;n++){var a=this._children[n];i?e.call(t,a):e(a)}},o.prototype.traverse=function(e,t){for(var i=!!t,n=0;n<this._children.length;n++){var a=this._children[n];i?e.call(t,a):e(a),"group"===a.type&&a.traverse(e,t)}},o.prototype.addChildrenToStorage=function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.addToMap(i),i instanceof o&&i.addChildrenToStorage(e)}},o.prototype.delChildrenFromStorage=function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.delFromMap(i.id),i instanceof o&&i.delChildrenFromStorage(e)}},o.prototype.modSelf=function(){this.__dirty=!0},i.merge(o.prototype,n.prototype,!0),i.merge(o.prototype,a.prototype,!0),o}),i("zrender/animation/Clip",["require","./easing"],function(e){function t(e){this._targetPool=e.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=e.life||1e3,this._delay=e.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1e3*this._life,this.loop="undefined"==typeof e.loop?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}var i=e("./easing");return t.prototype={step:function(e){var t=(e-this._startTime)/this._life;if(!(0>t)){t=Math.min(t,1);var n="string"==typeof this.easing?i[this.easing]:this.easing,a="function"==typeof n?n(t):t;return this.fire("frame",a),1==t?this.loop?(this.restart(),"restart"):(this.__needsRemove=!0,"destroy"):null}},restart:function(){var e=(new Date).getTime(),t=(e-this._startTime)%this._life;this._startTime=(new Date).getTime()-t+this.gap,this.__needsRemove=!1},fire:function(e,t){for(var i=0,n=this._targetPool.length;n>i;i++)this["on"+e]&&this["on"+e](this._targetPool[i],t)},constructor:t},t}),i("zrender/animation/easing",[],function(){var e={Linear:function(e){return e},QuadraticIn:function(e){return e*e},QuadraticOut:function(e){return e*(2-e)},QuadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},CubicIn:function(e){return e*e*e},CubicOut:function(e){return--e*e*e+1},CubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},QuarticIn:function(e){return e*e*e*e},QuarticOut:function(e){return 1- --e*e*e*e},QuarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},QuinticIn:function(e){return e*e*e*e*e},QuinticOut:function(e){return--e*e*e*e*e+1},QuinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},SinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},SinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},SinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},ExponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},ExponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},ExponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},CircularIn:function(e){return 1-Math.sqrt(1-e*e)},CircularOut:function(e){return Math.sqrt(1- --e*e)},CircularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},ElasticIn:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n)))},ElasticOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin(2*(e-t)*Math.PI/n)+1)},ElasticInOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||1>i?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?-.5*i*Math.pow(2,10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n):i*Math.pow(2,-10*(e-=1))*Math.sin(2*(e-t)*Math.PI/n)*.5+1)},BackIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},BackOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},BackInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*e*e*((t+1)*e-t):.5*((e-=2)*e*((t+1)*e+t)+2)},BounceIn:function(t){return 1-e.BounceOut(1-t)},BounceOut:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},BounceInOut:function(t){return.5>t?.5*e.BounceIn(2*t):.5*e.BounceOut(2*t-1)+.5}};return e}),i("echarts/chart/base",["require","zrender/shape/Image","../util/shape/Icon","../util/shape/MarkLine","../util/shape/Symbol","zrender/shape/Polyline","zrender/shape/ShapeBundle","../config","../util/ecData","../util/ecAnimation","../util/ecEffect","../util/accMath","../component/base","../layout/EdgeBundling","zrender/tool/util","zrender/tool/area"],function(e){function t(e){return null!=e.x&&null!=e.y}function i(e,t,i,n,a){p.call(this,e,t,i,n,a);var o=this;this.selectedMap={},this.lastShapeList=[],this.shapeHandler={onclick:function(){o.isClick=!0},ondragover:function(e){var t=e.target;t.highlightStyle=t.highlightStyle||{};var i=t.highlightStyle,n=i.brushTyep,a=i.strokeColor,r=i.lineWidth;i.brushType="stroke",i.strokeColor=o.ecTheme.calculableColor||h.calculableColor,i.lineWidth="icon"===t.type?30:10,o.zr.addHoverShape(t),setTimeout(function(){i&&(i.brushType=n,i.strokeColor=a,i.lineWidth=r)},20)},ondrop:function(e){null!=m.get(e.dragged,"data")&&(o.isDrop=!0)},ondragend:function(){o.isDragend=!0}}}var n=e("zrender/shape/Image"),a=e("../util/shape/Icon"),o=e("../util/shape/MarkLine"),r=e("../util/shape/Symbol"),s=e("zrender/shape/Polyline"),l=e("zrender/shape/ShapeBundle"),h=e("../config"),m=e("../util/ecData"),V=e("../util/ecAnimation"),U=e("../util/ecEffect"),d=e("../util/accMath"),p=e("../component/base"),c=e("../layout/EdgeBundling"),u=e("zrender/tool/util"),y=e("zrender/tool/area");return i.prototype={setCalculable:function(e){return e.dragEnableTime=this.ecTheme.DRAG_ENABLE_TIME||h.DRAG_ENABLE_TIME,e.ondragover=this.shapeHandler.ondragover,e.ondragend=this.shapeHandler.ondragend,e.ondrop=this.shapeHandler.ondrop,e},ondrop:function(e,t){if(this.isDrop&&e.target&&!t.dragIn){var i,n=e.target,a=e.dragged,o=m.get(n,"seriesIndex"),r=m.get(n,"dataIndex"),s=this.series,l=this.component.legend;if(-1===r){if(m.get(a,"seriesIndex")==o)return t.dragOut=t.dragIn=t.needRefresh=!0,void(this.isDrop=!1);i={value:m.get(a,"value"),name:m.get(a,"name")},this.type===h.CHART_TYPE_PIE&&i.value<0&&(i.value=0);for(var V=!1,U=s[o].data,p=0,c=U.length;c>p;p++)U[p].name===i.name&&"-"===U[p].value&&(s[o].data[p].value=i.value,V=!0);!V&&s[o].data.push(i),l&&l.add(i.name,a.style.color||a.style.strokeColor)}else i=s[o].data[r]||"-",null!=i.value?(s[o].data[r].value="-"!=i.value?d.accAdd(s[o].data[r].value,m.get(a,"value")):m.get(a,"value"),(this.type===h.CHART_TYPE_FUNNEL||this.type===h.CHART_TYPE_PIE)&&(l&&1===l.getRelatedAmount(i.name)&&this.component.legend.del(i.name),i.name+=this.option.nameConnector+m.get(a,"name"),l&&l.add(i.name,a.style.color||a.style.strokeColor))):s[o].data[r]="-"!=i?d.accAdd(s[o].data[r],m.get(a,"value")):m.get(a,"value");t.dragIn=t.dragIn||!0,this.isDrop=!1;var u=this;setTimeout(function(){u.zr.trigger("mousemove",e.event)},300)}},ondragend:function(e,t){if(this.isDragend&&e.target&&!t.dragOut){var i=e.target,n=m.get(i,"seriesIndex"),a=m.get(i,"dataIndex"),o=this.series;if(null!=o[n].data[a].value){o[n].data[a].value="-";var r=o[n].data[a].name,s=this.component.legend;s&&0===s.getRelatedAmount(r)&&s.del(r)}else o[n].data[a]="-";t.dragOut=!0,t.needRefresh=!0,this.isDragend=!1}},onlegendSelected:function(e,t){var i=e.selected;for(var n in this.selectedMap)this.selectedMap[n]!=i[n]&&(t.needRefresh=!0),this.selectedMap[n]=i[n]},_buildPosition:function(){this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this._sIndex2ColorMap={},this.selectedMap={},this.xMarkMap={};for(var e,t,i,n,a=this.series,o={top:[],bottom:[],left:[],right:[],other:[]},r=0,s=a.length;s>r;r++)a[r].type===this.type&&(a[r]=this.reformOption(a[r]),this.legendHoverLink=a[r].legendHoverLink||this.legendHoverLink,e=a[r].xAxisIndex,t=a[r].yAxisIndex,i=this.component.xAxis.getAxis(e),n=this.component.yAxis.getAxis(t),i.type===h.COMPONENT_TYPE_AXIS_CATEGORY?o[i.getPosition()].push(r):n.type===h.COMPONENT_TYPE_AXIS_CATEGORY?o[n.getPosition()].push(r):o.other.push(r));for(var l in o)o[l].length>0&&this._buildSinglePosition(l,o[l]);this.addShapeList()},_buildSinglePosition:function(e,t){var i=this._mapData(t),n=i.locationMap,a=i.maxDataLength;if(0!==a&&0!==n.length){switch(e){case"bottom":case"top":this._buildHorizontal(t,a,n,this.xMarkMap);break;case"left":case"right":this._buildVertical(t,a,n,this.xMarkMap);break;case"other":this._buildOther(t,a,n,this.xMarkMap)}for(var o=0,r=t.length;r>o;o++)this.buildMark(t[o])}},_mapData:function(e){for(var t,i,n,a,o=this.series,r=0,s={},l="__kener__stack__",m=this.component.legend,V=[],U=0,d=0,p=e.length;p>d;d++){if(t=o[e[d]],n=t.name,this._sIndex2ShapeMap[e[d]]=this._sIndex2ShapeMap[e[d]]||this.query(t,"symbol")||this._symbol[d%this._symbol.length],m){if(this.selectedMap[n]=m.isSelected(n),this._sIndex2ColorMap[e[d]]=m.getColor(n),a=m.getItemShape(n)){var c=a.style;if(this.type==h.CHART_TYPE_LINE)c.iconType="legendLineIcon",c.symbol=this._sIndex2ShapeMap[e[d]];else if(t.itemStyle.normal.barBorderWidth>0){var u=a.highlightStyle;c.brushType="both",c.x+=1,c.y+=1,c.width-=2,c.height-=2,c.strokeColor=u.strokeColor=t.itemStyle.normal.barBorderColor,u.lineWidth=3}m.setItemShape(n,a)}}else this.selectedMap[n]=!0,this._sIndex2ColorMap[e[d]]=this.zr.getColor(e[d]);this.selectedMap[n]&&(i=t.stack||l+e[d],null==s[i]?(s[i]=r,V[r]=[e[d]],r++):V[s[i]].push(e[d])),U=Math.max(U,t.data.length)}return{locationMap:V,maxDataLength:U}},_calculMarkMapXY:function(e,t,i){for(var n=this.series,a=0,o=t.length;o>a;a++)for(var r=0,s=t[a].length;s>r;r++){var l=t[a][r],h="xy"==i?0:"",m=this.component.grid,V=e[l];if("-1"!=i.indexOf("x")){V["counter"+h]>0&&(V["average"+h]=V["sum"+h]/V["counter"+h]);var U=this.component.xAxis.getAxis(n[l].xAxisIndex||0).getCoord(V["average"+h]);V["averageLine"+h]=[[U,m.getYend()],[U,m.getY()]],V["minLine"+h]=[[V["minX"+h],m.getYend()],[V["minX"+h],m.getY()]],V["maxLine"+h]=[[V["maxX"+h],m.getYend()],[V["maxX"+h],m.getY()]],V.isHorizontal=!1}if(h="xy"==i?1:"","-1"!=i.indexOf("y")){V["counter"+h]>0&&(V["average"+h]=V["sum"+h]/V["counter"+h]);var d=this.component.yAxis.getAxis(n[l].yAxisIndex||0).getCoord(V["average"+h]);V["averageLine"+h]=[[m.getX(),d],[m.getXend(),d]],V["minLine"+h]=[[m.getX(),V["minY"+h]],[m.getXend(),V["minY"+h]]],V["maxLine"+h]=[[m.getX(),V["maxY"+h]],[m.getXend(),V["maxY"+h]]],V.isHorizontal=!0}}},addLabel:function(e,t,i,n,a){var o=[i,t],r=this.deepMerge(o,"itemStyle.normal.label"),s=this.deepMerge(o,"itemStyle.emphasis.label"),l=r.textStyle||{},h=s.textStyle||{};
-
-if(r.show){var m=e.style;m.text=this._getLabelText(t,i,n,"normal"),m.textPosition=null==r.position?"horizontal"===a?"right":"top":r.position,m.textColor=l.color,m.textFont=this.getFont(l),m.textAlign=l.align,m.textBaseline=l.baseline}if(s.show){var V=e.highlightStyle;V.text=this._getLabelText(t,i,n,"emphasis"),V.textPosition=r.show?e.style.textPosition:null==s.position?"horizontal"===a?"right":"top":s.position,V.textColor=h.color,V.textFont=this.getFont(h),V.textAlign=h.align,V.textBaseline=h.baseline}return e},_getLabelText:function(e,t,i,n){var a=this.deepQuery([t,e],"itemStyle."+n+".label.formatter");a||"emphasis"!==n||(a=this.deepQuery([t,e],"itemStyle.normal.label.formatter"));var o=this.getDataFromOption(t,"-");return a?"function"==typeof a?a.call(this.myChart,{seriesName:e.name,series:e,name:i,value:o,data:t,status:n}):"string"==typeof a?a=a.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",e.name).replace("{b0}",i).replace("{c0}",this.numAddCommas(o)):void 0:o instanceof Array?null!=o[2]?this.numAddCommas(o[2]):o[0]+" , "+o[1]:this.numAddCommas(o)},buildMark:function(e){var t=this.series[e];this.selectedMap[t.name]&&(t.markLine&&this._buildMarkLine(e),t.markPoint&&this._buildMarkPoint(e))},_buildMarkPoint:function(e){for(var t,i,n=(this.markAttachStyle||{})[e],a=this.series[e],o=u.clone(a.markPoint),r=0,s=o.data.length;s>r;r++)t=o.data[r],i=this.getMarkCoord(e,t),t.x=null!=t.x?t.x:i[0],t.y=null!=t.y?t.y:i[1],!t.type||"max"!==t.type&&"min"!==t.type||(t.value=i[3],t.name=t.name||t.type,t.symbolSize=t.symbolSize||y.getTextWidth(i[3],this.getFont())/2+5);for(var l=this._markPoint(e,o),r=0,s=l.length;s>r;r++){var m=l[r];m.zlevel=a.zlevel,m.z=a.z+1;for(var V in n)m[V]=u.clone(n[V]);this.shapeList.push(m)}if(this.type===h.CHART_TYPE_FORCE||this.type===h.CHART_TYPE_CHORD)for(var r=0,s=l.length;s>r;r++)this.zr.addShape(l[r])},_buildMarkLine:function(e){for(var t,i=(this.markAttachStyle||{})[e],n=this.series[e],a=u.clone(n.markLine),o=0,r=a.data.length;r>o;o++){var s=a.data[o];!s.type||"max"!==s.type&&"min"!==s.type&&"average"!==s.type?t=[this.getMarkCoord(e,s[0]),this.getMarkCoord(e,s[1])]:(t=this.getMarkCoord(e,s),a.data[o]=[u.clone(s),{}],a.data[o][0].name=s.name||s.type,a.data[o][0].value="average"!==s.type?t[3]:+t[3].toFixed(null!=a.precision?a.precision:this.deepQuery([this.ecTheme,h],"markLine.precision")),t=t[2],s=[{},{}]),null!=t&&null!=t[0]&&null!=t[1]&&(a.data[o][0].x=null!=s[0].x?s[0].x:t[0][0],a.data[o][0].y=null!=s[0].y?s[0].y:t[0][1],a.data[o][1].x=null!=s[1].x?s[1].x:t[1][0],a.data[o][1].y=null!=s[1].y?s[1].y:t[1][1])}var m=this._markLine(e,a),V=a.large;if(V){var U=new l({style:{shapeList:m}}),d=m[0];if(d){u.merge(U.style,d.style),u.merge(U.highlightStyle={},d.highlightStyle),U.style.brushType="stroke",U.zlevel=n.zlevel,U.z=n.z+1,U.hoverable=!1;for(var p in i)U[p]=u.clone(i[p])}this.shapeList.push(U),this.zr.addShape(U),U._mark="largeLine";var c=a.effect;c.show&&(U.effect=c)}else{for(var o=0,r=m.length;r>o;o++){var y=m[o];y.zlevel=n.zlevel,y.z=n.z+1;for(var p in i)y[p]=u.clone(i[p]);this.shapeList.push(y)}if(this.type===h.CHART_TYPE_FORCE||this.type===h.CHART_TYPE_CHORD)for(var o=0,r=m.length;r>o;o++)this.zr.addShape(m[o])}},_markPoint:function(e,t){var i=this.series[e],n=this.component;u.merge(u.merge(t,u.clone(this.ecTheme.markPoint||{})),u.clone(h.markPoint)),t.name=i.name;var a,o,r,s,l,V,U,d=[],p=t.data,c=n.dataRange,y=n.legend,g=this.zr.getWidth(),b=this.zr.getHeight();if(t.large)a=this.getLargeMarkPointShape(e,t),a._mark="largePoint",a&&d.push(a);else for(var f=0,k=p.length;k>f;f++)null!=p[f].x&&null!=p[f].y&&(r=null!=p[f].value?p[f].value:"",y&&(o=y.getColor(i.name)),c&&(o=isNaN(r)?o:c.getColor(r),s=[p[f],t],l=this.deepQuery(s,"itemStyle.normal.color")||o,V=this.deepQuery(s,"itemStyle.emphasis.color")||l,null==l&&null==V)||(o=null==o?this.zr.getColor(e):o,p[f].tooltip=p[f].tooltip||t.tooltip||{trigger:"item"},p[f].name=null!=p[f].name?p[f].name:"",p[f].value=r,a=this.getSymbolShape(t,e,p[f],f,p[f].name,this.parsePercent(p[f].x,g),this.parsePercent(p[f].y,b),"pin",o,"rgba(0,0,0,0)","horizontal"),a._mark="point",U=this.deepMerge([p[f],t],"effect"),U.show&&(a.effect=U),i.type===h.CHART_TYPE_MAP&&(a._geo=this.getMarkGeo(p[f])),m.pack(a,i,e,p[f],f,p[f].name,r),d.push(a)));return d},_markLine:function(){function e(e,t){e[t]=e[t]instanceof Array?e[t].length>1?e[t]:[e[t][0],e[t][0]]:[e[t],e[t]]}return function(i,n){var a=this.series[i],o=this.component,r=o.dataRange,s=o.legend;u.merge(u.merge(n,u.clone(this.ecTheme.markLine||{})),u.clone(h.markLine));var l=s?s.getColor(a.name):this.zr.getColor(i);e(n,"symbol"),e(n,"symbolSize"),e(n,"symbolRotate");for(var V=n.data,U=[],d=this.zr.getWidth(),p=this.zr.getHeight(),y=0;y<V.length;y++){var g=V[y];if(t(g[0])&&t(g[1])){var b=this.deepMerge(g),f=[b,n],k=l,x=null!=b.value?b.value:"";if(r){k=isNaN(x)?k:r.getColor(x);var _=this.deepQuery(f,"itemStyle.normal.color")||k,L=this.deepQuery(f,"itemStyle.emphasis.color")||_;if(null==_&&null==L)continue}g[0].tooltip=b.tooltip||n.tooltip||{trigger:"item"},g[0].name=g[0].name||"",g[1].name=g[1].name||"",g[0].value=x,U.push({points:[[this.parsePercent(g[0].x,d),this.parsePercent(g[0].y,p)],[this.parsePercent(g[1].x,d),this.parsePercent(g[1].y,p)]],rawData:g,color:k})}}var W=this.query(n,"bundling.enable");if(W){var X=new c;X.maxTurningAngle=this.query(n,"bundling.maxTurningAngle")/180*Math.PI,U=X.run(U)}n.name=a.name;for(var v=[],y=0,w=U.length;w>y;y++){var K=U[y],I=K.rawEdge||K,g=I.rawData,x=null!=g.value?g.value:"",J=this.getMarkLineShape(n,i,g,y,K.points,W,I.color);J._mark="line";var C=this.deepMerge([g[0],g[1],n],"effect");C.show&&(J.effect=C,J.effect.large=n.large),a.type===h.CHART_TYPE_MAP&&(J._geo=[this.getMarkGeo(g[0]),this.getMarkGeo(g[1])]),m.pack(J,a,i,g[0],y,g[0].name+(""!==g[1].name?" > "+g[1].name:""),x),v.push(J)}return v}}(),getMarkCoord:function(){return[0,0]},getSymbolShape:function(e,t,i,o,r,s,l,h,V,U,d){var p=[i,e],c=this.getDataFromOption(i,"-");h=this.deepQuery(p,"symbol")||h;var u=this.deepQuery(p,"symbolSize");u="function"==typeof u?u(c):u,"number"==typeof u&&(u=[u,u]);var y=this.deepQuery(p,"symbolRotate"),g=this.deepMerge(p,"itemStyle.normal"),b=this.deepMerge(p,"itemStyle.emphasis"),f=null!=g.borderWidth?g.borderWidth:g.lineStyle&&g.lineStyle.width;null==f&&(f=h.match("empty")?2:0);var k=null!=b.borderWidth?b.borderWidth:b.lineStyle&&b.lineStyle.width;null==k&&(k=f+2);var x=this.getItemStyleColor(g.color,t,o,i),_=this.getItemStyleColor(b.color,t,o,i),L=u[0],W=u[1],X=new a({style:{iconType:h.replace("empty","").toLowerCase(),x:s-L,y:l-W,width:2*L,height:2*W,brushType:"both",color:h.match("empty")?U:x||V,strokeColor:g.borderColor||x||V,lineWidth:f},highlightStyle:{color:h.match("empty")?U:_||x||V,strokeColor:b.borderColor||g.borderColor||_||x||V,lineWidth:k},clickable:this.deepQuery(p,"clickable")});return h.match("image")&&(X.style.image=h.replace(new RegExp("^image:\\/\\/"),""),X=new n({style:X.style,highlightStyle:X.highlightStyle,clickable:this.deepQuery(p,"clickable")})),null!=y&&(X.rotation=[y*Math.PI/180,s,l]),h.match("star")&&(X.style.iconType="star",X.style.n=h.replace("empty","").replace("star","")-0||5),"none"===h&&(X.invisible=!0,X.hoverable=!1),X=this.addLabel(X,e,i,r,d),h.match("empty")&&(null==X.style.textColor&&(X.style.textColor=X.style.strokeColor),null==X.highlightStyle.textColor&&(X.highlightStyle.textColor=X.highlightStyle.strokeColor)),m.pack(X,e,t,i,o,r),X._x=s,X._y=l,X._dataIndex=o,X._seriesIndex=t,X},getMarkLineShape:function(e,t,i,n,a,r,l){var h=null!=i[0].value?i[0].value:"-",m=null!=i[1].value?i[1].value:"-",V=[i[0].symbol||e.symbol[0],i[1].symbol||e.symbol[1]],U=[i[0].symbolSize||e.symbolSize[0],i[1].symbolSize||e.symbolSize[1]];U[0]="function"==typeof U[0]?U[0](h):U[0],U[1]="function"==typeof U[1]?U[1](m):U[1];var d=[this.query(i[0],"symbolRotate")||e.symbolRotate[0],this.query(i[1],"symbolRotate")||e.symbolRotate[1]],p=[i[0],i[1],e],c=this.deepMerge(p,"itemStyle.normal");c.color=this.getItemStyleColor(c.color,t,n,i);var u=this.deepMerge(p,"itemStyle.emphasis");u.color=this.getItemStyleColor(u.color,t,n,i);var y=c.lineStyle,g=u.lineStyle,b=y.width;null==b&&(b=c.borderWidth);var f=g.width;null==f&&(f=null!=u.borderWidth?u.borderWidth:b+2);var k=this.deepQuery(p,"smoothness");this.deepQuery(p,"smooth")||(k=0);var x=r?s:o,_=new x({style:{symbol:V,symbolSize:U,symbolRotate:d,brushType:"both",lineType:y.type,shadowColor:y.shadowColor||y.color||c.borderColor||c.color||l,shadowBlur:y.shadowBlur,shadowOffsetX:y.shadowOffsetX,shadowOffsetY:y.shadowOffsetY,color:c.color||l,strokeColor:y.color||c.borderColor||c.color||l,lineWidth:b,symbolBorderColor:c.borderColor||c.color||l,symbolBorder:c.borderWidth},highlightStyle:{shadowColor:g.shadowColor,shadowBlur:g.shadowBlur,shadowOffsetX:g.shadowOffsetX,shadowOffsetY:g.shadowOffsetY,color:u.color||c.color||l,strokeColor:g.color||y.color||u.borderColor||c.borderColor||u.color||c.color||l,lineWidth:f,symbolBorderColor:u.borderColor||c.borderColor||u.color||c.color||l,symbolBorder:null==u.borderWidth?c.borderWidth+2:u.borderWidth},clickable:this.deepQuery(p,"clickable")}),L=_.style;return r?(L.pointList=a,L.smooth=k):(L.xStart=a[0][0],L.yStart=a[0][1],L.xEnd=a[1][0],L.yEnd=a[1][1],L.curveness=k,_.updatePoints(_.style)),_=this.addLabel(_,e,i[0],i[0].name+" : "+i[1].name)},getLargeMarkPointShape:function(e,t){var i,n,a,o,s,l,h=this.series[e],m=this.component,V=t.data,U=m.dataRange,d=m.legend,p=[V[0],t];if(d&&(n=d.getColor(h.name)),!U||(a=null!=V[0].value?V[0].value:"",n=isNaN(a)?n:U.getColor(a),o=this.deepQuery(p,"itemStyle.normal.color")||n,s=this.deepQuery(p,"itemStyle.emphasis.color")||o,null!=o||null!=s)){n=this.deepMerge(p,"itemStyle.normal").color||n;var c=this.deepQuery(p,"symbol")||"circle";c=c.replace("empty","").replace(/\d/g,""),l=this.deepMerge([V[0],t],"effect");var u=window.devicePixelRatio||1;return i=new r({style:{pointList:V,color:n,strokeColor:n,shadowColor:l.shadowColor||n,shadowBlur:(null!=l.shadowBlur?l.shadowBlur:8)*u,size:this.deepQuery(p,"symbolSize"),iconType:c,brushType:"fill",lineWidth:1},draggable:!1,hoverable:!1}),l.show&&(i.effect=l),i}},backupShapeList:function(){this.shapeList&&this.shapeList.length>0?(this.lastShapeList=this.shapeList,this.shapeList=[]):this.lastShapeList=[]},addShapeList:function(){var e,t,i=this.option.animationThreshold/(this.canvasSupported?2:4),n=this.lastShapeList,a=this.shapeList,o=n.length>0,r=o?this.query(this.option,"animationDurationUpdate"):this.query(this.option,"animationDuration"),s=this.query(this.option,"animationEasing"),l={},m={};if(this.option.animation&&!this.option.renderAsImage&&a.length<i&&!this.motionlessOnce){for(var V=0,U=n.length;U>V;V++)t=this._getAnimationKey(n[V]),t.match("undefined")?this.zr.delShape(n[V].id):(t+=n[V].type,l[t]?this.zr.delShape(n[V].id):l[t]=n[V]);for(var V=0,U=a.length;U>V;V++)t=this._getAnimationKey(a[V]),t.match("undefined")?this.zr.addShape(a[V]):(t+=a[V].type,m[t]=a[V]);for(t in l)m[t]||this.zr.delShape(l[t].id);for(t in m)l[t]?(this.zr.delShape(l[t].id),this._animateMod(l[t],m[t],r,s,0,o)):(e=this.type!=h.CHART_TYPE_LINE&&this.type!=h.CHART_TYPE_RADAR||0===t.indexOf("icon")?0:r/2,this._animateMod(!1,m[t],r,s,e,o));this.zr.refresh(),this.animationEffect()}else{this.motionlessOnce=!1,this.zr.delShape(n);for(var V=0,U=a.length;U>V;V++)this.zr.addShape(a[V])}},_getAnimationKey:function(e){return this.type!=h.CHART_TYPE_MAP&&this.type!=h.CHART_TYPE_TREEMAP&&this.type!=h.CHART_TYPE_VENN&&this.type!=h.CHART_TYPE_TREE?m.get(e,"seriesIndex")+"_"+m.get(e,"dataIndex")+(e._mark?e._mark:"")+(this.type===h.CHART_TYPE_RADAR?m.get(e,"special"):""):m.get(e,"seriesIndex")+"_"+m.get(e,"dataIndex")+(e._mark?e._mark:"undefined")},_animateMod:function(e,t,i,n,a,o){switch(t.type){case"polyline":case"half-smooth-polygon":V.pointList(this.zr,e,t,i,n);break;case"rectangle":V.rectangle(this.zr,e,t,i,n);break;case"image":case"icon":V.icon(this.zr,e,t,i,n,a);break;case"candle":o?this.zr.addShape(t):V.candle(this.zr,e,t,i,n);break;case"ring":case"sector":case"circle":o?"sector"===t.type?V.sector(this.zr,e,t,i,n):this.zr.addShape(t):V.ring(this.zr,e,t,i+(m.get(t,"dataIndex")||0)%20*100,n);break;case"text":V.text(this.zr,e,t,i,n);break;case"polygon":o?V.pointList(this.zr,e,t,i,n):V.polygon(this.zr,e,t,i,n);break;case"ribbon":V.ribbon(this.zr,e,t,i,n);break;case"gauge-pointer":V.gaugePointer(this.zr,e,t,i,n);break;case"mark-line":V.markline(this.zr,e,t,i,n);break;case"bezier-curve":case"line":V.line(this.zr,e,t,i,n);break;default:this.zr.addShape(t)}},animationMark:function(e,t,i){for(var i=i||this.shapeList,n=0,a=i.length;a>n;n++)i[n]._mark&&this._animateMod(!1,i[n],e,t,0,!0);this.animationEffect(i)},animationEffect:function(e){if(!e&&this.clearEffectShape(),e=e||this.shapeList,null!=e){var t=h.EFFECT_ZLEVEL;this.canvasSupported&&this.zr.modLayer(t,{motionBlur:!0,lastFrameAlpha:this.option.effectBlendAlpha||h.effectBlendAlpha});for(var i,n=0,a=e.length;a>n;n++)i=e[n],i._mark&&i.effect&&i.effect.show&&U[i._mark]&&(U[i._mark](this.zr,this.effectList,i,t),this.effectList[this.effectList.length-1]._mark=i._mark)}},clearEffectShape:function(e){var t=this.effectList;if(this.zr&&t&&t.length>0){e&&this.zr.modLayer(h.EFFECT_ZLEVEL,{motionBlur:!1}),this.zr.delShape(t);for(var i=0;i<t.length;i++)t[i].effectAnimator&&t[i].effectAnimator.stop()}this.effectList=[]},addMark:function(e,t,i){var n=this.series[e];if(this.selectedMap[n.name]){var a=this.query(this.option,"animationDurationUpdate"),o=this.query(this.option,"animationEasing"),r=n[i].data,s=this.shapeList.length;if(n[i].data=t.data,this["_build"+i.replace("m","M")](e),this.option.animation&&!this.option.renderAsImage)this.animationMark(a,o,this.shapeList.slice(s));else{for(var l=s,h=this.shapeList.length;h>l;l++)this.zr.addShape(this.shapeList[l]);this.zr.refreshNextFrame()}n[i].data=r}},delMark:function(e,t,i){i=i.replace("mark","").replace("large","").toLowerCase();var n=this.series[e];if(this.selectedMap[n.name]){for(var a=!1,o=[this.shapeList,this.effectList],r=2;r--;)for(var s=0,l=o[r].length;l>s;s++)if(o[r][s]._mark==i&&m.get(o[r][s],"seriesIndex")==e&&m.get(o[r][s],"name")==t){this.zr.delShape(o[r][s].id),o[r].splice(s,1),a=!0;break}a&&this.zr.refreshNextFrame()}}},u.inherits(i,p),i}),i("zrender/shape/Circle",["require","./Base","../tool/util"],function(e){"use strict";var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"circle",buildPath:function(e,t){e.moveTo(t.x+t.r,t.y),e.arc(t.x,t.y,t.r,0,2*Math.PI,!0)},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/util/accMath",[],function(){function e(e,t){var i=e.toString(),n=t.toString(),a=0;try{a=n.split(".")[1].length}catch(o){}try{a-=i.split(".")[1].length}catch(o){}return(i.replace(".","")-0)/(n.replace(".","")-0)*Math.pow(10,a)}function t(e,t){var i=e.toString(),n=t.toString(),a=0;try{a+=i.split(".")[1].length}catch(o){}try{a+=n.split(".")[1].length}catch(o){}return(i.replace(".","")-0)*(n.replace(".","")-0)/Math.pow(10,a)}function i(e,t){var i=0,n=0;try{i=e.toString().split(".")[1].length}catch(a){}try{n=t.toString().split(".")[1].length}catch(a){}var o=Math.pow(10,Math.max(i,n));return(Math.round(e*o)+Math.round(t*o))/o}function n(e,t){return i(e,-t)}return{accDiv:e,accMul:t,accAdd:i,accSub:n}}),i("echarts/util/shape/Icon",["require","zrender/tool/util","zrender/shape/Star","zrender/shape/Heart","zrender/shape/Droplet","zrender/shape/Image","zrender/shape/Base"],function(e){function t(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+t.height),e.lineTo(i+5*a,n+14*o),e.lineTo(i+t.width,n+3*o),e.lineTo(i+13*a,n),e.lineTo(i+2*a,n+11*o),e.lineTo(i,n+t.height),e.moveTo(i+6*a,n+10*o),e.lineTo(i+14*a,n+2*o),e.moveTo(i+10*a,n+13*o),e.lineTo(i+t.width,n+13*o),e.moveTo(i+13*a,n+10*o),e.lineTo(i+13*a,n+t.height)}function i(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+t.height),e.lineTo(i+5*a,n+14*o),e.lineTo(i+t.width,n+3*o),e.lineTo(i+13*a,n),e.lineTo(i+2*a,n+11*o),e.lineTo(i,n+t.height),e.moveTo(i+6*a,n+10*o),e.lineTo(i+14*a,n+2*o),e.moveTo(i+10*a,n+13*o),e.lineTo(i+t.width,n+13*o)}function n(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i+4*a,n+15*o),e.lineTo(i+9*a,n+13*o),e.lineTo(i+14*a,n+8*o),e.lineTo(i+11*a,n+5*o),e.lineTo(i+6*a,n+10*o),e.lineTo(i+4*a,n+15*o),e.moveTo(i+5*a,n),e.lineTo(i+11*a,n),e.moveTo(i+5*a,n+o),e.lineTo(i+11*a,n+o),e.moveTo(i,n+2*o),e.lineTo(i+t.width,n+2*o),e.moveTo(i,n+5*o),e.lineTo(i+3*a,n+t.height),e.lineTo(i+13*a,n+t.height),e.lineTo(i+t.width,n+5*o)}function a(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n+3*o),e.lineTo(i+6*a,n+3*o),e.moveTo(i+3*a,n),e.lineTo(i+3*a,n+6*o),e.moveTo(i+3*a,n+8*o),e.lineTo(i+3*a,n+t.height),e.lineTo(i+t.width,n+t.height),e.lineTo(i+t.width,n+3*o),e.lineTo(i+8*a,n+3*o)}function o(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i+6*a,n),e.lineTo(i+2*a,n+3*o),e.lineTo(i+6*a,n+6*o),e.moveTo(i+2*a,n+3*o),e.lineTo(i+14*a,n+3*o),e.lineTo(i+14*a,n+11*o),e.moveTo(i+2*a,n+5*o),e.lineTo(i+2*a,n+13*o),e.lineTo(i+14*a,n+13*o),e.moveTo(i+10*a,n+10*o),e.lineTo(i+14*a,n+13*o),e.lineTo(i+10*a,n+t.height)}function r(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16,r=t.width/2;e.lineWidth=1.5,e.arc(i+r,n+r,r-a,0,2*Math.PI/3),e.moveTo(i+3*a,n+t.height),e.lineTo(i+0*a,n+12*o),e.lineTo(i+5*a,n+11*o),e.moveTo(i,n+8*o),e.arc(i+r,n+r,r-a,Math.PI,5*Math.PI/3),e.moveTo(i+13*a,n),e.lineTo(i+t.width,n+4*o),e.lineTo(i+11*a,n+5*o)}function s(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.moveTo(i+2*a,n+14*o),e.lineTo(i+7*a,n+6*o),e.lineTo(i+11*a,n+11*o),e.lineTo(i+15*a,n+2*o)}function l(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.moveTo(i+3*a,n+14*o),e.lineTo(i+3*a,n+6*o),e.lineTo(i+4*a,n+6*o),e.lineTo(i+4*a,n+14*o),e.moveTo(i+7*a,n+14*o),e.lineTo(i+7*a,n+2*o),e.lineTo(i+8*a,n+2*o),e.lineTo(i+8*a,n+14*o),e.moveTo(i+11*a,n+14*o),e.lineTo(i+11*a,n+9*o),e.lineTo(i+12*a,n+9*o),e.lineTo(i+12*a,n+14*o)}function h(e,t){var i=t.x,n=t.y,a=t.width-2,o=t.height-2,r=Math.min(a,o)/2;n+=2,e.moveTo(i+r+3,n+r-3),e.arc(i+r+3,n+r-3,r-1,0,-Math.PI/2,!0),e.lineTo(i+r+3,n+r-3),e.moveTo(i+r,n),e.lineTo(i+r,n+r),e.arc(i+r,n+r,r,-Math.PI/2,2*Math.PI,!0),e.lineTo(i+r,n+r),e.lineWidth=1.5}function m(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;n-=o,e.moveTo(i+1*a,n+2*o),e.lineTo(i+15*a,n+2*o),e.lineTo(i+14*a,n+3*o),e.lineTo(i+2*a,n+3*o),e.moveTo(i+3*a,n+6*o),e.lineTo(i+13*a,n+6*o),e.lineTo(i+12*a,n+7*o),e.lineTo(i+4*a,n+7*o),e.moveTo(i+5*a,n+10*o),e.lineTo(i+11*a,n+10*o),e.lineTo(i+10*a,n+11*o),e.lineTo(i+6*a,n+11*o),e.moveTo(i+7*a,n+14*o),e.lineTo(i+9*a,n+14*o),e.lineTo(i+8*a,n+15*o),e.lineTo(i+7*a,n+15*o)}function V(e,t){var i=t.x,n=t.y,a=t.width,o=t.height,r=a/16,s=o/16,l=2*Math.min(r,s);e.moveTo(i+r+l,n+s+l),e.arc(i+r,n+s,l,Math.PI/4,3*Math.PI),e.lineTo(i+7*r-l,n+6*s-l),e.arc(i+7*r,n+6*s,l,Math.PI/4*5,4*Math.PI),e.arc(i+7*r,n+6*s,l/2,Math.PI/4*5,4*Math.PI),e.moveTo(i+7*r-l/2,n+6*s+l),e.lineTo(i+r+l,n+14*s-l),e.arc(i+r,n+14*s,l,-Math.PI/4,2*Math.PI),e.moveTo(i+7*r+l/2,n+6*s),e.lineTo(i+14*r-l,n+10*s-l/2),e.moveTo(i+16*r,n+10*s),e.arc(i+14*r,n+10*s,l,0,3*Math.PI),e.lineWidth=1.5}function U(e,t){var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.min(a,o)/2;e.moveTo(i+a,n+o/2),e.arc(i+r,n+r,r,0,2*Math.PI),e.arc(i+r,n,r,Math.PI/4,Math.PI/5*4),e.arc(i,n+r,r,-Math.PI/3,Math.PI/3),e.arc(i+a,n+o,r,Math.PI,Math.PI/2*3),e.lineWidth=1.5}function d(e,t){for(var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.round(o/3),s=Math.round((r-2)/2),l=3;l--;)e.rect(i,n+r*l+s,a,2)}function p(e,t){for(var i=t.x,n=t.y,a=t.width,o=t.height,r=Math.round(a/3),s=Math.round((r-2)/2),l=3;l--;)e.rect(i+r*l+s,n,2,o)}function c(e,t){var i=t.x,n=t.y,a=t.width/16;e.moveTo(i+a,n),e.lineTo(i+a,n+t.height),e.lineTo(i+15*a,n+t.height),e.lineTo(i+15*a,n),e.lineTo(i+a,n),e.moveTo(i+3*a,n+3*a),e.lineTo(i+13*a,n+3*a),e.moveTo(i+3*a,n+6*a),e.lineTo(i+13*a,n+6*a),e.moveTo(i+3*a,n+9*a),e.lineTo(i+13*a,n+9*a),e.moveTo(i+3*a,n+12*a),e.lineTo(i+9*a,n+12*a)}function u(e,t){var i=t.x,n=t.y,a=t.width/16,o=t.height/16;e.moveTo(i,n),e.lineTo(i,n+t.height),e.lineTo(i+t.width,n+t.height),e.lineTo(i+t.width,n),e.lineTo(i,n),e.moveTo(i+4*a,n),e.lineTo(i+4*a,n+8*o),e.lineTo(i+12*a,n+8*o),e.lineTo(i+12*a,n),e.moveTo(i+6*a,n+11*o),e.lineTo(i+6*a,n+13*o),e.lineTo(i+10*a,n+13*o),e.lineTo(i+10*a,n+11*o),e.lineTo(i+6*a,n+11*o)}function y(e,t){var i=t.x,n=t.y,a=t.width,o=t.height;e.moveTo(i,n+o/2),e.lineTo(i+a,n+o/2),e.moveTo(i+a/2,n),e.lineTo(i+a/2,n+o)}function g(e,t){var i=t.width/2,n=t.height/2,a=Math.min(i,n);e.moveTo(t.x+i+a,t.y+n),e.arc(t.x+i,t.y+n,a,0,2*Math.PI),e.closePath()}function b(e,t){e.rect(t.x,t.y,t.width,t.height),e.closePath()}function f(e,t){var i=t.width/2,n=t.height/2,a=t.x+i,o=t.y+n,r=Math.min(i,n);e.moveTo(a,o-r),e.lineTo(a+r,o+r),e.lineTo(a-r,o+r),e.lineTo(a,o-r),e.closePath()}function k(e,t){var i=t.width/2,n=t.height/2,a=t.x+i,o=t.y+n,r=Math.min(i,n);e.moveTo(a,o-r),e.lineTo(a+r,o),e.lineTo(a,o+r),e.lineTo(a-r,o),e.lineTo(a,o-r),e.closePath()}function x(e,t){var i=t.x,n=t.y,a=t.width/16;e.moveTo(i+8*a,n),e.lineTo(i+a,n+t.height),e.lineTo(i+8*a,n+t.height/4*3),e.lineTo(i+15*a,n+t.height),e.lineTo(i+8*a,n),e.closePath()}function _(t,i){var n=e("zrender/shape/Star"),a=i.width/2,o=i.height/2;n.prototype.buildPath(t,{x:i.x+a,y:i.y+o,r:Math.min(a,o),n:i.n||5})}function L(t,i){var n=e("zrender/shape/Heart");n.prototype.buildPath(t,{x:i.x+i.width/2,y:i.y+.2*i.height,a:i.width/2,b:.8*i.height})}function W(t,i){var n=e("zrender/shape/Droplet");n.prototype.buildPath(t,{x:i.x+.5*i.width,y:i.y+.5*i.height,a:.5*i.width,b:.8*i.height})}function X(e,t){var i=t.x,n=t.y-t.height/2*1.5,a=t.width/2,o=t.height/2,r=Math.min(a,o);e.arc(i+a,n+o,r,Math.PI/5*4,Math.PI/5),e.lineTo(i+a,n+o+1.5*r),e.closePath()}function v(t,i,n){var a=e("zrender/shape/Image");this._imageShape=this._imageShape||new a({style:{}});for(var o in i)this._imageShape.style[o]=i[o];this._imageShape.brush(t,!1,n)}function w(e){I.call(this,e)}var K=e("zrender/tool/util"),I=e("zrender/shape/Base");return w.prototype={type:"icon",iconLibrary:{mark:t,markUndo:i,markClear:n,dataZoom:a,dataZoomReset:o,restore:r,lineChart:s,barChart:l,pieChart:h,funnelChart:m,forceChart:V,chordChart:U,stackChart:d,tiledChart:p,dataView:c,saveAsImage:u,cross:y,circle:g,rectangle:b,triangle:f,diamond:k,arrow:x,star:_,heart:L,droplet:W,pin:X,image:v},brush:function(t,i,n){var a=i?this.highlightStyle:this.style;a=a||{};var o=a.iconType||this.style.iconType;if("image"===o){var r=e("zrender/shape/Image");r.prototype.brush.call(this,t,i,n)}else{var a=this.beforeBrush(t,i);switch(t.beginPath(),this.buildPath(t,a,n),a.brushType){case"both":t.fill();case"stroke":a.lineWidth>0&&t.stroke();break;default:t.fill()}this.drawText(t,a,this.style),this.afterBrush(t)}},buildPath:function(e,t,i){this.iconLibrary[t.iconType]?this.iconLibrary[t.iconType].call(this,e,t,i):(e.moveTo(t.x,t.y),e.lineTo(t.x+t.width,t.y),e.lineTo(t.x+t.width,t.y+t.height),e.lineTo(t.x,t.y+t.height),e.lineTo(t.x,t.y),e.closePath())},getRect:function(e){return e.__rect?e.__rect:(e.__rect={x:Math.round(e.x),y:Math.round(e.y-("pin"==e.iconType?e.height/2*1.5:0)),width:e.width,height:e.height*("pin"===e.iconType?1.25:1)},e.__rect)},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);e=i[0],t=i[1];var n=this.style.__rect;n||(n=this.style.__rect=this.getRect(this.style));var a=n.height<8||n.width<8?4:0;return e>=n.x-a&&e<=n.x+n.width+a&&t>=n.y-a&&t<=n.y+n.height+a}},K.inherits(w,I),w}),i("echarts/util/shape/MarkLine",["require","zrender/shape/Base","./Icon","zrender/shape/Line","zrender/shape/BezierCurve","zrender/tool/area","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/curve"],function(e){function t(e){i.call(this,e),this.style.curveness>0&&this.updatePoints(this.style),this.highlightStyle.curveness>0&&this.updatePoints(this.highlightStyle)}var i=e("zrender/shape/Base"),n=e("./Icon"),a=e("zrender/shape/Line"),o=new a({}),r=e("zrender/shape/BezierCurve"),s=new r({}),l=e("zrender/tool/area"),h=e("zrender/shape/util/dashedLineTo"),m=e("zrender/tool/util"),V=e("zrender/tool/curve");return t.prototype={type:"mark-line",brush:function(e,t){var i=this.style;t&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),e.save(),this.setContext(e,i),this.setTransform(e),e.save(),e.beginPath(),this.buildPath(e,i),e.stroke(),e.restore(),this.brushSymbol(e,i,0),this.brushSymbol(e,i,1),this.drawText(e,i,this.style),e.restore()},buildPath:function(e,t){var i=t.lineType||"solid";if(e.moveTo(t.xStart,t.yStart),t.curveness>0){var n=null;switch(i){case"dashed":n=[5,5];break;case"dotted":n=[1,1]}n&&e.setLineDash&&e.setLineDash(n),e.quadraticCurveTo(t.cpX1,t.cpY1,t.xEnd,t.yEnd)}else if("solid"==i)e.lineTo(t.xEnd,t.yEnd);else{var a=(t.lineWidth||1)*("dashed"==t.lineType?5:1);h(e,t.xStart,t.yStart,t.xEnd,t.yEnd,a)}},updatePoints:function(e){var t=e.curveness||0,i=1,n=e.xStart,a=e.yStart,o=e.xEnd,r=e.yEnd,s=(n+o)/2-i*(a-r)*t,l=(a+r)/2-i*(o-n)*t;e.cpX1=s,e.cpY1=l},brushSymbol:function(e,t,i){if("none"!=t.symbol[i]){e.save(),e.beginPath(),e.lineWidth=t.symbolBorder,e.strokeStyle=t.symbolBorderColor;var a=t.symbol[i].replace("empty","").toLowerCase();t.symbol[i].match("empty")&&(e.fillStyle="#fff");var o=t.xStart,r=t.yStart,s=t.xEnd,l=t.yEnd,h=0===i?o:s,m=0===i?r:l,U=t.curveness||0,d=null!=t.symbolRotate[i]?t.symbolRotate[i]-0:0;if(d=d/180*Math.PI,"arrow"==a&&0===d)if(0===U){var p=0===i?-1:1;d=Math.PI/2+Math.atan2(p*(l-r),p*(s-o))}else{var c=t.cpX1,u=t.cpY1,y=V.quadraticDerivativeAt,g=y(o,c,s,i),b=y(r,u,l,i);d=Math.PI/2+Math.atan2(b,g)}e.translate(h,m),0!==d&&e.rotate(d);var f=t.symbolSize[i];n.prototype.buildPath(e,{x:-f,y:-f,width:2*f,height:2*f,iconType:a}),e.closePath(),e.fill(),e.stroke(),e.restore()}},getRect:function(e){return e.curveness>0?s.getRect(e):o.getRect(e),e.__rect},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?this.style.curveness>0?l.isInside(s,this.style,e,t):l.isInside(o,this.style,e,t):!1}},m.inherits(t,i),t}),i("echarts/util/shape/Symbol",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Polygon"),a=new n({}),o=e("zrender/tool/util");return t.prototype={type:"symbol",buildPath:function(e,t){var i=t.pointList,n=i.length;if(0!==n)for(var a,o,r,s,l,h=1e4,m=Math.ceil(n/h),V=i[0]instanceof Array,U=t.size?t.size:2,d=U,p=U/2,c=2*Math.PI,u=0;m>u;u++){e.beginPath(),a=u*h,o=a+h,o=o>n?n:o;for(var y=a;o>y;y++)if(t.random&&(r=t["randomMap"+y%20]/100,d=U*r*r,p=d/2),V?(s=i[y][0],l=i[y][1]):(s=i[y].x,l=i[y].y),3>d)e.rect(s-p,l-p,d,d);else switch(t.iconType){case"circle":e.moveTo(s,l),e.arc(s,l,p,0,c,!0);break;case"diamond":e.moveTo(s,l-p),e.lineTo(s+p/3,l-p/3),e.lineTo(s+p,l),e.lineTo(s+p/3,l+p/3),e.lineTo(s,l+p),e.lineTo(s-p/3,l+p/3),e.lineTo(s-p,l),e.lineTo(s-p/3,l-p/3),e.lineTo(s,l-p);break;default:e.rect(s-p,l-p,d,d)}if(e.closePath(),m-1>u)switch(t.brushType){case"both":e.fill(),t.lineWidth>0&&e.stroke();break;case"stroke":t.lineWidth>0&&e.stroke();break;default:e.fill()}}},getRect:function(e){return e.__rect||a.getRect(e)},isCover:e("./normalIsCover")},o.inherits(t,i),t}),i("zrender/shape/Polyline",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","./Polygon","../tool/util"],function(e){var t=e("./Base"),i=e("./util/smoothSpline"),n=e("./util/smoothBezier"),a=e("./util/dashedLineTo"),o=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return o.prototype={type:"polyline",buildPath:function(e,t){var n=t.pointList;if(!(n.length<2)){var o=Math.min(t.pointList.length,Math.round(t.pointListLength||t.pointList.length));if(t.smooth&&"spline"!==t.smooth){t.controlPointList||this.updateControlPoints(t);var r=t.controlPointList;e.moveTo(n[0][0],n[0][1]);for(var s,l,h,m=0;o-1>m;m++)s=r[2*m],l=r[2*m+1],h=n[m+1],e.bezierCurveTo(s[0],s[1],l[0],l[1],h[0],h[1])}else if("spline"===t.smooth&&(n=i(n),o=n.length),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var V=(t.lineWidth||1)*("dashed"==t.lineType?5:1);e.moveTo(n[0][0],n[0][1]);for(var m=1;o>m;m++)a(e,n[m-1][0],n[m-1][1],n[m][0],n[m][1],V)}}else{e.moveTo(n[0][0],n[0][1]);for(var m=1;o>m;m++)e.lineTo(n[m][0],n[m][1])}}},updateControlPoints:function(e){e.controlPointList=n(e.pointList,e.smooth,!1,e.smoothConstraint)},getRect:function(t){return e("./Polygon").prototype.getRect(t)}},e("../tool/util").inherits(o,t),o}),i("zrender/shape/ShapeBundle",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={constructor:i,type:"shape-bundle",brush:function(e,t){var i=this.beforeBrush(e,t);e.beginPath();for(var n=0;n<i.shapeList.length;n++){var a=i.shapeList[n],o=a.style;t&&(o=a.getHighlightStyle(o,a.highlightStyle||{},a.brushTypeOnly)),a.buildPath(e,o)}switch(i.brushType){case"both":e.fill();case"stroke":i.lineWidth>0&&e.stroke();break;default:e.fill()}this.drawText(e,i,this.style),this.afterBrush(e)},getRect:function(e){if(e.__rect)return e.__rect;for(var t=1/0,i=-(1/0),n=1/0,a=-(1/0),o=0;o<e.shapeList.length;o++)var r=e.shapeList[o],s=r.getRect(r.style),t=Math.min(s.x,t),n=Math.min(s.y,n),i=Math.max(s.x+s.width,i),a=Math.max(s.y+s.height,a);return e.__rect={x:t,y:n,width:i-t,height:a-n},e.__rect},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);if(e=i[0],t=i[1],this.isCoverRect(e,t))for(var n=0;n<this.style.shapeList.length;n++){var a=this.style.shapeList[n];if(a.isCover(e,t))return!0}return!1}},e("../tool/util").inherits(i,t),i}),i("echarts/util/ecAnimation",["require","zrender/tool/util","zrender/tool/curve","zrender/shape/Polygon"],function(e){function t(e,t,i,n,a){var o,r=i.style.pointList,s=r.length;if(!t){if(o=[],"vertical"!=i._orient)for(var l=r[0][1],h=0;s>h;h++)o[h]=[r[h][0],l];else for(var m=r[0][0],h=0;s>h;h++)o[h]=[m,r[h][1]];"half-smooth-polygon"==i.type&&(o[s-1]=p.clone(r[s-1]),o[s-2]=p.clone(r[s-2])),t={style:{pointList:o}}}o=t.style.pointList;var V=o.length;i.style.pointList=V==s?o:s>V?o.concat(r.slice(V)):o.slice(0,s),e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{pointList:r}).during(function(){i.updateControlPoints&&i.updateControlPoints(i.style)}).done(function(){i.__animating=!1}).start(a)}function i(e,t){for(var i=arguments.length,n=2;i>n;n++){var a=arguments[n];e.style[a]=t.style[a]}}function n(e,t,n,a,o){var r=n.style;t||(t={position:n.position,style:{x:r.x,y:"vertical"==n._orient?r.y+r.height:r.y,width:"vertical"==n._orient?r.width:0,height:"vertical"!=n._orient?r.height:0}});var s=r.x,l=r.y,h=r.width,m=r.height,V=[n.position[0],n.position[1]];i(n,t,"x","y","width","height"),n.position=t.position,e.addShape(n),(V[0]!=t.position[0]||V[1]!=t.position[1])&&e.animate(n.id,"").when(a,{position:V}).start(o),n.__animating=!0,e.animate(n.id,"style").when(a,{x:s,y:l,width:h,height:m}).done(function(){n.__animating=!1}).start(o)}function a(e,t,i,n,a){if(!t){var o=i.style.y;t={style:{y:[o[0],o[0],o[0],o[0]]}}}var r=i.style.y;i.style.y=t.style.y,e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{y:r}).done(function(){i.__animating=!1}).start(a)}function o(e,t,i,n,a){var o=i.style.x,r=i.style.y,s=i.style.r0,l=i.style.r;i.__animating=!0,"r"!=i._animationAdd?(i.style.r0=0,i.style.r=0,i.rotation=[2*Math.PI,o,r],e.addShape(i),e.animate(i.id,"style").when(n,{r0:s,r:l}).done(function(){i.__animating=!1}).start(a),e.animate(i.id,"").when(n,{rotation:[0,o,r]}).start(a)):(i.style.r0=i.style.r,e.addShape(i),e.animate(i.id,"style").when(n,{r0:s}).done(function(){i.__animating=!1}).start(a))}function r(e,t,n,a,o){t||(t="r"!=n._animationAdd?{
-style:{startAngle:n.style.startAngle,endAngle:n.style.startAngle}}:{style:{r0:n.style.r}});var r=n.style.startAngle,s=n.style.endAngle;i(n,t,"startAngle","endAngle"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{startAngle:r,endAngle:s}).done(function(){n.__animating=!1}).start(o)}function s(e,t,n,a,o){t||(t={style:{x:"left"==n.style.textAlign?n.style.x+100:n.style.x-100,y:n.style.y}});var r=n.style.x,s=n.style.y;i(n,t,"x","y"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{x:r,y:s}).done(function(){n.__animating=!1}).start(o)}function l(t,i,n,a,o){var r=e("zrender/shape/Polygon").prototype.getRect(n.style),s=r.x+r.width/2,l=r.y+r.height/2;n.scale=[.1,.1,s,l],t.addShape(n),n.__animating=!0,t.animate(n.id,"").when(a,{scale:[1,1,s,l]}).done(function(){n.__animating=!1}).start(o)}function h(e,t,n,a,o){t||(t={style:{source0:0,source1:n.style.source1>0?360:-360,target0:0,target1:n.style.target1>0?360:-360}});var r=n.style.source0,s=n.style.source1,l=n.style.target0,h=n.style.target1;t.style&&i(n,t,"source0","source1","target0","target1"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{source0:r,source1:s,target0:l,target1:h}).done(function(){n.__animating=!1}).start(o)}function m(e,t,i,n,a){t||(t={style:{angle:i.style.startAngle}});var o=i.style.angle;i.style.angle=t.style.angle,e.addShape(i),i.__animating=!0,e.animate(i.id,"style").when(n,{angle:o}).done(function(){i.__animating=!1}).start(a)}function V(e,t,i,a,o,r){if(i.style._x=i.style.x,i.style._y=i.style.y,i.style._width=i.style.width,i.style._height=i.style.height,t)n(e,t,i,a,o);else{var s=i._x||0,l=i._y||0;i.scale=[.01,.01,s,l],e.addShape(i),i.__animating=!0,e.animate(i.id,"").delay(r).when(a,{scale:[1,1,s,l]}).done(function(){i.__animating=!1}).start(o||"QuinticOut")}}function U(e,t,n,a,o){t||(t={style:{xStart:n.style.xStart,yStart:n.style.yStart,xEnd:n.style.xStart,yEnd:n.style.yStart}});var r=n.style.xStart,s=n.style.xEnd,l=n.style.yStart,h=n.style.yEnd;i(n,t,"xStart","xEnd","yStart","yEnd"),e.addShape(n),n.__animating=!0,e.animate(n.id,"style").when(a,{xStart:r,xEnd:s,yStart:l,yEnd:h}).done(function(){n.__animating=!1}).start(o)}function d(e,t,i,n,a){a=a||"QuinticOut",i.__animating=!0,e.addShape(i);var o=i.style,r=function(){i.__animating=!1},s=o.xStart,l=o.yStart,h=o.xEnd,m=o.yEnd;if(o.curveness>0){i.updatePoints(o);var V={p:0},U=o.cpX1,d=o.cpY1,p=[],u=[],y=c.quadraticSubdivide;e.animation.animate(V).when(n,{p:1}).during(function(){y(s,U,h,V.p,p),y(l,d,m,V.p,u),o.cpX1=p[1],o.cpY1=u[1],o.xEnd=p[2],o.yEnd=u[2],e.modShape(i)}).done(r).start(a)}else e.animate(i.id,"style").when(0,{xEnd:s,yEnd:l}).when(n,{xEnd:h,yEnd:m}).done(r).start(a)}var p=e("zrender/tool/util"),c=e("zrender/tool/curve");return{pointList:t,rectangle:n,candle:a,ring:o,sector:r,text:s,polygon:l,ribbon:h,gaugePointer:m,icon:V,line:U,markline:d}}),i("echarts/util/ecEffect",["require","../util/ecData","zrender/shape/Circle","zrender/shape/Image","zrender/tool/curve","../util/shape/Icon","../util/shape/Symbol","zrender/shape/ShapeBundle","zrender/shape/Polyline","zrender/tool/vector","zrender/tool/env"],function(e){function t(e,t,i,n){var a,r=i.effect,l=r.color||i.style.strokeColor||i.style.color,m=r.shadowColor||l,V=r.scaleSize,U=r.bounceDistance,d="undefined"!=typeof r.shadowBlur?r.shadowBlur:V;"image"!==i.type?(a=new h({zlevel:n,style:{brushType:"stroke",iconType:"droplet"!=i.style.iconType?i.style.iconType:"circle",x:d+1,y:d+1,n:i.style.n,width:i.style._width*V,height:i.style._height*V,lineWidth:1,strokeColor:l,shadowColor:m,shadowBlur:d},draggable:!1,hoverable:!1}),"pin"==i.style.iconType&&(a.style.y+=a.style.height/2*1.5),p&&(a.style.image=e.shapeToImage(a,a.style.width+2*d+2,a.style.height+2*d+2).style.image,a=new s({zlevel:a.zlevel,style:a.style,draggable:!1,hoverable:!1}))):a=new s({zlevel:n,style:i.style,draggable:!1,hoverable:!1}),o.clone(i,a),a.position=i.position,t.push(a),e.addShape(a);var c="image"!==i.type?window.devicePixelRatio||1:1,u=(a.style.width/c-i.style._width)/2;a.style.x=i.style._x-u,a.style.y=i.style._y-u,"pin"==i.style.iconType&&(a.style.y-=i.style.height/2*1.5);var y=100*(r.period+10*Math.random());e.modShape(i.id,{invisible:!0});var g=a.style.x+a.style.width/2/c,b=a.style.y+a.style.height/2/c;"scale"===r.type?(e.modShape(a.id,{scale:[.1,.1,g,b]}),e.animate(a.id,"",r.loop).when(y,{scale:[1,1,g,b]}).done(function(){i.effect.show=!1,e.delShape(a.id)}).start()):e.animate(a.id,"style",r.loop).when(y,{y:a.style.y-U}).when(2*y,{y:a.style.y}).done(function(){i.effect.show=!1,e.delShape(a.id)}).start()}function i(e,t,i,n){var a=i.effect,o=a.color||i.style.strokeColor||i.style.color,r=a.scaleSize,s=a.shadowColor||o,l="undefined"!=typeof a.shadowBlur?a.shadowBlur:2*r,h=window.devicePixelRatio||1,V=new m({zlevel:n,position:i.position,scale:i.scale,style:{pointList:i.style.pointList,iconType:i.style.iconType,color:o,strokeColor:o,shadowColor:s,shadowBlur:l*h,random:!0,brushType:"fill",lineWidth:1,size:i.style.size},draggable:!1,hoverable:!1});t.push(V),e.addShape(V),e.modShape(i.id,{invisible:!0});for(var U=Math.round(100*a.period),d={},p={},c=0;20>c;c++)V.style["randomMap"+c]=0,d={},d["randomMap"+c]=100,p={},p["randomMap"+c]=0,V.style["randomMap"+c]=100*Math.random(),e.animate(V.id,"style",!0).when(U,d).when(2*U,p).when(3*U,d).when(4*U,d).delay(Math.random()*U*c).start()}function n(e,t,i,n,a){var s=i.effect,h=i.style,m=s.color||h.strokeColor||h.color,V=s.shadowColor||h.strokeColor||m,c=h.lineWidth*s.scaleSize,u="undefined"!=typeof s.shadowBlur?s.shadowBlur:c,y=new r({zlevel:n,style:{x:u,y:u,r:c,color:m,shadowColor:V,shadowBlur:u},hoverable:!1}),g=0;if(p&&!a){var n=y.zlevel;y=e.shapeToImage(y,2*(c+u),2*(c+u)),y.zlevel=n,y.hoverable=!1,g=u}a||(o.clone(i,y),y.position=i.position,t.push(y),e.addShape(y));var b=function(){a||(i.effect.show=!1,e.delShape(y.id)),y.effectAnimator=null};if(i instanceof U){for(var f=[0],k=0,x=h.pointList,_=h.controlPointList,L=1;L<x.length;L++){if(_){var W=_[2*(L-1)],X=_[2*(L-1)+1];k+=d.dist(x[L-1],W)+d.dist(W,X)+d.dist(X,x[L])}else k+=d.dist(x[L-1],x[L]);f.push(k)}for(var v={p:0},w=e.animation.animate(v,{loop:s.loop}),L=0;L<f.length;L++)w.when(f[L]*s.period,{p:L});w.during(function(){var t,i,n=Math.floor(v.p);if(n==x.length-1)t=x[n][0],i=x[n][1];else{var o=v.p-n,r=x[n],s=x[n+1];if(_){var h=_[2*n],m=_[2*n+1];t=l.cubicAt(r[0],h[0],m[0],s[0],o),i=l.cubicAt(r[1],h[1],m[1],s[1],o)}else t=(s[0]-r[0])*o+r[0],i=(s[1]-r[1])*o+r[1]}y.style.x=t,y.style.y=i,a||e.modShape(y)}).done(b).start(),w.duration=k*s.period,y.effectAnimator=w}else{var K=h.xStart-g,I=h.yStart-g,J=h.xEnd-g,C=h.yEnd-g;y.style.x=K,y.style.y=I;var S=(J-K)*(J-K)+(C-I)*(C-I),E=Math.round(Math.sqrt(Math.round(S*s.period*s.period)));if(i.style.curveness>0){var F=h.cpX1-g,T=h.cpY1-g;y.effectAnimator=e.animation.animate(y,{loop:s.loop}).when(E,{p:1}).during(function(t,i){y.style.x=l.quadraticAt(K,F,J,i),y.style.y=l.quadraticAt(I,T,C,i),a||e.modShape(y)}).done(b).start()}else y.effectAnimator=e.animation.animate(y.style,{loop:s.loop}).when(E,{x:J,y:C}).during(function(){a||e.modShape(y)}).done(b).start();y.effectAnimator.duration=E}return y}function a(e,t,i,a){var o=new V({style:{shapeList:[]},zlevel:a,hoverable:!1}),r=i.style.shapeList,s=i.effect;o.position=i.position;for(var l=0,h=[],m=0;m<r.length;m++){r[m].effect=s;var U=n(e,null,r[m],a,!0),d=U.effectAnimator;o.style.shapeList.push(U),d.duration>l&&(l=d.duration),0===m&&(o.style.color=U.style.color,o.style.shadowBlur=U.style.shadowBlur,o.style.shadowColor=U.style.shadowColor),h.push(d)}t.push(o),e.addShape(o);var p=function(){for(var e=0;e<h.length;e++)h[e].stop()};if(l){o.__dummy=0;var c=e.animate(o.id,"",s.loop).when(l,{__dummy:1}).during(function(){e.modShape(o)}).done(function(){i.effect.show=!1,e.delShape(o.id)}).start(),u=c.stop;c.stop=function(){p(),u.call(this)}}}var o=e("../util/ecData"),r=e("zrender/shape/Circle"),s=e("zrender/shape/Image"),l=e("zrender/tool/curve"),h=e("../util/shape/Icon"),m=e("../util/shape/Symbol"),V=e("zrender/shape/ShapeBundle"),U=e("zrender/shape/Polyline"),d=e("zrender/tool/vector"),p=e("zrender/tool/env").canvasSupported;return{point:t,largePoint:i,line:n,largeLine:a}}),i("echarts/component/base",["require","../config","../util/ecData","../util/ecQuery","../util/number","zrender/tool/util","zrender/tool/env"],function(e){function t(e,t,a,o,r){this.ecTheme=e,this.messageCenter=t,this.zr=a,this.option=o,this.series=o.series,this.myChart=r,this.component=r.component,this.shapeList=[],this.effectList=[];var s=this;s._onlegendhoverlink=function(e){if(s.legendHoverLink)for(var t,a=e.target,o=s.shapeList.length-1;o>=0;o--)t=s.type==i.CHART_TYPE_PIE||s.type==i.CHART_TYPE_FUNNEL?n.get(s.shapeList[o],"name"):(n.get(s.shapeList[o],"series")||{}).name,t!=a||s.shapeList[o].invisible||s.shapeList[o].__animating||s.zr.addHoverShape(s.shapeList[o])},t&&t.bind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink)}var i=e("../config"),n=e("../util/ecData"),a=e("../util/ecQuery"),o=e("../util/number"),r=e("zrender/tool/util");return t.prototype={canvasSupported:e("zrender/tool/env").canvasSupported,_getZ:function(e){if(null!=this[e])return this[e];var t=this.ecTheme[this.type];return t&&null!=t[e]?t[e]:(t=i[this.type],t&&null!=t[e]?t[e]:0)},getZlevelBase:function(){return this._getZ("zlevel")},getZBase:function(){return this._getZ("z")},reformOption:function(e){return e=r.merge(r.merge(e||{},r.clone(this.ecTheme[this.type]||{})),r.clone(i[this.type]||{})),this.z=e.z,this.zlevel=e.zlevel,e},reformCssArray:function(e){if(!(e instanceof Array))return[e,e,e,e];switch(e.length+""){case"4":return e;case"3":return[e[0],e[1],e[2],e[1]];case"2":return[e[0],e[1],e[0],e[1]];case"1":return[e[0],e[0],e[0],e[0]];case"0":return[0,0,0,0]}},getShapeById:function(e){for(var t=0,i=this.shapeList.length;i>t;t++)if(this.shapeList[t].id===e)return this.shapeList[t];return null},getFont:function(e){var t=this.getTextStyle(r.clone(e));return t.fontStyle+" "+t.fontWeight+" "+t.fontSize+"px "+t.fontFamily},getTextStyle:function(e){return r.merge(r.merge(e||{},this.ecTheme.textStyle),i.textStyle)},getItemStyleColor:function(e,t,i,n){return"function"==typeof e?e.call(this.myChart,{seriesIndex:t,series:this.series[t],dataIndex:i,data:n}):e},getDataFromOption:function(e,t){return null!=e?null!=e.value?e.value:e:t},subPixelOptimize:function(e,t){return e=t%2===1?Math.floor(e)+.5:Math.round(e)},resize:function(){this.refresh&&this.refresh(),this.clearEffectShape&&this.clearEffectShape(!0);var e=this;setTimeout(function(){e.animationEffect&&e.animationEffect()},200)},clear:function(){this.clearEffectShape&&this.clearEffectShape(),this.zr&&this.zr.delShape(this.shapeList),this.shapeList=[]},dispose:function(){this.onbeforDispose&&this.onbeforDispose(),this.clear(),this.shapeList=null,this.effectList=null,this.messageCenter&&this.messageCenter.unbind(i.EVENT.LEGEND_HOVERLINK,this._onlegendhoverlink),this.onafterDispose&&this.onafterDispose()},query:a.query,deepQuery:a.deepQuery,deepMerge:a.deepMerge,parsePercent:o.parsePercent,parseCenter:o.parseCenter,parseRadius:o.parseRadius,numAddCommas:o.addCommas,getPrecision:o.getPrecision},t}),i("echarts/layout/EdgeBundling",["require","../data/KDTree","zrender/tool/vector"],function(e){function t(e,t){e=e.array,t=t.array;var i=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2],o=t[3]-e[3];return i*i+n*n+a*a+o*o}function i(e){this.points=[e.mp0,e.mp1],this.group=e}function n(e){var t=e.points;t[0][1]<t[1][1]||e instanceof i?(this.array=[t[0][0],t[0][1],t[1][0],t[1][1]],this._startPoint=t[0],this._endPoint=t[1]):(this.array=[t[1][0],t[1][1],t[0][0],t[0][1]],this._startPoint=t[1],this._endPoint=t[0]),this.ink=m(t[0],t[1]),this.edge=e,this.group=null}function a(){this.edgeList=[],this.mp0=l(),this.mp1=l(),this.ink=0}function o(){this.maxNearestEdge=6,this.maxTurningAngle=Math.PI/4,this.maxIteration=20}var r=e("../data/KDTree"),s=e("zrender/tool/vector"),l=s.create,h=s.distSquare,m=s.dist,V=s.copy,U=s.clone;return n.prototype.getStartPoint=function(){return this._startPoint},n.prototype.getEndPoint=function(){return this._endPoint},a.prototype.addEdge=function(e){e.group=this,this.edgeList.push(e)},a.prototype.removeEdge=function(e){e.group=null,this.edgeList.splice(this.edgeList.indexOf(e),1)},o.prototype={constructor:o,run:function(e){function t(e,t){return h(e,t)<1e-10}function n(e,i){for(var n=[],a=0,o=0;o<e.length;o++)a>0&&t(e[o],n[a-1])||(n[a++]=U(e[o]));return i[0]&&!t(n[0],i[0])&&(n=n.reverse()),n}for(var a=this._iterate(e),o=0;o++<this.maxIteration;){for(var r=[],s=0;s<a.groups.length;s++)r.push(new i(a.groups[s]));var l=this._iterate(r);if(l.savedInk<=0)break;a=l}var m=[],V=function(e,t){for(var a,o=0;o<e.length;o++){var r=e[o];if(r.edgeList[0]&&r.edgeList[0].edge instanceof i){for(var s=[],l=0;l<r.edgeList.length;l++)s.push(r.edgeList[l].edge.group);a=t?t.slice():[],a.unshift(r.mp0),a.push(r.mp1),V(s,a)}else for(var l=0;l<r.edgeList.length;l++){var h=r.edgeList[l];a=t?t.slice():[],a.unshift(r.mp0),a.push(r.mp1),a.unshift(h.getStartPoint()),a.push(h.getEndPoint()),m.push({points:n(a,h.edge.points),rawEdge:h.edge})}}};return V(a.groups),m},_iterate:function(e){for(var i=[],o=[],s=0,h=0;h<e.length;h++){var m=new n(e[h]);i.push(m)}for(var U=new r(i,4),d=[],p=l(),c=l(),u=0,y=l(),g=l(),b=0,h=0;h<i.length;h++){var m=i[h];if(!m.group){U.nearestN(m,this.maxNearestEdge,t,d);for(var f=0,k=null,x=null,_=0;_<d.length;_++){var L=d[_],W=0;L.group?L.group!==x&&(x=L.group,u=this._calculateGroupEdgeInk(L.group,m,p,c),W=L.group.ink+m.ink-u):(u=this._calculateEdgeEdgeInk(m,L,p,c),W=L.ink+m.ink-u),W>f&&(f=W,k=L,V(g,c),V(y,p),b=u)}if(k){s+=f;var X;k.group||(X=new a,o.push(X),X.addEdge(k)),X=k.group,V(X.mp0,y),V(X.mp1,g),X.ink=b,k.group.addEdge(m)}else{var X=new a;o.push(X),V(X.mp0,m.getStartPoint()),V(X.mp1,m.getEndPoint()),X.ink=m.ink,X.addEdge(m)}}}return{groups:o,edges:i,savedInk:s}},_calculateEdgeEdgeInk:function(){var e=[],t=[];return function(i,n,a,o){e[0]=i.getStartPoint(),e[1]=n.getStartPoint(),t[0]=i.getEndPoint(),t[1]=n.getEndPoint(),this._calculateMeetPoints(e,t,a,o);var r=m(e[0],a)+m(a,o)+m(o,t[0])+m(e[1],a)+m(o,t[1]);return r}}(),_calculateGroupEdgeInk:function(e,t,i,n){for(var a=[],o=[],r=0;r<e.edgeList.length;r++){var s=e.edgeList[r];a.push(s.getStartPoint()),o.push(s.getEndPoint())}a.push(t.getStartPoint()),o.push(t.getEndPoint()),this._calculateMeetPoints(a,o,i,n);for(var l=m(i,n),r=0;r<a.length;r++)l+=m(a[r],i)+m(o[r],n);return l},_calculateMeetPoints:function(){var e=l(),t=l();return function(i,n,a,o){s.set(e,0,0),s.set(t,0,0);for(var r=i.length,l=0;r>l;l++)s.add(e,e,i[l]);s.scale(e,e,1/r),r=n.length;for(var l=0;r>l;l++)s.add(t,t,n[l]);s.scale(t,t,1/r),this._limitTurningAngle(i,e,t,a),this._limitTurningAngle(n,t,e,o)}}(),_limitTurningAngle:function(){var e=l(),t=l(),i=l(),n=l();return function(a,o,r,l){var V=Math.cos(this.maxTurningAngle),U=Math.tan(this.maxTurningAngle);s.sub(e,o,r),s.normalize(e,e),s.copy(l,o);for(var d=0,p=0;p<a.length;p++){var c=a[p];s.sub(t,c,o);var u=s.len(t);s.scale(t,t,1/u);var y=s.dot(t,e);if(V>y){s.scaleAndAdd(i,o,e,u*y);var g=m(i,c),b=g/U;s.scaleAndAdd(n,i,e,-b);var f=h(n,o);f>d&&(d=f,s.copy(l,n))}}}}()},o}),i("zrender/shape/Star",["require","../tool/math","./Base","../tool/util"],function(e){var t=e("../tool/math"),i=t.sin,n=t.cos,a=Math.PI,o=e("./Base"),r=function(e){o.call(this,e)};return r.prototype={type:"star",buildPath:function(e,t){var o=t.n;if(o&&!(2>o)){var r=t.x,s=t.y,l=t.r,h=t.r0;null==h&&(h=o>4?l*n(2*a/o)/n(a/o):l/3);var m=a/o,V=-a/2,U=r+l*n(V),d=s+l*i(V);V+=m;var p=t.pointList=[];p.push([U,d]);for(var c,u=0,y=2*o-1;y>u;u++)c=u%2===0?h:l,p.push([r+c*n(V),s+c*i(V)]),V+=m;p.push([U,d]),e.moveTo(p[0][0],p[0][1]);for(var u=0;u<p.length;u++)e.lineTo(p[u][0],p[u][1]);e.closePath()}},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(r,o),r}),i("zrender/shape/Heart",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(e){"use strict";var t=e("./Base"),i=e("./util/PathProxy"),n=e("../tool/area"),a=function(e){t.call(this,e),this._pathProxy=new i};return a.prototype={type:"heart",buildPath:function(e,t){var n=this._pathProxy||new i;n.begin(e),n.moveTo(t.x,t.y),n.bezierCurveTo(t.x+t.a/2,t.y-2*t.b/3,t.x+2*t.a,t.y+t.b/3,t.x,t.y+t.b),n.bezierCurveTo(t.x-2*t.a,t.y+t.b/3,t.x-t.a/2,t.y-2*t.b/3,t.x,t.y),n.closePath()},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?n.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,e,t):void 0}},e("../tool/util").inherits(a,t),a}),i("zrender/shape/Droplet",["require","./Base","./util/PathProxy","../tool/area","../tool/util"],function(e){"use strict";var t=e("./Base"),i=e("./util/PathProxy"),n=e("../tool/area"),a=function(e){t.call(this,e),this._pathProxy=new i};return a.prototype={type:"droplet",buildPath:function(e,t){var n=this._pathProxy||new i;n.begin(e),n.moveTo(t.x,t.y+t.a),n.bezierCurveTo(t.x+t.a,t.y+t.a,t.x+3*t.a/2,t.y-t.a/3,t.x,t.y-t.b),n.bezierCurveTo(t.x-3*t.a/2,t.y-t.a/3,t.x-t.a,t.y+t.a,t.x,t.y+t.a),n.closePath()},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)?n.isInsidePath(this._pathProxy.pathCommands,this.style.lineWidth,this.style.brushType,e,t):void 0}},e("../tool/util").inherits(a,t),a}),i("zrender/tool/math",[],function(){function e(e,t){return Math.sin(t?e*a:e)}function t(e,t){return Math.cos(t?e*a:e)}function i(e){return e*a}function n(e){return e/a}var a=Math.PI/180;return{sin:e,cos:t,degreeToRadian:i,radianToDegree:n}}),i("zrender/shape/util/PathProxy",["require","../../tool/vector"],function(e){var t=e("../../tool/vector"),i=function(e,t){this.command=e,this.points=t||null},n=function(){this.pathCommands=[],this._ctx=null,this._min=[],this._max=[]};return n.prototype.fastBoundingRect=function(){var e=this._min,i=this._max;e[0]=e[1]=1/0,i[0]=i[1]=-(1/0);for(var n=0;n<this.pathCommands.length;n++){var a=this.pathCommands[n],o=a.points;switch(a.command){case"M":t.min(e,e,o),t.max(i,i,o);break;case"L":t.min(e,e,o),t.max(i,i,o);break;case"C":for(var r=0;6>r;r+=2)e[0]=Math.min(e[0],e[0],o[r]),e[1]=Math.min(e[1],e[1],o[r+1]),i[0]=Math.max(i[0],i[0],o[r]),i[1]=Math.max(i[1],i[1],o[r+1]);break;case"Q":for(var r=0;4>r;r+=2)e[0]=Math.min(e[0],e[0],o[r]),e[1]=Math.min(e[1],e[1],o[r+1]),i[0]=Math.max(i[0],i[0],o[r]),i[1]=Math.max(i[1],i[1],o[r+1]);break;case"A":var s=o[0],l=o[1],h=o[2],m=o[3];e[0]=Math.min(e[0],e[0],s-h),e[1]=Math.min(e[1],e[1],l-m),i[0]=Math.max(i[0],i[0],s+h),i[1]=Math.max(i[1],i[1],l+m)}}return{x:e[0],y:e[1],width:i[0]-e[0],height:i[1]-e[1]}},n.prototype.begin=function(e){return this._ctx=e||null,this.pathCommands.length=0,this},n.prototype.moveTo=function(e,t){return this.pathCommands.push(new i("M",[e,t])),this._ctx&&this._ctx.moveTo(e,t),this},n.prototype.lineTo=function(e,t){return this.pathCommands.push(new i("L",[e,t])),this._ctx&&this._ctx.lineTo(e,t),this},n.prototype.bezierCurveTo=function(e,t,n,a,o,r){return this.pathCommands.push(new i("C",[e,t,n,a,o,r])),this._ctx&&this._ctx.bezierCurveTo(e,t,n,a,o,r),this},n.prototype.quadraticCurveTo=function(e,t,n,a){return this.pathCommands.push(new i("Q",[e,t,n,a])),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,a),this},n.prototype.arc=function(e,t,n,a,o,r){return this.pathCommands.push(new i("A",[e,t,n,n,a,o-a,0,r?0:1])),this._ctx&&this._ctx.arc(e,t,n,a,o,r),this},n.prototype.arcTo=function(e,t,i,n,a){return this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},n.prototype.rect=function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this},n.prototype.closePath=function(){return this.pathCommands.push(new i("z")),this._ctx&&this._ctx.closePath(),this},n.prototype.isEmpty=function(){return 0===this.pathCommands.length},n.PathSegment=i,n}),i("zrender/shape/Line",["require","./Base","./util/dashedLineTo","../tool/util"],function(e){var t=e("./Base"),i=e("./util/dashedLineTo"),n=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return n.prototype={type:"line",buildPath:function(e,t){if(t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var n=(t.lineWidth||1)*("dashed"==t.lineType?5:1);i(e,t.xStart,t.yStart,t.xEnd,t.yEnd,n)}}else e.moveTo(t.xStart,t.yStart),e.lineTo(t.xEnd,t.yEnd)},getRect:function(e){if(e.__rect)return e.__rect;var t=e.lineWidth||1;return e.__rect={x:Math.min(e.xStart,e.xEnd)-t,y:Math.min(e.yStart,e.yEnd)-t,width:Math.abs(e.xStart-e.xEnd)+t,height:Math.abs(e.yStart-e.yEnd)+t},e.__rect}},e("../tool/util").inherits(n,t),n}),i("zrender/shape/BezierCurve",["require","./Base","../tool/util"],function(e){"use strict";var t=e("./Base"),i=function(e){this.brushTypeOnly="stroke",this.textPosition="end",t.call(this,e)};return i.prototype={type:"bezier-curve",buildPath:function(e,t){e.moveTo(t.xStart,t.yStart),"undefined"!=typeof t.cpX2&&"undefined"!=typeof t.cpY2?e.bezierCurveTo(t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd):e.quadraticCurveTo(t.cpX1,t.cpY1,t.xEnd,t.yEnd)},getRect:function(e){if(e.__rect)return e.__rect;var t=Math.min(e.xStart,e.xEnd,e.cpX1),i=Math.min(e.yStart,e.yEnd,e.cpY1),n=Math.max(e.xStart,e.xEnd,e.cpX1),a=Math.max(e.yStart,e.yEnd,e.cpY1),o=e.cpX2,r=e.cpY2;"undefined"!=typeof o&&"undefined"!=typeof r&&(t=Math.min(t,o),i=Math.min(i,r),n=Math.max(n,o),a=Math.max(a,r));var s=e.lineWidth||1;return e.__rect={x:t-s,y:i-s,width:n-t+s,height:a-i+s},e.__rect}},e("../tool/util").inherits(i,t),i}),i("zrender/shape/util/dashedLineTo",[],function(){var e=[5,5];return function(t,i,n,a,o,r){if(t.setLineDash)return e[0]=e[1]=r,t.setLineDash(e),t.moveTo(i,n),void t.lineTo(a,o);r="number"!=typeof r?5:r;var s=a-i,l=o-n,h=Math.floor(Math.sqrt(s*s+l*l)/r);s/=h,l/=h;for(var m=!0,V=0;h>V;++V)m?t.moveTo(i,n):t.lineTo(i,n),m=!m,i+=s,n+=l;t.lineTo(a,o)}}),i("zrender/shape/Polygon",["require","./Base","./util/smoothSpline","./util/smoothBezier","./util/dashedLineTo","../tool/util"],function(e){var t=e("./Base"),i=e("./util/smoothSpline"),n=e("./util/smoothBezier"),a=e("./util/dashedLineTo"),o=function(e){t.call(this,e)};return o.prototype={type:"polygon",buildPath:function(e,t){var o=t.pointList;if(!(o.length<2)){if(t.smooth&&"spline"!==t.smooth){var r=n(o,t.smooth,!0,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s,l,h,m=o.length,V=0;m>V;V++)s=r[2*V],l=r[2*V+1],h=o[(V+1)%m],e.bezierCurveTo(s[0],s[1],l[0],l[1],h[0],h[1])}else if("spline"===t.smooth&&(o=i(o,!0)),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var U=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=U,e.moveTo(o[0][0],o[0][1]);for(var V=1,d=o.length;d>V;V++)a(e,o[V-1][0],o[V-1][1],o[V][0],o[V][1],U);a(e,o[o.length-1][0],o[o.length-1][1],o[0][0],o[0][1],U)}}else{e.moveTo(o[0][0],o[0][1]);for(var V=1,d=o.length;d>V;V++)e.lineTo(o[V][0],o[V][1]);e.lineTo(o[0][0],o[0][1])}e.closePath()}},getRect:function(e){if(e.__rect)return e.__rect;for(var t=Number.MAX_VALUE,i=Number.MIN_VALUE,n=Number.MAX_VALUE,a=Number.MIN_VALUE,o=e.pointList,r=0,s=o.length;s>r;r++)o[r][0]<t&&(t=o[r][0]),o[r][0]>i&&(i=o[r][0]),o[r][1]<n&&(n=o[r][1]),o[r][1]>a&&(a=o[r][1]);var l;return l="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(t-l/2),y:Math.round(n-l/2),width:i-t+l,height:a-n+l},e.__rect}},e("../tool/util").inherits(o,t),o}),i("echarts/util/shape/normalIsCover",[],function(){return function(e,t){var i=this.transformCoordToLocal(e,t);return e=i[0],t=i[1],this.isCoverRect(e,t)}}),i("zrender/shape/util/smoothSpline",["require","../../tool/vector"],function(e){function t(e,t,i,n,a,o,r){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*r+(-3*(t-i)-2*s-l)*o+s*a+t}var i=e("../../tool/vector");return function(e,n){for(var a=e.length,o=[],r=0,s=1;a>s;s++)r+=i.distance(e[s-1],e[s]);var l=r/5;l=a>l?a:l;for(var s=0;l>s;s++){var h,m,V,U=s/(l-1)*(n?a:a-1),d=Math.floor(U),p=U-d,c=e[d%a];n?(h=e[(d-1+a)%a],m=e[(d+1)%a],V=e[(d+2)%a]):(h=e[0===d?d:d-1],m=e[d>a-2?a-1:d+1],V=e[d>a-3?a-1:d+2]);var u=p*p,y=p*u;o.push([t(h[0],c[0],m[0],V[0],p,u,y),t(h[1],c[1],m[1],V[1],p,u,y)])}return o}}),i("zrender/shape/util/smoothBezier",["require","../../tool/vector"],function(e){var t=e("../../tool/vector");return function(e,i,n,a){var o,r,s,l,h=[],m=[],V=[],U=[],d=!!a;if(d){s=[1/0,1/0],l=[-(1/0),-(1/0)];for(var p=0,c=e.length;c>p;p++)t.min(s,s,e[p]),t.max(l,l,e[p]);t.min(s,s,a[0]),t.max(l,l,a[1])}for(var p=0,c=e.length;c>p;p++){var o,r,u=e[p];if(n)o=e[p?p-1:c-1],r=e[(p+1)%c];else{if(0===p||p===c-1){h.push(t.clone(e[p]));continue}o=e[p-1],r=e[p+1]}t.sub(m,r,o),t.scale(m,m,i);var y=t.distance(u,o),g=t.distance(u,r),b=y+g;0!==b&&(y/=b,g/=b),t.scale(V,m,-y),t.scale(U,m,g);var f=t.add([],u,V),k=t.add([],u,U);d&&(t.max(f,f,s),t.min(f,f,l),t.max(k,k,s),t.min(k,k,l)),h.push(f),h.push(k)}return n&&h.push(t.clone(h.shift())),h}}),i("echarts/util/ecQuery",["require","zrender/tool/util"],function(e){function t(e,t){if("undefined"!=typeof e){if(!t)return e;t=t.split(".");for(var i=t.length,n=0;i>n;){if(e=e[t[n]],"undefined"==typeof e)return;n++}return e}}function i(e,i){for(var n,a=0,o=e.length;o>a;a++)if(n=t(e[a],i),"undefined"!=typeof n)return n}function n(e,i){for(var n,o=e.length;o--;){var r=t(e[o],i);"undefined"!=typeof r&&("undefined"==typeof n?n=a.clone(r):a.merge(n,r,!0))}return n}var a=e("zrender/tool/util");return{query:t,deepQuery:i,deepMerge:n}}),i("echarts/util/number",[],function(){function e(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function t(t,i){return"string"==typeof t?e(t).match(/%$/)?parseFloat(t)/100*i:parseFloat(t):t}function i(e,i){return[t(i[0],e.getWidth()),t(i[1],e.getHeight())]}function n(e,i){i instanceof Array||(i=[0,i]);var n=Math.min(e.getWidth(),e.getHeight())/2;return[t(i[0],n),t(i[1],n)]}function a(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function o(e){for(var t=1,i=0;Math.round(e*t)/t!==e;)t*=10,i++;return i}return{parsePercent:t,parseCenter:i,parseRadius:n,addCommas:a,getPrecision:o}}),i("echarts/data/KDTree",["require","./quickSelect"],function(e){function t(e,t){this.left=null,this.right=null,this.axis=e,this.data=t}var i=e("./quickSelect"),n=function(e,t){e.length&&(t||(t=e[0].array.length),this.dimension=t,this.root=this._buildTree(e,0,e.length-1,0),this._stack=[],this._nearstNList=[])};return n.prototype._buildTree=function(e,n,a,o){if(n>a)return null;var r=Math.floor((n+a)/2);r=i(e,n,a,r,function(e,t){return e.array[o]-t.array[o]});var s=e[r],l=new t(o,s);return o=(o+1)%this.dimension,a>n&&(l.left=this._buildTree(e,n,r-1,o),l.right=this._buildTree(e,r+1,a,o)),l},n.prototype.nearest=function(e,t){var i=this.root,n=this._stack,a=0,o=1/0,r=null;for(i.data!==e&&(o=t(i.data,e),r=i),e.array[i.axis]<i.data.array[i.axis]?(i.right&&(n[a++]=i.right),i.left&&(n[a++]=i.left)):(i.left&&(n[a++]=i.left),i.right&&(n[a++]=i.right));a--;){i=n[a];var s=e.array[i.axis]-i.data.array[i.axis],l=0>s,h=!1;s*=s,o>s&&(s=t(i.data,e),o>s&&i.data!==e&&(o=s,r=i),h=!0),l?(h&&i.right&&(n[a++]=i.right),i.left&&(n[a++]=i.left)):(h&&i.left&&(n[a++]=i.left),i.right&&(n[a++]=i.right))}return r.data},n.prototype._addNearest=function(e,t,i){for(var n=this._nearstNList,a=e-1;a>0&&!(t>=n[a-1].dist);a--)n[a].dist=n[a-1].dist,n[a].node=n[a-1].node;n[a].dist=t,n[a].node=i},n.prototype.nearestN=function(e,t,i,n){if(0>=t)return n.length=0,n;for(var a=this.root,o=this._stack,r=0,s=this._nearstNList,l=0;t>l;l++)s[l]||(s[l]={}),s[l].dist=0,s[l].node=null;var h=i(a.data,e),m=0;for(a.data!==e&&(m++,this._addNearest(m,h,a)),e.array[a.axis]<a.data.array[a.axis]?(a.right&&(o[r++]=a.right),a.left&&(o[r++]=a.left)):(a.left&&(o[r++]=a.left),a.right&&(o[r++]=a.right));r--;){a=o[r];var h=e.array[a.axis]-a.data.array[a.axis],V=0>h,U=!1;h*=h,(t>m||h<s[m-1].dist)&&(h=i(a.data,e),(t>m||h<s[m-1].dist)&&a.data!==e&&(t>m&&m++,this._addNearest(m,h,a)),U=!0),V?(U&&a.right&&(o[r++]=a.right),a.left&&(o[r++]=a.left)):(U&&a.left&&(o[r++]=a.left),a.right&&(o[r++]=a.right))}for(var l=0;m>l;l++)n[l]=s[l].node.data;return n.length=m,n},n}),i("echarts/data/quickSelect",["require"],function(){function e(e,t){return e-t}function t(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function i(e,i,n,a,o){for(var r=i;n>i;){var r=Math.round((n+i)/2),s=e[r];t(e,r,n),r=i;for(var l=i;n-1>=l;l++)o(s,e[l])>=0&&(t(e,l,r),r++);if(t(e,n,r),r===a)return r;a>r?i=r+1:n=r-1}return i}function n(t,n,a,o,r){return arguments.length<=3&&(o=n,r=2==arguments.length?e:a,n=0,a=t.length-1),i(t,n,a,o,r)}return n}),i("echarts/component/dataView",["require","./base","../config","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.dom=o.dom,this._tDom=document.createElement("div"),this._textArea=document.createElement("textArea"),this._buttonRefresh=document.createElement("button"),this._buttonRefresh.setAttribute("type","button"),this._buttonClose=document.createElement("button"),this._buttonClose.setAttribute("type","button"),this._hasShow=!1,this._zrHeight=n.getHeight(),this._zrWidth=n.getWidth(),this._tDom.className="echarts-dataview",this.hide(),this.dom.firstChild.appendChild(this._tDom),window.addEventListener?(this._tDom.addEventListener("click",this._stop),this._tDom.addEventListener("mousewheel",this._stop),this._tDom.addEventListener("mousemove",this._stop),this._tDom.addEventListener("mousedown",this._stop),this._tDom.addEventListener("mouseup",this._stop),this._tDom.addEventListener("touchstart",this._stop),this._tDom.addEventListener("touchmove",this._stop),this._tDom.addEventListener("touchend",this._stop)):(this._tDom.attachEvent("onclick",this._stop),this._tDom.attachEvent("onmousewheel",this._stop),this._tDom.attachEvent("onmousemove",this._stop),this._tDom.attachEvent("onmousedown",this._stop),this._tDom.attachEvent("onmouseup",this._stop))}var i=e("./base"),n=e("../config"),a=e("zrender/tool/util");return t.prototype={type:n.COMPONENT_TYPE_DATAVIEW,_lang:["Data View","close","refresh"],_gCssText:"position:absolute;display:block;overflow:hidden;transition:height 0.8s,background-color 1s;-moz-transition:height 0.8s,background-color 1s;-webkit-transition:height 0.8s,background-color 1s;-o-transition:height 0.8s,background-color 1s;z-index:1;left:0;top:0;",hide:function(){this._sizeCssText="width:"+this._zrWidth+"px;height:0px;background-color:#f0ffff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},show:function(e){this._hasShow=!0;var t=this.query(this.option,"toolbox.feature.dataView.lang")||this._lang;this.option=e,this._tDom.innerHTML='<p style="padding:8px 0;margin:0 0 10px 0;border-bottom:1px solid #eee">'+(t[0]||this._lang[0])+"</p>";var i=this.query(this.option,"toolbox.feature.dataView.optionToContent");"function"!=typeof i?this._textArea.value=this._optionToContent():(this._textArea=document.createElement("div"),this._textArea.innerHTML=i(this.option)),this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;",this._tDom.appendChild(this._textArea),this._buttonClose.style.cssText="float:right;padding:1px 6px;",this._buttonClose.innerHTML=t[1]||this._lang[1];var n=this;this._buttonClose.onclick=function(){n.hide()},this._tDom.appendChild(this._buttonClose),this.query(this.option,"toolbox.feature.dataView.readOnly")===!1?(this._buttonRefresh.style.cssText="float:right;margin-right:10px;padding:1px 6px;",this._buttonRefresh.innerHTML=t[2]||this._lang[2],this._buttonRefresh.onclick=function(){n._save()},this._textArea.readOnly=!1,this._textArea.style.cursor="default"):(this._buttonRefresh.style.cssText="display:none",
-this._textArea.readOnly=!0,this._textArea.style.cursor="text"),this._tDom.appendChild(this._buttonRefresh),this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText},_optionToContent:function(){var e,t,i,a,o,r,s=[],l="";if(this.option.xAxis)for(s=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],e=0,a=s.length;a>e;e++)if("category"==(s[e].type||"category")){for(r=[],t=0,i=s[e].data.length;i>t;t++)r.push(this.getDataFromOption(s[e].data[t]));l+=r.join(", ")+"\n\n"}if(this.option.yAxis)for(s=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],e=0,a=s.length;a>e;e++)if("category"==s[e].type){for(r=[],t=0,i=s[e].data.length;i>t;t++)r.push(this.getDataFromOption(s[e].data[t]));l+=r.join(", ")+"\n\n"}var h,m=this.option.series;for(e=0,a=m.length;a>e;e++){for(r=[],t=0,i=m[e].data.length;i>t;t++)o=m[e].data[t],h=m[e].type==n.CHART_TYPE_PIE||m[e].type==n.CHART_TYPE_MAP?(o.name||"-")+":":"",m[e].type==n.CHART_TYPE_SCATTER&&(o=this.getDataFromOption(o).join(", ")),r.push(h+this.getDataFromOption(o));l+=(m[e].name||"-")+" : \n",l+=r.join(m[e].type==n.CHART_TYPE_SCATTER?"\n":", "),l+="\n\n"}return l},_save:function(){var e=this.query(this.option,"toolbox.feature.dataView.contentToOption");if("function"!=typeof e){for(var t=this._textArea.value.split("\n"),i=[],a=0,o=t.length;o>a;a++)t[a]=this._trim(t[a]),""!==t[a]&&i.push(t[a]);this._contentToOption(i)}else e(this._textArea,this.option);this.hide();var r=this;setTimeout(function(){r.messageCenter&&r.messageCenter.dispatch(n.EVENT.DATA_VIEW_CHANGED,null,{option:r.option},r.myChart)},r.canvasSupported?800:100)},_contentToOption:function(e){var t,i,a,o,r,s,l,h=[],m=0;if(this.option.xAxis)for(h=this.option.xAxis instanceof Array?this.option.xAxis:[this.option.xAxis],t=0,o=h.length;o>t;t++)if("category"==(h[t].type||"category")){for(s=e[m].split(","),i=0,a=h[t].data.length;a>i;i++)l=this._trim(s[i]||""),r=h[t].data[i],"undefined"!=typeof h[t].data[i].value?h[t].data[i].value=l:h[t].data[i]=l;m++}if(this.option.yAxis)for(h=this.option.yAxis instanceof Array?this.option.yAxis:[this.option.yAxis],t=0,o=h.length;o>t;t++)if("category"==h[t].type){for(s=e[m].split(","),i=0,a=h[t].data.length;a>i;i++)l=this._trim(s[i]||""),r=h[t].data[i],"undefined"!=typeof h[t].data[i].value?h[t].data[i].value=l:h[t].data[i]=l;m++}var V=this.option.series;for(t=0,o=V.length;o>t;t++)if(m++,V[t].type==n.CHART_TYPE_SCATTER)for(var i=0,a=V[t].data.length;a>i;i++)s=e[m],l=s.replace(" ","").split(","),"undefined"!=typeof V[t].data[i].value?V[t].data[i].value=l:V[t].data[i]=l,m++;else{s=e[m].split(",");for(var i=0,a=V[t].data.length;a>i;i++)l=(s[i]||"").replace(/.*:/,""),l=this._trim(l),l="-"!=l&&""!==l?l-0:"-","undefined"!=typeof V[t].data[i].value?V[t].data[i].value=l:V[t].data[i]=l;m++}},_trim:function(e){var t=new RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");return e.replace(t,"")},_stop:function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},resize:function(){this._zrHeight=this.zr.getHeight(),this._zrWidth=this.zr.getWidth(),this._tDom.offsetHeight>10&&(this._sizeCssText="width:"+this._zrWidth+"px;height:"+this._zrHeight+"px;background-color:#fff;",this._tDom.style.cssText=this._gCssText+this._sizeCssText,this._textArea.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:100%;height:"+(this._zrHeight-100)+"px;")},dispose:function(){window.removeEventListener?(this._tDom.removeEventListener("click",this._stop),this._tDom.removeEventListener("mousewheel",this._stop),this._tDom.removeEventListener("mousemove",this._stop),this._tDom.removeEventListener("mousedown",this._stop),this._tDom.removeEventListener("mouseup",this._stop),this._tDom.removeEventListener("touchstart",this._stop),this._tDom.removeEventListener("touchmove",this._stop),this._tDom.removeEventListener("touchend",this._stop)):(this._tDom.detachEvent("onclick",this._stop),this._tDom.detachEvent("onmousewheel",this._stop),this._tDom.detachEvent("onmousemove",this._stop),this._tDom.detachEvent("onmousedown",this._stop),this._tDom.detachEvent("onmouseup",this._stop)),this._buttonRefresh.onclick=null,this._buttonClose.onclick=null,this._hasShow&&(this._tDom.removeChild(this._textArea),this._tDom.removeChild(this._buttonRefresh),this._tDom.removeChild(this._buttonClose)),this._textArea=null,this._buttonRefresh=null,this._buttonClose=null,this.dom.firstChild.removeChild(this._tDom),this._tDom=null}},a.inherits(t,i),e("../component").define("dataView",t),t}),i("echarts/util/shape/Cross",["require","zrender/shape/Base","zrender/shape/Line","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Line"),a=e("zrender/tool/util");return t.prototype={type:"cross",buildPath:function(e,t){var i=t.rect;t.xStart=i.x,t.xEnd=i.x+i.width,t.yStart=t.yEnd=t.y,n.prototype.buildPath(e,t),t.xStart=t.xEnd=t.x,t.yStart=i.y,t.yEnd=i.y+i.height,n.prototype.buildPath(e,t)},getRect:function(e){return e.rect},isCover:e("./normalIsCover")},a.inherits(t,i),t}),i("zrender/shape/Sector",["require","../tool/math","../tool/computeBoundingBox","../tool/vector","./Base","../tool/util"],function(e){var t=e("../tool/math"),i=e("../tool/computeBoundingBox"),n=e("../tool/vector"),a=e("./Base"),o=n.create(),r=n.create(),s=n.create(),l=n.create(),h=function(e){a.call(this,e)};return h.prototype={type:"sector",buildPath:function(e,i){var n=i.x,a=i.y,o=i.r0||0,r=i.r,s=i.startAngle,l=i.endAngle,h=i.clockWise||!1;s=t.degreeToRadian(s),l=t.degreeToRadian(l),h||(s=-s,l=-l);var m=t.cos(s),V=t.sin(s);e.moveTo(m*o+n,V*o+a),e.lineTo(m*r+n,V*r+a),e.arc(n,a,r,s,l,!h),e.lineTo(t.cos(l)*o+n,t.sin(l)*o+a),0!==o&&e.arc(n,a,o,l,s,h),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var a=e.x,h=e.y,m=e.r0||0,V=e.r,U=t.degreeToRadian(e.startAngle),d=t.degreeToRadian(e.endAngle),p=e.clockWise;return p||(U=-U,d=-d),m>1?i.arc(a,h,m,U,d,!p,o,s):(o[0]=s[0]=a,o[1]=s[1]=h),i.arc(a,h,V,U,d,!p,r,l),n.min(o,o,r),n.max(s,s,l),e.__rect={x:o[0],y:o[1],width:s[0]-o[0],height:s[1]-o[1]},e.__rect}},e("../tool/util").inherits(h,a),h}),i("echarts/util/shape/Candle",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/tool/util");return t.prototype={type:"candle",_numberOrder:function(e,t){return t-e},buildPath:function(e,t){var i=n.clone(t.y).sort(this._numberOrder);e.moveTo(t.x,i[3]),e.lineTo(t.x,i[2]),e.moveTo(t.x-t.width/2,i[2]),e.rect(t.x-t.width/2,i[2],t.width,i[1]-i[2]),e.moveTo(t.x,i[1]),e.lineTo(t.x,i[0])},getRect:function(e){if(!e.__rect){var t=0;("stroke"==e.brushType||"fill"==e.brushType)&&(t=e.lineWidth||1);var i=n.clone(e.y).sort(this._numberOrder);e.__rect={x:Math.round(e.x-e.width/2-t/2),y:Math.round(i[3]-t/2),width:e.width+t,height:i[0]-i[3]+t}}return e.__rect},isCover:e("./normalIsCover")},n.inherits(t,i),t}),i("zrender/tool/computeBoundingBox",["require","./vector","./curve"],function(e){function t(e,t,i){if(0!==e.length){for(var n=e[0][0],a=e[0][0],o=e[0][1],r=e[0][1],s=1;s<e.length;s++){var l=e[s];l[0]<n&&(n=l[0]),l[0]>a&&(a=l[0]),l[1]<o&&(o=l[1]),l[1]>r&&(r=l[1])}t[0]=n,t[1]=o,i[0]=a,i[1]=r}}function i(e,t,i,n,a,r){var s=[];o.cubicExtrema(e[0],t[0],i[0],n[0],s);for(var l=0;l<s.length;l++)s[l]=o.cubicAt(e[0],t[0],i[0],n[0],s[l]);var h=[];o.cubicExtrema(e[1],t[1],i[1],n[1],h);for(var l=0;l<h.length;l++)h[l]=o.cubicAt(e[1],t[1],i[1],n[1],h[l]);s.push(e[0],n[0]),h.push(e[1],n[1]);var m=Math.min.apply(null,s),V=Math.max.apply(null,s),U=Math.min.apply(null,h),d=Math.max.apply(null,h);a[0]=m,a[1]=U,r[0]=V,r[1]=d}function n(e,t,i,n,a){var r=o.quadraticExtremum(e[0],t[0],i[0]),s=o.quadraticExtremum(e[1],t[1],i[1]);r=Math.max(Math.min(r,1),0),s=Math.max(Math.min(s,1),0);var l=1-r,h=1-s,m=l*l*e[0]+2*l*r*t[0]+r*r*i[0],V=l*l*e[1]+2*l*r*t[1]+r*r*i[1],U=h*h*e[0]+2*h*s*t[0]+s*s*i[0],d=h*h*e[1]+2*h*s*t[1]+s*s*i[1];n[0]=Math.min(e[0],i[0],m,U),n[1]=Math.min(e[1],i[1],V,d),a[0]=Math.max(e[0],i[0],m,U),a[1]=Math.max(e[1],i[1],V,d)}var a=e("./vector"),o=e("./curve"),r=a.create(),s=a.create(),l=a.create(),h=function(e,t,i,n,o,h,m,V){if(Math.abs(n-o)>=2*Math.PI)return m[0]=e-i,m[1]=t-i,V[0]=e+i,void(V[1]=t+i);if(r[0]=Math.cos(n)*i+e,r[1]=Math.sin(n)*i+t,s[0]=Math.cos(o)*i+e,s[1]=Math.sin(o)*i+t,a.min(m,r,s),a.max(V,r,s),n%=2*Math.PI,0>n&&(n+=2*Math.PI),o%=2*Math.PI,0>o&&(o+=2*Math.PI),n>o&&!h?o+=2*Math.PI:o>n&&h&&(n+=2*Math.PI),h){var U=o;o=n,n=U}for(var d=0;o>d;d+=Math.PI/2)d>n&&(l[0]=Math.cos(d)*i+e,l[1]=Math.sin(d)*i+t,a.min(m,l,m),a.max(V,l,V))};return t.cubeBezier=i,t.quadraticBezier=n,t.arc=h,t}),i("echarts/util/shape/Chain",["require","zrender/shape/Base","./Icon","zrender/shape/util/dashedLineTo","zrender/tool/util","zrender/tool/matrix"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("./Icon"),a=e("zrender/shape/util/dashedLineTo"),o=e("zrender/tool/util"),r=e("zrender/tool/matrix");return t.prototype={type:"chain",brush:function(e,t){var i=this.style;t&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),e.save(),this.setContext(e,i),this.setTransform(e),e.save(),e.beginPath(),this.buildLinePath(e,i),e.stroke(),e.restore(),this.brushSymbol(e,i),e.restore()},buildLinePath:function(e,t){var i=t.x,n=t.y+5,o=t.width,r=t.height/2-10;if(e.moveTo(i,n),e.lineTo(i,n+r),e.moveTo(i+o,n),e.lineTo(i+o,n+r),e.moveTo(i,n+r/2),t.lineType&&"solid"!=t.lineType){if("dashed"==t.lineType||"dotted"==t.lineType){var s=(t.lineWidth||1)*("dashed"==t.lineType?5:1);a(e,i,n+r/2,i+o,n+r/2,s)}}else e.lineTo(i+o,n+r/2)},brushSymbol:function(e,t){var i=t.y+t.height/4;e.save();for(var a,o=t.chainPoint,r=0,s=o.length;s>r;r++){if(a=o[r],"none"!=a.symbol){e.beginPath();var l=a.symbolSize;n.prototype.buildPath(e,{iconType:a.symbol,x:a.x-l,y:i-l,width:2*l,height:2*l,n:a.n}),e.fillStyle=a.isEmpty?"#fff":t.strokeColor,e.closePath(),e.fill(),e.stroke()}a.showLabel&&(e.font=a.textFont,e.fillStyle=a.textColor,e.textAlign=a.textAlign,e.textBaseline=a.textBaseline,a.rotation?(e.save(),this._updateTextTransform(e,a.rotation),e.fillText(a.name,a.textX,a.textY),e.restore()):e.fillText(a.name,a.textX,a.textY))}e.restore()},_updateTextTransform:function(e,t){var i=r.create();if(r.identity(i),0!==t[0]){var n=t[1]||0,a=t[2]||0;(n||a)&&r.translate(i,i,[-n,-a]),r.rotate(i,i,t[0]),(n||a)&&r.translate(i,i,[n,a])}e.transform.apply(e,i)},isCover:function(e,t){var i=this.style;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height?!0:!1}},o.inherits(t,i),t}),i("zrender/shape/Ring",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"ring",buildPath:function(e,t){e.arc(t.x,t.y,t.r,0,2*Math.PI,!1),e.moveTo(t.x+t.r0,t.y),e.arc(t.x,t.y,t.r0,0,2*Math.PI,!0)},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.r-t/2),y:Math.round(e.y-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/component/axis",["require","./base","zrender/shape/Line","../config","../util/ecData","zrender/tool/util","zrender/tool/color","./categoryAxis","./valueAxis","../component"],function(e){function t(e,t,n,a,o,r){i.call(this,e,t,n,a,o),this.axisType=r,this._axisList=[],this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Line"),a=e("../config"),o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.COMPONENT_TYPE_AXIS,axisBase:{_buildAxisLine:function(){var e=this.option.axisLine.lineStyle.width,t=e/2,i={_axisShape:"axisLine",zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1},a=this.grid;switch(this.option.position){case"left":i.style={xStart:a.getX()-t,yStart:a.getYend(),xEnd:a.getX()-t,yEnd:a.getY(),lineCap:"round"};break;case"right":i.style={xStart:a.getXend()+t,yStart:a.getYend(),xEnd:a.getXend()+t,yEnd:a.getY(),lineCap:"round"};break;case"bottom":i.style={xStart:a.getX(),yStart:a.getYend()+t,xEnd:a.getXend(),yEnd:a.getYend()+t,lineCap:"round"};break;case"top":i.style={xStart:a.getX(),yStart:a.getY()-t,xEnd:a.getXend(),yEnd:a.getY()-t,lineCap:"round"}}var o=i.style;""!==this.option.name&&(o.text=this.option.name,o.textPosition=this.option.nameLocation,o.textFont=this.getFont(this.option.nameTextStyle),this.option.nameTextStyle.align&&(o.textAlign=this.option.nameTextStyle.align),this.option.nameTextStyle.baseline&&(o.textBaseline=this.option.nameTextStyle.baseline),this.option.nameTextStyle.color&&(o.textColor=this.option.nameTextStyle.color)),o.strokeColor=this.option.axisLine.lineStyle.color,o.lineWidth=e,this.isHorizontal()?o.yStart=o.yEnd=this.subPixelOptimize(o.yEnd,e):o.xStart=o.xEnd=this.subPixelOptimize(o.xEnd,e),o.lineType=this.option.axisLine.lineStyle.type,i=new n(i),this.shapeList.push(i)},_axisLabelClickable:function(e,t){return e?(o.pack(t,void 0,-1,void 0,-1,t.style.text),t.hoverable=!0,t.clickable=!0,t.highlightStyle={color:s.lift(t.style.color,1),brushType:"fill"},t):t},refixAxisShape:function(e,t){if(this.option.axisLine.onZero){var i;if(this.isHorizontal()&&null!=t)for(var n=0,a=this.shapeList.length;a>n;n++)"axisLine"===this.shapeList[n]._axisShape?(this.shapeList[n].style.yStart=this.shapeList[n].style.yEnd=this.subPixelOptimize(t,this.shapeList[n].stylelineWidth),this.zr.modShape(this.shapeList[n].id)):"axisTick"===this.shapeList[n]._axisShape&&(i=this.shapeList[n].style.yEnd-this.shapeList[n].style.yStart,this.shapeList[n].style.yStart=t-i,this.shapeList[n].style.yEnd=t,this.zr.modShape(this.shapeList[n].id));if(!this.isHorizontal()&&null!=e)for(var n=0,a=this.shapeList.length;a>n;n++)"axisLine"===this.shapeList[n]._axisShape?(this.shapeList[n].style.xStart=this.shapeList[n].style.xEnd=this.subPixelOptimize(e,this.shapeList[n].stylelineWidth),this.zr.modShape(this.shapeList[n].id)):"axisTick"===this.shapeList[n]._axisShape&&(i=this.shapeList[n].style.xEnd-this.shapeList[n].style.xStart,this.shapeList[n].style.xStart=e,this.shapeList[n].style.xEnd=e+i,this.zr.modShape(this.shapeList[n].id))}},getPosition:function(){return this.option.position},isHorizontal:function(){return"bottom"===this.option.position||"top"===this.option.position}},reformOption:function(e){if(!e||e instanceof Array&&0===e.length?e=[{type:a.COMPONENT_TYPE_AXIS_VALUE}]:e instanceof Array||(e=[e]),e.length>2&&(e=[e[0],e[1]]),"xAxis"===this.axisType){(!e[0].position||"bottom"!=e[0].position&&"top"!=e[0].position)&&(e[0].position="bottom"),e.length>1&&(e[1].position="bottom"===e[0].position?"top":"bottom");for(var t=0,i=e.length;i>t;t++)e[t].type=e[t].type||"category",e[t].xAxisIndex=t,e[t].yAxisIndex=-1}else{(!e[0].position||"left"!=e[0].position&&"right"!=e[0].position)&&(e[0].position="left"),e.length>1&&(e[1].position="left"===e[0].position?"right":"left");for(var t=0,i=e.length;i>t;t++)e[t].type=e[t].type||"value",e[t].xAxisIndex=-1,e[t].yAxisIndex=t}return e},refresh:function(t){var i;t&&(this.option=t,"xAxis"===this.axisType?(this.option.xAxis=this.reformOption(t.xAxis),i=this.option.xAxis):(this.option.yAxis=this.reformOption(t.yAxis),i=this.option.yAxis),this.series=t.series);for(var n=e("./categoryAxis"),a=e("./valueAxis"),o=Math.max(i&&i.length||0,this._axisList.length),r=0;o>r;r++)!this._axisList[r]||!t||i[r]&&this._axisList[r].type==i[r].type||(this._axisList[r].dispose&&this._axisList[r].dispose(),this._axisList[r]=!1),this._axisList[r]?this._axisList[r].refresh&&this._axisList[r].refresh(i?i[r]:!1,this.series):i&&i[r]&&(this._axisList[r]="category"===i[r].type?new n(this.ecTheme,this.messageCenter,this.zr,i[r],this.myChart,this.axisBase):new a(this.ecTheme,this.messageCenter,this.zr,i[r],this.myChart,this.axisBase,this.series))},getAxis:function(e){return this._axisList[e]},getAxisCount:function(){return this._axisList.length},clear:function(){for(var e=0,t=this._axisList.length;t>e;e++)this._axisList[e].dispose&&this._axisList[e].dispose();this._axisList=[]}},r.inherits(t,i),e("../component").define("axis",t),t}),i("echarts/component/grid",["require","./base","zrender/shape/Rectangle","../config","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("../config");a.grid={zlevel:0,z:0,x:80,y:60,x2:80,y2:60,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"};var o=e("zrender/tool/util");return t.prototype={type:a.COMPONENT_TYPE_GRID,getX:function(){return this._x},getY:function(){return this._y},getWidth:function(){return this._width},getHeight:function(){return this._height},getXend:function(){return this._x+this._width},getYend:function(){return this._y+this._height},getArea:function(){return{x:this._x,y:this._y,width:this._width,height:this._height}},getBbox:function(){return[[this._x,this._y],[this.getXend(),this.getYend()]]},refixAxisShape:function(e){for(var t,i,n,o=e.xAxis._axisList.concat(e.yAxis?e.yAxis._axisList:[]),r=o.length;r--;)n=o[r],n.type==a.COMPONENT_TYPE_AXIS_VALUE&&n._min<0&&n._max>=0&&(n.isHorizontal()?t=n.getCoord(0):i=n.getCoord(0));if("undefined"!=typeof t||"undefined"!=typeof i)for(r=o.length;r--;)o[r].refixAxisShape(t,i)},refresh:function(e){if(e||this._zrWidth!=this.zr.getWidth()||this._zrHeight!=this.zr.getHeight()){this.clear(),this.option=e||this.option,this.option.grid=this.reformOption(this.option.grid);var t=this.option.grid;this._zrWidth=this.zr.getWidth(),this._zrHeight=this.zr.getHeight(),this._x=this.parsePercent(t.x,this._zrWidth),this._y=this.parsePercent(t.y,this._zrHeight);var i=this.parsePercent(t.x2,this._zrWidth),a=this.parsePercent(t.y2,this._zrHeight);this._width="undefined"==typeof t.width?this._zrWidth-this._x-i:this.parsePercent(t.width,this._zrWidth),this._width=this._width<=0?10:this._width,this._height="undefined"==typeof t.height?this._zrHeight-this._y-a:this.parsePercent(t.height,this._zrHeight),this._height=this._height<=0?10:this._height,this._x=this.subPixelOptimize(this._x,t.borderWidth),this._y=this.subPixelOptimize(this._y,t.borderWidth),this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._x,y:this._y,width:this._width,height:this._height,brushType:t.borderWidth>0?"both":"fill",color:t.backgroundColor,strokeColor:t.borderColor,lineWidth:t.borderWidth}})),this.zr.addShape(this.shapeList[0])}}},o.inherits(t,i),e("../component").define("grid",t),t}),i("echarts/component/dataZoom",["require","./base","zrender/shape/Rectangle","zrender/shape/Polygon","../util/shape/Icon","../config","../util/date","zrender/tool/util","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._ondrift=function(e,t){return r.__ondrift(this,e,t)},r._ondragend=function(){return r.__ondragend()},this._fillerSize=30,this._isSilence=!1,this._zoom={},this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this._handleSize=this.zoomOption.handleSize,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom.show&&this._buildShape(),this._syncData()}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("zrender/shape/Polygon"),o=e("../util/shape/Icon"),r=e("../config");r.dataZoom={zlevel:0,z:4,show:!1,orient:"horizontal",backgroundColor:"rgba(0,0,0,0)",dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"rgba(70,130,180,0.8)",handleSize:8,showDetail:!0,realtime:!0};var s=e("../util/date"),l=e("zrender/tool/util");return t.prototype={type:r.COMPONENT_TYPE_DATAZOOM,_buildShape:function(){this._buildBackground(),this._buildFiller(),this._buildHandle(),this._buildFrame();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e]);this._syncFrameShape()},_getLocation:function(){var e,t,i,n,a=this.component.grid;return"horizontal"==this.zoomOption.orient?(i=this.zoomOption.width||a.getWidth(),n=this.zoomOption.height||this._fillerSize,e=null!=this.zoomOption.x?this.zoomOption.x:a.getX(),t=null!=this.zoomOption.y?this.zoomOption.y:this.zr.getHeight()-n-2):(i=this.zoomOption.width||this._fillerSize,n=this.zoomOption.height||a.getHeight(),e=null!=this.zoomOption.x?this.zoomOption.x:2,t=null!=this.zoomOption.y?this.zoomOption.y:a.getY()),{x:e,y:t,width:i,height:n}},_getZoom:function(){var e=this.option.series,t=this.option.xAxis;!t||t instanceof Array||(t=[t],this.option.xAxis=t);var i=this.option.yAxis;!i||i instanceof Array||(i=[i],this.option.yAxis=i);var n,a,o=[],s=this.zoomOption.xAxisIndex;if(t&&null==s){n=[];for(var l=0,h=t.length;h>l;l++)("category"==t[l].type||null==t[l].type)&&n.push(l)}else n=s instanceof Array?s:null!=s?[s]:[];if(s=this.zoomOption.yAxisIndex,i&&null==s){a=[];for(var l=0,h=i.length;h>l;l++)"category"==i[l].type&&a.push(l)}else a=s instanceof Array?s:null!=s?[s]:[];for(var m,l=0,h=e.length;h>l;l++)if(m=e[l],m.type==r.CHART_TYPE_LINE||m.type==r.CHART_TYPE_BAR||m.type==r.CHART_TYPE_SCATTER||m.type==r.CHART_TYPE_K){for(var V=0,U=n.length;U>V;V++)if(n[V]==(m.xAxisIndex||0)){o.push(l);break}for(var V=0,U=a.length;U>V;V++)if(a[V]==(m.yAxisIndex||0)){o.push(l);break}null==this.zoomOption.xAxisIndex&&null==this.zoomOption.yAxisIndex&&m.data&&this.getDataFromOption(m.data[0])instanceof Array&&(m.type==r.CHART_TYPE_SCATTER||m.type==r.CHART_TYPE_LINE||m.type==r.CHART_TYPE_BAR)&&o.push(l)}var d=null!=this._zoom.start?this._zoom.start:null!=this.zoomOption.start?this.zoomOption.start:0,p=null!=this._zoom.end?this._zoom.end:null!=this.zoomOption.end?this.zoomOption.end:100;d>p&&(d+=p,p=d-p,d-=p);var c=Math.round((p-d)/100*("horizontal"==this.zoomOption.orient?this._location.width:this._location.height));return{start:d,end:p,start2:0,end2:100,size:c,xAxisIndex:n,yAxisIndex:a,seriesIndex:o,scatterMap:this._zoom.scatterMap||{}}},_backupData:function(){this._originalData={xAxis:{},yAxis:{},series:{}};for(var e=this.option.xAxis,t=this._zoom.xAxisIndex,i=0,n=t.length;n>i;i++)this._originalData.xAxis[t[i]]=e[t[i]].data;for(var a=this.option.yAxis,o=this._zoom.yAxisIndex,i=0,n=o.length;n>i;i++)this._originalData.yAxis[o[i]]=a[o[i]].data;for(var s,l=this.option.series,h=this._zoom.seriesIndex,i=0,n=h.length;n>i;i++)s=l[h[i]],this._originalData.series[h[i]]=s.data,s.data&&this.getDataFromOption(s.data[0])instanceof Array&&(s.type==r.CHART_TYPE_SCATTER||s.type==r.CHART_TYPE_LINE||s.type==r.CHART_TYPE_BAR)&&(this._backupScale(),this._calculScatterMap(h[i]))},_calculScatterMap:function(t){this._zoom.scatterMap=this._zoom.scatterMap||{},this._zoom.scatterMap[t]=this._zoom.scatterMap[t]||{};var i=e("../component"),n=i.get("axis"),a=l.clone(this.option.xAxis);"category"==a[0].type&&(a[0].type="value"),a[1]&&"category"==a[1].type&&(a[1].type="value");var o=new n(this.ecTheme,null,!1,{xAxis:a,series:this.option.series},this,"xAxis"),r=this.option.series[t].xAxisIndex||0;this._zoom.scatterMap[t].x=o.getAxis(r).getExtremum(),o.dispose(),a=l.clone(this.option.yAxis),"category"==a[0].type&&(a[0].type="value"),a[1]&&"category"==a[1].type&&(a[1].type="value"),o=new n(this.ecTheme,null,!1,{yAxis:a,series:this.option.series},this,"yAxis"),r=this.option.series[t].yAxisIndex||0,this._zoom.scatterMap[t].y=o.getAxis(r).getExtremum(),o.dispose()},_buildBackground:function(){var e=this._location.width,t=this._location.height;this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._location.x,y:this._location.y,width:e,height:t,color:this.zoomOption.backgroundColor}}));for(var i=0,o=this._originalData.xAxis,s=this._zoom.xAxisIndex,l=0,h=s.length;h>l;l++)i=Math.max(i,o[s[l]].length);for(var m=this._originalData.yAxis,V=this._zoom.yAxisIndex,l=0,h=V.length;h>l;l++)i=Math.max(i,m[V[l]].length);for(var U,d=this._zoom.seriesIndex[0],p=this._originalData.series[d],c=Number.MIN_VALUE,u=Number.MAX_VALUE,l=0,h=p.length;h>l;l++)U=this.getDataFromOption(p[l],0),this.option.series[d].type==r.CHART_TYPE_K&&(U=U[1]),isNaN(U)&&(U=0),c=Math.max(c,U),u=Math.min(u,U);var y=c-u,g=[],b=e/(i-(i>1?1:0)),f=t/(i-(i>1?1:0)),k=1;"horizontal"==this.zoomOption.orient&&1>b?k=Math.floor(3*i/e):"vertical"==this.zoomOption.orient&&1>f&&(k=Math.floor(3*i/t));for(var l=0,h=i;h>l;l+=k)U=this.getDataFromOption(p[l],0),this.option.series[d].type==r.CHART_TYPE_K&&(U=U[1]),isNaN(U)&&(U=0),g.push("horizontal"==this.zoomOption.orient?[this._location.x+b*l,this._location.y+t-1-Math.round((U-u)/y*(t-10))]:[this._location.x+1+Math.round((U-u)/y*(e-10)),this._location.y+f*(h-l-1)]);"horizontal"==this.zoomOption.orient?(g.push([this._location.x+e,this._location.y+t]),g.push([this._location.x,this._location.y+t])):(g.push([this._location.x,this._location.y]),g.push([this._location.x,this._location.y+t])),this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:g,color:this.zoomOption.dataBackgroundColor},hoverable:!1}))},_buildFiller:function(){this._fillerShae={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,_type:"filler"},this._fillerShae.style="horizontal"==this.zoomOption.orient?{x:this._location.x+Math.round(this._zoom.start/100*this._location.width)+this._handleSize,y:this._location.y,width:this._zoom.size-2*this._handleSize,height:this._location.height,color:this.zoomOption.fillerColor,text:":::",textPosition:"inside"}:{x:this._location.x,y:this._location.y+Math.round(this._zoom.start/100*this._location.height)+this._handleSize,width:this._location.width,height:this._zoom.size-2*this._handleSize,color:this.zoomOption.fillerColor,text:"::",textPosition:"inside"},this._fillerShae.highlightStyle={brushType:"fill",color:"rgba(0,0,0,0)"},this._fillerShae=new n(this._fillerShae),this.shapeList.push(this._fillerShae)},_buildHandle:function(){var e=this.zoomOption.showDetail?this._getDetail():{start:"",end:""};this._startShape={zlevel:this.getZlevelBase(),z:this.getZBase(),draggable:!0,style:{iconType:"rectangle",x:this._location.x,y:this._location.y,width:this._handleSize,height:this._handleSize,color:this.zoomOption.handleColor,text:"=",textPosition:"inside"},highlightStyle:{text:e.start,brushType:"fill",textPosition:"left"},ondrift:this._ondrift,ondragend:this._ondragend},"horizontal"==this.zoomOption.orient?(this._startShape.style.height=this._location.height,this._endShape=l.clone(this._startShape),this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endShape.highlightStyle.text=e.end,this._endShape.highlightStyle.textPosition="right"):(this._startShape.style.width=this._location.width,this._endShape=l.clone(this._startShape),this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startShape.highlightStyle.textPosition="bottom",this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._endShape.highlightStyle.text=e.end,this._endShape.highlightStyle.textPosition="top"),this._startShape=new o(this._startShape),this._endShape=new o(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_buildFrame:function(){var e=this.subPixelOptimize(this._location.x,1),t=this.subPixelOptimize(this._location.y,1);this._startFrameShape={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:e,y:t,width:this._location.width-(e>this._location.x?1:0),height:this._location.height-(t>this._location.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:this.zoomOption.handleColor}},this._endFrameShape=l.clone(this._startFrameShape),this._startFrameShape=new n(this._startFrameShape),this._endFrameShape=new n(this._endFrameShape),this.shapeList.push(this._startFrameShape),this.shapeList.push(this._endFrameShape)},_syncHandleShape:function(){"horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._fillerShae.style.x-this._handleSize,this._endShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._zoom.start=(this._startShape.style.x-this._location.x)/this._location.width*100,this._zoom.end=(this._endShape.style.x+this._handleSize-this._location.x)/this._location.width*100):(this._startShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._endShape.style.y=this._fillerShae.style.y-this._handleSize,this._zoom.start=(this._location.y+this._location.height-this._startShape.style.y)/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-this._endShape.style.y-this._handleSize)/this._location.height*100),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFillerShape:function(){var e,t;"horizontal"==this.zoomOption.orient?(e=this._startShape.style.x,t=this._endShape.style.x,this._fillerShae.style.x=Math.min(e,t)+this._handleSize,this._fillerShae.style.width=Math.abs(e-t)-this._handleSize,this._zoom.start=(Math.min(e,t)-this._location.x)/this._location.width*100,this._zoom.end=(Math.max(e,t)+this._handleSize-this._location.x)/this._location.width*100):(e=this._startShape.style.y,t=this._endShape.style.y,this._fillerShae.style.y=Math.min(e,t)+this._handleSize,this._fillerShae.style.height=Math.abs(e-t)-this._handleSize,this._zoom.start=(this._location.y+this._location.height-Math.max(e,t))/this._location.height*100,this._zoom.end=(this._location.y+this._location.height-Math.min(e,t)-this._handleSize)/this._location.height*100),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refreshNextFrame()},_syncFrameShape:function(){"horizontal"==this.zoomOption.orient?(this._startFrameShape.style.width=this._fillerShae.style.x-this._location.x,this._endFrameShape.style.x=this._fillerShae.style.x+this._fillerShae.style.width,this._endFrameShape.style.width=this._location.x+this._location.width-this._endFrameShape.style.x):(this._startFrameShape.style.y=this._fillerShae.style.y+this._fillerShae.style.height,this._startFrameShape.style.height=this._location.y+this._location.height-this._startFrameShape.style.y,this._endFrameShape.style.height=this._fillerShae.style.y-this._location.y),this.zr.modShape(this._startFrameShape.id),this.zr.modShape(this._endFrameShape.id)},_syncShape:function(){this.zoomOption.show&&("horizontal"==this.zoomOption.orient?(this._startShape.style.x=this._location.x+this._zoom.start/100*this._location.width,this._endShape.style.x=this._location.x+this._zoom.end/100*this._location.width-this._handleSize,this._fillerShae.style.x=this._startShape.style.x+this._handleSize,this._fillerShae.style.width=this._endShape.style.x-this._startShape.style.x-this._handleSize):(this._startShape.style.y=this._location.y+this._location.height-this._zoom.start/100*this._location.height,this._endShape.style.y=this._location.y+this._location.height-this._zoom.end/100*this._location.height-this._handleSize,this._fillerShae.style.y=this._endShape.style.y+this._handleSize,this._fillerShae.style.height=this._startShape.style.y-this._endShape.style.y-this._handleSize),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._fillerShae.id),this._syncFrameShape(),this.zr.refresh())},_syncData:function(e){var t,i,n,a,o;for(var s in this._originalData){t=this._originalData[s];for(var l in t)o=t[l],null!=o&&(a=o.length,i=Math.floor(this._zoom.start/100*a),n=Math.ceil(this._zoom.end/100*a),this.getDataFromOption(o[0])instanceof Array&&this.option[s][l].type!=r.CHART_TYPE_K?(this._setScale(),this.option[s][l].data=this._synScatterData(l,o)):this.option[s][l].data=o.slice(i,n))}this._isSilence||!this.zoomOption.realtime&&!e||this.messageCenter.dispatch(r.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart)},_synScatterData:function(e,t){if(0===this._zoom.start&&100==this._zoom.end&&0===this._zoom.start2&&100==this._zoom.end2)return t;var i,n,a,o,r,s=[],l=this._zoom.scatterMap[e];
-
-"horizontal"==this.zoomOption.orient?(i=l.x.max-l.x.min,n=this._zoom.start/100*i+l.x.min,a=this._zoom.end/100*i+l.x.min,i=l.y.max-l.y.min,o=this._zoom.start2/100*i+l.y.min,r=this._zoom.end2/100*i+l.y.min):(i=l.x.max-l.x.min,n=this._zoom.start2/100*i+l.x.min,a=this._zoom.end2/100*i+l.x.min,i=l.y.max-l.y.min,o=this._zoom.start/100*i+l.y.min,r=this._zoom.end/100*i+l.y.min);var h;(h=l.x.dataMappingMethods)&&(n=h.coord2Value(n),a=h.coord2Value(a)),(h=l.y.dataMappingMethods)&&(o=h.coord2Value(o),r=h.coord2Value(r));for(var m,V=0,U=t.length;U>V;V++)m=t[V].value||t[V],m[0]>=n&&m[0]<=a&&m[1]>=o&&m[1]<=r&&s.push(t[V]);return s},_setScale:function(){var e=0!==this._zoom.start||100!==this._zoom.end||0!==this._zoom.start2||100!==this._zoom.end2,t={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var i in t)for(var n=0,a=t[i].length;a>n;n++)t[i][n].scale=e||t[i][n]._scale},_backupScale:function(){var e={xAxis:this.option.xAxis,yAxis:this.option.yAxis};for(var t in e)for(var i=0,n=e[t].length;n>i;i++)e[t][i]._scale=e[t][i].scale},_getDetail:function(){for(var e=["xAxis","yAxis"],t=0,i=e.length;i>t;t++){var n=this._originalData[e[t]];for(var a in n){var o=n[a];if(null!=o){var r=o.length,l=Math.floor(this._zoom.start/100*r),h=Math.ceil(this._zoom.end/100*r);return h-=h>0?1:0,{start:this.getDataFromOption(o[l]),end:this.getDataFromOption(o[h])}}}}e="horizontal"==this.zoomOption.orient?"xAxis":"yAxis";var m=this._zoom.seriesIndex[0],V=this.option.series[m][e+"Index"]||0,U=this.option[e][V].type,d=this._zoom.scatterMap[m][e.charAt(0)].min,p=this._zoom.scatterMap[m][e.charAt(0)].max,c=p-d;if("value"==U)return{start:d+c*this._zoom.start/100,end:d+c*this._zoom.end/100};if("time"==U){p=d+c*this._zoom.end/100,d+=c*this._zoom.start/100;var u=s.getAutoFormatter(d,p).formatter;return{start:s.format(u,d),end:s.format(u,p)}}return{start:"",end:""}},__ondrift:function(e,t,i){this.zoomOption.zoomLock&&(e=this._fillerShae);var n="filler"==e._type?this._handleSize:0;if("horizontal"==this.zoomOption.orient?e.style.x+t-n<=this._location.x?e.style.x=this._location.x+n:e.style.x+t+e.style.width+n>=this._location.x+this._location.width?e.style.x=this._location.x+this._location.width-e.style.width-n:e.style.x+=t:e.style.y+i-n<=this._location.y?e.style.y=this._location.y+n:e.style.y+i+e.style.height+n>=this._location.y+this._location.height?e.style.y=this._location.y+this._location.height-e.style.height-n:e.style.y+=i,"filler"==e._type?this._syncHandleShape():this._syncFillerShape(),this.zoomOption.realtime&&this._syncData(),this.zoomOption.showDetail){var a=this._getDetail();this._startShape.style.text=this._startShape.highlightStyle.text=a.start,this._endShape.style.text=this._endShape.highlightStyle.text=a.end,this._startShape.style.textPosition=this._startShape.highlightStyle.textPosition,this._endShape.style.textPosition=this._endShape.highlightStyle.textPosition}return!0},__ondragend:function(){this.zoomOption.showDetail&&(this._startShape.style.text=this._endShape.style.text="=",this._startShape.style.textPosition=this._endShape.style.textPosition="inside",this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.refreshNextFrame()),this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(!this.zoomOption.realtime&&this._syncData(),t.dragOut=!0,t.dragIn=!0,this._isSilence||this.zoomOption.realtime||this.messageCenter.dispatch(r.EVENT.DATA_ZOOM,null,{zoom:this._zoom},this.myChart),t.needRefresh=!1,this.isDragend=!1)},ondataZoom:function(e,t){t.needRefresh=!0},absoluteZoom:function(e){this._zoom.start=e.start,this._zoom.end=e.end,this._zoom.start2=e.start2,this._zoom.end2=e.end2,this._syncShape(),this._syncData(!0)},rectZoom:function(e){if(!e)return this._zoom.start=this._zoom.start2=0,this._zoom.end=this._zoom.end2=100,this._syncShape(),this._syncData(!0),this._zoom;var t=this.component.grid.getArea(),i={x:e.x,y:e.y,width:e.width,height:e.height};if(i.width<0&&(i.x+=i.width,i.width=-i.width),i.height<0&&(i.y+=i.height,i.height=-i.height),i.x>t.x+t.width||i.y>t.y+t.height)return!1;i.x<t.x&&(i.x=t.x),i.x+i.width>t.x+t.width&&(i.width=t.x+t.width-i.x),i.y+i.height>t.y+t.height&&(i.height=t.y+t.height-i.y);var n,a=(i.x-t.x)/t.width,o=1-(i.x+i.width-t.x)/t.width,r=1-(i.y+i.height-t.y)/t.height,s=(i.y-t.y)/t.height;return"horizontal"==this.zoomOption.orient?(n=this._zoom.end-this._zoom.start,this._zoom.start+=n*a,this._zoom.end-=n*o,n=this._zoom.end2-this._zoom.start2,this._zoom.start2+=n*r,this._zoom.end2-=n*s):(n=this._zoom.end-this._zoom.start,this._zoom.start+=n*r,this._zoom.end-=n*s,n=this._zoom.end2-this._zoom.start2,this._zoom.start2+=n*a,this._zoom.end2-=n*o),this._syncShape(),this._syncData(!0),this._zoom},syncBackupData:function(e){for(var t,i,n=this._originalData.series,a=e.series,o=0,r=a.length;r>o;o++){i=a[o].data||a[o].eventList,t=n[o]?Math.floor(this._zoom.start/100*n[o].length):0;for(var s=0,l=i.length;l>s;s++)n[o]&&(n[o][s+t]=i[s])}},syncOption:function(e){this.silence(!0),this.option=e,this.option.dataZoom=this.reformOption(this.option.dataZoom),this.zoomOption=this.option.dataZoom,this.myChart.canvasSupported||(this.zoomOption.realtime=!1),this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this._backupData(),this.option.dataZoom&&this.option.dataZoom.show&&this._buildShape(),this._syncData(),this.silence(!1)},silence:function(e){this._isSilence=e},getRealDataIndex:function(e,t){if(!this._originalData||0===this._zoom.start&&100==this._zoom.end)return t;var i=this._originalData.series;return i[e]?Math.floor(this._zoom.start/100*i[e].length)+t:-1},resize:function(){this.clear(),this._location=this._getLocation(),this._zoom=this._getZoom(),this.option.dataZoom.show&&this._buildShape()}},l.inherits(t,i),e("../component").define("dataZoom",t),t}),i("echarts/component/categoryAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","zrender/tool/util","zrender/tool/area","../component"],function(e){function t(e,t,n,a,o,r){if(a.data.length<1)return void console.error("option.data.length < 1.");i.call(this,e,t,n,a,o),this.grid=this.component.grid;for(var s in r)this[s]=r[s];this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=e("../config");r.categoryAxis={zlevel:0,z:0,show:!0,position:"bottom",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:!0,axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!0,interval:"auto",inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,interval:"auto",rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var s=e("zrender/tool/util"),l=e("zrender/tool/area");return t.prototype={type:r.COMPONENT_TYPE_AXIS_CATEGORY,_getReformedLabel:function(e){var t=this.getDataFromOption(this.option.data[e]),i=this.option.data[e].formatter||this.option.axisLabel.formatter;return i&&("function"==typeof i?t=i.call(this.myChart,t):"string"==typeof i&&(t=i.replace("{value}",t))),t},_getInterval:function(){var e=this.option.axisLabel.interval;if("auto"==e){var t=this.option.axisLabel.textStyle.fontSize,i=this.option.data,n=this.option.data.length;if(this.isHorizontal())if(n>3){var a,o,r=this.getGap(),h=!1,m=Math.floor(.5/r);for(m=1>m?1:m,e=Math.floor(15/r);!h&&n>e;){e+=m,h=!0,a=Math.floor(r*e);for(var V=Math.floor((n-1)/e)*e;V>=0;V-=e){if(0!==this.option.axisLabel.rotate)o=t;else if(i[V].textStyle)o=l.getTextWidth(this._getReformedLabel(V),this.getFont(s.merge(i[V].textStyle,this.option.axisLabel.textStyle)));else{var U=this._getReformedLabel(V)+"",d=(U.match(/\w/g)||"").length,p=U.length-d;o=d*t*2/3+p*t}if(o>a){h=!1;break}}}}else e=1;else if(n>3){var r=this.getGap();for(e=Math.floor(11/r);t>r*e-6&&n>e;)e++}else e=1}else e="function"==typeof e?1:e-0+1;return e},_buildShape:function(){if(this._interval=this._getInterval(),this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildAxisTick:function(){var e,t=this.option.data,i=this.option.data.length,n=this.option.axisTick,o=n.length,r=n.lineStyle.color,s=n.lineStyle.width,l="function"==typeof n.interval?n.interval:"auto"==n.interval&&"function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,h=l?1:"auto"==n.interval?this._interval:n.interval-0+1,m=n.onGap,V=m?this.getGap()/2:"undefined"==typeof m&&this.option.boundaryGap?this.getGap()/2:0,U=V>0?-h:0;if(this.isHorizontal())for(var d,p="bottom"==this.option.position?n.inside?this.grid.getYend()-o-1:this.grid.getYend()+1:n.inside?this.grid.getY()+1:this.grid.getY()-o-1,c=U;i>c;c+=h)(!l||l(c,t[c]))&&(d=this.subPixelOptimize(this.getCoordByIndex(c)+(c>=0?V:0),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:d,yStart:p,xEnd:d,yEnd:p+o,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e)));else for(var u,y="left"==this.option.position?n.inside?this.grid.getX()+1:this.grid.getX()-o-1:n.inside?this.grid.getXend()-o-1:this.grid.getXend()+1,c=U;i>c;c+=h)(!l||l(c,t[c]))&&(u=this.subPixelOptimize(this.getCoordByIndex(c)-(c>=0?V:0),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:y,yStart:u,xEnd:y+o,yEnd:u,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e)))},_buildAxisLabel:function(){var e,t,i=this.option.data,a=this.option.data.length,o=this.option.axisLabel,r=o.rotate,l=o.margin,h=o.clickable,m=o.textStyle,V="function"==typeof o.interval?o.interval:!1;if(this.isHorizontal()){var U,d;"bottom"==this.option.position?(U=this.grid.getYend()+l,d="top"):(U=this.grid.getY()-l,d="bottom");for(var p=0;a>p;p+=this._interval)V&&!V(p,i[p])||""===this._getReformedLabel(p)||(t=s.merge(i[p].textStyle||{},m),e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoordByIndex(p),y:U,color:t.color,text:this._getReformedLabel(p),textFont:this.getFont(t),textAlign:t.align||"center",textBaseline:t.baseline||d}},r&&(e.style.textAlign=r>0?"bottom"==this.option.position?"right":"left":"bottom"==this.option.position?"left":"right",e.rotation=[r*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(h,e))))}else{var c,u;"left"==this.option.position?(c=this.grid.getX()-l,u="right"):(c=this.grid.getXend()+l,u="left");for(var p=0;a>p;p+=this._interval)V&&!V(p,i[p])||""===this._getReformedLabel(p)||(t=s.merge(i[p].textStyle||{},m),e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:c,y:this.getCoordByIndex(p),color:t.color,text:this._getReformedLabel(p),textFont:this.getFont(t),textAlign:t.align||u,textBaseline:t.baseline||0===p&&""!==this.option.name?"bottom":p==a-1&&""!==this.option.name?"top":"middle"}},r&&(e.rotation=[r*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(h,e))))}},_buildSplitLine:function(){var e,t=this.option.data,i=this.option.data.length,n=this.option.splitLine,o=n.lineStyle.type,r=n.lineStyle.width,s=n.lineStyle.color;s=s instanceof Array?s:[s];var l=s.length,h="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,m=n.onGap,V=m?this.getGap()/2:"undefined"==typeof m&&this.option.boundaryGap?this.getGap()/2:0;if(i-=m||"undefined"==typeof m&&this.option.boundaryGap?1:0,this.isHorizontal())for(var U,d=this.grid.getY(),p=this.grid.getYend(),c=0;i>c;c+=this._interval)(!h||h(c,t[c]))&&(U=this.subPixelOptimize(this.getCoordByIndex(c)+V,r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:U,yStart:d,xEnd:U,yEnd:p,strokeColor:s[c/this._interval%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e)));else for(var u,y=this.grid.getX(),g=this.grid.getXend(),c=0;i>c;c+=this._interval)(!h||h(c,t[c]))&&(u=this.subPixelOptimize(this.getCoordByIndex(c)-V,r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:y,yStart:u,xEnd:g,yEnd:u,strokeColor:s[c/this._interval%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e)))},_buildSplitArea:function(){var e,t=this.option.data,i=this.option.splitArea,n=i.areaStyle.color;if(n instanceof Array){var a=n.length,r=this.option.data.length,s="function"==typeof this.option.axisLabel.interval?this.option.axisLabel.interval:!1,l=i.onGap,h=l?this.getGap()/2:"undefined"==typeof l&&this.option.boundaryGap?this.getGap()/2:0;if(this.isHorizontal())for(var m,V=this.grid.getY(),U=this.grid.getHeight(),d=this.grid.getX(),p=0;r>=p;p+=this._interval)s&&!s(p,t[p])&&r>p||(m=r>p?this.getCoordByIndex(p)+h:this.grid.getXend(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:d,y:V,width:m-d,height:U,color:n[p/this._interval%a]}},this.shapeList.push(new o(e)),d=m);else for(var c,u=this.grid.getX(),y=this.grid.getWidth(),g=this.grid.getYend(),p=0;r>=p;p+=this._interval)s&&!s(p,t[p])&&r>p||(c=r>p?this.getCoordByIndex(p)-h:this.grid.getY(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:u,y:c,width:y,height:g-c,color:n[p/this._interval%a]}},this.shapeList.push(new o(e)),g=c)}else e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:n}},this.shapeList.push(new o(e))},refresh:function(e){e&&(this.option=this.reformOption(e),this.option.axisLabel.textStyle=this.getTextStyle(this.option.axisLabel.textStyle)),this.clear(),this._buildShape()},getGap:function(){var e=this.option.data.length,t=this.isHorizontal()?this.grid.getWidth():this.grid.getHeight();return this.option.boundaryGap?t/e:t/(e>1?e-1:1)},getCoord:function(e){for(var t=this.option.data,i=t.length,n=this.getGap(),a=this.option.boundaryGap?n/2:0,o=0;i>o;o++){if(this.getDataFromOption(t[o])==e)return a=this.isHorizontal()?this.grid.getX()+a:this.grid.getYend()-a;a+=n}},getCoordByIndex:function(e){if(0>e)return this.isHorizontal()?this.grid.getX():this.grid.getYend();if(e>this.option.data.length-1)return this.isHorizontal()?this.grid.getXend():this.grid.getY();var t=this.getGap(),i=this.option.boundaryGap?t/2:0;return i+=e*t,i=this.isHorizontal()?this.grid.getX()+i:this.grid.getYend()-i},getNameByIndex:function(e){return this.getDataFromOption(this.option.data[e])},getIndexByName:function(e){for(var t=this.option.data,i=t.length,n=0;i>n;n++)if(this.getDataFromOption(t[n])==e)return n;return-1},getValueFromCoord:function(){return""},isMainAxis:function(e){return e%this._interval===0}},s.inherits(t,i),e("../component").define("categoryAxis",t),t}),i("echarts/component/valueAxis",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","../config","../util/date","zrender/tool/util","../util/smartSteps","../util/accMath","../util/smartLogSteps","../component"],function(e){function t(e,t,n,a,o,r,s){if(!s||0===s.length)return void console.err("option.series.length == 0.");i.call(this,e,t,n,a,o),this.series=s,this.grid=this.component.grid;for(var l in r)this[l]=r[l];this.refresh(a,s)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Rectangle"),r=e("../config");r.valueAxis={zlevel:0,z:0,show:!0,position:"left",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:[0,0],axisLine:{show:!0,onZero:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!1,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}};var s=e("../util/date"),l=e("zrender/tool/util");return t.prototype={type:r.COMPONENT_TYPE_AXIS_VALUE,_buildShape:function(){if(this._hasData=!1,this._calculateValue(),this._hasData&&this.option.show){this.option.splitArea.show&&this._buildSplitArea(),this.option.splitLine.show&&this._buildSplitLine(),this.option.axisLine.show&&this._buildAxisLine(),this.option.axisTick.show&&this._buildAxisTick(),this.option.axisLabel.show&&this._buildAxisLabel();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildAxisTick:function(){var e,t=this._valueList,i=this._valueList.length,n=this.option.axisTick,o=n.length,r=n.lineStyle.color,s=n.lineStyle.width;if(this.isHorizontal())for(var l,h="bottom"===this.option.position?n.inside?this.grid.getYend()-o-1:this.grid.getYend()+1:n.inside?this.grid.getY()+1:this.grid.getY()-o-1,m=0;i>m;m++)l=this.subPixelOptimize(this.getCoord(t[m]),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:l,yStart:h,xEnd:l,yEnd:h+o,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e));else for(var V,U="left"===this.option.position?n.inside?this.grid.getX()+1:this.grid.getX()-o-1:n.inside?this.grid.getXend()-o-1:this.grid.getXend()+1,m=0;i>m;m++)V=this.subPixelOptimize(this.getCoord(t[m]),s),e={_axisShape:"axisTick",zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:U,yStart:V,xEnd:U+o,yEnd:V,strokeColor:r,lineWidth:s}},this.shapeList.push(new a(e))},_buildAxisLabel:function(){var e,t=this._valueList,i=this._valueList.length,a=this.option.axisLabel.rotate,o=this.option.axisLabel.margin,r=this.option.axisLabel.clickable,s=this.option.axisLabel.textStyle;if(this.isHorizontal()){var l,h;"bottom"===this.option.position?(l=this.grid.getYend()+o,h="top"):(l=this.grid.getY()-o,h="bottom");for(var m=0;i>m;m++)e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:this.getCoord(t[m]),y:l,color:"function"==typeof s.color?s.color(t[m]):s.color,text:this._valueLabel[m],textFont:this.getFont(s),textAlign:s.align||"center",textBaseline:s.baseline||h}},a&&(e.style.textAlign=a>0?"bottom"===this.option.position?"right":"left":"bottom"===this.option.position?"left":"right",e.rotation=[a*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(r,e)))}else{var V,U;"left"===this.option.position?(V=this.grid.getX()-o,U="right"):(V=this.grid.getXend()+o,U="left");for(var m=0;i>m;m++)e={zlevel:this.getZlevelBase(),z:this.getZBase()+3,hoverable:!1,style:{x:V,y:this.getCoord(t[m]),color:"function"==typeof s.color?s.color(t[m]):s.color,text:this._valueLabel[m],textFont:this.getFont(s),textAlign:s.align||U,textBaseline:s.baseline||(0===m&&""!==this.option.name?"bottom":m===i-1&&""!==this.option.name?"top":"middle")}},a&&(e.rotation=[a*Math.PI/180,e.style.x,e.style.y]),this.shapeList.push(new n(this._axisLabelClickable(r,e)))}},_buildSplitLine:function(){var e,t=this._valueList,i=this._valueList.length,n=this.option.splitLine,o=n.lineStyle.type,r=n.lineStyle.width,s=n.lineStyle.color;s=s instanceof Array?s:[s];var l=s.length;if(this.isHorizontal())for(var h,m=this.grid.getY(),V=this.grid.getYend(),U=0;i>U;U++)h=this.subPixelOptimize(this.getCoord(t[U]),r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:h,yStart:m,xEnd:h,yEnd:V,strokeColor:s[U%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e));else for(var d,p=this.grid.getX(),c=this.grid.getXend(),U=0;i>U;U++)d=this.subPixelOptimize(this.getCoord(t[U]),r),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:p,yStart:d,xEnd:c,yEnd:d,strokeColor:s[U%l],lineType:o,lineWidth:r}},this.shapeList.push(new a(e))},_buildSplitArea:function(){var e,t=this.option.splitArea.areaStyle.color;if(t instanceof Array){var i=t.length,n=this._valueList,a=this._valueList.length;if(this.isHorizontal())for(var r,s=this.grid.getY(),l=this.grid.getHeight(),h=this.grid.getX(),m=0;a>=m;m++)r=a>m?this.getCoord(n[m]):this.grid.getXend(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:h,y:s,width:r-h,height:l,color:t[m%i]}},this.shapeList.push(new o(e)),h=r;else for(var V,U=this.grid.getX(),d=this.grid.getWidth(),p=this.grid.getYend(),m=0;a>=m;m++)V=a>m?this.getCoord(n[m]):this.grid.getY(),e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:U,y:V,width:d,height:p-V,color:t[m%i]}},this.shapeList.push(new o(e)),p=V}else e={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this.grid.getX(),y:this.grid.getY(),width:this.grid.getWidth(),height:this.grid.getHeight(),color:t}},this.shapeList.push(new o(e))},_calculateValue:function(){if(isNaN(this.option.min-0)||isNaN(this.option.max-0)){for(var e,t,i={},n=this.component.legend,a=0,o=this.series.length;o>a;a++)!(this.series[a].type!=r.CHART_TYPE_LINE&&this.series[a].type!=r.CHART_TYPE_BAR&&this.series[a].type!=r.CHART_TYPE_SCATTER&&this.series[a].type!=r.CHART_TYPE_K&&this.series[a].type!=r.CHART_TYPE_EVENTRIVER||n&&!n.isSelected(this.series[a].name)||(e=this.series[a].xAxisIndex||0,t=this.series[a].yAxisIndex||0,this.option.xAxisIndex!=e&&this.option.yAxisIndex!=t||!this._calculSum(i,a)));var s;for(var a in i){s=i[a];for(var l=0,h=s.length;h>l;l++)if(!isNaN(s[l])){this._hasData=!0,this._min=s[l],this._max=s[l];break}if(this._hasData)break}for(var a in i){s=i[a];for(var l=0,h=s.length;h>l;l++)isNaN(s[l])||(this._min=Math.min(this._min,s[l]),this._max=Math.max(this._max,s[l]))}var m="log"!==this.option.type?this.option.boundaryGap:[0,0],V=Math.abs(this._max-this._min);this._min=isNaN(this.option.min-0)?this._min-Math.abs(V*m[0]):this.option.min-0,this._max=isNaN(this.option.max-0)?this._max+Math.abs(V*m[1]):this.option.max-0,this._min===this._max&&(0===this._max?this._max=1:this._max>0?this._min=this._max/this.option.splitNumber!=null?this.option.splitNumber:5:this._max=this._max/this.option.splitNumber!=null?this.option.splitNumber:5),"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._reformValue(this.option.scale)}else this._hasData=!0,this._min=this.option.min-0,this._max=this.option.max-0,"time"===this.option.type?this._reformTimeValue():"log"===this.option.type?this._reformLogValue():this._customerValue()},_calculSum:function(e,t){var i,n,a=this.series[t].name||"kener";if(this.series[t].stack){var o="__Magic_Key_Positive__"+this.series[t].stack,l="__Magic_Key_Negative__"+this.series[t].stack;e[o]=e[o]||[],e[l]=e[l]||[],e[a]=e[a]||[],n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)i=this.getDataFromOption(n[h]),"-"!==i&&(i-=0,i>=0?null!=e[o][h]?e[o][h]+=i:e[o][h]=i:null!=e[l][h]?e[l][h]+=i:e[l][h]=i,this.option.scale&&e[a].push(i))}else if(e[a]=e[a]||[],this.series[t].type!=r.CHART_TYPE_EVENTRIVER){n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)i=this.getDataFromOption(n[h]),this.series[t].type===r.CHART_TYPE_K?(e[a].push(i[0]),e[a].push(i[1]),e[a].push(i[2]),e[a].push(i[3])):i instanceof Array?(-1!=this.option.xAxisIndex&&e[a].push("time"!=this.option.type?i[0]:s.getNewDate(i[0])),-1!=this.option.yAxisIndex&&e[a].push("time"!=this.option.type?i[1]:s.getNewDate(i[1]))):e[a].push(i)}else{n=this.series[t].data;for(var h=0,m=n.length;m>h;h++)for(var V=n[h].evolution,U=0,d=V.length;d>U;U++)e[a].push(s.getNewDate(V[U].time))}},_reformValue:function(t){var i=e("../util/smartSteps"),n=this.option.splitNumber;!t&&this._min>=0&&this._max>=0&&(this._min=0),!t&&this._min<=0&&this._max<=0&&(this._max=0);var a=i(this._min,this._max,n);n=null!=n?n:a.secs,this._min=a.min,this._max=a.max,this._valueList=a.pnts,this._reformLabelData()},_reformTimeValue:function(){var e=null!=this.option.splitNumber?this.option.splitNumber:5,t=s.getAutoFormatter(this._min,this._max,e),i=t.formatter,n=t.gapValue;this._valueList=[s.getNewDate(this._min)];var a;switch(i){case"week":a=s.nextMonday(this._min);break;case"month":a=s.nextNthOnMonth(this._min,1);break;case"quarter":a=s.nextNthOnQuarterYear(this._min,1);break;case"half-year":a=s.nextNthOnHalfYear(this._min,1);break;case"year":a=s.nextNthOnYear(this._min,1);break;default:72e5>=n?a=(Math.floor(this._min/n)+1)*n:(a=s.getNewDate(this._min- -n),a.setHours(6*Math.round(a.getHours()/6)),a.setMinutes(0),a.setSeconds(0))}for(a-this._min<n/2&&(a-=-n),t=s.getNewDate(a),e*=1.5;e-->=0&&(("month"==i||"quarter"==i||"half-year"==i||"year"==i)&&t.setDate(1),!(this._max-t<n/2));)this._valueList.push(t),t=s.getNewDate(t- -n);this._valueList.push(s.getNewDate(this._max)),this._reformLabelData(function(e){return function(t){return s.format(e,t)}}(i))},_customerValue:function(){var t=e("../util/accMath"),i=null!=this.option.splitNumber?this.option.splitNumber:5,n=(this._max-this._min)/i;this._valueList=[];for(var a=0;i>=a;a++)this._valueList.push(t.accAdd(this._min,t.accMul(n,a)));this._reformLabelData()},_reformLogValue:function(){var t=this.option,i=e("../util/smartLogSteps")({dataMin:this._min,dataMax:this._max,logPositive:t.logPositive,logLabelBase:t.logLabelBase,splitNumber:t.splitNumber});this._min=i.dataMin,this._max=i.dataMax,this._valueList=i.tickList,this._dataMappingMethods=i.dataMappingMethods,this._reformLabelData(i.labelFormatter)},_reformLabelData:function(e){this._valueLabel=[];var t=this.option.axisLabel.formatter;if(t)for(var i=0,n=this._valueList.length;n>i;i++)"function"==typeof t?this._valueLabel.push(e?t.call(this.myChart,this._valueList[i],e):t.call(this.myChart,this._valueList[i])):"string"==typeof t&&this._valueLabel.push(e?s.format(t,this._valueList[i]):t.replace("{value}",this._valueList[i]));else for(var i=0,n=this._valueList.length;n>i;i++)this._valueLabel.push(e?e(this._valueList[i]):this.numAddCommas(this._valueList[i]))},getExtremum:function(){this._calculateValue();var e=this._dataMappingMethods;return{min:this._min,max:this._max,dataMappingMethods:e?l.merge({},e):null}},refresh:function(e,t){e&&(this.option=this.reformOption(e),this.option.axisLabel.textStyle=l.merge(this.option.axisLabel.textStyle||{},this.ecTheme.textStyle),this.series=t),this.zr&&(this.clear(),this._buildShape())},getCoord:function(e){this._dataMappingMethods&&(e=this._dataMappingMethods.value2Coord(e)),e=e<this._min?this._min:e,e=e>this._max?this._max:e;var t;return t=this.isHorizontal()?this.grid.getX()+(e-this._min)/(this._max-this._min)*this.grid.getWidth():this.grid.getYend()-(e-this._min)/(this._max-this._min)*this.grid.getHeight()},getCoordSize:function(e){return Math.abs(this.isHorizontal()?e/(this._max-this._min)*this.grid.getWidth():e/(this._max-this._min)*this.grid.getHeight())},getValueFromCoord:function(e){var t;return this.isHorizontal()?(e=e<this.grid.getX()?this.grid.getX():e,e=e>this.grid.getXend()?this.grid.getXend():e,t=this._min+(e-this.grid.getX())/this.grid.getWidth()*(this._max-this._min)):(e=e<this.grid.getY()?this.grid.getY():e,e=e>this.grid.getYend()?this.grid.getYend():e,t=this._max-(e-this.grid.getY())/this.grid.getHeight()*(this._max-this._min)),this._dataMappingMethods&&(t=this._dataMappingMethods.coord2Value(t)),t.toFixed(2)-0},isMaindAxis:function(e){for(var t=0,i=this._valueList.length;i>t;t++)if(this._valueList[t]===e)return!0;return!1}},l.inherits(t,i),e("../component").define("valueAxis",t),t}),i("echarts/util/date",[],function(){function e(e,t,i){i=i>1?i:2;for(var n,a,o,r,s=0,l=m.length;l>s;s++)if(n=m[s].value,a=Math.ceil(t/n)*n-Math.floor(e/n)*n,Math.round(a/n)<=1.2*i){o=m[s].formatter,r=m[s].value;break}return null==o&&(o="year",n=317088e5,a=Math.ceil(t/n)*n-Math.floor(e/n)*n,r=Math.round(a/(i-1)/n)*n),{formatter:o,gapValue:r}}function t(e){return 10>e?"0"+e:e}function i(e,i){("week"==e||"month"==e||"quarter"==e||"half-year"==e||"year"==e)&&(e="MM - dd\nyyyy");var n=h(i),a=n.getFullYear(),o=n.getMonth()+1,r=n.getDate(),s=n.getHours(),l=n.getMinutes(),m=n.getSeconds();return e=e.replace("MM",t(o)),e=e.toLowerCase(),e=e.replace("yyyy",a),e=e.replace("yy",a%100),e=e.replace("dd",t(r)),e=e.replace("d",r),e=e.replace("hh",t(s)),e=e.replace("h",s),e=e.replace("mm",t(l)),e=e.replace("m",l),e=e.replace("ss",t(m)),e=e.replace("s",m)}function n(e){return e=h(e),e.setDate(e.getDate()+8-e.getDay()),e}function a(e,t,i){return e=h(e),e.setMonth(Math.ceil((e.getMonth()+1)/i)*i),e.setDate(t),e}function o(e,t){return a(e,t,1)}function r(e,t){return a(e,t,3)}function s(e,t){return a(e,t,6)}function l(e,t){return a(e,t,12)}function h(e){return e instanceof Date?e:new Date("string"==typeof e?e.replace(/-/g,"/"):e)}var m=[{formatter:"hh : mm : ss",value:1e3},{formatter:"hh : mm : ss",value:5e3},{formatter:"hh : mm : ss",value:1e4},{formatter:"hh : mm : ss",value:15e3},{formatter:"hh : mm : ss",value:3e4},{formatter:"hh : mm\nMM - dd",value:6e4},{formatter:"hh : mm\nMM - dd",value:3e5},{formatter:"hh : mm\nMM - dd",value:6e5},{formatter:"hh : mm\nMM - dd",value:9e5},{formatter:"hh : mm\nMM - dd",value:18e5},{formatter:"hh : mm\nMM - dd",value:36e5},{formatter:"hh : mm\nMM - dd",value:72e5},{formatter:"hh : mm\nMM - dd",value:216e5},{formatter:"hh : mm\nMM - dd",value:432e5},{formatter:"MM - dd\nyyyy",value:864e5},{formatter:"week",value:6048e5},{formatter:"month",value:26784e5},{formatter:"quarter",value:8208e6},{formatter:"half-year",value:16416e6},{formatter:"year",value:32832e6}];return{getAutoFormatter:e,getNewDate:h,format:i,nextMonday:n,nextNthPerNmonth:a,nextNthOnMonth:o,nextNthOnQuarterYear:r,nextNthOnHalfYear:s,nextNthOnYear:l}}),i("echarts/util/smartSteps",[],function(){function e(e){return X.log(I(e))/X.LN10}function t(e){return X.pow(10,e)}function i(e){return e===w(e)}function n(e,t,n,a){b=a||{},f=b.steps||L,k=b.secs||W,n=v(+n||0)%99,e=+e||0,t=+t||0,x=_=0,"min"in b&&(e=+b.min||0,x=1),"max"in b&&(t=+b.max||0,_=1),e>t&&(t=[e,e=t][0]);var o=t-e;if(x&&_)return g(e,t,n);if((n||5)>o){if(i(e)&&i(t))return d(e,t,n);if(0===o)return p(e,t,n)}return h(e,t,n)}function a(e,i,n,a){a=a||0;var s=o((i-e)/n,-1),l=o(e,-1,1),h=o(i,-1),m=X.min(s.e,l.e,h.e);0===l.c?m=X.min(s.e,h.e):0===h.c&&(m=X.min(s.e,l.e)),r(s,{c:0,e:m}),r(l,s,1),r(h,s),a+=m,e=l.c,i=h.c;for(var V=(i-e)/n,U=t(a),d=0,p=[],c=n+1;c--;)p[c]=(e+V*c)*U;if(0>a){d=u(U),V=+(V*U).toFixed(d),e=+(e*U).toFixed(d),i=+(i*U).toFixed(d);for(var c=p.length;c--;)p[c]=p[c].toFixed(d),0===+p[c]&&(p[c]="0")}else e*=U,i*=U,V*=U;return k=0,f=0,b=0,{min:e,max:i,secs:n,step:V,fix:d,exp:a,pnts:p}}function o(n,a,o){a=v(a%10)||2,0>a&&(i(n)?a=(""+I(n)).replace(/0+$/,"").length||1:(n=n.toFixed(15).replace(/0+$/,""),a=n.replace(".","").replace(/^[-0]+/,"").length,n=+n));var r=w(e(n))-a+1,s=+(n*t(-r)).toFixed(15)||0;return s=o?w(s):K(s),!s&&(r=0),(""+I(s)).length>a&&(r+=1,s/=10),{c:s,e:r}}function r(e,i,n){var a=i.e-e.e;a&&(e.e+=a,e.c*=t(-a),e.c=n?w(e.c):K(e.c))}function s(e,t,i){e.e<t.e?r(t,e,i):r(e,t,i)}function l(e,t){t=t||L,e=o(e);for(var i=e.c,n=0;i>t[n];)n++;if(!t[n])for(i/=10,e.e+=1,n=0;i>t[n];)n++;return e.c=t[n],e}function h(e,t,n){var s,h=n||+k.slice(-1),p=l((t-e)/h,f),u=o(t-e),g=o(e,-1,1),b=o(t,-1);if(r(u,p),r(g,p,1),r(b,p),n?s=V(g,b,h):h=m(g,b),i(e)&&i(t)&&e*t>=0){if(h>t-e)return d(e,t,h);h=U(e,t,n,g,b,h)}var L=c(e,t,g.c,b.c);return g.c=L[0],b.c=L[1],(x||_)&&y(e,t,g,b),a(g.c,b.c,h,b.e)}function m(e,i){for(var n,a,o,r,s=[],h=k.length;h--;)n=k[h],a=l((i.c-e.c)/n,f),a=a.c*t(a.e),o=w(e.c/a)*a,r=K(i.c/a)*a,s[h]={min:o,max:r,step:a,span:r-o};return s.sort(function(e,t){var i=e.span-t.span;return 0===i&&(i=e.step-t.step),i}),s=s[0],n=s.span/s.step,e.c=s.min,i.c=s.max,3>n?2*n:n}function V(e,i,n){for(var a,o,r=i.c,s=(i.c-e.c)/n-1;r>e.c;)s=l(s+1,f),s=s.c*t(s.e),a=s*n,o=K(i.c/s)*s,r=o-a;var h=e.c-r,m=o-i.c,V=h-m;return V>1.1*s&&(V=v(V/s/2)*s,r+=V,o+=V),e.c=r,i.c=o,s}function U(e,n,a,o,r,s){var l=r.c-o.c,h=l/s*t(r.e);if(!i(h)&&(h=w(h),l=h*s,n-e>l&&(h+=1,l=h*s,!a&&h*(s-1)>=n-e&&(s-=1,l=h*s)),l>=n-e)){var m=l-(n-e);o.c=v(e-m/2),r.c=v(n+m/2),o.e=0,r.e=0}return s}function d(e,t,i){if(i=i||5,x)t=e+i;else if(_)e=t-i;else{var n=i-(t-e),o=v(e-n/2),r=v(t+n/2),s=c(e,t,o,r);e=s[0],t=s[1]}return a(e,t,i)}function p(e,t,i){i=i||5;var n=X.min(I(t/i),i)/2.1;return x?t=e+n:_?e=t-n:(e-=n,t+=n),h(e,t,i)}function c(e,t,i,n){
-return e>=0&&0>i?(n-=i,i=0):0>=t&&n>0&&(i-=n,n=0),[i,n]}function u(e){return e=(+e).toFixed(15).split("."),e.pop().replace(/0+$/,"").length}function y(e,t,i,n){if(x){var a=o(e,4,1);i.e-a.e>6&&(a={c:0,e:i.e}),s(i,a),s(n,a),n.c+=a.c-i.c,i.c=a.c}else if(_){var r=o(t,4);n.e-r.e>6&&(r={c:0,e:n.e}),s(i,r),s(n,r),i.c+=r.c-n.c,n.c=r.c}}function g(e,t,i){var n=i?[i]:k,s=t-e;if(0===s)return t=o(t,3),i=n[0],t.c=v(t.c+i/2),a(t.c-i,t.c,i,t.e);I(t/s)<1e-6&&(t=0),I(e/s)<1e-6&&(e=0);var l,h,m,V=[[5,10],[10,2],[50,10],[100,2]],U=[],d=[],p=o(t-e,3),c=o(e,-1,1),u=o(t,-1);r(c,p,1),r(u,p),s=u.c-c.c,p.c=s;for(var y=n.length;y--;){i=n[y],l=K(s/i),h=l*i-s,m=3*(h+3),m+=2*(i-n[0]+2),i%5===0&&(m-=10);for(var g=V.length;g--;)l%V[g][0]===0&&(m/=V[g][1]);d[y]=[i,l,h,m].join(),U[y]={secs:i,step:l,delta:h,score:m}}return U.sort(function(e,t){return e.score-t.score}),U=U[0],c.c=v(c.c-U.delta/2),u.c=v(u.c+U.delta/2),a(c.c,u.c,U.secs,p.e)}var b,f,k,x,_,L=[10,20,25,50],W=[4,5,6],X=Math,v=X.round,w=X.floor,K=X.ceil,I=X.abs;return n}),i("echarts/util/smartLogSteps",["require","./number"],function(e){function t(e){return i(),u=e||{},n(),a(),[o(),i()][0]}function i(){U=u=g=c=b=f=y=k=d=p=null}function n(){d=u.logLabelBase,null==d?(p="plain",d=10,c=I):(d=+d,1>d&&(d=10),p="exponent",c=L(d)),y=u.splitNumber,null==y&&(y=E);var e=parseFloat(u.dataMin),t=parseFloat(u.dataMax);isFinite(e)||isFinite(t)?isFinite(e)?isFinite(t)?e>t&&(t=[e,e=t][0]):t=e:e=t:e=t=1,U=u.logPositive,null==U&&(U=t>0||0===e),b=U?e:-t,f=U?t:-e,S>b&&(b=S),S>f&&(f=S)}function a(){function e(){y>m&&(y=m);var e=w(l(m/y)),t=v(l(m/e)),i=e*t,n=(i-U)/2,a=w(l(r-n));V(a-r)&&(a-=1),g=-a*c;for(var s=a;o>=s-e;s+=e)k.push(W(d,s))}function t(){for(var e=i(h,0),t=e+2;t>e&&a(e+1)+n(e+1)*C<r;)e++;for(var l=i(s,0),t=l-2;l>t&&a(l-1)+n(l-1)*C>o;)l--;g=-(a(e)*I+n(e)*J);for(var m=e;l>=m;m++){var V=a(m),U=n(m);k.push(W(10,V)*W(2,U))}}function i(e,t){return 3*e+t}function n(e){return e-3*a(e)}function a(e){return w(l(e/3))}k=[];var o=l(L(f)/c),r=l(L(b)/c),s=v(o),h=w(r),m=s-h,U=o-r;"exponent"===p?e():F>=m&&y>F?t():e()}function o(){for(var e=[],t=0,i=k.length;i>t;t++)e[t]=(U?1:-1)*k[t];!U&&e.reverse();var n=s(),a=n.value2Coord,o=a(e[0]),l=a(e[e.length-1]);return o===l&&(o-=1,l+=1),{dataMin:o,dataMax:l,tickList:e,logPositive:U,labelFormatter:r(),dataMappingMethods:n}}function r(){if("exponent"===p){var e=d,t=c;return function(i){if(!isFinite(parseFloat(i)))return"";var n="";return 0>i&&(i=-i,n="-"),n+e+m(L(i)/t)}}return function(e){return isFinite(parseFloat(e))?x.addCommas(h(e)):""}}function s(){var e=U,t=g;return{value2Coord:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)?e&&S>i?i=S:!e&&i>-S&&(i=-S):i=S,i=X(i),(e?1:-1)*(L(i)+t))},coord2Value:function(i){return null==i||isNaN(i)||!isFinite(i)?i:(i=parseFloat(i),isFinite(i)||(i=S),e?W(K,i-t):-W(K,-i+t))}}}function l(e){return+Number(+e).toFixed(14)}function h(e){return Number(e).toFixed(15).replace(/\.?0*$/,"")}function m(e){e=h(Math.round(e));for(var t=[],i=0,n=e.length;n>i;i++){var a=e.charAt(i);t.push(T[a]||"")}return t.join("")}function V(e){return e>-S&&S>e}var U,d,p,c,u,y,g,b,f,k,x=e("./number"),_=Math,L=_.log,W=_.pow,X=_.abs,v=_.ceil,w=_.floor,K=_.E,I=_.LN10,J=_.LN2,C=J/I,S=1e-9,E=5,F=2,T={0:"⁰",1:"¹",2:"²",3:"³",4:"⁴",5:"⁵",6:"⁶",7:"⁷",8:"⁸",9:"⁹","-":"⁻"};return t}),i("echarts/chart/line",["require","./base","zrender/shape/Polyline","../util/shape/Icon","../util/shape/HalfSmoothPolygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,i,a,o){n.call(this,e,t,i,a,o),this.refresh(a)}function i(e,t,i){var n=t.x,a=t.y,r=t.width,s=t.height,l=s/2;t.symbol.match("empty")&&(e.fillStyle="#fff"),t.brushType="both";var h=t.symbol.replace("empty","").toLowerCase();h.match("star")?(l=h.replace("star","")-0||5,a-=1,h="star"):("rectangle"===h||"arrow"===h)&&(n+=(r-s)/2,r=s);var m="";if(h.match("image")&&(m=h.replace(new RegExp("^image:\\/\\/"),""),h="image",n+=Math.round((r-s)/2)-1,r=s+=2),h=o.prototype.iconLibrary[h]){var V=t.x,U=t.y;e.moveTo(V,U+l),e.lineTo(V+5,U+l),e.moveTo(V+t.width-5,U+l),e.lineTo(V+t.width,U+l);var d=this;h(e,{x:n+4,y:a+4,width:r-8,height:s-8,n:l,image:m},function(){d.modSelf(),i()})}else e.moveTo(n,a+l),e.lineTo(n+r,a+l)}var n=e("./base"),a=e("zrender/shape/Polyline"),o=e("../util/shape/Icon"),r=e("../util/shape/HalfSmoothPolygon");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var s=e("../config");s.line={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,dataFilter:"nearest",itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid",shadowColor:"rgba(0,0,0,0)",shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0}},emphasis:{label:{show:!1}}},symbolSize:2,showAllSymbol:!1};var l=e("../util/ecData"),h=e("zrender/tool/util"),m=e("zrender/tool/color");return t.prototype={type:s.CHART_TYPE_LINE,_buildShape:function(){this.finalPLMap={},this._buildPosition()},_buildHorizontal:function(e,t,i,n){for(var a,o,r,s,l,h,m,V,U,d=this.series,p=i[0][0],c=d[p],u=this.component.xAxis.getAxis(c.xAxisIndex||0),y={},g=0,b=t;b>g&&null!=u.getNameByIndex(g);g++){o=u.getCoordByIndex(g);for(var f=0,k=i.length;k>f;f++){a=this.component.yAxis.getAxis(d[i[f][0]].yAxisIndex||0),l=s=m=h=a.getCoord(0);for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),y[p]=y[p]||[],n[p]=n[p]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(s-=x>0?a.getCoordSize(U):l-a.getCoord(U),r=s):0>U&&(h+=x>0?a.getCoordSize(U):a.getCoord(U)-m,r=h),y[p].push([o,r,g,u.getNameByIndex(g),o,l]),n[p].min>U&&(n[p].min=U,n[p].minY=r,n[p].minX=o),n[p].max<U&&(n[p].max=U,n[p].maxY=r,n[p].maxX=o),n[p].sum+=U,n[p].counter++):y[p].length>0&&(this.finalPLMap[p]=this.finalPLMap[p]||[],this.finalPLMap[p].push(y[p]),y[p]=[])}s=this.component.grid.getY();for(var L,f=0,k=i.length;k>f;f++)for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),"-"==U&&this.deepQuery([V,c,this.option],"calculable")&&(L=this.deepQuery([V,c],"symbolSize"),s+=2*L+5,r=s,this.shapeList.push(this._getCalculableItem(p,g,u.getNameByIndex(g),o,r,"horizontal")))}for(var W in y)y[W].length>0&&(this.finalPLMap[W]=this.finalPLMap[W]||[],this.finalPLMap[W].push(y[W]),y[W]=[]);this._calculMarkMapXY(n,i,"y"),this._buildBorkenLine(e,this.finalPLMap,u,"horizontal")},_buildVertical:function(e,t,i,n){for(var a,o,r,s,l,h,m,V,U,d=this.series,p=i[0][0],c=d[p],u=this.component.yAxis.getAxis(c.yAxisIndex||0),y={},g=0,b=t;b>g&&null!=u.getNameByIndex(g);g++){r=u.getCoordByIndex(g);for(var f=0,k=i.length;k>f;f++){a=this.component.xAxis.getAxis(d[i[f][0]].xAxisIndex||0),l=s=m=h=a.getCoord(0);for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),y[p]=y[p]||[],n[p]=n[p]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},"-"!==U?(U>=0?(s+=x>0?a.getCoordSize(U):a.getCoord(U)-l,o=s):0>U&&(h-=x>0?a.getCoordSize(U):m-a.getCoord(U),o=h),y[p].push([o,r,g,u.getNameByIndex(g),l,r]),n[p].min>U&&(n[p].min=U,n[p].minX=o,n[p].minY=r),n[p].max<U&&(n[p].max=U,n[p].maxX=o,n[p].maxY=r),n[p].sum+=U,n[p].counter++):y[p].length>0&&(this.finalPLMap[p]=this.finalPLMap[p]||[],this.finalPLMap[p].push(y[p]),y[p]=[])}s=this.component.grid.getXend();for(var L,f=0,k=i.length;k>f;f++)for(var x=0,_=i[f].length;_>x;x++)p=i[f][x],c=d[p],V=c.data[g],U=this.getDataFromOption(V,"-"),"-"==U&&this.deepQuery([V,c,this.option],"calculable")&&(L=this.deepQuery([V,c],"symbolSize"),s-=2*L+5,o=s,this.shapeList.push(this._getCalculableItem(p,g,u.getNameByIndex(g),o,r,"vertical")))}for(var W in y)y[W].length>0&&(this.finalPLMap[W]=this.finalPLMap[W]||[],this.finalPLMap[W].push(y[W]),y[W]=[]);this._calculMarkMapXY(n,i,"x"),this._buildBorkenLine(e,this.finalPLMap,u,"vertical")},_buildOther:function(e,t,i,n){for(var a,o=this.series,r={},s=0,l=i.length;l>s;s++)for(var h=0,m=i[s].length;m>h;h++){var V=i[s][h],U=o[V];a=this.component.xAxis.getAxis(U.xAxisIndex||0);var d=this.component.yAxis.getAxis(U.yAxisIndex||0),p=d.getCoord(0);r[V]=r[V]||[],n[V]=n[V]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var c=0,u=U.data.length;u>c;c++){var y=U.data[c],g=this.getDataFromOption(y,"-");if(g instanceof Array){var b=a.getCoord(g[0]),f=d.getCoord(g[1]);r[V].push([b,f,c,g[0],b,p]),n[V].min0>g[0]&&(n[V].min0=g[0],n[V].minY0=f,n[V].minX0=b),n[V].max0<g[0]&&(n[V].max0=g[0],n[V].maxY0=f,n[V].maxX0=b),n[V].sum0+=g[0],n[V].counter0++,n[V].min1>g[1]&&(n[V].min1=g[1],n[V].minY1=f,n[V].minX1=b),n[V].max1<g[1]&&(n[V].max1=g[1],n[V].maxY1=f,n[V].maxX1=b),n[V].sum1+=g[1],n[V].counter1++}}}for(var k in r)r[k].length>0&&(this.finalPLMap[k]=this.finalPLMap[k]||[],this.finalPLMap[k].push(r[k]),r[k]=[]);this._calculMarkMapXY(n,i,"xy"),this._buildBorkenLine(e,this.finalPLMap,a,"other")},_buildBorkenLine:function(e,t,i,n){for(var o,s="other"==n?"horizontal":n,V=this.series,U=e.length-1;U>=0;U--){var d=e[U],p=V[d],c=t[d];if(p.type===this.type&&null!=c)for(var u=this._getBbox(d,s),y=this._sIndex2ColorMap[d],g=this.query(p,"itemStyle.normal.lineStyle.width"),b=this.query(p,"itemStyle.normal.lineStyle.type"),f=this.query(p,"itemStyle.normal.lineStyle.color"),k=this.getItemStyleColor(this.query(p,"itemStyle.normal.color"),d,-1),x=null!=this.query(p,"itemStyle.normal.areaStyle"),_=this.query(p,"itemStyle.normal.areaStyle.color"),L=0,W=c.length;W>L;L++){var X=c[L],v="other"!=n&&this._isLarge(s,X);if(v)X=this._getLargePointList(s,X,p.dataFilter);else for(var w=0,K=X.length;K>w;w++)o=p.data[X[w][2]],(this.deepQuery([o,p,this.option],"calculable")||this.deepQuery([o,p],"showAllSymbol")||"categoryAxis"===i.type&&i.isMainAxis(X[w][2])&&"none"!=this.deepQuery([o,p],"symbol"))&&this.shapeList.push(this._getSymbol(d,X[w][2],X[w][3],X[w][0],X[w][1],s));var I=new a({zlevel:p.zlevel,z:p.z,style:{miterLimit:g,pointList:X,strokeColor:f||k||y,lineWidth:g,lineType:b,smooth:this._getSmooth(p.smooth),smoothConstraint:u,shadowColor:this.query(p,"itemStyle.normal.lineStyle.shadowColor"),shadowBlur:this.query(p,"itemStyle.normal.lineStyle.shadowBlur"),shadowOffsetX:this.query(p,"itemStyle.normal.lineStyle.shadowOffsetX"),shadowOffsetY:this.query(p,"itemStyle.normal.lineStyle.shadowOffsetY")},hoverable:!1,_main:!0,_seriesIndex:d,_orient:s});if(l.pack(I,V[d],d,0,L,V[d].name),this.shapeList.push(I),x){var J=new r({zlevel:p.zlevel,z:p.z,style:{miterLimit:g,pointList:h.clone(X).concat([[X[X.length-1][4],X[X.length-1][5]],[X[0][4],X[0][5]]]),brushType:"fill",smooth:this._getSmooth(p.smooth),smoothConstraint:u,color:_?_:m.alpha(y,.5)},highlightStyle:{brushType:"fill"},hoverable:!1,_main:!0,_seriesIndex:d,_orient:s});l.pack(J,V[d],d,0,L,V[d].name),this.shapeList.push(J)}}}},_getBbox:function(e,t){var i=this.component.grid.getBbox(),n=this.xMarkMap[e];return null!=n.minX0?[[Math.min(n.minX0,n.maxX0,n.minX1,n.maxX1),Math.min(n.minY0,n.maxY0,n.minY1,n.maxY1)],[Math.max(n.minX0,n.maxX0,n.minX1,n.maxX1),Math.max(n.minY0,n.maxY0,n.minY1,n.maxY1)]]:("horizontal"===t?(i[0][1]=Math.min(n.minY,n.maxY),i[1][1]=Math.max(n.minY,n.maxY)):(i[0][0]=Math.min(n.minX,n.maxX),i[1][0]=Math.max(n.minX,n.maxX)),i)},_isLarge:function(e,t){return t.length<2?!1:"horizontal"===e?Math.abs(t[0][0]-t[1][0])<.5:Math.abs(t[0][1]-t[1][1])<.5},_getLargePointList:function(e,t,i){var n;n="horizontal"===e?this.component.grid.getWidth():this.component.grid.getHeight();var a=t.length,o=[];if("function"!=typeof i)switch(i){case"min":i=function(e){return Math.max.apply(null,e)};break;case"max":i=function(e){return Math.min.apply(null,e)};break;case"average":i=function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i];return t/e.length};break;default:i=function(e){return e[0]}}for(var r=[],s=0;n>s;s++){var l=Math.floor(a/n*s),h=Math.min(Math.floor(a/n*(s+1)),a);if(!(l>=h)){for(var m=l;h>m;m++)r[m-l]="horizontal"===e?t[m][1]:t[m][0];r.length=h-l;for(var V=i(r),U=-1,d=1/0,m=l;h>m;m++){var p="horizontal"===e?t[m][1]:t[m][0],c=Math.abs(p-V);d>c&&(U=m,d=c)}var u=t[U].slice();"horizontal"===e?u[1]=V:u[0]=V,o.push(u)}}return o},_getSmooth:function(e){return e?.3:0},_getCalculableItem:function(e,t,i,n,a,o){var r=this.series,l=r[e].calculableHolderColor||this.ecTheme.calculableHolderColor||s.calculableHolderColor,h=this._getSymbol(e,t,i,n,a,o);return h.style.color=l,h.style.strokeColor=l,h.rotation=[0,0],h.hoverable=!1,h.draggable=!1,h.style.text=void 0,h},_getSymbol:function(e,t,i,n,a,o){var r=this.series,s=r[e],l=s.data[t],h=this.getSymbolShape(s,e,l,t,i,n,a,this._sIndex2ShapeMap[e],this._sIndex2ColorMap[e],"#fff","vertical"===o?"horizontal":"vertical");return h.zlevel=s.zlevel,h.z=s.z+1,this.deepQuery([l,s,this.option],"calculable")&&(this.setCalculable(h),h.draggable=!0),h},getMarkCoord:function(e,t){var i=this.series[e],n=this.xMarkMap[e],a=this.component.xAxis.getAxis(i.xAxisIndex),o=this.component.yAxis.getAxis(i.yAxisIndex);if(t.type&&("max"===t.type||"min"===t.type||"average"===t.type)){var r=null!=t.valueIndex?t.valueIndex:null!=n.maxX0?"1":"";return[n[t.type+"X"+r],n[t.type+"Y"+r],n[t.type+"Line"+r],n[t.type+r]]}return["string"!=typeof t.xAxis&&a.getCoordByIndex?a.getCoordByIndex(t.xAxis||0):a.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&o.getCoordByIndex?o.getCoordByIndex(t.yAxis||0):o.getCoord(t.yAxis||0)]},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},ontooltipHover:function(e,t){for(var i,n,a=e.seriesIndex,o=e.dataIndex,r=a.length;r--;)if(i=this.finalPLMap[a[r]])for(var s=0,l=i.length;l>s;s++){n=i[s];for(var h=0,m=n.length;m>h;h++)o===n[h][2]&&t.push(this._getSymbol(a[r],n[h][2],n[h][3],n[h][0],n[h][1],"horizontal"))}},addDataAnimation:function(e,t){function i(){c--,0===c&&t&&t()}function n(e){e.style.controlPointList=null}for(var a=this.series,o={},r=0,s=e.length;s>r;r++)o[e[r][0]]=e[r];for(var l,h,m,V,U,d,p,c=0,r=this.shapeList.length-1;r>=0;r--)if(U=this.shapeList[r]._seriesIndex,o[U]&&!o[U][3]){if(this.shapeList[r]._main&&this.shapeList[r].style.pointList.length>1){if(d=this.shapeList[r].style.pointList,h=Math.abs(d[0][0]-d[1][0]),V=Math.abs(d[0][1]-d[1][1]),p="horizontal"===this.shapeList[r]._orient,o[U][2]){if("half-smooth-polygon"===this.shapeList[r].type){var u=d.length;this.shapeList[r].style.pointList[u-3]=d[u-2],this.shapeList[r].style.pointList[u-3][p?0:1]=d[u-4][p?0:1],this.shapeList[r].style.pointList[u-2]=d[u-1]}this.shapeList[r].style.pointList.pop(),p?(l=h,m=0):(l=0,m=-V)}else{if(this.shapeList[r].style.pointList.shift(),"half-smooth-polygon"===this.shapeList[r].type){var y=this.shapeList[r].style.pointList.pop();p?y[0]=d[0][0]:y[1]=d[0][1],this.shapeList[r].style.pointList.push(y)}p?(l=-h,m=0):(l=0,m=V)}this.shapeList[r].style.controlPointList=null,this.zr.modShape(this.shapeList[r])}else{if(o[U][2]&&this.shapeList[r]._dataIndex===a[U].data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!o[U][2]&&0===this.shapeList[r]._dataIndex){this.zr.delShape(this.shapeList[r].id);continue}}this.shapeList[r].position=[0,0],c++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).during(n).done(i).start()}c||t&&t()}},o.prototype.iconLibrary.legendLineIcon=i,h.inherits(t,n),e("../chart").define("line",t),t}),i("echarts/util/shape/HalfSmoothPolygon",["require","zrender/shape/Base","zrender/shape/util/smoothBezier","zrender/tool/util","zrender/shape/Polygon"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/util/smoothBezier"),a=e("zrender/tool/util");return t.prototype={type:"half-smooth-polygon",buildPath:function(t,i){var a=i.pointList;if(!(a.length<2))if(i.smooth){var o=n(a.slice(0,-2),i.smooth,!1,i.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var r,s,l,h=a.length,m=0;h-3>m;m++)r=o[2*m],s=o[2*m+1],l=a[m+1],t.bezierCurveTo(r[0],r[1],s[0],s[1],l[0],l[1]);t.lineTo(a[h-2][0],a[h-2][1]),t.lineTo(a[h-1][0],a[h-1][1]),t.lineTo(a[0][0],a[0][1])}else e("zrender/shape/Polygon").prototype.buildPath(t,i)}},a.inherits(t,i),t}),i("echarts/chart/bar",["require","./base","zrender/shape/Rectangle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Rectangle");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var a=e("../config");a.bar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}},emphasis:{barBorderColor:"#fff",barBorderRadius:0,barBorderWidth:0,label:{show:!1}}}};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_BAR,_buildShape:function(){this._buildPosition()},_buildNormal:function(e,t,i,o,r){for(var s,l,h,m,V,U,d,p,c,u,y,g,b=this.series,f=i[0][0],k=b[f],x="horizontal"==r,_=this.component.xAxis,L=this.component.yAxis,W=x?_.getAxis(k.xAxisIndex):L.getAxis(k.yAxisIndex),X=this._mapSize(W,i),v=X.gap,w=X.barGap,K=X.barWidthMap,I=X.barMaxWidthMap,J=X.barWidth,C=X.barMinHeightMap,S=X.interval,E=this.deepQuery([this.ecTheme,a],"island.r"),F=0,T=t;T>F&&null!=W.getNameByIndex(F);F++){x?m=W.getCoordByIndex(F)-v/2:V=W.getCoordByIndex(F)+v/2;for(var z=0,A=i.length;A>z;z++){var M=b[i[z][0]].yAxisIndex||0,O=b[i[z][0]].xAxisIndex||0;s=x?L.getAxis(M):_.getAxis(O),d=U=c=p=s.getCoord(0);for(var P=0,D=i[z].length;D>P;P++)f=i[z][P],k=b[f],y=k.data[F],g=this.getDataFromOption(y,"-"),o[f]=o[f]||{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY,sum:0,counter:0,average:0},h=Math.min(I[f]||Number.MAX_VALUE,K[f]||J),"-"!==g&&(g>0?(l=P>0?s.getCoordSize(g):x?d-s.getCoord(g):s.getCoord(g)-d,1===D&&C[f]>l&&(l=C[f]),x?(U-=l,V=U):(m=U,U+=l)):0>g?(l=P>0?s.getCoordSize(g):x?s.getCoord(g)-c:c-s.getCoord(g),1===D&&C[f]>l&&(l=C[f]),x?(V=p,p+=l):(p-=l,m=p)):(l=0,x?(U-=l,V=U):(m=U,U+=l)),o[f][F]=x?m+h/2:V-h/2,o[f].min>g&&(o[f].min=g,x?(o[f].minY=V,o[f].minX=o[f][F]):(o[f].minX=m+l,o[f].minY=o[f][F])),o[f].max<g&&(o[f].max=g,x?(o[f].maxY=V,o[f].maxX=o[f][F]):(o[f].maxX=m+l,o[f].maxY=o[f][F])),o[f].sum+=g,o[f].counter++,F%S===0&&(u=this._getBarItem(f,F,W.getNameByIndex(F),m,V-(x?0:h),x?h:l,x?l:h,x?"vertical":"horizontal"),this.shapeList.push(new n(u))));for(var P=0,D=i[z].length;D>P;P++)f=i[z][P],k=b[f],y=k.data[F],g=this.getDataFromOption(y,"-"),h=Math.min(I[f]||Number.MAX_VALUE,K[f]||J),"-"==g&&this.deepQuery([y,k,this.option],"calculable")&&(x?(U-=E,V=U):(m=U,U+=E),u=this._getBarItem(f,F,W.getNameByIndex(F),m,V-(x?0:h),x?h:E,x?E:h,x?"vertical":"horizontal"),u.hoverable=!1,u.draggable=!1,u.style.lineWidth=1,u.style.brushType="stroke",u.style.strokeColor=k.calculableHolderColor||this.ecTheme.calculableHolderColor||a.calculableHolderColor,this.shapeList.push(new n(u)));x?m+=h+w:V-=h+w}}this._calculMarkMapXY(o,i,x?"y":"x")},_buildHorizontal:function(e,t,i,n){return this._buildNormal(e,t,i,n,"horizontal")},_buildVertical:function(e,t,i,n){return this._buildNormal(e,t,i,n,"vertical")},_buildOther:function(e,t,i,a){for(var o=this.series,r=0,s=i.length;s>r;r++)for(var l=0,h=i[r].length;h>l;l++){var m=i[r][l],V=o[m],U=V.xAxisIndex||0,d=this.component.xAxis.getAxis(U),p=d.getCoord(0),c=V.yAxisIndex||0,u=this.component.yAxis.getAxis(c),y=u.getCoord(0);a[m]=a[m]||{min0:Number.POSITIVE_INFINITY,min1:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum0:0,sum1:0,counter0:0,counter1:0,average0:0,average1:0};for(var g=0,b=V.data.length;b>g;g++){var f=V.data[g],k=this.getDataFromOption(f,"-");if(k instanceof Array){var x,_,L=d.getCoord(k[0]),W=u.getCoord(k[1]),X=[f,V],v=this.deepQuery(X,"barWidth")||10,w=this.deepQuery(X,"barHeight");null!=w?(x="horizontal",k[0]>0?(v=L-p,L-=v):v=k[0]<0?p-L:0,_=this._getBarItem(m,g,k[0],L,W-w/2,v,w,x)):(x="vertical",k[1]>0?w=y-W:k[1]<0?(w=W-y,W-=w):w=0,_=this._getBarItem(m,g,k[0],L-v/2,W,v,w,x)),this.shapeList.push(new n(_)),L=d.getCoord(k[0]),W=u.getCoord(k[1]),a[m].min0>k[0]&&(a[m].min0=k[0],a[m].minY0=W,a[m].minX0=L),a[m].max0<k[0]&&(a[m].max0=k[0],a[m].maxY0=W,a[m].maxX0=L),a[m].sum0+=k[0],a[m].counter0++,a[m].min1>k[1]&&(a[m].min1=k[1],a[m].minY1=W,a[m].minX1=L),a[m].max1<k[1]&&(a[m].max1=k[1],a[m].maxY1=W,a[m].maxX1=L),a[m].sum1+=k[1],a[m].counter1++}}}this._calculMarkMapXY(a,i,"xy")},_mapSize:function(e,t,i){var n,a,o=this._findSpecialBarSzie(t,i),r=o.barWidthMap,s=o.barMaxWidthMap,l=o.barMinHeightMap,h=o.sBarWidthCounter,m=o.sBarWidthTotal,V=o.barGap,U=o.barCategoryGap,d=1;if(t.length!=h){if(i)n=e.getGap(),V=0,a=+(n/t.length).toFixed(2),0>=a&&(d=Math.floor(t.length/n),a=1);else if(n="string"==typeof U&&U.match(/%$/)?(e.getGap()*(100-parseFloat(U))/100).toFixed(2)-0:e.getGap()-U,"string"==typeof V&&V.match(/%$/)?(V=parseFloat(V)/100,a=+((n-m)/((t.length-1)*V+t.length-h)).toFixed(2),V=a*V):(V=parseFloat(V),a=+((n-m-V*(t.length-1))/(t.length-h)).toFixed(2)),0>=a)return this._mapSize(e,t,!0)}else if(n=h>1?"string"==typeof U&&U.match(/%$/)?+(e.getGap()*(100-parseFloat(U))/100).toFixed(2):e.getGap()-U:m,a=0,V=h>1?+((n-m)/(h-1)).toFixed(2):0,0>V)return this._mapSize(e,t,!0);return this._recheckBarMaxWidth(t,r,s,l,n,a,V,d)},_findSpecialBarSzie:function(e,t){for(var i,n,a,o,r=this.series,s={},l={},h={},m=0,V=0,U=0,d=e.length;d>U;U++)for(var p={barWidth:!1,barMaxWidth:!1},c=0,u=e[U].length;u>c;c++){var y=e[U][c],g=r[y];if(!t){if(p.barWidth)s[y]=i;else if(i=this.query(g,"barWidth"),null!=i){s[y]=i,V+=i,m++,p.barWidth=!0;for(var b=0,f=c;f>b;b++){var k=e[U][b];s[k]=i}}if(p.barMaxWidth)l[y]=n;else if(n=this.query(g,"barMaxWidth"),null!=n){l[y]=n,p.barMaxWidth=!0;for(var b=0,f=c;f>b;b++){var k=e[U][b];l[k]=n}}}h[y]=this.query(g,"barMinHeight"),a=null!=a?a:this.query(g,"barGap"),o=null!=o?o:this.query(g,"barCategoryGap")}return{barWidthMap:s,barMaxWidthMap:l,barMinHeightMap:h,sBarWidth:i,sBarMaxWidth:n,sBarWidthCounter:m,sBarWidthTotal:V,barGap:a,barCategoryGap:o}},_recheckBarMaxWidth:function(e,t,i,n,a,o,r,s){for(var l=0,h=e.length;h>l;l++){var m=e[l][0];i[m]&&i[m]<o&&(a-=o-i[m])}return{barWidthMap:t,barMaxWidthMap:i,barMinHeightMap:n,gap:a,barWidth:o,barGap:r,interval:s}},_getBarItem:function(e,t,i,n,a,r,l,h){var m,V=this.series,U=V[e],d=U.data[t],p=this._sIndex2ColorMap[e],c=[d,U],u=this.deepMerge(c,"itemStyle.normal"),y=this.deepMerge(c,"itemStyle.emphasis"),g=u.barBorderWidth;m={zlevel:U.zlevel,z:U.z,clickable:this.deepQuery(c,"clickable"),style:{x:n,y:a,width:r,height:l,brushType:"both",color:this.getItemStyleColor(this.deepQuery(c,"itemStyle.normal.color")||p,e,t,d),radius:u.barBorderRadius,lineWidth:g,strokeColor:u.barBorderColor},highlightStyle:{color:this.getItemStyleColor(this.deepQuery(c,"itemStyle.emphasis.color"),e,t,d),radius:y.barBorderRadius,lineWidth:y.barBorderWidth,strokeColor:y.barBorderColor},_orient:h};var b=m.style;m.highlightStyle.color=m.highlightStyle.color||("string"==typeof b.color?s.lift(b.color,-.3):b.color),b.x=Math.floor(b.x),b.y=Math.floor(b.y),b.height=Math.ceil(b.height),b.width=Math.ceil(b.width),g>0&&b.height>g&&b.width>g?(b.y+=g/2,b.height-=g,b.x+=g/2,b.width-=g):b.brushType="fill",m.highlightStyle.textColor=m.highlightStyle.color,m=this.addLabel(m,U,d,i,h);for(var f=[b,m.highlightStyle],k=0,x=f.length;x>k;k++){var _=f[k].textPosition;if("insideLeft"===_||"insideRight"===_||"insideTop"===_||"insideBottom"===_){var L=5;switch(_){case"insideLeft":f[k].textX=b.x+L,f[k].textY=b.y+b.height/2,f[k].textAlign="left",f[k].textBaseline="middle";break;case"insideRight":f[k].textX=b.x+b.width-L,f[k].textY=b.y+b.height/2,f[k].textAlign="right",f[k].textBaseline="middle";break;case"insideTop":f[k].textX=b.x+b.width/2,f[k].textY=b.y+L/2,f[k].textAlign="center",f[k].textBaseline="top";break;case"insideBottom":f[k].textX=b.x+b.width/2,f[k].textY=b.y+b.height-L/2,f[k].textAlign="center",f[k].textBaseline="bottom"}f[k].textPosition="specific",f[k].textColor=f[k].textColor||"#fff"}}return this.deepQuery([d,U,this.option],"calculable")&&(this.setCalculable(m),m.draggable=!0),o.pack(m,V[e],e,V[e].data[t],t,i),m},getMarkCoord:function(e,t){var i,n,a=this.series[e],o=this.xMarkMap[e],r=this.component.xAxis.getAxis(a.xAxisIndex),s=this.component.yAxis.getAxis(a.yAxisIndex);if(!t.type||"max"!==t.type&&"min"!==t.type&&"average"!==t.type)if(o.isHorizontal){i="string"==typeof t.xAxis&&r.getIndexByName?r.getIndexByName(t.xAxis):t.xAxis||0;var l=o[i];l=null!=l?l:"string"!=typeof t.xAxis&&r.getCoordByIndex?r.getCoordByIndex(t.xAxis||0):r.getCoord(t.xAxis||0),n=[l,s.getCoord(t.yAxis||0)]}else{i="string"==typeof t.yAxis&&s.getIndexByName?s.getIndexByName(t.yAxis):t.yAxis||0;var h=o[i];h=null!=h?h:"string"!=typeof t.yAxis&&s.getCoordByIndex?s.getCoordByIndex(t.yAxis||0):s.getCoord(t.yAxis||0),n=[r.getCoord(t.xAxis||0),h]}else{var m=null!=t.valueIndex?t.valueIndex:null!=o.maxX0?"1":"";n=[o[t.type+"X"+m],o[t.type+"Y"+m],o[t.type+"Line"+m],o[t.type+m]]}return n},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){c--,0===c&&t&&t()}for(var n=this.series,a={},r=0,s=e.length;s>r;r++)a[e[r][0]]=e[r];for(var l,h,m,V,U,d,p,c=0,r=this.shapeList.length-1;r>=0;r--)if(d=o.get(this.shapeList[r],"seriesIndex"),a[d]&&!a[d][3]&&"rectangle"===this.shapeList[r].type){if(p=o.get(this.shapeList[r],"dataIndex"),U=n[d],a[d][2]&&p===U.data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!a[d][2]&&0===p){this.zr.delShape(this.shapeList[r].id);continue}"horizontal"===this.shapeList[r]._orient?(V=this.component.yAxis.getAxis(U.yAxisIndex||0).getGap(),m=a[d][2]?-V:V,l=0):(h=this.component.xAxis.getAxis(U.xAxisIndex||0).getGap(),l=a[d][2]?h:-h,m=0),this.shapeList[r].position=[0,0],c++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).done(i).start()}c||t&&t()}},r.inherits(t,i),e("../chart").define("bar",t),t}),i("echarts/chart/scatter",["require","./base","../util/shape/Symbol","../component/axis","../component/grid","../component/dataZoom","../component/dataRange","../config","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/Symbol");e("../component/axis"),e("../component/grid"),e("../component/dataZoom"),e("../component/dataRange");var a=e("../config");a.scatter={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbolSize:4,large:!1,largeThreshold:2e3,itemStyle:{normal:{label:{show:!1}},emphasis:{label:{show:!1}}}};var o=e("zrender/tool/util"),r=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_SCATTER,_buildShape:function(){var e=this.series;this._sIndex2ColorMap={},this._symbol=this.option.symbolList,this._sIndex2ShapeMap={},this.selectedMap={},this.xMarkMap={};for(var t,i,n,o,s=this.component.legend,l=[],h=0,m=e.length;m>h;h++)if(t=e[h],i=t.name,t.type===a.CHART_TYPE_SCATTER){if(e[h]=this.reformOption(e[h]),this.legendHoverLink=e[h].legendHoverLink||this.legendHoverLink,this._sIndex2ShapeMap[h]=this.query(t,"symbol")||this._symbol[h%this._symbol.length],s){if(this.selectedMap[i]=s.isSelected(i),this._sIndex2ColorMap[h]=r.alpha(s.getColor(i),.5),n=s.getItemShape(i)){var o=this._sIndex2ShapeMap[h];n.style.brushType=o.match("empty")?"stroke":"both",o=o.replace("empty","").toLowerCase(),o.match("rectangle")&&(n.style.x+=Math.round((n.style.width-n.style.height)/2),n.style.width=n.style.height),o.match("star")&&(n.style.n=o.replace("star","")-0||5,o="star"),o.match("image")&&(n.style.image=o.replace(new RegExp("^image:\\/\\/"),""),n.style.x+=Math.round((n.style.width-n.style.height)/2),n.style.width=n.style.height,o="image"),n.style.iconType=o,s.setItemShape(i,n)}}else this.selectedMap[i]=!0,this._sIndex2ColorMap[h]=r.alpha(this.zr.getColor(h),.5);this.selectedMap[i]&&l.push(h)}this._buildSeries(l),this.addShapeList()},_buildSeries:function(e){if(0!==e.length){for(var t,i,n,a,o,r,s,l,h=this.series,m={},V=0,U=e.length;U>V;V++)if(t=e[V],i=h[t],0!==i.data.length){o=this.component.xAxis.getAxis(i.xAxisIndex||0),r=this.component.yAxis.getAxis(i.yAxisIndex||0),m[t]=[];for(var d=0,p=i.data.length;p>d;d++)n=i.data[d],a=this.getDataFromOption(n,"-"),"-"===a||a.length<2||(s=o.getCoord(a[0]),l=r.getCoord(a[1]),m[t].push([s,l,d,n.name||""]));this.xMarkMap[t]=this._markMap(o,r,i.data,m[t]),this.buildMark(t)}this._buildPointList(m)}},_markMap:function(e,t,i,n){for(var a,o={min0:Number.POSITIVE_INFINITY,max0:Number.NEGATIVE_INFINITY,sum0:0,counter0:0,average0:0,min1:Number.POSITIVE_INFINITY,max1:Number.NEGATIVE_INFINITY,sum1:0,counter1:0,average1:0},r=0,s=n.length;s>r;r++)a=i[n[r][2]].value||i[n[r][2]],o.min0>a[0]&&(o.min0=a[0],o.minY0=n[r][1],o.minX0=n[r][0]),o.max0<a[0]&&(o.max0=a[0],o.maxY0=n[r][1],o.maxX0=n[r][0]),o.sum0+=a[0],o.counter0++,o.min1>a[1]&&(o.min1=a[1],o.minY1=n[r][1],o.minX1=n[r][0]),o.max1<a[1]&&(o.max1=a[1],o.maxY1=n[r][1],o.maxX1=n[r][0]),o.sum1+=a[1],o.counter1++;var l=this.component.grid.getX(),h=this.component.grid.getXend(),m=this.component.grid.getY(),V=this.component.grid.getYend();o.average0=o.sum0/o.counter0;var U=e.getCoord(o.average0);o.averageLine0=[[U,V],[U,m]],o.minLine0=[[o.minX0,V],[o.minX0,m]],o.maxLine0=[[o.maxX0,V],[o.maxX0,m]],o.average1=o.sum1/o.counter1;var d=t.getCoord(o.average1);return o.averageLine1=[[l,d],[h,d]],o.minLine1=[[l,o.minY1],[h,o.minY1]],o.maxLine1=[[l,o.maxY1],[h,o.maxY1]],o},_buildPointList:function(e){var t,i,n,a,o=this.series;for(var r in e)if(t=o[r],i=e[r],t.large&&t.data.length>t.largeThreshold)this.shapeList.push(this._getLargeSymbol(t,i,this.getItemStyleColor(this.query(t,"itemStyle.normal.color"),r,-1)||this._sIndex2ColorMap[r]));else for(var s=0,l=i.length;l>s;s++)n=i[s],a=this._getSymbol(r,n[2],n[3],n[0],n[1]),a&&this.shapeList.push(a)},_getSymbol:function(e,t,i,n,a){var o,r=this.series,s=r[e],l=s.data[t],h=this.component.dataRange;if(h){if(o=isNaN(l[2])?this._sIndex2ColorMap[e]:h.getColor(l[2]),!o)return null}else o=this._sIndex2ColorMap[e];var m=this.getSymbolShape(s,e,l,t,i,n,a,this._sIndex2ShapeMap[e],o,"rgba(0,0,0,0)","vertical");return m.zlevel=s.zlevel,m.z=s.z,m._main=!0,m},_getLargeSymbol:function(e,t,i){return new n({zlevel:e.zlevel,z:e.z,_main:!0,hoverable:!1,style:{pointList:t,color:i,strokeColor:i},highlightStyle:{pointList:[]}})},getMarkCoord:function(e,t){var i,n=this.series[e],a=this.xMarkMap[e],o=this.component.xAxis.getAxis(n.xAxisIndex),r=this.component.yAxis.getAxis(n.yAxisIndex);if(!t.type||"max"!==t.type&&"min"!==t.type&&"average"!==t.type)i=["string"!=typeof t.xAxis&&o.getCoordByIndex?o.getCoordByIndex(t.xAxis||0):o.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&r.getCoordByIndex?r.getCoordByIndex(t.yAxis||0):r.getCoord(t.yAxis||0)];else{var s=null!=t.valueIndex?t.valueIndex:1;i=[a[t.type+"X"+s],a[t.type+"Y"+s],a[t.type+"Line"+s],a[t.type+s]]}return i},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},ondataRange:function(e,t){this.component.dataRange&&(this.refresh(),t.needRefresh=!0)}},o.inherits(t,i),e("../chart").define("scatter",t),t}),i("echarts/component/dataRange",["require","./base","zrender/shape/Text","zrender/shape/Rectangle","../util/shape/HandlePolygon","../config","zrender/tool/util","zrender/tool/event","zrender/tool/area","zrender/tool/color","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var s=this;s._ondrift=function(e,t){return s.__ondrift(this,e,t)},s._ondragend=function(){return s.__ondragend()},s._dataRangeSelected=function(e){return s.__dataRangeSelected(e)},s._dispatchHoverLink=function(e){return s.__dispatchHoverLink(e)},s._onhoverlink=function(e){return s.__onhoverlink(e);
-
-},this._selectedMap={},this._range={},this.refresh(a),t.bind(r.EVENT.HOVER,this._onhoverlink)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Rectangle"),o=e("../util/shape/HandlePolygon"),r=e("../config");r.dataRange={zlevel:0,z:4,show:!0,orient:"vertical",x:"left",y:"bottom",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:20,itemHeight:14,precision:0,splitNumber:5,splitList:null,calculable:!1,selectedMode:!0,hoverLink:!0,realtime:!0,color:["#006edd","#e0ffff"],textStyle:{color:"#333"}};var s=e("zrender/tool/util"),l=e("zrender/tool/event"),h=e("zrender/tool/area"),m=e("zrender/tool/color");return t.prototype={type:r.COMPONENT_TYPE_DATARANGE,_textGap:10,_buildShape:function(){if(this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._isContinuity()?this._buildGradient():this._buildItem(),this.dataRangeOption.show)for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e]);this._syncShapeFromRange()},_buildItem:function(){var e,t,i,o,r=this._valueTextList,s=r.length,l=this.getFont(this.dataRangeOption.textStyle),m=this._itemGroupLocation.x,V=this._itemGroupLocation.y,U=this.dataRangeOption.itemWidth,d=this.dataRangeOption.itemHeight,p=this.dataRangeOption.itemGap,c=h.getTextHeight("国",l);"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(m=this._itemGroupLocation.x+this._itemGroupLocation.width-U);var u=!0;this.dataRangeOption.text&&(u=!1,this.dataRangeOption.text[0]&&(i=this._getTextShape(m,V,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?m+=h.getTextWidth(this.dataRangeOption.text[0],l)+this._textGap:(V+=c+this._textGap,i.style.y+=c/2+this._textGap,i.style.textBaseline="bottom"),this.shapeList.push(new n(i))));for(var y=0;s>y;y++)e=r[y],o=this.getColorByIndex(y),t=this._getItemShape(m,V,U,d,this._selectedMap[y]?o:"#ccc"),t._idx=y,t.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(t.clickable=!0,t.onclick=this._dataRangeSelected),this.shapeList.push(new a(t)),u&&(i={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:m+U+5,y:V,color:this._selectedMap[y]?this.dataRangeOption.textStyle.color:"#ccc",text:r[y],textFont:l,textBaseline:"top"},highlightStyle:{brushType:"fill"}},"vertical"==this.dataRangeOption.orient&&"right"==this.dataRangeOption.x&&(i.style.x-=U+10,i.style.textAlign="right"),i._idx=y,i.onmousemove=this._dispatchHoverLink,this.dataRangeOption.selectedMode&&(i.clickable=!0,i.onclick=this._dataRangeSelected),this.shapeList.push(new n(i))),"horizontal"==this.dataRangeOption.orient?m+=U+(u?5:0)+(u?h.getTextWidth(e,l):0)+p:V+=d+p;!u&&this.dataRangeOption.text[1]&&("horizontal"==this.dataRangeOption.orient?m=m-p+this._textGap:V=V-p+this._textGap,i=this._getTextShape(m,V,this.dataRangeOption.text[1]),"horizontal"!=this.dataRangeOption.orient&&(i.style.y-=5,i.style.textBaseline="top"),this.shapeList.push(new n(i)))},_buildGradient:function(){var t,i,o=this.getFont(this.dataRangeOption.textStyle),r=this._itemGroupLocation.x,s=this._itemGroupLocation.y,l=this.dataRangeOption.itemWidth,m=this.dataRangeOption.itemHeight,V=h.getTextHeight("国",o),U=10,d=!0;this.dataRangeOption.text&&(d=!1,this.dataRangeOption.text[0]&&(i=this._getTextShape(r,s,this.dataRangeOption.text[0]),"horizontal"==this.dataRangeOption.orient?r+=h.getTextWidth(this.dataRangeOption.text[0],o)+this._textGap:(s+=V+this._textGap,i.style.y+=V/2+this._textGap,i.style.textBaseline="bottom"),this.shapeList.push(new n(i))));for(var p=e("zrender/tool/color"),c=1/(this.dataRangeOption.color.length-1),u=[],y=0,g=this.dataRangeOption.color.length;g>y;y++)u.push([y*c,this.dataRangeOption.color[y]]);"horizontal"==this.dataRangeOption.orient?(t={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:r,y:s,width:l*U,height:m,color:p.getLinearGradient(r,s,r+l*U,s,u)},hoverable:!1},r+=l*U+this._textGap):(t={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:r,y:s,width:l,height:m*U,color:p.getLinearGradient(r,s,r,s+m*U,u)},hoverable:!1},s+=m*U+this._textGap),this.shapeList.push(new a(t)),this._calculableLocation=t.style,this.dataRangeOption.calculable&&(this._buildFiller(),this._bulidMask(),this._bulidHandle()),this._buildIndicator(),!d&&this.dataRangeOption.text[1]&&(i=this._getTextShape(r,s,this.dataRangeOption.text[1]),this.shapeList.push(new n(i)))},_buildIndicator:function(){var e,t,i=this._calculableLocation.x,n=this._calculableLocation.y,a=this._calculableLocation.width,r=this._calculableLocation.height,s=5;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(e=[[i,n+r],[i-s,n+r+s],[i+s,n+r+s]],t="bottom"):(e=[[i,n],[i-s,n-s],[i+s,n-s]],t="top"):"right"!=this.dataRangeOption.x?(e=[[i+a,n],[i+a+s,n-s],[i+a+s,n+s]],t="right"):(e=[[i,n],[i-s,n-s],[i-s,n+s]],t="left"),this._indicatorShape={style:{pointList:e,color:"#fff",__rect:{x:Math.min(e[0][0],e[1][0]),y:Math.min(e[0][1],e[1][1]),width:s*("horizontal"==this.dataRangeOption.orient?2:1),height:s*("horizontal"==this.dataRangeOption.orient?1:2)}},highlightStyle:{brushType:"fill",textPosition:t,textColor:this.dataRangeOption.textStyle.color},hoverable:!1},this._indicatorShape=new o(this._indicatorShape)},_buildFiller:function(){this._fillerShape={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:this._calculableLocation.x,y:this._calculableLocation.y,width:this._calculableLocation.width,height:this._calculableLocation.height,color:"rgba(255,255,255,0)"},highlightStyle:{strokeColor:"rgba(255,255,255,0.5)",lineWidth:1},draggable:!0,ondrift:this._ondrift,ondragend:this._ondragend,onmousemove:this._dispatchHoverLink,_type:"filler"},this._fillerShape=new a(this._fillerShape),this.shapeList.push(this._fillerShape)},_bulidHandle:function(){var e,t,i,n,a,r,s,l,m=this._calculableLocation.x,V=this._calculableLocation.y,U=this._calculableLocation.width,d=this._calculableLocation.height,p=this.getFont(this.dataRangeOption.textStyle),c=h.getTextHeight("国",p),u=Math.max(h.getTextWidth(this._textFormat(this.dataRangeOption.max),p),h.getTextWidth(this._textFormat(this.dataRangeOption.min),p))+2;"horizontal"==this.dataRangeOption.orient?"bottom"!=this.dataRangeOption.y?(e=[[m,V],[m,V+d+c],[m-c,V+d+c],[m-1,V+d],[m-1,V]],t=m-u/2-c,i=V+d+c/2+2,n={x:m-u-c,y:V+d,width:u+c,height:c},a=[[m+U,V],[m+U,V+d+c],[m+U+c,V+d+c],[m+U+1,V+d],[m+U+1,V]],r=m+U+u/2+c,s=i,l={x:m+U,y:V+d,width:u+c,height:c}):(e=[[m,V+d],[m,V-c],[m-c,V-c],[m-1,V],[m-1,V+d]],t=m-u/2-c,i=V-c/2-2,n={x:m-u-c,y:V-c,width:u+c,height:c},a=[[m+U,V+d],[m+U,V-c],[m+U+c,V-c],[m+U+1,V],[m+U+1,V+d]],r=m+U+u/2+c,s=i,l={x:m+U,y:V-c,width:u+c,height:c}):(u+=c,"right"!=this.dataRangeOption.x?(e=[[m,V],[m+U+c,V],[m+U+c,V-c],[m+U,V-1],[m,V-1]],t=m+U+u/2+c/2,i=V-c/2,n={x:m+U,y:V-c,width:u+c,height:c},a=[[m,V+d],[m+U+c,V+d],[m+U+c,V+c+d],[m+U,V+1+d],[m,V+d+1]],r=t,s=V+d+c/2,l={x:m+U,y:V+d,width:u+c,height:c}):(e=[[m+U,V],[m-c,V],[m-c,V-c],[m,V-1],[m+U,V-1]],t=m-u/2-c/2,i=V-c/2,n={x:m-u-c,y:V-c,width:u+c,height:c},a=[[m+U,V+d],[m-c,V+d],[m-c,V+c+d],[m,V+1+d],[m+U,V+d+1]],r=t,s=V+d+c/2,l={x:m-u-c,y:V+d,width:u+c,height:c})),this._startShape={style:{pointList:e,text:this._textFormat(this.dataRangeOption.max),textX:t,textY:i,textFont:p,color:this.getColor(this.dataRangeOption.max),rect:n,x:e[0][0],y:e[0][1],_x:e[0][0],_y:e[0][1]}},this._startShape.highlightStyle={strokeColor:this._startShape.style.color,lineWidth:1},this._endShape={style:{pointList:a,text:this._textFormat(this.dataRangeOption.min),textX:r,textY:s,textFont:p,color:this.getColor(this.dataRangeOption.min),rect:l,x:a[0][0],y:a[0][1],_x:a[0][0],_y:a[0][1]}},this._endShape.highlightStyle={strokeColor:this._endShape.style.color,lineWidth:1},this._startShape.zlevel=this._endShape.zlevel=this.getZlevelBase(),this._startShape.z=this._endShape.z=this.getZBase()+1,this._startShape.draggable=this._endShape.draggable=!0,this._startShape.ondrift=this._endShape.ondrift=this._ondrift,this._startShape.ondragend=this._endShape.ondragend=this._ondragend,this._startShape.style.textColor=this._endShape.style.textColor=this.dataRangeOption.textStyle.color,this._startShape.style.textAlign=this._endShape.style.textAlign="center",this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape.style.textBaseline=this._endShape.style.textBaseline="middle",this._startShape.style.width=this._endShape.style.width=0,this._startShape.style.height=this._endShape.style.height=0,this._startShape.style.textPosition=this._endShape.style.textPosition="specific",this._startShape=new o(this._startShape),this._endShape=new o(this._endShape),this.shapeList.push(this._startShape),this.shapeList.push(this._endShape)},_bulidMask:function(){var e=this._calculableLocation.x,t=this._calculableLocation.y,i=this._calculableLocation.width,n=this._calculableLocation.height;this._startMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:e,y:t,width:"horizontal"==this.dataRangeOption.orient?0:i,height:"horizontal"==this.dataRangeOption.orient?n:0,color:"#ccc"},hoverable:!1},this._endMask={zlevel:this.getZlevelBase(),z:this.getZBase()+1,style:{x:"horizontal"==this.dataRangeOption.orient?e+i:e,y:"horizontal"==this.dataRangeOption.orient?t:t+n,width:"horizontal"==this.dataRangeOption.orient?0:i,height:"horizontal"==this.dataRangeOption.orient?n:0,color:"#ccc"},hoverable:!1},this._startMask=new a(this._startMask),this._endMask=new a(this._endMask),this.shapeList.push(this._startMask),this.shapeList.push(this._endMask)},_buildBackground:function(){var e=this.reformCssArray(this.dataRangeOption.padding);this.shapeList.push(new a({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.dataRangeOption.borderWidth?"fill":"both",color:this.dataRangeOption.backgroundColor,strokeColor:this.dataRangeOption.borderColor,lineWidth:this.dataRangeOption.borderWidth}}))},_getItemGroupLocation:function(){var e=this._valueTextList,t=e.length,i=this.dataRangeOption.itemGap,n=this.dataRangeOption.itemWidth,a=this.dataRangeOption.itemHeight,o=0,r=0,s=this.getFont(this.dataRangeOption.textStyle),l=h.getTextHeight("国",s),m=10;if("horizontal"==this.dataRangeOption.orient){if(this.dataRangeOption.text||this._isContinuity())o=(this._isContinuity()?n*m+i:t*(n+i))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?h.getTextWidth(this.dataRangeOption.text[0],s)+this._textGap:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?h.getTextWidth(this.dataRangeOption.text[1],s)+this._textGap:0);else{n+=5;for(var V=0;t>V;V++)o+=n+h.getTextWidth(e[V],s)+i}o-=i,r=Math.max(l,a)}else{var U;if(this.dataRangeOption.text||this._isContinuity())r=(this._isContinuity()?a*m+i:t*(a+i))+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[0]?this._textGap+l:0)+(this.dataRangeOption.text&&"undefined"!=typeof this.dataRangeOption.text[1]?this._textGap+l:0),U=Math.max(h.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[0]||"",s),h.getTextWidth(this.dataRangeOption.text&&this.dataRangeOption.text[1]||"",s)),o=Math.max(n,U);else{r=(a+i)*t,n+=5,U=0;for(var V=0;t>V;V++)U=Math.max(U,h.getTextWidth(e[V],s));o=n+U}r-=i}var d,p=this.reformCssArray(this.dataRangeOption.padding),c=this.zr.getWidth();switch(this.dataRangeOption.x){case"center":d=Math.floor((c-o)/2);break;case"left":d=p[3]+this.dataRangeOption.borderWidth;break;case"right":d=c-o-p[1]-this.dataRangeOption.borderWidth;break;default:d=this.parsePercent(this.dataRangeOption.x,c),d=isNaN(d)?0:d}var u,y=this.zr.getHeight();switch(this.dataRangeOption.y){case"top":u=p[0]+this.dataRangeOption.borderWidth;break;case"bottom":u=y-r-p[2]-this.dataRangeOption.borderWidth;break;case"center":u=Math.floor((y-r)/2);break;default:u=this.parsePercent(this.dataRangeOption.y,y),u=isNaN(u)?0:u}if(this.dataRangeOption.calculable){var g=Math.max(h.getTextWidth(this.dataRangeOption.max,s),h.getTextWidth(this.dataRangeOption.min,s))+l;"horizontal"==this.dataRangeOption.orient?(g>d&&(d=g),d+o+g>c&&(d-=g)):(l>u&&(u=l),u+r+l>y&&(u-=l))}return{x:d,y:u,width:o,height:r}},_getTextShape:function(e,t,i){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:"horizontal"==this.dataRangeOption.orient?e:this._itemGroupLocation.x+this._itemGroupLocation.width/2,y:"horizontal"==this.dataRangeOption.orient?this._itemGroupLocation.y+this._itemGroupLocation.height/2:t,color:this.dataRangeOption.textStyle.color,text:i,textFont:this.getFont(this.dataRangeOption.textStyle),textBaseline:"horizontal"==this.dataRangeOption.orient?"middle":"top",textAlign:"horizontal"==this.dataRangeOption.orient?"left":"center"},hoverable:!1}},_getItemShape:function(e,t,i,n,a){return{zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:e,y:t+1,width:i,height:n-2,color:a},highlightStyle:{strokeColor:a,lineWidth:1}}},__ondrift:function(e,t,i){var n=this._calculableLocation.x,a=this._calculableLocation.y,o=this._calculableLocation.width,r=this._calculableLocation.height;return"horizontal"==this.dataRangeOption.orient?e.style.x+t<=n?e.style.x=n:e.style.x+t+e.style.width>=n+o?e.style.x=n+o-e.style.width:e.style.x+=t:e.style.y+i<=a?e.style.y=a:e.style.y+i+e.style.height>=a+r?e.style.y=a+r-e.style.height:e.style.y+=i,"filler"==e._type?this._syncHandleShape():this._syncFillerShape(e),this.dataRangeOption.realtime&&this._dispatchDataRange(),!0},__ondragend:function(){this.isDragend=!0},ondragend:function(e,t){this.isDragend&&e.target&&(t.dragOut=!0,t.dragIn=!0,this.dataRangeOption.realtime||this._dispatchDataRange(),t.needRefresh=!1,this.isDragend=!1)},_syncShapeFromRange:function(){var e=this.dataRangeOption.range||{},t=e.start,i=e.end;if(t>i&&(t=[i,i=t][0]),this._range.end=null!=t?t:null!=this._range.end?this._range.end:0,this._range.start=null!=i?i:null!=this._range.start?this._range.start:100,100!=this._range.start||0!==this._range.end){if("horizontal"==this.dataRangeOption.orient){var n=this._fillerShape.style.width;this._fillerShape.style.x+=n*(100-this._range.start)/100,this._fillerShape.style.width=n*(this._range.start-this._range.end)/100}else{var a=this._fillerShape.style.height;this._fillerShape.style.y+=a*(100-this._range.start)/100,this._fillerShape.style.height=a*(this._range.start-this._range.end)/100}this.zr.modShape(this._fillerShape.id),this._syncHandleShape()}},_syncHandleShape:function(){var e=this._calculableLocation.x,t=this._calculableLocation.y,i=this._calculableLocation.width,n=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?(this._startShape.style.x=this._fillerShape.style.x,this._startMask.style.width=this._startShape.style.x-e,this._endShape.style.x=this._fillerShape.style.x+this._fillerShape.style.width,this._endMask.style.x=this._endShape.style.x,this._endMask.style.width=e+i-this._endShape.style.x,this._range.start=Math.ceil(100-(this._startShape.style.x-e)/i*100),this._range.end=Math.floor(100-(this._endShape.style.x-e)/i*100)):(this._startShape.style.y=this._fillerShape.style.y,this._startMask.style.height=this._startShape.style.y-t,this._endShape.style.y=this._fillerShape.style.y+this._fillerShape.style.height,this._endMask.style.y=this._endShape.style.y,this._endMask.style.height=t+n-this._endShape.style.y,this._range.start=Math.ceil(100-(this._startShape.style.y-t)/n*100),this._range.end=Math.floor(100-(this._endShape.style.y-t)/n*100)),this._syncShape()},_syncFillerShape:function(e){var t,i,n=this._calculableLocation.x,a=this._calculableLocation.y,o=this._calculableLocation.width,r=this._calculableLocation.height;"horizontal"==this.dataRangeOption.orient?(t=this._startShape.style.x,i=this._endShape.style.x,e.id==this._startShape.id&&t>=i?(i=t,this._endShape.style.x=t):e.id==this._endShape.id&&t>=i&&(t=i,this._startShape.style.x=t),this._fillerShape.style.x=t,this._fillerShape.style.width=i-t,this._startMask.style.width=t-n,this._endMask.style.x=i,this._endMask.style.width=n+o-i,this._range.start=Math.ceil(100-(t-n)/o*100),this._range.end=Math.floor(100-(i-n)/o*100)):(t=this._startShape.style.y,i=this._endShape.style.y,e.id==this._startShape.id&&t>=i?(i=t,this._endShape.style.y=t):e.id==this._endShape.id&&t>=i&&(t=i,this._startShape.style.y=t),this._fillerShape.style.y=t,this._fillerShape.style.height=i-t,this._startMask.style.height=t-a,this._endMask.style.y=i,this._endMask.style.height=a+r-i,this._range.start=Math.ceil(100-(t-a)/r*100),this._range.end=Math.floor(100-(i-a)/r*100)),this._syncShape()},_syncShape:function(){this._startShape.position=[this._startShape.style.x-this._startShape.style._x,this._startShape.style.y-this._startShape.style._y],this._startShape.style.text=this._textFormat(this._gap*this._range.start+this.dataRangeOption.min),this._startShape.style.color=this._startShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.start+this.dataRangeOption.min),this._endShape.position=[this._endShape.style.x-this._endShape.style._x,this._endShape.style.y-this._endShape.style._y],this._endShape.style.text=this._textFormat(this._gap*this._range.end+this.dataRangeOption.min),this._endShape.style.color=this._endShape.highlightStyle.strokeColor=this.getColor(this._gap*this._range.end+this.dataRangeOption.min),this.zr.modShape(this._startShape.id),this.zr.modShape(this._endShape.id),this.zr.modShape(this._startMask.id),this.zr.modShape(this._endMask.id),this.zr.modShape(this._fillerShape.id),this.zr.refreshNextFrame()},_dispatchDataRange:function(){this.messageCenter.dispatch(r.EVENT.DATA_RANGE,null,{range:{start:this._range.end,end:this._range.start}},this.myChart)},__dataRangeSelected:function(e){if("single"===this.dataRangeOption.selectedMode)for(var t in this._selectedMap)this._selectedMap[t]=!1;var i=e.target._idx;this._selectedMap[i]=!this._selectedMap[i];var n,a;this._useCustomizedSplit()?(n=this._splitList[i].max,a=this._splitList[i].min):(n=(this._colorList.length-i)*this._gap+this.dataRangeOption.min,a=n-this._gap),this.messageCenter.dispatch(r.EVENT.DATA_RANGE_SELECTED,e.event,{selected:this._selectedMap,target:i,valueMax:n,valueMin:a},this.myChart),this.messageCenter.dispatch(r.EVENT.REFRESH,null,null,this.myChart)},__dispatchHoverLink:function(e){var t,i;if(this.dataRangeOption.calculable){var n,a=this.dataRangeOption.max-this.dataRangeOption.min;n="horizontal"==this.dataRangeOption.orient?(1-(l.getX(e.event)-this._calculableLocation.x)/this._calculableLocation.width)*a:(1-(l.getY(e.event)-this._calculableLocation.y)/this._calculableLocation.height)*a,t=n-.05*a,i=n+.05*a}else if(this._useCustomizedSplit()){var o=e.target._idx;i=this._splitList[o].max,t=this._splitList[o].min}else{var o=e.target._idx;i=(this._colorList.length-o)*this._gap+this.dataRangeOption.min,t=i-this._gap}this.messageCenter.dispatch(r.EVENT.DATA_RANGE_HOVERLINK,e.event,{valueMin:t,valueMax:i},this.myChart)},__onhoverlink:function(e){if(this.dataRangeOption.show&&this.dataRangeOption.hoverLink&&this._indicatorShape&&e&&null!=e.seriesIndex&&null!=e.dataIndex){var t=e.value;if(""===t||isNaN(t))return;t<this.dataRangeOption.min?t=this.dataRangeOption.min:t>this.dataRangeOption.max&&(t=this.dataRangeOption.max),this._indicatorShape.position="horizontal"==this.dataRangeOption.orient?[(this.dataRangeOption.max-t)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.width,0]:[0,(this.dataRangeOption.max-t)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._calculableLocation.height],this._indicatorShape.style.text=this._textFormat(e.value),this._indicatorShape.style.color=this.getColor(t),this.zr.addHoverShape(this._indicatorShape)}},_textFormat:function(e,t){var i=this.dataRangeOption;if(e!==-Number.MAX_VALUE&&(e=(+e).toFixed(i.precision)),null!=t&&t!==Number.MAX_VALUE&&(t=(+t).toFixed(i.precision)),i.formatter){if("string"==typeof i.formatter)return i.formatter.replace("{value}",e===-Number.MAX_VALUE?"min":e).replace("{value2}",t===Number.MAX_VALUE?"max":t);if("function"==typeof i.formatter)return i.formatter.call(this.myChart,e,t)}return null==t?e:e===-Number.MAX_VALUE?"< "+t:t===Number.MAX_VALUE?"> "+e:e+" - "+t},_isContinuity:function(){var e=this.dataRangeOption;return!(e.splitList?e.splitList.length>0:e.splitNumber>0)||e.calculable},_useCustomizedSplit:function(){var e=this.dataRangeOption;return e.splitList&&e.splitList.length>0},_buildColorList:function(e){if(this._colorList=m.getGradientColors(this.dataRangeOption.color,Math.max((e-this.dataRangeOption.color.length)/(this.dataRangeOption.color.length-1),0)+1),this._colorList.length>e){for(var t=this._colorList.length,i=[this._colorList[0]],n=t/(e-1),a=1;e-1>a;a++)i.push(this._colorList[Math.floor(a*n)]);i.push(this._colorList[t-1]),this._colorList=i}if(this._useCustomizedSplit())for(var o=this._splitList,a=0,t=o.length;t>a;a++)o[a].color&&(this._colorList[a]=o[a].color)},_buildGap:function(e){if(!this._useCustomizedSplit()){var t=this.dataRangeOption.precision;for(this._gap=(this.dataRangeOption.max-this.dataRangeOption.min)/e;this._gap.toFixed(t)-0!=this._gap&&5>t;)t++;this.dataRangeOption.precision=t,this._gap=((this.dataRangeOption.max-this.dataRangeOption.min)/e).toFixed(t)-0}},_buildDataList:function(e){for(var t=this._valueTextList=[],i=this.dataRangeOption,n=this._useCustomizedSplit(),a=0;e>a;a++){this._selectedMap[a]=!0;var o="";if(n){var r=this._splitList[e-1-a];o=null!=r.label?r.label:null!=r.single?this._textFormat(r.single):this._textFormat(r.min,r.max)}else o=this._textFormat(a*this._gap+i.min,(a+1)*this._gap+i.min);t.unshift(o)}},_buildSplitList:function(){if(this._useCustomizedSplit())for(var e=this.dataRangeOption.splitList,t=this._splitList=[],i=0,n=e.length;n>i;i++){var a=e[i];if(!a||null==a.start&&null==a.end)throw new Error("Empty item exists in splitList!");var o={label:a.label,color:a.color};o.min=a.start,o.max=a.end,o.min>o.max&&(o.min=[o.max,o.max=o.min][0]),o.min===o.max&&(o.single=o.max),null==o.min&&(o.min=-Number.MAX_VALUE),null==o.max&&(o.max=Number.MAX_VALUE),t.push(o)}},refresh:function(e){if(e){this.option=e,this.option.dataRange=this.reformOption(this.option.dataRange);var t=this.dataRangeOption=this.option.dataRange;if(!this._useCustomizedSplit()&&(null==t.min||null==t.max))throw new Error("option.dataRange.min or option.dataRange.max has not been defined.");this.myChart.canvasSupported||(t.realtime=!1);var i=this._isContinuity()?100:this._useCustomizedSplit()?t.splitList.length:t.splitNumber;this._buildSplitList(),this._buildColorList(i),this._buildGap(i),this._buildDataList(i)}this.clear(),this._buildShape()},getColor:function(e){if(isNaN(e))return null;var t;if(this._useCustomizedSplit()){for(var i=this._splitList,n=0,a=i.length;a>n;n++)if(i[n].min<=e&&i[n].max>=e){t=n;break}}else{if(this.dataRangeOption.min==this.dataRangeOption.max)return this._colorList[0];if(e<this.dataRangeOption.min?e=this.dataRangeOption.min:e>this.dataRangeOption.max&&(e=this.dataRangeOption.max),this.dataRangeOption.calculable&&(e-(this._gap*this._range.start+this.dataRangeOption.min)>5e-5||e-(this._gap*this._range.end+this.dataRangeOption.min)<-5e-5))return null;t=this._colorList.length-Math.ceil((e-this.dataRangeOption.min)/(this.dataRangeOption.max-this.dataRangeOption.min)*this._colorList.length),t==this._colorList.length&&t--}return this._selectedMap[t]?this._colorList[t]:null},getColorByIndex:function(e){return e>=this._colorList.length?e=this._colorList.length-1:0>e&&(e=0),this._colorList[e]},onbeforDispose:function(){this.messageCenter.unbind(r.EVENT.HOVER,this._onhoverlink)}},s.inherits(t,i),e("../component").define("dataRange",t),t}),i("echarts/util/shape/HandlePolygon",["require","zrender/shape/Base","zrender/shape/Polygon","zrender/tool/util"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/shape/Polygon"),a=e("zrender/tool/util");return t.prototype={type:"handle-polygon",buildPath:function(e,t){n.prototype.buildPath(e,t)},isCover:function(e,t){var i=this.transformCoordToLocal(e,t);e=i[0],t=i[1];var n=this.style.rect;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height?!0:!1}},a.inherits(t,i),t}),i("echarts/chart/k",["require","./base","../util/shape/Candle","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/Candle");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var a=e("../config");a.k={zlevel:0,z:2,clickable:!0,hoverable:!0,legendHoverLink:!1,xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"#fff",color0:"#00aa11",lineStyle:{width:1,color:"#ff3200",color0:"#00aa11"},label:{show:!1}},emphasis:{label:{show:!1}}}};var o=e("../util/ecData"),r=e("zrender/tool/util");return t.prototype={type:a.CHART_TYPE_K,_buildShape:function(){var e=this.series;this.selectedMap={};for(var t,i={top:[],bottom:[]},n=0,o=e.length;o>n;n++)e[n].type===a.CHART_TYPE_K&&(e[n]=this.reformOption(e[n]),this.legendHoverLink=e[n].legendHoverLink||this.legendHoverLink,t=this.component.xAxis.getAxis(e[n].xAxisIndex),t.type===a.COMPONENT_TYPE_AXIS_CATEGORY&&i[t.getPosition()].push(n));for(var r in i)i[r].length>0&&this._buildSinglePosition(r,i[r]);this.addShapeList()},_buildSinglePosition:function(e,t){var i=this._mapData(t),n=i.locationMap,a=i.maxDataLength;if(0!==a&&0!==n.length){this._buildHorizontal(t,a,n);for(var o=0,r=t.length;r>o;o++)this.buildMark(t[o])}},_mapData:function(e){for(var t,i,n=this.series,a=this.component.legend,o=[],r=0,s=0,l=e.length;l>s;s++)t=n[e[s]],i=t.name,this.selectedMap[i]=a?a.isSelected(i):!0,this.selectedMap[i]&&o.push(e[s]),r=Math.max(r,t.data.length);return{locationMap:o,maxDataLength:r}},_buildHorizontal:function(e,t,i){for(var n,a,o,r,s,l,h,m,V,U,d=this.series,p={},c=0,u=i.length;u>c;c++){n=i[c],a=d[n],o=a.xAxisIndex||0,r=this.component.xAxis.getAxis(o),h=a.barWidth||Math.floor(r.getGap()/2),U=a.barMaxWidth,U&&h>U&&(h=U),s=a.yAxisIndex||0,l=this.component.yAxis.getAxis(s),p[n]=[];for(var y=0,g=t;g>y&&null!=r.getNameByIndex(y);y++)m=a.data[y],V=this.getDataFromOption(m,"-"),"-"!==V&&4==V.length&&p[n].push([r.getCoordByIndex(y),h,l.getCoord(V[0]),l.getCoord(V[1]),l.getCoord(V[2]),l.getCoord(V[3]),y,r.getNameByIndex(y)])}this._buildKLine(e,p)},_buildKLine:function(e,t){for(var i,n,o,r,s,l,h,m,V,U,d,p,c,u,y,g,b,f=this.series,k=0,x=e.length;x>k;k++)if(b=e[k],d=f[b],u=t[b],this._isLarge(u)&&(u=this._getLargePointList(u)),d.type===a.CHART_TYPE_K&&null!=u){p=d,i=this.query(p,"itemStyle.normal.lineStyle.width"),n=this.query(p,"itemStyle.normal.lineStyle.color"),o=this.query(p,"itemStyle.normal.lineStyle.color0"),r=this.query(p,"itemStyle.normal.color"),s=this.query(p,"itemStyle.normal.color0"),l=this.query(p,"itemStyle.emphasis.lineStyle.width"),h=this.query(p,"itemStyle.emphasis.lineStyle.color"),m=this.query(p,"itemStyle.emphasis.lineStyle.color0"),V=this.query(p,"itemStyle.emphasis.color"),U=this.query(p,"itemStyle.emphasis.color0");for(var _=0,L=u.length;L>_;_++)y=u[_],c=d.data[y[6]],p=c,g=y[3]<y[2],this.shapeList.push(this._getCandle(b,y[6],y[7],y[0],y[1],y[2],y[3],y[4],y[5],g?this.query(p,"itemStyle.normal.color")||r:this.query(p,"itemStyle.normal.color0")||s,this.query(p,"itemStyle.normal.lineStyle.width")||i,g?this.query(p,"itemStyle.normal.lineStyle.color")||n:this.query(p,"itemStyle.normal.lineStyle.color0")||o,g?this.query(p,"itemStyle.emphasis.color")||V||r:this.query(p,"itemStyle.emphasis.color0")||U||s,this.query(p,"itemStyle.emphasis.lineStyle.width")||l||i,g?this.query(p,"itemStyle.emphasis.lineStyle.color")||h||n:this.query(p,"itemStyle.emphasis.lineStyle.color0")||m||o))}},_isLarge:function(e){return e[0][1]<.5},_getLargePointList:function(e){for(var t=this.component.grid.getWidth(),i=e.length,n=[],a=0;t>a;a++)n[a]=e[Math.floor(i/t*a)];return n},_getCandle:function(e,t,i,a,r,s,l,h,m,V,U,d,p,c,u){var y=this.series,g=y[e],b=g.data[t],f=[b,g],k={zlevel:g.zlevel,z:g.z,clickable:this.deepQuery(f,"clickable"),hoverable:this.deepQuery(f,"hoverable"),style:{x:a,y:[s,l,h,m],width:r,color:V,strokeColor:d,lineWidth:U,brushType:"both"},highlightStyle:{color:p,strokeColor:u,lineWidth:c},_seriesIndex:e};return k=this.addLabel(k,g,b,i),o.pack(k,g,e,b,t,i),k=new n(k)},getMarkCoord:function(e,t){var i=this.series[e],n=this.component.xAxis.getAxis(i.xAxisIndex),a=this.component.yAxis.getAxis(i.yAxisIndex);return["string"!=typeof t.xAxis&&n.getCoordByIndex?n.getCoordByIndex(t.xAxis||0):n.getCoord(t.xAxis||0),"string"!=typeof t.yAxis&&a.getCoordByIndex?a.getCoordByIndex(t.yAxis||0):a.getCoord(t.yAxis||0)]},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){p--,0===p&&t&&t()}for(var n=this.series,a={},r=0,s=e.length;s>r;r++)a[e[r][0]]=e[r];for(var l,h,m,V,U,d,p=0,r=0,s=this.shapeList.length;s>r;r++)if(U=this.shapeList[r]._seriesIndex,a[U]&&!a[U][3]&&"candle"===this.shapeList[r].type){if(d=o.get(this.shapeList[r],"dataIndex"),V=n[U],a[U][2]&&d===V.data.length-1){this.zr.delShape(this.shapeList[r].id);continue}if(!a[U][2]&&0===d){this.zr.delShape(this.shapeList[r].id);continue}h=this.component.xAxis.getAxis(V.xAxisIndex||0).getGap(),l=a[U][2]?h:-h,m=0,p++,this.zr.animate(this.shapeList[r].id,"").when(this.query(this.option,"animationDurationUpdate"),{position:[l,m]}).done(i).start()}p||t&&t()}},r.inherits(t,i),e("../chart").define("k",t),t}),i("echarts/chart/pie",["require","./base","zrender/shape/Text","zrender/shape/Ring","zrender/shape/Circle","zrender/shape/Sector","zrender/shape/Polyline","../config","../util/ecData","zrender/tool/util","zrender/tool/math","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r.shapeHandler.onmouseover=function(e){var t=e.target,i=h.get(t,"seriesIndex"),n=h.get(t,"dataIndex"),a=h.get(t,"special"),o=[t.style.x,t.style.y],s=t.style.startAngle,l=t.style.endAngle,m=((l+s)/2+360)%360,V=t.highlightStyle.color,U=r.getLabel(i,n,a,o,m,V,!0);U&&r.zr.addHoverShape(U);var d=r.getLabelLine(i,n,o,t.style.r0,t.style.r,m,V,!0);d&&r.zr.addHoverShape(d)},this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Ring"),o=e("zrender/shape/Circle"),r=e("zrender/shape/Sector"),s=e("zrender/shape/Polyline"),l=e("../config");l.pie={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockWise:!0,startAngle:90,minAngle:0,selectedOffset:10,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!1},labelLine:{show:!1,length:20,lineStyle:{width:1,type:"solid"}}}}};var h=e("../util/ecData"),m=e("zrender/tool/util"),V=e("zrender/tool/math"),U=e("zrender/tool/color");return t.prototype={type:l.CHART_TYPE_PIE,_buildShape:function(){var e=this.series,t=this.component.legend;this.selectedMap={},this._selected={};var i,n,r;this._selectedMode=!1;for(var s,m=0,V=e.length;V>m;m++)if(e[m].type===l.CHART_TYPE_PIE){if(e[m]=this.reformOption(e[m]),this.legendHoverLink=e[m].legendHoverLink||this.legendHoverLink,s=e[m].name||"",this.selectedMap[s]=t?t.isSelected(s):!0,!this.selectedMap[s])continue;i=this.parseCenter(this.zr,e[m].center),n=this.parseRadius(this.zr,e[m].radius),this._selectedMode=this._selectedMode||e[m].selectedMode,this._selected[m]=[],this.deepQuery([e[m],this.option],"calculable")&&(r={zlevel:e[m].zlevel,z:e[m].z,hoverable:!1,style:{x:i[0],y:i[1],r0:n[0]<=10?0:n[0]-10,r:n[1]+10,brushType:"stroke",lineWidth:1,strokeColor:e[m].calculableHolderColor||this.ecTheme.calculableHolderColor||l.calculableHolderColor}},h.pack(r,e[m],m,void 0,-1),this.setCalculable(r),r=n[0]<=10?new o(r):new a(r),this.shapeList.push(r)),this._buildSinglePie(m),this.buildMark(m)}this.addShapeList()},_buildSinglePie:function(e){for(var t,i=this.series,n=i[e],a=n.data,o=this.component.legend,r=0,s=0,l=0,h=Number.NEGATIVE_INFINITY,m=[],V=0,U=a.length;U>V;V++)t=a[V].name,
-this.selectedMap[t]=o?o.isSelected(t):!0,this.selectedMap[t]&&!isNaN(a[V].value)&&(0!==+a[V].value?r++:s++,l+=+a[V].value,h=Math.max(h,+a[V].value));if(0!==l){for(var d,p,c,u,y,g,b=100,f=n.clockWise,k=(n.startAngle.toFixed(2)-0+360)%360,x=n.minAngle||.01,_=360-x*r-.01*s,L=n.roseType,V=0,U=a.length;U>V;V++)if(t=a[V].name,this.selectedMap[t]&&!isNaN(a[V].value)){if(p=o?o.getColor(t):this.zr.getColor(V),b=a[V].value/l,d="area"!=L?f?k-b*_-(0!==b?x:.01):b*_+k+(0!==b?x:.01):f?k-360/U:360/U+k,d=d.toFixed(2)-0,b=(100*b).toFixed(2),c=this.parseCenter(this.zr,n.center),u=this.parseRadius(this.zr,n.radius),y=+u[0],g=+u[1],"radius"===L?g=a[V].value/h*(g-y)*.8+.2*(g-y)+y:"area"===L&&(g=Math.sqrt(a[V].value/h)*(g-y)+y),f){var W;W=k,k=d,d=W}this._buildItem(m,e,V,b,a[V].selected,c,y,g,k,d,p),f||(k=d)}this._autoLabelLayout(m,c,g);for(var V=0,U=m.length;U>V;V++)this.shapeList.push(m[V]);m=null}},_buildItem:function(e,t,i,n,a,o,r,s,l,m,V){var U=this.series,d=((m+l)/2+360)%360,p=this.getSector(t,i,n,a,o,r,s,l,m,V);h.pack(p,U[t],t,U[t].data[i],i,U[t].data[i].name,n),e.push(p);var c=this.getLabel(t,i,n,o,d,V,!1),u=this.getLabelLine(t,i,o,r,s,d,V,!1);u&&(h.pack(u,U[t],t,U[t].data[i],i,U[t].data[i].name,n),e.push(u)),c&&(h.pack(c,U[t],t,U[t].data[i],i,U[t].data[i].name,n),c._labelLine=u,e.push(c))},getSector:function(e,t,i,n,a,o,s,l,h,m){var d=this.series,p=d[e],c=p.data[t],u=[c,p],y=this.deepMerge(u,"itemStyle.normal")||{},g=this.deepMerge(u,"itemStyle.emphasis")||{},b=this.getItemStyleColor(y.color,e,t,c)||m,f=this.getItemStyleColor(g.color,e,t,c)||("string"==typeof b?U.lift(b,-.2):b),k={zlevel:p.zlevel,z:p.z,clickable:this.deepQuery(u,"clickable"),style:{x:a[0],y:a[1],r0:o,r:s,startAngle:l,endAngle:h,brushType:"both",color:b,lineWidth:y.borderWidth,strokeColor:y.borderColor,lineJoin:"round"},highlightStyle:{color:f,lineWidth:g.borderWidth,strokeColor:g.borderColor,lineJoin:"round"},_seriesIndex:e,_dataIndex:t};if(n){var x=((k.style.startAngle+k.style.endAngle)/2).toFixed(2)-0;k.style._hasSelected=!0,k.style._x=k.style.x,k.style._y=k.style.y;var _=this.query(p,"selectedOffset");k.style.x+=V.cos(x,!0)*_,k.style.y-=V.sin(x,!0)*_,this._selected[e][t]=!0}else this._selected[e][t]=!1;return this._selectedMode&&(k.onclick=this.shapeHandler.onclick),this.deepQuery([c,p,this.option],"calculable")&&(this.setCalculable(k),k.draggable=!0),(this._needLabel(p,c,!0)||this._needLabelLine(p,c,!0))&&(k.onmouseover=this.shapeHandler.onmouseover),k=new r(k)},getLabel:function(e,t,i,a,o,r,s){var l=this.series,h=l[e],U=h.data[t];if(this._needLabel(h,U,s)){var d,p,c,u=s?"emphasis":"normal",y=m.merge(m.clone(U.itemStyle)||{},h.itemStyle),g=y[u].label,b=g.textStyle||{},f=a[0],k=a[1],x=this.parseRadius(this.zr,h.radius),_="middle";g.position=g.position||y.normal.label.position,"center"===g.position?(d=f,p=k,c="center"):"inner"===g.position||"inside"===g.position?(x=(x[0]+x[1])*(g.distance||.5),d=Math.round(f+x*V.cos(o,!0)),p=Math.round(k-x*V.sin(o,!0)),r="#fff",c="center"):(x=x[1]- -y[u].labelLine.length,d=Math.round(f+x*V.cos(o,!0)),p=Math.round(k-x*V.sin(o,!0)),c=o>=90&&270>=o?"right":"left"),"center"!=g.position&&"inner"!=g.position&&"inside"!=g.position&&(d+="left"===c?20:-20),U.__labelX=d-("left"===c?5:-5),U.__labelY=p;var L=new n({zlevel:h.zlevel,z:h.z+1,hoverable:!1,style:{x:d,y:p,color:b.color||r,text:this.getLabelText(e,t,i,u),textAlign:b.align||c,textBaseline:b.baseline||_,textFont:this.getFont(b)},highlightStyle:{brushType:"fill"}});return L._radius=x,L._labelPosition=g.position||"outer",L._rect=L.getRect(L.style),L._seriesIndex=e,L._dataIndex=t,L}},getLabelText:function(e,t,i,n){var a=this.series,o=a[e],r=o.data[t],s=this.deepQuery([r,o],"itemStyle."+n+".label.formatter");return s?"function"==typeof s?s.call(this.myChart,{seriesIndex:e,seriesName:o.name||"",series:o,dataIndex:t,data:r,name:r.name,value:r.value,percent:i}):"string"==typeof s?(s=s.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{d}","{d0}"),s=s.replace("{a0}",o.name).replace("{b0}",r.name).replace("{c0}",r.value).replace("{d0}",i)):void 0:r.name},getLabelLine:function(e,t,i,n,a,o,r,l){var h=this.series,U=h[e],d=U.data[t];if(this._needLabelLine(U,d,l)){var p=l?"emphasis":"normal",c=m.merge(m.clone(d.itemStyle)||{},U.itemStyle),u=c[p].labelLine,y=u.lineStyle||{},g=i[0],b=i[1],f=a,k=this.parseRadius(this.zr,U.radius)[1]- -u.length,x=V.cos(o,!0),_=V.sin(o,!0);return new s({zlevel:U.zlevel,z:U.z+1,hoverable:!1,style:{pointList:[[g+f*x,b-f*_],[g+k*x,b-k*_],[d.__labelX,d.__labelY]],strokeColor:y.color||r,lineType:y.type,lineWidth:y.width},_seriesIndex:e,_dataIndex:t})}},_needLabel:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".label.show")},_needLabelLine:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".labelLine.show")},_autoLabelLayout:function(e,t,i){for(var n=[],a=[],o=0,r=e.length;r>o;o++)("outer"===e[o]._labelPosition||"outside"===e[o]._labelPosition)&&(e[o]._rect._y=e[o]._rect.y,e[o]._rect.x<t[0]?n.push(e[o]):a.push(e[o]));this._layoutCalculate(n,t,i,-1),this._layoutCalculate(a,t,i,1)},_layoutCalculate:function(e,t,i,n){function a(t,i,n){for(var a=t;i>a;a++)if(e[a]._rect.y+=n,e[a].style.y+=n,e[a]._labelLine&&(e[a]._labelLine.style.pointList[1][1]+=n,e[a]._labelLine.style.pointList[2][1]+=n),a>t&&i>a+1&&e[a+1]._rect.y>e[a]._rect.y+e[a]._rect.height)return void o(a,n/2);o(i-1,n/2)}function o(t,i){for(var n=t;n>=0&&(e[n]._rect.y-=i,e[n].style.y-=i,e[n]._labelLine&&(e[n]._labelLine.style.pointList[1][1]-=i,e[n]._labelLine.style.pointList[2][1]-=i),!(n>0&&e[n]._rect.y>e[n-1]._rect.y+e[n-1]._rect.height));n--);}function r(e,t,i,n,a){for(var o,r,s,l=i[0],h=i[1],m=a>0?t?Number.MAX_VALUE:0:t?Number.MAX_VALUE:0,V=0,U=e.length;U>V;V++)r=Math.abs(e[V]._rect.y-h),s=e[V]._radius-n,o=n+s>r?Math.sqrt((n+s+20)*(n+s+20)-Math.pow(e[V]._rect.y-h,2)):Math.abs(e[V]._rect.x+(a>0?0:e[V]._rect.width)-l),t&&o>=m&&(o=m-10),!t&&m>=o&&(o=m+10),e[V]._rect.x=e[V].style.x=l+o*a,e[V]._labelLine&&(e[V]._labelLine.style.pointList[2][0]=l+(o-5)*a,e[V]._labelLine.style.pointList[1][0]=l+(o-20)*a),m=o}e.sort(function(e,t){return e._rect.y-t._rect.y});for(var s,l=0,h=e.length,m=[],V=[],U=0;h>U;U++)s=e[U]._rect.y-l,0>s&&a(U,h,-s,n),l=e[U]._rect.y+e[U]._rect.height;this.zr.getHeight()-l<0&&o(h-1,l-this.zr.getHeight());for(var U=0;h>U;U++)e[U]._rect.y>=t[1]?V.push(e[U]):m.push(e[U]);r(V,!0,t,i,n),r(m,!1,t,i,n)},reformOption:function(e){var t=m.merge;return e=t(t(e||{},m.clone(this.ecTheme.pie||{})),m.clone(l.pie)),e.itemStyle.normal.label.textStyle=this.getTextStyle(e.itemStyle.normal.label.textStyle),e.itemStyle.emphasis.label.textStyle=this.getTextStyle(e.itemStyle.emphasis.label.textStyle),this.z=e.z,this.zlevel=e.zlevel,e},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()},addDataAnimation:function(e,t){function i(){s--,0===s&&t&&t()}for(var n=this.series,a={},o=0,r=e.length;r>o;o++)a[e[o][0]]=e[o];var s=0,h={},m={},V={},U=this.shapeList;this.shapeList=[];for(var d,p,c,u={},o=0,r=e.length;r>o;o++)d=e[o][0],p=e[o][2],c=e[o][3],n[d]&&n[d].type===l.CHART_TYPE_PIE&&(p?(c||(h[d+"_"+n[d].data.length]="delete"),u[d]=1):c?u[d]=0:(h[d+"_-1"]="delete",u[d]=-1),this._buildSinglePie(d));for(var y,g,o=0,r=this.shapeList.length;r>o;o++)switch(d=this.shapeList[o]._seriesIndex,y=this.shapeList[o]._dataIndex,g=d+"_"+y,this.shapeList[o].type){case"sector":h[g]=this.shapeList[o];break;case"text":m[g]=this.shapeList[o];break;case"polyline":V[g]=this.shapeList[o]}this.shapeList=[];for(var b,o=0,r=U.length;r>o;o++)if(d=U[o]._seriesIndex,a[d]){if(y=U[o]._dataIndex+u[d],g=d+"_"+y,b=h[g],!b)continue;if("sector"===U[o].type)"delete"!=b?(s++,this.zr.animate(U[o].id,"style").when(400,{startAngle:b.style.startAngle,endAngle:b.style.endAngle}).done(i).start()):(s++,this.zr.animate(U[o].id,"style").when(400,u[d]<0?{startAngle:U[o].style.startAngle}:{endAngle:U[o].style.endAngle}).done(i).start());else if("text"===U[o].type||"polyline"===U[o].type)if("delete"===b)this.zr.delShape(U[o].id);else switch(U[o].type){case"text":s++,b=m[g],this.zr.animate(U[o].id,"style").when(400,{x:b.style.x,y:b.style.y}).done(i).start();break;case"polyline":s++,b=V[g],this.zr.animate(U[o].id,"style").when(400,{pointList:b.style.pointList}).done(i).start()}}this.shapeList=U,s||t&&t()},onclick:function(e){var t=this.series;if(this.isClick&&e.target){this.isClick=!1;for(var i,n=e.target,a=n.style,o=h.get(n,"seriesIndex"),r=h.get(n,"dataIndex"),s=0,m=this.shapeList.length;m>s;s++)if(this.shapeList[s].id===n.id){if(o=h.get(n,"seriesIndex"),r=h.get(n,"dataIndex"),a._hasSelected)n.style.x=n.style._x,n.style.y=n.style._y,n.style._hasSelected=!1,this._selected[o][r]=!1;else{var U=((a.startAngle+a.endAngle)/2).toFixed(2)-0;n.style._hasSelected=!0,this._selected[o][r]=!0,n.style._x=n.style.x,n.style._y=n.style.y,i=this.query(t[o],"selectedOffset"),n.style.x+=V.cos(U,!0)*i,n.style.y-=V.sin(U,!0)*i}this.zr.modShape(n.id)}else this.shapeList[s].style._hasSelected&&"single"===this._selectedMode&&(o=h.get(this.shapeList[s],"seriesIndex"),r=h.get(this.shapeList[s],"dataIndex"),this.shapeList[s].style.x=this.shapeList[s].style._x,this.shapeList[s].style.y=this.shapeList[s].style._y,this.shapeList[s].style._hasSelected=!1,this._selected[o][r]=!1,this.zr.modShape(this.shapeList[s].id));this.messageCenter.dispatch(l.EVENT.PIE_SELECTED,e.event,{selected:this._selected,target:h.get(n,"name")},this.myChart),this.zr.refreshNextFrame()}}},m.inherits(t,i),e("../chart").define("pie",t),t}),i("echarts/chart/radar",["require","./base","zrender/shape/Polygon","../component/polar","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../util/accMath","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Polygon");e("../component/polar");var a=e("../config");a.radar={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,polarIndex:0,itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid"}},emphasis:{label:{show:!1}}},symbolSize:2};var o=e("../util/ecData"),r=e("zrender/tool/util"),s=e("zrender/tool/color");return t.prototype={type:a.CHART_TYPE_RADAR,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._radarDataCounter=0;for(var e,t=this.series,i=this.component.legend,n=0,o=t.length;o>n;n++)t[n].type===a.CHART_TYPE_RADAR&&(this.serie=this.reformOption(t[n]),this.legendHoverLink=t[n].legendHoverLink||this.legendHoverLink,e=this.serie.name||"",this.selectedMap[e]=i?i.isSelected(e):!0,this.selectedMap[e]&&(this._queryTarget=[this.serie,this.option],this.deepQuery(this._queryTarget,"calculable")&&this._addDropBox(n),this._buildSingleRadar(n),this.buildMark(n)));this.addShapeList()},_buildSingleRadar:function(e){for(var t,i,n,a,o=this.component.legend,r=this.serie.data,s=this.deepQuery(this._queryTarget,"calculable"),l=0;l<r.length;l++)n=r[l].name||"",this.selectedMap[n]=o?o.isSelected(n):!0,this.selectedMap[n]&&(o?(i=o.getColor(n),t=o.getItemShape(n),t&&(t.style.brushType=this.deepQuery([r[l],this.serie],"itemStyle.normal.areaStyle")?"both":"stroke",o.setItemShape(n,t))):i=this.zr.getColor(l),a=this._getPointList(this.serie.polarIndex,r[l]),this._addSymbol(a,i,l,e,this.serie.polarIndex),this._addDataShape(a,i,r[l],e,l,s),this._radarDataCounter++)},_getPointList:function(e,t){for(var i,n,a=[],o=this.component.polar,r=0,s=t.value.length;s>r;r++)n=this.getDataFromOption(t.value[r]),i="-"!=n?o.getVector(e,r,n):!1,i&&a.push(i);return a},_addSymbol:function(e,t,i,n,a){for(var r,s=this.series,l=this.component.polar,h=0,m=e.length;m>h;h++)r=this.getSymbolShape(this.deepMerge([s[n].data[i],s[n]]),n,s[n].data[i].value[h],h,l.getIndicatorText(a,h),e[h][0],e[h][1],this._symbol[this._radarDataCounter%this._symbol.length],t,"#fff","vertical"),r.zlevel=this.getZlevelBase(),r.z=this.getZBase()+1,o.set(r,"data",s[n].data[i]),o.set(r,"value",s[n].data[i].value),o.set(r,"dataIndex",i),o.set(r,"special",h),this.shapeList.push(r)},_addDataShape:function(e,t,i,a,r,l){var h=this.series,m=[i,this.serie],V=this.getItemStyleColor(this.deepQuery(m,"itemStyle.normal.color"),a,r,i),U=this.deepQuery(m,"itemStyle.normal.lineStyle.width"),d=this.deepQuery(m,"itemStyle.normal.lineStyle.type"),p=this.deepQuery(m,"itemStyle.normal.areaStyle.color"),c=this.deepQuery(m,"itemStyle.normal.areaStyle"),u={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:e,brushType:c?"both":"stroke",color:p||V||("string"==typeof t?s.alpha(t,.5):t),strokeColor:V||t,lineWidth:U,lineType:d},highlightStyle:{brushType:this.deepQuery(m,"itemStyle.emphasis.areaStyle")||c?"both":"stroke",color:this.deepQuery(m,"itemStyle.emphasis.areaStyle.color")||p||V||("string"==typeof t?s.alpha(t,.5):t),strokeColor:this.getItemStyleColor(this.deepQuery(m,"itemStyle.emphasis.color"),a,r,i)||V||t,lineWidth:this.deepQuery(m,"itemStyle.emphasis.lineStyle.width")||U,lineType:this.deepQuery(m,"itemStyle.emphasis.lineStyle.type")||d}};o.pack(u,h[a],a,i,r,i.name,this.component.polar.getIndicator(h[a].polarIndex)),l&&(u.draggable=!0,this.setCalculable(u)),u=new n(u),this.shapeList.push(u)},_addDropBox:function(e){var t=this.series,i=this.deepQuery(this._queryTarget,"polarIndex");if(!this._dropBoxList[i]){var n=this.component.polar.getDropBox(i);n.zlevel=this.getZlevelBase(),n.z=this.getZBase(),this.setCalculable(n),o.pack(n,t,e,void 0,-1),this.shapeList.push(n),this._dropBoxList[i]=!0}},ondragend:function(e,t){var i=this.series;if(this.isDragend&&e.target){var n=e.target,a=o.get(n,"seriesIndex"),r=o.get(n,"dataIndex");this.component.legend&&this.component.legend.del(i[a].data[r].name),i[a].data.splice(r,1),t.dragOut=!0,t.needRefresh=!0,this.isDragend=!1}},ondrop:function(t,i){var n=this.series;if(this.isDrop&&t.target){var a,r,s=t.target,l=t.dragged,h=o.get(s,"seriesIndex"),m=o.get(s,"dataIndex"),V=this.component.legend;if(-1===m)a={value:o.get(l,"value"),name:o.get(l,"name")},n[h].data.push(a),V&&V.add(a.name,l.style.color||l.style.strokeColor);else{var U=e("../util/accMath");a=n[h].data[m],V&&V.del(a.name),a.name+=this.option.nameConnector+o.get(l,"name"),r=o.get(l,"value");for(var d=0;d<r.length;d++)a.value[d]=U.accAdd(a.value[d],r[d]);V&&V.add(a.name,l.style.color||l.style.strokeColor)}i.dragIn=i.dragIn||!0,this.isDrop=!1}},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},r.inherits(t,i),e("../chart").define("radar",t),t}),i("echarts/component/polar",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","zrender/shape/Circle","zrender/shape/Ring","../config","zrender/tool/util","../util/coordinates","../util/accMath","../util/smartSteps","../component"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Polygon"),r=e("zrender/shape/Circle"),s=e("zrender/shape/Ring"),l=e("../config");l.polar={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,boundaryGap:[0,0],splitNumber:5,name:{show:!0,textStyle:{color:"#333"}},axisLine:{show:!0,lineStyle:{color:"#ccc",width:1,type:"solid"}},axisLabel:{show:!1,textStyle:{color:"#333"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},splitLine:{show:!0,lineStyle:{width:1,color:"#ccc"}},type:"polygon"};var h=e("zrender/tool/util"),m=e("../util/coordinates");return t.prototype={type:l.COMPONENT_TYPE_POLAR,_buildShape:function(){for(var e=0;e<this.polar.length;e++)this._index=e,this.reformOption(this.polar[e]),this._queryTarget=[this.polar[e],this.option],this._createVector(e),this._buildSpiderWeb(e),this._buildText(e),this._adjustIndicatorValue(e),this._addAxisLabel(e);for(var e=0;e<this.shapeList.length;e++)this.zr.addShape(this.shapeList[e])},_createVector:function(e){for(var t,i=this.polar[e],n=this.deepQuery(this._queryTarget,"indicator"),a=n.length,o=i.startAngle,r=2*Math.PI/a,s=this._getRadius(),l=i.__ecIndicator=[],h=0;a>h;h++)t=m.polar2cartesian(s,o*Math.PI/180+r*h),l.push({vector:[t[1],-t[0]]})},_getRadius:function(){var e=this.polar[this._index];return this.parsePercent(e.radius,Math.min(this.zr.getWidth(),this.zr.getHeight())/2)},_buildSpiderWeb:function(e){var t=this.polar[e],i=t.__ecIndicator,n=t.splitArea,a=t.splitLine,o=this.getCenter(e),r=t.splitNumber,s=a.lineStyle.color,l=a.lineStyle.width,h=a.show,m=this.deepQuery(this._queryTarget,"axisLine");this._addArea(i,r,o,n,s,l,h),m.show&&this._addLine(i,o,m)},_addAxisLabel:function(t){for(var i,a,o,r,a,s,l,m,V,U,d=e("../util/accMath"),p=this.polar[t],c=this.deepQuery(this._queryTarget,"indicator"),u=p.__ecIndicator,y=this.deepQuery(this._queryTarget,"splitNumber"),g=this.getCenter(t),b=0;b<c.length;b++)if(i=this.deepQuery([c[b],p,this.option],"axisLabel"),i.show){var f=this.deepQuery([i,p,this.option],"textStyle"),k=this.deepQuery([i,p],"formatter");if(o={},o.textFont=this.getFont(f),o.color=f.color,o=h.merge(o,i),o.lineWidth=o.width,a=u[b].vector,s=u[b].value,m=b/c.length*2*Math.PI,V=i.offset||10,U=i.interval||0,!s)return;for(var x=1;y>=x;x+=U+1)r=h.merge({},o),l=d.accAdd(s.min,d.accMul(s.step,x)),l="function"==typeof k?k(l):"string"==typeof k?k.replace("{a}","{a0}").replace("{a0}",l):this.numAddCommas(l),r.text=l,r.x=x*a[0]/y+Math.cos(m)*V+g[0],r.y=x*a[1]/y+Math.sin(m)*V+g[1],this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:r,draggable:!1,hoverable:!1}))}},_buildText:function(e){for(var t,i,a,o,r,s,l,h=this.polar[e],m=h.__ecIndicator,V=this.deepQuery(this._queryTarget,"indicator"),U=this.getCenter(e),d=0,p=0,c=0;c<V.length;c++)o=this.deepQuery([V[c],h,this.option],"name"),o.show&&(l=this.deepQuery([o,h,this.option],"textStyle"),i={},i.textFont=this.getFont(l),i.color=l.color,i.text="function"==typeof o.formatter?o.formatter.call(this.myChart,V[c].text,c):"string"==typeof o.formatter?o.formatter.replace("{value}",V[c].text):V[c].text,m[c].text=i.text,t=m[c].vector,a=Math.round(t[0])>0?"left":Math.round(t[0])<0?"right":"center",null==o.margin?t=this._mapVector(t,U,1.1):(s=o.margin,d=t[0]>0?s:-s,p=t[1]>0?s:-s,d=0===t[0]?0:d,p=0===t[1]?0:p,t=this._mapVector(t,U,1)),i.textAlign=a,i.x=t[0]+d,i.y=t[1]+p,r=o.rotate?[o.rotate/180*Math.PI,t[0],t[1]]:[0,0,0],this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),style:i,draggable:!1,hoverable:!1,rotation:r})))},getIndicatorText:function(e,t){return this.polar[e]&&this.polar[e].__ecIndicator[t]&&this.polar[e].__ecIndicator[t].text},getDropBox:function(e){var t,i,e=e||0,n=this.polar[e],a=this.getCenter(e),o=n.__ecIndicator,r=o.length,s=[],l=n.type;if("polygon"==l){for(var h=0;r>h;h++)t=o[h].vector,s.push(this._mapVector(t,a,1.2));i=this._getShape(s,"fill","rgba(0,0,0,0)","",1)}else"circle"==l&&(i=this._getCircle("",1,1.2,a,"fill","rgba(0,0,0,0)"));return i},_addArea:function(e,t,i,n,a,o,r){for(var s,l,h,m,V=this.deepQuery(this._queryTarget,"type"),U=0;t>U;U++)l=(t-U)/t,r&&("polygon"==V?(m=this._getPointList(e,l,i),s=this._getShape(m,"stroke","",a,o)):"circle"==V&&(s=this._getCircle(a,o,l,i,"stroke")),this.shapeList.push(s)),n.show&&(h=(t-U-1)/t,this._addSplitArea(e,n,l,h,i,U))},_getCircle:function(e,t,i,n,a,o){var s=this._getRadius();return new r({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:n[0],y:n[1],r:s*i,brushType:a,strokeColor:e,lineWidth:t,color:o},hoverable:!1,draggable:!1})},_getRing:function(e,t,i,n){var a=this._getRadius();return new s({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:n[0],y:n[1],r:t*a,r0:i*a,color:e,brushType:"fill"},hoverable:!1,draggable:!1})},_getPointList:function(e,t,i){for(var n,a=[],o=e.length,r=0;o>r;r++)n=e[r].vector,a.push(this._mapVector(n,i,t));return a},_getShape:function(e,t,i,n,a){return new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{pointList:e,brushType:t,color:i,strokeColor:n,lineWidth:a},hoverable:!1,draggable:!1})},_addSplitArea:function(e,t,i,n,a,o){var r,s,l,h,m,V=e.length,U=t.areaStyle.color,d=[],V=e.length,p=this.deepQuery(this._queryTarget,"type");if("string"==typeof U&&(U=[U]),s=U.length,r=U[o%s],"polygon"==p)for(var c=0;V>c;c++)d=[],l=e[c].vector,h=e[(c+1)%V].vector,d.push(this._mapVector(l,a,i)),d.push(this._mapVector(l,a,n)),d.push(this._mapVector(h,a,n)),d.push(this._mapVector(h,a,i)),m=this._getShape(d,"fill",r,"",1),this.shapeList.push(m);else"circle"==p&&(m=this._getRing(r,i,n,a),this.shapeList.push(m))},_mapVector:function(e,t,i){return[e[0]*i+t[0],e[1]*i+t[1]]},getCenter:function(e){var e=e||0;return this.parseCenter(this.zr,this.polar[e].center)},_addLine:function(e,t,i){for(var n,a,o=e.length,r=i.lineStyle,s=r.color,l=r.width,h=r.type,m=0;o>m;m++)a=e[m].vector,n=this._getLine(t[0],t[1],a[0]+t[0],a[1]+t[1],s,l,h),this.shapeList.push(n)},_getLine:function(e,t,i,n,o,r,s){return new a({zlevel:this.getZlevelBase(),z:this.getZBase(),style:{xStart:e,yStart:t,xEnd:i,yEnd:n,strokeColor:o,lineWidth:r,lineType:s},hoverable:!1})},_adjustIndicatorValue:function(t){for(var i,n,a,o=this.polar[t],r=this.deepQuery(this._queryTarget,"indicator"),s=r.length,l=o.__ecIndicator,h=this._getSeriesData(t),m=o.boundaryGap,V=o.splitNumber,U=o.scale,d=e("../util/smartSteps"),p=0;s>p;p++){if("number"==typeof r[p].max)i=r[p].max,n=r[p].min||0,a={max:i,min:n};else{var c=this._findValue(h,p,V,m);n=c.min,i=c.max}!U&&n>=0&&i>=0&&(n=0),!U&&0>=n&&0>=i&&(i=0);var u=d(n,i,V,a);l[p].value={min:u.min,max:u.max,step:u.step}}},_getSeriesData:function(e){for(var t,i,n,a=[],o=this.component.legend,r=0;r<this.series.length;r++)if(t=this.series[r],t.type==l.CHART_TYPE_RADAR){i=t.data||[];for(var s=0;s<i.length;s++)n=this.deepQuery([i[s],t,this.option],"polarIndex")||0,n!=e||o&&!o.isSelected(i[s].name)||a.push(i[s])}return a},_findValue:function(e,t,i,n){function a(e){(e>o||void 0===o)&&(o=e),(r>e||void 0===r)&&(r=e)}var o,r,s;if(e&&0!==e.length){if(1==e.length&&(r=0),1!=e.length)for(var l=0;l<e.length;l++)a(this.getDataFromOption(e[l].value[t]));else{s=e[0];for(var l=0;l<s.value.length;l++)a(this.getDataFromOption(s.value[l]))}var h=Math.abs(o-r);return r-=Math.abs(h*n[0]),o+=Math.abs(h*n[1]),r===o&&(0===o?o=1:o>0?r=o/i:o/=i),{max:o,min:r}}},getVector:function(e,t,i){e=e||0,t=t||0;var n=this.polar[e].__ecIndicator;if(!(t>=n.length)){var a,o=this.polar[e].__ecIndicator[t],r=this.getCenter(e),s=o.vector,l=o.value.max,h=o.value.min;if("undefined"==typeof i)return r;switch(i){case"min":i=h;break;case"max":i=l;break;case"center":i=(l+h)/2}return a=l!=h?(i-h)/(l-h):.5,this._mapVector(s,r,a)}},isInside:function(e){var t=this.getNearestIndex(e);return t?t.polarIndex:-1},getNearestIndex:function(e){for(var t,i,n,a,o,r,s,l,h,V=0;V<this.polar.length;V++){if(t=this.polar[V],i=this.getCenter(V),e[0]==i[0]&&e[1]==i[1])return{polarIndex:V,valueIndex:0};if(n=this._getRadius(),o=t.startAngle,r=t.indicator,s=r.length,l=2*Math.PI/s,a=m.cartesian2polar(e[0]-i[0],i[1]-e[1]),e[0]-i[0]<0&&(a[1]+=Math.PI),a[1]<0&&(a[1]+=2*Math.PI),h=a[1]-o/180*Math.PI+2*Math.PI,Math.abs(Math.cos(h%(l/2)))*n>a[0])return{polarIndex:V,valueIndex:Math.floor((h+l/2)/l)%s}}},getIndicator:function(e){var e=e||0;return this.polar[e].indicator},refresh:function(e){e&&(this.option=e,this.polar=this.option.polar,this.series=this.option.series),this.clear(),this._buildShape()}},h.inherits(t,i),e("../component").define("polar",t),t}),i("echarts/util/coordinates",["require","zrender/tool/math"],function(e){function t(e,t){return[e*n.sin(t),e*n.cos(t)]}function i(e,t){return[Math.sqrt(e*e+t*t),Math.atan(t/e)]}var n=e("zrender/tool/math");return{polar2cartesian:t,cartesian2polar:i}}),i("echarts/chart/chord",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Sector","../util/shape/Ribbon","../util/shape/Icon","zrender/shape/BezierCurve","../config","../util/ecData","zrender/tool/util","zrender/tool/vector","../data/Graph","../layout/Chord","../chart"],function(e){"use strict";function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.scaleLineLength=4,this.scaleUnitAngle=4,this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Sector"),r=e("../util/shape/Ribbon"),s=e("../util/shape/Icon"),l=e("zrender/shape/BezierCurve"),h=e("../config");h.chord={zlevel:0,z:2,clickable:!0,radius:["65%","75%"],center:["50%","50%"],padding:2,sort:"none",sortSub:"none",startAngle:90,clockWise:!0,ribbonType:!0,minRadius:10,maxRadius:20,symbol:"circle",showScale:!1,showScaleText:!1,itemStyle:{normal:{borderWidth:0,borderColor:"#000",label:{show:!0,rotate:!1,distance:5},chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999",opacity:.5}},emphasis:{borderWidth:0,borderColor:"#000",chordStyle:{width:1,color:"black",borderWidth:1,borderColor:"#999"}}}};var m=e("../util/ecData"),V=e("zrender/tool/util"),U=e("zrender/tool/vector"),d=e("../data/Graph"),p=e("../layout/Chord");return t.prototype={type:h.CHART_TYPE_CHORD,_init:function(){var e=this.series;this.selectedMap={};for(var t={},i={},n=0,a=e.length;a>n;n++)if(e[n].type===this.type){var o=this.isSelected(e[n].name);this.selectedMap[e[n].name]=o,o&&this.buildMark(n),this.reformOption(e[n]),t[e[n].name]=e[n]}for(var n=0,a=e.length;a>n;n++)if(e[n].type===this.type)if(e[n].insertToSerie){var r=t[e[n].insertToSerie];e[n]._referenceSerie=r}else i[e[n].name]=[e[n]];for(var n=0,a=e.length;a>n;n++)if(e[n].type===this.type&&e[n].insertToSerie){for(var s=e[n]._referenceSerie;s&&s._referenceSerie;)s=s._referenceSerie;i[s.name]&&this.selectedMap[e[n].name]&&i[s.name].push(e[n])}for(var l in i)this._buildChords(i[l]);this.addShapeList()},_getNodeCategory:function(e,t){return e.categories&&e.categories[t.category||0]},_getNodeQueryTarget:function(e,t){var i=this._getNodeCategory(e,t);return[t,i,e]},_getEdgeQueryTarget:function(e,t,i){return i=i||"normal",[t.itemStyle&&t.itemStyle[i],e.itemStyle[i].chordStyle]},_buildChords:function(e){for(var t=[],i=e[0],n=function(e){return e.layout.size>0},a=function(e){return function(t){return e.getEdge(t.node2,t.node1)}},o=0;o<e.length;o++){var r=e[o];if(this.selectedMap[r.name]){var s;r.matrix?s=this._getSerieGraphFromDataMatrix(r,i):r.links&&(s=this._getSerieGraphFromNodeLinks(r,i)),s.filterNode(n,this),r.ribbonType&&s.filterEdge(a(s)),t.push(s),s.__serie=r}}if(t.length){var l=t[0];if(!i.ribbonType){var h=i.minRadius,m=i.maxRadius,V=1/0,U=-(1/0);l.eachNode(function(e){U=Math.max(e.layout.size,U),V=Math.min(e.layout.size,V)});var d=(m-h)/(U-V);l.eachNode(function(e){var t=this._getNodeQueryTarget(i,e),n=this.query(t,"symbolSize");e.layout.size=U===V?n||V:n||(e.layout.size-V)*d+h},this)}var c=new p;c.clockWise=i.clockWise,c.startAngle=i.startAngle*Math.PI/180,c.clockWise||(c.startAngle=-c.startAngle),c.padding=i.padding*Math.PI/180,c.sort=i.sort,c.sortSub=i.sortSub,c.directed=i.ribbonType,c.run(t);var u=this.query(i,"itemStyle.normal.label.show");if(i.ribbonType){this._buildSectors(i,0,l,i,t),u&&this._buildLabels(i,0,l,i,t);for(var o=0,y=0;o<e.length;o++)this.selectedMap[e[o].name]&&this._buildRibbons(e,o,t[y++],i);i.showScale&&this._buildScales(i,0,l)}else{this._buildNodeIcons(i,0,l,i,t),u&&this._buildLabels(i,0,l,i,t);for(var o=0,y=0;o<e.length;o++)this.selectedMap[e[o].name]&&this._buildEdgeCurves(e,o,t[y++],i,l)}this._initHoverHandler(e,t)}},_getSerieGraphFromDataMatrix:function(e,t){for(var i=[],n=0,a=[],o=0;o<e.matrix.length;o++)a[o]=e.matrix[o].slice();for(var r=e.data||e.nodes,o=0;o<r.length;o++){var s={},l=r[o];l.rawIndex=o;for(var h in l)"name"===h?s.id=l.name:s[h]=l[h];var m=this._getNodeCategory(t,l),V=m?m.name:l.name;if(this.selectedMap[V]=this.isSelected(V),this.selectedMap[V])i.push(s),n++;else{a.splice(n,1);for(var U=0;U<a.length;U++)a[U].splice(n,1)}}var p=d.fromMatrix(i,a,!0);return p.eachNode(function(e){e.layout={size:e.data.outValue},e.rawIndex=e.data.rawIndex}),p.eachEdge(function(e){e.layout={weight:e.data.weight}}),p},_getSerieGraphFromNodeLinks:function(e,t){for(var i=new d(!0),n=e.data||e.nodes,a=0,o=n.length;o>a;a++){var r=n[a];if(r&&!r.ignore){var s=this._getNodeCategory(t,r),l=s?s.name:r.name;if(this.selectedMap[l]=this.isSelected(l),this.selectedMap[l]){var h=i.addNode(r.name,r);h.rawIndex=a}}}for(var a=0,o=e.links.length;o>a;a++){var m=e.links[a],V=m.source,U=m.target;"number"==typeof V&&(V=n[V],V&&(V=V.name)),"number"==typeof U&&(U=n[U],U&&(U=U.name));var p=i.addEdge(V,U,m);p&&(p.rawIndex=a)}return i.eachNode(function(e){var i=e.data.value;if(null==i)if(i=0,t.ribbonType)for(var n=0;n<e.outEdges.length;n++)i+=e.outEdges[n].data.weight||0;else for(var n=0;n<e.edges.length;n++)i+=e.edges[n].data.weight||0;e.layout={size:i}}),i.eachEdge(function(e){e.layout={weight:null==e.data.weight?1:e.data.weight}}),i},_initHoverHandler:function(e,t){var i=e[0],n=t[0],a=this;n.eachNode(function(e){e.shape.onmouseover=function(){n.eachNode(function(e){e.shape.style.opacity=.1,e.labelShape&&(e.labelShape.style.opacity=.1,e.labelShape.modSelf()),e.shape.modSelf()});for(var i=0;i<t.length;i++)for(var o=0;o<t[i].edges.length;o++){var r=t[i].edges[o],s=a._getEdgeQueryTarget(t[i].__serie,r.data);r.shape.style.opacity=.1*a.deepQuery(s,"opacity"),r.shape.modSelf()}e.shape.style.opacity=1,e.labelShape&&(e.labelShape.style.opacity=1);for(var i=0;i<t.length;i++){var l=t[i].getNodeById(e.id);if(l)for(var o=0;o<l.outEdges.length;o++){var r=l.outEdges[o],s=a._getEdgeQueryTarget(t[i].__serie,r.data);r.shape.style.opacity=a.deepQuery(s,"opacity");var h=t[0].getNodeById(r.node2.id);h&&(h.shape&&(h.shape.style.opacity=1),h.labelShape&&(h.labelShape.style.opacity=1))}}a.zr.refreshNextFrame()},e.shape.onmouseout=function(){n.eachNode(function(e){e.shape.style.opacity=1,e.labelShape&&(e.labelShape.style.opacity=1,e.labelShape.modSelf()),e.shape.modSelf()});for(var e=0;e<t.length;e++)for(var o=0;o<t[e].edges.length;o++){var r=t[e].edges[o],s=[r.data,i];r.shape.style.opacity=a.deepQuery(s,"itemStyle.normal.chordStyle.opacity"),r.shape.modSelf()}a.zr.refreshNextFrame()}})},_buildSectors:function(e,t,i,n){var a=this.parseCenter(this.zr,n.center),r=this.parseRadius(this.zr,n.radius),s=n.clockWise,l=s?1:-1;i.eachNode(function(i){var h=this._getNodeCategory(n,i.data),V=this.getColor(h?h.name:i.id),U=i.layout.startAngle/Math.PI*180*l,d=i.layout.endAngle/Math.PI*180*l,p=new o({zlevel:e.zlevel,z:e.z,style:{x:a[0],y:a[1],r0:r[0],r:r[1],startAngle:U,endAngle:d,brushType:"fill",opacity:1,color:V,clockWise:s},clickable:n.clickable,highlightStyle:{brushType:"fill"}});p.style.lineWidth=this.deepQuery([i.data,n],"itemStyle.normal.borderWidth"),p.highlightStyle.lineWidth=this.deepQuery([i.data,n],"itemStyle.emphasis.borderWidth"),p.style.strokeColor=this.deepQuery([i.data,n],"itemStyle.normal.borderColor"),p.highlightStyle.strokeColor=this.deepQuery([i.data,n],"itemStyle.emphasis.borderColor"),p.style.lineWidth>0&&(p.style.brushType="both"),p.highlightStyle.lineWidth>0&&(p.highlightStyle.brushType="both"),m.pack(p,e,t,i.data,i.rawIndex,i.id,i.category),this.shapeList.push(p),i.shape=p},this)},_buildNodeIcons:function(e,t,i,n){var a=this.parseCenter(this.zr,n.center),o=this.parseRadius(this.zr,n.radius),r=o[1];i.eachNode(function(i){var o=i.layout.startAngle,l=i.layout.endAngle,h=(o+l)/2,V=r*Math.cos(h),U=r*Math.sin(h),d=this._getNodeQueryTarget(n,i.data),p=this._getNodeCategory(n,i.data),c=this.deepQuery(d,"itemStyle.normal.color");c||(c=this.getColor(p?p.name:i.id));var u=new s({zlevel:e.zlevel,z:e.z+1,style:{x:-i.layout.size,y:-i.layout.size,width:2*i.layout.size,height:2*i.layout.size,iconType:this.deepQuery(d,"symbol"),color:c,brushType:"both",lineWidth:this.deepQuery(d,"itemStyle.normal.borderWidth"),strokeColor:this.deepQuery(d,"itemStyle.normal.borderColor")},highlightStyle:{color:this.deepQuery(d,"itemStyle.emphasis.color"),lineWidth:this.deepQuery(d,"itemStyle.emphasis.borderWidth"),strokeColor:this.deepQuery(d,"itemStyle.emphasis.borderColor")},clickable:n.clickable,position:[V+a[0],U+a[1]]});m.pack(u,e,t,i.data,i.rawIndex,i.id,i.category),this.shapeList.push(u),i.shape=u},this)},_buildLabels:function(e,t,i,a){var o=this.query(a,"itemStyle.normal.label.rotate"),r=this.query(a,"itemStyle.normal.label.distance"),s=this.parseCenter(this.zr,a.center),l=this.parseRadius(this.zr,a.radius),h=a.clockWise,m=h?1:-1;
-
-i.eachNode(function(t){var i=t.layout.startAngle/Math.PI*180*m,h=t.layout.endAngle/Math.PI*180*m,V=(i*-m+h*-m)/2;V%=360,0>V&&(V+=360);var d=90>=V||V>=270;V=V*Math.PI/180;var p=[Math.cos(V),-Math.sin(V)],c=0;c=a.ribbonType?a.showScaleText?35+r:r:r+t.layout.size;var u=U.scale([],p,l[1]+c);U.add(u,u,s);var y={zlevel:e.zlevel,z:e.z+1,hoverable:!1,style:{text:null==t.data.label?t.id:t.data.label,textAlign:d?"left":"right"}};o?(y.rotation=d?V:Math.PI+V,y.style.x=d?l[1]+c:-l[1]-c,y.style.y=0,y.position=s.slice()):(y.style.x=u[0],y.style.y=u[1]),y.style.color=this.deepQuery([t.data,a],"itemStyle.normal.label.textStyle.color")||"#000000",y.style.textFont=this.getFont(this.deepQuery([t.data,a],"itemStyle.normal.label.textStyle")),y=new n(y),this.shapeList.push(y),t.labelShape=y},this)},_buildRibbons:function(e,t,i,n){var a=e[t],o=this.parseCenter(this.zr,n.center),s=this.parseRadius(this.zr,n.radius);i.eachEdge(function(l,h){var V,U=i.getEdge(l.node2,l.node1);if(U&&!l.shape){if(U.shape)return void(l.shape=U.shape);var d=l.layout.startAngle/Math.PI*180,p=l.layout.endAngle/Math.PI*180,c=U.layout.startAngle/Math.PI*180,u=U.layout.endAngle/Math.PI*180;V=this.getColor(1===e.length?l.layout.weight<=U.layout.weight?l.node1.id:l.node2.id:a.name);var y,g,b=this._getEdgeQueryTarget(a,l.data),f=this._getEdgeQueryTarget(a,l.data,"emphasis"),k=new r({zlevel:a.zlevel,z:a.z,style:{x:o[0],y:o[1],r:s[0],source0:d,source1:p,target0:c,target1:u,brushType:"both",opacity:this.deepQuery(b,"opacity"),color:V,lineWidth:this.deepQuery(b,"borderWidth"),strokeColor:this.deepQuery(b,"borderColor"),clockWise:n.clockWise},clickable:n.clickable,highlightStyle:{brushType:"both",opacity:this.deepQuery(f,"opacity"),lineWidth:this.deepQuery(f,"borderWidth"),strokeColor:this.deepQuery(f,"borderColor")}});l.layout.weight<=U.layout.weight?(y=U.node1,g=U.node2):(y=l.node1,g=l.node2),m.pack(k,a,t,l.data,null==l.rawIndex?h:l.rawIndex,l.data.name||y.id+"-"+g.id,y.id,g.id),this.shapeList.push(k),l.shape=k}},this)},_buildEdgeCurves:function(e,t,i,n,a){var o=e[t],r=this.parseCenter(this.zr,n.center);i.eachEdge(function(e,i){var n=a.getNodeById(e.node1.id),s=a.getNodeById(e.node2.id),h=n.shape,V=s.shape,U=this._getEdgeQueryTarget(o,e.data),d=this._getEdgeQueryTarget(o,e.data,"emphasis"),p=new l({zlevel:o.zlevel,z:o.z,style:{xStart:h.position[0],yStart:h.position[1],xEnd:V.position[0],yEnd:V.position[1],cpX1:r[0],cpY1:r[1],lineWidth:this.deepQuery(U,"width"),strokeColor:this.deepQuery(U,"color"),opacity:this.deepQuery(U,"opacity")},highlightStyle:{lineWidth:this.deepQuery(d,"width"),strokeColor:this.deepQuery(d,"color"),opacity:this.deepQuery(d,"opacity")}});m.pack(p,o,t,e.data,null==e.rawIndex?i:e.rawIndex,e.data.name||e.node1.id+"-"+e.node2.id,e.node1.id,e.node2.id),this.shapeList.push(p),e.shape=p},this)},_buildScales:function(e,t,i){var o,r,s=e.clockWise,l=this.parseCenter(this.zr,e.center),h=this.parseRadius(this.zr,e.radius),m=s?1:-1,V=0,d=-(1/0);e.showScaleText&&(i.eachNode(function(e){var t=e.data.value;t>d&&(d=t),V+=t}),d>1e10?(o="b",r=1e-9):d>1e7?(o="m",r=1e-6):d>1e4?(o="k",r=.001):(o="",r=1));var p=V/(360-e.padding);i.eachNode(function(t){for(var i=t.layout.startAngle/Math.PI*180,V=t.layout.endAngle/Math.PI*180,d=i;;){if(s&&d>V||!s&&V>d)break;var c=d/180*Math.PI,u=[Math.cos(c),Math.sin(c)],y=U.scale([],u,h[1]+1);U.add(y,y,l);var g=U.scale([],u,h[1]+this.scaleLineLength);U.add(g,g,l);var b=new a({zlevel:e.zlevel,z:e.z-1,hoverable:!1,style:{xStart:y[0],yStart:y[1],xEnd:g[0],yEnd:g[1],lineCap:"round",brushType:"stroke",strokeColor:"#666",lineWidth:1}});this.shapeList.push(b),d+=m*this.scaleUnitAngle}if(e.showScaleText)for(var f=i,k=5*p*this.scaleUnitAngle,x=0;;){if(s&&f>V||!s&&V>f)break;var c=f;c%=360,0>c&&(c+=360);var _=90>=c||c>=270,L=new n({zlevel:e.zlevel,z:e.z-1,hoverable:!1,style:{x:_?h[1]+this.scaleLineLength+4:-h[1]-this.scaleLineLength-4,y:0,text:Math.round(10*x)/10+o,textAlign:_?"left":"right"},position:l.slice(),rotation:_?[-c/180*Math.PI,0,0]:[-(c+180)/180*Math.PI,0,0]});this.shapeList.push(L),x+=k*r,f+=m*this.scaleUnitAngle*5}},this)},refresh:function(e){if(e&&(this.option=e,this.series=e.series),this.legend=this.component.legend,this.legend)this.getColor=function(e){return this.legend.getColor(e)},this.isSelected=function(e){return this.legend.isSelected(e)};else{var t={},i=0;this.getColor=function(e){return t[e]?t[e]:(t[e]||(t[e]=this.zr.getColor(i++)),t[e])},this.isSelected=function(){return!0}}this.backupShapeList(),this._init()},reformOption:function(e){var t=V.merge;e=t(t(e||{},this.ecTheme.chord),h.chord),e.itemStyle.normal.label.textStyle=this.getTextStyle(e.itemStyle.normal.label.textStyle),this.z=e.z,this.zlevel=e.zlevel}},V.inherits(t,i),e("../chart").define("chord",t),t}),i("echarts/util/shape/Ribbon",["require","zrender/shape/Base","zrender/shape/util/PathProxy","zrender/tool/util","zrender/tool/area"],function(e){function t(e){i.call(this,e),this._pathProxy=new n}var i=e("zrender/shape/Base"),n=e("zrender/shape/util/PathProxy"),a=e("zrender/tool/util"),o=e("zrender/tool/area");return t.prototype={type:"ribbon",buildPath:function(e,t){var i=t.clockWise||!1,n=this._pathProxy;n.begin(e);var a=t.x,o=t.y,r=t.r,s=t.source0/180*Math.PI,l=t.source1/180*Math.PI,h=t.target0/180*Math.PI,m=t.target1/180*Math.PI,V=a+Math.cos(s)*r,U=o+Math.sin(s)*r,d=a+Math.cos(l)*r,p=o+Math.sin(l)*r,c=a+Math.cos(h)*r,u=o+Math.sin(h)*r,y=a+Math.cos(m)*r,g=o+Math.sin(m)*r;n.moveTo(V,U),n.arc(a,o,t.r,s,l,!i),n.bezierCurveTo(.7*(a-d)+d,.7*(o-p)+p,.7*(a-c)+c,.7*(o-u)+u,c,u),(t.source0!==t.target0||t.source1!==t.target1)&&(n.arc(a,o,t.r,h,m,!i),n.bezierCurveTo(.7*(a-y)+y,.7*(o-g)+g,.7*(a-V)+V,.7*(o-U)+U,V,U))},getRect:function(e){return e.__rect?e.__rect:(this._pathProxy.isEmpty()||this.buildPath(null,e),this._pathProxy.fastBoundingRect())},isCover:function(e,t){var i=this.getRect(this.style);return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height?o.isInsidePath(this._pathProxy.pathCommands,0,"fill",e,t):void 0}},a.inherits(t,i),t}),i("echarts/data/Graph",["require","zrender/tool/util"],function(e){var t=e("zrender/tool/util"),i=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={}};i.prototype.isDirected=function(){return this._directed},i.prototype.addNode=function(e,t){if(this._nodesMap[e])return this._nodesMap[e];var n=new i.Node(e,t);return this.nodes.push(n),this._nodesMap[e]=n,n},i.prototype.getNodeById=function(e){return this._nodesMap[e]},i.prototype.addEdge=function(e,t,n){if("string"==typeof e&&(e=this._nodesMap[e]),"string"==typeof t&&(t=this._nodesMap[t]),e&&t){var a=e.id+"-"+t.id;if(this._edgesMap[a])return this._edgesMap[a];var o=new i.Edge(e,t,n);return this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),this._edgesMap[a]=o,o}},i.prototype.removeEdge=function(e){var i=e.node1,n=e.node2,a=i.id+"-"+n.id;this._directed&&(i.outEdges.splice(t.indexOf(i.outEdges,e),1),n.inEdges.splice(t.indexOf(n.inEdges,e),1)),i.edges.splice(t.indexOf(i.edges,e),1),i!==n&&n.edges.splice(t.indexOf(n.edges,e),1),delete this._edgesMap[a],this.edges.splice(t.indexOf(this.edges,e),1)},i.prototype.getEdge=function(e,t){return"string"!=typeof e&&(e=e.id),"string"!=typeof t&&(t=t.id),this._directed?this._edgesMap[e+"-"+t]:this._edgesMap[e+"-"+t]||this._edgesMap[t+"-"+e]},i.prototype.removeNode=function(e){if("string"!=typeof e||(e=this._nodesMap[e])){delete this._nodesMap[e.id],this.nodes.splice(t.indexOf(this.nodes,e),1);for(var i=0;i<this.edges.length;){var n=this.edges[i];n.node1===e||n.node2===e?this.removeEdge(n):i++}}},i.prototype.filterNode=function(e,t){for(var i=this.nodes.length,n=0;i>n;)e.call(t,this.nodes[n],n)?n++:(this.removeNode(this.nodes[n]),i--)},i.prototype.filterEdge=function(e,t){for(var i=this.edges.length,n=0;i>n;)e.call(t,this.edges[n],n)?n++:(this.removeEdge(this.edges[n]),i--)},i.prototype.eachNode=function(e,t){for(var i=this.nodes.length,n=0;i>n;n++)this.nodes[n]&&e.call(t,this.nodes[n],n)},i.prototype.eachEdge=function(e,t){for(var i=this.edges.length,n=0;i>n;n++)this.edges[n]&&e.call(t,this.edges[n],n)},i.prototype.clear=function(){this.nodes.length=0,this.edges.length=0,this._nodesMap={},this._edgesMap={}},i.prototype.breadthFirstTraverse=function(e,t,i,n){if("string"==typeof t&&(t=this._nodesMap[t]),t){var a="edges";"out"===i?a="outEdges":"in"===i&&(a="inEdges");for(var o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var r=[t];r.length;)for(var s=r.shift(),l=s[a],o=0;o<l.length;o++){var h=l[o],m=h.node1===s?h.node2:h.node1;if(!m.__visited){if(e.call(m,m,s))return;r.push(m),m.__visited=!0}}}},i.prototype.clone=function(){for(var e=new i(this._directed),t=0;t<this.nodes.length;t++)e.addNode(this.nodes[t].id,this.nodes[t].data);for(var t=0;t<this.edges.length;t++){var n=this.edges[t];e.addEdge(n.node1.id,n.node2.id,n.data)}return e};var n=function(e,t){this.id=e,this.data=t||null,this.inEdges=[],this.outEdges=[],this.edges=[]};n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length};var a=function(e,t,i){this.node1=e,this.node2=t,this.data=i||null};return i.Node=n,i.Edge=a,i.fromMatrix=function(e,t,n){if(t&&t.length&&t[0].length===t.length&&e.length===t.length){for(var a=t.length,o=new i(n),r=0;a>r;r++){var s=o.addNode(e[r].id,e[r]);s.data.value=0,n&&(s.data.outValue=s.data.inValue=0)}for(var r=0;a>r;r++)for(var l=0;a>l;l++){var h=t[r][l];n&&(o.nodes[r].data.outValue+=h,o.nodes[l].data.inValue+=h),o.nodes[r].data.value+=h,o.nodes[l].data.value+=h}for(var r=0;a>r;r++)for(var l=r;a>l;l++){var h=t[r][l];if(0!==h){var m=o.nodes[r],V=o.nodes[l],U=o.addEdge(m,V,{});if(U.data.weight=h,r!==l&&n&&t[l][r]){var d=o.addEdge(V,m,{});d.data.weight=t[l][r]}}}return o}},i}),i("echarts/layout/Chord",["require"],function(){var e=function(e){e=e||{},this.sort=e.sort||null,this.sortSub=e.sortSub||null,this.padding=.05,this.startAngle=e.startAngle||0,this.clockWise=null==e.clockWise?!1:e.clockWise,this.center=e.center||[0,0],this.directed=!0};e.prototype.run=function(e){e instanceof Array||(e=[e]);var n=e.length;if(n){for(var a=e[0],o=a.nodes.length,r=[],s=0,l=0;o>l;l++){var h=a.nodes[l],m={size:0,subGroups:[],node:h};r.push(m);for(var V=0,U=0;U<e.length;U++){var d=e[U],p=d.getNodeById(h.id);if(p){m.size+=p.layout.size;for(var c=this.directed?p.outEdges:p.edges,u=0;u<c.length;u++){var y=c[u],g=y.layout.weight;m.subGroups.push({weight:g,edge:y,graph:d}),V+=g}}}s+=m.size;for(var b=m.size/V,u=0;u<m.subGroups.length;u++)m.subGroups[u].weight*=b;"ascending"===this.sortSub?m.subGroups.sort(t):"descending"===this.sort&&(m.subGroups.sort(t),m.subGroups.reverse())}"ascending"===this.sort?r.sort(i):"descending"===this.sort&&(r.sort(i),r.reverse());for(var b=(2*Math.PI-this.padding*o)/s,f=this.startAngle,k=this.clockWise?1:-1,l=0;o>l;l++){var m=r[l];m.node.layout.startAngle=f,m.node.layout.endAngle=f+k*m.size*b,m.node.layout.subGroups=[];for(var u=0;u<m.subGroups.length;u++){var x=m.subGroups[u];x.edge.layout.startAngle=f,f+=k*x.weight*b,x.edge.layout.endAngle=f}f=m.node.layout.endAngle+k*this.padding}}};var t=function(e,t){return e.weight-t.weight},i=function(e,t){return e.size-t.size};return e}),i("echarts/chart/force",["require","./base","../data/Graph","../layout/Force","zrender/shape/Line","zrender/shape/BezierCurve","zrender/shape/Image","../util/shape/Icon","../config","../util/ecData","zrender/tool/util","zrender/config","zrender/tool/vector","../chart"],function(e){"use strict";function t(e,t,o,h,m){var V=this;r.call(this,e,t,o,h,m),this.__nodePositionMap={},this._graph=new s(!0),this._layout=new l,this._layout.onupdate=function(){V._step()},this._steps=1,this.ondragstart=function(){i.apply(V,arguments)},this.ondragend=function(){a.apply(V,arguments)},this.ondrop=function(){},this.shapeHandler.ondragstart=function(){V.isDragstart=!0},this.onmousemove=function(){n.apply(V,arguments)},this.refresh(h)}function i(e){if(this.isDragstart&&e.target){var t=e.target;t.fixed=!0,this.isDragstart=!1,this.zr.on(u.EVENT.MOUSEMOVE,this.onmousemove)}}function n(){this._layout.temperature=.8,this._step()}function a(e,t){if(this.isDragend&&e.target){var i=e.target;i.fixed=!1,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1,this.zr.un(u.EVENT.MOUSEMOVE,this.onmousemove)}}function o(e,t,i){var n=y.create();return n[0]=(Math.random()-.5)*i+e,n[1]=(Math.random()-.5)*i+t,n}var r=e("./base"),s=e("../data/Graph"),l=e("../layout/Force"),h=e("zrender/shape/Line"),m=e("zrender/shape/BezierCurve"),V=e("zrender/shape/Image"),U=e("../util/shape/Icon"),d=e("../config");d.force={zlevel:1,z:2,center:["50%","50%"],size:"100%",preventOverlap:!1,coolDown:.99,minRadius:10,maxRadius:20,ratioScaling:!1,large:!1,useWorker:!1,steps:1,scaling:1,gravity:1,symbol:"circle",symbolSize:0,linkSymbol:null,linkSymbolSize:[10,15],draggable:!0,clickable:!0,roam:!1,itemStyle:{normal:{label:{show:!1,position:"inside"},nodeStyle:{brushType:"both",borderColor:"#5182ab",borderWidth:1},linkStyle:{color:"#5182ab",width:1,type:"line"}},emphasis:{label:{show:!1},nodeStyle:{},linkStyle:{opacity:0}}}};var p=e("../util/ecData"),c=e("zrender/tool/util"),u=e("zrender/config"),y=e("zrender/tool/vector");return t.prototype={constructor:t,type:d.CHART_TYPE_FORCE,_init:function(){this.selectedMap={};var e,t=this.component.legend,i=this.series;this.clear();for(var n=0,a=i.length;a>n;n++){var o=i[n];if(o.type===d.CHART_TYPE_FORCE){if(i[n]=this.reformOption(i[n]),e=i[n].name||"",this.selectedMap[e]=t?t.isSelected(e):!0,!this.selectedMap[e])continue;this.buildMark(n),this._initSerie(o,n);break}}this.animationEffect()},_getNodeCategory:function(e,t){return e.categories&&e.categories[t.category||0]},_getNodeQueryTarget:function(e,t,i){i=i||"normal";var n=this._getNodeCategory(e,t)||{};return[t.itemStyle&&t.itemStyle[i],n&&n.itemStyle&&n.itemStyle[i],e.itemStyle[i].nodeStyle]},_getEdgeQueryTarget:function(e,t,i){return i=i||"normal",[t.itemStyle&&t.itemStyle[i],e.itemStyle[i].linkStyle]},_initSerie:function(e,t){this._temperature=1,e.matrix?this._graph=this._getSerieGraphFromDataMatrix(e):e.links&&(this._graph=this._getSerieGraphFromNodeLinks(e)),this._buildLinkShapes(e,t),this._buildNodeShapes(e,t);var i=e.roam===!0||"move"===e.roam,n=e.roam===!0||"scale"===e.roam;this.zr.modLayer(this.getZlevelBase(),{panable:i,zoomable:n}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer(d.EFFECT_ZLEVEL,{panable:i,zoomable:n}),this._initLayout(e),this._step()},_getSerieGraphFromDataMatrix:function(e){for(var t=[],i=0,n=[],a=0;a<e.matrix.length;a++)n[a]=e.matrix[a].slice();for(var o=e.data||e.nodes,a=0;a<o.length;a++){var r={},l=o[a];for(var h in l)"name"===h?r.id=l.name:r[h]=l[h];var m=this._getNodeCategory(e,l),V=m?m.name:l.name;if(this.selectedMap[V]=this.isSelected(V),this.selectedMap[V])t.push(r),i++;else{n.splice(i,1);for(var U=0;U<n.length;U++)n[U].splice(i,1)}}var d=s.fromMatrix(t,n,!0);return d.eachNode(function(e,t){e.layout={size:e.data.value,mass:0},e.rawIndex=t}),d.eachEdge(function(e){e.layout={weight:e.data.weight}}),d},_getSerieGraphFromNodeLinks:function(e){for(var t=new s(!0),i=e.data||e.nodes,n=0,a=i.length;a>n;n++){var o=i[n];if(o&&!o.ignore){var r=this._getNodeCategory(e,o),l=r?r.name:o.name;if(this.selectedMap[l]=this.isSelected(l),this.selectedMap[l]){var h=t.addNode(o.name,o);h.rawIndex=n}}}for(var n=0,a=e.links.length;a>n;n++){var m=e.links[n],V=m.source,U=m.target;"number"==typeof V&&(V=i[V],V&&(V=V.name)),"number"==typeof U&&(U=i[U],U&&(U=U.name));var d=t.addEdge(V,U,m);d&&(d.rawIndex=n)}return t.eachNode(function(e){var t=e.data.value;if(null==t){t=0;for(var i=0;i<e.edges.length;i++)t+=e.edges[i].data.weight||0}e.layout={size:t,mass:0}}),t.eachEdge(function(e){e.layout={weight:null==e.data.weight?1:e.data.weight}}),t},_initLayout:function(e){var t=this._graph,i=t.nodes.length,n=this.query(e,"minRadius"),a=this.query(e,"maxRadius");this._steps=e.steps||1;var r=this._layout;r.center=this.parseCenter(this.zr,e.center),r.width=this.parsePercent(e.size,this.zr.getWidth()),r.height=this.parsePercent(e.size,this.zr.getHeight()),r.large=e.large,r.scaling=e.scaling,r.ratioScaling=e.ratioScaling,r.gravity=e.gravity,r.temperature=1,r.coolDown=e.coolDown,r.preventNodeEdgeOverlap=e.preventOverlap,r.preventNodeOverlap=e.preventOverlap;for(var s=1/0,l=-(1/0),h=0;i>h;h++){var m=t.nodes[h];l=Math.max(m.layout.size,l),s=Math.min(m.layout.size,s)}for(var V=l-s,h=0;i>h;h++){var m=t.nodes[h];V>0?(m.layout.size=(m.layout.size-s)*(a-n)/V+n,m.layout.mass=m.layout.size/a):(m.layout.size=(a-n)/2,m.layout.mass=.5)}for(var h=0;i>h;h++){var m=t.nodes[h];if("undefined"!=typeof this.__nodePositionMap[m.id])m.layout.position=y.create(),y.copy(m.layout.position,this.__nodePositionMap[m.id]);else if("undefined"!=typeof m.data.initial)m.layout.position=y.create(),y.copy(m.layout.position,m.data.initial);else{var U=this._layout.center,d=Math.min(this._layout.width,this._layout.height);m.layout.position=o(U[0],U[1],.8*d)}var p=m.shape.style,c=m.layout.size;p.width=p.width||2*c,p.height=p.height||2*c,p.x=-p.width/2,p.y=-p.height/2,y.copy(m.shape.position,m.layout.position)}i=t.edges.length,l=-(1/0);for(var h=0;i>h;h++){var u=t.edges[h];u.layout.weight>l&&(l=u.layout.weight)}for(var h=0;i>h;h++){var u=t.edges[h];u.layout.weight/=l}this._layout.init(t,e.useWorker)},_buildNodeShapes:function(e,t){var i=this._graph,n=this.query(e,"categories");i.eachNode(function(i){var a=this._getNodeCategory(e,i.data),o=[i.data,a,e],r=this._getNodeQueryTarget(e,i.data),s=this._getNodeQueryTarget(e,i.data,"emphasis"),l=new U({style:{x:0,y:0,color:this.deepQuery(r,"color"),brushType:"both",strokeColor:this.deepQuery(r,"strokeColor")||this.deepQuery(r,"borderColor"),lineWidth:this.deepQuery(r,"lineWidth")||this.deepQuery(r,"borderWidth")},highlightStyle:{color:this.deepQuery(s,"color"),strokeColor:this.deepQuery(s,"strokeColor")||this.deepQuery(s,"borderColor"),lineWidth:this.deepQuery(s,"lineWidth")||this.deepQuery(s,"borderWidth")},clickable:e.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()});l.style.color||(l.style.color=this.getColor(a?a.name:i.id)),l.style.iconType=this.deepQuery(o,"symbol");var h=this.deepQuery(o,"symbolSize")||0;"number"==typeof h&&(h=[h,h]),l.style.width=2*h[0],l.style.height=2*h[1],l.style.iconType.match("image")&&(l.style.image=l.style.iconType.replace(new RegExp("^image:\\/\\/"),""),l=new V({style:l.style,highlightStyle:l.highlightStyle,clickable:l.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(o,"itemStyle.normal.label.show")&&(l.style.text=null==i.data.label?i.id:i.data.label,l.style.textPosition=this.deepQuery(o,"itemStyle.normal.label.position"),l.style.textColor=this.deepQuery(o,"itemStyle.normal.label.textStyle.color"),l.style.textFont=this.getFont(this.deepQuery(o,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(o,"itemStyle.emphasis.label.show")&&(l.highlightStyle.textPosition=this.deepQuery(o,"itemStyle.emphasis.label.position"),l.highlightStyle.textColor=this.deepQuery(o,"itemStyle.emphasis.label.textStyle.color"),l.highlightStyle.textFont=this.getFont(this.deepQuery(o,"itemStyle.emphasis.label.textStyle")||{})),this.deepQuery(o,"draggable")&&(this.setCalculable(l),l.dragEnableTime=0,l.draggable=!0,l.ondragstart=this.shapeHandler.ondragstart,l.ondragover=null);var m="";if("undefined"!=typeof i.category){var a=n[i.category];m=a&&a.name||""}p.pack(l,e,t,i.data,i.rawIndex,i.data.name||"",i.category),this.shapeList.push(l),this.zr.addShape(l),i.shape=l},this)},_buildLinkShapes:function(e,t){for(var i=this._graph,n=i.edges.length,a=0;n>a;a++){var o=i.edges[a],r=o.data,s=o.node1,l=o.node2,V=i.getEdge(l,s),d=this._getEdgeQueryTarget(e,r),u=this.deepQuery(d,"type");e.linkSymbol&&"none"!==e.linkSymbol&&(u="line");var y="line"===u?h:m,g=new y({style:{xStart:0,yStart:0,xEnd:0,yEnd:0},clickable:this.query(e,"clickable"),highlightStyle:{},zlevel:this.getZlevelBase(),z:this.getZBase()});if(V&&V.shape&&(g.style.offset=4,V.shape.style.offset=4),c.merge(g.style,this.query(e,"itemStyle.normal.linkStyle"),!0),c.merge(g.highlightStyle,this.query(e,"itemStyle.emphasis.linkStyle"),!0),"undefined"!=typeof r.itemStyle&&(r.itemStyle.normal&&c.merge(g.style,r.itemStyle.normal,!0),r.itemStyle.emphasis&&c.merge(g.highlightStyle,r.itemStyle.emphasis,!0)),g.style.lineWidth=g.style.lineWidth||g.style.width,g.style.strokeColor=g.style.strokeColor||g.style.color,g.highlightStyle.lineWidth=g.highlightStyle.lineWidth||g.highlightStyle.width,g.highlightStyle.strokeColor=g.highlightStyle.strokeColor||g.highlightStyle.color,p.pack(g,e,t,o.data,null==o.rawIndex?a:o.rawIndex,o.data.name||s.id+" - "+l.id,s.id,l.id),this.shapeList.push(g),this.zr.addShape(g),o.shape=g,e.linkSymbol&&"none"!==e.linkSymbol){var b=new U({style:{x:-5,y:0,width:e.linkSymbolSize[0],height:e.linkSymbolSize[1],iconType:e.linkSymbol,brushType:"fill",color:g.style.strokeColor},highlightStyle:{brushType:"fill"},position:[0,0],rotation:0,zlevel:this.getZlevelBase(),z:this.getZBase()});g._symbolShape=b,this.shapeList.push(b),this.zr.addShape(b)}}},_updateLinkShapes:function(){for(var e=y.create(),t=y.create(),i=y.create(),n=y.create(),a=this._graph.edges,o=0,r=a.length;r>o;o++){var s=a[o],l=s.node1.shape,h=s.node2.shape;y.copy(i,l.position),y.copy(n,h.position);var m=s.shape.style;if(y.sub(e,i,n),y.normalize(e,e),m.offset?(t[0]=e[1],t[1]=-e[0],y.scaleAndAdd(i,i,t,m.offset),y.scaleAndAdd(n,n,t,m.offset)):"bezier-curve"===s.shape.type&&(m.cpX1=(i[0]+n[0])/2-(n[1]-i[1])/4,m.cpY1=(i[1]+n[1])/2-(i[0]-n[0])/4),m.xStart=i[0],m.yStart=i[1],m.xEnd=n[0],m.yEnd=n[1],s.shape.modSelf(),s.shape._symbolShape){var V=s.shape._symbolShape;y.copy(V.position,n),y.scaleAndAdd(V.position,V.position,e,h.style.width/2+2);var U=Math.atan2(e[1],e[0]);V.rotation=Math.PI/2-U,V.modSelf()}}},_syncNodePositions:function(){for(var e=this._graph,t=0;t<e.nodes.length;t++){var i=e.nodes[t],n=i.layout.position,a=i.data,o=i.shape,r=o.fixed||a.fixX,s=o.fixed||a.fixY;r===!0?r=1:isNaN(r)&&(r=0),s===!0?s=1:isNaN(s)&&(s=0),o.position[0]+=(n[0]-o.position[0])*(1-r),o.position[1]+=(n[1]-o.position[1])*(1-s),y.copy(n,o.position);var l=a.name;if(l){var h=this.__nodePositionMap[l];h||(h=this.__nodePositionMap[l]=y.create()),y.copy(h,n)}o.modSelf()}},_step:function(){this._syncNodePositions(),this._updateLinkShapes(),this.zr.refreshNextFrame(),this._layout.temperature>.01?this._layout.step(this._steps):this.messageCenter.dispatch(d.EVENT.FORCE_LAYOUT_END,{},{},this.myChart)},refresh:function(e){if(e&&(this.option=e,this.series=this.option.series),this.legend=this.component.legend,this.legend)this.getColor=function(e){return this.legend.getColor(e)},this.isSelected=function(e){return this.legend.isSelected(e)};else{var t={},i=0;this.getColor=function(e){return t[e]?t[e]:(t[e]||(t[e]=this.zr.getColor(i++)),t[e])},this.isSelected=function(){return!0}}this._init()},dispose:function(){this.clear(),this.shapeList=null,this.effectList=null,this._layout.dispose(),this._layout=null,this.__nodePositionMap={}},getPosition:function(){var e=[];return this._graph.eachNode(function(t){t.layout&&e.push({name:t.data.name,position:Array.prototype.slice.call(t.layout.position)})}),e}},c.inherits(t,r),e("../chart").define("force",t),t}),i("echarts/layout/Force",["require","./forceLayoutWorker","zrender/tool/vector"],function(e){function t(){if("undefined"!=typeof Worker&&"undefined"!=typeof Blob)try{var e=new Blob([n.getWorkerCode()]);i=window.URL.createObjectURL(e)}catch(t){i=""}return i}var i,n=e("./forceLayoutWorker"),a=e("zrender/tool/vector"),o=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},r="undefined"==typeof Float32Array?Array:Float32Array,s=function(e){"undefined"==typeof i&&t(),e=e||{},this.width=e.width||500,this.height=e.height||500,this.center=e.center||[this.width/2,this.height/2],this.ratioScaling=e.ratioScaling||!1,this.scaling=e.scaling||1,this.gravity="undefined"!=typeof e.gravity?e.gravity:1,this.large=e.large||!1,this.preventNodeOverlap=e.preventNodeOverlap||!1,this.preventNodeEdgeOverlap=e.preventNodeEdgeOverlap||!1,this.maxSpeedIncrease=e.maxSpeedIncrease||1,this.onupdate=e.onupdate||function(){},this.temperature=e.temperature||1,this.coolDown=e.coolDown||.99,this._layout=null,this._layoutWorker=null;var n=this,a=this._$onupdate;this._$onupdate=function(e){a.call(n,e)}};return s.prototype.updateConfig=function(){var e=this.width,t=this.height,i=Math.min(e,t),n={center:this.center,width:this.ratioScaling?e:i,height:this.ratioScaling?t:i,scaling:this.scaling||1,gravity:this.gravity||1,barnesHutOptimize:this.large,preventNodeOverlap:this.preventNodeOverlap,preventNodeEdgeOverlap:this.preventNodeEdgeOverlap,maxSpeedIncrease:this.maxSpeedIncrease};if(this._layoutWorker)this._layoutWorker.postMessage({cmd:"updateConfig",config:n});else for(var a in n)this._layout[a]=n[a]},s.prototype.init=function(e,t){if(this._layoutWorker&&(this._layoutWorker.terminate(),this._layoutWorker=null),i&&t)try{this._layoutWorker||(this._layoutWorker=new Worker(i),this._layoutWorker.onmessage=this._$onupdate),this._layout=null}catch(a){this._layoutWorker=null,this._layout||(this._layout=new n)}else this._layout||(this._layout=new n);this.temperature=1,this.graph=e;for(var o=e.nodes.length,s=new r(2*o),l=new r(o),h=new r(o),m=0;o>m;m++){var V=e.nodes[m];s[2*m]=V.layout.position[0],s[2*m+1]=V.layout.position[1],l[m]="undefined"==typeof V.layout.mass?1:V.layout.mass,h[m]="undefined"==typeof V.layout.size?1:V.layout.size,V.layout.__index=m}o=e.edges.length;for(var U=new r(2*o),d=new r(o),m=0;o>m;m++){var p=e.edges[m];U[2*m]=p.node1.layout.__index,U[2*m+1]=p.node2.layout.__index,d[m]=p.layout.weight||1}this._layoutWorker?this._layoutWorker.postMessage({cmd:"init",nodesPosition:s,nodesMass:l,nodesSize:h,edges:U,edgesWeight:d}):(this._layout.initNodes(s,l,h),this._layout.initEdges(U,d)),this.updateConfig()},s.prototype.step=function(e){var t=this.graph.nodes;if(this._layoutWorker){for(var i=new r(2*t.length),n=0;n<t.length;n++){var s=t[n];i[2*n]=s.layout.position[0],i[2*n+1]=s.layout.position[1]}this._layoutWorker.postMessage(i.buffer,[i.buffer]),this._layoutWorker.postMessage({cmd:"update",steps:e,temperature:this.temperature,coolDown:this.coolDown});for(var n=0;e>n;n++)this.temperature*=this.coolDown}else{o(this._$onupdate);for(var n=0;n<t.length;n++){var s=t[n];a.copy(this._layout.nodes[n].position,s.layout.position)}for(var n=0;e>n;n++)this._layout.temperature=this.temperature,this._layout.update(),this.temperature*=this.coolDown}},s.prototype._$onupdate=function(e){if(this._layoutWorker){for(var t=new Float32Array(e.data),i=0;i<this.graph.nodes.length;i++){var n=this.graph.nodes[i];n.layout.position[0]=t[2*i],n.layout.position[1]=t[2*i+1]}this.onupdate&&this.onupdate()}else if(this._layout){for(var i=0;i<this.graph.nodes.length;i++){var n=this.graph.nodes[i];a.copy(n.layout.position,this._layout.nodes[i].position)}this.onupdate&&this.onupdate()}},s.prototype.dispose=function(){this._layoutWorker&&this._layoutWorker.terminate(),this._layoutWorker=null,this._layout=null},s}),i("echarts/layout/forceLayoutWorker",["require","zrender/tool/vector"],function o(e){"use strict";function t(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new l(4),this.size=0}function i(){this.position=r.create(),this.force=r.create(),this.forcePrev=r.create(),this.speed=r.create(),this.speedPrev=r.create(),this.mass=1,this.inDegree=0,this.outDegree=0}function n(e,t){this.node1=e,this.node2=t,this.weight=1}function a(){this.barnesHutOptimize=!1,this.barnesHutTheta=1.5,this.repulsionByDegree=!1,this.preventNodeOverlap=!1,this.preventNodeEdgeOverlap=!1,this.strongGravity=!0,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.center=[0,0],this.width=500,this.height=500,this.maxSpeedIncrease=1,this.nodes=[],this.edges=[],this.bbox=new l(4),this._rootRegion=new t,this._rootRegion.centerOfMass=r.create(),this._massArr=null,this._k=0}var r,s="undefined"==typeof window&&"undefined"==typeof e;r=s?{create:function(e,t){var i=new Float32Array(2);return i[0]=e||0,i[1]=t||0,i},dist:function(e,t){var i=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(i*i+n*n)},len:function(e){var t=e[0],i=e[1];return Math.sqrt(t*t+i*i)},scaleAndAdd:function(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e},scale:function(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e},add:function(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e},sub:function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},normalize:function(e,t){var i=t[0],n=t[1],a=i*i+n*n;return a>0&&(a=1/Math.sqrt(a),e[0]=t[0]*a,e[1]=t[1]*a),e},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},set:function(e,t,i){return e[0]=t,e[1]=i,e}}:e("zrender/tool/vector");var l="undefined"==typeof Float32Array?Array:Float32Array;if(t.prototype.beforeUpdate=function(){for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},t.prototype.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var e=0;e<this.nSubRegions;e++)this.subRegions[e].afterUpdate()},t.prototype.addNode=function(e){if(0===this.nSubRegions){if(null==this.node)return void(this.node=e);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(e),this._updateCenterOfMass(e)},t.prototype.findSubRegion=function(e,t){for(var i=0;i<this.nSubRegions;i++){var n=this.subRegions[i];if(n.contain(e,t))return n}},t.prototype.contain=function(e,t){return this.bbox[0]<=e&&this.bbox[2]>=e&&this.bbox[1]<=t&&this.bbox[3]>=t},t.prototype.setBBox=function(e,t,i,n){this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=i,this.bbox[3]=n,this.size=(i-e+n-t)/2},t.prototype._newSubRegion=function(){var e=this.subRegions[this.nSubRegions];return e||(e=new t,this.subRegions[this.nSubRegions]=e),this.nSubRegions++,e},t.prototype._addNodeToSubRegion=function(e){var t=this.findSubRegion(e.position[0],e.position[1]),i=this.bbox;if(!t){var n=(i[0]+i[2])/2,a=(i[1]+i[3])/2,o=(i[2]-i[0])/2,r=(i[3]-i[1])/2,s=e.position[0]>=n?1:0,l=e.position[1]>=a?1:0,t=this._newSubRegion();t.setBBox(s*o+i[0],l*r+i[1],(s+1)*o+i[0],(l+1)*r+i[1])}t.addNode(e)},t.prototype._updateCenterOfMass=function(e){null==this.centerOfMass&&(this.centerOfMass=r.create());var t=this.centerOfMass[0]*this.mass,i=this.centerOfMass[1]*this.mass;t+=e.position[0]*e.mass,i+=e.position[1]*e.mass,this.mass+=e.mass,this.centerOfMass[0]=t/this.mass,this.centerOfMass[1]=i/this.mass},a.prototype.nodeToNodeRepulsionFactor=function(e,t,i){return i*i*e/t},a.prototype.edgeToNodeRepulsionFactor=function(e,t,i){return i*e/t},a.prototype.attractionFactor=function(e,t,i){return e*t/i},a.prototype.initNodes=function(e,t,n){this.temperature=1;var a=e.length/2;this.nodes.length=0;for(var o="undefined"!=typeof n,r=0;a>r;r++){var s=new i;s.position[0]=e[2*r],s.position[1]=e[2*r+1],s.mass=t[r],o&&(s.size=n[r]),this.nodes.push(s)}this._massArr=t,o&&(this._sizeArr=n)},a.prototype.initEdges=function(e,t){var i=e.length/2;this.edges.length=0;for(var a="undefined"!=typeof t,o=0;i>o;o++){var r=e[2*o],s=e[2*o+1],l=this.nodes[r],h=this.nodes[s];if(l&&h){l.outDegree++,h.inDegree++;var m=new n(l,h);a&&(m.weight=t[o]),this.edges.push(m)}}},a.prototype.update=function(){var e=this.nodes.length;if(this.updateBBox(),this._k=.4*this.scaling*Math.sqrt(this.width*this.height/e),this.barnesHutOptimize){this._rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this._rootRegion.beforeUpdate();for(var t=0;e>t;t++)this._rootRegion.addNode(this.nodes[t]);this._rootRegion.afterUpdate()}else{var i=0,n=this._rootRegion.centerOfMass;r.set(n,0,0);for(var t=0;e>t;t++){var a=this.nodes[t];i+=a.mass,r.scaleAndAdd(n,n,a.position,a.mass);
-
-}i>0&&r.scale(n,n,1/i)}this.updateForce(),this.updatePosition()},a.prototype.updateForce=function(){for(var e=this.nodes.length,t=0;e>t;t++){var i=this.nodes[t];r.copy(i.forcePrev,i.force),r.copy(i.speedPrev,i.speed),r.set(i.force,0,0)}this.updateNodeNodeForce(),this.gravity>0&&this.updateGravityForce(),this.updateEdgeForce(),this.preventNodeEdgeOverlap&&this.updateNodeEdgeForce()},a.prototype.updatePosition=function(){for(var e=this.nodes.length,t=r.create(),i=0;e>i;i++){var n=this.nodes[i],a=n.speed;r.scale(n.force,n.force,1/30);var o=r.len(n.force)+.1,s=Math.min(o,500)/o;r.scale(n.force,n.force,s),r.add(a,a,n.force),r.scale(a,a,this.temperature),r.sub(t,a,n.speedPrev);var l=r.len(t);if(l>0){r.scale(t,t,1/l);var h=r.len(n.speedPrev);h>0&&(l=Math.min(l/h,this.maxSpeedIncrease)*h,r.scaleAndAdd(a,n.speedPrev,t,l))}var m=r.len(a),s=Math.min(m,100)/(m+.1);r.scale(a,a,s),r.add(n.position,n.position,a)}},a.prototype.updateNodeNodeForce=function(){for(var e=this.nodes.length,t=0;e>t;t++){var i=this.nodes[t];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this._rootRegion,i);else for(var n=t+1;e>n;n++){var a=this.nodes[n];this.applyNodeToNodeRepulsion(i,a,!1)}}},a.prototype.updateGravityForce=function(){for(var e=0;e<this.nodes.length;e++)this.applyNodeGravity(this.nodes[e])},a.prototype.updateEdgeForce=function(){for(var e=0;e<this.edges.length;e++)this.applyEdgeAttraction(this.edges[e])},a.prototype.updateNodeEdgeForce=function(){for(var e=0;e<this.nodes.length;e++)for(var t=0;t<this.edges.length;t++)this.applyEdgeToNodeRepulsion(this.edges[t],this.nodes[e])},a.prototype.applyRegionToNodeRepulsion=function(){var e=r.create();return function(t,i){if(t.node)this.applyNodeToNodeRepulsion(t.node,i,!0);else{if(0===t.mass&&0===i.mass)return;r.sub(e,i.position,t.centerOfMass);var n=e[0]*e[0]+e[1]*e[1];if(n>this.barnesHutTheta*t.size*t.size){var a=this._k*this._k*(i.mass+t.mass)/(n+1);r.scaleAndAdd(i.force,i.force,e,2*a)}else for(var o=0;o<t.nSubRegions;o++)this.applyRegionToNodeRepulsion(t.subRegions[o],i)}}}(),a.prototype.applyNodeToNodeRepulsion=function(){var e=r.create();return function(t,i,n){if(t!==i&&(0!==t.mass||0!==i.mass)){r.sub(e,t.position,i.position);var a=e[0]*e[0]+e[1]*e[1];if(0!==a){var o,s=t.mass+i.mass,l=Math.sqrt(a);r.scale(e,e,1/l),this.preventNodeOverlap?(l=l-t.size-i.size,l>0?o=this.nodeToNodeRepulsionFactor(s,l,this._k):0>=l&&(o=this._k*this._k*10*s)):o=this.nodeToNodeRepulsionFactor(s,l,this._k),n||r.scaleAndAdd(t.force,t.force,e,2*o),r.scaleAndAdd(i.force,i.force,e,2*-o)}}}}(),a.prototype.applyEdgeAttraction=function(){var e=r.create();return function(t){var i=t.node1,n=t.node2;r.sub(e,i.position,n.position);var a,o=r.len(e);a=0===this.edgeWeightInfluence?1:1==this.edgeWeightInfluence?t.weight:Math.pow(t.weight,this.edgeWeightInfluence);var s;if(!(this.preventOverlap&&(o=o-i.size-n.size,0>=o))){var s=this.attractionFactor(a,o,this._k);r.scaleAndAdd(i.force,i.force,e,-s),r.scaleAndAdd(n.force,n.force,e,s)}}}(),a.prototype.applyNodeGravity=function(){var e=r.create();return function(t){r.sub(e,this.center,t.position),this.width>this.height?e[1]*=this.width/this.height:e[0]*=this.height/this.width;var i=r.len(e)/100;this.strongGravity?r.scaleAndAdd(t.force,t.force,e,i*this.gravity*t.mass):r.scaleAndAdd(t.force,t.force,e,this.gravity*t.mass/(i+1))}}(),a.prototype.applyEdgeToNodeRepulsion=function(){var e=r.create(),t=r.create(),i=r.create();return function(n,a){var o=n.node1,s=n.node2;if(o!==a&&s!==a){r.sub(e,s.position,o.position),r.sub(t,a.position,o.position);var l=r.len(e);r.scale(e,e,1/l);var h=r.dot(e,t);if(!(0>h||h>l)){r.scaleAndAdd(i,o.position,e,h);var m=r.dist(i,a.position)-a.size,V=this.edgeToNodeRepulsionFactor(a.mass,Math.max(m,.1),100);r.sub(e,a.position,i),r.normalize(e,e),r.scaleAndAdd(a.force,a.force,e,V),r.scaleAndAdd(o.force,o.force,e,-V),r.scaleAndAdd(s.force,s.force,e,-V)}}}}(),a.prototype.updateBBox=function(){for(var e=1/0,t=1/0,i=-(1/0),n=-(1/0),a=0;a<this.nodes.length;a++){var o=this.nodes[a].position;e=Math.min(e,o[0]),t=Math.min(t,o[1]),i=Math.max(i,o[0]),n=Math.max(n,o[1])}this.bbox[0]=e,this.bbox[1]=t,this.bbox[2]=i,this.bbox[3]=n},a.getWorkerCode=function(){var e=o.toString();return e.slice(e.indexOf("{")+1,e.lastIndexOf("return"))},s){var h=null;self.onmessage=function(e){if(e.data instanceof ArrayBuffer){if(!h)return;for(var t=new Float32Array(e.data),i=t.length/2,n=0;i>n;n++){var o=h.nodes[n];o.position[0]=t[2*n],o.position[1]=t[2*n+1]}}else switch(e.data.cmd){case"init":h||(h=new a),h.initNodes(e.data.nodesPosition,e.data.nodesMass,e.data.nodesSize),h.initEdges(e.data.edges,e.data.edgesWeight);break;case"updateConfig":if(h)for(var r in e.data.config)h[r]=e.data.config[r];break;case"update":var s=e.data.steps;if(h){var i=h.nodes.length,t=new Float32Array(2*i);h.temperature=e.data.temperature;for(var n=0;s>n;n++)h.update(),h.temperature*=e.data.coolDown;for(var n=0;i>n;n++){var o=h.nodes[n];t[2*n]=o.position[0],t[2*n+1]=o.position[1]}self.postMessage(t.buffer,[t.buffer])}else{var l=new Float32Array;self.postMessage(l.buffer,[l.buffer])}}}}return a}),i("echarts/chart/map",["require","./base","zrender/shape/Text","zrender/shape/Path","zrender/shape/Circle","zrender/shape/Rectangle","zrender/shape/Line","zrender/shape/Polygon","zrender/shape/Ellipse","zrender/shape/Image","../component/dataRange","../component/roamController","../layer/heatmap","../config","../util/ecData","zrender/tool/util","zrender/config","zrender/tool/event","../util/mapData/params","../util/mapData/textFixed","../util/mapData/geoCoord","../util/projection/svg","../util/projection/normal","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._onmousewheel=function(e){return r.__onmousewheel(e)},r._onmousedown=function(e){return r.__onmousedown(e)},r._onmousemove=function(e){return r.__onmousemove(e)},r._onmouseup=function(e){return r.__onmouseup(e)},r._onroamcontroller=function(e){return r.__onroamcontroller(e)},r._ondrhoverlink=function(e){return r.__ondrhoverlink(e)},this._isAlive=!0,this._selectedMode={},this._activeMapType={},this._clickable={},this._hoverable={},this._showLegendSymbol={},this._selected={},this._mapTypeMap={},this._mapDataMap={},this._nameMap={},this._specialArea={},this._refreshDelayTicket,this._mapDataRequireCounter,this._markAnimation=!1,this._hoverLinkMap={},this._roamMap={},this._scaleLimitMap={},this._mx,this._my,this._mousedown,this._justMove,this._curMapType,this.refresh(a),this.zr.on(c.EVENT.MOUSEWHEEL,this._onmousewheel),this.zr.on(c.EVENT.MOUSEDOWN,this._onmousedown),t.bind(U.EVENT.ROAMCONTROLLER,this._onroamcontroller),t.bind(U.EVENT.DATA_RANGE_HOVERLINK,this._ondrhoverlink)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Path"),o=e("zrender/shape/Circle"),r=e("zrender/shape/Rectangle"),s=e("zrender/shape/Line"),l=e("zrender/shape/Polygon"),h=e("zrender/shape/Ellipse"),m=e("zrender/shape/Image");e("../component/dataRange"),e("../component/roamController");var V=e("../layer/heatmap"),U=e("../config");U.map={zlevel:0,z:2,mapType:"china",showLegendSymbol:!0,dataRangeHoverLink:!0,hoverable:!0,clickable:!0,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,areaStyle:{color:"#ccc"},label:{show:!1,textStyle:{color:"rgb(139,69,19)"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,areaStyle:{color:"rgba(255,215,0,0.8)"},label:{show:!1,textStyle:{color:"rgb(100,0,0)"}}}}};var d=e("../util/ecData"),p=e("zrender/tool/util"),c=e("zrender/config"),u=e("zrender/tool/event"),y=e("../util/mapData/params").params,g=e("../util/mapData/textFixed"),b=e("../util/mapData/geoCoord");return t.prototype={type:U.CHART_TYPE_MAP,_buildShape:function(){var e=this.series;this.selectedMap={},this._activeMapType={};for(var t,i,n,a,o=this.component.legend,r={},s={},l={},h={},m=0,V=e.length;V>m;m++)if(e[m].type==U.CHART_TYPE_MAP&&(e[m]=this.reformOption(e[m]),i=e[m].mapType,s[i]=s[i]||{},s[i][m]=!0,l[i]=l[i]||e[m].mapValuePrecision,this._scaleLimitMap[i]=this._scaleLimitMap[i]||{},e[m].scaleLimit&&p.merge(this._scaleLimitMap[i],e[m].scaleLimit,!0),this._roamMap[i]=e[m].roam||this._roamMap[i],(null==this._hoverLinkMap[i]||this._hoverLinkMap[i])&&(this._hoverLinkMap[i]=e[m].dataRangeHoverLink),this._nameMap[i]=this._nameMap[i]||{},e[m].nameMap&&p.merge(this._nameMap[i],e[m].nameMap,!0),this._activeMapType[i]=!0,e[m].textFixed&&p.merge(g,e[m].textFixed,!0),e[m].geoCoord&&p.merge(b,e[m].geoCoord,!0),this._selectedMode[i]=this._selectedMode[i]||e[m].selectedMode,(null==this._hoverable[i]||this._hoverable[i])&&(this._hoverable[i]=e[m].hoverable),(null==this._clickable[i]||this._clickable[i])&&(this._clickable[i]=e[m].clickable),(null==this._showLegendSymbol[i]||this._showLegendSymbol[i])&&(this._showLegendSymbol[i]=e[m].showLegendSymbol),h[i]=h[i]||e[m].mapValueCalculation,t=e[m].name,this.selectedMap[t]=o?o.isSelected(t):!0,this.selectedMap[t])){r[i]=r[i]||{},n=e[m].data;for(var d=0,c=n.length;c>d;d++){a=this._nameChange(i,n[d].name),r[i][a]=r[i][a]||{seriesIndex:[],valueMap:{},precision:0};for(var u in n[d])"value"!=u?r[i][a][u]=n[d][u]:isNaN(n[d].value)||(null==r[i][a].value&&(r[i][a].value=0),r[i][a].precision=Math.max(this.getPrecision(+n[d].value),r[i][a].precision),r[i][a].value+=+n[d].value,r[i][a].valueMap[m]=+n[d].value);r[i][a].seriesIndex.push(m)}}this._mapDataRequireCounter=0;for(var f in r)this._mapDataRequireCounter++;this._clearSelected(),0===this._mapDataRequireCounter&&(this.clear(),this.zr&&this.zr.delShape(this.lastShapeList),this.lastShapeList=[]);for(var f in r){for(var c in r[f]){"average"==h[f]&&(r[f][c].value/=r[f][c].seriesIndex.length);var k=r[f][c].value;null!=k&&(r[f][c].value=k.toFixed(null==l[f]?r[f][c].precision:l[f])-0)}this._mapDataMap[f]=this._mapDataMap[f]||{},this._mapDataMap[f].mapData?this._mapDataCallback(f,r[f],s[f])(this._mapDataMap[f].mapData):y[f.replace(/\|.*/,"")].getGeoJson&&(this._specialArea[f]=y[f.replace(/\|.*/,"")].specialArea||this._specialArea[f],y[f.replace(/\|.*/,"")].getGeoJson(this._mapDataCallback(f,r[f],s[f])))}},_mapDataCallback:function(t,i,n){var a=this;return function(o){a._isAlive&&null!=a._activeMapType[t]&&(-1!=t.indexOf("|")&&(o=a._getSubMapData(t,o)),a._mapDataMap[t].mapData=o,o.firstChild?(a._mapDataMap[t].rate=1,a._mapDataMap[t].projection=e("../util/projection/svg")):(a._mapDataMap[t].rate=.75,a._mapDataMap[t].projection=e("../util/projection/normal")),a._buildMap(t,a._getProjectionData(t,o,n),i,n),a._buildMark(t,n),--a._mapDataRequireCounter<=0&&(a.addShapeList(),a.zr.refreshNextFrame()),a._buildHeatmap(t))}},_clearSelected:function(){for(var e in this._selected)this._activeMapType[this._mapTypeMap[e]]||(delete this._selected[e],delete this._mapTypeMap[e])},_getSubMapData:function(e,t){for(var i=e.replace(/^.*\|/,""),n=t.features,a=0,o=n.length;o>a;a++)if(n[a].properties&&n[a].properties.name==i){n=n[a],"United States of America"==i&&n.geometry.coordinates.length>1&&(n={geometry:{coordinates:n.geometry.coordinates.slice(5,6),type:n.geometry.type},id:n.id,properties:n.properties,type:n.type});break}return{type:"FeatureCollection",features:[n]}},_getProjectionData:function(e,t,i){var n,a=this._mapDataMap[e].projection,o=[],r=this._mapDataMap[e].bbox||a.getBbox(t,this._specialArea[e]);n=this._mapDataMap[e].hasRoam?this._mapDataMap[e].transform:this._getTransform(r,i,this._mapDataMap[e].rate);var s,l=this._mapDataMap[e].lastTransform||{scale:{}};n.left!=l.left||n.top!=l.top||n.scale.x!=l.scale.x||n.scale.y!=l.scale.y?(s=a.geoJson2Path(t,n,this._specialArea[e]),l=p.clone(n)):(n=this._mapDataMap[e].transform,s=this._mapDataMap[e].pathArray),this._mapDataMap[e].bbox=r,this._mapDataMap[e].transform=n,this._mapDataMap[e].lastTransform=l,this._mapDataMap[e].pathArray=s;for(var h=[n.left,n.top],m=0,V=s.length;V>m;m++)o.push(this._getSingleProvince(e,s[m],h));if(this._specialArea[e])for(var U in this._specialArea[e])o.push(this._getSpecialProjectionData(e,t,U,this._specialArea[e][U],h));if("china"==e){var d=this.geo2pos(e,b["南海诸岛"]||y["南海诸岛"].textCoord),c=n.scale.x/10.5,u=[32*c+d[0],83*c+d[1]];g["南海诸岛"]&&(u[0]+=g["南海诸岛"][0],u[1]+=g["南海诸岛"][1]),o.push({name:this._nameChange(e,"南海诸岛"),path:y["南海诸岛"].getPath(d,c),position:h,textX:u[0],textY:u[1]})}return o},_getSpecialProjectionData:function(t,i,n,a,o){i=this._getSubMapData("x|"+n,i);var r=e("../util/projection/normal"),s=r.getBbox(i),l=this.geo2pos(t,[a.left,a.top]),h=this.geo2pos(t,[a.left+a.width,a.top+a.height]),m=Math.abs(h[0]-l[0]),V=Math.abs(h[1]-l[1]),U=s.width,d=s.height,p=m/.75/U,c=V/d;p>c?(p=.75*c,m=U*p):(c=p,p=.75*c,V=d*c);var u={OffsetLeft:l[0],OffsetTop:l[1],scale:{x:p,y:c}},y=r.geoJson2Path(i,u);return this._getSingleProvince(t,y[0],o)},_getSingleProvince:function(e,t,i){var n,a=t.properties.name,o=g[a]||[0,0];if(b[a])n=this.geo2pos(e,b[a]);else if(t.cp)n=[t.cp[0]+o[0],t.cp[1]+o[1]];else{var r=this._mapDataMap[e].bbox;n=this.geo2pos(e,[r.left+r.width/2,r.top+r.height/2]),n[0]+=o[0],n[1]+=o[1]}return t.name=this._nameChange(e,a),t.position=i,t.textX=n[0],t.textY=n[1],t},_getTransform:function(e,t,i){var n,a,o,r,s,l,h,m=this.series,V=this.zr.getWidth(),U=this.zr.getHeight(),d=Math.round(.02*Math.min(V,U));for(var p in t)n=m[p].mapLocation||{},o=n.x||o,s=n.y||s,l=n.width||l,h=n.height||h;a=this.parsePercent(o,V),a=isNaN(a)?d:a,r=this.parsePercent(s,U),r=isNaN(r)?d:r,l=null==l?V-a-2*d:this.parsePercent(l,V),h=null==h?U-r-2*d:this.parsePercent(h,U);var c=e.width,u=e.height,y=l/i/c,g=h/u;if(y>g?(y=g*i,l=c*y):(g=y,y=g*i,h=u*g),isNaN(o))switch(o=o||"center",o+""){case"center":a=Math.floor((V-l)/2);break;case"right":a=V-l}if(isNaN(s))switch(s=s||"center",s+""){case"center":r=Math.floor((U-h)/2);break;case"bottom":r=U-h}return{left:a,top:r,width:l,height:h,baseScale:1,scale:{x:y,y:g}}},_buildMap:function(e,t,i,m){for(var V,c,u,y,g,b,f,k,x,_,L,W=this.series,X=this.component.legend,v=this.component.dataRange,w=0,K=t.length;K>w;w++){if(k=p.clone(t[w]),x={name:k.name,path:k.path,position:p.clone(k.position)},c=k.name,u=i[c]){g=[u],V="";for(var I=0,J=u.seriesIndex.length;J>I;I++){var C=W[u.seriesIndex[I]];g.push(C),V+=C.name+" ",X&&this._showLegendSymbol[e]&&X.hasColor(C.name)&&this.shapeList.push(new o({zlevel:C.zlevel,z:C.z+1,position:p.clone(k.position),_mapType:e,style:{x:k.textX+3+7*I,y:k.textY-10,r:3,color:X.getColor(C.name)},hoverable:!1}))}y=u.value}else{u={name:c,value:"-"},V="",g=[];for(var S in m)g.push(W[S]);y="-"}switch(this.ecTheme.map&&g.push(this.ecTheme.map),g.push(U.map),b=v&&!isNaN(y)?v.getColor(y):null,k.color=k.color||b||this.getItemStyleColor(this.deepQuery(g,"itemStyle.normal.color"),u.seriesIndex,-1,u)||this.deepQuery(g,"itemStyle.normal.areaStyle.color"),k.strokeColor=k.strokeColor||this.deepQuery(g,"itemStyle.normal.borderColor"),k.lineWidth=k.lineWidth||this.deepQuery(g,"itemStyle.normal.borderWidth"),x.color=this.getItemStyleColor(this.deepQuery(g,"itemStyle.emphasis.color"),u.seriesIndex,-1,u)||this.deepQuery(g,"itemStyle.emphasis.areaStyle.color")||k.color,x.strokeColor=this.deepQuery(g,"itemStyle.emphasis.borderColor")||k.strokeColor,x.lineWidth=this.deepQuery(g,"itemStyle.emphasis.borderWidth")||k.lineWidth,k.brushType=x.brushType=k.brushType||"both",k.lineJoin=x.lineJoin="round",k._name=x._name=c,f=this.deepQuery(g,"itemStyle.normal.label.textStyle"),L={zlevel:this.getZlevelBase(),z:this.getZBase()+1,position:p.clone(k.position),_mapType:e,_geo:this.pos2geo(e,[k.textX,k.textY]),style:{brushType:"fill",x:k.textX,y:k.textY,text:this.getLabelText(c,y,g,"normal"),_name:c,textAlign:"center",color:this.deepQuery(g,"itemStyle.normal.label.show")?this.deepQuery(g,"itemStyle.normal.label.textStyle.color"):"rgba(0,0,0,0)",textFont:this.getFont(f)}},L._style=p.clone(L.style),L.highlightStyle=p.clone(L.style),this.deepQuery(g,"itemStyle.emphasis.label.show")?(L.highlightStyle.text=this.getLabelText(c,y,g,"emphasis"),L.highlightStyle.color=this.deepQuery(g,"itemStyle.emphasis.label.textStyle.color")||L.style.color,f=this.deepQuery(g,"itemStyle.emphasis.label.textStyle")||f,L.highlightStyle.textFont=this.getFont(f)):L.highlightStyle.color="rgba(0,0,0,0)",_={zlevel:this.getZlevelBase(),z:this.getZBase(),position:p.clone(k.position),style:k,highlightStyle:x,_style:p.clone(k),_mapType:e},null!=k.scale&&(_.scale=p.clone(k.scale)),L=new n(L),_.style.shapeType){case"rectangle":_=new r(_);break;case"line":_=new s(_);break;case"circle":_=new o(_);break;case"polygon":_=new l(_);break;case"ellipse":_=new h(_);break;default:_=new a(_),_.buildPathArray&&(_.style.pathArray=_.buildPathArray(_.style.path))}(this._selectedMode[e]&&this._selected[c]&&u.selected!==!1||u.selected===!0)&&(L.style=L.highlightStyle,_.style=_.highlightStyle),L.clickable=_.clickable=this._clickable[e]&&(null==u.clickable||u.clickable),this._selectedMode[e]&&(this._selected[c]=null!=this._selected[c]?this._selected[c]:u.selected,this._mapTypeMap[c]=e,(null==u.selectable||u.selectable)&&(_.clickable=L.clickable=!0,_.onclick=L.onclick=this.shapeHandler.onclick)),this._hoverable[e]&&(null==u.hoverable||u.hoverable)?(L.hoverable=_.hoverable=!0,_.hoverConnect=L.id,L.hoverConnect=_.id):L.hoverable=_.hoverable=!1,d.pack(L,{name:V,tooltip:this.deepQuery(g,"tooltip")},0,u,0,c),this.shapeList.push(L),d.pack(_,{name:V,tooltip:this.deepQuery(g,"tooltip")},0,u,0,c),this.shapeList.push(_)}},_buildMark:function(e,t){this._seriesIndexToMapType=this._seriesIndexToMapType||{},this.markAttachStyle=this.markAttachStyle||{};var i=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top];"none"==e&&(i=[0,0]);for(var n in t)this._seriesIndexToMapType[n]=e,this.markAttachStyle[n]={position:i,_mapType:e},this.buildMark(n)},_buildHeatmap:function(e){for(var t=this.series,i=0,n=t.length;n>i;i++)if(t[i].heatmap){var a=t[i].heatmap.data;if(t[i].heatmap.needsTransform===!1){for(var o=[],r=0,s=a.length;s>r;++r)o.push([a[r][3],a[r][4],a[r][2]]);var l=[0,0]}else{var h=t[i].heatmap._geoData;if(void 0===h){t[i].heatmap._geoData=[];for(var r=0,s=a.length;s>r;++r)t[i].heatmap._geoData[r]=a[r];h=t[i].heatmap._geoData}for(var s=a.length,U=0;s>U;++U)a[U]=this.geo2pos(e,[h[U][0],h[U][1]]);var l=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top]}var d=new V(t[i].heatmap),p=d.getCanvas(a[0][3]?o:a,this.zr.getWidth(),this.zr.getHeight()),c=new m({zlevel:this.getZlevelBase(),z:this.getZBase()+1,position:l,scale:[1,1],hoverable:!1,style:{x:0,y:0,image:p,width:p.width,height:p.height}});c.type="heatmap",c._mapType=e,this.shapeList.push(c),this.zr.addShape(c)}},getMarkCoord:function(e,t){return t.geoCoord||b[t.name]?this.geo2pos(this._seriesIndexToMapType[e],t.geoCoord||b[t.name]):[0,0]},getMarkGeo:function(e){return e.geoCoord||b[e.name]},_nameChange:function(e,t){return this._nameMap[e][t]||t},getLabelText:function(e,t,i,n){var a=this.deepQuery(i,"itemStyle."+n+".label.formatter");return a?"function"==typeof a?a.call(this.myChart,e,t):"string"==typeof a?(a=a.replace("{a}","{a0}").replace("{b}","{b0}"),a=a.replace("{a0}",e).replace("{b0}",t)):void 0:e},_findMapTypeByPos:function(e,t){var i,n,a,o,r;for(var s in this._mapDataMap)if(i=this._mapDataMap[s].transform,i&&this._roamMap[s]&&this._activeMapType[s]&&(n=i.left,a=i.top,o=i.width,r=i.height,e>=n&&n+o>=e&&t>=a&&a+r>=t))return s},__onmousewheel:function(e){function t(e,t){for(var i=0;i<e.pointList.length;i++){var n=e.pointList[i];n[0]*=t,n[1]*=t}var a=e.controlPointList;if(a)for(var i=0;i<a.length;i++){var n=a[i];n[0]*=t,n[1]*=t}}function i(e,t){e.xStart*=t,e.yStart*=t,e.xEnd*=t,e.yEnd*=t,null!=e.cpX1&&(e.cpX1*=t,e.cpY1*=t)}if(!(this.shapeList.length<=0)){for(var n=0,a=this.shapeList.length;a>n;n++){var o=this.shapeList[n];if(o.__animating)return}var r,s,l=e.event,h=u.getX(l),m=u.getY(l),V=u.getDelta(l),d=e.mapTypeControl;d||(d={},s=this._findMapTypeByPos(h,m),s&&this._roamMap[s]&&"move"!=this._roamMap[s]&&(d[s]=!0));var p=!1;for(s in d)if(d[s]){p=!0;var c=this._mapDataMap[s].transform,y=c.left,g=c.top,b=c.width,f=c.height,k=this.pos2geo(s,[h-y,m-g]);if(V>0){if(r=1.2,null!=this._scaleLimitMap[s].max&&c.baseScale>=this._scaleLimitMap[s].max)continue}else if(r=1/1.2,null!=this._scaleLimitMap[s].min&&c.baseScale<=this._scaleLimitMap[s].min)continue;c.baseScale*=r,c.scale.x*=r,c.scale.y*=r,c.width=b*r,c.height=f*r,this._mapDataMap[s].hasRoam=!0,this._mapDataMap[s].transform=c,k=this.geo2pos(s,k),c.left-=k[0]-(h-y),c.top-=k[1]-(m-g),this._mapDataMap[s].transform=c,this.clearEffectShape(!0);for(var n=0,a=this.shapeList.length;a>n;n++){var o=this.shapeList[n];if(o._mapType==s){var x=o.type,_=o.style;switch(o.position[0]=c.left,o.position[1]=c.top,x){case"path":case"symbol":case"circle":case"rectangle":case"polygon":case"line":case"ellipse":case"heatmap":o.scale[0]*=r,o.scale[1]*=r;break;case"mark-line":i(_,r);break;case"polyline":t(_,r);break;case"shape-bundle":for(var L=0;L<_.shapeList.length;L++){var W=_.shapeList[L];"mark-line"==W.type?i(W.style,r):"polyline"==W.type&&t(W.style,r)}break;case"icon":case"image":k=this.geo2pos(s,o._geo),_.x=_._x=k[0]-_.width/2,_.y=_._y=k[1]-_.height/2;break;default:k=this.geo2pos(s,o._geo),_.x=k[0],_.y=k[1],"text"==x&&(o._style.x=o.highlightStyle.x=k[0],o._style.y=o.highlightStyle.y=k[1])}this.zr.modShape(o.id)}}}if(p){u.stop(l),this.zr.refreshNextFrame();var X=this;clearTimeout(this._refreshDelayTicket),this._refreshDelayTicket=setTimeout(function(){X&&X.shapeList&&X.animationEffect()},100),this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"scale"},this.myChart)}}},__onmousedown:function(e){if(!(this.shapeList.length<=0)){var t=e.target;if(!t||!t.draggable){var i=e.event,n=u.getX(i),a=u.getY(i),o=this._findMapTypeByPos(n,a);if(o&&this._roamMap[o]&&"scale"!=this._roamMap[o]){this._mousedown=!0,this._mx=n,this._my=a,this._curMapType=o,this.zr.on(c.EVENT.MOUSEUP,this._onmouseup);var r=this;setTimeout(function(){r.zr.on(c.EVENT.MOUSEMOVE,r._onmousemove)},100)}}}},__onmousemove:function(e){if(this._mousedown&&this._isAlive){var t=e.event,i=u.getX(t),n=u.getY(t),a=this._mapDataMap[this._curMapType].transform;a.hasRoam=!0,a.left-=this._mx-i,a.top-=this._my-n,this._mx=i,this._my=n,this._mapDataMap[this._curMapType].transform=a;for(var o=0,r=this.shapeList.length;r>o;o++)this.shapeList[o]._mapType==this._curMapType&&(this.shapeList[o].position[0]=a.left,this.shapeList[o].position[1]=a.top,this.zr.modShape(this.shapeList[o].id));this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"move"},this.myChart),this.clearEffectShape(!0),this.zr.refreshNextFrame(),this._justMove=!0,u.stop(t)}},__onmouseup:function(e){var t=e.event;this._mx=u.getX(t),this._my=u.getY(t),this._mousedown=!1;var i=this;setTimeout(function(){i._justMove&&i.animationEffect(),i._justMove=!1,i.zr.un(c.EVENT.MOUSEMOVE,i._onmousemove),i.zr.un(c.EVENT.MOUSEUP,i._onmouseup)},120)},__onroamcontroller:function(e){var t=e.event;t.zrenderX=this.zr.getWidth()/2,t.zrenderY=this.zr.getHeight()/2;var i=e.mapTypeControl,n=0,a=0,o=e.step;switch(e.roamType){case"scaleUp":return t.zrenderDelta=1,void this.__onmousewheel({event:t,mapTypeControl:i});case"scaleDown":return t.zrenderDelta=-1,void this.__onmousewheel({event:t,mapTypeControl:i});case"up":n=-o;break;case"down":n=o;break;case"left":a=-o;break;case"right":a=o}var r,s;for(s in i)this._mapDataMap[s]&&this._activeMapType[s]&&(r=this._mapDataMap[s].transform,r.hasRoam=!0,r.left-=a,r.top-=n,this._mapDataMap[s].transform=r);for(var l=0,h=this.shapeList.length;h>l;l++)s=this.shapeList[l]._mapType,i[s]&&this._activeMapType[s]&&(r=this._mapDataMap[s].transform,this.shapeList[l].position[0]=r.left,this.shapeList[l].position[1]=r.top,this.zr.modShape(this.shapeList[l].id));this.messageCenter.dispatch(U.EVENT.MAP_ROAM,e.event,{type:"move"},this.myChart),this.clearEffectShape(!0),this.zr.refreshNextFrame(),clearTimeout(this.dircetionTimer);var m=this;this.dircetionTimer=setTimeout(function(){m.animationEffect()},150)},__ondrhoverlink:function(e){for(var t,i,n=0,a=this.shapeList.length;a>n;n++)t=this.shapeList[n]._mapType,this._hoverLinkMap[t]&&this._activeMapType[t]&&(i=d.get(this.shapeList[n],"value"),null!=i&&i>=e.valueMin&&i<=e.valueMax&&this.zr.addHoverShape(this.shapeList[n]))},onclick:function(e){if(this.isClick&&e.target&&!this._justMove&&"icon"!=e.target.type){this.isClick=!1;var t=e.target,i=t.style._name,n=this.shapeList.length,a=t._mapType||"";if("single"==this._selectedMode[a])for(var o in this._selected)if(this._selected[o]&&this._mapTypeMap[o]==a){for(var r=0;n>r;r++)this.shapeList[r].style._name==o&&this.shapeList[r]._mapType==a&&(this.shapeList[r].style=this.shapeList[r]._style,this.zr.modShape(this.shapeList[r].id));o!=i&&(this._selected[o]=!1)}this._selected[i]=!this._selected[i];for(var r=0;n>r;r++)this.shapeList[r].style._name==i&&this.shapeList[r]._mapType==a&&(this.shapeList[r].style=this._selected[i]?this.shapeList[r].highlightStyle:this.shapeList[r]._style,this.zr.modShape(this.shapeList[r].id));this.messageCenter.dispatch(U.EVENT.MAP_SELECTED,e.event,{selected:this._selected,target:i},this.myChart),this.zr.refreshNextFrame();var s=this;setTimeout(function(){s.zr.trigger(c.EVENT.MOUSEMOVE,e.event)},100)}},refresh:function(e){e&&(this.option=e,this.series=e.series),this._mapDataRequireCounter>0?this.clear():this.backupShapeList(),this._buildShape(),this.zr.refreshHover()},ondataRange:function(e,t){this.component.dataRange&&(this.refresh(),t.needRefresh=!0)},pos2geo:function(e,t){return this._mapDataMap[e].transform?this._mapDataMap[e].projection.pos2geo(this._mapDataMap[e].transform,t):null},getGeoByPos:function(e,t){if(!this._mapDataMap[e].transform)return null;var i=[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top];return t instanceof Array?(t[0]-=i[0],t[1]-=i[1]):(t.x-=i[0],t.y-=i[1]),this.pos2geo(e,t)},geo2pos:function(e,t){return this._mapDataMap[e].transform?this._mapDataMap[e].projection.geo2pos(this._mapDataMap[e].transform,t):null},getPosByGeo:function(e,t){if(!this._mapDataMap[e].transform)return null;var i=this.geo2pos(e,t);return i[0]+=this._mapDataMap[e].transform.left,i[1]+=this._mapDataMap[e].transform.top,i},getMapPosition:function(e){return this._mapDataMap[e].transform?[this._mapDataMap[e].transform.left,this._mapDataMap[e].transform.top]:null},onbeforDispose:function(){this._isAlive=!1,this.zr.un(c.EVENT.MOUSEWHEEL,this._onmousewheel),this.zr.un(c.EVENT.MOUSEDOWN,this._onmousedown),this.messageCenter.unbind(U.EVENT.ROAMCONTROLLER,this._onroamcontroller),this.messageCenter.unbind(U.EVENT.DATA_RANGE_HOVERLINK,this._ondrhoverlink)}},p.inherits(t,i),e("../chart").define("map",t),t}),i("zrender/shape/Path",["require","./Base","./util/PathProxy","../tool/util"],function(e){var t=e("./Base"),i=e("./util/PathProxy"),n=i.PathSegment,a=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},o=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(a(e)*a(t))},r=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(o(e,t))},s=function(e){t.call(this,e)};return s.prototype={type:"path",buildPathArray:function(e,t,i){if(!e)return[];t=t||0,i=i||0;var a=e,o=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];a=a.replace(/-/g," -"),a=a.replace(/ /g," "),a=a.replace(/ /g,","),a=a.replace(/,,/g,",");var r;for(r=0;r<o.length;r++)a=a.replace(new RegExp(o[r],"g"),"|"+o[r]);var s=a.split("|"),l=[],h=0,m=0;for(r=1;r<s.length;r++){var V=s[r],U=V.charAt(0);V=V.slice(1),V=V.replace(new RegExp("e,-","g"),"e-");var d=V.split(",");d.length>0&&""===d[0]&&d.shift();for(var p=0;p<d.length;p++)d[p]=parseFloat(d[p]);for(;d.length>0&&!isNaN(d[0]);){var c,u,y,g,b,f,k,x,_=null,L=[],W=h,X=m;switch(U){case"l":h+=d.shift(),m+=d.shift(),_="L",L.push(h,m);break;case"L":h=d.shift(),m=d.shift(),L.push(h,m);break;case"m":h+=d.shift(),m+=d.shift(),_="M",L.push(h,m),U="l";break;case"M":h=d.shift(),m=d.shift(),_="M",L.push(h,m),U="L";break;case"h":h+=d.shift(),_="L",L.push(h,m);break;case"H":h=d.shift(),_="L",L.push(h,m);break;case"v":m+=d.shift(),_="L",L.push(h,m);break;case"V":m=d.shift(),_="L",L.push(h,m);break;case"C":L.push(d.shift(),d.shift(),d.shift(),d.shift()),h=d.shift(),m=d.shift(),L.push(h,m);break;case"c":L.push(h+d.shift(),m+d.shift(),h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="C",L.push(h,m);break;case"S":c=h,u=m,y=l[l.length-1],"C"===y.command&&(c=h+(h-y.points[2]),u=m+(m-y.points[3])),L.push(c,u,d.shift(),d.shift()),h=d.shift(),m=d.shift(),_="C",L.push(h,m);break;case"s":c=h,u=m,y=l[l.length-1],"C"===y.command&&(c=h+(h-y.points[2]),u=m+(m-y.points[3])),L.push(c,u,h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="C",L.push(h,m);break;case"Q":L.push(d.shift(),d.shift()),h=d.shift(),m=d.shift(),L.push(h,m);break;case"q":L.push(h+d.shift(),m+d.shift()),h+=d.shift(),m+=d.shift(),_="Q",L.push(h,m);break;case"T":c=h,u=m,y=l[l.length-1],"Q"===y.command&&(c=h+(h-y.points[0]),u=m+(m-y.points[1])),h=d.shift(),m=d.shift(),_="Q",L.push(c,u,h,m);break;case"t":c=h,u=m,y=l[l.length-1],"Q"===y.command&&(c=h+(h-y.points[0]),u=m+(m-y.points[1])),h+=d.shift(),m+=d.shift(),_="Q",L.push(c,u,h,m);break;case"A":g=d.shift(),b=d.shift(),f=d.shift(),k=d.shift(),x=d.shift(),W=h,X=m,h=d.shift(),m=d.shift(),_="A",L=this._convertPoint(W,X,h,m,k,x,g,b,f);break;case"a":g=d.shift(),b=d.shift(),f=d.shift(),k=d.shift(),x=d.shift(),W=h,X=m,h+=d.shift(),m+=d.shift(),_="A",L=this._convertPoint(W,X,h,m,k,x,g,b,f)}for(var v=0,w=L.length;w>v;v+=2)L[v]+=t,L[v+1]+=i;l.push(new n(_||U,L))}("z"===U||"Z"===U)&&l.push(new n("z",[]))}return l},_convertPoint:function(e,t,i,n,a,s,l,h,m){var V=m*(Math.PI/180),U=Math.cos(V)*(e-i)/2+Math.sin(V)*(t-n)/2,d=-1*Math.sin(V)*(e-i)/2+Math.cos(V)*(t-n)/2,p=U*U/(l*l)+d*d/(h*h);p>1&&(l*=Math.sqrt(p),h*=Math.sqrt(p));var c=Math.sqrt((l*l*h*h-l*l*d*d-h*h*U*U)/(l*l*d*d+h*h*U*U));a===s&&(c*=-1),isNaN(c)&&(c=0);var u=c*l*d/h,y=c*-h*U/l,g=(e+i)/2+Math.cos(V)*u-Math.sin(V)*y,b=(t+n)/2+Math.sin(V)*u+Math.cos(V)*y,f=r([1,0],[(U-u)/l,(d-y)/h]),k=[(U-u)/l,(d-y)/h],x=[(-1*U-u)/l,(-1*d-y)/h],_=r(k,x);return o(k,x)<=-1&&(_=Math.PI),o(k,x)>=1&&(_=0),0===s&&_>0&&(_-=2*Math.PI),1===s&&0>_&&(_+=2*Math.PI),[g,b,l,h,f,_,V,s]},buildPath:function(e,t){var i=t.path,n=t.x||0,a=t.y||0;t.pathArray=t.pathArray||this.buildPathArray(i,n,a);for(var o=t.pathArray,r=t.pointList=[],s=[],l=0,h=o.length;h>l;l++){"M"==o[l].command.toUpperCase()&&(s.length>0&&r.push(s),s=[]);for(var m=o[l].points,V=0,U=m.length;U>V;V+=2)s.push([m[V],m[V+1]])}s.length>0&&r.push(s);for(var l=0,h=o.length;h>l;l++){var d=o[l].command,m=o[l].points;switch(d){case"L":e.lineTo(m[0],m[1]);break;case"M":e.moveTo(m[0],m[1]);break;case"C":e.bezierCurveTo(m[0],m[1],m[2],m[3],m[4],m[5]);break;case"Q":e.quadraticCurveTo(m[0],m[1],m[2],m[3]);break;case"A":var p=m[0],c=m[1],u=m[2],y=m[3],g=m[4],b=m[5],f=m[6],k=m[7],x=u>y?u:y,_=u>y?1:u/y,L=u>y?y/u:1;e.translate(p,c),e.rotate(f),e.scale(_,L),e.arc(0,0,x,g,g+b,1-k),e.scale(1/_,1/L),e.rotate(-f),e.translate(-p,-c);break;case"z":e.closePath()}}},getRect:function(e){if(e.__rect)return e.__rect;var t;t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0;for(var i=Number.MAX_VALUE,n=Number.MIN_VALUE,a=Number.MAX_VALUE,o=Number.MIN_VALUE,r=e.x||0,s=e.y||0,l=e.pathArray||this.buildPathArray(e.path),h=0;h<l.length;h++)for(var m=l[h].points,V=0;V<m.length;V++)V%2===0?(m[V]+r<i&&(i=m[V]),m[V]+r>n&&(n=m[V])):(m[V]+s<a&&(a=m[V]),m[V]+s>o&&(o=m[V]));var U;return U=i===Number.MAX_VALUE||n===Number.MIN_VALUE||a===Number.MAX_VALUE||o===Number.MIN_VALUE?{x:0,y:0,width:0,height:0}:{x:Math.round(i-t/2),y:Math.round(a-t/2),width:n-i+t,height:o-a+t},e.__rect=U,U}},e("../tool/util").inherits(s,t),s}),i("zrender/shape/Ellipse",["require","./Base","../tool/util"],function(e){var t=e("./Base"),i=function(e){t.call(this,e)};return i.prototype={type:"ellipse",buildPath:function(e,t){var i=.5522848,n=t.x,a=t.y,o=t.a,r=t.b,s=o*i,l=r*i;e.moveTo(n-o,a),e.bezierCurveTo(n-o,a-l,n-s,a-r,n,a-r),e.bezierCurveTo(n+s,a-r,n+o,a-l,n+o,a),e.bezierCurveTo(n+o,a+l,n+s,a+r,n,a+r),e.bezierCurveTo(n-s,a+r,n-o,a+l,n-o,a),e.closePath()},getRect:function(e){if(e.__rect)return e.__rect;var t;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x-e.a-t/2),
-y:Math.round(e.y-e.b-t/2),width:2*e.a+t,height:2*e.b+t},e.__rect}},e("../tool/util").inherits(i,t),i}),i("echarts/component/roamController",["require","./base","zrender/shape/Rectangle","zrender/shape/Sector","zrender/shape/Circle","../config","zrender/tool/util","zrender/tool/color","zrender/tool/event","../component"],function(e){function t(e,t,n,a,o){if(this.rcOption={},a.roamController&&a.roamController.show){if(!a.roamController.mapTypeControl)return void console.error("option.roamController.mapTypeControl has not been defined.");i.call(this,e,t,n,a,o),this.rcOption=a.roamController;var r=this;this._drictionMouseDown=function(e){return r.__drictionMouseDown(e)},this._drictionMouseUp=function(e){return r.__drictionMouseUp(e)},this._drictionMouseMove=function(e){return r.__drictionMouseMove(e)},this._drictionMouseOut=function(e){return r.__drictionMouseOut(e)},this._scaleHandler=function(e){return r.__scaleHandler(e)},this.refresh(a)}}var i=e("./base"),n=e("zrender/shape/Rectangle"),a=e("zrender/shape/Sector"),o=e("zrender/shape/Circle"),r=e("../config");r.roamController={zlevel:0,z:4,show:!0,x:"left",y:"top",width:80,height:120,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,handleColor:"#6495ed",fillerColor:"#fff",step:15,mapTypeControl:null};var s=e("zrender/tool/util"),l=e("zrender/tool/color"),h=e("zrender/tool/event");return t.prototype={type:r.COMPONENT_TYPE_ROAMCONTROLLER,_buildShape:function(){if(this.rcOption.show){this._itemGroupLocation=this._getItemGroupLocation(),this._buildBackground(),this._buildItem();for(var e=0,t=this.shapeList.length;t>e;e++)this.zr.addShape(this.shapeList[e])}},_buildItem:function(){this.shapeList.push(this._getDirectionShape("up")),this.shapeList.push(this._getDirectionShape("down")),this.shapeList.push(this._getDirectionShape("left")),this.shapeList.push(this._getDirectionShape("right")),this.shapeList.push(this._getScaleShape("scaleUp")),this.shapeList.push(this._getScaleShape("scaleDown"))},_getDirectionShape:function(e){var t=this._itemGroupLocation.r,i=this._itemGroupLocation.x+t,n=this._itemGroupLocation.y+t,o={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:i,y:n,r:t,startAngle:-45,endAngle:45,color:this.rcOption.handleColor,text:">",textX:i+t/2+4,textY:n-.5,textAlign:"center",textBaseline:"middle",textPosition:"specific",textColor:this.rcOption.fillerColor,textFont:Math.floor(t/2)+"px arial"},highlightStyle:{color:l.lift(this.rcOption.handleColor,-.2),brushType:"fill"},clickable:!0};switch(e){case"up":o.rotation=[Math.PI/2,i,n];break;case"left":o.rotation=[Math.PI,i,n];break;case"down":o.rotation=[-Math.PI/2,i,n]}return o=new a(o),o._roamType=e,o.onmousedown=this._drictionMouseDown,o.onmouseup=this._drictionMouseUp,o.onmousemove=this._drictionMouseMove,o.onmouseout=this._drictionMouseOut,o},_getScaleShape:function(e){var t=this._itemGroupLocation.width,i=this._itemGroupLocation.height-t;i=0>i?20:i;var n=Math.min(t/2-5,i)/2,a=this._itemGroupLocation.x+("scaleDown"===e?t-n:n),r=this._itemGroupLocation.y+this._itemGroupLocation.height-n,s={zlevel:this.getZlevelBase(),z:this.getZBase(),style:{x:a,y:r,r:n,color:this.rcOption.handleColor,text:"scaleDown"===e?"-":"+",textX:a,textY:r-2,textAlign:"center",textBaseline:"middle",textPosition:"specific",textColor:this.rcOption.fillerColor,textFont:Math.floor(n)+"px verdana"},highlightStyle:{color:l.lift(this.rcOption.handleColor,-.2),brushType:"fill"},clickable:!0};return s=new o(s),s._roamType=e,s.onmousedown=this._scaleHandler,s},_buildBackground:function(){var e=this.reformCssArray(this.rcOption.padding);this.shapeList.push(new n({zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{x:this._itemGroupLocation.x-e[3],y:this._itemGroupLocation.y-e[0],width:this._itemGroupLocation.width+e[3]+e[1],height:this._itemGroupLocation.height+e[0]+e[2],brushType:0===this.rcOption.borderWidth?"fill":"both",color:this.rcOption.backgroundColor,strokeColor:this.rcOption.borderColor,lineWidth:this.rcOption.borderWidth}}))},_getItemGroupLocation:function(){var e,t=this.reformCssArray(this.rcOption.padding),i=this.rcOption.width,n=this.rcOption.height,a=this.zr.getWidth(),o=this.zr.getHeight();switch(this.rcOption.x){case"center":e=Math.floor((a-i)/2);break;case"left":e=t[3]+this.rcOption.borderWidth;break;case"right":e=a-i-t[1]-t[3]-2*this.rcOption.borderWidth;break;default:e=this.parsePercent(this.rcOption.x,a)}var r;switch(this.rcOption.y){case"top":r=t[0]+this.rcOption.borderWidth;break;case"bottom":r=o-n-t[0]-t[2]-2*this.rcOption.borderWidth;break;case"center":r=Math.floor((o-n)/2);break;default:r=this.parsePercent(this.rcOption.y,o)}return{x:e,y:r,r:i/2,width:i,height:n}},__drictionMouseDown:function(e){this.mousedown=!0,this._drictionHandlerOn(e)},__drictionMouseUp:function(e){this.mousedown=!1,this._drictionHandlerOff(e)},__drictionMouseMove:function(e){this.mousedown&&this._drictionHandlerOn(e)},__drictionMouseOut:function(e){this._drictionHandlerOff(e)},_drictionHandlerOn:function(e){this._dispatchEvent(e.event,e.target._roamType),clearInterval(this.dircetionTimer);var t=this;this.dircetionTimer=setInterval(function(){t._dispatchEvent(e.event,e.target._roamType)},100),h.stop(e.event)},_drictionHandlerOff:function(){clearInterval(this.dircetionTimer)},__scaleHandler:function(e){this._dispatchEvent(e.event,e.target._roamType),h.stop(e.event)},_dispatchEvent:function(e,t){this.messageCenter.dispatch(r.EVENT.ROAMCONTROLLER,e,{roamType:t,mapTypeControl:this.rcOption.mapTypeControl,step:this.rcOption.step},this.myChart)},refresh:function(e){e&&(this.option=e||this.option,this.option.roamController=this.reformOption(this.option.roamController),this.rcOption=this.option.roamController),this.clear(),this._buildShape()}},s.inherits(t,i),e("../component").define("roamController",t),t}),i("echarts/layer/heatmap",["require"],function(){function e(e){if(this.option=e,e)for(var i in t)this.option[i]=void 0!==e[i]?e[i]:t[i];else this.option=t}var t={blurSize:30,gradientColors:["blue","cyan","lime","yellow","red"],minAlpha:.05,valueScale:1,opacity:1},i=20,n=256;return e.prototype={getCanvas:function(e,t,a){var o=this._getBrush(),r=this._getGradient(),s=i+this.option.blurSize,l=document.createElement("canvas");l.width=t,l.height=a;for(var h=l.getContext("2d"),m=e.length,V=0;m>V;++V){var U=e[V],d=U[0],p=U[1],c=U[2],u=Math.min(1,Math.max(c*this.option.valueScale||this.option.minAlpha,this.option.minAlpha));h.globalAlpha=u,h.drawImage(o,d-s,p-s)}for(var y=h.getImageData(0,0,l.width,l.height),g=y.data,m=g.length/4;m--;){var b=4*m+3,u=g[b]/256,f=Math.floor(u*(n-1));g[b-3]=r[4*f],g[b-2]=r[4*f+1],g[b-1]=r[4*f+2],g[b]*=this.option.opacity}return h.putImageData(y,0,0),l},_getBrush:function(){if(!this._brushCanvas){this._brushCanvas=document.createElement("canvas");var e=i+this.option.blurSize,t=2*e;this._brushCanvas.width=t,this._brushCanvas.height=t;var n=this._brushCanvas.getContext("2d");n.shadowOffsetX=t,n.shadowBlur=this.option.blurSize,n.shadowColor="black",n.beginPath(),n.arc(-e,e,i,0,2*Math.PI,!0),n.closePath(),n.fill()}return this._brushCanvas},_getGradient:function(){if(!this._gradientPixels){var e=n,t=document.createElement("canvas");t.width=1,t.height=e;for(var i=t.getContext("2d"),a=i.createLinearGradient(0,0,0,e),o=this.option.gradientColors.length,r=0;o>r;++r)"string"==typeof this.option.gradientColors[r]?a.addColorStop((r+1)/o,this.option.gradientColors[r]):a.addColorStop(this.option.gradientColors[r].offset,this.option.gradientColors[r].color);i.fillStyle=a,i.fillRect(0,0,1,e),this._gradientPixels=i.getImageData(0,0,1,e).data}return this._gradientPixels}},e}),i("echarts/util/mapData/params",["require"],function(e){function t(e){if(!e.UTF8Encoding)return e;for(var t=e.features,n=0;n<t.length;n++)for(var a=t[n],o=a.geometry.coordinates,r=a.geometry.encodeOffsets,s=0;s<o.length;s++){var l=o[s];if("Polygon"===a.geometry.type)o[s]=i(l,r[s]);else if("MultiPolygon"===a.geometry.type)for(var h=0;h<l.length;h++){var m=l[h];l[h]=i(m,r[s][h])}}return e.UTF8Encoding=!1,e}function i(e,t){for(var i=[],n=t[0],a=t[1],o=0;o<e.length;o+=2){var r=e.charCodeAt(o)-64,s=e.charCodeAt(o+1)-64;r=r>>1^-(1&r),s=s>>1^-(1&s),r+=n,s+=a,n=r,a=s,i.push([r/1024,s/1024])}return i}var n={none:{getGeoJson:function(e){e({type:"FeatureCollection",features:[{type:"Feature",geometry:{coordinates:[],encodeOffsets:[],type:"Polygon"},properties:{}}]})}},world:{getGeoJson:function(i){e(["./geoJson/world_geo"],function(e){i(t(e))})}},china:{getGeoJson:function(i){e(["./geoJson/china_geo"],function(e){i(t(e))})}},"南海诸岛":{textCoord:[126,25],getPath:function(e,t){for(var i=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],n="",a=e[0],o=e[1],r=0,s=i.length;s>r;r++){n+="M "+((i[r][0][0]*t+a).toFixed(2)-0)+" "+((i[r][0][1]*t+o).toFixed(2)-0)+" ";for(var l=1,h=i[r].length;h>l;l++)n+="L "+((i[r][l][0]*t+a).toFixed(2)-0)+" "+((i[r][l][1]*t+o).toFixed(2)-0)+" "}return n+" Z"}},"新疆":{getGeoJson:function(i){e(["./geoJson/xin_jiang_geo"],function(e){i(t(e))})}},"西藏":{getGeoJson:function(i){e(["./geoJson/xi_zang_geo"],function(e){i(t(e))})}},"内蒙古":{getGeoJson:function(i){e(["./geoJson/nei_meng_gu_geo"],function(e){i(t(e))})}},"青海":{getGeoJson:function(i){e(["./geoJson/qing_hai_geo"],function(e){i(t(e))})}},"四川":{getGeoJson:function(i){e(["./geoJson/si_chuan_geo"],function(e){i(t(e))})}},"黑龙江":{getGeoJson:function(i){e(["./geoJson/hei_long_jiang_geo"],function(e){i(t(e))})}},"甘肃":{getGeoJson:function(i){e(["./geoJson/gan_su_geo"],function(e){i(t(e))})}},"云南":{getGeoJson:function(i){e(["./geoJson/yun_nan_geo"],function(e){i(t(e))})}},"广西":{getGeoJson:function(i){e(["./geoJson/guang_xi_geo"],function(e){i(t(e))})}},"湖南":{getGeoJson:function(i){e(["./geoJson/hu_nan_geo"],function(e){i(t(e))})}},"陕西":{getGeoJson:function(i){e(["./geoJson/shan_xi_1_geo"],function(e){i(t(e))})}},"广东":{getGeoJson:function(i){e(["./geoJson/guang_dong_geo"],function(e){i(t(e))})}},"吉林":{getGeoJson:function(i){e(["./geoJson/ji_lin_geo"],function(e){i(t(e))})}},"河北":{getGeoJson:function(i){e(["./geoJson/he_bei_geo"],function(e){i(t(e))})}},"湖北":{getGeoJson:function(i){e(["./geoJson/hu_bei_geo"],function(e){i(t(e))})}},"贵州":{getGeoJson:function(i){e(["./geoJson/gui_zhou_geo"],function(e){i(t(e))})}},"山东":{getGeoJson:function(i){e(["./geoJson/shan_dong_geo"],function(e){i(t(e))})}},"江西":{getGeoJson:function(i){e(["./geoJson/jiang_xi_geo"],function(e){i(t(e))})}},"河南":{getGeoJson:function(i){e(["./geoJson/he_nan_geo"],function(e){i(t(e))})}},"辽宁":{getGeoJson:function(i){e(["./geoJson/liao_ning_geo"],function(e){i(t(e))})}},"山西":{getGeoJson:function(i){e(["./geoJson/shan_xi_2_geo"],function(e){i(t(e))})}},"安徽":{getGeoJson:function(i){e(["./geoJson/an_hui_geo"],function(e){i(t(e))})}},"福建":{getGeoJson:function(i){e(["./geoJson/fu_jian_geo"],function(e){i(t(e))})}},"浙江":{getGeoJson:function(i){e(["./geoJson/zhe_jiang_geo"],function(e){i(t(e))})}},"江苏":{getGeoJson:function(i){e(["./geoJson/jiang_su_geo"],function(e){i(t(e))})}},"重庆":{getGeoJson:function(i){e(["./geoJson/chong_qing_geo"],function(e){i(t(e))})}},"宁夏":{getGeoJson:function(i){e(["./geoJson/ning_xia_geo"],function(e){i(t(e))})}},"海南":{getGeoJson:function(i){e(["./geoJson/hai_nan_geo"],function(e){i(t(e))})}},"台湾":{getGeoJson:function(i){e(["./geoJson/tai_wan_geo"],function(e){i(t(e))})}},"北京":{getGeoJson:function(i){e(["./geoJson/bei_jing_geo"],function(e){i(t(e))})}},"天津":{getGeoJson:function(i){e(["./geoJson/tian_jin_geo"],function(e){i(t(e))})}},"上海":{getGeoJson:function(i){e(["./geoJson/shang_hai_geo"],function(e){i(t(e))})}},"香港":{getGeoJson:function(i){e(["./geoJson/xiang_gang_geo"],function(e){i(t(e))})}},"澳门":{getGeoJson:function(i){e(["./geoJson/ao_men_geo"],function(e){i(t(e))})}}};return{decode:t,params:n}}),i("echarts/util/mapData/textFixed",[],function(){return{"广东":[0,-10],"香港":[10,10],"澳门":[-10,18],"黑龙江":[0,20],"天津":[5,5],"深圳市":[-35,0],"红河哈尼族彝族自治州":[0,20],"楚雄彝族自治州":[-5,15],"石河子市":[-5,5],"五家渠市":[0,-10],"昌吉回族自治州":[10,10],"昌江黎族自治县":[0,20],"陵水黎族自治县":[0,20],"东方市":[0,20],"渭南市":[0,20]}}),i("echarts/util/mapData/geoCoord",[],function(){return{Russia:[100,60],"United States of America":[-99,38]}}),i("echarts/util/projection/svg",["require","zrender/shape/Path"],function(e){function t(e){return parseFloat(e||0)}function i(e){for(var i=e.firstChild;"svg"!=i.nodeName.toLowerCase()||1!=i.nodeType;)i=i.nextSibling;var n=t(i.getAttribute("x")),a=t(i.getAttribute("y")),o=t(i.getAttribute("width")),r=t(i.getAttribute("height"));return{left:n,top:a,width:o,height:r}}function n(e,t){function i(e){var t=e.tagName;if(m[t]){var o=m[t](e,n);o&&(o.scale=n,o.properties={name:e.getAttribute("name")||""},o.id=e.id,s(o,e),a.push(o))}for(var r=e.childNodes,l=0,h=r.length;h>l;l++)i(r[l])}var n=[t.scale.x,t.scale.y],a=[];return i(e),a}function a(e,t){var i=t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y];return[i[0]/e.scale.x,i[1]/e.scale.y]}function o(e,t){var i=t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y];return[i[0]*e.scale.x,i[1]*e.scale.y]}function r(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s(e,t){var i=t.getAttribute("fill"),n=t.getAttribute("stroke"),a=t.getAttribute("stroke-width"),o=t.getAttribute("opacity");i&&"none"!=i?(e.color=i,n?(e.brushType="both",e.strokeColor=n):e.brushType="fill"):n&&"none"!=n&&(e.strokeColor=n,e.brushType="stroke"),a&&"none"!=a&&(e.lineWidth=parseFloat(a)),o&&"none"!=o&&(e.opacity=parseFloat(o))}function l(e){for(var t=r(e).replace(/,/g," ").split(/\s+/),i=[],n=0;n<t.length;){var a=parseFloat(t[n++]),o=parseFloat(t[n++]);i.push([a,o])}return i}var h=e("zrender/shape/Path"),m={path:function(e,t){var i=e.getAttribute("d"),n=h.prototype.getRect({path:i});return{shapeType:"path",path:i,cp:[(n.x+n.width/2)*t[0],(n.y+n.height/2)*t[1]]}},rect:function(e,i){var n=t(e.getAttribute("x")),a=t(e.getAttribute("y")),o=t(e.getAttribute("width")),r=t(e.getAttribute("height"));return{shapeType:"rectangle",x:n,y:a,width:o,height:r,cp:[(n+o/2)*i[0],(a+r/2)*i[1]]}},line:function(e,i){var n=t(e.getAttribute("x1")),a=t(e.getAttribute("y1")),o=t(e.getAttribute("x2")),r=t(e.getAttribute("y2"));return{shapeType:"line",xStart:n,yStart:a,xEnd:o,yEnd:r,cp:[.5*(n+o)*i[0],.5*(a+r)*i[1]]}},circle:function(e,i){var n=t(e.getAttribute("cx")),a=t(e.getAttribute("cy")),o=t(e.getAttribute("r"));return{shapeType:"circle",x:n,y:a,r:o,cp:[n*i[0],a*i[1]]}},ellipse:function(e,t){var i=parseFloat(e.getAttribute("cx")||0),n=parseFloat(e.getAttribute("cy")||0),a=parseFloat(e.getAttribute("rx")||0),o=parseFloat(e.getAttribute("ry")||0);return{shapeType:"ellipse",x:i,y:n,a:a,b:o,cp:[i*t[0],n*t[1]]}},polygon:function(e,t){var i=e.getAttribute("points"),n=[1/0,1/0],a=[-(1/0),-(1/0)];if(i){i=l(i);for(var o=0;o<i.length;o++){var r=i[o];n[0]=Math.min(r[0],n[0]),n[1]=Math.min(r[1],n[1]),a[0]=Math.max(r[0],a[0]),a[1]=Math.max(r[1],a[1])}return{shapeType:"polygon",pointList:i,cp:[(n[0]+a[0])/2*t[0],(n[1]+a[1])/2*t[0]]}}},polyline:function(e,t){var i=m.polygon(e,t);return i}};return{getBbox:i,geoJson2Path:n,pos2geo:a,geo2pos:o}}),i("echarts/util/projection/normal",[],function(){function e(e,i){return i=i||{},e.srcSize||t(e,i),e.srcSize}function t(e,t){t=t||{},r.xmin=360,r.xmax=-360,r.ymin=180,r.ymax=-180;for(var i,n,a=e.features,o=0,s=a.length;s>o;o++)if(n=a[o],!n.properties.name||!t[n.properties.name])switch(n.type){case"Feature":r[n.geometry.type](n.geometry.coordinates);break;case"GeometryCollection":i=n.geometries;for(var l=0,h=i.length;h>l;l++)r[i[l].type](i[l].coordinates)}return e.srcSize={left:1*r.xmin.toFixed(4),top:1*r.ymin.toFixed(4),width:1*(r.xmax-r.xmin).toFixed(4),height:1*(r.ymax-r.ymin).toFixed(4)},e}function i(e,i,n){function a(e,t){c=e.type,u=e.coordinates,o._bbox={xmin:360,xmax:-360,ymin:180,ymax:-180},y=o[c](u),m.push({path:y,cp:o.makePoint(t.properties.cp?t.properties.cp:[(o._bbox.xmin+o._bbox.xmax)/2,(o._bbox.ymin+o._bbox.ymax)/2]),properties:t.properties,id:t.id})}n=n||{},o.scale=null,o.offset=null,e.srcSize||t(e,n),i.offset={x:e.srcSize.left,y:e.srcSize.top,left:i.OffsetLeft||0,top:i.OffsetTop||0},o.scale=i.scale,o.offset=i.offset;for(var r,s,l,h=e.features,m=[],V=0,U=h.length;U>V;V++)if(l=h[V],!l.properties.name||!n[l.properties.name])if("Feature"==l.type)a(l.geometry,l);else if("GeometryCollection"==l.type){r=l.geometries;for(var d=0,p=r.length;p>d;d++)s=r[d],a(s,s)}var c,u,y;return m}function n(e,t){var i,n;return t instanceof Array?(i=1*t[0],n=1*t[1]):(i=1*t.x,n=1*t.y),i=i/e.scale.x+e.offset.x-168.5,i=i>180?i-360:i,n=90-(n/e.scale.y+e.offset.y),[i,n]}function a(e,t){return o.offset=e.offset,o.scale=e.scale,o.makePoint(t instanceof Array?[1*t[0],1*t[1]]:[1*t.x,1*t.y])}var o={formatPoint:function(e){return[(e[0]<-168.5&&e[1]>63.8?e[0]+360:e[0])+168.5,90-e[1]]},makePoint:function(e){var t=this,i=t.formatPoint(e);t._bbox.xmin>e[0]&&(t._bbox.xmin=e[0]),t._bbox.xmax<e[0]&&(t._bbox.xmax=e[0]),t._bbox.ymin>e[1]&&(t._bbox.ymin=e[1]),t._bbox.ymax<e[1]&&(t._bbox.ymax=e[1]);var n=(i[0]-o.offset.x)*o.scale.x+o.offset.left,a=(i[1]-o.offset.y)*o.scale.y+o.offset.top;return[n,a]},Point:function(e){return e=this.makePoint(e),e.join(",")},LineString:function(e){for(var t,i="",n=0,a=e.length;a>n;n++)t=o.makePoint(e[n]),i=0===n?"M"+t.join(","):i+"L"+t.join(",");return i},Polygon:function(e){for(var t="",i=0,n=e.length;n>i;i++)t=t+o.LineString(e[i])+"z";return t},MultiPoint:function(e){for(var t=[],i=0,n=e.length;n>i;i++)t.push(o.Point(e[i]));return t},MultiLineString:function(e){for(var t="",i=0,n=e.length;n>i;i++)t+=o.LineString(e[i]);return t},MultiPolygon:function(e){for(var t="",i=0,n=e.length;n>i;i++)t+=o.Polygon(e[i]);return t}},r={formatPoint:o.formatPoint,makePoint:function(e){var t=this,i=t.formatPoint(e),n=i[0],a=i[1];t.xmin>n&&(t.xmin=n),t.xmax<n&&(t.xmax=n),t.ymin>a&&(t.ymin=a),t.ymax<a&&(t.ymax=a)},Point:function(e){this.makePoint(e)},LineString:function(e){for(var t=0,i=e.length;i>t;t++)this.makePoint(e[t])},Polygon:function(e){for(var t=0,i=e.length;i>t;t++)this.LineString(e[t])},MultiPoint:function(e){for(var t=0,i=e.length;i>t;t++)this.Point(e[t])},MultiLineString:function(e){for(var t=0,i=e.length;i>t;t++)this.LineString(e[t])},MultiPolygon:function(e){for(var t=0,i=e.length;i>t;t++)this.Polygon(e[t])}};return{getBbox:e,geoJson2Path:i,pos2geo:n,geo2pos:a}}),i("echarts/util/mapData/geoJson/an_hui_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3415",properties:{name:"六安市",cp:[116.3123,31.8329],childNum:6},geometry:{type:"Polygon",coordinates:["@@„„nJ‚UXUVƒ°U„ÑnU@mlLVaVln@@bn@VU@xlb@lšLnKlšƒVI„JšUVxnI@lVL@b„Ž°VX@˜b„x„nVVUnVVnU‚›@kX@VwV@„al¥UUnUWa@ƒ@wĸU„LU¥lKUa@aUI@alLVaUƒ¯anƒWkUKm@XV@VaXlW@aU_UWVUƒI¯@ma¯W¯™™I@UU@WWU@U@@UU@VkV@@WUUm@UaU@„lK@IUK„L@KWmXUWaXI@ƒ@a@a@U@U@KV¥lw„k°b²JVIVKlV@UX„la„Ul`œUVLVVVUšJ„U@Lnm@_VK@KUIW@™J@Xk@WW@U—ƒmm™XmWk@kK@aUUƒVmmkUwUmWL™@WmU@™UJmUULkKWakLWVkIƒlƒwULƒW@X°lUJ@°ULƒWV—wmJ@bmb¯Vkm@@WkWm¯wƒL@lkXƒWmXym¯UImJUbkV™@Vn¯„@V@lUbƒ@mk@maUxmlUbULWn@J—LmKUkWKkwUKƒbm„X„WxkVUKmLkVV@JUUWL@xkJUUƒV@X@VVlUbVX@xk¤šx‚¼œxWxn„‚nn@Þ¼„JVb°aVn„@šmlnXU„JlbVlkz@‚lUŽlXJmxVxXnWxXÈWlUŽ@šUxU@VX@xUL@šUÆmLnV@lWXk@@JlbXblnlJ"],encodeOffsets:[[118710,33351]]}},{type:"Feature",id:"3408",properties:{name:"安庆市",cp:[116.7517,30.5255],childNum:9},geometry:{type:"Polygon",coordinates:["@@n°‚znW„XlW@k„K°xXn‚l@Xn@l‚°Una@anI˜xXU„ŽVK@¯VIkW¯X@‚„VK„x„klJXUlKXblLVKnVVIšŽV@Xn‚@šŽXKVnVxlŽnn„UlmV@²óUkV™lW„b„lƒšƒn@VVVIn@lw@WVIXblV„@Èx‚aUaVIVVnKVLšK„ƒln@b²K@»U£ƒÑķƒġÝÅb™K™a@Im@ۍ„@kWÓkkmKÅnóJƒUÅ£›W@w„ĕ@wĉţ¯¯ƒUkK±l¯Uƒ¥UÑkÝUķ»Ý¥¯™JƒIUŽVbUl¯ÈV¼VJU¼Vb@bkLUl@„VJ@bUXǚ@lkVmXmKkLVxš‚Ž„VƒL@VkVVVlzW˜kbmLUUUbVbUV™šlÒnJlUnLllUL@bU„Vx„l‚LXVƦÈVU¦WJ"],encodeOffsets:[[118834,31759]]}},{type:"Feature",id:"3411",properties:{name:"滁州市",cp:[118.1909,32.536],childNum:7},geometry:{type:"Polygon",coordinates:["@@š„@`nnl@„xšK@X°KXV˜IXVlbXVWnX‚lL@šÈ»‚LVan@VJ„êVVn@‚X@laÞbVaƒyn@„_‚xnWVXnWl@VnUVkI@l‚nXKVLVV@V@kW@LlVô„@J@bVnnKnkVa@»lç@ƒnwšKma™UUUVњ@n™mWXalI@alVn@VwUaVU„@„nlaôJnU„VVXlJšaXXVK@UšV@VWx@nXVWšXVšUlLUbV‚ULVVnUVbUbVbš@@a„KÆnnKVK@U@UU@@a„@Vƒ°¯ÈJVIlķ@aa˜UaVKU_@mkxUI@aƒUlyU@@™wkKWmUbUnUVWbkJW_J@bƒn@Vm@@KULk@V@@bVbÅm@LW@UVVbkK@UkKWL@VULUKWIUJUbkK@_WVXU›Jka@XƒVa@kšy@aVIUUW@@m„UlLœKWÑUKVan@UkVmmIXKƒaVaUwVU@UmykU¯@±UUL@WUIVUU@KkIWaƒaU@kUUaǃUó»mKƒk¯@y@kWK@bkI¯`mn™l¯XWlkVUzUJlbUbVJl@nnm„@VULV`XnWƗbmUUn™JmUknƒJ¯km@ƒyk@kU›xL@VUbmnn¤lX@`™z@JmaULUVl@Xn@xllkXWa—aW@UVmUbƒ@mVXšWxXbWbUŽƒÒnVVnVVUL"],encodeOffsets:[[120004,33520]]}},{type:"Feature",id:"3418",properties:{name:"宣城市",cp:[118.8062,30.6244],childNum:7},geometry:{type:"Polygon",coordinates:["@@Vb@„XL˜JXxlIXxlVlV@I²¤šnlUnVšU@VULWVUJ@Lnb@lV@UnV@@VVVlLnbnJ‚UVkUUVWn@@anUVnVJVIV‚@@nUJVbUb‚„@VUbVK@bn@VbnIlxkllXVlXKWUXUlL°¤UVVb@bš„UlkXW‚ƒxXz@‚„Ila„UlƒnUlJVInVÆJ„U„LVUnV„K°@VnlVnxV@XLlK@wVL@KnUlJXU˜bnKVLX„lUw@VWlLXKm@@a„@VLnmlIVVnKn@škVašVlwk@@a@k@ƒVIUa™@maUa@wna@kmWƒ™UUmVUIVǗ@aƒKm™aƒ™kU™J@InmUUaVa„k‚lX@Vk@m@VU@wnK@alKVUkUkKƒbmUkmƒ@U£WVk@@UÝbbƒaÇx@b@WVUa¯ƒ@wVwUUV@VwnK@KWaŁ@KšIUyUI@WmXó™UbWaKm™@km@IUyƒIUaWKƒx@zUKUL@llVUnkLVVkJWX@VUKUVƒIkVWakb@VWb@n@JkXUlmL@xkL@`VxšLUÈUJ@Vm@@bmIUlUL@VUVVbknm@mKUw™KVÈ@J@LV±kkJUIƒl"],encodeOffsets:[[120803,31247]]}},{type:"Feature",id:"3412",properties:{name:"阜阳市",cp:[115.7629,32.9919],childNum:6},geometry:{type:"Polygon",coordinates:["@@V™nƒš@ša„k°aš±@‚¥@UUI@aUmlwUUx›b@¥XU@mmI@a@Kn@@_W@@W„I@mšUVVXUl@XaV@‚K@I@a„LX@aVI°K@KVL„UUw‚yXkšK@kšKÆbXnlK@k@a„JlU@w@U@»@aXKWƒn_‚JXkVKnƒ@°LlKXƒW@¯Uƒ@aUK@kmJUw™VƒIUJ™„kŽmL™K@kka@wUVm@@am@UkUbkK@nmVƒÒ¯VU„WVVmIƒƒULk@ƒƒma@kkKƒƒ@nUbUamU™`UUVUkKVkkƒW@@bkmƒnƒmUXVKXVƒL@VƒbU„m‚™bVXJ@nmKÅI@KWKUXVJUL@VUKUX@KUKWL@LUJmaXXm@kVVV@L@VUL@VlK@L@V@LUK@VUb@UUU@°@nVxU`‚Lkn@`@XVJ@X™Vm„k@UKmV¯LVVn±Wm@Ub@JlLUl„@VLk„@lmVVn@bnV@V°IV™šaVJXI°K°V@XXVlVVU„nšKVlUš„bWXnV@bV`U„„@@m@@‚ƒ@nxmn@bXVlL@¤nb„Ul¦šVVUnJVU„Vl@@bÞL"],encodeOffsets:[[118418,34392]]}},{type:"Feature",id:"3413",properties:{name:"宿州市",cp:[117.5208,33.6841],childNum:5},geometry:{type:"Polygon",coordinates:["@@@UWU@bkW@aWU@aUIkWV™lLXb„lVIUVV@‚mn@V_n@VaUK@I‚@UašanJVU„@lV„UVnnKVVlaUa„I@wnK‚Lnll@nVlk@wVKXkl@@b„bUJ@V‚U@U„UUyVk@aVUXwlWXX‚WU¹@aU™@WUI@mlUšn„J@Il@šaXbV@VKl@XxVL@W„IšJlb„@„al@„IUUm@@aVK@¥¯—@mUķ¯bWƒk£Vm@akm@VaÅ@UVWaƒ@UJWkƒJ—UƒbWbU@UlƒXk@ƒamV@K¯nk@ƒlU@Uxmz@bU`ÇbUbÅVm£U@Ww™x@akLUK@UlakwUJWVkLmaUal@n_ƒmVUnKVUUmÅXWa™@kJmx@XUJ@bVLXxl@VVUVV„UbkLWbU@@lUVV„VVX„›K@XkJ@nU@@bV@VxUVlb„U@xXLWŽn@UxVbVĊ„V@b@XV`mnkJ@kUKmbƒaU@VbnbÆx@XU@@`k@@bl„™@@bkL@WƒakXWaU@Vmkx@XWW@@wUUUbƒJ™U¯V™@¯ÞU@WxXŽlL@bkb@ŽlVlnb™JW@kkU@mbkaWJ—IVlmz¯`UnU@mb™@@„ƒ`@bkVlœnV@b@šV@„aVxn@Vx‚KXnl@nbVK„bVK@a„_V@Vƒ„w@W„LlwnK@UmIU@VWš@šUÈ@lKnal„wš@@V°@šaUmlUUw@„ƒV@@UXK"],encodeOffsets:[[119836,35061]]}},{type:"Feature",id:"3410",properties:{name:"黄山市",cp:[118.0481,29.9542],childNum:5},geometry:{type:"Polygon",coordinates:["@@lXnlWX@VUJVnUJVzXJVx„kVJlI²l‚U@K@IUǚLVxnLn@lmUaVU@UVKVknJ@an@@UVIVǙKUw@_lK@wnKVklW@I@mXa@UlaXblU„JVUVL@UXWlIUUlKVmkU@kVKVL@y„wXLVb„JVz@Jlnš@nŽ‚LXbVaôšnW@la@UVWUa@@a@mk@WIk@VwUa¯¥m@UUVK@ImK@aX£ƒkK›ÅV™a™™ƒ_@±ƒakXWW—LƒƒƒnU@@a@¯mK@L™JUWwUV™VmbXX@lWLn`mzUJUb™Lƒ„k@makVWmkX™ambkKknƒaƒ@ƒaƒb@‚U@Unm@—ƒWVƒ@VbUbUJWIk@@lmL@°UVUVm„nš™@@kmWkb@xƒ_m@@aU@b@JlŽUz™lWxXn„@‚b²@l`„IVl„UlL@VšK„nVbUl@VlIn@@b„bVWUk‚@@bX@Valb@bnb°Vn@„xVKlbVnV@V‚x„L@ln@UXVV‚L˜"],encodeOffsets:[[120747,31095]]}},{type:"Feature",id:"3414",properties:{name:"巢湖市",cp:[117.7734,31.4978],childNum:5},geometry:{type:"Polygon",coordinates:["@@VV@blL@ŽXlWnnšnŽ˜„@VXXl@@WšIX@VJ@LšxŎxlnšŽ@bXJVblX@VVbUVn@VbUVlb@LnJVbVLV‚XLšÒVL„ÒšV„bVIVylUXk°Wšknm°_lJ@aXL@l‚z°@„lnLô¼V‚È„VUUaVKU@WW@@UUa@knmVLlaV@„a@kšak±@UmwkKmk™lj™ÝUUkL@mlIVmnÝWkkUÝ@KƑĉ™a@»ƒmma@mX™¤¯Uƒw@ƒ@UU@bU±±L@akmƒ„™LUKmLUUUJVbbÇwƒ@kUWaUJ@Xkxm@UJUUm@™„k„ƒ‚ƒakXUšVl±ôU@kn"],encodeOffsets:[[119847,32007]]}},{type:"Feature",id:"3416",properties:{name:"亳州市",cp:[116.1914,33.4698],childNum:4},geometry:{type:"Polygon",coordinates:["@@lU@Un@@anUlw@KVmUwlaX_lKna@KU@@kWKUU@ankW™XK˜@@V²VVIÈU@al@VaÈamK@wU™@klaUƒV@XƒVUU»WUUbkmUkVmk@aÈw@mWU@VkIkVWKUÑķXȭºU¯lƒ@kkLWmÅa™L@l™LWlzVxƒVUK@L¯LUJ@bWƒK@b@JLU@Wbk@WVUU™V@nƒJ@XX@@`m@@L@bnJ@nWV@¦œa‚wVVkxVn@bVJ@V¦@Ž™²¯bƒl™b™@m„UšUŽƒŽ@¼ƒ¦Xb‚UV`@nnxUxWLkUkVWKkV@XV@@VVL@VX„@lVV@L@blL@`šL@xXKVL‚@„VnUš@lwnU@ml@XnV@@UVW°LnalƒUI@aUK@a‚a@U„kXW@I@mWL@UXK@UVW@U‚@@k„Wn‚@@V„@XblaVxšL@bVKXb„IlJ"],encodeOffsets:[[119183,34594]]}},{type:"Feature",id:"3417",properties:{name:"池州市",cp:[117.3889,30.2014],childNum:4},geometry:{type:"Polygon",coordinates:["@@„V°°ĊŤ@xƒĖ@xœXƤ„VôIÆmnLllXÔ@lƒÜŽn@@JšbšLÆaĢÞĸ„°VVUUKVanK@UV@VL„VVn„ln@‚xnklxXamk@WV@Xa˜@naVk„Klk™@mkUWwkJWw—IWK@ƒUaUwWIUyVIUmVI@UXWmkkW‚—KUUVWm@@kƒKw@U‚UUmkaULƒwm@¯Uma@akaUbW@@a@VlUXƒa@am@kJ@UVkUaƒm™L@UkKƒVUkƒJk_±@aƒ@WmXwÇkkaVaUa±ƒœwV@VkƒwnyUaW@UU¯amLk@m™@kmmU™™¯K@L@lUX¯ƒWlkXƒŽVb„bƒVUL@J@LVKnlJXnlb@`nXlalV@bnL@Vnb˜¼@lXbWlkL™K@zUJmIUxUVUVmX","@@llUL@VlxšL@a@UƒwXa¯@"],encodeOffsets:[[119543,30781],[120061,31152]]}},{type:"Feature",id:"3401",properties:{name:"合肥市",cp:[117.29,32.0581],childNum:4},geometry:{type:"Polygon",coordinates:["@@„L„xV‚ĊLÞkšVlVVXaWaXwW™nU„@‚anVVUX@˜bXblWkk@wWmk@VUVKnb@Išy@_kWm£nmVa@U‚KœwlVl@„zn@°l„IlmnVšIVmnV˜aXÅWmU_VK@Unƒmmk@UIVakaƒa™UƒÑUK™ÑWKUUKUamI@KkaVUUam@VUUa@UkWUaWI@a™kmōw™wUL@`mn@KƒV™IUVUUUK›Vk_ƒVkbWƒ@VkUULUJ±I¯aƒlkxU¦@L@V@V@b@b@„WJXbWVXn@LƒKVL@JkLƒŽV@Vbn@VV@XU@UlV@@VV@V@XXV@@VšJ°š°Xnb°@„JUVVXV`@bkXWŽUbU@WŽn@VLXlm„°bV„UbkK@bVJ@bVbkLV¦ƒKķV@x@„XbmVVVk¦"],encodeOffsets:[[119678,33323]]}},{type:"Feature",id:"3403",properties:{name:"蚌埠市",cp:[117.4109,33.1073],childNum:4},geometry:{type:"Polygon",coordinates:["@@VÒXLlUlJ@UXV@nÇx@bnlUVllnVaXVV¼UVW„U@V„²wVV@Vl@„VnwlIš@XbÆWVnUVmLUV„nm`k@VbnblKXUVIlxkb@VVLlK@bšwXxV@n¤ÆUVaÈaV_@anyVwV@„kl@°m@LnU„bl@„WVkV@Xa„a˜V„IXl‚IV‚„@XbVUÆ@XKWwUkmW@_UmnIlJXkWKXmV@‚w@_XV@Kl@kU@KlX@@UUUUKWLm@klJVUUmk@mXUWmXwƒ`m@„zUbÝakbW@m@UUƒéUIm@UbKǼ@™kKWXmWUkaWU—JWU¯L@W™Lƒwk@mm@_™ƒÅl™UVkmWUnV@VWLUb™bƑĬ¯l"],encodeOffsets:[[119543,33722]]}},{type:"Feature",id:"3402",properties:{name:"芜湖市",cp:[118.3557,31.0858],childNum:4},geometry:{type:"Polygon",coordinates:["@@„bVaV@XllLXU°ŽlL@V@VUnVl¯Ikš›VUVU@@b@lUXUWmb„n@¼šbƒĊ‚LÞ@lVXlmÞUnkJ@nlKVVšÞXklWVaVI@aUKn»lL@Kn@‚XXwlm@mn°@„V@Wy„wXlWVk™ƒ@aUaVU¯£kKWVXVWLUkkWlkkwmJUam@@aULVa@UƒVaUaVI@m‚@UUJUIUmmV@bm@UXVVUlVmImakKUU@UU@VmU@@kma@KVIXUVK@U™VmUkV™m±£@JkU@nlšk‚ƒLUlmb—@WbU@@XnlWb"],encodeOffsets:[[120814,31585]]}},{type:"Feature",id:"3406",properties:{name:"淮北市",cp:[116.6968,33.6896],childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@lnnK@¦n@@V‚V„@@VV@nIV„V@VW²a@b@bVnUVVV@V™z@lš@°UšV„IVaVV@x@ŽXX@WlwUnV@XblW„b@XlK@aš@kƒ@al@@_V@@WÅwmaUaV@„bnaVL@llInmU_@W@aƒUUĉUaVwm@XWK@wƒVkaVUUwU@@aV@@mlI@WœLWƒUUUƒVU@kV@XalKVaUƒVUUUk@WwUK@aVI@WƒUk@@UUU±xkb@lVš@xnLÇbUbk@@bÇVUJ±U@U—@WLXšml@bVVXL@lV@@LmbkLW`kbVxUn@LkxmV@bm@@VkV"],["@@VVVkV@¥@UV@U@VUUJƒkWakKUšlXVJ@bXV@blX@aXV@V"]],encodeOffsets:[[[119183,34594]],[[119836,35061]]]}},{type:"Feature",id:"3404",properties:{name:"淮南市",cp:[116.7847,32.7722],childNum:2},geometry:{type:"Polygon",coordinates:["@@°kƒīšaVaXK@U‚UVmnXUlšVÆkVKUUUmmU„ÑkU™UÝlĉKUƒwƒKƒbU@UxW@@lœmVUUVmUUƒmƒw—aW„kL¯K@Žm„ULWlIm`X„WL@b@¼@V@xkVƒI@b@l@lk„V°Ȯ¹ĸW"],encodeOffsets:[[119543,33722]]}},{type:"Feature",id:"3405",properties:{name:"马鞍山市",cp:[118.6304,31.5363],childNum:2},geometry:{type:"Polygon",coordinates:["@@šNJnllLnxV@laXLVKma„aXbVI„bVKVVVIVyn@n_ƒƒW@@ƒ„UnJlUVVXlLnaUWlV@VV„IXW@_W@XK@K@UVUUwVamÑXmmwƒw™KUnUK™çU@ƒJƒU¯@mŽ@nknWxWm@@LkKm¼VL@bUJUbkXWl"],encodeOffsets:[[121219,32288]]}},{type:"Feature",id:"3407",properties:{name:"铜陵市",cp:[117.9382,30.9375],childNum:3},geometry:{type:"MultiPolygon",coordinates:[["@@„ÒV¤@¼V²@aVV@Ž@„„x°Vš£nW‚@nbnaVXVW@k@aV@VUœUl™°JUkVm@U@UkK¯WVkKWkU@Ubƒakwmlwm@ƒkUmƒUUKU@@VmLUbVLUV¯U"],["@@LllUL@VlxšL@a@UƒwXamK"]],encodeOffsets:[[[120522,31529]],[[120094,31146]]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ao_men_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"8200",properties:{name:"澳门",cp:[113.5715,22.1583],childNum:1},geometry:{type:"Polygon",coordinates:["@@HQFMDIDGBI@E@EEKEGCEIGGEKEMGSEU@CBEDAJAP@F@LBT@JCHMPOdADCFADAB@LFLDFFP@DAB@@AF@D@B@@FBD@FADHBBHAD@FAJ@JEDCJI`gFIJW"],encodeOffsets:[[116325,22699]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/bei_jing_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"110228",properties:{name:"密云县",cp:[117.0923,40.5121],childNum:1},geometry:{type:"Polygon",coordinates:["@@vIHZDZQtDLNMXIbHRCXXITbJ@H`LGPRDDJNCLHTOCWFGvGBUJMKGFO^IHWXITQCI’Y^AXGfRˆDXF`DJOLB~G\\DZIHHpErUVMhHb]\\M†BVF@FTP`@zTbD\\@~M\\K`H^EVODWICAakAQXoIcCOCIgGYNWFWNGGKKGaJEGMEIKYJUT_J_Go@_SyQaSFMEGTcYOQLIIi@EKAUPCV[EEXQCW|aMUMAaYCYNIDGGACIMGGSKDQGaF_C[GaB@GOIiOKAYL“mI@CN]F[SWWAcKKI@HMUimEKbeYQYISNUOcBKPIFBNgvDPGZYFSf]CMSIWGEUFgDIQ[MeDMJS@RR@LphFPCHaBAJKF@J]IBJO@HlO@@RKAMPJHCNDJTHFP@ZGNANBRFH@J_fM^ONJNF\\VTDJHDON@XRND\\XRCPVETCLBVKDFJINHRGPRV@\\CLJN@VbXbLVT"],encodeOffsets:[[119561,41684]]}},{type:"Feature",id:"110116",properties:{name:"怀柔区",cp:[116.6377,40.6219],childNum:1},geometry:{type:"Polygon",coordinates:["@@JHTVHXCHPfnDJGHNDJSB[JSBGVSAOH@PMPuDEHHXZN@PHF@ZLJ@LHVYJA\\OFWP]BMtMBSRGV[JeVAPQVIFENMD¡–@^NV\\JH@NNL@NM\\kTQ\\I^FNIpBHGTBFFAZQfKDIXQTLXFXNNVMVHRGpCFLlRLEVBBH`IVO\\G`RDPAXLXBXORHZEHTDLLN@VGTMrQNFPeASKG@GMOAKBYMK@GTUHUXSHMVDNMOUEOZMJML@^KRACMZEZMRQLUHE@OFENPR@DI\\ChMHIDG\\GJMDWHCKGMDCIQCHO_K@GaIJSWWQDaGWJMNCKRsCYGYuJUSaKaW@UIMDK@[QUHOGQJMEILCAUDKFSOUQD[WMC‚Q@WPMGCCIUSE[IMPMN]`e@IEGAQBMHM@YEOSGCIDMIGNOLB@QP@GkP@AI^J@ILEBIbADGEOog@KQQWSekWQQUOFKZLF@PUNmIaHIUeBCTSHENcJa@_IWSaGu`GLSBKJQFOXGDXVQVOBIHcDSJWBEFGTMH[^mLaXcHiKElTRKtFXZ`MHMPCNRDxZˆB\\ICIHK@KŽHbIVFZ@BPnGTGbDXRDJaZKRiGEFSFEJhjFNZFjn"],encodeOffsets:[[119314,41552]]}},{type:"Feature",id:"110111",properties:{name:"房山区",cp:[115.8453,39.7163],childNum:1},geometry:{type:"Polygon",coordinates:["@@h@bl@HRJDZ``TA\\VVD^H`\\pF\\JŒ`JGv@ZO\\GPSTEjPTR`FnEbDTDHEhLFMTK@ETSPULKEI@OVISKSJACEQNQbV˜IXGDIN@dMB[IIBcN]ZHNLP@XOWCFWŠCNRHTpATD@^NVNLED@Rh@jCEF}E[OOHUEW]W@QGGDIQSH_MmFmCUT_K]i@MHCMW—FCF‹E{BMHMPOHKS]CFNGBELDH_@BcAKOACESAOBELaXAROB@FODMEDWJAG[aE@UM@DImEWJMC@OeCA{aE[@{L@MINUCQXKfUJORCHqJBF@TCXWNQX]M[EAJO@@KMBQJIC]EWMCCUBEBFHKDOTMBGNGF]MWDBRDdMDQVyE@LPVHDCP@JVVMTG~HNSH[CmRUvHPHBbA\\PTNRC\\YNJ€PRARPJDDR"],encodeOffsets:[[118343,40770]]}},{type:"Feature",id:"110229",properties:{name:"延庆县",cp:[116.1543,40.5286],childNum:1},geometry:{type:"Polygon",coordinates:["@@^AXOPEB[ZIGU@KKI@YGE@OYMGWFGvCNO@OPGTBHUTA\\ITACIGMIHmCOeDGGWSUIGimYEEMgiFITEFEjHLQbYCIWQaCSHmHAOY@UEaJG@LGLDJ[J‡AwYQCDMNONGY_EWLsSQFkMO[NWAIGaIYL@HMBOKiOQDWEUDMQSF_QIUBWdg@[NaAKQ@M]OQ@WhgLUMMFYQDIRCEUZOOCIOJ[KIUMKL@HIDKVEBM`HJAJSJUdBLGNEdMBMO[BYEWJSNKNaD]PE\\SjOT_RQVEZPpƒNQXfŠNA~lNG`@PNLp¼RFLfbdKbATUh@FSNWjGFZVLFHVA~X¨PPROfFJbNJPLFbENJPrEFNPFRHDDJdENJLVEPBJTVTHGHFRFH@PXP\\ORQHW\\BjWFDERLPPBbB\\E`B\\D\\L`@F]FCnJ^AZL"],encodeOffsets:[[119262,41751]]}},{type:"Feature",id:"110109",properties:{name:"门头沟区",cp:[115.8,39.9957],childNum:1},geometry:{type:"Polygon",coordinates:["@@V@XMnGPY²‰JQNEhH\\AZMPDVTTDZCPiJkHSHCjIdFtEHITCNITQEKUAMCEIKCECABYESKFWAKBEIIHABGDCKCAIHMHALKEI\\CFIBILIJQZS]BBEECS@E@@C]COKI@CABAAEEDMGƒCH]A[M@CJWH—JaUMRFRBDTITLUJ@PFJKLOVST@FSLENgKGFSCaCmF_ESQiOSFOT[HYPu@IH‹_[IoE_[]GUC[USB__CYQI@Gakg@qZeHQNMNV\\FVLPgJAFJPRLCH[XcPELUT[JiV_EELFTADBXRTRLJC@fHXHHbPd`fR@NfT`@TLplHMpCEJHJBVLFŽ@JT‚VnG^KXDXHNVGRLRXFJVdDHSNWLGfEzA"],encodeOffsets:[[118635,41113]]}},{type:"Feature",id:"110114",properties:{name:"昌平区",cp:[116.1777,40.2134],childNum:1},geometry:{type:"Polygon",coordinates:["@@VNLJI\\JPPDYPFVQDCJZRNEVNhKXgR@^P@NLRbB\\Mh@XcVARJE`RTCNFV€XRCjPPLNA@GZKbJJHXB\\MNPjLdGbWnK\\]NGHSFEXATIdCJGPARUWUHCPWRELITAHKv_E@iYCaW_BQ\\Y@QIO@QDCIGZCEMWGFMFAFgHEDOCSqKCCFGAMKEAC@ODGCGs@WH@KQA@EE@CE@GEA@EH@GGUEEJEAYD@JM@@DAA@FHD@FTJEHUC@JUBKCKG@G[CIIQReAYhO@OXGDO@@FF@IHJFCPEBACBIAAKDOABXARHPNEHGbQAAKQFGIAM[C@WHKaGiCEGOA‹HUKCIokSCUSOCYN[BgGMFIR±ŠOZmHWNU@ShbbXDHVXXGJ^lZ@PZ\\Nb@\\FHJAD"],
-encodeOffsets:[[118750,41232]]}},{type:"Feature",id:"110115",properties:{name:"大兴区",cp:[116.4716,39.6352],childNum:1},geometry:{type:"Polygon",coordinates:["@@F\\E~DFN@BDFEpHFCHBBEGCDCJBHUDSBB@ELCPbF@B\\J@BJVAFJ\\ADKTCBGECFMT@BMN@@FH@DaNBEnvB@FPBATK@FHEFIAKFBFL@@PKBFJHC@FXBRAFCDMPDTOL@JIVFDHH@DDH@BGRFCDLD@N^@@CNA@KNOAEBCECFEGCFGMGFIPMOEJOLBADBBHGG@GCHIECY@INC@DMGS\\AIOZAAEYA@GT@KKMBEETCGMVINFxA@MJADB@FlA@HJA@NND@DFA@DVAZBBOFKH_JA@K^GBC@EFE„G@gAENMXKJigC@IbSJMqGOP£RGSMGE@kbQFDPEFiBSGGSBK]I{CDWCIDOic[C_G@SuSO@EWKCO@MNY@\\uZOPENQD[LKESSKGBKEG@EJGAGHoH¥CqhifeJkX_XFFGHFNEDFPENKHM^IFIVL^S`DVEnNnG`RTCJHH@R^XFXGVPP"],encodeOffsets:[[119042,40704]]}},{type:"Feature",id:"110113",properties:{name:"顺义区",cp:[116.7242,40.1619],childNum:1},geometry:{type:"Polygon",coordinates:["@@EhEBENXHFNYDJHCD@RJP@R[ZARX`DbjZF@bHXT`Jb@dIFMTGDSfAJVbGnJVM@OKELYPERVXRflXTT@NIfC\\NJRhCVEHFJXNT^DTeZEHYCOhuAMJELOdAVPTMOWBWNMNEJgl]@WGUFIC[T{EEDEHGCIGMI@SECUQI[D{A{GQESPUH]CsiMCmHUeoHENcAaDGCMDGMQCACCBaCGLMAHB@DIEQLOAAEEJ@CW@CDINGAAGKQOCgV@LG@BEGDKNeREFBNCFIDOPKD[@YRW@GFWDAFE@EHDDrLDTCPGF","@@KrJEH[\\B@FF@CHFBHUN‹AJKADGECBCMAG^E@EbI@BEGP"],encodeOffsets:[[119283,41084],[119377,41046]]}},{type:"Feature",id:"110117",properties:{name:"平谷区",cp:[117.1706,40.2052],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZJZRafFLjn€VGNJ@LLBdXX\\T^EDMJ@”nZKLBjPPJ@HbA\\H`DbERHLCFK^BZaFWXQLAGMHa\\OLO@SBIpBdCLƒVQfElO@GSAKEDQTC@GEBKG@ORIJBDAPDFA@CaOq@GGQAAEJK@KMUGAAGEAa@MGMBGCGSIIW@WSUCMDOJeWOM@IUF{WMWaDIMgIoRoCOKeEOEAG_I[cg@wLIFENQFDVTFJ@HNDJGHCFFFS|D\\EJHV@Xk^IhMFMNAXPX"],encodeOffsets:[[119748,41190]]}},{type:"Feature",id:"110112",properties:{name:"通州区",cp:[116.7297,39.8131],childNum:1},geometry:{type:"Polygon",coordinates:["@@FDAJTGDNDCTDDEDBBE@DT@@EHCDGJ@EIZ@@FDBR@ATFBBVFFE@@HNA\\VE@CLIFNJFNJBCP]A@LJFA@HJEDD\\C@DBCHLAEPF@@DH@APHAERDF\\GIxDTM@CFLBBFJ@CNUPMHECGDBF]BMFPDLRBHHBJMDCX@@DFIBFPBRKJF@CGANBHKbDDABDRDHNNCHDbCdBFMpGHiOYMefKJMC}HWAUNW\\NNBNA„kNU|]HMTMN@MZBLFFF@RIRUT‘BMFIEGaAGGAOIIUGTSFcYKS@MSLYPKRUBU]EWDOI]CKGASgW@MTWKIMCS@uMAKKADMECGAKVUTSDy@IjWLMNBF@hƒHEF@FAD]H@LIBG`ELAPYAUB@CEB@CMC@MIB@GkB@ECAIB@NwBMEUJHNSDFFNALLS@@HZBBFYBJP[BHTCND@JMZ@FDGJHDH@GHAABCKAIPPFONEJNHEHHDEFFDADBFMP@L"],encodeOffsets:[[119329,40782]]}},{type:"Feature",id:"110105",properties:{name:"朝阳区",cp:[116.4977,39.949],childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@bFGHBHFBFIVFHHG@@FFB@HDFF@@FRB@LXGt@DHCH@PBDLFBNF@BEXCHEX@ZQ\\@LCPOJCDEAMFEfQLMHCAFH@@KhUNE^AAEHCFDNGVODMI@AEKADEN@CSJw[HCEFQGBBOG@@CE@FOKBDGCAD@C[FCGIB@IE@K^BDOIAEMMIJEDKF@[UMB@GF@EEAUEABSQ@CA@EY@FJI@CHGD@FS@@CAFCACFSCCDCMSHBIECMB@D]@@MKCDCQEAHG@CCG@CGUEIJK@SPOCCNEDQBDNDB@DJCDLFCBBALJB@BVGPBKVO@KHCCCD@FE@BNA@FNCTDDJA@FGB@NBDW@CL@hT@@ZHHQDDDAFSAANBC@HG@EFS@@DE@@PCB@Ue@CADNJB@FCBWA@LI^ix@FIHrH"],["@@HUN‹AJKADGECBCMAG^E@EbI@BEGPKrJEH[\\B@FF@CHFB"]],encodeOffsets:[[[119169,40992]],[[119398,41063]]]}},{type:"Feature",id:"110108",properties:{name:"海淀区",cp:[116.2202,40.0239],childNum:1},geometry:{type:"Polygon",coordinates:["@@plDJVLŒGPBFHjDbHGL@X\\DBNHJREBLRBHaFGŽMGOBQAWPBLCBBAJBDFADOIEJGE@@EP@HCPWP@ZgfBRQJJ\\D@HLHLDVA@IVDFGSI@EGC@EBB@CN@@IZCAGHGaEqGJG@EjwJ]@K@GSA@e_I@NE@CA@Kg@KC@ENCFƒAKQAW@WIMK@V‹@I@@F@^EDFB@HcIaDYCBRRDCHD@EFLN@FE@CJUPEJOJMTBPEDIFCMIAKNOGMRFJNDVBFLSRMJSDGJsFcEiJGDGTIlOjYD"],encodeOffsets:[[118834,41050]]}},{type:"Feature",id:"110106",properties:{name:"丰台区",cp:[116.2683,39.8309],childNum:1},geometry:{type:"Polygon",coordinates:["@@hMN@NFTQCFRCBJFA@HJ@@HJ@HJ\\FTACDŒ@@UNLXJX@@MA@@IECAQlDFEHBDI~D@GXCFMVDFCH@@NF@ANJC@FnAB@AMF@@EDCDDLGP@LUOAUH@AIABKAAEDCKID@CCACMWA@EGDEILA@OK@AELEJBFEEGL@BSOA@EuAFmMACbG@@EM@ANS@ENFDAHSDCL[BEIUBAII@A[E@OaKD@FAACTGVIACDHDAFGAEDoGEFACM@i€g@@QFCMKMU@]SCoBGSMQ‰DEXXDWPO@MKYGM^AdJJA\\cNB\\G^„DNHFCBFABDBJ@PL^D@DF@T@FDAF^A"],encodeOffsets:[[118958,40846]]}},{type:"Feature",id:"110107",properties:{name:"石景山区",cp:[116.1887,39.9346],childNum:1},geometry:{type:"Polygon",coordinates:["@@NQPHLMJBDNJEFCAONSPIFIVODIF@@EKMFEC@DGQCAQZDbCdJ@GEAFC@]@EJ@DCSB[EGII@@GI@@GEBAIQDDESRMEM@gNYTIRKJAJEJ[DFJKLGBGNBJLDCDAHGBJJAFBLEXTLZFBAFDLD"],encodeOffsets:[[118940,40953]]}},{type:"Feature",id:"110102",properties:{name:"西城区",cp:[116.3631,39.9353],childNum:1},geometry:{type:"Polygon",coordinates:["@@XBDA@EIACM@IJAD]BC@SFABISAD]H@@OAEDQEW@BLE„MD@FLDh@@LDBF@@M`J@fTB@H"],encodeOffsets:[[119175,40932]]}},{type:"Feature",id:"110101",properties:{name:"东城区",cp:[116.418,39.9367],childNum:1},geometry:{type:"Polygon",coordinates:["@@DBf@@VDA@OF@@CT@FEH@@GADBMTBBECCRCGG@YS@@gDK@A‘C@PG@C^TBAJEB@TADC^IB@J"],encodeOffsets:[[119182,40921]]}},{type:"Feature",id:"110104",properties:{name:"宣武区",cp:[116.3603,39.8852],childNum:1},geometry:{type:"Polygon",coordinates:["@@RBX@RFFCŽBFU@aK@WA}CCJGAEFkCBRFD@JB@@N"],encodeOffsets:[[119118,40855]]}},{type:"Feature",id:"110103",properties:{name:"崇文区",cp:[116.4166,39.8811],childNum:1},geometry:{type:"Polygon",coordinates:["@@XBL@@bEV’D@BX@AC@MHA@EIBCCDSEMmB@EIDBME@@MG@EDUCENWD@H"],encodeOffsets:[[119175,40829]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/china_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"xin_jiang",properties:{name:"新疆",cp:[84.9023,41.748],childNum:18},geometry:{type:"Polygon",coordinates:["@@@›ρȁôƧƦóəʵסʵóƪԫʵѵͩƧͩړ›υࡓɛʵ@ȃ@óᇑѵƨɝɚôóНѺͩɜ̏ԭʵôƧɞñ@υƩ—݇ȂóƩƧ@ѵȂυœƥŌਗ—॥ɛóʵѵƧѹ˜݇̍ࢯ˜əɞυ˜ρͩ̏óਙƨƧŋôōóš̍ͩóʵן›óŋړͪƧѶ@ɜԭ—ԫƦɛȄ̍›ɝȄöςƩȂ̏œñȀ̏œƩóóŎə˜@Ő̎@ɞȀɝŎôƨóנѵȄƧ@óŏɝœóɜôŎ̍ͨςŎ@ƨóôƨɞ݈ʶóƨφó̎Ȁƨ̍ԮòѸԮמ@ѺȀ@ƪၬֆòȂñ̐òȂɜ˜óƨ̒Ŏ̑߼@φρȀ@Ő๐ς̎Ƨφ@ɝφڔ೦Ԯǿࢰ@ƦŏԮƨƨȄƧ۬ɜʶڔŐɚɚóŐôƨ߼˜ôƧƧó̐ƥóŏѺǿƦȁφƧς˜ƨƧ̒@ɜƥƦυ̐ɛƪͩƩəƪʷ̑ə@ȃƨʵנŋྸōਚԭԪ—@ɝƨŋ̒օςʵôƧ"],encodeOffsets:[[98730,43786]]}},{type:"Feature",id:"xi_zang",properties:{name:"西藏",cp:[88.7695,31.6846],childNum:7},geometry:{type:"Polygon",coordinates:["@@ôŌנœôʶ̎ͪô™óŎƨŌਚƧ̐ôςͪφ—ɚɝࢰ—݈̎Ѻ—Ѷƨôʶ०ɜਘ˜Ʀŋφ›Ѷȁ̍—ôŏɚŋ@̑ə—@ŏò̍ɜ›óƥôʷƧ̍φѹԪ̍ע@Ѹʷɜ@ôñנ@Ѷɛɞô̐ŏѶƨѸƧƥōƦœôŏô—@ƧôƩ̒ŋƨŌƦǿô̎ɜȁ̒—óʶѶôôО̒›ςƥɜНφσɛȁ̎υƨఱƧŏ@ʵƥœ@ŌóóóͩƨƧóŋ̑õóɞóɝԩͪɝρôƧ̍ƧѹͨڑŎ̑ōóƧࢭͩ̏ѵɝóఱóóԪυô@̒ƥŌ̏Ƨ̑Ȅ݇ŎƧ›ѵӏ@ɛõŏɛȄôӒƧŌѵǿɝ˜Ƨŋԫ@̏ʴƥ@óǿ̑Ȁóǿ̍ςóóυô@ʶɛñρƦƩŐó̎óœѵó̑ͪࢯОóɜן˜Ƨ̏ƥȄ߻̎̏̐ןŎɝɜöɞƩȀôöɛȀóͪ̐ƨƪ̍̎ȂƥԪυО@φɞ˜ôƪ"],encodeOffsets:[[80911,35146]]}},{type:"Feature",id:"nei_meng_gu",properties:{name:"内蒙古",cp:[117.5977,44.3408],childNum:12},geometry:{type:"Polygon",coordinates:["@@ኊȁ૊ö߼ƩɜɛנñԮɛѶóԮô@ȁѸóמ̎ගѺၬ@߼ʶԮӒ߼̎@ŐѹӒ̒Ԫƨöග̑ѶȄ̒ς।œѶɚöɞɜʴڔôôȂ̎—ѺȀς—ƨ˜ƪóԪ—ɜôɛОਕڔԭ˜ѵ̍ѹȂԫ›ɛƥ̍Ȃóɜ̎ô@ʶ݊ੲࢮʵږͪנƨôȂƧ˜̐ͪ@ŐƦƨφԬѶɜôƦ@ŐƧôôƦəŐ̏›@ŐڒѶԬô̐ʳԩНςōôŏɞ@ƨȂѶəóƧ̒ػ̎ó̐Őנóƨô̒@ƨɚɚ@עԫɛɛ@ȁυͩƥʳòևρ—̑ࡗƧͪ༃ॣԮփ̎Ʀ@ôô@ôō@š@ȁѵóƨ̍υȃóʵɛƨƥóυȂóəƪ›̐ρƧͩɜԭڔȄ̎عƧȁ̐ŏó̍ɛ›ƥƧ̑óρŐ@Ƨ̏˜ɝəɛ˜߻ͩ̍ͩɝО̍ƪƧóóӓƨóƧʳ݇@ɝςƪœ@ʴƩ—ƧƦôƨɛȄə›Ƨŋυ›óͩѵ@ɝǿóŌן̍ɛ˜óО̍œ̑̏ôȁ̍ŏòȁñóƦͩ@ǿə@ɛƧ̑˜ρȁυô̍օѹœóȃə™@ȂσʵѷƪòƩ̍—ôó߻ۯôʳƧ™óšõʵѵóѹɜ̍ȂѹôɛŌφֈƩͨρóυӑóޟఱ̑݇ͪóƪƨŌóȄڔԬƩςםñ̑ȃѵŐԭŏƨȁɛǿρôõɚɛóƧОə@ѹ̐ѵöԪͨôͪɛ̒ןŏƧƥóôƥƧɛŌôóɝó@̒݇Ӓ̒Ō@Ŏԭࢰ"],encodeOffsets:[[99540,43830]]}},{type:"Feature",id:"qing_hai",properties:{name:"青海",cp:[96.2402,35.4199],childNum:8},geometry:{type:"Polygon",coordinates:["@@ƨ@ôƪ݈ȁƪ˜@φɝòóƨԮʶɛ̐ѹͪôОəóƧɞᇒѶ@ôږô@ǿѶ›ƪȁςœɜͩφ˜ςŋɞôѶɛƨŌɞ—@ɚςŐñԪॢͩƨȂɞóƨŐ̎ŏעӏ̎óƧƦôœ̒ȁɜ›ςͩ̒œɚɛƨôƨɝφɛóȁƨŋóóɚͩƨóóƩ@ƧəŋƦƩ̍@ƧƧôǿυ̑@ȁɞǿõŏρƥסɚƧóτԫɞœôƧƦ@ñȃòñƥóυôôѹѵ—@ŏ̏Ȅɝó@ȂəŌóəѹƦ@Ő̍Ōυ݈ԩŐƧóôƧ̑›ôʵɞƧ̑ѵôƩɞƧ̑œóНѵóôʵ̑˜ɛȂó̍ƥȀƧŋ̑Ōóƪ@ƨó˜óŐƥ›ƦŎѷƨѵƧ̏Őɝóѵɜן@óòɛ@ѷʸס@ԩ̎υѺƨ̎óʸôƦɛœñ̎@Őɚ˜@̒əŌóŐ̎˜"],encodeOffsets:[[91890,36945]]}},{type:"Feature",id:"si_chuan",properties:{name:"四川",cp:[102.9199,30.1904],childNum:21},geometry:{type:"Polygon",coordinates:["@@ô˜ôŋó̑Ԯ̒ɛОמͪƨōöͫ߼ƥôȃƨóóñôƧóƧôōڔŏƨŐ@Ŏô˜òƥѺŎ@ōɜóנ˜ôǿô›ƦôԮ̍ɜôɚ›Ƨ—ñɛɚȁ̍Ƨɛևυ@óóôŋρԭɝ@Ƨʸ̍ŏυɜƧƧóƧƨȁρ̍ƨȃɚ—ôʵφóô̑̏Ȃ̑ʵɜʵɞ@ƨʳסƩóŎə—óɜƧôƩƧρ˜óôôô@ŎƧƨƨƪѹ˜ó̍̍Ʃ@̏ѹНôޟ̍Ʃóƪυɝɛ—əƨôŎɛȀ@Ȃ@ñɝʶ@Ōρנ̏—õóɛͨƨȂѵОɛʵ@̏ƩŐó߼Ƨల̍φɜȂυτɛОρƦɝƨóƪ̒Ѷɝƨóʶ̒œóƨƨôԪŏφ݇̎ŋ@ŏѺƥôɚɚŋ@ȁɞô̐ȃ@ŐѶ˜óѺφóƦôñòòȄ"],encodeOffsets:[[104220,34336]]}},{type:"Feature",id:"hei_long_jiang",properties:{name:"黑龙江",cp:[128.1445,48.5156],childNum:13},geometry:{type:"Polygon",coordinates:["@@ᇔȂਚНƨŐѶŏöƥςŏñƧƦóƨȁ@óƨ—óȁφӑóóƨ˜óǿ̎̑ôНɞ—ó̑ɜə߼›̎ǿ̒ôڒӑφ@Ƨȁ̎̏ƥƩ̎ρశ˜ôȂςƨφ@נɞ݈˜̑ƥƧɛƨʵƧȃƥ@Ƨƥ@ŏ̑ԩôɝρρóɛƧ›ƩͩƧó߻ʸ̍ʷѹƥɞڕõ̍öɝυ—̍ȂƧ̐̑ŏóƨñŋѹóóȁ̍›̏Ԭõʸ̏ŏ@ǿ̍@ƧОυ@ñƨòȀƥŎ̑ŐѵóɛŌóȂԫōƧŎѹñ̍ʶóОן@Ƨ̎Ѷô@Ȃ@™óŎó@@ó̍ƥԭք༄।ƨͩ̒ࡘς˜ñֈƦʴφͪ@ȂɜɜסԬə@Ƨə̑@Ƨóןô̏ŏ̍ô̑ؼôƨѵɚƧȁɝ@óŐρŎԪО̏ʴ"],encodeOffsets:[[124380,54630]]}},{type:"Feature",id:"gan_su",properties:{name:"甘肃",cp:[95.7129,40.166],childNum:14},geometry:{type:"Polygon",coordinates:["@@ڔôԮࢯ@ō̑ŋ݈ӑ@̑ɞôóôɜŋƦƨôóƨƦנŐɜ̑óͩԩͧѶõѺ̏ɚ@ƨНɜôöəςóɜȀƧȂԮŐѶŏ̒ȄמòƪρړԫôȃƧŋôƩ݈ͩɚ@@ǿɜ@φͩóŏɜӑƧōôǿ̎›ôƥƪóõ›ö@ô—ƨ˜ôƧƦôó̒ɜ@ɞŌõʶ̏Ő@ȀóôƨȂ@ʶע@@ƥ୾ӑó̑óŋôʵóɛړ@@ƩöóƩóρ—ɛƨ̑@óʷƥƥ̎ɛƧ›ôōƧǿôͩѵôɝȃɞȁõƧρóó—@ōƧŏړŐóŎôƨóƨôòƧôóȄ߻ƦõͬƧŎםͩɜНԭ̑ô̒óŌó—ƥ@óƨɝ›σԬƨôעəςƦöŐɝȀ@Ȃφ̒óȀƨƨ̎@ƥƪɚŌ@ƨôƪƧôəͪôôƧŌôȂυɜƧɞƧóəɜ̑›ρͪɛœ̑Ȃó›ƨƥ̍ôסӐ̍ŐƧŏɝôƧȁॡͪòԩρŏ@əɝ˜ƧŋѵɜɝóρŌυ—ɛͪρ›ƩȂѵœ@Ȁڕó@ȄɜʶφࡔڔœƨͪѶͪԬʶôƩעʶɚʶƥôóƨςȂ"],encodeOffsets:[[98730,43740]]}},{type:"Feature",id:"yun_nan",properties:{name:"云南",cp:[101.8652,25.1807],childNum:16},geometry:{type:"Polygon",coordinates:["@@ôɞôɝ̒öôŌƧƨôͪôô@ŋƦ›@ʶƨŐô߻ƪŏ@̐ɜʶѶНƧȁɜͧöô̐˜ςן@ŋɞʵ@ò@ȁɜǿóōɚƧɜ˜φɞôƩ̎ƪóޠѺО@̐̎ƪô̎Ѻ—ƧƩƨƧ@ōóóôóς—ƪƨƨóôɛó̑ԭ—ƥŌɛǿɝƨɛͩô›@ǿƨȁѺŌɚɛ̍ןѶНɛƧôóƥȁƦͩôŎɞ—ƨ̑ɜ—òôφ@ƨʵ@ɛѹōóȃəƨυǿóʵρƧƧŌƩɛ̏ȄñƧƧȀɝ̍ԩʶƧ̑υ—óŌƥʳɚӑóНƥô̑›óӒѵʵѹœƧӐןôƪφõŌƪ̒ԫŌƧؼƨƨס›ρȁƧœƨȂóʶó@@ʴƨôôφ̎Ŏ@Ȁƨ—ƪɚƨœóƨôôôςóޤƧŌƩŋƧԪ"],encodeOffsets:[[100530,28800]]}},{type:"Feature",id:"guang_xi",properties:{name:"广西",cp:[108.2813,23.6426],childNum:14},geometry:{type:"Polygon",coordinates:["@@ƦŋѺ̎ڔʵƨŐ@ƦמȄƪôóȂɜŌɚͩɜ@öóɜôôȂƦôɜȁ@ɞφ›óȄ̎›ƨʶɞŋƨʴɚǿ̐̎Ԭ@ôñ@̏ƨ›ρ۫ô›ɚƨƨНƪŐ̎›ƥóƦʵƥŋ@ȃóƥƧ@@ŏɝǿôυƧȁѵɛ@əóŏ̑@@ə̍›óƧó—@ȁƩ˜ρóòНƥô@Ӓ̑@óŎ̍ƥσŎυ@̍ƨ@Ō̑ôóͪƨ̒óŌړœ̏Ŏ@ŌôȄѺŎ@ɜƧʶυ@ñóɛ˜Ƨ̒ɝ˜óōƥͪ"],encodeOffsets:[[107011,25335]]}},{type:"Feature",id:"hu_nan",properties:{name:"湖南",cp:[111.5332,27.3779],childNum:14},geometry:{type:"Polygon",coordinates:["@@@քɜОƨ@öŐמóƪôƩɚ̒Ő߼ȁςͩɜòƪ—ɜȀò—ñɝò—Ѻͪ@ŏƨŋóɝôǿƨ™ɚȃóəƨȃѵͩó̍@ȃƨóóƥƨƧ@ʵƦ›óͩɜ—ɛóñԭɛōυȂ̍ƧƦō@ɛƥ—ɛȀ̑œóʷóō̍œƩŏƧОəƧóœς۬Ƨœ@̐óòԫ@̏̍əȀƧʳɝŌóɞƧ˜ƨɜóŐƨò@ȄƧŌρŋóôԪОóʶ@̎óȄ"],encodeOffsets:[[111870,29161]]}},{type:"Feature",id:"shan_xi_1",properties:{name:"陕西",cp:[109.5996,35.6396],childNum:10},geometry:{type:"Polygon",coordinates:["@@ςôöƨɝȂɞȄѶóóͪƨȀóŎƨœ̍ɜƦƦôʸ̒@ɜƧς˜ƪôõô@ƪڔ@ôɜóʶôŌô̒୽Ӓ@Ʀ@Ѻ̎ɜѺɛѶôöʶô™ƨšóʴ߼۰óô̎˜ñƪѸƩτʶ@ȁòŋəѹóǿ̑ʵ@ȁ̒ʷυփô݉ôН̏ط@ȁƨóô̏ƪõ@ʳ̐ʵ@ɝɛŋƩŌɛóןôƧŋ̒ó@ŏ̐ƥ@ŏυ@ƧƧôן̏@ƥȂѹɜəœɛóԭ̎ƥóóœóȀן—ɛô@ŎѹōñƦ"],encodeOffsets:[[108001,33705]]}},{type:"Feature",id:"guang_dong",properties:{name:"广东",cp:[113.4668,22.8076],childNum:21},geometry:{type:"Polygon",coordinates:["@@@Ȃô˜ôƨ̎œ@ɚ̒@ôŐ@ɚѶɜƨȂóφɞȀ@Őƨ@ôƦ@ȄƦŌƥʶƦôôŎôʸ̒›ɜǿƦ˜@ɜƥŎ̎ƨφȁɜŎòƥԮŎƨōóŏɛƧɝəɞƧ߼ɜςȃñȄƦŎ̒ōôòƨəƨ˜ɚН@əƨ̏ƪʵυŌəɛóəԭŏəœóŏѹœρʵɝƦ̏™ƥʳѶ›öō̑óóŋρȀυƧƥɛѹōƧôן—ɛŏѵ@óŋôʵɝ›ƪԩõ@Ƨō̍@Ƨ@@ƦɝԮƪО@@","@@X¯aWĀ„@l"],encodeOffsets:[[112411,21916],[116325,22697]]}},{type:"Feature",id:"ji_lin",properties:{name:"吉林",cp:[126.4746,43.5938],childNum:9},geometry:{type:"Polygon",coordinates:["@@נ@ôН̎ʵѺòƨōԬŎôȁɜŋѶô̒ŏƦōñǿòƧφ@ƨН̎@@Ȁ̐Őöʷ̐ԫ̎œôȂѺôòŌôƧ̒Őƨ̏̎ȁφ˜@ŋƩͩםȃƨ—@ȁ̑ʶ@Ōóôɛœƥѹ̑—συ݇@ɜρƧȃࢯƨôœəȂɛōƩɛ̏υρóõœƪʴυφ@ʶôŌóœρք@ɜƧ@ɝǿƧͪρȀƩó̏ŐƨȂ̍غړȃɛԮƨͪ̏ςƩœôɚφȁƦôɜƧôʶφȄ"],encodeOffsets:[[126181,47341]]}},{type:"Feature",id:"he_bei",properties:{name:"河北",cp:[115.4004,37.9688],childNum:11},geometry:{type:"MultiPolygon",coordinates:[["@@Ʃ̒̏ŌѺ̒Ʃ˜óȄƧŌƥͪòôñȂ̎ŐóȂ̒̐̎›ôНɜ—נ̎ôŋɞȀѶ@ôͪφœƨŌɚœɜȃóƧƨƥƪ˜@ʳƩ›ɞρ݈@υНφʵɜ˜ƦρƨƧ̍ɝóɛѹ̍ρŏ̑ôóƨ@œƧƦôƨɛ@ƥƨ@ȂƦ@@ôəŐƧʶƨŌυœ̍̎ɛŋôōɝ@óƧ̍›ƦʵѵʳôʵɜŏςôƪŋƨŌɚ@ôНƥƧ@ōѸɛ̐ô̎ʵѵНԭ@̍̍Ƨò@ȁɝ@əρυͩƪ̏ƩõƧŎƧōóšॡȄɛʶɜȀ@ɞςѶƧœƥςɛŐ@ɚɜɜ@Ŏôôςœƪς"],["@@õə@Ƨɛ˜@ŐóƦφô"]],encodeOffsets:[[[117271,40455]],[[120061,41040]]]}},{type:"Feature",id:"hu_bei",properties:{name:"湖北",cp:[112.2363,31.1572],childNum:17},geometry:{type:"Polygon",coordinates:["@@ñȄυƦöŐƩ˜óנƨƨφ@@Ő̏Ʀ@Ő̑ôƨŌנóɜôƪŋɜŌѶօڔə݈òɞōɜŎôӏƦóƨô̒óôȃƨó̎ŐôƧƪ@ƨȁςƧə̑̎Н@̍Ƨŏρôԭͩԫ—̍ʵƧšóȀôɞƧŌ@Őѹͩñ˜òɞñ˜ɛǿƩ˜ɛñρͪ߻Ȃ̑ŏƪəƩóםôõŏƧ@ɛНƥȄó›̑ѺƧ›ôφóƨƨƦƪóɜŐôóòôƨóφ̐ƨóƦ̎"],encodeOffsets:[[112860,31905]]}},{type:"Feature",id:"gui_zhou",properties:{name:"贵州",cp:[106.6113,26.9385],childNum:9},geometry:{type:"Polygon",coordinates:["@@ɜȀƦŋԮ˜ô̒ɚ˜ôōעƪƧʴɝ@ɛʶ̒ʶ̐ȁƦœóȂô@ôŏ@ōô—ƨʶѸô@ʶƨ˜ɞó@ōτöòυƨ@@əƨô@ɛ̒@Ʀɜôȃ@̍ôʵԩНôóςŌƨŋ@ȃƧñôŏƧɛƨ—ôɝƧʵ̍œôȃυœ@ɝɛȂƥóóȁɛóõôɛ@əͪɛŋôȁƩóםȃ@ƥƧŏړʶѹ̍ƥŌƦȂóôɜƨѵО̎נəɜѹŋƧȂ@ȀóœɜͪɞƧ"],encodeOffsets:[[106651,27901]]}},{type:"Feature",id:"shan_dong",properties:{name:"山东",cp:[118.7402,36.4307],childNum:17},geometry:{type:"Polygon",coordinates:["@@Ʃ̐φͪɚςɞ@@Ȃƨñ̎̎Ԯ@ѶОƨƧڔ@φН̑ŋ@Ʃ̒ǿ̎@ƨɜԬςôʶ̐ʶöԫƨƧנƥɜŎôō̎@ôŏóρƧŏԫôóƧԩó@ƥɜƧԭóƨʵɛƨ߻ӑɜНԩ˜óô̑óƧʳə™óɛƧ@õȀƧœ̍ȃɛŐóŏυО̍—óɝƩ—ԩ@ƧɚԫȄɚʶƨ˜ɞʶԪ̐ړɛƪ̒"],encodeOffsets:[[118261,37036]]}},{type:"Feature",id:"jiang_xi",properties:{name:"江西",cp:[116.0156,27.29],childNum:11},geometry:{type:"Polygon",coordinates:["@@ƧȄôɚəȄ̎ʶԬ˜ԮͪςóƨŐƪ›τɞƦōƥƧ@ŏςôóŐôô̒ʷѶ—ƪƩƩǿ@ō̒ɛôυ@—Ƨȁѹɛəƨѹ̑ƨ̏óƥѵʷô̍ɛȁôŏɝǿƧԫƧ›ôʳƥōòȃρȄ߻ɛɝƨɞɚɜƨôŐƧŎԭōñƦòԮɜôɛ˜ôͪƥœ@ʶƧƨôƦƧô@Ȅô̎Ѷͪ"],encodeOffsets:[[117e3,29025]]}},{type:"Feature",id:"he_nan",properties:{name:"河南",cp:[113.4668,33.8818],childNum:17},geometry:{type:"Polygon",coordinates:["@@φ˜̎ƪ̐˜ɞȄɚ@@Ȃעó̎ŌѺ̒ôֆॢȃô™ƨŎƨōƪöƩ̑ڔɜԩ̏ɝʵƧ—əʵԬȃƨəԪ@@Ƨ̒ŏô̍υȁƧɚ̍ôóŋ@ɝƧŋõ̑σ—@ŏɜŋôɝ̒ƧɚôôطρóóɛƩ@óƨ̍ŏƧôóȄ̑ôƧóƥôóӐɛōɝŎ݇ñړɚѵֆ@ɞ̏ʶ@ʴƩöó̐"],encodeOffsets:[[113040,35416]]}},{type:"Feature",id:"liao_ning",properties:{name:"辽宁",cp:[122.3438,41.0889],childNum:14},geometry:{type:"Polygon",coordinates:["@@ƨʴƧôôӔƨô̎ƩɞН̎ͪ߼ͪɜ—ɞɚ̐—@ƨςŏ̒ôƦƨɜœô̎ƪôςǿƨͩɞȀƨ@@ɛςփô›óŋ@ʵφυƩʳö›॥փρѹס@əɛ@ͩࢯ@ѹʵρ—ƩʶφȀƧ݈̒۬óʸɝŎѵ@ԭԫןɛƧƨƥςɛ—υʶφО"],encodeOffsets:[[122131,42301]]}},{type:"Feature",id:"shan_xi_2",properties:{name:"山西",cp:[112.4121,37.6611],childNum:11},geometry:{type:"Polygon",coordinates:["@@ɚѺñŌɚšôȄѺ›̎ֆφóςȂ̒—ɜƨɚ@@Ȁƨŋôȃƪ—ѹ̑̐ŋƪ̑Ʃρρ›óó@ōɛɛ@əɜŏƦρƨ›ρѵ@ɝɛǿɜʵóօѹ̑̍ŋסô@ȁə@ɝȃ̏—̍Ʃυ—Ƨô@Ȃ̐ظóОó݊φք̑ʸ@Ȃ̒ʶôȀ"],encodeOffsets:[[113581,39645]]}},{type:"Feature",id:"an_hui",properties:{name:"安徽",cp:[117.2461,32.0361],childNum:17},geometry:{type:"Polygon",coordinates:["@@ó̎̑Ő@ƨƪ˜Ѷǿɜ̑φ—Ʀʵ̐˜Ƨѵôóƪôôυς—ƨȂɞŏ@̍ԫôò̑ƥ—óȃѶͩƧƥôŏѺœôŏƦ—@›ƥͩƧ—ôȁυó@̑ƧɛѵʵƩƪѵ˜̑ʸóóôŏρó@ŐƦƨƥŎσɝƩœ@̎̍Оɚ̒ρƨƧȂôɜςôóظəó̑ƨóɞɛŌ@Őτ˜ö̒ƨŌ@ɞôŌ̎óƨəφȂ"],encodeOffsets:[[119431,34741]]}},{type:"Feature",id:"fu_jian",properties:{name:"福建",cp:[118.3008,25.9277],childNum:9},geometry:{type:"Polygon",coordinates:["@@̎›óȁƨӑ̒—̎ɚƨͩφŐƨɝ̎ŋóŏρ—@ōƨ›òʳəóƨō̏˜õɛƧ@ƨѵƧōəŏóŋƧô̑ɝɛʳƥ@@óɛõ@Ƨ̑ƧóȁəƧ̑—Ƨ̐@ɚəОƧ—Ƨɚóñ̑ŎóʴƨœƨԬɞȀóŐɜȂó̎ѶʸôƦƧ̐Ѻ̒ɚƧѺɜƨȂ"],encodeOffsets:[[121321,28981]]}},{type:"Feature",id:"zhe_jiang",properties:{name:"浙江",cp:[120.498,29.0918],childNum:11},geometry:{type:"Polygon",coordinates:["@@Ѷʶƨɜ@̒φôóȂƨ˜Ʀͪ@œ̐˜Ѹ̍τȂ̒̑נŐמôƪƧôӑ̑›@ƥρͩƨօ̏@@υɝó@ŋɛ@ôƩəóƧѵυó@ƩɜŋƧ@̍ŌƧɞυŏƧͪ̍ə̑˜ƧӒôȂ̍œ@˜óφ̑ɜ@ŎƪȀ"],encodeOffsets:[[121051,30105]]}},{type:"Feature",id:"jiang_su",properties:{name:"江苏",cp:[120.0586,32.915],childNum:13},geometry:{type:"Polygon",coordinates:["@@ôɞ̎˜φНôŐɜŏ̎Ȅƨ›öǿƨ@ôɜɚšƨʴ̒ôôó@Ƨ̎əԮȃԪૉöͩ̐ƧòʵφƧôʵ@óړɜóŏɜǿƧ›ɝρσȁѷ̎̏—ƥ˜óŐѹ›óŐƨƦѵͪôȄƦ˜ñ̒Ԭó@̎ɝŐƧȁρ˜óφƩóóôƨѶ̏—ƥʶυ˜ɛ̒ѵȀ"],encodeOffsets:[[119161,35460]]}},{type:"Feature",id:"chong_qing",properties:{name:"重庆",cp:[107.7539,30.1904],childNum:40},geometry:{type:"Polygon",coordinates:["@@əȂòɜƨ˜ѺɛƦȁ̐@ƪ—õŏφƥòȃƥ̍Ƨôυ̏ƧôñóóôɛŏƩôƧƥôƧóυƨœ̒ѹôœƦȃ@փƥɛ̑@@ɜƧó@ɚƧ@ñφσõ@ŎɝôƧ—@ʵѷóƧʵó˜@ŎóŐó@ôȁƥ›ó̒υôóʶə˜ƧȄς̎ƧȂôƨƨƨφɛ̎Őƨʷɞ@ςԮóŌôôφ@ɜֈ̎ƨ"],encodeOffsets:[[111150,32446]]}},{type:"Feature",id:"ning_xia",properties:{name:"宁夏",cp:[105.9961,37.3096],childNum:5},geometry:{type:"Polygon",coordinates:["@@ల̒ôޠφӒςôƪͧυևɜŋѺó̎ȁ̍ɛ@ѹס@@ʵƧȁôó@ǿ̐ŏöʵɝŋɛ@ô̑ƥóóƨƧ—ó˜ôœó@ƩôóƦ̍œóȀƨŎɛӒôŐυͪɛ@@Ȁə@"],encodeOffsets:[[106831,38340]]}},{type:"Feature",id:"hai_nan",properties:{name:"海南",cp:[109.9512,19.2041],childNum:18},geometry:{type:"Polygon",coordinates:["@@φɜƦʶ̐ôφô̎@ƨŎö@τʵƦ˜ԩ۫õН̏óƥȃƧ@Ʃəםƨ̑Ʀ@ޤ"],encodeOffsets:[[111240,19846]]}},{type:"Feature",id:"tai_wan",properties:{name:"台湾",cp:[121.0254,23.5986],childNum:1},geometry:{type:"Polygon",coordinates:["@@ô—ƩɝöƧɝѵəޣ̏ρƩԭóōóͪρɞƧОôԪ݈ଦѶɜ̒ɛ"],encodeOffsets:[[124831,25650]]}},{type:"Feature",id:"bei_jing",properties:{name:"北京",cp:[116.4551,40.2539],childNum:19},geometry:{type:"Polygon",coordinates:["@@óóó›υóôƥ@ŏóóə@ƧŋƩŌρóɛŐóʶѶʴƥʶ̎œôƨɞ@óŎɜŌ̎̍φ›Ƨŋƨʵ"],encodeOffsets:[[120241,41176]]}},{type:"Feature",id:"tian_jin",properties:{name:"天津",cp:[117.4219,39.4189],childNum:18},geometry:{type:"Polygon",coordinates:["@@ôôɜ—@ƨöɚôœôôɚŏ@óƥ@@ȁƦƧɜ@óƧƨƥ@›ƧóəН̏óѷɜ@ŎƦƨóО"],encodeOffsets:[[119610,40545]]}},{type:"Feature",id:"shang_hai",properties:{name:"上海",cp:[121.4648,31.2891],childNum:19},geometry:{type:"Polygon",coordinates:["@@ɞςƨœɛȀôŐڔɛóυô̍ןŏ̑̒"],encodeOffsets:[[123840,31771]]}},{type:"Feature",id:"xiang_gang",properties:{name:"香港",cp:[114.2578,22.3242],childNum:1},geometry:{type:"Polygon",coordinates:["@@óɛƩ@ρ@óœôȀɚŎƨ@ö@@ōƨ@"],encodeOffsets:[[117361,22950]]}},{type:"Feature",id:"ao_men",properties:{name:"澳门",cp:[113.5547,22.1484],childNum:1},geometry:{type:"Polygon",coordinates:["@@X¯aWĀ„@l"],encodeOffsets:[[116325,22697]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/chong_qing_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"500242",properties:{name:"酉阳土家族苗族自治县",cp:[108.8196,28.8666],childNum:1},geometry:{type:"Polygon",coordinates:["@@XJ°œlJX@lbl@XbV@VLnJlxnbšƒUU@IVK@lVIVwnJlU@n@J@L@Jn@l_nWVLVln@@blLšmV@@xœÔ‚`nœ™xV‚ÈLlx„LVxVVšƒV_U»VWn_m¥XwVmnX°ƒlmUUVwÞaVƒk@a@mmIUa@™mwk@™ƒm@@U¯a@UV@@K™@ykkmwkV@kU@ƒÑƒVkKWLÅamaUm@kyU@WkU@Ua™IUašVaUUmUUa@aVLXKWa¯UUbmJXnWnX`l@@xkzWÆ@V„LU¦‚x@b@JkIkJ@LmbUamJwm@óxƒnk@V„@x„ŽVnUVmVUVŽUbVlUbkXWŽ"],encodeOffsets:[[110914,29695]]}},{type:"Feature",id:"500236",properties:{name:"奉节县",cp:[109.3909,30.9265],childNum:1},geometry:{type:"Polygon",coordinates:["@@WVXb‚UnK@x@b‚²kxmKkl¯_ƒVV°™VU@bnKVVV@@nkŽ@n›bn‚@š°@VLČUš@°WV@V™nU@InKVl@nU„b˜KnX„WlknLlKUwnalLša„VlUXmWk@UU@UWWIUyķ¹XaWW@X™ƒKUIVm„U@W@UVU@KV@n»VkUkÇmUmVIUmULUbm@ƒwUaƒKkkm¯ÑUL@bWVnx@VmxUI@„klmkkK@aƒK@IlJ@I¯ƒk@mak@mnkJVL@bV@Ub„„W`UUUV™I@VƒU@VVbUJVLUVVbUX„VVxk¦VJUnVxnVVUšJV@Ubl@@bXV@L"],encodeOffsets:[[111781,31658]]}},{type:"Feature",id:"500238",properties:{name:"巫溪县",cp:[109.3359,31.4813],childNum:1},geometry:{type:"Polygon",coordinates:["@@nLWbX‚VLVU„V@KšIVl@b„@lbšU„VnU@JÆU@V@n°KĢUl@VbÞKšVš@„_„V‚KXU‚U@KXƒ@wlkkU@mWKUU@UôJ@XV@œaVmÞIVaVLƒƒ@»kmƒ@ƒUkL™U@aU@WWƒLUUU™™KkbƒwWa@KU@kaƒXmW—LƒamVk@UmL@JmVUšU@¯X™@ċVUK¯@ÅnWK™LkKULWK@UXK@wW@™LkV@bVLƒlXn›`¯xU„°LnŽlV@n°Lnl"],encodeOffsets:[[111488,32361]]}},{type:"Feature",id:"500234",properties:{name:"开县",cp:[108.4131,31.2561],childNum:1},geometry:{type:"Polygon",coordinates:["@@n@na‚I„wš@@VVK„LVbVxnVÆUnanKWXamKmk¯K@mkUm¯KVƒ°w@Wm@UIUUlKUU@a¯KWanwmUXamKkUWUnU@KƒkUwWKXaWLUWkImaUUUƒƒKka±k@lƒ¯w™wmbUƒ™ƒkXm@UJkIW‚XXƒbƒmƒ„UJ™XUV@°šKlšlVXV@xmbnV@blV@VšœU`UL@V™a@bULlb°VXbܚ@V@bƒL@J„xnLVb@lVb@V@@z˜bXWšX„KVLV‚š@@bUVVL@b„„lVna@ll@„zl@@J"],encodeOffsets:[[111150,32434]]}},{type:"Feature",id:"500243",properties:{name:"彭水苗族土家族自治县",cp:[108.2043,29.3994],childNum:1},geometry:{type:"Polygon",coordinates:["@@„Jlb@nVV@bXb@ÆlL„Ul`nVKU¼VxkbW„nlUxlXX‚@°°WnnJ@VUn@J„k°L@VlV@nUJ„x@bVVVz@VnLla„KnalVlIUŽ„¼@nV@@anKUwVal@UlJœƒlI@akU@UWXKVI‚¯Uak@@KmkXWÜkXWykIWwXw@laXamkVUUym_XmlkkmmakwmIUKU@Wak@kaW@kI¯›WIk¦VŽƒUUƒmaUV@XkVUV±aUb¯b¯¥m@@ImJ—@mƒmL@kUKUkkJƒbV¦"],encodeOffsets:[[110408,29729]]}},{type:"Feature",id:"500235",properties:{name:"云阳县",cp:[108.8306,31.0089],childNum:1},geometry:{type:"Polygon",coordinates:["@@lb„LV„VVnblJVXXKWbXLVx„l@LmVXVVl‚nLWbnVmxXb°L@bVVkLVVVJn@@X‚‚œ_Wm„kUK@alUšKX@@xWL@VXLVKlLšKXLÆm@™mœa@ml@mU@UUmL@aVšUU¯„U°`lknLlw±@a@wmLVWaXU@KWU@ak@VaU@™IUVmUUwVmUIl¥UwƒUVWUaVUUKVIUa@UUUUJƒUUm™kƒ„nl@„@VWV@L¯aUb™Ulxƒ@@b@VULUx@VUxVV™U@bU@mxU„U@mUVŽklkkƒ@WxknlxK@amLƒKU„K"],encodeOffsets:[[111016,31742]]}},{type:"Feature",id:"500101",properties:{name:"万州区",cp:[108.3911,30.6958],childNum:1},geometry:{type:"Polygon",coordinates:["@@ĸĊVI„ƒ„n„aWWXlJVIn@lWš„V„našx°xk„l@²Ž‚LVƒ„LnK@b‚LkwlmXw„@lllkUnVV@VƒnwV@@ašVUUVw@UVwVK@U@a„@kwšVVa°b@KXU@U@ƒmk„ƒÇсaml™kUVmn@VULU˜m@kUVkUaƒwUWm@Uw¯„mKUUmVUUULUKU„W@XbWVkaWwkUU™ƒ™k@maUbmbVlk¦ƒxUVUIWVU„kJVVkL@UmJ™UUVU@lLUVU„lx„@@VbƒJ™U™L¯¤@Vƒ„"],encodeOffsets:[[110464,31551]]}},{type:"Feature",id:"500229",properties:{name:"城口县",cp:[108.7756,31.9098],childNum:1},geometry:{type:"Polygon",coordinates:["@@VK@w¯L@m@UÅV@ImVƒU™Vkaƒ@@aUk™J@LƒUUVUKmLmbÅVmUUwUaƒKUL@U™@ƒxJmbm@nVJ@X@VkV‚n™lƒLXx™@ƒb@bUVƒLU`UnƒbU@@ŽmVVX@JX@VLVVšklV—„‚`@bUL@V„LVKn@‚U@„UJkn@lmLmK@X@Jn@mb„nÞWVXnJ‚k„KČÑÆ@VK@knaÜmXlUČW°kôÇƁ@a@yÞ_VmƒUnU@K"],encodeOffsets:[[111893,32513]]}},{type:"Feature",id:"500116",properties:{name:"江津区",cp:[106.2158,28.9874],childNum:1},geometry:{type:"Polygon",coordinates:["@@„InWUUlU@LVašlX@°²lÒXxlK@Ul@@Un@UaVJ@I@W@UƒUUVUwVIUKUa‚UUVwn@Üx@XUlnn‚bœJ@¥VklKUUlk@ynU@kVƒUUVWnI@¥V£VWVIUKU@UVƒa@n@Vm@@nlUaVkUwƒJ@blLkLW@XWmXkmmLn™@m@U@UVm@™„UVUUlakUVa„ƒVkV@@wnaWUk@VwkƒlmVIkUUxmJ@U„™@KƒIkx±V@IUm@K@IUKkbWKUbn„m„@bmVnbmb@xkxUJ@ULW`@bX@WVXL@Vƒš¯„mk¯@UJ@VmLUaWnX@WJ@nkKkxW@UIV@@KkImmkK@UW@XaWIU@U‚ƒIkbWb„xXŽlLVbnV@bWlX@VxVLnl@nÆÞVÜ"],encodeOffsets:[[108585,30032]]}},{type:"Feature",id:"500240",properties:{name:"石柱土家族自治县",cp:[108.2813,30.1025],childNum:1},geometry:{type:"Polygon",coordinates:["@@„š@kl@š¼UbmVXJ@bV@nxVIVJULVVk@@LWbnJVU@bVbUJ@blLXnWV—@mbnV‚@V„„bn@VJVLnaVanbl@„šVšlVXxlbXUWaX@VƒUUVwUUVm@I@WmI@a„mlLœ™lK@alwnUV@kóVaƒÝk@UlbVK@™VU»VUUVWUƒ@U`ULkwm@@KmU@knKƒ»VkJkUmbƒLkbmK@UUyUU@aƒwm@@XXJ@VVLVVUbVnUJVX@K„„k`WXXJWXUbmW@bkL™Um`Xnƒb@JVL@LU@™°VVXKVnUxVLUbmJ"],encodeOffsets:[[110588,30769]]}},{type:"Feature",id:"500237",properties:{name:"巫山县",cp:[109.8853,31.1188],childNum:1},geometry:{type:"Polygon",coordinates:["@@kVƒU™bkKmbVxkLmKkllbV@@LXb„xlašLVšVV„KXXV@@bšVlK„V„@ln@¼°KXa„U@Ulw°JXalIUa„ÝWXW@kVU@ƒVUVWUUUamUw@aVamwn@VUUƒlLXWm£@wÇĉkKklmLUÒ¯ƒWn™@ğ±kwmaWm¼U@@LUV@V@XƒVUnVJ„LWš@‚XXWbĸºVzXJVXV@@VXlWn"],encodeOffsets:[[112399,31917]]}},{type:"Feature",id:"500102",properties:{name:"涪陵区",cp:[107.3364,29.6796],childNum:1},geometry:{type:"Polygon",coordinates:["@@nèVblĖVVnLšŽ„@šx‚V„n@nšJ@L„UVVX@lbUJV@@nn@VVVK@z„˜V@nzVJVUlmX@@_VVVbnaVal@@knW@wnaƒVK@aVI„J@£kUVW@‚wXUVJ„amƒ@Ikƒƒƒƒ_X¥ƒ@WwkKkwmŽ™šƒkUxƒnÅmm¥™WV@Um@UlVL@JU@@Xƒ@UVkKVk™KVk™Kkb@bmJVXU„VVUbU@@`W_UV¯b"],encodeOffsets:[[109508,30207]]}},{type:"Feature",id:"500230",properties:{name:"丰都县",cp:[107.8418,29.9048],childNum:1},geometry:{type:"Polygon",coordinates:["@@Þè@XUK@LlV@blbUJ@„„V@bnV‚@VVVXU@ƒlbXal@VXnKV@maXUރ@amk@aVKXV‚anbš£°mnIVaUKVwUmWLUUš¯V@@KUK@I„aWmn_šVlK@anXVaXWWIXWl_ƒƒ@LUWVIUmVaUUUK@UWI@Wn@VI@mkU@U¯Kƒl@ImVÅLƒwU¤óbUU@wWXkmm@LU@@VUIWVUL@JUnƒaƒx@Jn„ƒbUIWVx@ŽUXlV@¤ƒIUJ@bUL„Žmb@xmX@lk@UbmbUaUU@`W@kn"],encodeOffsets:[[110048,30713]]}},{type:"Feature",id:"500232",properties:{name:"武隆县",cp:[107.655,29.35],childNum:1},geometry:{type:"Polygon",coordinates:["@@l„„w„bVm@IVKXUVJ@UV@@KnnWlX@xVVôaV£„xÆKnUVm@UmIXm¯¯@WkWVwmkXƒlaUwV»ULmk_ƒVkK@ÅWa@aUU@mkaƒIƒb@‚n¼ƒnm‚_@mmK@UƒLUVVmI@aUJ@XWJ@U`UIkm±kk@@lULmUmKUnVšnlUVmI@VkVlx™bkIƒVmLUxkKUŽ‚Xš‚n¦Æn„mVw„lš™nlxlLXx„@W¦„`„„"],encodeOffsets:[[110262,30291]]}},{type:"Feature",id:"500119",properties:{name:"南川区",cp:[107.1716,29.1302],childNum:1},geometry:{type:"Polygon",coordinates:["@@VšUbVJVUn@VLX@WVXVVI@VUVWxU@mš@ĊX@@¼V°aVUX`@_V@VaUUVƒUWnI@alašLUlšLUllLVU„@@WV@@IUKVkn@@VlLVwnK„UlJšakwlU@UnJVUmkU™VmXa@wVK@UUw™@VƒVI@akƒ@alInwlKXUmaUW@wWLk™™KVak_ÇaUƒƒV@šXbƒLVxUlWIk@UK@V™@ƒkU@VbUVUlVnƒLUV@lVXmxkV@L@V@Vk@WbUwmL@JUI@xVxkx"],encodeOffsets:[[109463,29830]]}},{type:"Feature",id:"500241",properties:{name:"秀山土家族苗族自治县",cp:[109.0173,28.5205],childNum:1},geometry:{type:"Polygon",coordinates:["@@XlV@lzn@VŽnbÆbXKlL„U„ÒV@@llUnxll@zšŽ@LU@@V°b@Vn@š„l@VÑUƒnK@UšU@aUaƒkVm@K¯wƒklmnn„Ul`nI@almkIUwmWVkUaƒkkJmUUa@K@aU@@_m@@wUyVUUa@Umƒ@awl@Wka±„UkUykIWV™b@bUVk@›aU@UXU‚UIWakUWmUxUV@nUVWbšŽ@XXVVŽmXXŽ@VƒbVLkVWx"],encodeOffsets:[[111330,29183]]}},{type:"Feature",id:"500114",properties:{name:"黔江区",cp:[108.7207,29.4708],childNum:1},geometry:{type:"Polygon",coordinates:["@@VX@V@LV@VJUL@lVnnxlb@VXV‚XV@@W„@UIVK@kUKna@£VWUaVUUalIVJVIUW„_lm@bXKV@mn@J„UUw@KnIVll@VanLVmUkVKXLVKUIVamw@UaU_lw„KlwUWV_Ua@aUa@KUšwm›_›Ó@wU@™nkK@am@UkUKmXk`m@@I@K@I@mkVmIUxUJ@kUL@JVV™„lnklWnn`VzUVnlWbkb@WxXxlJXzWŽÛlWXnl@Ll@Vb°UJWLX@VlV@bkJ"],encodeOffsets:[[111106,30420]]}},{type:"Feature",id:"500117",properties:{name:"合川区",cp:[106.3257,30.108],childNum:1},geometry:{type:"Polygon",coordinates:["@@XKVXlK„ƒVL@UnV@aValXXK„U@WVwUaVU@IV@@aVW„L@U@anVV@@bVK@UVL@bnJWL@VnUnb˜@@JnIlVl‚@@bXIWbn@UKVLVKXLlaV@VVnK@bVL„m„IVƒ@KmknUUWVI@aVJ@_„WU_VmUwƒU@K™ƒVak@am¯mJU_UJUkU@WkIV`UI@JV@LmmU@@mƒbUzś™@„VK@nUKƒ„ƒb™akb@UWK@bkVVbV„Û@@`ƒXk@WŽ@n@lXL@bmb@VVJUn@JnUlnUlmX@`XLlbkJW@kzlb@`@b@b"],encodeOffsets:[[108529,31101]]}},{type:"Feature",id:"500222",properties:{name:"綦江县",cp:[106.6553,28.8171],childNum:1},geometry:{type:"Polygon",coordinates:["@@@¦‚@X„lVX@@UVKl„VUX@lanVlUVbXWVXVƒ„VVUnKVUlwUwU@UJ@nmVkUV™lwXam@VaUUUw@W@kk»mV@UmKkwVKVUU@@LUKVI@mV@XVWxnXVKUUUK@wWU@UUWnUlLXa‚mUI„am@wI@K@amIm‚UUkI@m‚akUkKWUUanƒ@wƒamLVxk@UVmUUL@Vm@kV@I@ak@@bWVXJlLVbVL@š@bn@@`Un„@WbUKULWVXbƒ@UVmbX„WVƒb@bVmxUKUƒV@šUn@V@V@nmšnKlnnWWXX@lKkK@a„IVxUlVb‚k@mn@@U@m„bVUV@VLUJUXU¤"],encodeOffsets:[[109137,29779]]}},{type:"Feature",id:"500233",properties:{name:"忠县",cp:[107.8967,30.3223],childNum:1},geometry:{type:"Polygon",coordinates:["@@VLÞĊ„U@Wš@¼V‚„@lk@w²mlšVUœ„llšVnI@VlKUUlIVƒXUVJVU„wl¥UkUKUIm@ƒaUƒ@mUna˜@XUWmkK@aVIUa@aUVmIXa@Kl@UUVKUIUJmwU@@aWInUVa™»k@@lƒ™¯n™¤mabWUUL@bnl@b݄WVnbU@mLUWk@Wbka@„WVUU@UmUmVkUULV„lVUx„l@L@VƒbÈÒlb"],encodeOffsets:[[110239,31146]]}},{type:"Feature",id:"500228",properties:{name:"梁平县",cp:[107.7429,30.6519],childNum:1},geometry:{type:"Polygon",coordinates:["@@XLV@VV@b°°nšƒnkb@bƒšnJWVXblIUVšxWnUJnVVLVU„JlUnLVK@UnUVJš²nKVbVKla@aXlJ„k„Klb„ƒ@U°£šKšV„IUa@ƒ@kwVƒVUkKV@VUkk›ƒUVk™±n@xklƒ@U@»™‚@XƒVÝĉUJnxWb@UX›KkVUbUKWUkVmkkLU`›b"],encodeOffsets:[[109980,31247]]}},{type:"Feature",id:"500113",properties:{name:"巴南区",cp:[106.7322,29.4214],childNum:1},geometry:{type:"Polygon",coordinates:["@@nxnVlJlUXLƒ¦@x@Vl@nKVVX@V_V@@KlVXU„@lKlxXIl@ÈĊ@Vl@n_VJlŽnVlnb„²VVVJVVmUUkĕUamçU@»W@@ĉn™V@XwVU@UUJWUXUW@UKm@UVUIVaU™UVmLUVƒUU„UWWXUakVmUkbW@UVkƒUL@VW@kUWƒ@mJUXVVU„@lmV@zklVVkLUl@¦›I"],encodeOffsets:[[108990,30061]]}},{type:"Feature",id:"500223",properties:{name:"潼南县",cp:[105.7764,30.1135],childNum:1},geometry:{type:"Polygon",coordinates:["@@@a@a@_kalyX@lIkaWK@_nWVkkmmV@IVmUI@Una@aWK@k@mkbWaknmJUk@mk@@kUal@Uaš@Wa@aXLlwUKlkkƒ@KmI@VUJ@Lk@@VUUmL@amJU£kKUaWakLmU@bVVUbnbWV@xkL@bUb‚xUxVbXJVbUVWIUVU@kLWxkKWV@n¯VUbU@@VVX@VmaUL@VUK@VVbn@lVnI‚@@lnLULm@Ub@Žl@na„@lK@XVVkJ@b@zl@@VnV@bVb@J@bnXV`lXXmVI@W@InbV@@aVKUblKVLUanLlmnLlK"],encodeOffsets:[[108529,31101]]}},{type:"Feature",id:"500118",properties:{name:"永川区",cp:[105.8643,29.2566],childNum:1},geometry:{type:"Polygon",coordinates:["@@@b܄nWVLX„lxV„VxXxlVn@@bVblK@a@UnLVJV@@UnLVU@VXaVKVXš@n`WUÿ@IUKlaUUUkWyUÛÅÝ@mmkUKUwW@Xk@amUUakKWƒwXaƒK@VVLklƒXVlkxV„UL@bm@Vxn`ƒIVxUVkLVšUšl@@lkXmmƒVUn@VV@Xb"],encodeOffsets:[[108192,30038]]}},{type:"Feature",id:"500231",properties:{name:"垫江县",cp:[107.4573,30.2454],childNum:1},geometry:{type:"Polygon",coordinates:["@@šĊ°¤nҘ¼œaV_lKnllUXVVLValUœLVW‚@XamwVIUKkaÇфa@U@KƒkVwkUUƒVKlVnU@aƒU@ƒVIka@akU@KVL@WÝçUV@Vmbů@L™KƒnnJW„ƒVkxlL@VX@VxmnXVWxUb@bkn"],encodeOffsets:[[109812,30961]]}},{type:"Feature",id:"500112",properties:{name:"渝北区",cp:[106.7212,29.8499],childNum:1},geometry:{type:"Polygon",coordinates:["@@@bVVXL‚a@lnbWn@L„@XVlK@VVLUVlbkLUKVVVL@VšnX‚VL@VV@UbVb@x@¦UxVb@bUJƒL@L„VVxlK@™nk@U@W„UVLlKXV„@VblU@UUKVU@wn@VJVanLlkX@VaVK™¯@a@U@U@ƒVaUK„kUUƒ±maUkm@UUkbm@@Vk@@JƒwU@Ub@I@JmwUL@aƒ@@KkVÇLkƒWkƒ@kUU@@xUVmKUnllUb"],encodeOffsets:[[109013,30381]]}},{type:"Feature",id:"500115",properties:{name:"长寿区",cp:[107.1606,29.9762],childNum:1},geometry:{type:"Polygon",coordinates:["@@VVšU„bX‚lX„¥l@XnVmlxUx„@@blVnnôĀlm@aVaXwWUnmUwW@@UkKlw„UXƒmI„mšL@KÆ°na@UUImyU@ƒ—@yULUUm@@mU@VIkaW@UUƒV@K™I@mƒmU™wƒ@™mKUnU‚UIƒlVLUb@„@V@V@bš°ULUbW@klmKUbUIm@@xUVVL"],encodeOffsets:[[109429,30747]]}},{type:"Feature",id:"500225",properties:{name:"大足县",cp:[105.7544,29.6136],childNum:1},geometry:{type:"Polygon",coordinates:["@@XUmaVaUU@anVlKXbValU@aV@@IXKš@@bV@VxVK@UXLlUšJXa@_‚@@aVK—ÅWVkwWaƒƒwUa@am@kUWLU@kWmX@ykI@W@UV@na@LlLV@UƒkwWƒUKmXX`mIVl@bXLWVkbkkƒx@`VXm@@J@U@UUKUxk@WbUIVl@VXLW„ƒJUkUlUImxXlmb@X@VUJUnVbšW@UV@@VVX@bnW@LVxUnlJUV@n„@VxVIn@l`„UVVVL"],encodeOffsets:[[108270,30578]]}},{type:"Feature",id:"500224",properties:{name:"铜梁县",cp:[106.0291,29.8059],childNum:1},geometry:{type:"Polygon",coordinates:["@@VblLV¤nI@bnKVV@Ul@@KVI@UnJ@Ll„klVLkxWK@bXb™@Vbk@Vb@ll@@nVlnIlmXblaXl@„W@_Ü@UƒUalU@aXL@Vlašb„a„ƒVL@mUL@ƒUUƒƒÇXUW›X_WaƒƒUƒ»m_™@UWULWb@UUVmK@VU@UImK@V@bkL„x‚„XblxXU˜ÆUL@b@@`Wb™IkVWK@VULUwU@@a™@WL@JU@@bkVUb"],encodeOffsets:[[108316,30527]]}},{type:"Feature",id:"500226",properties:{name:"荣昌县",cp:[105.5127,29.4708],childNum:1},geometry:{type:"Polygon",coordinates:["@@VI@U@WnaWknwVJVkVl„IXƒWK@UUkVJXal@VwVL@V@V@In@UW@_„wlllaXUWK@aUknJW_ۃ@aWaU@@UVm„UUaUImJVnÅUmVUm`kUUVWLnVU@VVmXƒK@„nxmŽULkx™ImJ@nU`@X@Vkn@`@nlV@nVJVaX„VLnK@bVV@nV@lbXWš@"],encodeOffsets:[[108012,30392]]}},{type:"Feature",id:"500227",properties:{name:"璧山县",cp:[106.2048,29.5807],childNum:1},geometry:{type:"Polygon",coordinates:["@@XzVlVVkbVL@JVĀXŽ‚¼V„„„XbW`XœWVȎ„„VVšŽVkV@@UXa@alK@IƒƒU@UKWUyUI@wVUUWVak@VUkƒW¹@WXI@yVIUK@kWwkѯ±W@™kUb@KkVVVmXƒJ"],encodeOffsets:[[108585,30032]]}},{type:"Feature",id:"500109",properties:{name:"北碚区",cp:[106.5674,29.8883],childNum:1},geometry:{type:"Polygon",coordinates:["@@X‚VLV@„„@JkL@bWb@VU@UlƜVy„a@nV@nn@KU@IVJU_lJXV@VlVIV`nIn°@b‚lUbš„„KVI@aUaVw@¥@wUaVaU@@UUKW™m@UUKUUVLlKkaVUUK@UkLWUƒ@@KXmma@kbWKUU@aUamLnÞ@VWLk@@Wm@ULU@@U™KUVWI"],encodeOffsets:[[108855,30449]]}},{type:"Feature",id:"500110",properties:{name:"万盛区",cp:[106.908,28.9325],childNum:1},geometry:{type:"Polygon",coordinates:["@@VIV@@wVJ@InKVxXal@@U@U@KlUnwUW@kVU„KUmVkUa@I@KW@@bk@@mƒU@m@k@a@aƒIUxmJk@ƒwULƒwkKmVVX@VXV@xVLVVULmWXwWUU@@nUJVL@KV@UVULlxnL@VnUl¼@l@XVxVVUbn@WbkxUšlVnU@m"],encodeOffsets:[[109452,29779]]}},{type:"Feature",id:"500107",properties:{name:"九龙坡区",cp:[106.3586,29.4049],childNum:1},geometry:{type:"Polygon",coordinates:["@@XK‚L@Vš@XbV@lW@UV@@VXIV@U™VKlL@KnnJ@VV@VU@I„@@mVUVWUUmL@V¯LUK@UV@UU@a@U@yU@WLUK@X@KUVmL@ƒ@aXI@w@ammVk@WÛwm@UxVVVbVLUJVxVU„V@V@X@JUIVbm@@Vk@@VkL@lVLUJ@zWJ@X"],encodeOffsets:[[108799,30241]]}},{type:"Feature",id:"500106",properties:{name:"沙坪坝区",cp:[106.3696,29.6191],childNum:1},geometry:{type:"Polygon",coordinates:["@@Xºl„UVl@UbVXUV@xVJVzXJVUšL@VV@VKn@@Xl@XK@UmÝnKVbVakkVm@k„ƒUK@UmIm@LkKULVšU@WJ@UU@@VkXU@Wa™@@UKWL"],encodeOffsets:[[108799,30241]]}},{type:"Feature",id:"500108",properties:{name:"南岸区",cp:[106.6663,29.5367],childNum:1},geometry:{type:"Polygon",coordinates:["@@VV„JVL@bUVVnl`XIlwXJlw°nnl‚IXW@UÇĉk@WJkwkLƒ@WVkU@LU@U`W@UXUV@n"],encodeOffsets:[[109092,30241]]}},{type:"Feature",id:"500105",properties:{name:"江北区",cp:[106.8311,29.6191],childNum:1},geometry:{type:"Polygon",coordinates:["@@nLVU@wV@lV„@Xll„ÈKlU@L„@@bVKnx@I@JVaV@„x@Il@@Un@laVVn@mkUIm`k@WXJmk¯mkxWIkxWJk_UmVUUKƒ@UU™@ƒ„@l"],encodeOffsets:[[109013,30319]]}},{type:"Feature",id:"500104",properties:{name:"大渡口区",cp:[106.4905,29.4214],childNum:1},geometry:{type:"Polygon",coordinates:["@@k@@U@w„¥WKkVkImUmwa@b@xWJ@b@„nKVU@L@WVLXKV@@z@V@bVVU@@VVL°K@U"],encodeOffsets:[[109080,30190]]}},{type:"Feature",id:"500111",properties:{name:"双桥区",cp:[105.7874,29.4928],childNum:1},geometry:{type:"Polygon",coordinates:["@@WwUwU@kK@KmbU@@V@XlJ@znWlXV@XK"],encodeOffsets:[[108372,30235]]}},{type:"Feature",id:"500103",properties:{name:"渝中区",cp:[106.5344,29.5477],childNum:1},geometry:{type:"Polygon",coordinates:["@@VLš@VV„@VL@aUKƒIUUƒ@@JUVU@"],encodeOffsets:[[109036,30257]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/fu_jian_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3507",properties:{name:"南平市",cp:[118.136,27.2845],childNum:10},geometry:{type:"Polygon",coordinates:["@@@knyƒk@ƒKU¥šwV@nkƒWƒzUmk@@lKUa@aVI@UƒKUamKUUVaUI‚@Xƒ@UV@K±IUVVlUbUbUL@KWUXmWk@KkXmmkŃKUƒ™a@amUƒbkUkKWUnwUƒÇwV™UUƒÝUKV£U™@ƒnKWwXLVKm¥@wUXkmWk@ƒ@wX@lU„@šyVImaXwVƒƒ@kŽƒnU@mbk@mlUXƒmU@mV@n@bnW@bUIWJ—ImVUKWbUK@nkKƒaU@W_VUUmWmL@UU@™bUWUL@V@bmVUz@`mUUVVbXL@V™L@lmLUxmVamXkW@xWbU„VbUxkU±@ÅUmmkLUbW@@`kLknVlV@lbXxlVUXVV™ŽU„U@UbWŽkIWVUUUJkI@llbUxVL@V™VƒUU°ULUmWXUV@VULWb@™xm@UaVLVKUa@ƒw@V›bkmVambUUm@@VkK@„@b„xlxX@‚„n¤@Xƒ@@lkLWV@Žn„V„kb@bWJXLWx@nkxmm™bXn@VWVUn@VnJ@bVXl@„™VJXnWbX`lL„UlJVI@Žœ@VXV@Vl@bn@@Æmn@VšxXU@mVIlxšVššnI„l@nVJ‚aXI@mlU@aXkVm°klmnVV_naš°@V@xܦXK„V‚nnUlVXbVK‚LXKV@naV@@VVl@@lXblXšWnLlbVK²nš@@‚VLUnlV@lƒXxô°‚V@UnaUUlKXLVUVVUbVVlUnJVX„@VW@an@lb„@nl@VU@anƒšUVW@kƒaUm@InVVKVU@kUW@Uam@km@kVa@a@™nwšU@WlI@mVI@WXaW_nƒ@™nƒlkkW@U‚¥@kV@Uw@wUƒ@@IXK‚¥VIn@nU@`@Xl@VV„LnašW‚bVaUwnU„@VIšKlV"],encodeOffsets:[[122119,28086]]}},{type:"Feature",id:"3504",properties:{name:"三明市",cp:[117.5317,26.3013],childNum:11},geometry:{type:"Polygon",coordinates:["@@lL@Un@VVna‚bnUlœa@U‚x@„VbULUKVbn@šw‚@XaVK@UVUXWVnVKV¯„VšU@UUKVwka@klJVIVVXUlJXVaV@VƒšUUVWkUWwkaU@UklmlK@_X@ValKnnÆV²@lVVwUaVƒXa@wlXnW‚bnUVwnK@kšK@UWKUaVUnV@_VynU@a@UVKVXšaV@@VnKnXVV‚UX`V@„blL@mVLXaVLnU˜JXIVJ@amX@a@mnUV@„nVWnkl@naV@„ml„@@KmKUam@UU@ƒ@UlKU™Vk™U™K@aVaUwV™U¥UIkJ@wmI@‚mbkwkVW@UXƒKULU`™IVKUa@LƒkkVmUU@WlULUWÅU@I@ƒWW™nU@@w@a@ƒUam_XyVIVWkkƒ@mwVKXUV@nw˜VXkWƒÅ™U@ƒaƒU¯KUnƒK@ƒ¯šmUƒLXŽVLnWVbVbUVm@Ub¯¼W@amƒ`kb™amLUUUƒ™aUXV`@x@XmJ@n@L@xkJUU@kU@mWm@kUUwUUVWl@VUkIƒy@kkaVUUm™IWVXbWxU@k„mVkK@nWVX¦WxU@@bkx@VU@WŽk@™kUbmJUUmkUW@_kKWKƒ@knV¤kIUKWLUbV‚@Wbk@@VWL@VkI@lUXVxUVU@@mWIƒV@a¯nUaƒaUV@„ƒJ™b@bÞ°VbUš@X™aUVmL@‚VXblŽnV„°˜n@Vnx„@VUUUlK@InJVb@„Vlnn@V™L@VWJU„x@XlJUVVVl@LUUUJ@Lƒ„@lUL°¦k˜V„VnV@„xV„„l@blLnlšLVaXll@šnVUn@‚xn@nml°‚X@lb"],
-encodeOffsets:[[119858,27754]]}},{type:"Feature",id:"3508",properties:{name:"龙岩市",cp:[116.8066,25.2026],childNum:7},geometry:{type:"Polygon",coordinates:["@@ša„I@ƒVU„bVb°m@b„UXJ@nV@VUUwVW@klJ@UXK@Ul@Xa‚@UVaXKVLlJU£lm„@XLlL@`VXnlVVnIVašll@XV@@Ulw@aV@XwW¥XU@mlLnUlƒV@XwWaXUšJVnUVlb@l„zlJUVk@UXVVVxlVn@nXV@@lVVlI@w@K@mnI@W@wU_VWšbV„VVnKšbla„_n‚bX@°»Van@VUUaUamXUKW„K@a@Ukƒ@wWkXƒWW@wUU™Kw@_lyƒwUkU@@Uƒ@kamVmƒXašUVUka@Wk@»UUUVƒKkbWU™VUbk@mkƒxkƒƒKnIVUmW@kUKmXUmVaU@kU@m@KUWVkIWJ@ŽU@UI@wUUUa@KW»nU@mVkUmm@XwWU@ƒUUmL@ƒw@mnƒVUU@aWak@@amxU@UxULWVXbVLU`mbUImVU„ƒbn‚V@@bVn@bnVWxLmyUbƒIUKƒ@aƒVm™akbV‚UXW„UlKWbkV@„WLUlk@@nšbƒb@lkKmU@ƒUIWJkw¯UUVVxm@@XkbWx—›XKƒlUzWJkUUL@bmKkVƒ@@VUIUlWV@X„K@VkbWx°xUb@LUbk@@VWb@LXJ@VWXU@@bUVV„VVn@VVlLn„@l„@‚xk¦Vx@bVJXbƒn@JlnXxV@@„nJ@X@V@lmx„bUn@xVL@VVKlL@l„„nLVaVL@xkl@LƒxVl°š„X„WVX„Vl„œJWnxlJ"],encodeOffsets:[[119194,26657]]}},{type:"Feature",id:"3509",properties:{name:"宁德市",cp:[119.6521,26.9824],childNum:9},geometry:{type:"Polygon",coordinates:["@@@LVKVaVaUkVU²J@LVU„@@W‚VJUbVVnLVb„L@VUJ@bVbkL@Žl@Vn„y„XmlU@™xV¦„L@Ž„lmz@lnL@bVVšbVb@l„nšKVk„Vl¤@zXV@šl@XJVLVKnXVK‚VnU@wUm@šKUƒ@UlVlw@U@U@ƒUaUKlU@kXKlmXIWKXaVIVUVK@KU@@k„JVUnLVJUL@V‚IVa@VnLšKUnl`Vb„V„V@š‚Vbn@Vzn@lKnVlI„VVKUalkXJl@XXVWVLVUUmVU@Unm„£lK@Uk@WUXK@U@WVwVkšƒĠkĢÇ°aUÅUwmaţƒɱUÇa™w„±V¹XalKôx„@„UVaÜʓͿVóbÅLƒJm„¯Vk¦ƒŽk@mamXkKUƒUL›akbk@mV@LkJWb@Vk„mXk@UVmaUV@amLUKUamI@KUaU@WbU@UUUƒUIWJUkm@šƒw™Kk„VJm@kxǁVƒUK@mUVUkmlkkVm@amwƒLVWU@UbVLkšUbƒ@VƒmK@XaVWU_VJnwV@@kUmWakxƒ@kwWakIWxnbUJ™zƒ@kVW@@x@„XllnVW@xn¦ULWKXxmL@„VšU¤VL„ÞVVUšÈxV„mxXVlLlV„anV@bšbV„„LlÆnnlW@LXlWnXV"],encodeOffsets:[[121816,27816]]}},{type:"Feature",id:"3501",properties:{name:"福州市",cp:[119.4543,25.9222],childNum:9},geometry:{type:"Polygon",coordinates:["@@lxna@nJ@xlIVJV¦UšVxUb@bšLšVUlVškL@V@„VVn@Vb‚Ln‚@LU„lJXblx„@lwXbVn@lU@mxUIV`UXWb@‚nLU„„@Val™UKVaV@UX„Knx‚bn@lUkllnUVnV‚@VLU„È‚lwn@UIlƒšL„x‚™n@VlXIVJV„VVV@XaV@Vb@LnJVbVLnK@bVUnbVUl@nWlƒ@UXalI@KnUl@laœbVKV„lLnWnbl@„l¥°Unƒ„IÆKôa΀U„a@UUwÇWǓIUWUÅVkƨm@ƒ@£@KmLU¤ULˣJ™kUƒVǟUUķ@ĉVƒKUk@Ñ°wôǚç@īšé@Åţ¥mīÛkm¼Å@ƒVķVó°ō¦U°ƒn@bVJXVVL@bUŽƒakLmx@xmxXzW`XbWnXV@bWLÛ@™aƒ@ƒaXbWVkaÝwU@mlWKkLWWkLUKULW@kVmVUU݁UamV—¤›n@xUVUzkJV¦lJU„"],encodeOffsets:[[121253,26511]]}},{type:"Feature",id:"3506",properties:{name:"漳州市",cp:[117.5757,24.3732],childNum:10},geometry:{type:"Polygon",coordinates:["@@@bl@Xb@bVVUŽm„@n„x‚@nKVV@„XVWxn@VnUl@nmVX¼@LVbVV@xVJV@@XIlJXU‚V@Ln‚@lVV@UbVnnWVL@lnXUVmJ„Ll„„wnll@VašUXVla„LVUVV@¼Xl@lbUV™VWbn„nUlb„@@VV@„aVUšmlUašUny@kU@Wkk@WaUVk@@ammk@@U@UlU@aUa@wl@šmXLllnL‚U@anVnU@L@VVV@KlXnWVnVanUšw@w@wm›nÅ@wƒaUam@Uk„mUl@@a„a@U@¥škôK‚wȯ°w@ŻkwǕaK›ÑÛk@ĕōřċ£ĵƒUKW»kÅŻLU@Ulġw@¤Vz™VUbkKUbmLmlULU¼UxmbXl@bWVƒb@bUnV‚UšVbULU@@VkbVL@`U@WX@ŽXV@b°„@b¯š@¤@Xm@@b@`U„VVUL"],encodeOffsets:[[119712,24953]]}},{type:"Feature",id:"3505",properties:{name:"泉州市",cp:[118.3228,25.1147],childNum:9},geometry:{type:"Polygon",coordinates:["@@Vl„xkz@`‚xšLVV@xXXW„Xl@xl„@V@bnV°™@„„LVm°L„V„bV@ƚX„Wl—UmxU@WVULnx„@llUXUJWzn`Vb@„@b@xV@šmXX@„@JÆVVXVKXkV@nVlU„l@KVbULšJV_VK„LVWX@lUVƒkIU¥lIVyVU@wœm˜£nUVWU@aƒm@UmWw@UX@@am™VUn@@aUUlUVanaWUXWmUnkšK@VšUlVVUUwš@XLWWX™ma@knm‚bVb„VXbVL‚@XJlInlšL„w˜mXóšw@çV»ÇçŋaķƧóƅóKġ°nÅUķƑUÇW@—¯xÇ°öÆlV„n@llšaš@„Lšbƒ`™@™„VšXVƒVx@V@bULVJUk‚Ç@ƒ¼ƒXUKk@mmULkaWbk@ƒx@UkL@a@K@U@UmKmbU@kV@UmVUbUmmXkW@LUU@U@KmVmU@bVmKkkWK™nk@@xVb@bkV@V@Vl@nn@bl@VUXbl@XlV@@lmz™VVbkŽ™nUVƒb"],encodeOffsets:[[120398,25797]]}},{type:"Feature",id:"3503",properties:{name:"莆田市",cp:[119.0918,25.3455],childNum:2},geometry:{type:"Polygon",coordinates:["@@VbނVVnUlUX@VKVLlKXXlKXL‚‚nkV@ÞxlbXUWa„b„@šbÜ@XK@aWUXmWaX_Wynw@wnwlK„bV@aUKWUUI@a„mV¯Ŏ¥ô¯ĸU„UÆ@n»¯aƿé@ţ¯nĉĬÝK™óó@™ÑU¼@è™xWô—nƒx™KmkkJWI@UKWaƒUUaamn@lnbWšXXWK™@VxUVkU™V@U™LmlnVWXXVmbUbkVVV@bm@UVnš@bW@@VXx‚n@V„n@bV‚UX"],encodeOffsets:[[121388,26264]]}},{type:"Feature",id:"3502",properties:{name:"厦门市",cp:[118.1689,24.6478],childNum:1},geometry:{type:"Polygon",coordinates:["@@@VlUV@nanL@V@V@L@blK@V„wl@XalbVKnnl@VL„W„»È@lVUIVK@a@UUw„WUU™šƒš@„_™aƒK™@™bkkm@UƒkõŁxóL™l@¦@Vƒb@bk@VŽƒnVln@Vb„b@xmÆnœ@x@x™x"],encodeOffsets:[[120747,25465]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/gan_su_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6209",properties:{name:"酒泉市",cp:[96.2622,40.4517],childNum:8},geometry:{type:"Polygon",coordinates:["@@ÇnÅaĉ@ƒU¯¥›UŹ‚ƒ£™WUýUU±JkkUw‚yÞIČxĊĕĊ¯š¥ÆUkţ™UÅÓ±¼™IUx¯UƒÒƑ‚ݐŰƒKÝnğ°ÅU@Žƒ@Vn@þš¼¯šWnŎ°XLWlnVnbWnƒVXxmbƒa—bóUƒlǕUUa™IUmlU™ƒš¥™kƒ¥ĉwkkƒÝɛa@¯™™U¯°mVƒkVnKlƒōÑÇÑU@kl™UġŽkUŻnUW™@š¯ƒk»šmWV£UKnUƒmUw‚w@ƒUIVaX™šwm»Èmmwn¯ċ™¯LĉŽUƒJUalka±Va@U‚k@ƒÛф¯WmnUaɝ¤Ûmƒn¯m±x@wóxÛLġÒUx¯VƒÈ™JUbóz݃ÇKĉ¯ōlÝUŎWl¯nťbÝ@¯ǩLġmV@ƯĢkÆm™ĊkVťLɃmÝXó°@„ĢbVŽóVݦɱ@Ƨaġ„UV„ĠÇÈV¼UVţwmbJÇwˋa™XmǯKkkmŽƒbXšm¼V¼ǬŚ²¤ôŰÆƴô̐ŤǪnɆӨ¼ɆLÆłUĊšxŎƞȘǔˎǬǪnƨŮǬö°»šġ„„ÞÜÆĸÒĊ„ǀbƾèôÈ@¼¯þŤĸƧ°VĀ¯b@lÈĊ‚šʠń̐„ȘKǀŽֲॗţÿǕý@ʊǓƨóÆÑǖŃôw@΋ʈƆÅÈVVĊV„óĊÅ@ÞƒĬV@Þīš@°Ž„V@ĸĢƒ°XτƜĠ@ÈaÜ¥Őƅ‚™nğóĕVġUůƿŋ—ĕƒa±V—UťÇğÑ"],encodeOffsets:[[101892,40821]]}},{type:"Feature",id:"6207",properties:{name:"张掖市",cp:[99.7998,38.7433],childNum:9},geometry:{type:"Polygon",coordinates:["@@ÈÒŎÒk„mLUŽlŽU„¯nV°šš@°ɜb„ÞĠaÈ»ĸl‚š„LVUÈ@Ċ@ýUm„@@ÆVĠ¯Þm„LƯޏƒ„Ñ°VVwšJ²»ÆԚVlŤÅV™¦ĉ°ĉĖċwÝJzVxll²IVVVþšX„¤źœV°¦„VĊ@ÆbÈmǔLĸĠ¯Ģaô¯ĸmÆÛUƒlÇĸk°XyĊUǔV„ǩnmV»ƒa@ýnK°n@l¥@»ż„Ċ¤m皃@£ČU@mƒmVkÞUƐ±²¹°‚ĠwÅƑŃU¯™›V¯aÈŁšƒÇ»™ġn_°xŎKlxœklx„@Þw‚„„@Æm²b‚DzLlkšWXať¯ĊaœÑšK±w@wƒUÅçV±Uk™@@„¯š¯xƒU™±±UU°ōxVxÅÔō°ó¯UÝ¦óbÝþƒ@ĉÈóUV‚Ux„„@VŽUVÝwÅÈǎóVkk¯JǐkmmL@„™KÇx@bkš™@U°ķ²ó`ƒš™šmn¯°ƒUwlÅkUƒ`™¦ɛô™Žķz@ŽÅnÇ°U¼¯KmVk²ƒJƒ¼ƏÞķôš¤ULƒ@mnğ`™šÇnUxÇ@Ûÿ™U@ƒƒkŻŽ@x@móJkŃ¥VŹĉóÒĉlċ°ķ„Uƽ܃@›x"],encodeOffsets:[[99720,40090]]}},{type:"Feature",id:"6230",properties:{name:"甘南藏族自治州",cp:[102.9199,34.6893],childNum:9},geometry:{type:"Polygon",coordinates:["@@ލš™nKlnšwX¥WÝXk˜xÞUnƒ°aĊVnUUKlÞĶWXnĠ¥ô»„™@nmVL@¤°™Vz„JšanU@aÆwna@k›ƒU¯šyX_›aĉb™ƒ„wƒéXkWwÅaš¯V¥mƒ¯UƒƒI@ƒš@„mšb°aÈçšUš¥@»‚knwɜƇ°I°ÑÈmVU™¯Xa@w‚W@wšV¯Č¥l¯Uwnm@k˜aUaóKkk@™Ça™b@ŽÒWa¯IÇxÛam¼™VUƒxÒl‚@zÝÒ¯bÝaĉVĉwDŽW›zJ™mJn²mܯUƒ¯ĉ@ġ¤Åb@²nšmlƒ@@Ž„„U„ƒLVxšV™„U¼Ålma™b@ƒ°™l@WIUƒ¯@mƒ™@™™ó„™„@U›zţyƒXÇU™ÇVUUVLkbWakVWmUbkkƒKUÆ»nƒ°Knk@aƒUVmšnk»l¯Ģ›lw@_kKVU@ƒnaƒ@lUk@¯¥mV@kmbW™b¯Åõa@mkU@kƒÇŽkU@›`@™óó—bl¼Uxƒn„¼šlVȄx@blVkVVnƒ`XÈġÈ@ǃK£ÝJmUUnUĖmlU„mKUn™VÅaUw›Uĉ`¯n¯wW¼nxVŽ™š@bĉnƒ‚kIċŘkXUŽ±Ò™xšÈ@ŽX°`l„œV˜IȯĊV„ƒšVVan@VašUVażVmšblkÈW„ƒWIXa„alL@wVb„„V„¦lL@lĠ™n҄U‚nk‚šL@ÆÞkšÞšK‚bñþW¦Û„ċVƒ„ULUºkÈlŎUxÆxÞUUxšÒ‚x„@XbšL@lÆ@„ÒlXVln@„bm¼ƒJ@„Ån„šƒx@bnšĠm„xVXmbÈè@ŽĊ£ČW˜w"],encodeOffsets:[[105210,36349]]}},{type:"Feature",id:"6206",properties:{name:"武威市",cp:[103.0188,38.1061],childNum:4},geometry:{type:"Polygon",coordinates:["@@±¯¥@klwU»ƒƒÞÝmwKm¯™™ç@™kVÇUL¯lVUKġ„ġm@a@U„@X£°l°LŎÇ@aōVÝw™ÔƒKUŽÅš„WJ¯lm@ÛVWa™@klĉUmaƒLUanaƒ™ƒk¯J„™™±KkXóÜÅxƒ²Ç‚@„„nUÒĊb°@™ÆkL™Ž™XÇÆ@xÝn—xWxţ„¯¤ƒI@Æn„ƒVV„VlU²Æè„V@x²x™L›ÒĉbŦ°Wb™Xklބš@l¤šXĊ`„wl@ĢÈŎm@bšnV‚Ubƒ„@șÆÛLƒèǚUÒŦlĸ™`°ĮʟÆǓbĉôϚĊƚĢnŤé΀ÑĸĀĊ¦„@@l°lœ¦Ȯ¦ɆÞĊKŤ™ĵĸů„»mŁyġ™ķŭ@Çɱȭ¯mƧUĊķnŁŻ»UaU™˜ƛɞÝƨů"],encodeOffsets:[[106336,38543]]}},{type:"Feature",id:"6212",properties:{name:"陇南市",cp:[105.304,33.5632],childNum:9},geometry:{type:"Polygon",coordinates:["@@šÈÞ@l`UmVƒ¼œŽ‚@nnÆwVlnVVa„LVƒÈ_‚ÿރ@n„a„xÆ@„lš_š@VxnK@llLnxmÈŎJnbUxšI°Žl@n¦‚lÈIlmX¥„k°@šk‚J„k²é˜@klaUaVaU@@ÝnIWnmnx‚k„ºÞ„„aV™°„V@nw‚KšxôbÞ£šVšU„bšþšLn»mƒVw„IšJ°Ž@„nb@°°I„ġUkÇKVƒ™™@ů»lƒ„Lnmƒ£@anK@Ñ܍n@»mL@£™yk„UUmbUÞÝ@kyÇbó»™XUxƒWVzb±mÝbXaƒwUamL¯»@wUKVwm¯ĵJ°ÅUWVk„KVk°wÈVšVуlUšƒ¥škmVamknƒUw¯¯ƒbċ¥ÅKƒk™Kk„™VċVk£kKVw‚Ñ„a@kóyÛ¯ÇVk™ów›š—Xō¥Ç¼ów™Ž¯U±‚k„ƒ@x›IĉÒÅVmÈnšÜ@n°„bUbÝV‚ŽUnnJ¯Į@‚m¦nV܃@„„L°JXb‚Ñ@šaÈb@šllôLVb—b@lmnVxk°ċ¦U°™Ž@xX@xWbš°UVÇn¯Ò¯Jɛƈmxl@¼"],encodeOffsets:[[106527,34943]]}},{type:"Feature",id:"6210",properties:{name:"庆阳市",cp:[107.5342,36.2],childNum:8},geometry:{type:"Polygon",coordinates:["@@kw‚ĉ—»VamƒƒV¯wƒIóVkl¯™Km™Vō¯ÝWkL@bÝKō¦@Ž™„@š™Lx›@b@l™a@km@@l¯nm@UaÅ@ƒ„óWUXm¥™nƒw`@UUxķôÇ°ğ¦@„VJš_n‚‚IVŽnalxkX„JWn¯šnVƒLšxl¤nnVbklVX@xnxmV@bUK@nm@@xƒV—°±aÅnƒŽkUWnUaƒx@m™n@ƒ¯LƒššmUĀlU@lV@blLUblxklkIÇx¯°‚UXbšaVŽUnšV@°‚LUlnbšX@`°nVmbnÆmV‚kLmK™¦UŽ@X„y@kl@U„°K@¼XbW„ƒš@b„WnLVa„VšƒVz@xlVČ¥lbUxލlV„U@nÆWôn²™VJlU„Ƨ„LnmÜLXa˜n@mœw@wlUlV²mšblwšVȃlLލ„±@lVnUlxnkma@mškšJ@kXV‚U@mn@š¼VXUƒVƒlLnmVbôaVnWV»ÈUl°È¯ÆIn›ÆU@kk»mKkÆġk¯@»mƒk—¯@óÇlÇ@—Vykkl™Uml¯Þ™@w"],encodeOffsets:[[111229,36383]]}},{type:"Feature",id:"6204",properties:{name:"白银市",cp:[104.8645,36.5076],childNum:6},geometry:{type:"Polygon",coordinates:["@@VKUȚl@šè°šnŽ‚LnxÝބ„V¼kx@l‚¦²°ĊóĠ„™Ċ»š@ÈxšaĊxlwÈVŤa@¯²aÇ£ƒJk£lƒnUÞ@°šô™@y„wl»lIX¥Ǫnw@ÑÞWla„ÅlL@ƒUwĉakƒl@ƒš¯mwna°J„V¯nUVÓÞÑm£²óWaUƒÇ@óÝUçV»ÈkkW@¯‚xV@XlK@wX@Vmm_@wÈݙKU¯ÇwVwÅK¯VƒkƒJ™™™XkWVaƒImŽ¯Uk„ÇlVšœĀV°mxóšk„@¼ó„WxĉÜU@Ub‚zÛJÇk@‚ÆnVlԙ@kŽ„x™ô@ĬWL¯ƒƒK@aÛImm™@ƒIUaƒ@™™UŽÇêU¤VÒÇx¯ÒV„šš™lk@Wbĉ¦UbkWV_‚y¯Lƒaó„kŽ@b@nmbkx„°"],encodeOffsets:[[106077,37885]]}},{type:"Feature",id:"6211",properties:{name:"定西市",cp:[104.5569,35.0848],childNum:7},geometry:{type:"Polygon",coordinates:["@@„a‚V²wVJV_@„LlanÅllŦçÜӚ_šlnƒWaôk„xUš„bmV@È°lèšnk°l¦„`@nnL‚@ÈlÜIyVaV@ĊÛXwôƒ@»lƒô™nwU¯›ÿU™Èklƒ°Vn„JUblXšWšš„I„l°U„ƒVƒš—@aVVVmnL@„lƒ„UUw‚mkƒš£„bV¥VUVwۂƒlaÇÝރmk£ƒLUy¯L@WlkKW_XaWƒ—mƒ„ġU@a™k™‚ƒakXkmVwmŹVƒU™b™WƒónmwnWW£„KÈnV¥ƒ¥„ƒÆ_k™lW„bU¯„V°aôbnaVwmaōInÇmwkK@kmLUw™@™`ƒkÅ@ƒwƒb@m݄ĀÇ`U„ƒKUbmUUkÅxmm@›„»nUVk_Ý@™Ç™¦™VÇè¯b™aƒn™@@„„JV„°Žn„U¦™°ÆbXxWl„êƒxš„ĊaœbW`™zV°œ„@lmbÅx@bmV™bƒI™`™¦@ÒUVUI@ƃL@bš¼@ššŽ@„šlmxnL„°ULƒŽƒÞğޛ°kLUŽƒL™°™xVŽ„n„KVƒl@šzX@"],encodeOffsets:[[106122,36794]]}},{type:"Feature",id:"6205",properties:{name:"天水市",cp:[105.6445,34.6289],childNum:6},geometry:{type:"Polygon",coordinates:["@@UyȍVƒVUnn@ƒVU„`UblzšJnk‚@Vb„KU„°l„wš„„W°„nkVŽ‚UÈlš£°V@n¥šV„kl™kU˜±U„ƒn™ƒlw¯UkwmKUlmkUmnkym@ō@U„mWÈU°l°anlJškUKlU„¯Èm@kmWV»kkÝLUWUx±b™@¯ma@ƒ¯™IƒJUxn„m¼™K™ýƒa™V™Uݤóa™wLmxU@¯ƒUšƒb݃ƒ¹lmwmnXŽmJ@ÞV@UbVbkblŽ—@±êƒlI™l¯@ƒlW¦knÇJkm¥k@¯™Jmbóa¯bƒUV°ƒakXlšÅ`ƒ„„¦U¦ÇmƒLX¤mXnxm‚„ôšXša„VźUnŽUxlnlW„bššl@bĢV„ƒ˜nX„WbX`lLXk@Ž°KVz„Kl¤„nÞ݂Èkb„‚܁"],encodeOffsets:[[108180,35984]]}},{type:"Feature",id:"6201",properties:{name:"兰州市",cp:[103.5901,36.3043],childNum:5},geometry:{type:"MultiPolygon",coordinates:[["@@lW²LššƒŽ°I„l„šmbVb„KnbĊVlkš@XbÜU@Žkn°‚XIƒÆ™V„LšÓÞxŎUlôƒ„b°KzU`lXVaĊ¥Xal@šk™™Uƒ°ÑÈwUтV£ÈéVšš„@Vb„Jš@nnÜJ@b„L°„XK@īšóƒwlš@kÓmUÅmK@mƒ_k¥l¯™mkçǯ@nUƒaV™ƒwólXbm„™k™`ÛÔťèkkmÆkbƒK@U`UI±xUƒbWlX„mbVbÅÒólkƒƒIWJkšƒ@ƒz—KŻ¼™@™xUx󎃄¯LWb@ŽÅ҄„±¦U`nbťĀUšVb„LšŽ„U"],["@@ƒ¯lwna@mōȯK¯kW¤ƒ@@V@bĢnĢƒVLU‚°k"]],encodeOffsets:[[[105188,37649]],[[106077,37885]]]}},{type:"Feature",id:"6208",properties:{name:"平凉市",cp:[107.0728,35.321],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÆLUxÈxV°šLÇÞ@xn`Ü@X@nĊŽÆwnJmwUx‚aUkšw@V@w„aVmlLXÝl@X‚VĢmV°@nl@UUUWK@w„ÿVI²Òlmš@nÝĊýVV@nšJ°„„šUłm@kV¼nK›ĢȤôK„blnKllVk²aĠ¥È¯ĸóVw@V‚_„xšmn¦VWôX„ƒÆ@Vbn@°m@kn@@lšb@k‚aœ@‚wšK@™šƒ@UlKVaƒWX™W²¹lӄw@_°›n@@_lKōķW™@ŽmLUWƒn™»Û@›l_Ç`ƒÛmm°ÅbWb@š—VWbƒUUKDŽÅaġlmkUġlƒ»—Lƒl™Um¦@Ž¯U™¤ÇkVUml¯ƒƒX™ƒƒx¯kVƒƒLUa@ml™IkyVaƒ_UV@„mmUVU„ÇŽVzUxUVU¦ƒa™¤l„nVxƒVk„@ƒmKUnUU@b™˜U„ƒ„","@@@Žż@™mlkƒġk"],encodeOffsets:[[107877,36338],[108439,36265]]}},{type:"Feature",id:"6229",properties:{name:"临夏回族自治州",cp:[103.2715,35.5737],childNum:8},geometry:{type:"Polygon",coordinates:["@@š@ż»˜L„y„@l™XI„Jl„ôkÆÑUanaWƒXkW@™yk@U„ƒLƒmUšwš¯„KVlKœ¯Ġ݄݄VKƒ¯mKnw™k@ƒ™@™™»@a„K@ÅVJVU@њ¥š_Uy¯š@£UKmn@‚ƒšó¼ğ¦WmĵXݎkŽVLmVĉU¯bm„ÝV—wWlXÞW¦™xkmmL™šÝŽœ„±U@Vގ™š@„ÅÈW°X„ܼƨyUĮnŽWŽnXÝxUx°lVXJlôV"],encodeOffsets:[[105548,37075]]}},{type:"Feature",id:"6203",properties:{name:"金昌市",cp:[102.074,38.5126],childNum:2},geometry:{type:"Polygon",coordinates:["@@šĢȼ™„Çł°bœU°šV‚ƒń‚ÆǖŰnšÆ„ōĬǔaʠůĭš_kķÆ¥VÑș„çÜKšÅ@DŽƒVaU™m@aōnġÇk@ƒxĉ_™Wk£™@݃±KÈ±aÅnƒ@ƒÝxƒ@kw›lkwōL¯wm`"],encodeOffsets:[[103849,38970]]}},{type:"Feature",id:"6202",properties:{name:"嘉峪关市",cp:[98.1738,39.8035],childNum:1},geometry:{type:"Polygon",coordinates:["@@llĊx„¦šl™¦š„kVVnšJVbǖV„kôV˜a„bnaWw„UXmmamUXkWKō¯Xm°™™»ĉÇ@UVƒK™ķkǼğb"],encodeOffsets:[[100182,40664]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/guang_dong_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4418",properties:{name:"清远市",cp:[112.9175,24.3292],childNum:8},geometry:{type:"Polygon",coordinates:["@@lǯkÿƒaV¯™VaÈU„¥ÆDŽIlxšmnb‚Uœxl™„Uôl°kš„„Wl„š@ô™VwUanUl@„xVkšaX¥‚kU»„aš¯±@kka@ƒUwmUkwƒJk™˜„±k@ƒ™™L@ÝWUwV݃—xÇU¯ŽÇX@m™Åƒ@@yĉ£VmUwȗ»ÇšUn„lUnWU¯`Ukƒ@@„™x„Ž@bÇxX¼ƒVVš¯LšĀk‚ÝLƒ„¯@VŽƒĀ¯lnĊW¦kVÇôkUDŽUK@ţ™U@a™™ó܃UU»ƒ@™¦k@Vx„KVb„n‚š@„Æ™„l„@xšƒbWšnlU„lxÈlV„È°Æ„@¼™„@x„šWxœŎ‚V„šK°„š¥ššnƒÆkŎ@ÈÑm™„K@¥šk@™ô@„nôV"],encodeOffsets:[[115707,25527]]}},{type:"Feature",id:"4402",properties:{name:"韶关市",cp:[113.7964,24.7028],childNum:8},geometry:{type:"Polygon",coordinates:["@@W™Xk±Ñ@ƒUw™mUwĉwlmn@Æwn£mkIš¥ÇÅ@¥šaƒón£nWWwš£V`Þ@šnVml@xô¼„IV¥ƒkUmkamUkVWwÛ»móƒ£UVÅKmn@x™@kbmm¯a™Xka›VĉaUb݃ƒ²—‚lš„IlxnVVx@„lb@l²™°ƒbV¼lW¦™bUlƒwk@mVVbUxóš™@kƒƒX™ƒ¯lókƒVkš›wVma™nkwƒJÅȃ¦ÇVUbšŽU°„blĀ°ŽkÈ@x™¦Æܙ°@„°„¦óa™VUôlUlbXl@nÜV„„nKlŽnIVÞ°Wš„°U@bnm@¥šIVƒ²Ulƒ°VnalzXyl_Vyƒ¦lƒœLlxš„@ŽÞbšKm„knVWanwƒÑVwČº˜@n_ÞV„aVŽÜIœl@„˜KȚ„VJ@aš£È@˜™@km™„aV¯W@_ƒa¯KmbkÇkLmwƒ@Å¥"],encodeOffsets:[[117147,25549]]}},{type:"Feature",id:"4408",properties:{name:"湛江市",cp:[110.3577,20.9894],childNum:6},geometry:{type:"Polygon",coordinates:["@@@ƒkXƒ™@a„UUċlk„Jƒk„™@wVJXUWk°W@nKnwlUlš²ƒ„blU@‚lI„l@„XbW„šxnm@lW@w„wU‚JX¯VU°`ŎóˋkÝÝkÅ@ÇmğÈřmw™aĵV›xUہ»°™ĠǷnýmóX¥ɅĵҏÇ@°²ĊUĖ±ĮU¤Ç°™Ā¯ɐnżUĊĊĬV@脎@ԃÒU¼l¤nƒĠb„êVĠ°Èy„zVaV‚nUÆL„ašbVl„wÆ@"],encodeOffsets:[[113040,22416]]}},{type:"Feature",id:"4414",properties:{name:"梅州市",cp:[116.1255,24.1534],childNum:8},geometry:{type:"Polygon",coordinates:["@@„‚nԚlW¼x‚¦@lœVl™lLkè„a@zš¤ƒĖ„¼UxlnUKUbÝlU¼lb@„Vx„V„klJÈwV¯š@ĠlÛĖšnƒbkšÆźÞƒUÈôklmšL„¥‚LœW˜„„™nKUkVa°V„x@IVV@x°bUk„a™a@mV@„@y„w‚L„ÑUwVUšV„‚„U‚bÞVVann‚@XwÇÿš¯²aVamkXaÆ»@»nw@¥›UXaƒkbWa¯KUw@¥m@kwmLU»UU™J@kmU@UUWUƒ@ƒyƒanwmçÛl¯ƒŽ¯UƒmKUmƒwVkmÝXbW@XWÝbƒk¯@±‚w@»U@W¯Å@ƒÇ¥UƒU@ƒƒ™IU™ƒakJƒĀ„ꃰšþƒXkamŽ@Žƒ_J°m‚@X"],encodeOffsets:[[118125,24419]]}},{type:"Feature",id:"4416",properties:{name:"河源市",cp:[114.917,23.9722],childNum:6},geometry:{type:"Polygon",coordinates:["@@°VlmX¹laĢÒlm„@„„šVš£‚‚@¦Ģklynn¼lW°z„W„„°VbÈV@lÆbnn‚JškX„šVÆašÅ„W@™ƒUUw@ƒkaV»ÞkVaVLkmVwƒ»„ĕ™£@yƒblçkKkš›U@k¥‚wX»™kmӃ@Wn¯‚I„`@nlb„W™ý„¯ƒé„ÿlI@™XUmWUwƒ@@UJU„Ç„mKUV@x™„ţk¯¯LWƒƒnUxK@ű»Vwa¯š@¤WX@ŽÛ¦@¤ÇIȼWxXŽƒ@Wx—w›ŽUnVbÅèmVa±²UWl@Žk„lȄ¤nôܼXxlUnVlbVn„lU¦ƒJó»@wnkmU™‚Ý@U_™¤XxmXm¤„ô™b@¦Èƙ¦lJn"],encodeOffsets:[[117057,25167]]}},{type:"Feature",id:"4412",properties:{name:"肇庆市",cp:[112.1265,23.5822],childNum:7},geometry:{type:"Polygon",coordinates:["@@l@š¥„@V¼„Vôۚš@bšV@ŤVLȃlVÈólUX¥mĉ°k„ÿU°@„ƒÞKl™ÿ°KU™„UW»Èw@aƒšw@ƒ„@nm@w›£kÓVUVn„Kš™k¥™£Vamƒ@nkKkbÆǫma—kmLU¥™UmƒÛwmVU™mUƒJ—ÇaUxÇIn`mb@Þ¯b@„nJ@nl„U‚V„lVU„L›W¯—Û`Ç_¯`mš¯I™bĉWċzx±J™xš¯ÆUƒƒ_k@™šƒJ@Umb„šXôlLš˜n¦@¼ĊxlUXŽ˜xUbL‚Ġ„UnVĊwlšUš„b@lW„X„‚m²˜@ÞWxXš‚Unb"],encodeOffsets:[[114627,24818]]}},{type:"Feature",id:"4413",properties:{name:"惠州市",cp:[114.6204,23.1647],childNum:4},geometry:{type:"Polygon",coordinates:["@@lbšW°bnnlaš@@wnmÆLVUkÇlƒ@Xk‚V²±‚bnUÆçUaVmœ˜xXw„@WXwÇ»ÈJ@£Ü¥@XW@£°™‚bUx²¼@ƂLVw„mX„°K°Ťlšƒ@wVUnLȃVƒVIky±wkƒKU¯ƒÅkƒ™XġÑۃlwUwlm@m„nKWašÅm›¯óÇmğb¯alĉUwķbmb@lÞÒVn—šmĀŹ@VŽƒbVŽUnmakLm`@xĉkklVÔVJVn—lV„UnmJmaLUbl‚™zmŽkL™a™‚ō@@zš‚V¦UŽV²kJ„nÜU@˜VXUŽL@„lJƒL@bݤUnVŽ—b@xVnlK²„Vx°V„xlI„lkVl²k¤@n"],encodeOffsets:[[116776,24492]]}},{type:"Feature",id:"4409",properties:{name:"茂名市",cp:[111.0059,22.0221],childNum:5},geometry:{type:"Polygon",coordinates:["@@‚LnÇlk„KnkÆL„ƒUm™ÈxlUœJló°n@ššanŽš„„a@ƒ˜@X_@mÝóóU@a™aU¯mL¯ƒƒkV¯™ÇVwkw@V±Ŏ£@™™@šalw±Vk@m„Åm¯™ÿŃƧIÇ`ōô¯_UVW°IV‚ƒx@xkX@Žmn™wXƒWa@ƒƒkkJ@kVƒa±„k™kVmxmL@‚¯XXlWVUI@xƒš„lƒIklVȃV@b„šlW@„@nUxVblVxkôlx™n„‚y„šnIƻư„aXwlK„bVnƒŽXb‚L„¤„k‚L—èƒVV¼ƒŽ²IlĠVX„ynz°KVx°@VlœLlblKœš"],encodeOffsets:[[113761,23237]]}},{type:"Feature",id:"4407",properties:{name:"江门市",cp:[112.6318,22.1484],childNum:5},geometry:{type:"Polygon",coordinates:["@@lUXx°JWnnƚXVš„W„X@„šºVLV¯nU‚Vnb™ô„x‚aXmW™XIšŽUb°xlK„l¯œK˜xXÞ°ŽšXÈ¥Ü@„ĉޏU™‚çš»nóƒVma—x‚¯UÅU¥Ý¯@ƒƒç@ș@çĉÅUmU籃ĉKÝxÝ_ÅJƒk¯»ó¯nmèkǀšŽWxœ¼mnUÜġ°@¦@ƒxƒLkŽÇaVnUxV„™šVlnIlbnÆÆKX¦"],encodeOffsets:[[114852,22928]]}},{type:"Feature",id:"4417",properties:{name:"阳江市",cp:[111.8298,22.0715],childNum:4},geometry:{type:"Polygon",coordinates:["@@°„nKV°šb@bôVÞô@n„VlÒôÆUnlnn@lmkmVkƒaÈkÆƄ™k¥‚ÅÞ»ÆKXkW¥ÅLmÅkamJUkš™UƒVwUmÈbl„K„w‚@@¥Ģ¯VÛnm›»Xw™lƿ™@kbW™—aʵ@óL›l¯ƽ@™ƒƒLn°ƒÆ@nUl‚²kx™b@‚š@šō¤U²@ŽlxUxšÈU°lŽ„"],encodeOffsets:[[114053,22782]]}},{type:"Feature",id:"4453",properties:{name:"云浮市",cp:[111.7859,22.8516],childNum:5},geometry:{type:"Polygon",coordinates:["@@@V„Iš™l@„`V„°Å™šw²I‚wČyĊXša°Jn™°_È`Ü_°˜œX‚KVƒkUUƒVkƒ@mmI@ƒ°a@Ýnam_ÈJVwlĉX@„šlUšómaUmVU°UK™¹@ƒƒWƒXU™™WmÅXm¯IWwkVWlÅLݼÆl¦ƒšÅÅÇl„bUllnknm@kmVmóÅkуUW`—@@„ƒb™ƒm™b@™¯mkô›IkVÇwnš„VƒÅKmlƒLklmȁKƒšVĊK°²„`n˜¤n„U„bWl„xVx™LUx@°nXm`VklVxmnnx"],encodeOffsets:[[114053,23873]]}},{type:"Feature",id:"4401",properties:{name:"广州市",cp:[113.5107,23.2196],childNum:13},geometry:{type:"Polygon",coordinates:["@@Ș¼VxUnĊ¤@z„@šÆ@nÈW°ÈV˜w„ŽUÞVxÞX@ŽšK„šl@ބVaĊbœU@ml£k±lUƒkkJƒw¯UUw±ƒkLUm@w˜aUVmÞ£@a„KkI@ƒ‚KVUW@—ÛVƒmlIU±VU¥™@yğzƧǃƒšƽĠřšÅnī±m@ƒ²¯lƒ°@nÝÆóUll@XnÝVU¦mVV°—„V¼™Jƒn„b@°mbn„ƒ‚@²¯‚¯wVwƒ@@nmxX¤¯L@ŽVLU„m@@l"],encodeOffsets:[[115673,24019]]}},{type:"Feature",id:"4415",properties:{name:"汕尾市",cp:[115.5762,23.0438],childNum:4},geometry:{type:"Polygon",coordinates:["@@@‚„@VxnXWV@š„bVššJ„„V@ÞÅU¥Ċxš£UWU‚wÅUU¥WVUkĊÇnkV`°LV™„wƒƒnU@™„ƒlbĊ¯„Vnalšš@@çkUÝ¥ġaó¯ÅaÅLŻÆUýmy¯ó@ĉÆó„ȯw™ÆXbmLƒ‚@nknVxkx܄ĢҚW„Æl„V°„Ll‚²xlz"],encodeOffsets:[[118193,23806]]}},{type:"Feature",id:"4452",properties:{name:"揭阳市",cp:[116.1255,23.313],childNum:5},geometry:{type:"Polygon",coordinates:["@@V„Ȧ„Æ@X°V@@¼‚x²°@„lÞaWXX@‚aÞWlnUŽ„xVnnL„‚°V„@k‚mĢl@„ak™@mlk°aXƒ±„nwm±™²¯JV²@ƒwW˜—_mƒa„V»ƒU@m¯ĉUф™šJl™„ašbVn„lĸLlƅÛDZwÝ@ĉxó@è™@k™mbƒUĉ°kaƒ„@šmV„„ƒxUš¯KU_mlĉÈVlXUV¦ÆVxVŽVX™¤ĉwV¦ÝÆ"],encodeOffsets:[[118384,24036]]}},{type:"Feature",id:"4404",properties:{name:"珠海市",cp:[113.7305,22.1155],childNum:1},geometry:{type:"Polygon",coordinates:["@@„è@„Þ°V¦VƁ°˜wnb„UÆ»nçƏ@nxܤ²llU°VnÈJސ°UôéšķUklƒô£VVˌKÞV°£n¥ƒ£ȗ™Ýy¯¯mÅkw¯bÇĔğ@Ýn¯ĊƒVğōŁŻƒķJ@Ț","@@X¯kmèVbnJ‚™"],encodeOffsets:[[115774,22602],[116325,22697]]}},{type:"Feature",id:"4406",properties:{name:"佛山市",cp:[112.8955,23.1097],childNum:1},geometry:{type:"Polygon",coordinates:["@@Èb˜Ž„InVVšnUÜxn„šVV¦nK˜lnbÅǬlalL@mn„Ubš¤l¦™šƒLUmUVlԜ¤@xmnVl°_XVVmƒkVmș@kn@VƒUK@°KW£nw@m„@Ux°x°@±„mƒna@¯ƒa„mšIU»˜ƒU¯nUV¥ÞUWmk@Vk¯™Ukn›ÑWݐƒĊÛ@Ǧ™W¯Wݗw›Lk°ƒkL¯wVa™WJXšWnbƒwkVƒ™W@kĊ"],encodeOffsets:[[115088,23316]]}},{type:"Feature",id:"4451",properties:{name:"潮州市",cp:[116.7847,23.8293],childNum:3},geometry:{type:"Polygon",coordinates:["@@°ŽÜknèmx„b„z„@V‚VX@VnV@lšIVVV¼nKlxn@@¦Vx°LXbla„ŽWbœV°£¯™W@nW@™‚aUñVœwWš»@¥ŤÅUÝǓÝóV@ńǎkUVmƒIUwÅVWÇX¹›—@W„¯bkl@nlšƒb@‚kġŽn@l"],encodeOffsets:[[119161,24306]]}},{type:"Feature",id:"4405",properties:{name:"汕头市",cp:[117.1692,23.3405],childNum:2},geometry:{type:"Polygon",coordinates:["@@‚@U±°Iš±n²mx²ƒ˜@œWºXÈÆUVx„JUnlVȍ@ŃôUǔÞVçn»VyĢÛVm@»kaÝUǼóšÛÈķKċ¥X„¥Wwğk™ƒ¯@ƒwķKƒkUm™aƒbkš™IƒšVÒ°Ċ@n„VU¼ƒ‚„bn˜`X—„x"],encodeOffsets:[[119251,24059]]}},{type:"Feature",id:"4403",properties:{name:"深圳市",cp:[114.5435,22.5439],childNum:1},geometry:{type:"Polygon",coordinates:["@@ÞLš„@xšbV„šVšK°™X°Kô¥Vw@anU„胐š‚lkĊl@wn_lKnbVmU„aUź@nÿ˜™UmÝѯUƒbk„@ÆkxŻ@™aÇX—wƒJƒƒ¯LķÝUĕ™ó™ĸóêWº@b²nmĬ™Æ"],encodeOffsets:[[116404,23265]]}},{type:"Feature",id:"4419",properties:{name:"东莞市",cp:[113.8953,22.901],childNum:1},geometry:{type:"Polygon",coordinates:["@@Ŏ@ššblKnšykVa‚KnbnIVmUƒ˜kUmUIUә„ƒçmV@bUxó¦¯LW‚¯š™L™UUƒ™a@w™ƒÝKğŚ™ƾ„„ƨÈĠy"],encodeOffsets:[[116573,23670]]}},{type:"Feature",id:"4420",properties:{name:"中山市",cp:[113.4229,22.478],childNum:1},geometry:{type:"Polygon",coordinates:["@@‚XœÒlmšV°ôÞÅ@m„¯°k„±‚@@aX¹¯VݏÇIUmV¯kk‚±Û£mw@‚Őmèżmô™¼èVš"],encodeOffsets:[[115887,23209]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/guang_xi_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4510",properties:{name:"百色市",cp:[106.6003,23.9227],childNum:12},geometry:{type:"Polygon",coordinates:["@@lklWXL@VšI‚l@XnJn@VUUalk@mK@kny@UlU@a°™„ƒUU@VmaU@Ua@UWw@ƒn@KmLm@alkšmnI‚m@an@VIUamWÅImwU@@a@K„X@JVL„UVmUaVkUa@m„@@Ulmkk°ƒUaVUlKXbVwVIkaVmUk@KVk@a„aW¯m@w„¥laœX@KmaškVmnUl@nxVKšInU@yVaVIV@na°KlxX@@_lmXšUV`VIV™V@„n@lšbn@@WUkValK@²yl@„„VUV@@K°L@KU@@UVaXIVVV@naVkVa@K@UUK@UUa™LWa—w@m@K@UVVƒ@mVUUVKnL„mVL„K‚bVK@UUIk›mI@mUIVK@IUK@VkLƒ@WU@mU@WmUk@ƒI@VƒJk@WwX_@amK@UUWkIƒ„ƒK@LVb@mVmakL@J@bU@Ux@xƒbmI@`ƒIwm@UbmKUaUWa¯UkJWV@XƒJUU¯LUmV@ma@kkamKwƒLUUmWVkkm@aVUUkVKnVVUmXK@UW@km@Ukkm@@W@U™kUy@I@aUUmbƒ¤U@kUmL@bmJU@Ua@wkLWWkL@Uƒ@VaU@ƒLUakKWbkUWVkKkLVLUV@JVbƒz@Vƒ„@ƒVmUU@kVmK¯@VƒU_™VWakVmIUKUaU@@bml@XU@@V@LmKUV„mVUKƒƒKƒbkaUXƒKUL@x@V@l@„mxU¦„V@ŽlL@V@Ln@@VV@„nlKUaV@nLUbmJnL@VWLkbmV„@@L„W‚„XLlx„VVIVV@x@V²blUVm„LVUœK@kWWXUlV@Xl`„LX„l@@VšŽƒn@VnbVš@lVUVUÈVbš@@`UXU`l@@XUVm@kš@xmVknUJVXUbmKULmbx@VlJ@LVbkKUbVLÇUUVƒUVmU@VaUkUKƒVUwmLkUUVVlƒbka™XmwƒKUšVVU@@V±Uk@VWUUm»XamU™bƒKk™`ƒ„™U@UnWW_kKmbUVUVmnUV@„nJVUlšUbU@UV@n@JmI@VmbnVUXlx¯ŽkKmnVV@L@V™bkV™Umm™@Ub¯LmlUƒL@VWLkmkLmmn£WmnKU_mW™š™bnbmxƒ@U¦UJU„@Xmlk¦@‚mnUUm@@Jn@lV„ÔVJnIVW„I@a„ƒÆK@I@aVK„IlŽÞnnl@nl`nbÆX²l@xV„@llbVn²ŽVVl@nn„V@IlW@Un@@kVa°KšnÈmVaVXUlaVƒÈU„VlwôUlynIVašan@lVXb‚Iš@n¥la@Kš_n‚@bÆx@XnJV„nKVz@`VXVšU`@bƒ¦UV@VšIlx„UnV‚K„XÈbšVllšbVbnVn@"],encodeOffsets:[[109126,25684]]}},{type:"Feature",id:"4512",properties:{name:"河池市",cp:[107.8638,24.5819],childNum:11},geometry:{type:"Polygon",coordinates:["@@lLVl„bVV@nXVlI@JVX„mšn„W°b„IVV@‚ln„@nalVUb„nW‚@kVkÒlbVKn²°bUŽlV²@˜X@`nb„aUI@ƒ°wlU@aXJVI@aVK@wUamIXm‚@XUV@@bV@Vm„ImnUUwVaVKXU‚nVK@akƒVwV@nL@UV`n@@X‚lnIUJl@X¦˜V@aUIVm@anƒV@UwnL@VlbVL@KVVXUWƒ„wUUVUka@UVJnUlbnalbVVn@°„„LV`Þ@šXVxV@@bVlUVVbXnWlXnmlš@XXWVXJmbUI@V„llUVkn@@VWV@Vnb„@VXUJVnn`lLVk„a„»lVšLnw@WV@lInw@WnU@U@m‚knUVó„K‚wUmUXUƒU@@wVJVIl@XKVVVbVI„J@Un@lŽVLnm„b@U@Ul@nUš°VUVJnnVJV@„@mVU@ƒ@wkUVwkKWk™yUUkU@alkÈ@lJ@x„Ilƒ@UUWVkUw@Kn@@kmaƒVUl™UUL™ÇƒUUKl@UUmL@aXU@mlUUwmKkUUVKVUƒaƒKUnK@U@Vl@XUWU„KlwX@šb@K‚@XkV@UwWJka@aUwmV@U™@@U@wUm@»kLWVkIWŽXnmV@VkbmKƒLUbk™Va@aƒa@@aVU@aVak£@ƒ±UkVU¯V™UUƒJVƒUIƒ@kxmUmWUbL›w@K@aU@@aVU@Kma@aka@_VWkk@UWVUKULWKULUš@KUnƒwVaUKƒxU@UmaƒL—m@kVmVa@UkƒmI@ƒ@KmIkxU@@K™U@mmakI@VƒLkmWkkJ™_U‚@V@L@n˜xXbšKVb@VVL@V@LUbUlmbU@UUWJUb@VV@@L¯K@LU@UVƒƒk@±z@‚kLUbVl@Xm@™akm@ƒU@UšUJU_™VWŽkn@`W@kw¯LmbU@UJUb@zmV™JULmwk@mVUn™lnb@L›Wkbƒ¦@x°nXŽƒb@bUl@LVlUnlbUJUxWakLUVVb¯„llkn@Vƒ@@nVbUlVbUnƒVUK@IƒW@L@bV@nxÆJnXVbUJm@@bnmJ™nkl@b‚nnK@L„m‚@Xx@VVbV@nb@UVVƒ„¯š@bkV@Vmz@lnLl@kŽVbUVm@mI@Wk™J@UWKkXkl"],encodeOffsets:[[109126,25684]]}},{type:"Feature",id:"4503",properties:{name:"桂林市",cp:[110.5554,25.318],childNum:13},geometry:{type:"Polygon",coordinates:["@@nU@J‚X@`XLm¦Vb`lšVXXWš@VblČnVšŽlanLnmVLšK@_Vaƒ¥@kUa„@VmVb„aV@XVVzlVVK@knKVmX£VKšLlbnš@b@llL@xĊôXaV@°È@¤„bn„V@@Wl_„V„U@W„nVamw„wVbn@„K‚VšLX@VmVUxlV@šnVV_nK@m‚I@Wn@@IšUĊ@@wVWX@@I°VVm@wmU@m@IUƒV™kƒlkUmmkÅV@@aV@@Wn_UKla@kšaV„šlVanb@k„@@KlVn@@aV@nIWW™UUaVU@™kKmwU@UImKk@UU@w@W@‚™k@™UkWƒ@mk_W@Ua@a™ƒƒ@—¯ƒmV£@mƒUUam@—kWakƒVama@UUm@nw@alaUmnUlVlIœV‚™šLVyk£Vm@k@UUJkƒK@kmKUw™KkWK@UXImyVwnI@m‚ƒkUlkUKkUVmƒw@kkJWUÈm@_k@@aƒaW@U„UJUwU@@IWKkƒmUUV@nVl@bVb@bU‚UXƒakw@ƒWUkbkKƒbm@™xUlkLm@@wmKUX@‚™UaVW™XVmU@@UUUƒxkmWXkKkUWaUaUb™L@`UL@LV`UXmK@VmakLVbkL‚xUJUIVbUVVb¯KƒV@Xnl@lVXbmÒnV@L@VWKkVUIWJkIƒŽUamUUbm@U„kU@JUbW@X„WxUam@kbVVUnUJmUUV@bƒU@UUV™@ƒVk@ƒbƒmULV¦U@V„U`VLUL@xVbn@UJ@nWJXXVŽVV@bkxVbUx‚Lšš@x„¦@šU‚lXUVVlULV@@šnŽU„ƒb@xl„nJVnlVknUlVUbmŽU@ƒbVš„x"],encodeOffsets:[[112399,26500]]}},{type:"Feature",id:"4501",properties:{name:"南宁市",cp:[108.479,23.1152],childNum:7},geometry:{type:"Polygon",coordinates:["@@lKnbnU‚@Ua@K„L„ƒlJVX@VnL@bW`Xxl@„I@U„Jl@nV@X‚V@nXV„@lK@UVL@JULVJ@nnJlœVJ@VULaƒLUKƒnmKULVVUŽ@nU„š`lIXlln„K@UlJnb@nšV@LV@lwnJ@L@„nJl„@VUbUn@l˜n„KnbVŽV@„wVLUb„xVm@LV™VKXLVKVLXU@VllUX@`lb@bnb‚L@ŽUV@bV@@b@Lœx‚KVanXVƒUUmVUUUaVUky‚UUa„ImK@mUUVUkKU_@W@UVVVIUW„UVaVU@UUKnƒ@k@al@ll@bnL@b„VUV˜X@Vœ@@b‚Knblmn@V_@aUalL@a@akK@kVKUKlwUUnV¥VmU_VWVIVaX@Va„alńK@LVJnalL@LnK„wlVUw‚mX@VXšƒlLUVnblaUmVUVwXU@Wm¯Va@ÞKnw@w™mšk„»‚UVW²a@_mW@U@I„y„LVUUKW@@™„LX@VUV@@yVU@UV@nwUUmJka@IU@ƒmƒVkaW@UwUX@`ƒ@kLWUk@mƒkUUm@k‚UUWkUƒkWxk@@VƒK@nV@UVaƒUUJmIkVƒ@UamLUbkVmamLka™@ƒ‚kmL¯WI@wJmwƒx@akU@aUKmbkaW_nW@_U@Wm@a@wkwUKmƒk@ƒbkb›w@mKUkkU@J@bW@kVWz@bVUa›VUx@„ULkJWbXVVXƒ`@œmJUVU@@Lk@WbU@UJlnXlm„Vx@Ln@‚b@K„LX„WJUUW@kƒaUVUbmV@nnV@n@lVLƒVmLX‚mXkV±@kxÅL›šUbJWIÅJ@I‚mXalkUamKkškL±aVwKƒUU@mÞnbWJX„m„@lbmKULWUUVkaƒbnn@Vl@VVV@VƒbVbnLWLXJWxXLV@@VV"],encodeOffsets:[[109958,23806]]}},{type:"Feature",id:"4502",properties:{name:"柳州市",cp:[109.3799,24.9774],childNum:7},geometry:{type:"Polygon",coordinates:["@@ƒwU™„aV@nVaUVklmkUUmmIkƒ@w„aVƒm@™U@VKUkVUkWV@™ƒ¥@w™™KVwUalw@aUUUWWXI@mVIm@Ua@wVKUKV_UƒV@U¥VK„n„al@„Uš@VU@V„V@aVUnVVIVmUUlan@VbXwWƒX@Va@IlVVƒn@VanVVb„lJXIVJlUXL@U@KmUnÑWakU@mkƒJUI@mk™@wUmmUV@JXaWIXWmaUIƒJƒkk@W„nJ@„ƒaUak@›kkJ@kUKU_ƒ@myUóWUkm¥kUmL@KUKm@k_UmVa@ƒk@@UmU@mm_—JWIUVUŽWLUlbVUJÇVUIVwƒKUVk@mU@n@lUL@Km@@l@L™VƒzJmUU¤m@UbV²U`U@@¼Vn@x@Vš@@VnUVx@blbXIVxU@Wl@@L™aW@kxƒLXVWVk@@U@VmLVŽ„L„bUVULVV‚lnLVxkV@nWV@bnKVVk@VL„VšÈVKšVVk„Unb@lm@@LVxUlVX@Vk„ƒJ@wkIÇ@kl@blVVVšzXllLUxlV@x@„UV@nƒ‚U@UImmUIUV™¯mVk@@V@VƒamnUKkm@@VƒIUJUaUUWLk@UJUI@xV@V„VWVnxƒLUômVV„@VkVVVUnV@UVkL@VVV@bVxla@bkXVJVn„`nU@bƒb@bVL@VnJ@„l@šV„aU@@_lW@UUU@Unƒlll@XLl@@UX@°bVWVanLlknVV@VVX@VVƒnUŽVLmbXJ@nllXX@`VXƒlmaXVWk@Wkƒw—J@„VL@J‚bnU@bn@@bVKUnVJVIVVVL²a@bV@@Vl@nUVakalmš„UL@VUL@V‚a@mXl@nK@UlK„L@Vl@@nkllb@š„Vnn@‚šnV„™V°l„šVInwlKXxlU°Žn@@ƒ‚I@UnVlakUJWkUK@anUWK@_ÞJ@U"],encodeOffsets:[[112399,26500]]}},{type:"Feature",id:"4514",properties:{name:"崇左市",cp:[107.3364,22.4725],childNum:7},geometry:{type:"Polygon",coordinates:["@@@JVzšl@V@Xn@ll@VlnX@@VWLnŽUVmUULVlUV@blnUlnXVV„K‚xnLlb@lnbU@Vn°KVV„I@WXUlI°VXb‚VVbnLVan@‚x„J@_nJ„a@wVwV@@a@IU@UU@WKXwWIXKmKUa„a@U‚UUUk@@Umm„albVUXVVKnL‚a@knƒWƒXImanÝV@„V‚LUx²blKl™nLVbklWbn@JÆIXJ‚IVaœ™ÆKlw²@lUnWWnK„UUK@k@mmU@mnUVaVU„b@lVXVXIWƒƒK@Lam@@KUwnƒWkkmVIV@Xal@@KV@VUnI@›„_UWWUkam@kkm@ka@mƒk@wkJWIUU@WXkW™XkWWLUUƒ@UakLƒW™XV±VIVWUU@anUWaUK@IU@Vak@@UUKWaƒ@m@ak@@wUkla@mUaUklakwVƒ¯¯@WWUkLkKmaƒ™kLUnV`UxWX@Jkn@bmlƒakkk@ƒb@l¯bm„ƒbJ›b@VXn„bVV@„ƒbƒJUkkKWVU@mœÛVUUW@UVUJWXkVkKmUL@WW@U„Vl@XXKW„XJ@XVlmbUxnnm@UlVnV@XVm¦VJb@šmLkKÇbXblVkn@l@bWnX`V@@IVV@ŽV„V°n@@_naÆVVbUVVbUJnzlVUl‚XkV@Vlx@X„VnxƒbƒKUK@b¯VVUV™L"],encodeOffsets:[[109227,23440]]}},{type:"Feature",id:"4513",properties:{name:"来宾市",cp:[109.7095,23.8403],childNum:6},geometry:{type:"Polygon",coordinates:["@@nVlw„@VJU„„IVVUšV°lU²V@„l¤Ub@bUV@b‚@„b@bUblšVa„KnLla@UnUWmXlJXUlKV@V_U±Van@V£nV‚I„yšU@K@kn@@LVK@k@mnVl@VU„LUxVJÈUVIU‚aVkXKVVUXJ˜In`@nnV@Vl@@„UbVnl`n@VL@LnKlVn¦VlôXV‚nz„@V`VL@llIœll@Vb„b@ƒmIXƒl@„l„IVJnbWXXJWb@IU‚nVVn@xlš@nVJ„I@W„U°LUaVUUaVJVIwlKUalKnb@UnLVWU_@KVK@_šKVa„@VKU¯VLVKn@la„aUkU@maVU„J@k™@Um@XmbkyVaUIUU@KV@laVn@KXKWUkUk@ƒaW™UUVw@aXKmƒVaUUkšmIƒlUU@wUa™xUmmU™¯™U@WƒLUmVIUym@UVmUa@wmw@çm@aWLU„™JUIUamKmL@™aƒx¯¥ƒkU¥U@±„k„UVmKU_mJUbkKm„ƒLÅǙ_@WWUXUmaVUkK™„UWW@nVxkUƒxmL@KkKmbUI@KƒLkƃbUbW@UbUJUXV`UnU¦mŽVVkxVLUL@llL@b@bkKVb@bU`m@knmaL@a›@@U—WVUƒU@amK@akkk@@b@lm„VL@VUVUbƒVVXUJUU@V@XV`lLUVVV@nnLƒJVbVlzUVVbVVnUVVU„"],encodeOffsets:[[111083,24599]]}},{type:"Feature",id:"4509",properties:{name:"玉林市",cp:[110.2148,22.3792],childNum:6},geometry:{type:"Polygon",coordinates:["@@VJUXVVXlWX@V™xVnX@@`ššULWŽUXÅbWK@mULUUmJ@n¯b@l@VULVx„x‚XU`VXXJVI„V@nm`@nUŽVXn@lWVn@b@Jn@nU@Lm`@Xn@WJƒ¦U@@VnL„lV@@Xl`nIlJnkVL„w@KVK@UšaVL@bVKX™lUUKVK@I„VšL„a@U@WšLUlVL@bU@@blb@VlbUxVbXUVJ@xVL„U„lV@VU„bVLnKl„XJ@L‚b@an@VanL@`VLšKV_UWl@U_„a@WVInlVUUUVm@I@W@wVakIWm@U@ƒXwlaVbnI@ƒm»Va@aXaVLšU„»@aVa@k™KkL@KmU@WƒzUK@wU@VWUUVUUKUa@mKmbUK@_nWVaUkVaUaVUVLXKVƒVUVmVI@UkKkLm`UkW@UwWW_„UaU@WakXmK@xUXƒJkƒUUWUk@Wl—mJ@km@@aUKzmyVk„a@kkWVUU¯lmU@@w‚kkmV@Vk@mÅIƒ‚Ukƒaƒ@Ub@m@UUU`mUbWaWmb™X™XKWIXUWm@љ@y@UkIUJUUWLUWƒL@UkVUxW@kaWbKWnXxW¦n„m`XLVlUbVbUx™I@JmLUKUb@VW@@bkL@b@VlU@xkš@L@lƒxXxWXX°V@VVVbUVV@UVVbULVnVJUb²b‚aUb@VVVVInlV@VnXaVUšlI„VUb"],encodeOffsets:[[112478,22872]]}},{type:"Feature",id:"4504",properties:{name:"梧州市",cp:[110.9949,23.5052],childNum:6},geometry:{type:"Polygon",coordinates:["@@VbXblVlLXWln„wVV@VV@UnšWUXVbš‚@VWXa@kVK„UaVaVkšUlyX@Vaƒ—VmUwUaVU@UÈymI@aU°@š™nWV@VaVaw@IV@VmnLVK@kmmna@™„™VbVI@aV@XbW`U„„LUVVx„@VbUV@bl@VLXblJn¦lL„°°@n™@K@UlLnK„a°LWbnJ„¦UÒV„UllLlVnKnbWnn„V`„w‚@@Xa±™n™l@XKV_„WVkVa@kVyUa@wU£UW@UIVW‚@@a—wWaX_WKkVmUULmak@UJUI@±m»™—k@m»VyUIm™nmmwnkUmVaVIUn_mW@»Vk„@VwkmmUXa@IƒaVm—mƒ@Wm_U@mIUWóLmUk@laXmmkUK@UmKULUUmWULƒ@VakU™@Ub@bƒ¼™VUKWb@bUbn¼@„mJUakbWx@„@VXnlJUb@x@X@JUnVVUVmkUJ@XƒbV`k@VXU`™LUK@_mKUbm@@b@„U`@nlV@b„UnbVbn@@`VbUbVV¯bm@@mJXb@bVnUllVXUlbUl@LU¦VVmŽkLVb@b™l@V@XlK@V@nUJUz„°mŽwmLmlXbWVU@UUUlƒIU@VVmV@@¦‚bXbWxX„WlXVWL@LUmkbU@@LVVVJUblzna@WVnš@@lƒIUVnbV@Vlƒbkbm@ULUKV°ULƒ@"],encodeOffsets:[[112973,24863]]}},{type:"Feature",id:"4511",properties:{name:"贺州市",cp:[111.3135,24.4006],childNum:4},geometry:{type:"Polygon",coordinates:["@@nL@xn@lKVkšwn@„alLlaXV@„lx„bVWV@aUa@aUk@mVUnVl„XL@JV@VxVIVƒX@„b@bl@@`ÇnXVlI@l„xUnlVVLkllV„@nmJUxnzWJ@VXLlŽšLVxnL@l„LlŽVI@V@lUnl¤Uz™Kš@„Vl@š„L‚l„Lnš‚b@VnVVU@k„a‚Knxn@VkVJ@ńUlakmWIUaVanm@_UK@UVWUa@klXam™U@Vmƒ™VIXW„@lUVknVlKVLXŽVXšW@b@VlšnnVL@KXL‚Kn@lb@UnW°@Va„X„WVb°aVa@I¯aUkUaVKVwƒaXk@a„a‚™@wkm@alanUVw@alK@Umkw@UƒaUmU@WXUaUK@UW@UaVWI@¥Xa@w@WWšVƒXwƒU@mKUXUWVU@a¯kl@akU@UULmK¯VUVW@U_m`U@@xVbUz@lUbUlƒXU`WLk@mš²šWb@Ž@ƒxU_mƒXmmamLkUkKVkUƒVу¥mIXa¯KƒbmLkK@V@Lmš¯@ƒ¯kKm¥kIWaUKk@@aVUUaƒ@UwVUƒKVƒX_WaU@@bUJUaƒš@šmbnn@lULmKUnU@@J‚xUbUbU@mX™š¯@VŽ@bnJÇz@VUVVbVxUn„˜UbW@kz™VUlUbVbƒŽUL@lWb"],encodeOffsets:[[113220,24947]]}},{type:"Feature",id:"4507",properties:{name:"钦州市",cp:[109.0283,22.0935],childNum:3},geometry:{type:"Polygon",coordinates:["@@@IlVVlnL‚@œxla„al@n„VLlx@x@bXnV@@`mXX`lbnaVL@blV@b„wnx‚I@xXJ°nK‚l„š@lbnKnblUVanKVb„@lUnJVI„VUb@V‚U@m„L@Ul@Xw„llVVXV@lVnlVn„l@XVlK„@@_VWVxX@lb„U„nV@@JlbnIlmnVV@UwVK@U@k°a@mnIVVVK@nXLÆaVWXVK™™@_W@Umšw@UXWWkUUVWUIVaƒUkJ™UVWbUmU@mkUJUU@UVab±aVaUIUmVKUaVUU@VUUaUUU@W¯XWWw„w@k@Kl™@wkV@U@alK@aX@@UmIUWUIƒ@mmkXU`U_WJUnUJmUk@@amLU@UVW@UkU@@VƒbUWVUk@@wmKkUWLUWX@JmIƒlUkkKWKkLWU@UKWa@bU@@a@_UKWƒUUUmJmw@nV_@ġğKóLmbU¼VÆ@xUXƒ@Um@wklVnUn›lkaUV@„lV²WVklWXXbWlkVkIm`UUƒLƒUU@UWƒx@XU@@lWLU@kbUbV`UXllUV@bmb@LnKVbULm‚šnVVIV`X@"],encodeOffsets:[[110881,22742]]}},{type:"Feature",id:"4508",properties:{name:"贵港市",cp:[109.9402,23.3459],childNum:3},geometry:{type:"Polygon",coordinates:["@@n@VzUJ‚nVŽ„K@XšVš°nVVnšwVb@xVV„knJl™VVUbn„WL@bUxVVXš„bl@lVXkWƒXwWaa@¥‚@nUUUV@„JVkVVV@XUWanknK‚xnƒ¯VyVI@m@UkL@W@Ušk@aUalKnUUV¥@KVkkaWVkUVkUm@aWanI@n@°aUUVaUa@_m@UamaƒV@akU@mV_@ƒa@KWIkƒmLUKƒaUVU@ƒkƒVUK@wUIWVUaVwka@Uka@aV@@aUKVk™K@X@Vƒb™KƒU@JULVLkVWšUL@aUK™b@VUL@LƒxUKmlkImJk_@WU@ƒkmK@UV@„¥XIm@@Wn_@KmVm@@I@aUmkXm@UWV@mn_@mƒUUJWIUWV_WƒwU@mUknVVmxU@@VUV@zU@UVW@ƒK@šX@VLUVƒKƒz@J@VnX@`±bUXVƒ¼™lšn@xmxÝL@‚Ubn°@XWVUxUVVnkbWVXV@Xš`ÆȄKnƒlLVanIV`nLVUlƒ²ƒV@V¦„l°¦„w‚b@šnKnLVbVJšIVƒXK@b‚n@ènx@xVbUnV‚"],encodeOffsets:[[112568,24255]]}},{type:"Feature",id:"4506",properties:{name:"防城港市",cp:[108.0505,21.9287],childNum:3},geometry:{type:"Polygon",coordinates:["@@XV@X°°U„lxkbVlVb@nkbVl@xl@@b@n„‚XbVL@Vl@UbV@@JVLXbmV@bVVUXUJU²šW„XlKVb„@VVXKlXšWlXXWV@VXJlI@x„l@nlbn@lln@lbXalIVK@ƒVwœUVb‚U@aXylUX@@aW@U_UJmU™nVKUamL@Kna@aVUkkVWU_ValaV@XK@kV@@W„wVXV@„V„KVVn_lJlUXkWaXWlkXU‚±kU@ƒVUlbœkVmUmlk™¯Ý™™W@mb@¦VxULm™kJUU@ma¯wƒmkX@VóJ±bUVUXÝWk™lWXXlƒxUaƒbƒIğ™Ç@U@mVUKkkm@UJm@XnWV@x"],encodeOffsets:[[110070,22174]]}},{type:"Feature",id:"4505",properties:{name:"北海市",cp:[109.314,21.6211],childNum:2},geometry:{type:"Polygon",coordinates:["@@VaVLnK@IšJVwUaVaUkWKn_mƒX¥WwXm‚LXalbU£UyV„Å@ݙwm@™°l›LÅUƒmk™mwÛaƑLÝUUm@ȣƃV_„Ó@£UƒƒUVƒ„™¼U°W̄™ÞVbXbôx@b@bmV@ǃ™UÝ@@ĢU`m@ŽnxnIVV‚VX„VL@`@bV@@aXbVL‚@XVlKXLlLVl„knJ@I‚WVXXKlVnL@xl@UVVX„a@UV@VlX@VUV@nK@bl@nVVIVmXIV`V_lWnn„@VJVXnJ"],encodeOffsets:[[112242,22444]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/gui_zhou_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5203",properties:{name:"遵义市",cp:[106.908,28.1744],childNum:14},geometry:{type:"MultiPolygon",coordinates:[["@@@UnUlJn„w‚JU°VL@bnVšU„wlJ@XƒŽXVlU@klVUJknl„UllL@bUJ@xULUlƒ„UblVkblbnw‚UXmla@„wV@VK@L@UXaVKVLXWƒUVa@U@Im@@W@£UKUakKWIXU@al@@llUnL@W@Un@@VlUV@VIUanKl@Xb@lmxVb@b°bb@nlJVVnnJ@b@L‚V@ln„@LmV@Vx@blnVK„nlJXIlw„J@҄b@nlK@Un@UL@VVVVUUUVK„l„@VUVL„J@UVUUw„@Wm@™„UV„ÈVlbUb@JšLlŽX@@x„„ƒLmŽk@@nlx@bUJUzVJ„@@LVxUV@bWxnLnVVK@_‚K²xVbV@n¥@aVI@b„@l@Va„Knb@n‚`n„mmý„W@ƒU_šwV@VlVV@Vn@n„˜@nI@Jn@°¦VaUU@™„mVVWVaUńU@aVKnƒVbVUmmU@a@kUw™m@aUUmUUJ¯lakU‚aXaWUUaVƒkk„amkmUnVlULƒVlJ@XU@UJWUUw„k@aU@WbkWƒL@U@WU@@XUKmV@aUVwUĕUJUamUUVUÑm™nIVJ@kl@XalJVn@KVLœ¥@UWIXWmU@mVUKnUWLUKUaWUUKVU@U@anUny@UlUkK@w@a@aVUƒ»UkVw@Wmk—JƒÅmUUVmwXalLXWWUnam@XkƒJ@UVU@U@W„@@U@I@Wl@Ènlw@KXLWb„lVUkalKUU„VVaV@@wnIlaUmkUƒKWU@KkUkLWaƒKUUWUn@VƒK@LnnWJUIƒVkUWVnV@V™@@XƒK@VUIUJ@IWJkX@VVJ™IƒVkK@I@UVaUWk@m„@wnUWKk@mxk@@„lV@b„xmb@x@VUmLkUƒJ@nVV@b@VkLVbU`¯I›l@™U_UW@UU@™™ƒK¯wm@™xƒL¯¥kIƒ™ƒ‚@bkbƒ@Ua@ƒm@kkW@XVbmV@ŽkV@bWbUbV@„¦ƒxXlmVk@ƒ¦™bkaWL@KUImK@wUK@VUI™b@bmK@LÅy@akXW@kbWlXblL@ŽULUbƒ`@U™kUymX¯@mšUJUUJƒL@Lm@@WX@lU„VlšXll„@l@Èk°V°Ž„X@VU@UVll@XUJVXUVm@@VXLWlnV@Xƒšk@mVULnxV@@bm‚kL@VWLUbU@UVm@ƒb@ķ¥UnmJ@UUVƒkkJUšlÔU`UIW@ƒ°kLUlUI@WVI™U@mWKkXk@ƒ‚WU@bXšW„@J@xX@l@LVl@xšLVxXX@x‚KnxVknb‚KVV@U„L„WlXU`@nUlšX@llVXšVU„KlkUKlI@anKVLXKVaUIVWV_VK@VnLlU„»VKVL„m"],["@@@KlKkUUVVX"]],
-encodeOffsets:[[[108799,29239]],[[110532,27822]]]}},{type:"Feature",id:"5226",properties:{name:"黔东南苗族侗族自治州",cp:[108.4241,26.4166],childNum:17},geometry:{type:"MultiPolygon",coordinates:[["@@VV@XkV@bUbWJU¼Vb@Vnb@bš„@J@bƒL@LV@UVƒlUI@a™KULVb@bkJmx„šlLVxknVJk„‚xnKmnnL@bn`WIXlWLU@UxVbUVmKV„XI@JVIVJ@U„L@Wš@@UmUXUlV„UVJXImm@K„L@UVmVXV‚„LXblKlV@LXV„LlVVnkbmJ@xnXl@šbXa‚@Vana„ÒšL„m‚VnIl‚Þ¦°k@b„@@lV„nJlUnš‚VX_„@lVlK„šV„UUxVLVWVIXJšUlnnWlI@KUaUUVKn@VaVXV@na@ƒmw¯@mUkJUamI@lk@@am@@I„ƒUmVImUUw˜™@anUVaUU@LU@WaWUXWW„wV@VwnU@L@ynbl@@X@a„J@nW@@Vn@„lVLlxnI„lš@@UWKUƒnIlJXIVllIVVš¼XK@aVI„V‚@@bn@VKXLVKVVVInw„J@UWI@mX@WKnI@KmU„UVJUL@V„KW@@k„@aU@@W@InJWUXwWI@Wƒ@¯wkaVaUIl@nŽValIXWWI@UUm@anwWkXWWIUbk@UJmIUamKVUUUVVama¯VkIVVUlKnXVwX@@WVaUUVa@IlƒaVmƒkna›wk™UU@ƒU@mUVƒšUVwœl°LVbnJVU™¯la@mX@@UWKXU@aV_V@@JlkUƒ¯@V™nK@km¯k„U@ƒWUW@mmƒU@™kmlU@wkL@WƒUkL@VmLƒJ@b@V@bknUUVK@UVKUK@Uk@Wa@LUVVnUbmVk@@UU@@aƒV¯K@U@UU@WmUL@aU@WV—w@ƒ˜I„xXll@UX‚K@KXXVJna@wWaƒ£naUKV„m@UU@mUmalm@@XkVm@U@VƒLmWU@kkWxU@@bVV@VkXVlƒVƒ@UUk@@ƒmI@KUw„m@UmVƒUUwU@lwkV@IUa@mUaVIVKVa@w@U@™UJkb@n@bmJ@XmlVUxWXkJmUkUUVW™xUlU@ƒaULUšmbU@@‚WXkmƒL@xUV@nUxÇm@„XLWbnlƒnV‚nnUV˜U‚nVVz„@lbUVVlULVb@V@nUJkwm@Ux@bWbUK@UULka›JbƒU™U@U@lUK@XUJmn™J@bU@UwWa™x@zkJWnUJUUVšVV@bXn@xVb@J™L™m@X™w@`@bkb@VmXUV¯L@mW@@n@V@‚ƒL@K—IW@@aƒaUx¯@U„m@XbW@@L„V@bnVWVkKUzlV@bÆa@lnI@VV@@LnVVKUaV_VJVbnU@bn@‚‚nX@yVIVxXKVLlUVaXU°J","@@@KlKkUUVVX"],["@@UUVUkUmV@ln@VXVK@K"]],encodeOffsets:[[[110318,27214],[110532,27822]],[[112219,27394]]]}},{type:"Feature",id:"5224",properties:{name:"毕节地区",cp:[105.1611,27.0648],childNum:8},geometry:{type:"Polygon",coordinates:["@@UkVƒ@k‚W@Xn@@K„KVIVVIn™°@nWVzšl@V„_VaVK@kKWaXklaX@lW@bÆz@KnL@ašaVJ@UVL@xnLVJ@LXKlbša„¥l@nUWk„wƒ¥U@VaXa@amLkUƒKmƒ¯kƒmkIUaƒKUIWƒkKm@anw@mlwXIƒmƒUk¯@a@amUƒ`kkKWVkxmUUak_mJmw@w„mXUW¯X›_@WnI@aVwkWWýŃU@WLkU™aUbVV@lUVVnm@kUmV¯™kK™LƒwmVUUaWV™aaWw¯wƒÈ@VULUVUUƒK@nWJkI™l@Umxnbm@kbUJƒa¯bUbVxmLUV™aU@VUUWxkVVV@bUV@XWbnlUbƒbUJlbUV¯b@z„`WbXnmbƒaƒwUwVWUƒbUxmbU@Uam™@Vƒk™VaƒwVaUƒWI@mUKóz@lUlÅ@WIƒb@xXxml@XklULWKUmwUa¯KUXWJkaULmKkLWbkKUVƒImƒƒWa@kUaULƒW¯LƒK¯@kbƒL@b™x@J@bmnnlUšlzU`U@@Uƒb@„m‚n¦°bU„Vx@bkVm¼mx@mk™mVV@bkxVn„aVV@bU@mL@b²`lIVV@lXLlš„bVxn@@bl@XllIVšnbVšn°°wlbXw@mVa°lVnU@mš™VLVbn@@b„@@WVnUV@Xlxn`VznJVb@L@bV`V@šUnwšU„@WUXKV@UUlmUUlaXalLšm„bšIVbnJVIlVVaUUnWVXn‚VL‚k@ƒnWnblnlb²x„xVKVXlVXLVW„LlUVJna@wVL„¼@JVX@`@nnx@nWJU@Vx@XXKšŽUblxUš°„LVKVVlL@KnbVUnJ„IlUšƒnKl£VW„x„IlJ@nšVÞUVVnb‚VX@V_°lnK","@@@UmWUwkU@Um@@VkL@V@„„‚V„VkV@nbVa@ƒ"],encodeOffsets:[[108552,28412],[107213,27445]]}},{type:"Feature",id:"5227",properties:{name:"黔南布依族苗族自治州",cp:[107.2485,25.8398],childNum:12},geometry:{type:"Polygon",coordinates:["@@‚V@IöalK@UV@@KUaVIVVœLlaVbVWnX@‚@LnUlxl@naVLXVVaVU„J@lUUanWWI„@VlV@Xbƒb@V„n@VmVVbk@kU@V›V@X„J@zn`ULW@kK@_WVUK@LUb@Jlxn@nnWlU@@b„x@XVVU@UbVb‚@n`VI@VVLUlUIUV@KmL@VV@XIV@@lVLVmXV„@WLXLW@U`šnkb@Vl@UL@VVV„L„llX@`lIXb„J˜IXW„L‚aVL@ŽXXW‚Ģ™b@bmK@L@°@Vnxmxšn„K@xVn@VkL@V™Lƒakbl`VnnxVnUlššV@@VVXV`@šœk°JV_UalK@U@aUU@m„IlVnK‚V@U@wnaƒw@akU@ƒl@nwl@XLmV@xnƒl@VXUb@V@JlL„UšJUI@UlWUƒnLVUUaVwV@XKWkXJm_@amKnmmLwlƒUIlmUwkKƒ™nwlI@aUaVKšL@bVJ„kVUU@@K„K@a@I™ƒ@ama@UUaV»XIVa@alU@WUU¯IWVUbkVUKWLUwUJ@zmWm@@amVUaUIU`VbULmU@KU@@UmJ@kÅb@akUVylLXUmU@aƒU@KX@Wan@Vƒ°@Vw„b@bX@˜J@L„K@@U@mX@@n°KVUnW@Ula@a@_šx@WšnšK@IUa@wWm@aUUU™VVVIXmlI@yšwXbVxV@@ašInmVI@WVL@k@VšV„V‚aœIlbVK@VVLXa@aVwn@lxVI@m@UUaVKUkVUkaƒ@UymUV—VUmmU„mmkXaWK@ƒÈnVw@mVU@w„KlnXW@V@naV™VKUk@KVIUWƒ@mk@KXU@Um@@lVƒk@UVJna@UWaƒL@a@ƒXa@kmmVUUk@mkkƒamJ—ImJUUmIm±aUUkambkamVUU@VlbUbVVƒxX„WVUU@VUakU@UmUV‚U@mnUVVnUbVJ@b—UW¥kLVamVkUaWJU_UVWKk@@nl„UVVJUXm@Vm@UnVlmbnmJUbULU@@UUKWVIWxnJVb@xUL@bUJWIkxƒbkb@xVJƒbmU@kW±LkKUkVa@a¯am¥ULkalÑlKXUWƒXƒaVakImVƒ@ka@UUƒJ¯aƒX™mmb—KWU@wUUƒaUa™KmU@UXlWb—¼WLUKUb°„UlVbkbVL@VƒšƒJ@nVlUbUXmJ@VX@lbUbU@@bWb@VnLVJ@bVVUz„ŽVL@lnL@b™VVVULmKUk™Jkbm@ƒxVb@V—kƒKVnnV@b@ŽWXU‚„nV„l‚VVXVJUXlVXbWV@VU@Ubk@@KWbUUmL@JnXV°XJ@_‚`UbkXVVlÆkbƒ@VLXVV@‚V@k„KXX@`V@@n"],encodeOffsets:[[108912,26905]]}},{type:"Feature",id:"5222",properties:{name:"铜仁地区",cp:[108.6218,28.0096],childNum:10},geometry:{type:"Polygon",coordinates:["@@°a@aÈbVUlU@aVKnVV„VUlyX¹lWVa@U™VƒnUVU@m™@mUl@„mÞw„@‚xnIVbna@KVI‚J@kwV¥ƒUXÇVkVW@kkKWU@aXUWmnIVa°VXbmL@VVbnVVVUb™VbšJVbVKXkVKVanU@aWnWUWa@U™nk@mVIVK@wXxlLXbVJVlKœbl@VI@mšaXalVV„VbX@@ašalnkx@b@V‚b@Vnx@bVVUXn¤WXn@Vl@Vlzn@š`@I@KUU@ƒV£namVkXa@aVK‚nnU@anVlKƒa@UUU@amk@»kƒU¯@aš„VWnkWmkImU@akaVm@»VUV@UKnkW¯XWlkUKnIWaš@nmlIXmWUnwUwWm@wULmaUJkIUaƒaWa—klwkwmJmU@bkJ@XUJ¯W@XbWbUKUkWJUUVKnn@UmmXUWa@mU@@UI@WmXVykwm@kaULWwU@¯ƒlKUUVU@mU@UkmaUbmV@b—š‚xVnVUJVnƒ„@Jn@@bl@@knJVblInV°@nx@„mbU@UWUbm@ULVVVb@LkJmXkm™VWIUJUXUKVwƒV™UƒŽkLkUƒ@W`Um™kVmIUƒ@kƒ@@a¯lÝ¥kmJUƒn™KƒÑmbUb@Wb™ak@mWU@UbƒUVVkLlbUVƒkXaWK@LkxÇmk@@X@J@Vƒ@@X@VUV@V„IWln@mbXVWXkKWbnxVUnV„ƘInl@XUxVl„¼UV@b@b@xlLkV@VmzmV@b@VUVVLXVVbVLXKmVVLU‚@nnVWXXJ@V›¦UK@LUmkIWbk@@lUImJnšVÒVUnVVbVIVĖUxV‚@bnUVL@WV@@X@V„KlXXaV@@bƒlVxXVVIV@@WkI„UVKUkVmlnnŽƒbllU„VbXVWbblVkb°ŽVInVVV@bšnVx@l@bnVVnUŽUam„UL@bƒVVÆUbUXU‚ƒn@šVVUb"],encodeOffsets:[[110667,29785]]}},{type:"Feature",id:"5223",properties:{name:"黔西南布依族苗族自治州",cp:[105.5347,25.3949],childNum:8},geometry:{type:"Polygon",coordinates:["@@VL@Vl@@IXW@kVUVbnW@XlKVVnU„VlL@b„aVbƒb@xX‚°ÔUxV@kbm@VxkxWJœ„V¦ƒŽ@ÈnšVKšxWXJmV@n„Ò@xVbn@@blLk`VX@bššla²JVUlnn@U±lw@wnw@mlwVIX@@m@klKnk‚a„KnwmmXkƍVm„Uš¥l@nb°n@„aVwVmVIVnI@a„¯@mšU°ƒl@@VnI@JV@UV@b@IUbVJmXöºƒzllUbVa@aXUl@„U@llLnKVaUa@UmK@UšwV„bnKV@VwVK@UXƒV@Vbn@‚w@U„WnX‚@„a@m„I„™@UUKlaUaVk¯ƒVaVLXK˜»XaWk¯mƒkğwmW@mIƒVkwƒJUIšÇVwU™UkVKkƒm@UkmU@WÅwm£Vƒ„m¤¯IkJWa™_™lUbmJzÝJk„ƒUÇVU„ƒ‚@bU„Ýn™m¯LUb@`mL@VkL@VƒUmmk@UU±Umka@kUƒ@ķymUkk@mmkÝmUaUakImV@V@VÅLƒ¦ƒJUXmJXšWb@n°Æœx‚¼nV@LlbUŽUbmL¯@ÞbV¤nbVx@bUVlblIœ™@KVVUnVJUn@VlLUlmLUUUxmK@I@@VW@@bU@UJmUkLVVUl@b@V"],encodeOffsets:[[107157,25965]]}},{type:"Feature",id:"5202",properties:{name:"六盘水市",cp:[104.7546,26.0925],childNum:5},geometry:{type:"MultiPolygon",coordinates:[["@@ôyVL@nXJV„Ub„x‚bUŽlšU„@ŽšnŽVbV@naVw„a‚VUXVx„x„bnaWmXaƒ_@y°aVUkaVI„aVamkXa@WVU@aUUlUXwVV@UVšbVUnKUwVa°a„bVIlan@manw@VšklJXI@m„LVVVUVK@U„ǃk@KUa@UkaVU@UVWV_XWVXVWlLXKlLXaÆKšwVL@akKm@Uwƒ@@XUVk@VUI@wWK@aUV™I@UkK@ƒmL™Wƒ@kImJƒUÅVmkXUW@UJkx@nmx@xkxV²m@kmUV±Ikb™™@aUWl_kK@am@Ua@wƒÑ@mnUWIX™wULm™@DŽU¥›ƒXIlwUwn@laU@Vw¯ÓW@w„aUaƒb@akKƒUmVUUkL@WmXUaUV@lWX@Jk@@UUKULmLUJmzkKmVX°VšUnWKUL™ƒƒL@mU@UnVJ@b@„UV@Xƒ`m_@l@@bmbXJmnnš@°˜wnn@ŽVLX@V‚@nVl@nk@@b‚l@nn°WlXzW`XXVKnUlxVbUb@‚V„Xb@Ž‚VxÈbVlnbmn@ŽkVUL@„ƒŽmLUVVL"],["@@@ƒ@UmWUwkU@Um@@VkL@V@„„‚@„V@VkV@nbVa"]],encodeOffsets:[[[107089,27181]],[[107213,27479]]]}},{type:"Feature",id:"5204",properties:{name:"安顺市",cp:[105.9082,25.9882],childNum:6},geometry:{type:"Polygon",coordinates:["@@lL@bUK™xÅLWbkKWLkKUXUWWXU`UX@VUVlb@VVb@L„l°xXx‚bšbXUVb‚VnU„xšKlL°šnUlVn@UmVU@kUUVašblVXKV@ƄXþlXUxnU@mVK@_@ml@UU„@šblU@KnLVyUw„@@UmkšWVw@UVK@VXzVK@n„VVUUW@kVJnlaš@nKW™kaWL@U—™õb@JU@mU@@_WWƒL@lUU@WUUK„@lakÅUUlWVa_@`WIU¯mW@InKVVXa@Ll@VaV@@UXUWakUVWUIUW‚UkUƒƒmVXW@@amUUm„L˜l@UUa„wn@lašIVlnLVKUUšU@amK@kUKƒVyUU@aUImK@UXa@aV@VakaW@@UnIVWVaUkƒb@mWƒX@Vxm@UaU@W„@VULUxU@mLƒaUŽ™x@VnL@VVbUbmLkK@kƒVk@WV@bUbVakk„yõ¹nWUIVa@J@aVUU@@ImJ@Uk@¯„™V@nƒ°@bmJUUJUnUxƒbm@¯Žmak@™¦ƒVUnŎWlnnmxƒLbmlkL@l@nWVnlÆU„VnIlJ„@šXnK@„lL@VšJVU@bXL@xVJUl@VU@W„@Vxn@"],encodeOffsets:[[108237,26792]]}},{type:"Feature",id:"5201",properties:{name:"贵阳市",cp:[106.6992,26.7682],childNum:5},geometry:{type:"Polygon",coordinates:["@@nŽlLX„VJ„LVblJ„n°ln„„LlVnKlU@nUUa@WlX@l„n@‚Vb„@la@a„„šlJ°¦„Kšwn@°x„LVkUmmwUmk_la„bšK@UlK@UUm@wƒL™mnwmw@U@¯@KnL@aša‚ġXWW@UKbƒKWX—JƒIWakJ@_kWƒkƒKUU@UVKk@@Ula™mV_X@WKXKƒ@WUUnUK@kU@WJU@@UnK@LVUVJVkUK@UUJm_@UaVaV@UU@Wƒw@aV@Xkmmm@kw@IVa@KVLXU@`lLX@VKm_@yƒI@WœU@UlVl@UanU@Uƒm@U„aWaU@Ukƒ@XJmXVbkV@ŽƒIUVUbWUUKmbk@kwmV@K@mWUXUakb›KUUUJVb@LU@@VkL˜š@VXKlbXšmL™@kbm‚UI@lVXUVƒU@mULWy@UUL@VUx™Xnl@Vƒ@VxUzmK@LkV™aƒ@VVk@@n@`UL@nmV@bmJ@Xœ`WX°WVƒn@xnxnIl`VbnVlwXUlLl‚„_nV@b@bl°„V„nWJkx@nmx@b"],encodeOffsets:[[108945,27760]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hai_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"469003",properties:{name:"儋州市",cp:[109.3291,19.5653],childNum:1},geometry:{type:"Polygon",coordinates:["@@஼jpnr’``ŽpRVHʘ̤žZt^JÖA˜[†CâlTébQhRPOhMBcRSQiROE[FYdGNOEIH]MgEAMLLIAG_WMCSL@ED]PCLYC[ZIHgjSxJTMbHNEFCMEE_HSDFHSLECRNSFDRICHNADGPI\\RZGIJTIAHLDQOHG`GTNCOIC@eIGDWHIS[kiE[FMbECZS@KKS[FDWsCeRuU_DUQNOE[LKGUBM¨EDQP@HWHGDImXƒCog_~‹I_fGDG|QDUWKBC\\ore|}[KLsISBHVXHCN`lNdQLOnFJSXcUEJMCKSHOUMDIm_‹DI`kNDIGEYFM\\YPEEIPMSGLIKOVAU_EBGQ@CIk`WGGDUM_XcIOLCJphHT_NCISG_R@V]\\OjSGAQSAKF]@q^mGFKSW^cQUC[]T}SGD@^_ˆaRUTO@OHATŸ”"],encodeOffsets:[[111506,20018]]}},{type:"Feature",id:"469005",properties:{name:"文昌市",cp:[110.8905,19.7823],childNum:1},geometry:{type:"Polygon",coordinates:["@@€hIJ¤Ī¯LQDaFßL[VQìw€G‚F~Z^Ab[€¹ZYöpFº lN®D´INQQk]U‘[GSU©S_­c‹}aoSiA£cŁ¡©EiQeU­qWoESKSSOmwŸćõWkàmJMAAMMCWHGoM]gA[FGZLZCTURFNBncVOXCdGB@TSbk\\gDOKMNKWQHIvXDJ\\VDTXPERHJMFNj@OwX@LOTGzL^GHN^@RPHPE^KTDhhtBjZL[Pg@MNGLEdHV[HbRb@JHEV_NKLBRTPZhERHJcH^HDRlZJOPGdDJPOpXTETaV[GOZXTARQTRLBLWDa^QAF`ENUPBP…\\Eji`yºEvåà"],encodeOffsets:[[113115,20665]]}},{type:"Feature",id:"469033",properties:{name:"乐东黎族自治县",cp:[109.0283,18.6301],childNum:1},geometry:{type:"Polygon",coordinates:["@@ªVLP`@PEdNRAHOPEAKHEVL`GZBJfvdTAXNNTZJFPrHHNpKTD\\ILHbEVd^J‚OHLh@NNBnHP`\\xH@NBRLJTlŽNv_^CTLd@bNDVFbxdFV€UPBTKOGEOUO@OEBXQP[H_EI\\EbeYa@UO_J‹MEJ_IEDKJUGMDcNUd_FMTEJSGoZ]EIYGO[YW‘gEQ]a@WHEDQKUSDUGAbYBUpSCYNiWqOSQEoF[UcQISWWNMSDe_cLQ_UBiKQOOASQAWgS­ā]ZaŽSPÝZ]XMXSŒ[^oVËNgNKlE RôEø"],encodeOffsets:[[111263,19164]]}},{type:"Feature",id:"4602",properties:{name:"三亚市",cp:[109.3716,18.3698],childNum:1},geometry:{type:"Polygon",coordinates:["@@®ĂhTBXTRPBRPjLVAR`dKf`TC‚NXMTXRJVdE\\FpTRrPjXZMTDVoZABaVHTCLVCRGF@X^bFR’hZXP\\ZHHMA[^wBWXJlW¤EJ[bCTOF‹WWMm@ILMGWQ@DQ^QNWFSHEbF`OXNbO„VNKTEPDTLTCCVTREfvfEHNbRAENH^RJXCFHNFRpVGHWISDOTMVCZeGamaLoLÛD¹¹ėgsia{OųE—Tt‰lɂwr}jŸR±E{L}j]HąKÃT[P"],encodeOffsets:[[111547,18737]]}},{type:"Feature",id:"469036",properties:{name:"琼中黎族苗族自治县",cp:[109.8413,19.0736],childNum:1},geometry:{type:"Polygon",coordinates:["@@bRFnHNbHŒgN@NPEnbXP@bND`NT\\@\\QZb@`@J]V@XhžDpW„nCJGHGXO@CR§FANHVKLF\\MPVR`CvVfQtDPKpGHG@S`WJP~^dSTHWX\\RHTFACQTIAUPOU@MG__IaYSFQK‘NSbORHXCZeTFJg„B`YBMNMFi~IVDV[tGJWXGDQRGF]ˆJrALgESLSAYDGIaFeXQLS\\MKSLSQYJY}eKO[EHiGSaK[Yw[bmdURgEK^_kcSGEOHKIAS]aFSU@Y]IWFUTYlkP_CUOUEkmYbSQK@EMWUuAU\\M@EpK^_ZMDQ^OXwC_ZODBrERURGVVZ\\DTXcFWNIAWJWAYUUFYEWLQQaCIZeDM`cLKRGpanJZQd"],encodeOffsets:[[112153,19488]]}},{type:"Feature",id:"469007",properties:{name:"东方市",cp:[108.8498,19.0414],childNum:1},geometry:{type:"Polygon",coordinates:["@@ºŸx‹JYZQ”IŠYXLl@dR\\WZEn]bA\\S~F`KXaDeTiNO^EEKWEDQXITBXaWaDQMUJOIaTWf@NJV@dSxGZ‰Fu_@WMKAUˆ}AQ@MwG_[GOAmMMg@GKP]IUcaFKG[JSCoLGMqGEOYIMSWMSBucIeYA_HUKGFBLOFGPQBcMOF_@KO©UAtERadwZQ\\@ÊJÒgòUĪRlR°KĮVŽLJ"],encodeOffsets:[[111208,19833]]}},{type:"Feature",id:"4601",properties:{name:"海口市",cp:[110.3893,19.8516],childNum:1},geometry:{type:"Polygon",coordinates:["@@ńZƂtĢ¬æßFuz¹j_Fi†[AOVOFME_RBb]XCAKQKRSBQWSPY\\HbUFSWSPoIOcCOHIPkYCQ]GdGGIFQYgSOAQLK`MFUIGa@aQ\\GGUFcHKNMh@\\OYKAigsCgLSF]GOQO]@GM]HyKSHKPW@Pxi@EMINYREXWRQ@MQcFGWIAwXGRH\\yDI`KJIdOCGRNPNtd\\UTMbQYi@]JeYOWaL[EcICMUJqWGDNZEXGJWFEXNbZRELFV]XQbAZFrYVUBCLNFCHmJaMIDDHXHEhQNXZ_TARFHVB@DTQIRR@YHAJVnAbKFUEMLd\\c^ÍÞ"],encodeOffsets:[[112711,20572]]}},{type:"Feature",id:"469006",properties:{name:"万宁市",cp:[110.3137,18.8388],childNum:1},geometry:{type:"Polygon",coordinates:["@@^J@ZTVbET^JBGLFPTHld]`FLQhcVanx\\\\ZbLHTGj\\FLP~fIZRZPVTQFSVAFJE^NDLEE[~LjsxVTG\\NZZNGlLRRGLJTV@hPZANN^@T\\NEPPbDZXO`d^HSvcJDIV\\XZAJUFCLNP@PQ¤@[ïKLÑIÏ]ÇE±I{uƒ­YśUćFcYUmsVeBSVgB[RO@aYYPO^]@UVaNeDShMLG\\EfFVE\\F`"],encodeOffsets:[[112657,19182]]}},{type:"Feature",id:"469027",properties:{name:"澄迈县",cp:[109.9937,19.7314],childNum:1},geometry:{type:"Polygon",coordinates:["@@T\\GJCXJH@fJDDPNCNJENN^NLHBNSx@DDYbBLLDRbjZTj@`XXTlG^Xr@PJLW\\WLTlWR@HDJTD@X_PO@STMDNTMVV@NLDM`M\\XM\\JNBH[PYZ‡úYzŸ`Ċ\\ÎÝd]c[NKVFLEBaUmBIZGQ@JQSR@CUAEGBQ`SWYRMFgWGCGJCbNnIDGMEDKVAZUEqBYRa^WEUFKYQMaFWXEHIFWMYHCrXVIIiaK@aMCUYNSIISTwXALKH@XWXIEIJQCG[IEQDE_XSBaa[AIPW@]RS[FWS[CD]PEBYNGFSaSyJG]@ugEUDQlGHiBKHUIoNSKqHFaPMICK]UUHIPDJMuCA[SCPIDIOILGAEmU[POPBVSJDREBGS[QXWSGcT}]IO_X@TGHoHOLCX\\ELT@LYTD‚aFENF\\lj"],encodeOffsets:[[112385,19987]]}},{type:"Feature",id:"469030",properties:{name:"白沙黎族自治县",cp:[109.3703,19.211],childNum:1},geometry:{type:"Polygon",coordinates:["@@D\\RV]dTXELnHr]^@LETBBRTHPi^[@U`QTHDJ`MGSogDIPKdJ`WVNHCXHl_DJR@AH`FBVPUJLHKNTJOFFZON[ZEHFCJlMJ_ŒCn`CJVNGPLTNDFIdVTWEIPmRKMc_kDMWGGUTAtJLK~\\f{pqD[LAVXRCH{HC`eŒJ`}@W^U@I@_Ya[R[@MSC_aMO@aWFmMOM@‹haGGMEmaQ[@MESHaIQJQ……MckBIw[AOSKKAMPSDSLOAV_@@`KJRbKRDfMdHZERgAWVsDMTUHqOUr@VQXTT@Tƒfg‚L^NH\\@heTCZaESNObHPƒHeZF\\X^ElM^F^"],encodeOffsets:[[111665,19890]]}},{type:"Feature",id:"469002",properties:{name:"琼海市",cp:[110.4208,19.224],childNum:1},geometry:{type:"Polygon",coordinates:["@@TP\\pATHTGlZDJGAQjE\\Rb@jVBDCN`JZ[NCNHNXbULPrP\\KNbMTLjJJRFP`“pNLZz^FLRHjVPZ@hxVKbHBHMNNJFRlLzGPnNHhIrHHADcPWdUAmEMVQDSKYHY\\EhBN^HpXGNDBNNBnIß‹Å_g{³So]ã@ORO@KMEDIVYB[WJUICudGTc]P_YWaCOOMFS[]@MMYBgOU@ISHKQQkKMHYY[MSHwUit}KF\\KFMCF]EIUBETSROUKTLT[NKTWREfJbCHBZKTFTKh"],encodeOffsets:[[112763,19595]]}},{type:"Feature",id:"469031",properties:{name:"昌江黎族自治县",cp:[109.0407,19.2137],childNum:1},geometry:{type:"Polygon",coordinates:["@@`ZĤd–`òüˆ˜ “BSPGP@VSbQ`‡@]HC~T^SE]N]FkW]E[fY„GGOPaTMbFDYfS@g[MGK]h„e@SSSRW@UVqrPVGNStCXUhBFQGYNcCeLQQaLI@_`@EUwcEaCUaMc@SK]Du`MSkKI‡~BVNL@X`‚EvYŠwHcTU@MIe@SXJbIPNVCRXbWbSAWJCRXFFL]FMPSjCfWb_L}E[TaBm^YF[XcQk@WK‰Z“JYRIZwŒ¹ "],encodeOffsets:[[111208,19833]]}},{type:"Feature",id:"469028",properties:{name:"临高县",cp:[109.6957,19.8063],childNum:1},geometry:{type:"Polygon",coordinates:["@@jD`hNd\\^dZädĒH´Op@ˆùZY\\OAGIMN[[W_NCNMKU@NUMSNCTSP@`O@WSCCI@GXQSkXKX[IK@OWqH]SkWW@_SiiYQaKCAKZaCCw@MTGAMKM]FMMIMDSM_HGHRPKCBGSJJIYH[QOJCHMBDGQJECMTDQKFGTCEGTF`NFEDMFaGSNwIiTGhYJD\\KZODC^@FTKND`XBHKJNKFBNhG^FJMPcHEZF\\QPRjQTAdgNOPgQaRSê"],encodeOffsets:[[112122,20431]]}},{type:"Feature",id:"469034",properties:{name:"陵水黎族自治县",cp:[109.9924,18.5415],childNum:1},geometry:{type:"Polygon",coordinates:["@@R]NC`YL]FoN@V[vBXVFNL@TRZalnVFVP`DlOZkVSXEE_F[EUFeH[NKTgfCbMVU^@P]ZObZP@\\QhATUfAtUasñiāEoI]eYǯ@aKmaeƒWuCºKÜKpnbHbYfUDSNCPJTRAHJTDJSfDNLHXC``VBNGTYCQDIXMDSP@xLNEFRNXBIpVNLXah@RgF@`qOML@LJNSPLbaHAh@Jdj"],encodeOffsets:[[112409,19261]]}},{type:"Feature",id:"469026",properties:{name:"屯昌县",cp:[110.0377,19.362],childNum:1},geometry:{type:"Polygon",coordinates:["@@\\OnVBFKHPJCJOJTDB\\vDINOCGJVVL^JDONEbrGTLpMVJLGjAHGRkVChF@vH^zIbTETMHAZOFC^\\DXT\\EffAP\\PdAV@UIYfS|S@YPICMeM@sC[_A]VQEwyHSMuNcAUlQJMVGMS@mVBZPFO\\CSFQK[LqDMACiUa@[QiFBRIHYCHkGSBS[oSOqB‡IE^QHCRWHIXsHU\\UC}JEjMNAN_ZƒAIhSEYfWDQGaPMTL’ERZTJb``NHV@"],encodeOffsets:[[112513,19852]]}},{type:"Feature",id:"469025",properties:{name:"定安县",cp:[110.3384,19.4698],childNum:1},geometry:{type:"Polygon",coordinates:["@@JjDNdJ\\FbKPXfZ^Ij@RZNaVSc[MsMOHQPDJcLIJ_zCG[HQxWJBHXdENRR@XQFWZQQGOFSWUCI[WCJuRGLXNMPLhCl[Ta@SqGgJMGOmyHkKEQMINMAGaGULgwY@UOGiKQ]EYyMK”oO_QEIIKiNSMa[LqOKOaVMWMGMDY\\_IKrL\\ERT[DEPYOUA@nNTUHINkRBVMdNvGTxzRF^U`BD\\@tfNDNOJ@Z{TeTJZ@VU€cB[OBOeeQT@^OXBJb\\AbWTF`RCJFH\\RDJIJFXW@WLGBKxWTSJJMTVZND@bbL"],encodeOffsets:[[112903,20139]]}},{type:"Feature",id:"469035",properties:{name:"保亭黎族苗族自治县",cp:[109.6284,18.6108],childNum:1},geometry:{type:"Polygon",coordinates:["@@FJp@fxpQ\\ApN\\GNPNBM`HLMrXLXj\\PEHnI@WUCEM\\GTc\\GZYHTPBHRCPTd€H\\K\\@HXi–BJILJJAVNTOZJNtFPC`YxDPWci@IBgbGKaTOIM@KNKrP@_hE@QbgKWUMJoWAQMFEKM@wTONCJWRCZDHSAM_UD_GWMKeCITSCGIQBGXUHQoMEEGWDQIG]FMQBMaFGueFeSQDUSDSKOCSFMLƒUaPWM_PaEGFETMX]RCRR@HXKN@JNnXXEŒSPaDI\\£FkXWIAX]xB\\GN"],encodeOffsets:[[112031,19071]]}},{type:"Feature",id:"469001",properties:{name:"五指山市",cp:[109.5282,18.8299],childNum:1},geometry:{type:"Polygon",coordinates:["@@TCNOLBTLBPx\\AJdl†NR†RIbJTGNF\\@RcIYbmHoLQdKN_fCJYbDRRXKZFVEZVXBXIJBXMdESW[CUYHUVQFQAqsEIMPYMSBUIIJKAIj•GW[@[LGScDOGQOAGSYZ[HSd[HFNVD@XmJFG[OWiWKNqGKN_MAMO[HoM[BoRewo@Y^HpITSFENc`MVCdHNIVCLJFI`NFIŒP`@VZbaf[FFJG`O\\WRFA@PVPFPPH"],encodeOffsets:[[111973,19401]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hei_long_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2311",properties:{name:"黑河市",cp:[127.1448,49.2957],childNum:6},geometry:{type:"Polygon",coordinates:["@@VÈÞ@Žkx˜nXŽ°VÈa°V@kôw„b‚š„JVškXlVUx„„@ŽlL@xkVV°ƒ„VbxlVUnVxk@ƒ„ƒKkŽVb„Il„@°kVl„@„™lÆnkll@@V„VXƒŽš@V„²bUlƒVlV„U„VÇn@nkJšŽlkVbœ@›x²V@n°VUnlKU„n`@n°bWLnVUblVUVVbknV`°kkŽl@@V°@nz„J@XšxlWXb°n@bƒĠlbXb™bVbƒJ@Všb„a@„„@lbUbšVmnœ@lšVmnIW‚œ@WbÞ@„n@x°@š„ĢaƐéϚnœ„‚lČ¯ĠŻÈwm@ôçU™mm£Xy°UV™›@wÈ£Ǫ¯kõÝçUњ™Uķ‚ƒĢkVфÆšÞU°nŎ¥ČUĊx°m°¦żVƐœx°ƒÇ£@y„UônރÆ@Èĉ°Kô¦šW„kWU—bÇ»@™ÈĕWÇÈ£ŤU@›n£ÆUUKVamanwŃmÝJ¯k@JƒIkaVaUUÇbkaÆÑkWmÝUۙ™Ý@™ƒwnU±ƒ@kkV¯KUkƒJƒ¼U¦ƒšÅ@ówķaķůV¥Uaó@Åwmƒƒ_kVƒwĉ‚ĉmmn_V»™a@U™ƒVwķóƒ‚U¦LǫéóXÇmōLǓÇķxÝkƒƒĉ™kmakbUĶ°@W¼„@bƒšÈÆ@Ė™L„l@„°J¯„mkl¯L݃±L—amJ@¼ƒ„™VƧUó„™UX˜ċb¯ńVbkÆÝI@llx„k°V²šV@Uxގ˜L@b„@b™`ƒšÇzkókݤ@ğ¯Wƒ™LĉǙLmmnċVkbUaƒL@Ž¯„‚bU°ğL݂Ý@"],encodeOffsets:[[127744,50102]]}},{type:"Feature",id:"2327",properties:{name:"大兴安岭地区",cp:[124.1016,52.2345],childNum:3},geometry:{type:"Polygon",coordinates:["@@k›ƒϙmƏêġb™ƒ¯@@wƒmÝ@XV@IlŽl@bUxl¯VlV™bV@ULVlUV™_kx™VVV™ÈÝJ@„¯šU„™lm¯x@xóÒĉ¼m„¯Wƒxţ@Uz¯ƒWwnUwťƒ@knƒWƒ£óVƒUUwğyó¦WI—Vmm™I@±kwÇ@@bƒ@ĉ¼ó@¯wó@¯aó¼›KՃaUwmWUwÅI@aƒKó@Ua™LƒaƒVÅwō¼UUÝl±I—¤VxÇx@zkJmnn‚mbnz™xlŽƒl¯ČkJl™°@„kb„Žmx@x™@kêmVnŽWxôXšxU°„bWLóJnÇWĵ„V¦™ŽƒUUb™b™ÆġK™šk¯™VU±aXmċÑUwĉKġ„k„™ŽVxk„ÇKkbƒIƒ‚ÛXWl¯bƒŽ™X¯K™bĊš„„ÞVƚnŽĸ²lxUŽ°n°òÈb‚¦—xVbƒŽƒ@¯„Vx@¯VķÞČlĊ°KĸŽȘI°¤ČIôŽò»ƨnȰKǬ¦ôWŎÈƨwlƒnKVXmbX`lbšwkVW‚XXŽ„L°a„ƾaĊ£nƒ°@°¥ŎzÞ¥‚»œalwôkƒJ„a@ĶK„£„bU°ĊxźVÈUĠ¥ƨ™VI@XU°x°Ln¥šw°UmwXm݁V¥ĢŽ°@nU@mÆ£š¯lKœšÜw@aÅU‚¥UaÝIkmV²‚nn@Ķ»@Uk¥VKÞ@ÞÛ@ƒkVmĢa@_ƒJómƒǖ¯Æw—óÇa@alƒUwšwĢřšk@wÆWXUWXƒWa™m@_ƒ»ÇéXaĸwVa@ÝKkUWkX‚kšKXxƒn@lĊV@¯m¯nřÆwš¥"],encodeOffsets:[[130084,52206]]}},{type:"Feature",id:"2301",properties:{name:"哈尔滨市",cp:[127.9688,45.368],childNum:11},geometry:{type:"Polygon",coordinates:["@@°`„_šJlUšŽ@„„@V¦°JUšŽnLôlnŤ@@šÈaUÒVbkbl¤ƒzk°ÇVÛô°IlVUVôU„xÆU„Ž@bźĀ„º@¦šb@l²‚UVlœ@°ÒĠxšnXxÆVô¼Þ@Üx²KލlƒVÑ°UȰôlwô@²ƒĸ°„lanV@„šVŎUll@bÈnÜm„wĢ@la@ÝÞb°UXb˜lŎ²ÆškšV‚I@ŽnJnĠŽ°knƒÜbĢwna@a˜kÞKƒĀ„a‚™œ‚‚IVbU¥wĠwkô˜xnLƒċVçkaUƒ±IUmnġW„°WôĉšalƒÞÅĵ¯@W¹XÝaƒb¯a±X¯ºLƒaVƒmkLóƒƒbkaƒVUKVkkKV_@aÝykk±L@ƒÅU@yV_™aU¥ówÇx™@UkVƒn@lƒkÅlwšWVwUkĉmkklW@šašbVwnWWƒ—wWL™™@Ušƒ™UƒÇLšÇmƒ„@wƒJĉƒL¥@ƒÝ_@a¯y„UWw¯ƒ¯Uġx¯aÝXVmaU£ó±›¯nwƒa¯óÅVƒXman™„Uƒ›lUXkWa@mkI„›ğaƒm™IklÇU™„kĊƒƒzkKƒš„lU„ōĬlš™„@ŽnX°@llUxŹ²mKĉVWwk@UbUK@bmVmI—ƒVmwaWxXlWȁšmºšÞÆbUxV@ĵńWÆĉLkWUbƒaWzkbĉ`U„±LklōwUVÝ£™UW`Uwk@mk¯VkaõVX@WbL™K@XƧºWzxƒK@lmX@bkVVÆk¼Vbk@Vn"],encodeOffsets:[[128712,46604]]}},{type:"Feature",id:"2302",properties:{name:"齐齐哈尔市",cp:[124.541,47.5818],childNum:11},geometry:{type:"Polygon",coordinates:["@@Þ@ށĠKV¯a°ƒ@„KVblaČU‚mnnšKĊȚKX„°ŽĠ@Þ£ôllÈy„™š_@a‚ƒ@a—KݍVwU@±™¯Uƒlkw@kÞJlÅUa°ŃČaW—šVôƒƨVšU„ƒ@»nI˜b²Kބ°Klkn°ƒ¯I@ƒƒkšK@ĕÇń™@aƒX»¯@VĵlaÿVamI@aÅÝउýƒĊȗJƒôȁÅkmƑۃ@kxġ@@l™aVk¯»ƒīŹaƒkƒ¥Å¯™JUaWU@@w™aƒ»„KUkÆkUm„UmwÛ±±UUbUŽUXƒwWwÆÝk™lkUanaWwnKl™kal¯ka™ƽa›kÅx™a¯@™amb¯V™lÇwÛĀ™V@x™šmêVƜVV‚aôV„wÈx@šˌx„¦VÞ¯VšlmX@‚ƒL@¯Ua¯LmV@„„°X„ċK™V™ƒ@UƒÈ@‚¥@w—ƒġIU™km¥Źwƒ¦¯lmn@°kxVV@¦óam„n¦l@nx™lĉVóšmx™n™ÒĉĀĊ¼„þ„šǔêÞ°ˌĠÞÒ°ĀɲĀƨźˤȤƨĊ°w@£nymwnkUUV¥ôÑVmkÆmUUVa™mVIkmô„lxkXÞþƒbl„ƒl@kV„ƆƒV„xV@š¼VÒ@šŽUŽšnnނJ"],encodeOffsets:[[127744,50102]]}},{type:"Feature",id:"2310",properties:{name:"牡丹江市",cp:[129.7815,44.7089],childNum:7},geometry:{type:"Polygon",coordinates:["@@U`lLUlVL„Ulb„aô„lKnŽU„„b‚K°¹²W°b„aÞb˜knyUlUkamř²L@m°@lšmš²n`ôÅlK„x„ÜKnxV@„l@œƒ›ÅXyW_k@™wm™ŹĕmƒX™»‚ƒÛ™l°ƒôšÈ„»š—ô˜ô_WW@Uœal»šwU@@wšUVƒš@VƒXI@w‚Ģ͑ÞȻ›aU_@mUkly@¯óV»XmWUXUWmnm¥nUUaWLk»Æ²IÇa™wÅaÝ°¯nUa±a™ƒ™@¦õÆğ„@„™@Åb›xU܁nÇłlb¯¦„ôó»mƒ—@±ƒUk@Wwƒa¯xU„V°ƒxXbǎŁUV™™ƒK@¹ƒKUaȯ@ōݙXƒal™ƒlÛkalÇUǫÇńÇakbÝƆ¯nlš¯Ž@¼™VUx@x¯W¼™Æ¯šmĖ„Ĭ¯ČƒVk‚ķÅmxœ°ô²V¤‚bUnÞW°bĢw°V°„XxƒV°z@bÞ`@„‚¦„KĊŽ„I@xƒŽn„™ÈÈK‚„šV™„@VššXK˜xX„mXUx™a™b@‚kXllĊnVlUx™XkxlÆk„m@U„Vlš@ÈwôxV¦šbU`@zÆV@„²KllÞz@b"],encodeOffsets:[[132672,46936]]}},{type:"Feature",id:"2312",properties:{name:"绥化市",cp:[126.7163,46.8018],childNum:10},geometry:{type:"Polygon",coordinates:["@@ऊþÆÞ@bnJUb‚ĀnblŽĊš„„ÞlĸwǔÈŎKÈnôWǬê‚KV¥„ĸôUxš„@VšbU¼m`nnĊŽĊ„xlUšmkaVÿšLšwš@°»UmbKmݙUšwUmVknKUUl¯ƒKU™ƒUȃ‚™nK@ĠkX±lX„°„L@¯¥@wV_m›ĵ¯Ww™L¯ƒUkōƒÇVU™l›w—V󁱃¯aƒVka°wVk°mÞ¯Ŧřƙl™²™Ŏk™U@ƒmUkb¯ƒķŽ±„ó@kxȯó¯VUÒk„ÝŽ±LÛwÝ@ó»ÅUWw™mğw¯Ñ›@UkV±@k™a@¥ƒ¹Źÿ@aƒÅVƒwóVVUkU¯JÜóÈUl¯„yk£laUaVÑÇb@™ţ@kmómK™V¯IU¥ƒ@@ƒ™kV™Iƒ`@ô™¼„blU„lƒ™bÈb@xÇKkĢɳaÅɆō@ƒŽVƒK@z™@@¥ÆKnÜ@@aۏUw›wnU‚ķ@ƒ_ƒV°Ž@„klVššnULVVÞbVl@°™@nx™n°LŚÆlV„ȃmU²@VmĠLƒx„n¯xkWƒzšJ‚wnLmbXbW°šÆ‚™²™@™Žšx@JVx„L‚Ā²Æ°I¯º‚È@ÒnÈ"],encodeOffsets:[[128352,48421]]}},{type:"Feature",id:"2307",properties:{name:"伊春市",cp:[129.1992,47.9608],childNum:3},geometry:{type:"Polygon",coordinates:["@@ƒKƒ¯kWW²ğl@ŽmLšÇ„„VVš„Lk°VVmLUlVn™xšVnނLnaVŽ¯¼™@™x™KUĀlb™n„`n„Æxô@VbU¦ĸŰĸbôxÆ@„™V¥„»„IVl°LUŽll@²„mV„x@ššÞܚÞVnŽlXÅÒlbÈaVVUblb„J@I°lÞIn‚Æ„mxnbUbVLÅVm¤@œţVǤXÈÇĖ@šÈ¼˜aXVÜaXbWŽnzŎašř„KôbšUlw@¯naÆKnUU¯Üa@mkkVUĊm„™żÝ‚ǖŽ‚K„™°L²lÆI@ƒ¯¥ĉƛVaÞk@ÝVaĠlnUVwƒœómaƒ@™wĉ@™a™VƒxamX@aƒ@UaÅLƒaVWƒ_nWm£nWm_ÅV¯ƒm@m„󤁚ݦƒ¯ÅalmX£ƒ™VWUŚw™mÇ@@IV™„WUw@ašI@„k@wŎ»Wƒ„ƒ™ÅVaœK›Ika@¥lUkUlwÅwVyÈwWU@a¯U°m—Ç@UçƒaVa¯mV»ÅwÝUlƒUk™V@k„mUk‚X£šw°@@ǃaÝIƒƒam™Ûam„¯lğmmI@J™U™l±ÅōŽ—kWa¯VÝa@Þkbġ@ƒxÛnÇm@akkōVōl±škšÅšťŚÝ°¯nUl¯xlb„U°b²„ô‚˜Uœxšk‚VÈUŎ„Vl°„šKXxĶ°nœU`@x°¦@"],encodeOffsets:[[131637,48556]]}},{type:"Feature",id:"2308",properties:{name:"佳木斯市",cp:[133.0005,47.5763],childNum:7},geometry:{type:"Polygon",coordinates:["@@nš„b‚„ÞJ„b@ȯ@™xW¤Vlƒn@lšUVlk„ÞVÆxU¼°nUb„bVèÈ@˜ŽnIn‚@šĢmlUw°™żƒ‚VUn@lnL@VôbšwĊ‚lœ„JķĸĢl„wôwƨxVVUƒŦšxšLź™Èš°`nnĠwŎJސĶwôJ„@¤Xn܄ĸlšn°¼È°lŽ„„Uš‚b„xš@„l@ÞÞÈm°„lôwšL°¼ĸ‚°Þ²nĠ@ôwÞ`ŤI„V„ÒĠU„„@„VJĸbƄ²@°ŽĊKšœ„JĶaĢȰ@ô¥°nš¤‚bČUš@Vx„mUw@a݁ţƒÇ™ķƒ@ĕķīU¯²@ÆmVÑô¯X¥ċç@™ĉ»U¥ÝţKWVÅkUVÝŎUmǍÝx¯aķxÛUóL¯a±óōb¯™ƒÑŃVÿƒ_Åķ„a@UƒK@wm@Van@UmmLVa—@VImmXUWƒÝUřƒKUwÝUUƒkVƒk@l¯X›‚Å_ƒJ¯k™Jm„ÅLƒa@¥U@¯Vƒz¯@ƒ`@¼šmxƥšŏKÛk@±laÛ@@Xm@™ƒ@xƽ@WŎnšˣĕÅ@@aÅ@@nÝbǏ¯@ƒ_U›kUWƒkb™wÝU@ç„Wlw@anIƒ¯lyœX°m°VšašÛšm@„mVwÞK°ƒšXlaXmm_ƒ@UƒkwÝK@ƒVI™ƒXmV»ƒI@aƒ¯ğW™bġaU_¯JU¯ġŽƒ„ĉ„k„ō`±nÝÆk„™bóĊ¯Xƒ‚ĢX‚mVn²JV„lbUè„ČmK—wlóğx‚xV¦UaJ›šƒbƑÿÝL—l@bmbġx"],encodeOffsets:[[132615,47740]]}},{type:"Feature",id:"2303",properties:{name:"鸡西市",cp:[132.7917,45.7361],childNum:4},geometry:{type:"Polygon",coordinates:["@@‚LšKVVnkšbVšÈb‚²U°VnklVlaÈL@anU°ÜmXV`œnôLƒèšxlŽšLX„˜L²ašVVmÈX@ķ˜lnU„Èl`ȹš@ŤŽ°U@x„KnnV„mlnnUl‚lVnnaŎwlVÞ҄@n¦šLVŽ°lšwVk„Lšaގl„n҄š@xmLÞ¤Wnœ¼‚WÈLVVUxlÈô„„WVaU_VKšKXUÆbn™‚nôK„bÞw°bÆWXamVwœK˜™Uw¯WUk„UlJUwVUa™@@kmyzm›ĉw@kVwškƒW¯ÅKU_Vmƒƒ™xU@aW@@kK@w„a@Kƒ@@kVUƒaky°_Vm™kna¯K@™ƒL™wġk@@IÇóX™ƒwVakmV@mwXUWanƒlĉ@ǙUw™KƒƒóšܛNJۄm°@›w—Å@ƒ±b¯Wƒ¹„WVwŹĕ¯kVmōb¯w@aƒwmV™UUb™V™IkaVwķ™xk¼›b@VXXó`󗙘ƒ¼Çó™¯„kŽÜš„š¼WŽn„źĖnššxl@X`WzœÆ"],encodeOffsets:[[133921,46716]]}},{type:"Feature",id:"2305",properties:{name:"双鸭山市",cp:[133.5938,46.7523],childNum:5},geometry:{type:"Polygon",coordinates:["@@™UƒƒUwó™mÑÞÑUÝÝUkmmŃyV¯ī„¥ƒUÿĉ¯mÇkaWbÅX¯aÝxƒaóLmmšÅaWV™LULV`UbƒXóƒkÇVwUUÇKX›»XmÝ£nK@wƒ™mÑkƒÝ™bƒKUl™x¯kU™Km¥ƒ@ÝÑkUōxmbUmkVkmmnkUƒmmƒL@w¯Vţ™@Ǻk_ƒÇmV—k@ĸVx‚VÈ°lLkllšUbōwƒnVW¼nlUx¯XmWUnÝ@™xÝUó¼¯J@LVbkJWnkb™W¯„ÝLUxƒn@‚™n™Ü™b¯U¯n›Wkz„°mJ@bkxƒX@èÞVšxlaX„lVVœ„`°@ȐÞa@mÆ@@bÆ@ˤĖm™Xōƾ@@wš„n@@WÜ@kb@²ÜlŐLƦ™nw™@»„_°@„y°UV@@¦„bÆKnƒšI°l„IÆ`œ°W@k„llUV„ÞVVx„LƚÞVX„WVnnUJ˜@UbnKVnm@Ubn@@x„L@VƒbÆĸ„`UĀƄ„Ò°šŎa²ô°bôKÜVĸw°bÞwȎVnÞōVUÆlXU"],encodeOffsets:[[137577,48578]]}},{type:"Feature",id:"2306",properties:{name:"大庆市",cp:[124.7717,46.4282],childNum:5},geometry:{type:"Polygon",coordinates:["@@mÇ@сǰ¹¯J±ÅÿƒKUw‚I@™wšš@š±Å‚™X¯WanamKx™I„ylX°wƒm„wğKUn±@nVDŽUƒÅkƙ¯Kšmmwš@@¯UkÝaUUVK™mU™lk@ƒ¯„U„`ĸ@V‚mœxVxܐ@bÛ@m‚ÅL@¦š@@y„L‚U„Ŏ@ÆɅɴblġÈL@wÇaša„ƒkkVƒaš»@ó¯_ÝJ™wÇaÅXny›U¯¥Å„@w™bÝa™Lmm@@ƒVUŽlbğVmš™¯Xƒm_ƒ`¯_Ux™m™L™a¯b@mƒaó¦Çk™¤V„@bóJknVx™VXx±aƒLUbVxkLVlLWlƒ@nX@VÅbWlÈnƒx„bWšÅbmŽ@xœbml°b™„XbW„XVmnn`ƒLmšnbmb@šk@mwU@@š¯Jlbk°lbkšmLXxmbVbkllšÅނxX„xVWVVa²VܲnxƒVVnÅlVlƒL„¼šb@xV@XŽVbšIÆ°„¦„lźb„Ĭ°¼Ulšb@kĢ@lw„@ƒÜlnȂƄóȘI„ĉ"],encodeOffsets:[[128352,48421]]}},{type:"Feature",id:"2304",properties:{name:"鹤岗市",cp:[130.4407,47.7081],childNum:3},geometry:{type:"Polygon",coordinates:["@@Þ¥‚™ô£nƒn@°„ÆUn`mXn¤mX„`UX„bÆKVb„@@bnW‚b„wšUšbĊ@šx„@nbšWVmƒ_mm@ó»Um„ŘWXkĠ»²¯‚¯nķšwŎ@ĊšŎK°bĸUnјKȦĠÈbÆknJššÆUĢV°IšŽšVƾƒwaV™ƒƒkÇ¯¯»™mķkۃWm@£ƒóIĵxݏōIğxmm¯_ǙŹš™K™wťŽ„UVUŽƧwóxƒxġkĸķƒIk›ĉ™xóa@UmK@kVmUŻ„¯šVxkŽġn™‚@mmJ¯n°V@bXVÇxUzÆxkxlVkV@¦lbœJ›LUbšÆƒ„X„ō¼@xƒl@™J@bVxƒXUš@JÈ@šn™xVÆUXš‚„W¤knÆb„°"],encodeOffsets:[[132998,49478]]}},{type:"Feature",id:"2309",properties:{name:"七台河市",cp:[131.2756,45.9558],childNum:2},geometry:{type:"Polygon",coordinates:["@@²mŎ_lƒĊƒ„ƒĢV°°IV`ĢbšaĠX„°@b„JU¼Wnš„UJ@„ÞLlxV„„@n`lIUa@K°Iô»ÞVšwÞ@VmnX°WVwmkX»‚U„mŎxVak™lkkKǯUUwÇWUn™U±b—KWƒ™Kk™w„çóK›mU_nW¯ÛmV@bÇKkbkUml¯U±VÇaU™™amlUU™LK›„k@ƒU@mwÛLƒŽƒwkLóÆm_™±™nkŽ¯@@n±KnŚlbkVV‚mz—lWXº@Ķ°"],encodeOffsets:[[133369,47228]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/he_bei_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1308",properties:{name:"承德市",cp:[117.5757,41.4075],childNum:11},geometry:{type:"Polygon",coordinates:["@@lLnlmxn„„IVVlUnb@VVxXJWL@LގVnnV„J˜_@wkmšK„b‚x„wXk˜WXXšKlb²K@nVVVb„L@WlU²„lKVnUJVz@VVb@lżmVUVnbôaVX@°Ub@lWbXš@b@bVb°x„@VxÈLVlšaÆ@Þb²k°@lVUŽ@Xn@VW‚LXb@¤VXšKVVVLnm°_ƨ¤@aUIVa„alkX›°k„™V@„alwUVy„U@k󙰃na°UVUUmUÆw@mkLVUƒWVI„WšLnn@xlVnK„myU@ƒU°UXaV@U¥ƒU@Uƙ@aVUkWU¯ƒaU@WLUV@bkbmKULmKkUVUkmVIUwlWV²™Uml°U@W„LUwVm@UUK@_ƒKUUÜaXw@ƒVKUU@mVIUUlmnIVVVbÈVlKnbVKš@nI˜@nVnwVLVK„K„„˜Vnb@aUIVW@In™°@lVnIš@lWĢ@°UVL@b„@VyUUƒa@w@WUnU@Wǯ™K@UkkJWaÛbmk@mVaÞU@amkWƒ@mXUKkÿƒ£@a„kl@Um°UXwla„al@nmlXnW°znW@aƒwV™@ƒakbĉ¥VmU@ƒIƒVƒUƒJkUmWU™KbmkUaƒKkUVU@KV@@klw—™WaU@kmƒXVènbmlUUƒKƒX¯JkbƒI@JmIUWU@ƒLml@XkJ@U™kƒK@aVKwWa—IWwƒmUƒ@mU@J@UaċU™aUUƒVkI±ƒk@UUƒ@UbVVm@UVKƒLƒlkIWaULUWƒXUJU„ƒ@WbUb@lkXUxm@@JVn@J@b„nƒb@Vkx@bšLU‚Æn„JšaVXnKVVmzX‚°V@_lJXxWXƒK¯bÅamUƒ@lUI›bñJ@LÇKkIÇ`kxWL@„ƒ@@bUVUb¯xWKk„Å„VlULW@ƒŽn¦Ul@I™lmUUUVm@kWƒnkKma¯XUKWmnwVwÝL„mŽ™VUbUVWb@Lnxm„xVŽmbXx›¦@„nb@`™„ƒVƒ@kbƒLU„mVUlkbVXkºmnm@@xk¦šbĢÜlš"],encodeOffsets:[[118868,42784]]}},{type:"Feature",id:"1307",properties:{name:"张家口市",cp:[115.1477,40.8527],childNum:15},geometry:{type:"Polygon",coordinates:["@@k™ġۙal¥@wn@nml¹UWlaVknUVƒ„Kla„@„Ušƒ@_ma@ƒœ¥WwnaU‚wnƒmw@KXaVUVašUnmWUk°™lƒnUVUXWVw™IWVóKUI@WXƒxUU@mma@kUKWLkw@yk@ƒaVkUUċaUU@Wk@Unm@UVmLm±IUƒkJ™kWƒ@a„I@m@U„ƒVƒ„Ula„@VXVƒXmVwnkWKƒKU_k@m¥ƒmX_™JmnU@km@U@KmU™VƒU@U™@Umk@@LƒmW@Û£Wƒka@wk™@aƒI@mmk@mUa@UmUƒIƒwW@aWUƒbU@kbÇ@kwƒ@makVUk™U@aƒm@aU@mxkUƒbƒKUXUƒ±KXVWLUK@wkU@V™@WXUa@WbUxƒJIƒŽ@¦VèVVX@±ê¯KUIƒ`¯UULVx@Vƒ@UKƒIƒVkLmVkKmš@nUJÝbkIUJVXšVVxVbU„VJ„Un™°bV„mlU°„XnK@Ul@lVÈVUXšx@W„@VXšV‚KÞb„n@VnbV„m`ƒUx™kW@UVkL™Km¼@lUnUJVnV„XV@Vm@@LV„klƒIkl@VƒWlŽULWKUL@mJ„@blbUVUlmzUJUxm@UUbċÜk@Ub@VšLVV„¦ôbVŽmšUKUkU@m„„@VlVn¼WbUJ¯@@„°šnIllÈl˜@nXšWlLœk‚J@bkxlxkxlXUlklJƒšXL@bW„n`@nƎXxlL@xl@Xb‚LœKlVlIXblVUbUJW@lX@VL@VVŽšXšJšw„n@WnL°K„bVbl@VI@K„@U@nmVmV@XUWI@aXm@™VUUkWmn@lmUUk@mUmK@UnwVĉ@ƒƒmU_V@XJôVVUšLVUn@šllUnJl_n@šml@XŽlLlw²LVJUL@VmbVblVXmVnlš@Ť¦„nn@܎@bšl„@@XV`„Unb@VlLVb²J‚Xn¥ÆÑ@¥Þ@"],encodeOffsets:[[118868,42784]]}},{type:"Feature",id:"1306",properties:{name:"保定市",cp:[115.0488,39.0948],childNum:23},geometry:{type:"Polygon",coordinates:["@@VbXWš@@UlV@xVLXKWU²LV„VW„L„alVnwV@@b„n@bšVVllUnb„@lxÈ@laV@„aXV@b‚X„x„J‚nV@VVb@nnl@n„J@blšl@„ašƒU_VWUwVUškUm™Ukb±mVwœU@VIUW@UWk„@VU@ynL„m@IV@‚bnK„LVaVmnIlaXwV@@WVL°@@xnX„@V`V@VbUVVLVKnwnL@ll@@_V@VVnaÆ@œKVXÆ@nƒ@wƒKmU—™Wm@km@kÜKXU@ÑW±nIUwVƒ„Kla@I°wU±kškmm¯mƒ_ƒJnƒaƒwW@IVaUama@wƒUƒmU@mVw@aXk@mWa@£km@aƒ_kVmUnWW@¯bƒkUmk@ƒVÇm@@kUU™KUU™@UVUamVUaWIkb@xU@@amUkKƒVkam@@kVUkUWmKmUkLUb@xmJƒ™U@UImVÛVmnUwƒJƒU@VƒX@UWm@Ub°¦UšmxklmX@`ULU@@UW@@xkn¯@makV™UmxUb™°ƒlUšƒbUbƒnUJƒUUVƒa™LkbUU›JUU@mUUUƒJkaƒ@™xUIWJƒUnƒJ@V™zƒ@kb@`@bln@l™bƒŽ@X@š@š„@Xl‚bnbVb„@„„VJlInlšbVw@U„K„l@lbnan@Vb‚JôLn‚UzlV@lÈLVbVK@LVx—VWXX`WxXz‚bV`UXV¤nx@„bVlVnVlUL"],encodeOffsets:[[117304,40512]]}},{type:"Feature",id:"1302",properties:{name:"唐山市",cp:[118.4766,39.6826],childNum:11},geometry:{type:"Polygon",coordinates:["@@„@VVl@²„lJ„UVVšbČVVb‚@@InV„@‚V„nXx˜JXb‚xUL@b„Lšl@VlI@Wnk„KV@VXnJ@I„Jla°I„W„LVVnkmaUç„WVkôaܯ„@nV°wnJlaV@VUnUUaW¯wXWWwna@£UaWKU¯ƒ¯@aVUkKUamUUƒn»‚an™„IVwUWlkš@„LlWVakU@K„_lƒšbÞU°@šy°n„@„KÈkWW™ţ¥ĉōƒkġWUw¯£¯ƒÇwţwƒ@kK@kƒ¥ÝwÅbǤېťV™lW°@ĸ™x@VVVULVLkl@V@Xƒ`Ub@Xm@UWbƒk@ÆVbnLWV@lnXUbl‚@X¯lmU™VkKWLkK@_UK@U@UmmUxmVXLWVULkU@`W@ULUK@XlJXzV@@xml@VU@UX@Kk@WbUK@Xn`ƒXmJnšmškxUVbUVlVVxUbV@nKlL„kVKÞbVKXI°KVšmVUIUKULVxVJVLkV@Vƒ@UbU@WUU@UbUK@b@nƒV@VkLmb@b"],encodeOffsets:[[120398,41159]]}},{type:"Feature",id:"1309",properties:{name:"沧州市",cp:[116.8286,38.2104],childNum:15},geometry:{type:"Polygon",coordinates:["@@@ln@UȄŽl@Vn„l°aX@mXnVlU„`@bln@¤Xb@nWl@bUx@nnV‚„„V@xnbVbUb@J‚X„x„b‚mXa@k„UVwlW„k„KôVm@w™kkK@kl»Èƒm™VKXkla°@XVV@VI@ml@@Vn@VX@V@J„@VxUzVVšš²blVk¦@šĠ@@»š@VK@VÈLlK@XnJ@alIUl„a„VVbš@„n@a„U@WUIV@mUn@mKXml@lL@LnWšb@XV@@a„VVb„V„@VV„IVWÈb˜IÈ»ƒǟlWšaVUÅUƒƒ™Um@kVU™WVkaUwmaóUƒJUU¯ÑU¥mk™¯UaƒKÅnÇyóXmWÛX¯aċbÛa›J—W™ÝU¯»ƒaóóUm@IƒšVVl@bƒLUJWLX@@xšXUxl¤V@V„nVUV„XVbVš@Ž„@@VVn„°VŽ@ţU¯VƒUmƒUWV@mUXƒaƒbUKUwUaÇKn„ƒVk¦Wb@VnLmV@bkV@n„xW`Å_UVƒV@bƒUklVX@VmlUƒx@VVL@x—VWVL@VW@UUm@"],encodeOffsets:[[118485,39280]]}},{type:"Feature",id:"1301",properties:{name:"石家庄市",cp:[114.4995,38.1006],childNum:19},geometry:{type:"Polygon",coordinates:["@@la„@šy@U„I‚m„VXIVJšw„@lb„IVVnV‚@VVœIVVlašK„bVU„VVI„mVa„aV™„kš¯VanwšVlUnb°@lm@wX@@VV@VK@_nWlknwV™¯¥Van@VX‚@„W@U„V„IVxnmÜUnUVJV@„šnI@wValKnV@k‚mU£na@mVk°K„LVa@UU@UƒmknWWkXU@aWW@@km@UaU@@klK@UkaWaUnamm@U„a¯wWU@UkƒL@ŽUn@x™V™lUXVJUb™LmU@aUWUkmKkLUUm@mW—XƒaƒmmkkWUm@@U¯JUUm™kU¯@mKĉxÝwÝ¥LƒUóŽmwkUUUWVkKm™kKmLX„lxVLVxXJ@nVJnz@VWL@`nX@šƒxƒ@kVUUmJmIXx„JV„ƒnUVƒ@UVV„@LUšƒ`UXVVƒ„ƒlXL@l@b@VmX@b™xn°™UƒbkKWLXlW@@bƒK„mKULmakLUlmb@šXb@xmXU`V„b@`lLx@nWVXL@‚°WlXnlb„KVK„XVb@˜X@l_lJ@V@XnŽ„I"],encodeOffsets:[[116562,39691]]}},{type:"Feature",id:"1305",properties:{name:"邢台市",cp:[114.8071,37.2821],childNum:18},geometry:{type:"Polygon",coordinates:["@@nKlLnšlLXUVVlVnxô„V‚KÞ¦ÞxĊwnL°@lVnšVV°I@Vn@V‚lXnl„n„b˜WnXn@VVlKnLVlVX@bnVšKVaUIVWškšU@wVm@¯@U¥VmU_°lšK„k‚w@LX‚Va„U@wšUƒUUKlUóW@UVUœUlƒ°K„wlKU_na„KVnlKkkšWWa@IœJVa@IlJnU@„KVUUmVlaXUl@lm@kXWÝÑnkƒ™±™k@wğ›@@U@mKĉLmVJ@zmlnŽWLUÝJU_ƒ@@šmJkXUVlbklÝ@Ýa™b¯@¯±JÅwġaUU@ƒkU™@mVI±bUKƒL™WUXƒJkaƒLóKULWbUVkKmnk@@bmLUŽƒl@b@mnmJkUULƒaƒbnŽmn@lVV@¦n@„l@b‚znx@`Vz@b„xnV@xl„lbnKVx"],encodeOffsets:[[116764,38346]]}},{type:"Feature",id:"1304",properties:{name:"邯郸市",cp:[114.4775,36.535],childNum:18},geometry:{type:"Polygon",coordinates:["@@„bVKlVnInm‚@@a„kVnK@al@nmlLVUXaVKôL„Klb„IVWšX„KVL²a‚JnUš@lV@„VVĢbÆx²I°Ž°@šaÞbÞ@lkkaVUlWnI@™„@V`ÞI‚VXKmnk@y‚InUĊKƒÇkUUamUUkƒƒ@aU@U™ƒk@WUwVkVJVkkw°a@„mK@UX@VV„LVW@wšwVa@¯Xm@@lUIWaU@UWkXWmU@UwmUkKmn@lkVƒ²™VƒaULUVmJUUUwƒLma@™UmkIUm›L—mVšmx@b™LUamKÅL@VmbkU¯KÝamzkJUb±Vkb™L@lU@WIkJƒzkKmKƒnUalWkkKW@@nkbk@WW¯XUVUJ@XlJ@Xƒ@XlWLkUƒ`VUnaWa„UV@UVIƒaUxUUmVƒK@I@W@DŽU@@U@bƒ‚@nmKXmx™@UxkVWUX„@`VLlL@`™zX‚Ýb@b‚„@VUVkIUJVz°KVlnLlKnL„xlLVVUVlXUJ@nn‚„I@mVUlbn@@Žm„@bV„nV"],encodeOffsets:[[116528,37885]]}},{type:"Feature",id:"1303",properties:{name:"秦皇岛市",cp:[119.2126,40.0232],childNum:5},geometry:{type:"Polygon",coordinates:["@@lnV@Xb˜škx@lU@@LUVlV„LVbnl‚ašLXVVn‚l„I„V„U„JV@UnĊ¦la„bš@nJ°UmƒV@„wn@VU„JVI°bnWlXnWVLVK²b‚akk„lI@aUaVƒUwVUUalaVwnUVak¥šX@W‚kœLVÓm„mUK@_lWš@n_UK@alÅ@ğÅƑŃݍmƒ@їţÇlƒLƒ@¯m™z¯@ÝV™ak„ƒ`@LlVUbkXƒK™@klVXUxƒJmšbm¼V„nVVblLUV@b„°V°XLVb@¤mbXxWX°xXŽVbmVUVU@kbmI¯xmUƒ@Û°óbUl"],encodeOffsets:[[121411,41254]]}},{type:"Feature",id:"1311",properties:{name:"衡水市",cp:[115.8838,37.7161],childNum:11},geometry:{type:"Polygon",coordinates:["@@„KVlV@X°xƒb@VnnmbVŽXblb@VkL@lV@Vbn@@l‚@XX@bWVXlmXnlV„V@@VUbƒK¯LUl@nmbV¤n@l‚LXnlVUV@ln@lb„UlLnV@bV@@wlaXJVbnUVbVUš@VVšLVVn@VVX@@U‚KXU˜U@wUK@U„wVnk@UUWlk„V@a„UVUÆ`X_ƒw@mlU@anUmK@UXal¥„UmƒÈLVbVxVL„a„bVW@nXU‚Vn„„V°UŤV@Uƒ¯Um@Uƒ@@U™UaƒWVUmUUƒU@k£Vw™W@wW@XKƒIUa@wU@@al@UK@_mKXKƒbUU@aVKmš@Xmƒƒ±@kbÇakLğVaUw@a@ƒmkUJƒk@ykw@£ƒWX@lknk@WVkbUŽVnUVƒL@‚mVkI@JUb›I@JXb™XllkLUmƒLmbV`kLƒx¯Lk„›VUV@VôXkVVL„V™V@xƒVUbW@Kxƒl™L¯kV`UnV¦°@"],encodeOffsets:[[118024,38549]]}},{type:"Feature",id:"1310",properties:{name:"廊坊市",cp:[116.521,39.0509],childNum:9},geometry:{type:"MultiPolygon",coordinates:[["@@la„Ušš@šUnL@VWbklWxnIVV„V@X„JlbUlšXVbn@@K„mV@@X°WVInJmn²@lmVbnL@amKV_kwlmX@@LVamaXaƒaVU@UnJVanLlUkaW@UaVakK@IlKUU@an@ln@alKUƒkIVa@a@klaUKUV@UkUV¯šKVƒV@kUmƒU@@a¯ImJUU@VV@UL@Uƒ@@WXUWa@Ukwm™@ƒX@@w@al@@aVIUmVUUUVWUknK@I@™l¥kU±a™™UUVyUwƒ@@I@UUWm@@Uk@@nUJU@WU¯@kbWlULnšÇ„k¼@llLšl@xUnóŽƒLƒlkXUxƒV@lWb„I„`°nnn™llŽV²¯x@JkbƒLU„VxmJX²@ÒWVÛL@lln@‚Xn˜šnV„L"],["@@@kX@Valaa@KWI@UXW@WanaUIW@UaUKķŽk_W@UVUKUš@bƒ@UamxVXnJUbWVXLVbn@W°kb@U@Wó¼mIU¼k`V„@bVbl@„lX@lUôVlUœIV`lX„Vn@lUlVn@„l@UVaƒIUWl£Um™VWU@@UUKlUUUnƒVL@KšUnLVWUa›@™U"]],encodeOffsets:[[[119037,40467]],[[119970,40776]]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/he_nan_geo",[],function(){
-return{type:"FeatureCollection",features:[{type:"Feature",id:"4113",properties:{name:"南阳市",cp:[112.4011,33.0359],childNum:12},geometry:{type:"Polygon",coordinates:["@@lKl@nVV@„bn„@VVnm‚nL‚LXx@š„‚VLlKVU„IXWÜ@șlbl@XUĊUlwnW„LÞw‚m@ÞUVmnVl@nX‚JXLm@VnnJla„I@VkxVb„@VŽln„J@knKVn„@°aVanal@XK°b„‚@š¯VJXIš„VK@al@nV„k‚@nK„a‚b„@XL@blVVKVLXK„@VaVI°mVaX@V_@a@yUkVw„VšIVašJ°™@anIlaV@nKnXÆm@wUUV±UUWUKnaWwXUWmŁ¯Vƒam@kakImƒUKƒ»lan@VXXa˜W@@UlUUa@a@UlwUƒV@Xal@@anIVaUK@V™XmwVmUmV„LXl‚@nalLnal@„šnKlkV@@UnJ‚UXnl@nVl¦V@@VnJ@nUVVVVIn@Va„JƗn@@K@m„kƒa@kmWVaUI@a@™k@@aUL@mmaVIUKUVƒ@@IU@mƒUmmL@K@UUUU@mW@@nU@ğ»mVmbk@klW@UXnV@LƒJm„™lUnUJ™UUUWƒƒ@UnkKƒxmLa@ƒ@@lUU™bmUVWk@@nkUmam@UakJU_ƒVm@ÅlÇLUVmVUwULƒKU@ƒk@UƒVUlU@@Uƒ@UaUUWaŎƒzJƒaWLkl™b@bmL@„kKƒabWŽUVƒ_@mV@b¯JmXUbUK™¤ÇLUU@b@JkLWmkUWIkJ@VmX@JUbVXU`¯VV¯blK@LXKl„UV@Um@@Uk@kxWŽkbƒL@KkbmL@‚UXmaU@@l@x@blX@xUJ@bULUlULÇ@@VšnU`W@@nÛ¼U@@VmKUkm@VVX@@xǚ@bUbVb@VX@@x‚LUb@lƒ¼XLlbUlVVU„Ub@n"],encodeOffsets:[[113671,34364]]}},{type:"Feature",id:"4115",properties:{name:"信阳市",cp:[114.8291,32.0197],childNum:9},geometry:{type:"Polygon",coordinates:["@@VllInJlknJVkVU@mXlUÞ`VnV™VU@U@y„@nXlKV„nJVkXKWaXI‚b@yVk„VUkVwn@‚K@nW@k„KlUXVVUlbnUV`n@V_V@llX@@V„b@bV@@nlVUb¯‚WLnbmb@ŽnLnK˜b„U„bVWnLlaX@VVUX@Vln@`kL@ll@VXVJÈIVl@XÞJ°Una„LlylU@UXKlnn@lanLWWnbVI@KXKVL@LVWVL@UVKUIVWX@@XÆJ@In`@lJVI@a„WšÛnK@UlK@UU@VK„nlm„nXal„UllLUbVVšknJ@nV@Vm@a„l@@xnV„„lJVUU@™w@aƒk„@XW@_mWnUlŁUmVKV@VXwW»XƒWaUwnkWUkVUƒU@@@WlaUkkaƒIWVkm¯xmIUmƒLUVƒaUIó»m@mmwXk@a›mk¯¯l™@wƒmkLmmU@UbkUWJ@XUbƒJ@b@l@znÆmK@Xk@Ub@lm@ƒI@akmVKUUVUkU@U±JUbkƒ@IWmkxƒa@UUV™UWVkIUaW@UlLWn@VkJƒI@VkK@L@bmKƒkJmUUaUKWXk¼VxnJ@„V@@VULV¼ƒ@@UkaUlWL@U@W@IkKmL@KULUWULWKUXUJmIƒb—KƒŽƒ²UW™nWKUUkLUƒmUUam@UU™@ƒmUL@xkV@„VV@bmV@Vk@mwkUƒVUx@mbX‚ÇnVb„‚UL¯šWŽnUVLVb@xnlWnU@UVUVVUbVVlVkn@llVUXUWUXVbUJ@bmLUJnb@nVK@bl@@š@bVJUbnX@l„b"],encodeOffsets:[[116551,33385]]}},{type:"Feature",id:"4103",properties:{name:"洛阳市",cp:[112.0605,34.3158],childNum:11},geometry:{type:"Polygon",coordinates:["@@VVUllLXl@LWn@J„@bƒKUVmnL@`VblLnbV@„b@JmL@LnV@VV@¯„VJVnXL˜@nm@aÞ@‚a„k@m„IšmVbXL‚ynLšk°@°aVJnUV@UVVXk@WJ@VXLlUnJVnnƒ°U@»°U„wl@šb„WmUXƒÆ@VLXU@m@U„a@I›mkb™a@naWW@_@WXUV@@U‚ƒ²@„K@I±U@¥kKWLóLlƒa@£Um@kWKXU@mlLXUVKUU±J¯_@`UL¯Wmk@Wa„kkƒlUnƒVUVaU@KUU@mmK@_ƒa@KX@VaUIm±™k„aVKVUkw™@kaƒƒW@kbkL±UUaƒK@UUKVak£ƒ@UmmL@lƒIkmUƒ@Ualw@UƒJkbmIUmn@WKImWk@mUUnÝV@ŽnÝxƒKmXkxĉVWVk@kaċšÛ@WXƒJUV@zŽm„VWnbUbVbšLlUnŽ‚lUÒnWV—VWnk@@Vm@kxm@Un™l@Ll@@V@šXnƒškJV„šV@nlVXx˜U@l„n@aš@VLnWĊ¦nxš@lbVKXLl@ރVLƒ„XJl@XXl`lIXVl@Xl‚XUVšK„wV@lanx„zUbVJ@VVX@b"],encodeOffsets:[[114683,35551]]}},{type:"Feature",id:"4117",properties:{name:"驻马店市",cp:[114.1589,32.9041],childNum:10},geometry:{type:"Polygon",coordinates:["@@n@„b°UƂXnVlnLÜ@VLœm@n˜@na@J„„m@k„@lVšVxXX@„V`lLV„XVV@VVÞLVV°„²@lašbnxV@@b„Lšmlm„_VWnIWUna@lšLšbnV°ƒVL@KšV„LVUVaVLXK@mÆXna@wVm„a‚@Xw@KlL@a„@Va@wUkaWnIVƒla@Kn@Vn@VUl@nKVn„J@LnK@aVkVUUWƒ@VakUVanI‚²X‚W@UUU°KnUVLl@XaVK@ašU@KUI@W@_lm@KkLUKV_Uƒ@»@UVJ@XV@@mVL@K@U@Kk@VwUUm@kmWL@VkVkzƒKmb¯VÝI@WUkÇJUIUWk@@klK@_km@UVWUUW@kbmKUXƒaƒV—amLmK@namaXK°VakU@mU@@aƒa@UW@kkU@U`m@U_mVkaUVWUkVƒL@lmX@ŽLm@UxVlƒUUl@zaWJXbWLUlmIUƒkLmWƒ@@z@VUVUšUmÝ_kVWŽ@nUVUlmIklmIkJUkƒl@n@Lm@؃IUbm@UJUUVU@mmI@UU@k¥mUk@WmVmI@VU@klmLƒ™k@mbkKmb@WkƒKUŽVnUnnxšW@UVLUbmJ@bk@WbU@V„kx@V@bVbkV@V‚@‚—XWbUWm@kb„¼VLn„lJlb"],encodeOffsets:[[115920,33863]]}},{type:"Feature",id:"4116",properties:{name:"周口市",cp:[114.873,33.6951],childNum:10},geometry:{type:"Polygon",coordinates:["@@lšnb@xlJ@UnLlKXUlJl_„KnV@xVL@bkbVVUè@šWb@„Ubmš„ŽkšVšmbX„VJnUl@„a°@@b„LVbƒlXx˜InmnLVw‚anJÆw²IlmnXVl°VVbÈaVb„@lkn@VWnLlUVmÞUUklƒkƒVkUaVaVaUw™K@kkaVWmw„_„‚l@nU„VVb@b„aV@VV@zXJl@@kl@šlœk°WVnÆbnbUšVJ„Iš@VKVm@k™K@_kK@a@aU@@wW@@k@aUW@IUWVUnLlUlVXKVwmk@W@—VWa„¥@k@lnƒUIÇKUaU@ƒUUVmIUV™Uk¥ƒVma@¯k@Wanwmƒ„@@n@@m@UIVƒkUVamUXWƒaV™U_™@ƒmUVUImW@aUIĉK@VmI™b@lU@@n™JƒkU™@KƒIUmmLk@UVm@UŽm@@LkbU„mJXlbV‚@xUbƒ@@bkK@LWx@ƒbUn@xmbÅW@nWLUKUbUVƒK™U@LUK¯„mU@šVV@xULUŽVL@bU`WšUz¯aUamKUaƒ@@xkX@x"],encodeOffsets:[[116832,34527]]}},{type:"Feature",id:"4114",properties:{name:"商丘市",cp:[115.741,34.2828],childNum:8},geometry:{type:"Polygon",coordinates:["@@XVl@lLȃ„@VkV@V»UanƒWX@VaÆÇô@ÈaVX@xVJXUÞU‚aVLĸbXKl„V@šm°Vn_ny˜XX»mUk¥lK@a„_@yšInaVKVa°_@WXI@ƒ@K‚VnIlbnaV@„l„@‚a@_w@ƒlwUKm™Xa@UV@š»Vƒšw@kUKVUUm@w±VUXUKUwmJUUƒ@km@@±mXkmUI™@mm™KUwkbWakLWaUIkJmŽƒX@l@@VUX@JWbX@VbULWbƒlUVULknlV@bVJk„mb¯KknWmk@@nmVkx™@ƒVmU¯KUnUL™@ƒJUIV™maÅaUm¯X›l™kk@@lk@WI@yUUU@ƒb@aUaƒUmVk@ƒƒ`nxUXlb@lšLVxUbUbVbUll„k„VlÝVUnkVmKUXm@klƒ@ƒnUx@xnxƒn@`VX@V²x@V@b@„Wl@zU`VUVVb„L@Vƒb™W@bkXllkLWV@V„@VVÈwlVœ@@X˜K²Llb„WnnÆL@VnJWn"],encodeOffsets:[[118024,35680]]}},{type:"Feature",id:"4112",properties:{name:"三门峡市",cp:[110.8301,34.3158],childNum:6},geometry:{type:"Polygon",coordinates:["@@WKUmUI°ƒU@@UmU@KnK@IƒaU@makKUa@_‚KnmVU„L@a‚ƒ@IXm@KWkkKVkUU@aUW@UUIVaƒymwkbU@ƒx™LVUWWkk@WUkJk_WWk@WI„ƒUK݄k@WKULka™@mwĉ¥mXUK™@@bƒm@k—VWwkU@m™UUƒlI„™Wm@™@Uk@@KškVmn@lwn@@Ul@Xm˜UXUmVсkmkV™KUaVamaUXnƒ‚@ykLUKƒ@™WwKmKnUm@UmƒƒaU@mUk@kL@lƒxċxUnkVmnXxWb@`kzWJ@V—LmVUn™lmUL@lW@Ub@VšXUbš`VLUbUJ@nmnUlUUm@@bUJlnU„š‚U@lxkbƒ@@XƒJUnƒ@kb¯VVVmlXXlJlzn@VlkVW@bkK™bmškŽUbVb„lƒXVxšKÈnšwÞlĊKlšVnKlwX@lL@xlUnVn„@šl@lmX@ƄÈb°¼ÈwVJlx„_°xšašlšUÈxlUnbVxnL@lllšbm„n@nb‚@@V„L@V„@@„VLšJnIVVlKnV„_"],encodeOffsets:[[114661,35911]]}},{type:"Feature",id:"4107",properties:{name:"新乡市",cp:[114.2029,35.3595],childNum:9},geometry:{type:"Polygon",coordinates:["@@XVlL„K°bUblbUbšl@nX@W„XVVKVkš@@Žmb@„Ubn„W`kL„LƒV@VVLnKlVXIlVš@@a„@l£nWlƒkVa„@°bnUlLVlna‚bnUVUXKlU@ƒ@lk@a„I°y„@ôkUU@wšmôšnkWakml™UkVmkUlmUUm@nkUKWanamU„LXW@U‚VnUln„`l„œblL°KXV@ĠJ@L°„šJšUVw„anK@UUImmƒkK@¯±Um@IVmUmmÅnWaUK¯aUk„w@W±kVƒx™U™VƒwƒnÅJUIWaÝJóI—bm`ÝbÅImJUI¯¥¯@mU¯UƒJmnUVóUkl±V@zXl„bWVXL@bm„mº@@XmJUXU°llk„@nWJk@U„@¦U`m¯ŽWx"],encodeOffsets:[[116100,36349]]}},{type:"Feature",id:"4104",properties:{name:"平顶山市",cp:[112.9724,33.739],childNum:8},geometry:{type:"Polygon",coordinates:["@@l¤UbVL@V„LVb²VlKlaX@„„lbš@lxUVULƒbšln²VJUbW@@L„b@`nL@nVV@LVŽUbUVm„kVl„ƒlXbl@Xn°ŽVK@_°`²IVVV@VUVJnInaWK@Uš@„K„LÆ@nmlXXWVUUw@klKVa@knyVkVanI‚JXUl@XbVUl@@aša@mXk‚bnK@UlK@UUUVaXaWmkUm¥n—WmXaWaœkl@VmÞb„KVL@aVI@mUwVm„@KōméUL™KVaUk@kUK@U˜WXI@VlKXU‚@VVnInVV@VLlK@UUƒkKU_@ƒWWUwU™@klƒn@ƒƒ@Imb—@@m›nUKÛ@mKUkWVXxmbVLXŽVVU²VV@xÅnmWmLU@kbmJ@b¯š™IUb™JƒUUxVl@z@bU`W@Ub¯nUJUbƒ@WLUKULkU@aWKƒ@aƒbmL@ƒlmUk@@bUL™ƒWJUI™°@ƒŽ¯aWLk@mbUb¯b"],encodeOffsets:[[114942,34527]]}},{type:"Feature",id:"4101",properties:{name:"郑州市",cp:[113.4668,34.6234],childNum:8},geometry:{type:"Polygon",coordinates:["@@@nWVUKÅ@W„nVnI‚ŽV@œkƂšwV@šnn@lxÞlnôJ˜zXJl@nalUČVlƒl@²UlkôVVUnm„I°VnV°@°¦VJnIÆJÞan_VmU@ama™@kU˜¥kaUklw@UIV¥kVUI@ƒmmUÅmUlƒwVU@amU—JWbUakVƒ—Vé¯Im`ƒk—@ƒwVWmLkU¯ŽƒXkWmLmx@UUƒbm@@x™J@LbW@UUVWUkVKƒ@ka™IUamKUkkmmLƒUkJUVWXkWmnÅ@ƒKƒL™@@VXLmbmJUIUVU@ULWVkK@nWVXL@lVn@¤„b‚kôKXKlL@¦²V@JƒL±@„@VU@WV@X@`XXmb@Žšblaœn@Jƒb@V"],encodeOffsets:[[115617,35584]]}},{type:"Feature",id:"4105",properties:{name:"安阳市",cp:[114.5325,36.0022],childNum:6},geometry:{type:"Polygon",coordinates:["@@°kVaV¥kVmUkWkWVkVKUwkkmKUU@a„wWWXWakKWkXmlašIVmX¥ƒU@a„@WnK@kƒƒ™V™I¯ƒ@KğI@WU¯LkK›akƒƒ_kmmVU@VWXƒKnVmbXbVLmln@VVknlVUnVlkšlnXbmlmlXblnÈlWbn@@nšK@V„L„bVV°VVzšlnš@V™xƒI™b™ŽU@WLUa¯V™UkWõ@¯kkmxk¼l‚„XUlVbVLnlULmU@lƒLkVUlƒX@xW@¯mUƒ@UmIUW™L@aXa˜kU™¯anƒWk°@k™kKmmUIWaambUkkKmV¯aƒ@UblŽk„mXk¤ƒ@@b™@UbULWVnb@lUVVnmšnVVU„J@bWXX@WJkL@blVU°UV@XlWnXUbW@UVkVšVWbnLUJWLUK@Lnn@blVU‚„nUblxVUVJXU„a˜@Ub„LnUVV@mVIVVn@UbV@‚XbmbUV„_lVXUWanJVI@WkI@WVIVU°WXXl@la@mX@lLXl‚kVbœm‚X„ylIXJV@@kšKla²UVa„IVyÞb°LlVna@UÆKnLVbšK@anwU™"],encodeOffsets:[[117676,36917]]}},{type:"Feature",id:"4102",properties:{name:"开封市",cp:[114.5764,34.6124],childNum:6},geometry:{type:"Polygon",coordinates:["@@lUVbXa˜InV@bUV„x‚knVVÆnn@„VJlUU¦VJ@kxVllb—¦lVš@nb@bVŽUn˜aôJÞIXbVJÆI„m„xšUšV„w‚U²l@XƒxVl°bVLXb‚`XklUnmVblLœ@lmšx°LVK@UXIVašWlL@Ukƒ°KkVaVUXmmI@UÅKmmƒXka±K—L@W›@kUÇxUUƒ@@UXUlKkklW@ašX„a@UƒKUaVUUV_@yXk@ƒ@a@U±w@UUW@_„mmw@wVw„mUaÇbUa¯UUkmWkn±JÅxmIbUxmKmn—JWw„kUaƒK@a¯@ƒbk@mVUIWƒ—Lmwm@Ua@WJUb@LUl™@UUmLUbWJ@VL@VmXWWzUJUꄘ"],encodeOffsets:[[116641,35280]]}},{type:"Feature",id:"4108",properties:{name:"焦作市",cp:[112.8406,35.1508],childNum:8},geometry:{type:"Polygon",coordinates:["@@V@VL@x@bXŽWV@XkššlUŽWX@J„@nI@KlL„KšUVaV@œJlL@KUk@KÞL‚l²_‚@nWlL„UVVš@nLWVUJVn@anV@a„wÞUVLVx„b„@lW„@lbXn‚Vn@@¼šL°mšKVn@bnl@nVK@blb„L„W„U@VWLXV@nlKn@lVVbXw°nV_@¥Vƒl@XI@mlƒkkV¯VWnI@W‚@n¹nƒ@aWKXUƒaWk@yk@k„ċUkVmbk@WI—yóImÝkkwm@™mU@™xŁ›lU@mJƒX™ak@ƒx¯V@¼¯Vm„UmmIkVWK@UXIl@UWVUU@mVUI¯b¯@™lmKzWKUa™nƒJ@nƒlbÝ@@b"],encodeOffsets:[[114728,35888]]}},{type:"Feature",id:"4110",properties:{name:"许昌市",cp:[113.6975,34.0466],childNum:6},geometry:{type:"Polygon",coordinates:["@@lI„VnKlnVlnLVbšJlb„@ULVlUXVVX@‚a@KšI@wn@„aVV‚@nwnKlX„W°lVnKUX„x˜@„ln_°JVIXy‚XnW@U‚K@UXIVanKVVš@Vk@KVaXI‚@Vbn@nx˜KnaU™l™ƒn™Va@ƒXa@™VçUUla@aUK@wmUƒLk`kIWVkLmK@V@XUlƒn@JXV@nm„™bU‚óIƒmUa±@@ÑóVUUk@UlKVU@akWVUUlUUaUK@UUKWbUkÅJ@XWaƒ@XbmJ@nUJ@bUKƒLÝaUnk@›lXbWbXnm˜n¦lVXnWbUbVV@VkL@VmLaWl@n™b@bk@UVWak@WVImJUbUlmz@lUbkL@lVx"],encodeOffsets:[[115797,35089]]}},{type:"Feature",id:"4109",properties:{name:"濮阳市",cp:[115.1917,35.799],childNum:6},geometry:{type:"Polygon",coordinates:["@@lLXbW‚XXƒx@bVVnLllVxULUl‚XXlVlUnlŽU¦Ub¯l˜nœK@V‚bVb@šXbVL„KVxVVnIlašb„a„¥lU@wnalLnVVlVLXnlWVXn@@lVI@WnU@mƒÅW¥—aW_k@WwXy@kmƒ@wU„mš„š¦šlUxVLV@UwšJ°xš@VX„@Vb„@š`VX@VX@llšIVbnJlI„bšV„l„˜J@ƒmѯLóa@ƒƒKUa„k™ƒ™Xƒ@UK@wU@ƒlWUUݯImW¯aƒLUKU@ƒkƒ»k@mƒwƒa@UnKWI@ƒUU@akVWK—k@a±ƒbóUWKXUmk™KUmLƒbUx„„@lmLXŽƒ@@b„VW¦Un™JkbWnXl"],encodeOffsets:[[117642,36501]]}},{type:"Feature",id:"4111",properties:{name:"漯河市",cp:[113.8733,33.6951],childNum:3},geometry:{type:"Polygon",coordinates:["@@@Lƒ‚UnVxnIWa„@Xb@WÆIVlXaVL@VVLVbkVVŽUVlX@bUVkLV‚l@VVôU@Ò²@Vb„nôJVšanƒ@mWU@I„mVk@WkI@wmak™@wlW@w„@VbnLVb°bVyX™V_@aUKVVK@wUU@™™a™K@kmbXVmJUXƒ`kn™nƒK@aU@mw™akb±@¯ƒUUÝKUUU@WU@VkLUKU@mUmJUU@WVkL@UWJ—X@VVL@lVlUbšLVKnêƎ"],encodeOffsets:[[116348,34431]]}},{type:"Feature",id:"4106",properties:{name:"鹤壁市",cp:[114.3787,35.744],childNum:3},geometry:{type:"Polygon",coordinates:["@@ó™™n@xVVólƒ@¯zƒJ@bkl@@„kVWLUVmVXbVJnnlLlš¯@Xlm„°bVš—lWb@bšKVXnJ@VV„°nX@@w„WVklU„K@knVVKmkUKUaVkƒWkl»nwlŽ°lö@lXšV°UVbXKV@šša„Jšw@Um™™kUy¯UUUƒaƒK@U™L@mm@XaÇkkmWank"],encodeOffsets:[[117158,36338]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hu_bei_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4228",properties:{name:"恩施土家族苗族自治州",cp:[109.5007,30.2563],childNum:8},geometry:{type:"Polygon",coordinates:["@@VK‚bX@lbUVnL°„@VlVnUl@VUX@„aVƒmaXƒlašUUU@wmaVUn@Vƒnmmk@m™U@kna™aU¥Vam™X_@WƒU™mW@_kƒVaVKnL‚lœ@VVal@k¥@kUW@kUKVUlUVсW@kÇaU»ValmkUVUVak™@aƒV¯_@W‚UkmVUlU@aœƒƒalI@akkVWUaWXUWwœWVbÆ@„„l„alIVK@U™m@UU„W@al²a‚¯UağÇm@ƒbkk@wƒ@@W™aULmxƒIU‚™ƒb¯@U`UX™JmL¯aƒKX›WUL@aknmK™@aWUXaWm@I@UÅmVU@™™aUV@b™VƒI@WkU›bXkm@VakwUKULWKXmJ@XUK@ƒmL@KUwVaUI@KU@mmn™mXka@»V@@UUaƒw¯yVk@ƒUUVmmkÛÈU@mWUnmx„šmlUbV¦UlbWVUL@UUƒ™IUmÇKV„VbUVVxkn™LUxV`VX@š„„kJVVUXWaUVVlUnmKUbkI@WULmK@L@LVlƒLnmUIWV@aknƒ`VXUJIVlUVVbUX@¤mbnLm‚m@UXk@mm@Ukaƒ¥@kV@@KkU@aUKWbkLWVkIVŽk@UbVlmX@bU@@mmL@bn`@Ln@llVLVk„@XVVU@`VXUš‚¼k`VULka@VllVIn¤VU@@bl܃bkx@bkL›škKƒn@bn@@b@JUnV`UnVbVKlVXUlbn@°ƒVx„@@b„nVbUllVn@V—VK@UnW@UVUšlnk‚VÈޚxVb„VVI„xVaÆ@@aka@UVaU@@a„k@Wl@nbVIƎ@Jk@„L@VlXnlla@VJnw@UmwXU@aVK°ÒnllnLlb„xnKVaV@l¦²nVl@llL„x@XVVœ‚Ķš@našx@U@al™XUVa‚LÈþV°XxWXkK@šmLnlUb@b‚xnLVlVVkb@UJ@xWXXš"],encodeOffsets:[[112816,32052]]}},{type:"Feature",id:"4203",properties:{name:"十堰市",cp:[110.5115,32.3877],childNum:9},geometry:{type:"MultiPolygon",coordinates:[["@@@a@w@kV@nbVK@ƒnUla„@la„Ål@nlVakwWX@WkLšaVmšwV@anK@UlIXmWkk@@mmLkWlwk@U_mKXwWK@U¯K@UU@ƒVUa™kmƒkI™yUUVUmanU@mlwkƒ@_mWXaƒUWU@ǃ@U@aUaVwUKUIƒVkK@UWIXƒmaV@k@Vm@UnwlƒUamk@V@„ULUamxUJkU@Iƒ`WkkK¯XWak@@W@IUV™LWJkXkaÇVUKƒ@kUmbmUUƒUKƒbkKWUkI@ƒkKÝ@@aƒUm»nI@mƒU@UnWV_@aUmWbkLUl¯b@a›kkk@WkkJm_k@UV±@J@b›nU@@WÝIUJVbXL@nlJkx@„Wn@VkJmb—LmUƒ`VbUL@xVn„@XVƒŽ@„mVVnnJVbU„ƒx@„V„nVUbVVƒx@šn„™bUK@bƒ„@bƒJ„šm²„VU‚lbXzVJV„„JVbn@@Xmb@V@bVJÈ@‚Vnkn@°aVVV@šX„KnalLVmšUnnVKVlnLWlXX„Klk°š™šXŽWškLUVVV@nU@ml¯nmbk@W`Å@mb—LWm¯UƒxnêVèk@mbƒVƒnUK™@kKmXk@@JUI›lÛLllnbVnlJ@LULnlÆaVLnŽV@nkVJ„@lkô@²bÆm°w„L„WV@VXšKšVXI@W°ÆVšK„b°U„JVIVV„¦XKVL@l‚InaVÝnUl@@bX@‚™nmVL@lVL„lVLVUnbVW@xXn˜bœU°¤V@š™„a@kWKUUn@VlnL@UV@Ü»@mX@V_ƒakaÞ@VK‚¯@kkW"],["@@mUkUUm@nllVKXXVK"]],encodeOffsets:[[[113918,33739]],[[113817,32811]]]}},{type:"Feature",id:"4205",properties:{name:"宜昌市",cp:[111.1707,30.7617],childNum:9},geometry:{type:"Polygon",coordinates:["@@°`„U@blšUbUVlVkn‚ŽUbV¼Èb@l‚XUÒkVUVVL@lVX@ll¦k@UbU‚›@kmKULUbl„@`nXšŽ„V@XW`nšUbV¦šbmb@lšV@nnlmnU„m@UVnb@xVV™VkbW„nb‚VnVa@an@UaVU‚JXnWlXX@l„¦@ŽlKÆX„bX‚V@VV„@°¯°xXx‚XV@nV°UVWU_VWXkmaVnWVkn@lln@lb@UVLXWlnX@˜aXUmaVK@UXU„U@WVI‚W„XXV‚U@¥VKœ@‚Uގ„„‚a²LlV@kV@UanKma@UVUnK@UVLXyVL‚knJ@UV@@UXKWUXaV@Vb@mVLnKW„m@aUUm@@UkK@Ula„LXKWaXI@alKlmUk@wVKXL@m@WWn@UVa@K@wna@aW_XWWkXbVW@k@U¯WWwka@UUaVIVƒkU@m±@U@@wVKkaš_@VV@XUVwU¥‚šyUkm@V±ÈUKk»ÇL„m˜mLk@ó£kmWwƒm@U„IkWKXwWU@ƒkLƒwkbmaƒbkK@VƒLkmWIUKkUUƒÇIǫJ™XÅJULVŽÇLUVƒ@UK™@kI@WVI@UaƒWmXVVUL`±kÅLmKkƒƒkƒÅ@Ua›XXxWVXŽVbUXll@bkJ„b›„@bkVUVlnV@X"],encodeOffsets:[[112906,30961]]}},{type:"Feature",id:"4206",properties:{name:"襄樊市",cp:[111.9397,31.9263],childNum:7},geometry:{type:"Polygon",coordinates:["@@@Xl@Xb°WlLXl„_@JlVVInwVbVK@ƒ@UnlVbk„mx@VUnl@U@nbW„XJ@VlL„UVJVLUxVb@b@VȄ‚@XV„VWbnX@`l„kx@nmVnbUVVVšzlJn„šlVb„UV@@V°L@VXLWxnLV`l@kxlXnK@nl@XlWn„`Xnl@@UVa@VÈKš£VLVanW°U@UVU„@„`VIn‚mV@„nV@Xa@aVW@UšalkXKšblI„yƍXnlJXbl@@VV@nklU@`„nVK„LVKVb@V„U@UÈK„UVKšIlUX@V`lIVbn@nblVVmV@@XXJšUVV@knKVn@`@X‚VnK„wlLVmUUU@ƒU@aXL@WlU@UUW@UmU@KkLWaXkWmXUWm@U@ƒnk@UmK@U@UaUVUUKV_@al@namWUI@KUƒK@aV@WUIƒbƒ¥ULUJkIm™ƒK@U@K™V@U@a@UkU@K@wVaUwlU@mUƒULmKUkV@@anIWmUK@I¯„mKkl@LUb±lUakLmk@WwUKÝVUIm`¯n@Uk@makJU_@ƒƒJma¯ImwUVkKƒb™aUÅ@wWaU@VU@mXIVmmUkJkwm@mIlUKWzUK@VmLUV@VnbmLVbU@@lkU±KbƒƒÝV›@UL@¦VWUƒWXUJ@XƒVWV@VULnbWV—bW@kmWXUK@Vkam@kkm@UlmXUŽnbWlUXV`UX¯VmUU@Ul@Lll@nnJ@LƒnWmbmš@b™`ƒš","@@kUUm@nllVKXXVKmU"],encodeOffsets:[[113423,32597],[113794,32800]]}},{type:"Feature",id:"4211",properties:{name:"黄冈市",cp:[115.2686,30.6628],childNum:10},geometry:{type:"Polygon",coordinates:["@@VVUnWVXnVJ@„‚U@V@VXŽV@@IVJUnŽ@V@L@KlIVlVanLVbnVlI„ƒn@@a@Kl@@I„JlI@aXU@KlK„kVblJXU„VlU@V„bVkVKXn@VlxVa²I@VlVUxln@bšJXklaVWnLmÅ@y@k@ašI@W@aXIlVVaV@nnlKnLVW@IUa@a@K„UVVlI@wXKVV@IUƒla„@lUXwWƒnƒnalLlxXLll°@XwVKVaXIl™nb˜@nln@Va@U@k°ƒUmÆUVaXI„JV¯ÇUmmkU@WaKmakVm@U@aVKkkmKkVmIkÇ°£@aUUVaVVnKlkX‚mkƒ@ƒlUVaX@@Um@‚™UmlUXV„UVU@w‚K²¥Ua@I@UV™l@U™V±UIUÇ°»VkUmVI@a@U™m™ĉ™¯V±bŹĖğaÇL¯lmŽkX@‚óĀ@ŽmšÝêb±WkLƒn@xXx@Ž@b@V@LW@UbƒlţXƒ`kxWnXô¯¦ÆV@L@JVLƒxkK@V@bkz°l‚lXz@J„UlVla@XUV„bVKXnW`XXV@laVV@V„X@V¯xƒx@xULVbUJ@n@LU@VmmakbUK@b™IWWUUVkUmkLm@VJkb@nUJƒ@`V@kX™aUaVmmLkUmJ@Uk@U„±lkzmJUb@b„VUxVXU¤ƒL@JƒX@VlL@JkLUVU@mnUl„¦@V"],encodeOffsets:[[117181,32063]]}},{type:"Feature",id:"4210",properties:{name:"荆州市",cp:[113.291,30.0092],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÈJV„lVVLXJln„K@UlL„anbla„xlK@„XVWxXLlƒJ@V„nXxlnô¤l@nKn—‚ƒÈKl¼VL²Ç‚Un@Vl™zŽV¦UxWVU@@U™`lbUL@xV@²@@nlVU„UJVb@VlbXx°XVWX_VKUwVKVa@UVKUUVk@KnblaUU@wnWl@UX@lÆ@@a„IVmUk„™šxVJ„U„bܙ@Uk@WWnk@Vƒ„™Vm@I@m@Un@m™XUlVlUnJ@knJVU°@@aÆLX@ƒllL@¦nJV@XblLVa²U@UlWš@VX@`@LV@@bXJlIXml_lJœU°b„KÆLnVVl‚@ö—Vƒ‚mXaVIĢllUlVnLVlX@@b‚ašnnxšV„L‚bn@°ÆXmmkĉƒ¯w±™™™Uċ@KÝÅƧŃÝ癙Uw¯ƒm™¯k@W‚kV@¯UIUJW¼kb™Uƒwk@W`@¦Uônb@VƚlÈ@VU@ƒƒ£UWWnUÆUnmJkUÇ£VWUI@aUU@WkI@Uƒa@JW@k£kaWVUKmnkKƒb™kkVWb—VmUUmwU@kk›@UakUUa@V@nlx@lUb±lUbnnWLUyk@UamœUK™@mlk@Wb@VXL@x@xWI@a¯Ž¯V@bVn@LkKmL@`XmKmVU@@bkL@V±bk@Uaƒa™L™KUVƒIƒ„™W™XamVVbUK@b@Lm@UWkxULWVUnm@UlUX"],encodeOffsets:[[113918,30764]]}},{type:"Feature",id:"4208",properties:{name:"荆门市",cp:[112.6758,30.9979],childNum:4},geometry:{type:"Polygon",coordinates:["@@n@lxlInVUnWJ@nUVV@Xb@xVƚb„alLVUnx°Jnb„I@„V`lInbl@@V°mn_VJÞUVLXx‚@nllKVb²kVa@KlknL°ƒ@JVLXnmJ@bU@VlnLVKV„@nX@lUšKVaXal@VKn@¥°L@Unw˜bnašV@KV@VUX@lVXI@KW@@IXWV@laVL„„KlaXUVVnkVWV@lwXblIXWVkVmšaU£VaUmVIkU@y@WakKUamU@UUK@kmK@w@@mK@LƒV¯™U@WwkmULƒamVVUU@ƒƒIƒbUKUa™kmƒm@UakLmxU@UÒWlULţÿmwkIUm@a‚kÈblW@UVƒUUk@JW@XkWWUkUKUIlw@aUWknWUUmnIWƒ™aUwVaۚƒaƒVUI™wƒšVlUnƒJ@bÅ@@kVWk@mX@xVVkbma@LUlVVUL@VUbULVxULW`UX@V@lUXWaXlWXX`@bmb@x@LUb@VmŽXX@‚@nWKUL@xVlknkL@bWJXbWLƒKkb@VlL@Vn@VV@bƒnX‚mLUK@nUaU@WbXVWL@VU@@V"],encodeOffsets:[[114548,31984]]}},{type:"Feature",id:"4212",properties:{name:"咸宁市",cp:[114.2578,29.6631],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÞƂLČ@šV‚š²š°xĊ„nlWnŎ¯m@aƒK@„„°‚n„Jšwn™VIUaÆJšÅ@wšwV™XW@aV_l@²V°lĊwlaXLšwlUkalVVaX@lVXI@a˜UXJ@U°UU¥VIVKVklanLVa@VÈIVV@nk@aVa@mV_@a„K@klKUa@UnKWk@@lU@@UW@@nUWUwmaVIXƒ„lV@mLXblJ@kV@kk@KU@WƒkUWVÅwkLmW@UmL@lUL™KULƒak@maUUÝwUJƒIb›KUUƒ@š™aWK@kUWVkUwVw@™mÝ@™I@wkW@a›ww@LU¥™kƒJ@nVJƒIkVVnkV›UkyUIUl@xWUkaW@@°kz„ŽWxkLUWmzk@@bVVVš„b@‚@XlVœ@Vl@bVbUn™`Wn—@Wb„VVI@`„LVbXLV`mnU@@lƒL@LUŽƒak@ƒLk@WbUJn¦@lVb@xVb@n"],encodeOffsets:[[116303,30567]]}},{type:"Feature",id:"4213",properties:{name:"随州市",cp:[113.4338,31.8768],childNum:2},geometry:{type:"Polygon",coordinates:["@@„@nš`lw„k„ƒ„UmUVWX@lk„@VanUĠ¼V@@mX@@nVV‚VXLmJVLnK@b„V@@J„@VUn@VaVUUUVWVLV@@Kk_@almaVkUU@WVƒVUVLXmmk@wUaUKUV@°™@kmaUaÈmW„mUƒVklaX@lVnxl@@UnaUk@ƒVUVwVK„nš@VVn@VbVJUknUmmVmk_Vw„KUUm™Vak¥@UVKVIkW@UmIVWkIVƒkmmLkwmVUƒ@LƒUU@VVXL@JmLUbmK@UUKmkKUUmVUaUnÇlk¯™mJUnmLUaUJUaWL@UkJ™ƒUƒ@ƒaklkU@¯@KWLUmUUWVkbƒLƒŽUKkbU@WX@JX@@LWJkUW@UVU@@L™Umb—amx@V¯K@¦mŽULk@WbUb™LkVW@kVVxUb@x@LlV@V@b@VšU@L@V„LnšlJVIVK„¦„aVJ@XUŽ@b„LV‚@LVJnXmbk@@bU`VLUVV‚b@V@VnL@Vml@„@VXnWVXnWlXblK@LnV@VVX@VkV@XWK@b„VV@VV"],encodeOffsets:[[115830,33154]]}},{type:"Feature",id:"4209",properties:{name:"孝感市",cp:[113.9502,31.1188],childNum:7},geometry:{type:"Polygon",coordinates:["@@VnXK@L@°lVlk„b„@„VšlI@VXKVbVIVbnKVmnI°šlŽÈkVmVbnUVVlLnVL@VnLVanK@IWKUUV@„V@KV„nUlxnKlnU„lJUXnJ@VlXUJUL@Vl¦UbnšVVƒLUxl`UnnnmVVlnVK„bšmVX@a°Ý°LšaXJV@VUnKVXVK@LnKlLUbVVX@VwVJVn„@@UU¥V@@UUK@ƒmaUVUkkJ@L@K@UmVUI@JU@W@U@UV@ƒUIWmXUVmUUÇ@UVmIlmnmakK@akaW@UwVUkKVnUlKVwk™ƒVU_WKUkVW@UXaWkUa@w@VU@XaW±@IkbƒKƒb¯L@WƒXkWƒ@UakL@UV@UmVUmL@UXWVL@ašUƒVUUUVU@yUUƒIUa@wUKWVU@kƒ™™Wk¯UkwVKƒLUx™K@nVxUlUUWVUmw@wƒUUyXWlX¦WbUV@„U‚@blbUVVbXXƒl@lVL@bk@lxkVVnVx™¦ƒ`UnkL@V@L@Ž‚@@xnL@lVL@VnVVblLXb@‚@zlVUJVnUbV¤™bUnUlWXkJWakxU@UXml"],encodeOffsets:[[116033,32091]]}},{type:"Feature",id:"4201",properties:{name:"武汉市",cp:[114.3896,30.6628],childNum:1},geometry:{type:"Polygon",coordinates:["@@nbnm‚knJVUÈ@@Uƒ¥VknmV@VUlK@IkK@U„W@I„KV£UWVwƒU@aVanIly²kVƒl@@VnIlVnKUnVbšblWU@@_„‚VI@mlaUIn@lKVnUlVVXXšJ@aVLlanbUnV@@K@mVIUaVK@w„w°w@UƒW@UUUkbU@WWX_WmULƒaVU@WkbkUƒV@IWyk¯kly@a@UlL„wUK@I@KÅUW@ѱUm@wl¥kaƒ@@_Vw@ķƒa@akw@ƒkKW£XVUVwVwUaU@VUU™™xWKkbĉx¯k±Uk@U`@bWXUš™x@x™ÆÅIVbUJmš™xƒImƒ¯@ƒ™Umx™nUVVbnJV„@Lƒ@@ŽkV@bVnƒ@UVULlx°VXlššl„V@XUVL@xVb„JVV@zUVVVUV„™V@bUKWX@VnKUVVnU@@VlKVb„@lX„W@X°K„a„Lla@JX²Wb@ŽUV@@xVbXlWb@VUXVlXLV`Uš„lŽUxkLmVUŽlLUVVxX@lb@blL"],encodeOffsets:[[117e3,32097]]}},{type:"Feature",id:"4202",properties:{name:"黄石市",cp:[115.0159,29.9213],childNum:3},geometry:{type:"Polygon",coordinates:["@@VšUVV@VbUx„aWUœblUVmnKlX@bXJVIlVUxVVVIU‚zlx¯š@‚VbnL@x‚x@UVaXK„b˜@Xk‚WU_Vm²klW„XVK„Žl@nXV@@w„mlK²X‚aÞén™@ôÿ@lWn°kUKmmUљUmm@ƒwkImWU@UakL@bVLUVċ@™bUK@alIXKWK@™nXnKmkUVwƒ@¯b@L„lUL±W™n@KULUaW@kL@lƒL@bU`@nUb@bmlU@UÇJ@UUbmKkblŽUULUJV¦¯V@VWI—V@bWJkUW@UbkUlbkV"],encodeOffsets:[[117282,30685]]}},{type:"Feature",id:"429021",properties:{name:"神农架林区",cp:[110.4565,31.5802],childNum:1},geometry:{type:"Polygon",coordinates:["@@n`lIXll@lœl@b°aVklKXaVn@bU`mX@V„V@nmJn¼„V@bÞ@lL@„lJXVlL„aVLV„nVnalV„@VLÈUlblWXIšKVU@J„™š_‚@an™na‚X„m@KmI@mkk@KVkWWw¯w¯°ƒ@UUU@WƒaÅWkL@ƒ¥@kWWXkWmIUVVbm@@bUbmUU„ƒbW@UVk@mVkU@U¯ƒmKVUkaW@aULƒÆVbƒb@VÅ@Un@VƒLWl¯Lš„"],encodeOffsets:[[112624,32266]]}},{type:"Feature",id:"429006",properties:{name:"天门市",cp:[113.0273,30.6409],childNum:1},geometry:{type:"Polygon",coordinates:["@@@K@UlKVm„_š¥UwUmlUkwl@@aUK@k„kWWUaVUka@aV@ƒVUXaW¥Xk@WWIklm@ÅxmI™VÝUkxkaƒ„@bWJaUL@„W@™l¯UULU‚ƒbƒkV™Ua¯bm¤UnÇUkmUšUx˜b@VkXÇal@bVnlJnxŤĀVKXkVÑV@nwlKVbn@n„šlVbVL„a„J@„VV‚UnU„bVKlnXxV@°š„U@KnL"],encodeOffsets:[[116056,31636]]}},{type:"Feature",id:"429004",properties:{name:"仙桃市",cp:[113.3789,30.3003],childNum:1},geometry:{type:"Polygon",coordinates:["@@VK°VškX@@ƒVK‚bXI@a„ƒlblwÞVšUnJÆwn@lkXJ@X‚WVz„V@xnx‚VXUVVVkUw@mšLVw„KVU„@Um@alU@„@@KUƒmIUaVUšmnwmw™mb@aW@UkmKkUkVġkUJWbnU„õ˜@UkmUÅKƒL¯a›VkIk`WnkJƒ@xVLUVVbUbk@WlXbm„VxnxUblbUV™@@VUV@nVL"],encodeOffsets:[[115662,31259]]}},{type:"Feature",id:"429005",properties:{name:"潜江市",cp:[112.7637,30.3607],childNum:1},geometry:{type:"Polygon",coordinates:["@@UbVxšbX„mJVnXVlmVX@bkxVJVLVlXXWlX@@IVl„V‚U—aVwV™lnÈVVmn£°aVbUš„l„aVUK@mVU@Uš@VUkaVamwUwnƒWaXkl@VaUaVUUK@w„WI@aU@@K@_UW™@kX@V±VUbkKWaU@mI@¥kK„kW@ÅK@b¯@UVmI@lmIkVkUWVnšm@@V@n@JUnƒšU„@ŽmlXXl@@V"],encodeOffsets:[[115234,31118]]}},{type:"Feature",id:"4207",properties:{name:"鄂州市",cp:[114.7302,30.4102],childNum:1},geometry:{type:"Polygon",coordinates:["@@°¥WóXmlw„_ŤW„kVaX@@K@U@a@WwU@mWk@ƒULƒWkX±lUnV`XWl—@ƒaWLUb@Vw@wmKUa@°™kw‚yVUJUUVwkUUJWI@akWmLUnkV›aXVƒbUxUVWX¤lL@„lx@b„b@ĸUx@`„@lbk¦@x‚n²VƄX@"],encodeOffsets:[[117541,31349]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/hu_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"4312",properties:{name:"怀化市",cp:[109.9512,27.4438],childNum:12},geometry:{type:"Polygon",coordinates:["@@@n„‚@b@XnJ@k°x@aVUnl‚UXnV@@VnJWUJV„nIVV°ŽUbVVVL@Ž²LUVa°V@aV@nm‚UXblLXWVXVmVLVK@an_„`@X@l°„VlXXW`nX@Jmn@b„@nV@Lm`„bUb‚n@VUVl@nIVbUlƒV@LkJUnVV@xVblVUbU@ƒzUKU@mx@xUnn@@WV@lbUb@šnVWXX‚V@VIV@VUnJ@VUz@JWbXllI@VXVVL@ŽVn@„„Wlb@„Žl„XVlL„aV@VJ@XX`„kVwVl@bk„‚bUŽlVXIlƒnLVa„mVwV@@nV@XaVJVbX@lwV@n„@nV@VWnIVVUŽÆ@Xx‚a@I„UUKmk@mVƒ„IXmWUš™VJnUVU@anaVwk™›U@UXa@W™@m_@a¯@@K@UVƒ„bnK@blIlbXa@WW_n@VƒU@¯bmyƒUkUJÇÅ@WU@kWKÅwƒnm°KVkmankVWnXVWV@UƒƒwXkV@mƒ„UlLnaƒVaX@VUn@VnVK@xlnXWšU@a™@@klak™Vw™mUaV@™wmIÛ`m—@mVUXmlIXƒV‚I@K@aU@UaV_UK@wkUmmUKWXŽmVkUƒL@mƒƒU_nK‚™@aVU@Ukak»@U™™@ymUƒ„¯™ƒUUƒVKkam@™nka@ƒmwkLWb¯mkaƒ_VaVKUƒ™IUw@kKmU@WK@UnƒmaULkU@wUalWV¹U@@WUI@WU@‚_@W@U@mƒU@WbbUK@Um@@UmbUwWWkk@WU„a@anUUwlWUwUU@wlJVUnnV@@mnI@m‚K@U@w„a@wUm@_mƒVUUaVUkƒƒƒ_kċUk™VWLƒ@mlU@kn¥W@UwUWV@VÝU@lXLWVUbVLXlVIl‚knmU@VUJk@@„ƒ@™kVmwmVkxU@@XmVUb@xnKVLl@VxUxkIU`@bWVXX@JWL@bkb„¤@bmUUU¯Kƒkmb@V™VU„VVn@@„Vb@`lnœxmb„lUn‚bk„@xU„mV@bmWbUV@VJ„Il@nVUb‚K@nn@VbnJVIlJVkXJ@X@lmx@bnnWVXJWXU@UlU@mk@@llb°x„IUbnJ@VWbXVmI@JVX@bk‚@bWL@JUXUK@U@Uƒ`n@@Xm@XVW@@nX@@`ƒImxU@@JUI@KƒLmK@UÅUUV@VW@™¯kUU@UamVUUmJ@n„xmLKƒkmJkwkKm_mKXU@aƒU@b@Wk@ma@zUJVUmbUlU@™xnXlWlXXblK„¤V@@nUVVLkVš„l@Xb@VVK‚nXKVx@znW@X‚@@lVK@X@JXbWbnn@JUamLVVXIVxnK@aWUX@˜x@VnI@WlI@anV„IVxk‚l@lbXXšxVVVJVInbV@@ln¦ml@XXVWbkJWb","@@XLVKVXVKUa@UUUmV@l"],encodeOffsets:[[112050,28384],[112174,27394]]}},{type:"Feature",id:"4311",properties:{name:"永州市",cp:[111.709,25.752],childNum:10},geometry:{type:"Polygon",coordinates:["@@lxUXV‚lXUVnlVĢ„JVbUXVJV@XUW¯„VIUK@klW@Un@„nl@V`XUVL@l@šVx@„XXW`UnUbšxUlVnUšV„lb@VnJšUVVVInJlUšVnwVklKnw„LVJVšV@nIV@nbVa@KVVVUUa„KV_nVVJ@_VW„nV@n¥lI@anƒl¥X_VKlwVlULUVVVš@šU@VXL˜ƒ@IUmn@VU@wmKXUWU@m²šl@VIXWWkWUkWlkIVamUXamUnmWUU@@Un™lK@XJl@kVUk@mWKXkl@@aVU@UVWUUVa„In`VUVLnw@U@K@Uƒƒ@w@UVmUUƒ™°K@UnV@bV@Xk@KVm@amk„aU£VWUUmUUwm`UbULka›KXU@kVmU™@aV_UWVIn@˜y„XXK@klmV„V_kWVUn@WUU@UƒmaU@™wnwWanUmmXkƒam@UakLmK@b™xUUUU@Km¥Vaƒ¯@ƒkUaVUlm„UU@mUUÇmUk™Uyƒb™bUa™XUWWbÅLmL@V™aL@WWXUKmmk@a@UUK™XW¥kU@VƒUkxmVkUWbUJnVJ@nVJXzWxkŽ@lVbUX@VVL@`mbUnšŽUn™VV¼k@Ulm@mwLƒb@lmLUK@UamƒWkƒK@£Ua@ƒ›UkJkUmbVlkX@bWbUŽVŽnnUVl„@bšbVK@VX@lb„V@nU¤šx‚²„Knblb@x„V„ô@šlŽ@b@l@XWxnVl@„VV@XLVl‚LUŽUXV`šbXXmJU@@bm@UUkLW@UlUKWUUb™wUm™L@nklVVmVXXm@@bUKlÆn„‚XkllVUVVL@nUbV‚@V@nnV@xUn¯U@JW@UX@xĉ@™`m@@LV@b"],encodeOffsets:[[113671,26989]]}},{type:"Feature",id:"4305",properties:{name:"邵阳市",cp:[110.9619,26.8121],childNum:10},geometry:{type:"Polygon",coordinates:["@@XIlJšI„VVK@n@VVVKnLVwVmnLVK@U„@šw„J@wVIƚ°X@ÜȄUÈxll@kn@VwVaXJWXn@@WVL@UUKVKV_U@@aVK„x@U„aV@lk„@XylbUaV_šVnal@W„U@a„I@aV@@aVUl@Xm‚UXWaXml@@kk@ma@V_UnUV™UUWJUa@kkaWLUmk@@LUVWUkJWkK@¼UnWJƒIkV@b@JUIm@Ul™V™m@Uw@a@kWƒXWKUknW@ƒWUU@k™mx™UkVmIUJUU™VmI@UkaUƒV™UmVk™wVaVmX_WW@ƒUw@™@kUKWVU_k@ƒmm@@VkX@lVLUJƒX°WVU@UIVWUaƒIUġmkVUkWUVWkwWXk`mI@¥kUVƒUƒUn±@m›XkWknV„UVmmU@@XƒVƒUk`@Xƒƒƒk@¥¯»mbĉó@mkU@kU™ƒƒ™KmX@˜UnmL@lULkKUƒWUU@ƒbUaUnƒ@Vb@l„¦Ub@l™@UKmnƒKUnl„UVVbUVn„@`Vn@xƒb@x@VL@nmJ@nU@mmUVkI@xVVVxkXVxmV@bƒbXVl@Xl‚XVxna@Vn@@VVL‚aXaV@n„‚@@V@X`V@@XVJ@XV@UºkXVb@xlVVKnbm„@VXLV@n‚lL@VxšJV„ULUb„`lb°nXalKnx@„lbšmn@lbULV„„V°š„ƒnV@zšš@Vl¼lb@VUV@bšmLV`„„@n„KlVnU‚XWVLnnlV@xVLU`VbV@"],encodeOffsets:[[113535,28322]]}},{type:"Feature",id:"4310",properties:{name:"郴州市",cp:[113.2361,25.8673],childNum:10},geometry:{type:"Polygon",coordinates:["@@²zVaVlnVl@nšVk„Jl_XJlIVmnL@mV@VXn@lV@‚XzV@lyV¯²U@UlJ@XVKnVVIXl@UVLV`@n@J„I@mlI„KVLnUlVUVVLXašKVLl@nb@ŽW„XV°KUnVV„L@xVJ„L@b@LUVVVU„˜VXbmbVbn@@lUbm@x@XVVVŽ@@˜@bkImx@Vm@Xbƒb@l°XU¤„a‚L„mnL@bl@@™VUX@VxnV˜anLnƒWƒ¥XKVwnUWXmVIUWÆLVx„L„w@wVmlU@¥XƒWUkwlÇn_Uw„WV@VU°wnU—ƒy@aVškVlnL@lVn„w@VlJ@b„X„x@bVKnb@U@WVUl@@Vnbl@XLlK@aVLVKnxÞn@a„LlmUaVU™ƒm@ÅknUmaUKmVk@m™kk@UlWUkVm@w@kUU@W™U¯™¥@w„Ç@aVIlUV@kUWU@UUm»@k@mKVkUKUwƒaUaUa›@k„kUWJkImaU@UK™@maUzk`@zƒy@XmJkL@UUJmUkV@z›@kŽkVmK@¦UbWL@a@UbmKmwUK™Xk›VUUkmVkw@UUKmL@WUIWa—JW_k@@WmI@mk@WkWULUUVKUUVm@šU„bš@‚nUǃ@U@w„™V@Ua@aƒL@ak„›l@k™UƒJƒwó@@L@V@„™`@œƒJ@xnn™šmV@bkJmUó@ƒn—JW„UUmƒU@UV@Lk„WlnnmVXbmxšxV@nbV„V@XVm@UVlXU`ƒUŽkn@lWLƒW—zm@UJVXU`@bVšUn@lWVœLlbVKVan_VxnVVVUXV¤ƒbnl@bUn@LWlU@@amU@V¯L„šVVUn@V@x„„@V@L@VmxUKUVm_ƒJUbVV"],encodeOffsets:[[114930,26747]]}},{type:"Feature",id:"4307",properties:{name:"常德市",cp:[111.4014,29.2676],childNum:8},geometry:{type:"Polygon",coordinates:["@@l™U™mkUwUyV™@VW@¯Va—VmUU@KVUVUVLnaWƒnkUÓV_@mVU@݄w@ƒka@kVmƒUmK@IkaUamKkXWaUW@WUk„™@@KVU@aU@™L@J@XÇVUKVak_mWkLWakVUbmLUUmlUVKUU@kUWW@UImJ@xkLkKm@@Xƒ@ó݃@UUk@UKƒV™ƒULƒKƒXkWWbkaƒIUƒWU@mUk@WLaUJġ™ƒ@@XÈÆVIl‚„Vnz°aV@U„m@X`@XWbkakJ@amLƒaU„@V@L°@@bn`š@@XWb@VœVlšUxmb@bUVmVUI™šXVWnƒJU„@nnlVLƒV@JbWzk`m@UVK²V‚x„k„LVl„@Vn@V„„°xVKVkœVVlUblx@bU„‚Æœ@@nVnUll„kx@VW@@VkLWxUL@bÝ@kKkVõV@bkXVVUVƒ@ƒVkUkV›LkV™a™@@™ƒ¯xUxmX@JVb°WXkK@Vm@k„Vb™bn¤‚xUXkJƒblxnXÆK²l‚_@Wnašn@ŽUL@b‚JnIlV„@lUœ@@¯ô@lWȂIVKVm„U@aXaV@lwVXn@@K@UVKUUnU‚bn@lWšX„ƒlJnUšLšKV@„„l@²a@UlK@aV@naVX„WV_nKlL@KUm@a°U°@VXL@a@wWmXal@„k„@VLn›V@@bl@VnX@mwVa²aVU@mk@"],encodeOffsets:[[114976,30201]]}},{type:"Feature",id:"4331",properties:{name:"湘西土家族苗族自治州",cp:[109.7864,28.6743],childNum:8},geometry:{type:"Polygon",coordinates:["@@@KšL@wnK±nƒnm‚—@WUk„ƒÜÈn@n»@mVamk„mšU„„l@V™nmmU@wUan¯VKšLn„VWlInyWUœI@WWk@KXU˜n@mnUmU@WœƒmkV@ƒkXašaVaUm‚Ikƒƒ@kaƒX@ƒUm@UKWU@UkJWkXa@IVy@UmIUVU@UJU@WXWmU@™VakaU@@Xm@Vm@wnwV@VL„yV@VakUUa@wUUVmlI@K„UVkUamJk@VU@UmVaƒan_@KmUƒ@@anm@ImWX_WWUk¯ƒ@k@Wƒ_m`@bULUKUnUWWXkKWaVmnU@@b¯UUbVŽ±K@UKUUVa¯UUmJUƒVIXmI@UU@WmVmkUV@b¯w@lmI@W@aƒ@m¯LXbmJVLklWL@V@XXŽmbVVU@@VU²Ul@VlX@bš`Xx›zUmkUVÒlŽ@bXLWxXVlš@V„bkLma@nmVmULVbmVUb@lnzmbUÒVl@°nLV„lJkn@bmJk_ƒVmmkblxÈx@LUb„xVb@V™n@JmLVŽUš@„nV@¦VbnJ@lVVbkx™bm@UxVLV@n`UnVVV„kl°z„xVb@VU@@ÆlXnWm¦nbVK@XVVUVVl@X„KUV@nVL@WnIWŽXLVKVLlxUbVKXVWbn@@UnKVLVb„JšU@aVU°b"],encodeOffsets:[[112354,30325]]}},{type:"Feature",id:"4304",properties:{name:"衡阳市",cp:[112.4121,26.7902],childNum:9},geometry:{type:"Polygon",coordinates:["@@lšV@XV@„mXVlXL„W‚X@l@bVxn@šŽšUVkn@VJ@I@alU„JXIVm@»‚LXllIXVVU@Kl@VnXKlb@lVbXIVVUšmVVU`@nbl@@lXLVVVKVbnXWJ@VXbWxXb„Ul™VK„¦nLVVUVVbšb„K@U˜LnK@Un@VxlUV`UnnL@VVL@JV@VUnxnKVbV@@VšIVUnJUVUl@nW„XllIUa„KVbÞLV¼²`V@VIUwlaVmXa@IWanK@U@m„kVƒVUVaX@lšnaVLÈ@‚¥@kkJUWJUaƒXkaUm‚wVXJ@_lWUU@¥n_‚KkamUK„™@amKƒnKƒbV£¯W@k„aWan@@UnwlJ@a@—@UUU@W‚wn@Va@km@UanaWa—UVƒUUVU@K@aƒKUI@wƒKUUVm¯LWUXƒ@mak@UK™LWbUKVUkUmVUKƒLkJ@nƒJ@I@mU_UK@VWkUJmUUL@WkI@V±VU°kzU@Wy@kUm@UWU@@nmKUnkJWIk`ƒIUlm™k@mUUkUb±yUX@VUV@bk@WlXL@nVlUl‚k@WI@ŽkLmš@VV@XVmnnVWbnVUblJXkVl‚XXlWXUJk@±™@nXVWVnL@xUVm@Vn@J—„WK@U™V™@UUVUVKUkkxULW`k¦m„@bkJm¦U@ƒmUX@`UImUU`ƒLVbUVUU@LUbmaU@mJU@U™UIƒKmxkLUl"],encodeOffsets:[[114222,27484]]}},{type:"Feature",id:"4306",properties:{name:"岳阳市",cp:[113.2361,29.1357],childNum:7},geometry:{type:"Polygon",coordinates:["@@@wUklmUUmU@@UVm@wUaV_mmUKmwkIkJmUUnm@™™@UUƒbUKUƒmÛamm¯xVLkbÇƃUƒVUzkVUlƒUUKWLX¦W@ƒVUUUaƒKUbmLKm„@akU@aƒmVaUUVIVWkk@wkƒƒ@@xmLlmÅwmbVlXlÝIWVkK@kkVƒL@VWKU@Ublnaƒƒm@b@bšnW`@XUJk@UUWKƒk@UKƒnn‚@xmLUVm@kbVbV„nV@V„b‚@KnV„LWšXŽÆVĢ¦VblŽš„n„UJWz@ƙVóUVbkV™aÅx@¦lVUbVVknWKƒ„k@ƒwƒK™VU„Å„ƒl@zkb@`m_mJ@xX„mbVbœ@llV@n„@llbXL˜UXalUšl„alVnwnLVKlšVbX@@I„V@blJ@bVL@VVVUXȤ‚VnkVÑXmlbnš‚„VKkÑř@UmaVç@±XUlI„xlV„@VaX¯lUVVUšVJn—V@°°nŽ°„Vxĸł°¦šb²¦lJ@U@aUK@kUm@_m±VIXal@„Kl@„bV@K„K@k„m@UmUUaƒK@_UJƒaXU˜@Xmš_VmUk@WUk›@kU@a@m@UƒaUUU@al@ny‚XXWWwkly@¯n@@bnV@k@mVI‚„œVlUUmlU„JUw„I‚bXƒVaUal@K„b@ƒVKVkXVl@VkUU@ylUœVVaVL"],encodeOffsets:[[116888,29526]]}},{type:"Feature",id:"4309",properties:{name:"益阳市",cp:[111.731,28.3832],childNum:5},geometry:{type:"Polygon",coordinates:["@@„ŽÆxXL@l‚V„@ĢšVI‚bXKl@nVV@„XVŽ„JlbXalX„W„LVKš„„UVLl@VV„@ôބ@@Wn@lLlK@wnIVJX@VX@lVVUL‚VnkVVnKValUXblKnXl`UbVLÈU@W@IšKV@@bUV@Lš@lƒXV‚@VXXblWnLVblb@JnL„VUn@llb@„ƒx@ÞUV@nU`VÔmlX„mbUKUVUV@LVVUn˜ŽUb@°UXš@U‚VzVxnlVškšVnlVnaWƒ@wnIn`@_la@y„kƃVƒšU„L„xl@„ƒXLlmUUVakU@¥ÆwšblUUaôVšU@ÅXyVImƒ™ƒkUaġ¥ÅUWX™ƒKmU@Lƒa@UmUUƒUalan@VUnK@wm„m‚L@V„lXLVVl@VI@WX_™m@a™¯mKUkwW¥UK@_UWWLUVkUWL@WUIkVƒU@JƒwkLUUmJVI@WkXm@VmkKUIU@mmm_@VUV™@™„kJċwUU@KUWkkW@IWW@km@klwkWVkkU™V¯m@kWLU`mIkmkXm@@`@L@xUKWkU@VL@JUU@mbUKVa¯WVnL@`lXUVkU@xW@UbUWVU@UJ@„lnU@m‚nÈmVƒa@bUL™wUb™@@VkxmUUƒ™UV›K@IƒUƒmk@akm@wmIƒŽkK@b™VWXkm@wULUmm@UVW@Ub„mbkKƒVn„U@Wl„xV„U@UXmWUXmlnbUl¯Lmn"],encodeOffsets:[[113378,28981]]}},{type:"Feature",id:"4301",properties:{name:"长沙市",cp:[113.0823,28.2568],childNum:5},geometry:{type:"Polygon",coordinates:["@@lVUllXkx@lln@‚XX@JlXXl‚V@LVVČxlIšƒš@VU@Un`nnV@VJlLUnn@lW@XUJnIVVlK„x@I„VlUVJ@XXKlVVUXKVX@`VLX¦lxVŽnLš°‚an@„„‚bkmVaV@XL@U„KlU@llLXUÞJWkUknaÆxnŽ‚knK@w„@l„@xllUXUJVVUb„n@blV@bnƒ‚LnKVa„LVbVV„UX@W¥XKVL„VVklUVy„U„VÈÅlaUK°wnnÜbn‚V„VL„aVVš@šn@VmnVlIlJna„@Valkn@na@amwm@„UXw˜K@aUUVUUaVa—wWK@kU@UaW@kKUUƒƒ@k™W¯XWan@k„™mmÅ@@I@U@KmLkaVUƒKkLWVUƒk@UVmU@am@kkk¥ƒUƒVUK™„maUb@ŽUb™I@aƒKkkWm@W¯K¯b@VmaULVxUXlVk@UxVJVbUb@xULƒ@ULWW—LƒĕmxVVL@šVb™KUwƒaŲWwX@@WƒUWLU@VbkV@aU@@VUnmJ@VUn@VƒLUK@U‚mUIk@UÇmU@@UW@J@LƒbUmVI@aUmW@@bkXUx@lmLUbm@UbkJ@V@XmlUbkKm@ma@kUaVU@aUK@mImJUIkVƒUƒVUakbWwka@UWKkLUamKUXm`Å_U˜ƒULmaU@@lUV@X"],encodeOffsets:[[114582,28694]]}},{type:"Feature",id:"4302",properties:{name:"株洲市",cp:[113.5327,27.0319],childNum:6},geometry:{type:"Polygon",coordinates:["@@X‚‚Unw„Ė˜KXXVK„@VK@wVaUaUIVwl@kUVWUwVKnb@U°a°LXŽ‚@Xnll„L@bšJVa@VanbšƒVL„U„V@al@@UV¯ÅÇ@Ummk™w@¯ƒyVwnUVVVUkmWV—nKVUƒa@WXkVKn@lUVU„VVVXIlV°VnI@VlKnV@mwVm@LXKWkU¥wWwƒƒ@k@m„X@KX¯V@VUVa@VnKWkœƒV@VUkm@aWa@wkUWwkmV£VÿXUVL@mVIXaò@nW@ašUš@@am™@aUU„UmXmWUk@ƒƒnUW@_maVm™wUkamaUL@aƒwƒW@akI@UƒxUm@kmKUk™lUŽ@b„zV˜m¯xUVU@ƒXVxm`kÈlxXVW„@¦kVUn@xƒxƒKUwÅKVXUJWnXŽmVUxWL„¦XŽm„mK—bmUUwW@UV@šk@ƒšVLnŽlbLm`@¦VVkX@`WIUŽxVnlb„WVbXIV‚lI@l¦Ç@UKmbk™W@UbUVU„ƒl@n@VmLXb@JWbUnkbVxUJUxWXXlWL@V@V@XXJWx„zUVVVVKnXW`@bkIUl‚„nLVJUbUIWVXlWV@XklVbnn@xlš"],encodeOffsets:[[115774,28587]]}},{type:"Feature",id:"4308",properties:{name:"张家界市",cp:[110.5115,29.328],childNum:3},geometry:{type:"Polygon",coordinates:["@@@InWVw°wš„@š@šblUœKlUlV„U„@VUUUlW@aöUlUlLÞ@@aVKXwlK@UX@@UlwkƒVkUm@m›@ÅVƒ@akwVaUk›UUlUL¯wƒƒ@UUmƒ@UkƒKƒlw±UULVn@l_XyWwÅ@VUUmJUXU@@mmƒU@kxW@UaUIWbU@@mU@UxƒnUbmKk„WJkUValƒ@aUkUxƒlW_@WUIU@ƒbkKWUJVnUb™bWb„lU@nl›„@XnVmV@n—mWV@LXl@X›JXVmzkJUXmƒ™KULm°Vb@xnVmnUšk@ƒƒ™VƒnnlUb@nm¼m@Ûǃ„Vl@X˜mnm„²ŽmL@x™K@LUl@nULÆx@V@VXVWbXX˜l„@nLlm@bVKœX‚W„L°bnUš@VaVUš@šmšVw„JnwVK°zn@V‚Vb„a„@Ċ¼"],encodeOffsets:[[113288,30471]]}},{type:"Feature",id:"4313",properties:{name:"娄底市",cp:[111.6431,27.7185],childNum:5},geometry:{type:"Polygon",coordinates:["@@lL„nJ@xln@bnlV„‚„@JœLVUšŽV„nVlw@Uš@VašxVK@a„bnUmÇnV@km@ƒ‚I@VUVVXVaX@@wlVVUkW@_mKXU°‚UbVLnaV@‚V@IUKV@XlVL@w@K@_n@lWlnnJV_XK@l°nšU@WVU@kV@nbVK„V—lƒ@nLlƒ„LXU@ƒlmkw@nW@UKVa¯IVn@@aVUUKl@nXVKVn²a˜ŽXblKnLlmVI@KUU@akLUaVa‚UXm@aƒ@wVUVKnLnWlXl‚n@@U@anUVm@U‚Inm@IUK@UmKVmU_kVUwm@@VmL—K@VƒL™aUaVUUUmKƒ¥ULkšƒVWaXwWa@UXImWUaULUUWKk@WnXbWŽVWnk@UV@bU@@bƒJ@bƒV@XkŽmb™UU`VbkaWzƒ@klU@ƒb@VƒwUL@bV@U`ULVL@VUK@Xm@XWWIUbUxm@@lkkÇwƒVÛÇW@¯Å™UJ@xƒI™xƒ@@VULmKUnUxmKULUUm@@‚ULƒU™JkIWJ@b@LJUW„kJWnUV@nn˜Ü_nJšxU@VbšnUxlškb@lš@"],encodeOffsets:[[113682,28699]]}},{type:"Feature",id:"4303",properties:{name:"湘潭市",cp:[112.5439,27.7075],childNum:4},geometry:{type:"Polygon",coordinates:["@@Æ`n_VWnLVblKXL@VlbXxlaVb„U„VlUVJnInJ‚@VL@bUVVb@lnbn@lLVank@W@UlIVan@VanK@kVwlW@aX@Vn@bUJVn„a@K‚IX@@VV@nŽVÈl@VJn@VVL„K@UVm@UnIVm@UV@@blUUaV@XK„V@XW@XxƱ„bVxšLUa@™UKWk™@wmmUalk@WXUWkXUVJVaUImKƒVklJ@aX_mWULUUVUƒyXwWI@W@U@UXKWkXWVwU@±_U»ÝKUaƒLVbkJkƒWmXk@UVVŽmIUV™J@UU@UamLmwUVU@mnJ@VUnmV@b@Vm@kkWmXmKULUV@x„Ž@bWnVUbVblK@bVV@LUJknmKkLWa—±bUmULmWk@VLUV@bm@U°JUbVLX@@mlxkn@„WVƒKk„mK@k„"],encodeOffsets:[[114683,28576]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/jiang_su_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3209",properties:{name:"盐城市",cp:[120.2234,33.5577],childNum:8},geometry:{type:"Polygon",coordinates:["@@„n@‚°ĀÞ°@¦ULWKkx@bkLWb@lUlVXXJVbƒnUKmxXV@bm@@Xš‚„LޚܦXlVnš‚mzVJ@n@‚²ÞôkƃÞaȰĉ‚wnljÜó„éVÛnĊīČlj‚ĉ@ō@KÞUlU@ƒkklÇÈњÑlġXɛ@UġƒƒaU@U_ƒW@n™@kaUL@VW@kKmkUV@bkbWW@bkzma@ƒJWI@KUKULƒ@U¦™`@XUJ™U@KmXƒw¯KXkmy@aUIWJXXmV@K¯UU@@bVL@¤VLXbV@@JVXVK@„„JVn@bkKmakVVXUVVVlI@`U@nzVVƒb@¤n@@UlKXLVVšI@V@nV@V‚@ÈUx@šóVōšƒkÅWó@mU@bk@Ýwk@WbXxm@@J@zV@kVƒbV‚nLWVUX™WUXUŽWLUŽ@Wl°z@VkxU@UVWIxWJkbƒĬ„nW@@bUl"],
-encodeOffsets:[[122344,34504]]}},{type:"Feature",id:"3203",properties:{name:"徐州市",cp:[117.5208,34.3268],childNum:7},geometry:{type:"Polygon",coordinates:["@@XKVX@WnIVx@K°Lnll@@I°K„nVašU°x²mlxš@VanU@aƒk@akmV@@w™@Ua@aUwVwUw@w›@UK@£kaĉlóIÇVkŽ±@@kUKmVkIkxW@Ua¯UUm@UVI@WVI„JV@ƒ@Um@Uana„U@m‚I@J@XV@XaVlkXƒVaUUWLUyVIXmWak@ƒXkJókƒJUL@KWkk@ULU@Wa™lUIkJmI™mk„VbVš@lV°kXUKWKULU„mb@VUlVnƒb@VV@IVKUUmU@ak@@bmV@xklƒUƒU@UKmV@nƒJVbkXƒKUamLUJ¯UUVmI™bVV—Ll`@LƒLU`m@kXUVU@V„lxUK@xkIWbUKƒx@V‚kVVn™b¯@@U™@ƒxk‚mbkLÇK™b™@@XnJ@LmVklƒ@@XƒlUƒVkxƒakVVb@bVnUbU@@x˜VUšVb@š„ŽnIĊ`šXVVôJš_„K@xlU²Klk„U„@VaVVÈm@kVUVmnamUUaVƒXIVJ„@‚ç@¥nkVLn›„@@XVK@VUX@JVUV@UnVJVLUJVLUVlšnI„b‚KnU@m°™VanI@anV‚KVL„an„lK„blš„KÞk@¦@¤@„VKnLVK„L„KVzlWšLX@VmV@VbnU°@Ualk™˜WXLVU„KWkUUWšƒ@£Wa"],encodeOffsets:[[121005,35213]]}},{type:"Feature",id:"3206",properties:{name:"南通市",cp:[121.1023,32.1625],childNum:7},geometry:{type:"Polygon",coordinates:["@@VJ@bnzWl°L„xnW@LšVVI@Wš_V¥„@VKVL@LXJ„I‚@nbly@aXXla@aVUnllLX@@UVKlbš@@m„XV`V@„bĢ„lkČÇƃȘ¯šwnĕVĉVÿšUƒUĠƒŦğlXÑVǵ@±ōLʵĖ¯lÇbÝÞ¯xk@Çkķé™n¯@ğŽġƴǫ@kVVlUbƒL@xULǂóLUl¤@nkVV°VLkxVb@l™aUXUKWĖklVX@¤UšƒUkb"],encodeOffsets:[[123087,33385]]}},{type:"Feature",id:"3208",properties:{name:"淮安市",cp:[118.927,33.4039],childNum:5},geometry:{type:"Polygon",coordinates:["@@šnźUôÒɴ胚l¦nĖV‚kbmš„X@xVlVL@xUb@bUJVnUx‚šœ„lKVLÈx‚m„zXV@lW@XV‚b@bȚVxnb‚ƒVIXa°L„aÆVVaXUlK@aXIƄVlXKVUlIXalK@alwXLVK@¥Ý¯¯ÿ@ƒmVk@aX@ƒm„īlaXI‚wXJVUV@lw@U¯yb›UaƒUġUÅaUKVknaġm@kUm@wÆIV±nLÆw„ÇnUUkƒ@ƅÝU¯JÝI¯¦Ul@bƒ@@VVL@l@LƒLÅmƒL@b™@UaVaUWmLUKV¹KƒLWKX¥WI@mXk@UmaUVUU@VmL@W™bkIUWƒUmVóIkbmm™@UbVLUxmJkU@bkJWbnXU`Wz™KUÞÈlVb™Lmx@„kè@Æ"],encodeOffsets:[[121062,33975]]}},{type:"Feature",id:"3205",properties:{name:"苏州市",cp:[120.6519,31.3989],childNum:6},geometry:{type:"Polygon",coordinates:["@@ôèĊVnX°¤²„lxƒÈÜ@²x@J@b@X‚`nIUƙUUV@bl@VVnL@L@xƒJ@X@blJXnW@@`XbW„kVƒ@UbVxƒXUxkV@LóxVbUVWš²šVJĸklUǬ@ĢƳĠ°@šmƒī°»ÈÇ¥ULUU±a@bU@¯ƒU@KnImUVWUk™mXUVU@lIVaUUVWKUbUkWKU¥n£WakJUkUL›K¯L™KkƒVIn@VaUƒVUUƒ›UkVk@ƒU@amUkJƒ@UUlwX¥W@@UkVmk@JUakL›@kk¯ÝmJUn@nmVXlmbVVkn@„UJ@±WUxV¯a¯KōbżÇxUxƒšUUlWL"],encodeOffsets:[[122794,31917]]}},{type:"Feature",id:"3213",properties:{name:"宿迁市",cp:[118.5535,33.7775],childNum:4},geometry:{type:"Polygon",coordinates:["@@XbWnUJVzXKVVUbW„klUWbU@@W@IJ@nƒVmbVbn@@V@„UŽƒIUJ@XUJ@VVn°VVbX@lwlJnUVL@l²@lÈUôJĊklb@¤VLœ@@xVxUxVx@bVbš@@xU@ln„mnX˜mXLVmV@X@lxVnVJôL„LXa‚x@b„@@KVL@bn@@m@™@alLUUVaU¥nIV±‚I@mXI@aWWXU@LlUXWW_XWmaUwǙ@aaWUX@@kWUƒynÇwUKkL›ƒ™VwUmVI@aVa@wUKUk@wƒWn™laUmĕk¥„™ɳçóÑŹV™mmzkVmm@a@Ióƒk@@LWU@`—„WbXLWlkImJVn@`nXVbXŽmL@Vn@‚l@nUVl°Xx°U@LVĠ@z°˜@¦UV@Xn@VJmV"],encodeOffsets:[[121005,34560]]}},{type:"Feature",id:"3207",properties:{name:"连云港市",cp:[119.1248,34.552],childNum:5},geometry:{type:"Polygon",coordinates:["@@@‚lzXxmÆV„„@@¦„@l`XnlKšXXm‚KnLla„b„@„xmbm@kL@V@Vl@@VUXšJX„mbš@@„°Æ@èÈzlW°XĢJlÈ`lInbšWV_@mš™@UUķnƒôw°ÆmnaVƒVÛVmĸ»Ģw±Ý@@mUIny™UmWkۥݙƒK™@Wn@@aWUnwVL„mUaWIUWVk@kkJUVWLUkŃWJ@bkLWVUbÅUƒb¯KWbUJ„WXX`WXkV@KWVXX@bWJ@nJU²mJV¦UbVVkK@b@š@nm@@aUK@Lƒ@@awWbƒKóKUIUmkwW@U@UnWK—nmWƒn@b„l@bmVUb™@kw±n¯w™VUb"],encodeOffsets:[[121253,35264]]}},{type:"Feature",id:"3210",properties:{name:"扬州市",cp:[119.4653,32.8162],childNum:5},geometry:{type:"Polygon",coordinates:["@@VUXblVVV„b@xV@kz„V@l‚wVLUbVV@VU@VbUbl‚b@nkĶ°IÞV@Ɔ„VlmVƒÈÅxmKU²ÅJ@xVn@lĢnmbUlVLÆbĢV„V‚bœV‚aXk‚@VXKVVWšXVWXUmKU„aWaU@™¥@£XW‚UUV@@ynam_VWkUVUna@ÆV@mnkWmXkWU„W@k„@@akklƒlWUI@UnKl¥™I@VVma@a@I@U@a@anK@UmK@ÅVUnJl™kI@aVwka@mVIUW@UWL@WÅbmIƒƒULka™UWƒUxkLUKWlXL@VƒImƒÅVƒU™mĉL™Uól¯I±l@ÒUbVbUVVXUJUnVV@lnbl@"],encodeOffsets:[[121928,33244]]}},{type:"Feature",id:"3201",properties:{name:"南京市",cp:[118.8062,31.9208],childNum:3},geometry:{type:"Polygon",coordinates:["@@k@ma@kUUVmVIUWVUUaVa@Ѳk°Jôk@Wmk¯KmX¯aUakKƒƒWU„@XU‚LXaV@@mUaVUUl@VmkaUXm@ƒWUUna°IlmV™m™IUW‚@Uk@@aV@VVX@„V‚I°»nm„U@VKVan@m»UaU@U_@WlIUa™aVaUala@¯n@‚ƒkaUkUUWKU@mwkUUmmL@K@ƒLmUUVƒKƒVÅImU—JƒƒVkVVLšèVLVU@W„L„V„š@nVÜULVŽUL@bW@XbWbkJƒUUVUxVXmVk@WUUkVmIƒV@„nbnVWbƒJU„kUULƒa@Jma@XkK@VVL@L@JƒLUVU@V¼ƒnXlƒbm@kbUKmn@lVb@VXXV‚UV@b@LVbÆxXbl@@lV@U„VV@XVK²VlIš`„UbVbUlVVn@WXn@@VUV@„@KmbVLXқLkKƒV@nX@VVUV@b™nVllbšmnb„IWVXU@`lLlknVnmlLlbUmVInK°nUƒU@l@VU@Vn@„ƒ@alI„`VIXaVaVa"],encodeOffsets:[[121928,33244]]}},{type:"Feature",id:"3212",properties:{name:"泰州市",cp:[120.0586,32.5525],childNum:5},geometry:{type:"Polygon",coordinates:["@@lUU@@y@In@WwXal@Þxl@@anVô@ÆX„lŎ™ôU@™Vw@ÇUU@@m@U™JUUWKkL@Vm@@£„aUUmyV@@_kJUUVUUWlUnblL@aUmƒI@ƒULUW@IU@WaUK@£UK@aV@°V@LnUWWXIla„VV™@£UWlkXĕVLVWšb@kUalwUKU¯lU@mk£VôKȁVK@w„KVaUkķlUI±™ğ¥ÝUŹš™Ž¯ôm¦ƒĸ™‚@XXK@VVXUJ@nlbUx@blJkšmIUV@ÆnL@VmL@b@b@V@J@bnb‚U@UšJk¦mL@VVJkXk„ll@bƒ@@lƒXXVWlXnml@nÅU@ŽmbUVlVUXn`mb@zU@V‚VWX@¤š¦V@Xb"],encodeOffsets:[[122592,34015]]}},{type:"Feature",id:"3202",properties:{name:"无锡市",cp:[120.3442,31.5527],childNum:3},geometry:{type:"Polygon",coordinates:["@@nLƒÒlxUVkL™am@™ƒkVWUULUxVVVbUV@bVLU‚nnź™ÞVĠ¦X™VUUaôw@KlUVw„WUwVa„@lUXƒWa@_X@WmkI@a@W„I@w@KmKUUk@@aVUšVVÅmJ_@W@a@I±wÛ@ƑÇkw±ƒ¯£mWĉUóçƒK¯VkUWK@XkV¯UWabƒmUa™UUb™lln@b@xƒbXŽWX`@„VxUblL@bn@Vb@`m@XbWnn@l¤„n@xnVlU„™VLÆWœkV@VbÞJ‚_nƒl@nKVU@aU™U@mVk°WVLUV¯bVXŽ˜bXlVn@VmL@x—V@bl„š‚@œnW@X@VVJ@²VJVU"],encodeOffsets:[[123064,32513]]}},{type:"Feature",id:"3204",properties:{name:"常州市",cp:[119.4543,31.5582],childNum:3},geometry:{type:"Polygon",coordinates:["@@„L˜ŽnxUbVVƒL@xnnW‚nn@VVXn@‚yœImx„„°ƒšL„a‚¥n@VkšKVw„W@nX„VJ@b‚@UVn„ƒ@UnUV@L‚b@`VLklVÞn„Æ@VaXLl™ÈJšmmVUK@aVUUaUUVwVKXVlUš„n@šblKVUkw„ÑmKUVUI@±UI@U@WmX@›™kƒ@a˜U@wnK@UUmWk—aWU°aVUUK¯XUl@nVŽVš@bUVmLk@m„`ÝIUaU@›lÅXUKƒškVmU@wƒmk£m@XmWan@@_Uam@@akKVaUw@ƒW_XW„a@w@akmm@mL@UJmnUKƒ@@XnJWLkKUb@„Vxk„WƒL—aWVUImVULUK@L@lkLVVVllb„m@@°kbVbUbšbVbkJ@XV`V@Vbn¼"],encodeOffsets:[[122097,32389]]}},{type:"Feature",id:"3211",properties:{name:"镇江市",cp:[119.4763,31.9702],childNum:4},geometry:{type:"Polygon",coordinates:["@@šVĊKšn„VÆUn„„J@UWKXkVLlKVwX„šVlbVK„„nJÆaš„ķn¥°óÇIkšWKUbÅ@mƒUÝlkUK@_a@KVUVm„@mƒVU@@aUIWƒ@mƒXUx™LUlm@¦ƒb™K¯„ƒƒnw›Jzm@UW@UmmXmm@w„KUUVamw—ƒKm@UbUL@ŽƒVmn¯¼JƒUW@UUU@@bl@@VŽVXšJšnnU‚‚k¯JmbVV„Xn@VWlbUnk@VVUŽVb@nU@WbKWVƒ@XV„„lLVb°bnW°Lnl@X"],encodeOffsets:[[122097,32997]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/jiang_xi_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3607",properties:{name:"赣州市",cp:[115.2795,25.8124],childNum:18},geometry:{type:"Polygon",coordinates:["@@„`l@Èbln„@„KVLl@„V@bȎlnšKXkVlVL@„lJnb„¦VKVVnX„W@w°@VU„mln„UV`šU„bVUV@„xnKVI°KXKVkVL@al@Xa„LVlULWV™VVL@b„x@VXVmb@x@V™VV@nn¤„šlb°b°KXXWbX`lbXx‚z@x„`VIVUnK„L‚x„WXLVKVbVLVU@wnW°b„@nalX„‚mXVJn@U²mKkVl„U@@xlnœaVmlKnœ@JVLlŽnVššl@XXÆèVlUX@xVLXVšb°W@wnUWmXk@K‚LVwUmUkUKUw@wVaVK@kƒ@WnkUKWkwlmXL@KVUlLVKXmWU„L@ašL@malaVk@aa‚ašƒnXš@VVUblb„Jn˜ƒXa„V‚wn£„K@UWmUk@ƒUaWIV@b™JW@KmmU@aUUUkmKkVKlUU™nKVU„lVaV£Å¥WUUK@UkUUw@m@mIkƒƒUUWƒLƒK¯Uw°¯@wUKUbƒKmƒ@kkKUL@UUKV¥U@manw@k@U@Wm@@U@Wwkm„wWaUU@UUmV¯kwƒ@@kmƒkKkUW@UK@ÅV@XWWkXa@Ul@Va@KVaUUU@ƒaXwla@UkVWaXk@K@lmkUmV@Vmbk@ƒ»XIƒ¥VUkƒVUVU@anKVUƒKUalU@wX@˜™@a@K—@ÝwƒL@ŽUnÇlUIkJmn@ŽƒbVVb@VmnkLƒV¯U@ƒ±l—IWmƒ@kaUI@aÇU@K@KUIkbWbƒJUIUyƒX¯ƒUbU@méUUmUk„WK—xWIkJm@V¥U_UJUwmVkšƒUU@ƒƒƒ@knƒwm@UmkWJkL@n@VW@@‚U@knm@kUml@xÅxƒ@@XUJlb„@VX„JVxn@lbV„@lULnV@VlnV@bWV@bXL@lVLVb„V@blLn@Vl„K@xln@bX@lašLVbnKUVVb„KlXVVkxƒV@nnVUb‚lV@@z—°WWkbƒIk‚WL@LUJ@bUI@b™`@UmI@mkK¯XW™™mUV¯@UUVUUam@@VULWUJƒIm`IUJ›KUkW@Uxn‚WbnnmlXbmIUVmV@Vnb@V™LUKWLnÒVVV@V„UL@„kJUV@bƒÈ@ŽšV°šŽ@XVV@l@xUz"],encodeOffsets:[[116753,26596]]}},{type:"Feature",id:"3608",properties:{name:"吉安市",cp:[114.884,26.9659],childNum:12},geometry:{type:"Polygon",coordinates:["@@lxnb@V@bV@ln@‚n„‚lInš@blVXK‚nk¼@VUKWL@b™L@`UXU`ƒ@V¦XLĠ@lJ„¦@„nV@l°nn@‚mVXnaš@nb‚K„n@l„IVƒš@VanJ@_lKVVnš„L@L‚K@Vn@VbšUVanKlLnbnJVbšnWVnVVanI@‚Vb@L„bVKVanXVbVJVU@aXLll„bôlƼXxVLVK@Xn@ƒxnVVVmb@LnVVKVXV@@mnaVXUVnV˜K@_UaUmšwnKV_‚anKVLš»„K@¯ÝU@›™U@kWlUn™lknK‚VnaUkma@ƒUIUwl»Åw@ƒVwV@n™‚n@ÈXlKVmna@kVw@anm‚@n_WWk@™™mUkUK@Im›kLUn›bkm@wV@kƒlUnLV±m@UInWƒkWmbƒ@¯amX@xUVUKUaULWKƒXwƒKmLUVUJƒ_@wyWwkaW_XaWW¯L¯akaƒ™m£@mUUš@U@wnaWU@Uƒw@aUKšUXUVKUkƒKWbk@@bUKUlWL¯LUJmLƒwU@UVƒa™VU_ƒVkmƒnUV¯@@xƒXmWUUULƒ¥makI@ƒUKUkWl™LkmǍ@aƒUk@UKƒLƒ@kmÇak@ƒ_VlkL@`lbnšlLVanLnbmVÆln@škJlbknmKUbÝmmwULUK@bkLWKULUUma@Kk@UV@L@llbVzšxUxnl@bVLmŽšŽ@IVJXœVlƒLV`@bn²@J™@™V@Xmbñ@WbUJ@bm@@LUĬU‚„¦lV@xXb@blnUV"],encodeOffsets:[[116652,27608]]}},{type:"Feature",id:"3611",properties:{name:"上饶市",cp:[117.8613,28.7292],childNum:12},geometry:{type:"Polygon",coordinates:["@@„„@„V‚š„„I°`nm¤²@bVJUVVXUl@Vmb@xV@XbmVVœ@lkLmbn`VbnU‚@Va„UnbVllUXV„a@w°VW@_VWšLššnVlbšLVbnl„KšnVK@IUW@_@am@™‚ÑUólK@U@WU@VwU@UI@aUU‚aXƒƒ@kwmJV@yX@k‚anƒƒ@mkwVmmI@aUU@aUUW@kVkV@@anKš»„XVWnIVUl`@_„W@wlUœV@UWKnU‚bnŽ°InJl„UV@VnI‚b„Wn@VklL@l@Vn²m@U`kI@bWJƒnV@°VXnJm„XVmx@VVL@bkLmWULUmU@ƒbWXb@llnX@‚xkxVV„nVV@¤nL‚nVxnJVXX@˜ššbn`VI„b„@„blmlLnaV@„blWXnlUnbl@„ƒšKVanUVmm_XK@kWWnašU@UnaWUXa›ƒXamUkKmXUWƒLX¯WakKm™nUWwXa@KW_„aXWW_@WnIVl@XU‚LnWVknK@ImyUUÆbXK„Û@W@IÆUnƒVÝlkVK@mUIVwkUVaUm@aVIVyXIƒaÈwmmk@UnanVUmÅaó»lwšW@kkUVmUK@WKLƒUmWULkamK™Lk@Wa@wk@UU@U@mbUIWVKUXWmkUmVm›U@LkakKƒw@w@U™¯ƒ‚ƒUUn¯l@bmn@xkJWxkL@VkI@mƒkmJUI@V@b@VVxnbWlkÈkVƒLƒbkKmVƒL@V@²nxW‚kLUL@xlKVx„bXmVnšWJ@ޙ°@n™xUKUw±`UImVmnU@kalm@akwƒU@UUJmxU@@Uƒ@kU@Um@@Kn™ƒVm@k™KmkU@@WUnkLWxkVUwmKmLkU™bmKUbVŽ@xUnkJ@n±ŽšUxVXUšWJ@LUb™lUnm@ƒW@nknUJUVm@kXllknVbÆK„VVbš¼V„@šUl"],encodeOffsets:[[119194,29751]]}},{type:"Feature",id:"3604",properties:{name:"九江市",cp:[115.4224,29.3774],childNum:12},geometry:{type:"Polygon",coordinates:["@@WUkVUkmaƒVUb@mVUam_nalK@kU›nUWaU@@wna@UVkUWVUUI@a‚±n£m¯_ƒJ™ƒU@ƒƒƒĉ¦Ul@UV™Km™mLlm@ğ¹m`Uk¯@@UVK¯™@UUK@amkmKkVVUa@UkUƒKƒŽUa™L@VVXUJ™@ƒnƒ@™š™WUbƒnVb¯V@LÅlÝIƒJÅkݙm@Ua™WUU@UmUXmmwVUUKWUX±mUam@kWƒzUaVmÇw@aÅLmKXƒ‚UWKkL@W¯IƒwVw™lkUƒJ@Um@ÛÈWŽKUxWkƒaUU@KkLVl@„UKUX±KUb@nVVUbUVmaUlUL@„ƒaUL@‚@nUlWzX`@„V@lx²„@Vlb@bšVÞ@°nl@UxVL@lUbVV@n²xVUVmnUÞb‚a„J@IšV°xnbl@nbÆ@VwnK@VnXlK°xnUlVX„V@Vl@L@lk@W_XK@KƒkWxUL@J„nVx@aX@VVUa˜IXlmL@bVVX@VbnK‚a²XVWƒk°a„@UnV¤nbmLmW@XbmJUbVL„aÞK„L@K@U@aVKlbV@nXlJœxV@VnšŽVȚ„ÞKôbźĕČmV@ĊšŽ²xÆIšV@Þ¦ĸ¼ÞVlŽVÞnxln°Jœk‚LXWVUVUVwnJVI@yn@lXlaXmWI@w—»ma@UmK@akKkXmW@_kaWakKWk@@K@IšWƒkUa„ƒ"],encodeOffsets:[[119487,30319]]}},{type:"Feature",id:"3610",properties:{name:"抚州市",cp:[116.4441,27.4933],childNum:11},geometry:{type:"Polygon",coordinates:["@@°V°UnÜ@n@lnLlV@bšV°L„lnLllVzVVXlV„V@@L@xX@WlX„m@UVƒL@V@n„°škVmVUnKlaXxVbšnlU@lVVnaVI@aX@V„šJš@V„@b„b@šVbš‚@X@lUL@Ž@VlIVm@wUVanLšalVnKnLVxlUXwlKVm@k@Una@mWIXKWUÛVƒk@a@UVWn@@kl@@W„XlW@_Um@UVK@a„LnalInWV@@xnI@¥‚K„—šm@kKmƒnk@mlI„¤laXbVblknV@U‚KXVlUXa‚@@Unw@±mU@ak_±a@ƒUJUIƒVKW_Xa@aWU™šK@mmUVa@IXa@UWmšannlmX¯WKXwVUVwƒ@XUlK@klJXa@kƒkmm@Uwƒw@¯ƒW¯kw@WmbULƒaUUU@mVUU™WmkUb™KmkkK@aƒkUƒ¯¥Uƒl—ƒm@akU@mš@KVIVV@KUkUVUkaƒUWb—„mƒIkaVaUU™@mW™„b‚b@bUlkb‚b@n™K@bƒKXVWnULkKUV@LWKknlxXŽVLml@X„Ž@lULUb@xVxVLVlVnUxK@LWlXnmV@x¯X™aWUUK@wVWUkÅçm`@mn@bUx@lmbUnkLÇWm@mšU@Ux@„Æxk¼VxVJ@„nbVlmbUmLklmškVlX@‚VœšV@°Þ"],encodeOffsets:[[118508,28396]]}},{type:"Feature",id:"3609",properties:{name:"宜春市",cp:[115.0159,28.3228],childNum:10},geometry:{type:"Polygon",coordinates:["@@@VlbnK@b@JšLlUnx±ĀXxÆW„X@lš@V„@@blJ@nX@˜xUbVVUbVV@b—VmnmJœ„@bmbm@klUbƒLmbœš@lVb@xUX@bVVVbV¤@LVV„bXlVw‚LXÜÇn@@V„IlVškUx„x°J@XlKXLV„‚WnLÆK@bÈxUnVb„ylXn@Vbn‚W²XV‚LVVUŽnxWnnV@VVVšXVbn@ޚÆl„IÞJÆk@K°UUa„mVa@UUUš»@wV@VƒkkUKUVW£U@UmW@@aXkVUnVlKVV„UUkVmU™@kWaUanU„VVamIX¥W@@aUaUVW@_mW@UnIVVn@VbVm@bVL@anKVUkƒWK„UXV‚Ikx‚@na„bVK„b@nVJ„_V›@Vw„‚VUVVXUlUUaV@X@VblašbnKlkVaXaƒ¯@m@U„KVUn@WƒXkW@@w@KU@UƒWkUUUykkmKƒk¯K™U@akUmK@k@mmÛ¯V¯U@‚ƒL™¼UKmLbU`mL™xVnVb@`—LmUVUUWmb@nU@UWULmU@KnaUUmU„wmJ¯IUJWIkVkaWVUIUlWaUIUVkKmbUIƒÒlVUnnŽ@VlLUJ@bUX¯@ƒaWVUKUXƒKUbm@UwKWa@a@VkUWn™@Uak@mbX„WJXbm@mL—aWVk@™wƒL@WmanU@knwWmkaWL—KWUXaƒU@¥l„UVVVbnwƒ¥nKV™»@aUk@a@UƒJ@kƒmLma™@mbUWnm@ULǺ@LXnmxUŽm@UbkbW@@akLmWk@UXmJmUkV@VUXVlULmKUxkL@lmXnJ@X‚l°Vnb@bU@WbKUX@VmKUX"],encodeOffsets:[[116652,28666]]}},{type:"Feature",id:"3601",properties:{name:"南昌市",cp:[116.0046,28.6633],childNum:6},geometry:{type:"Polygon",coordinates:["@@šXš™„@„mš@VIUW@UšKVb„„LlV@VVbUŽlUnLnl@bVL@V°šUL@V°@Vln_Ġºn@‚knKnššLVU@VkĊ¥Vk@™Uƒ™»UaƒUÅLUalmkklWn@VUVIlm@m„Xn@VmškVa@KXIV™UWVw‚™²@m@U@VK@k@W™Ua@™ƒa@aUƒ™@™IUƒW@@bUJmbUU@kkV™mUaWwkbmLUVUn™lWbUbklmL™akbUaW@U@VbkVWVUUUVƒUx@‚Uœƒ`UI@mƒaULƒamb@lwJWUƒVXLl„UVmL@bUK@aUnUam@UUmJ@VnX@`UXVŽVb@bX@W¦nJUbƒUmVVbXb@lVšUnVlƒVUUkLmUUVWl@bX@VnV@X¤VUVLllU„U@@x™¼VV@V"],encodeOffsets:[[118249,29700]]}},{type:"Feature",id:"3602",properties:{name:"景德镇市",cp:[117.334,29.3225],childNum:3},geometry:{type:"Polygon",coordinates:["@@VVX@Vbmz„xUlU@mbmL@V²xVbUVVblbX@šVškVykValKVI@bn@n`lVWnX@l„L@™WKnƒVIVa@¯nK@alIXJVIVWUw‚ƒn@nU˜„nK@alI@a@anKm_™a—™W@UWmIUwmmK@£UUƒmUUlwwW@km@kWaX„aV@VnVKnXlK@aUK@UnwWUnƒmIUW@¯mU„XI@alJV_n@m±@U@kkKUlm@ƒXamJ@UVUkƒmI¯JmamVXL@V›UkV@xƒX@`k_UVmJUXƒW™¼mL@bU@UllX@VV@bVV@bnJUnlx@n„Žm„b@lWŽ@zU‚nIlx„@W„bVV@bVJV@UxV@@X@VkLVôÒ‚šn@@b@`VX@J"],encodeOffsets:[[119903,30409]]}},{type:"Feature",id:"3603",properties:{name:"萍乡市",cp:[113.9282,27.4823],childNum:4},geometry:{type:"Polygon",coordinates:["@@VWnL@UVW‚LXaV@@ama¯Uk@WmInW@klKVwnLVKUkVW@UlUnVnIVWl@nXlK@bX@laVan@VnwWm@KȹVK¯m@kmU@ƒƒ¥kIğ@WKU¥„@V_VW@_šK@aXKVL@Ul»mWLkU@am™kJƒm@kmU@@a@UmakwU@›„Xlƒ@VXk`UIW¼kWWX@‚œ@l‚xV¦XlW@Ubn„@ŽmUkL@UmJ¯UkUWVUaƒUlm@UXWl„nUJ@LmLU˜nXll@bUVUUmVUn„Ž@¦šxlŽnn@VÆÈU°kbV„VxllnL@VnVVUl@V„„anL"],encodeOffsets:[[116652,28666]]}},{type:"Feature",id:"3606",properties:{name:"鹰潭市",cp:[117.0813,28.2349],childNum:3},geometry:{type:"Polygon",coordinates:["@@@XV@nlšL@lUnš„mŽ@Ln@@VlV„@@VV@nwVI@V„Vlx@bknlbV@nmnUVJ‚_²‚VxVLšw@mš¯@ÝXIm™nUWƒaUwkL@wVKlKXmw@±@U„KnUlL„a„KlUlÇXkmaUw@U@a@Uƒ™UkwUJ@zWJ™w@WbkVWUL@VmUklUaWakbƒ£kJ@nmln„lL@Ž™nƒ˜L@¦mJ@wU@mXkJmbƒK@bUL@VVn@`kXƒW@Xk@@lm@UX@V@b„lÜUXVWLXJ@nmb@V@l"],encodeOffsets:[[119599,29025]]}},{type:"Feature",id:"3605",properties:{name:"新余市",cp:[114.95,27.8174],childNum:2},geometry:{type:"Polygon",coordinates:["@@m@@WULUKWwÅ»ókƒakkWK@bUVUIUamWUbULƒa@KUa@mJUbmUXU™mUamImakKmLUb™VUam@@UL@KƒKm™UUkL@`mIUb™@U„@V@bVl@bš¼UŽmL„¦mxUaUUƒVkŽ@¦„VWbXV˜LXKlbXnmx@lmVnb@X„Kšxl@XU˜bnKn@WaXIWƒnal@Vbš@XmlV@U@bXb‚LVxn@Va„LVWVLXU„b°@VW@aVIkK@UmVmkU„ÑVJnalLVUVJXbVkVJXUlblUXJVI°JnI"],encodeOffsets:[[118182,28542]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ji_lin_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2224",properties:{name:"延边朝鲜族自治州",cp:[129.397,43.2587],childNum:8},geometry:{type:"Polygon",coordinates:["@@Wxĵ„mš@„ó¤VX@@xܼƨš²xWxƒV„V@„XVƒ„„„ƒbWšXllaÞU°Ċ„@ô¼„LôÝWanV¥ƒÑnĉ°¥šÅX¥°¯@w°w@»°k£°mÈŹ‚mÈbƃŎ¦„K°z@Žkxl¦UbU¤šššklV„KŤÞȰ@@bšV@nVVUlÞ¦lUllœVlU°ÑU¯Vƒ°w„bXxl@VŽ²„˜@n„ô¼ƒó°™kmVk²ĕ‚w@wV™ÞÞ@@Ġƒö»˜¯œ@‚„šbnb°mÞ¯°V°„ÈJmX¥mam™UřƒUƒlaU¯™ƒ@w™Kk—l±n@@wƒkÝVUUl±¯I¯b™a™lƒ@™kLmakbƒ@ġƒŹé°™Þb°šékƒƒLm™„wX™‚aÅb@bVlƒbVb—ÒVbUb›UUanwƒakbVŽUV›ak„¯„UŽƒLmxV°UxnôŻX@J„Xkl‚bkbĉaƒbƒWU„ƒ@ƒk„WUU¯@@klmƒ@@™Å@aƒwWXlKkI@WbUaVIUanUƒƒ@ĕƒ¯K™„mUnWUwm@£ċèkUmbUmm@@nkJUalwk@@nmWUan_óaWmnw±KœIƒwl@UmƒI@an@@mlUÅmV_™KUkƒ@U`@_ƒKUmU™@U¯™mmb¯@kb™ImV¯ƒƒLkbƒKƒƒÛ@ÇnɱJóaÝĢkb@„›x—ÒÇllœ@‚Ž²V‚„ÆUVV„UÇ°X„óxlV¯„lV@bƒV@n—x›@—¤@„șŎnxV¼knšJ‚nšKX°˜¦UlnVbUbÆVnÞWVX¦llšb@l°œVJôÒnLVbšbXŽ"],encodeOffsets:[[131086,44798]]}},{type:"Feature",id:"2202",properties:{name:"吉林市",cp:[126.8372,43.6047],childNum:6},geometry:{type:"Polygon",coordinates:["@@ôl‚zšaÈV°„šK@„mŽ—LWl™nšVxUV‚È@ŽÝĬUÈn‚ôLša‚„²VmĀkV@„ĠĊnU@b„V@b˜@nl°UVnÞaôJ@bš™V„¦mlkššbmVXx¯@Vxm„nbƒ„šbÈK‚V@bÈL„wĠyônšmnbÜ@nn„V˜x@n²K‚„„J@k„al@nxÞU„Lź±Vwkw¯LWWUš™kŎīVwƒw„°y„Vĕ°wÈVlkÛ»@wW@Uô£@ƒn™ĶƒXwW™aUamKóÑUI¯›@k™akkW¥XUmÝÅUVaUa‚mVk—¥W¯™Lm™IlmU»mwȚō@ƒ˜£kJUÇk@am¯y¯UVwƒa@wġx¦ƒKƒƒ¯X°Ċ¯¦U°ċWULÅa±b¯@UkÅWmVƒ™ƒkIUlóŽċ¹™`óIƒlX„WŽXxmbUƒLݏƒbƧ@ƒx¯bƒÈ—l@xƒš¯zƒaݤ@nšm„VWb²bmn¯J¯Ò@n„š"],encodeOffsets:[[128701,44303]]}},{type:"Feature",id:"2208",properties:{name:"白城市",cp:[123.0029,45.2637],childNum:5},geometry:{type:"Polygon",coordinates:["@@ó™ǩŁ@WlwUaƑwÛÅÇéĉamKƒōÇ@Iƒ™ôġVƒȁÑŹçƒ™ÝUƧċĉwóóÝ@Ƒ»ğL¯ll²@ƆÅV@¦m‚Åb@nmlU²VxšlUn™@VbnW„bÇbk҃š„n@èlnlšU҄Ž°Lšx@¼ĉb@҄šUŽċxՃènLVxƒÒƒbÅJ±a@_ÅJÅnƒŽVb„Kl„nUÜĊ@„Uš™xXVÆn„mšVššJÞ¯V™ĠwšƒXw°xWL„x„KV¦ôU„wVÝǬóÞޙ¼‚‚„ÞkŽVôȘxބU„lVn¦ÞšĊa°w„b°@šbÆw„lŤL²`„z°@V@@™nJVnl@@¥nUmmn„@mwnmmUnk@mlwUaƒLnƒ›wn¯°anƒWakI„ƒÇmXwÆamUXUlJXa‚UUklKUknmÞV@‚K@VWÞ@VkUwVƒ"],encodeOffsets:[[127350,46553]]}},{type:"Feature",id:"2207",properties:{name:"松原市",cp:[124.0906,44.7198],childNum:5},geometry:{type:"Polygon",coordinates:["@@„šźèȂÒU„óĢ„š@JŎȄ‚‚LnŽĊbÈêÜƃxVbkx@XǪłôš„kÞ`„šW„b@n°ašbšKšnVw°`š_X`W„š¦„ĊIkmVšakw‚K„x°UÞb„U@lšƒl@°¦œVW„šaÞbšxÞI@mVI@ƒVkŚUWK„¥nL‚a@ƒ„@ȍ„@°ƒÆ@nU@KÞalkUwVékUWw„™kU›VkkƒJk¯@»ókƒV¯ÆÇI@bĉô¯@™ķw¯nmmÅL¯wƒVƒUÞy@UówÇLkmm@@UóxkkĉmL¯wVwkWWX™mLõm@kűV_ƒƒô»ÛƒÆ¯@™Va™VšaĠVlmğwķUóÝƽ£ÇJkbǫaƽLW@nxݤkzƒy¯XɅm@VšôÇX¯Ė¯ºÝnUŽnLVlUÔmV"],encodeOffsets:[[126068,45580]]}},{type:"Feature",id:"2201",properties:{name:"长春市",cp:[125.8154,44.2584],childNum:5},geometry:{type:"Polygon",coordinates:["@@„U°xÆKnn°mĸxš°@Ċó@aÈJ°Å„Uôl@¼l°„IllœUlVƒšXxlVUêVxkllnÈUVll@Vx²IÞ¤VUlVnIôlރlwô_„›„bVaĶLXÅÞÇ@K˜¯@wÛaƒçn¥š¯WXyW¯XwƒUmmÛ@ma™nómğzƒxÇK@aUÇL™a„ƒmanƒUw°@WwnU™al™nkƒ¥šU™@aóIÝbUm¯Vmk—@@aƒU@amVğĉ@ƒlUnÿ±Uƒ™bóKmVÇÞī@ÇVUUw‚™šmXk˜Kn@ƒ™L¯ƒÇU™byókōè@b‚n@lÝX@x¯ô@ƙUV_maXm@aóƒJWxnX@ŽVVnĖVnUJ@nōÆǼV¼kxƒLklÝw@xƒx@zV`ÅbmxU±xU„nnm‚kn‚ŽğU™bUŽ‚šUb@šÅ°Ü„󼄄U`Ʋ@lön‚KšnXWlXUx°xnKĊllôw@Vn@lnÈKôx@VÝz„V"],encodeOffsets:[[128262,45940]]}},{type:"Feature",id:"2206",properties:{name:"白山市",cp:[127.2217,42.0941],childNum:5},geometry:{type:"Polygon",coordinates:["@@Ušl¦kÒÆ°„IlÒU¤ôz„¼lJš„U„n‚ÆXVl°@²aÆbVKČXV¯°¥¯ĉ°W„„„L‚¥Ģw@x„bUx°V°zn‚‚b@ÈlVŽlIœ@˜w@m„U@akU°ƒkUôwWƒÈ¯VUƒVUƒÅ±U›@kÈk˜Ñœw@ƒlaÞġƒUÞ£@ƅ‚KnÑĢ¯@W‚aUaVUVkkw@a¯@¯™Ý™ƒVXnW@@WkXmK@xkKUb@bW@Uw¯„mmb@WKUbmUbUaWbƒJĉIVW@I—l±LkšmU™bUm™@ƒnkKWa¯n™@„`Ubma™„ĉL@bƚ—@W`ƒL@n¯‚Xb‚@kb@x™Lƒ„™@V‚kL±™™mlUIU¥mL@lÅx@_laƒƒ@U—aƒV@kmmƒK„£ƒƒLƒƒmKUnÅKVbmXVlèĉUUbml„ĢŤƒIlŽ¯bǦœl‚@ô¼Ģ„@x°„l¤„n„a„l@x™b"],encodeOffsets:[[129567,43262]]}},{type:"Feature",id:"2205",properties:{name:"通化市",cp:[125.9583,41.8579],childNum:7},geometry:{type:"Polygon",coordinates:["@@ÆlXnĠxĢ°lÈ°š„K„°kXm‚@¦Vbk„ŤJšnݤk„VÞVVkȄb°y„™@w˜k„Ç°a„wƨ@„aސ„K‚VnaWwXWƒ„kôJš_ČºôVkƒ»óyV£kуJůlÑk¥V™ša@wƒkƒbƒmk£¯ƒ@wġƒó»@›kÈ¥°ak„JÆ£ƒġnkVaĊVkçWUnUaÆLVmnL„„‚KU™±@—„m@a¯U„bmV¯m@_ƒK™™U™ƒaƒÅ™Wó¹ƒ@UanmWak@@wmI@y™@mk„JVa™@UaƒIkJ@n™@Um±kkxƒm™Ik„ƒbÇm@Ž°bXn„V@Ž°ÈmlÞ¼¯XVº¯Lm„kWWXLmVVlknƒ@@lnWƙ„Vxbmšnšm„¯lÝaVȁè@¼V„„b™„ÆŽ°ÞUVšJ„„kx›I—xƒƒƒIV¤™ÒXxmn"],encodeOffsets:[[128273,43330]]}},{type:"Feature",id:"2203",properties:{name:"四平市",cp:[124.541,43.4894],childNum:5},geometry:{type:"Polygon",coordinates:["@@Ɇn°W„zlyÞ£mwX@ƾKǬblaÈIƾ¤ôÞĸVĠxnmmVƒ²w‚VnwÆaU_@y„w@wÞxlk„KlwU»È»ŎÅ@mVIUmmĕUU@mWXw„Iô‚@bWnnbU`‚šV@Å°ó@wÞW@km@aŎ烙@m°Ñ°Inm±aXaƒU™n@mƑšU¦@šÇŽ¯aU£šaU™ġ¦ÅҙJōUŻókUÇ@™¥¯ak¯mUVak@@aċçÅaUƒm¦Ý`XbƄ@n`ƒI™xĊÞōÞml@šUb@Wl™_¯JkšÇUÝÆÅb@n™„llUb¯„±a@ƒ—ƒWĉJġĀ¯™Unóšm¤œxôaVnƒxôI@x„V@bmƙ„@lnLmޯޙxVb¯þ"],encodeOffsets:[[126293,45124]]}},{type:"Feature",id:"2204",properties:{name:"辽源市",cp:[125.343,42.7643],childNum:3},geometry:{type:"Polygon",coordinates:["@@żôŎVšIÆÑĢ¥Vš™bV¤°bȍ@™V¥ƒ™Þ£lÇUUUÝlƒÞ£™mţIlƒUa@¥nlWƒ¯ƒL¯™kÇġ¯ğwWmÅk¯UƒVU„„bWlXlmnƒbUx¯xVVknlŽUbV„ÇKUb@„™VnbmlnzUº±bmJUbWÈnèm҄š@X`WL"],encodeOffsets:[[127879,44168]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/liao_ning_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"2102",properties:{name:"大连市",cp:[122.2229,39.4409],childNum:5},geometry:{type:"Polygon",coordinates:["@@‚IÞmVk@wXWÜbnwlLnU„@‚nLlbXW@a‚wnbl@XL‚aš@Ċ¥@LULnJ@xVnmV@VXXV@VJkn@VÜKXXôJlb„xl@„IVbnJVLUbn‚lnVw„JVU@ƒXU‚aUUlwn@°ƒn„VKnV°_VJšwl@nwlV„IXWlIVVnK@IWmkIVaVU@WÈUlmU@U„WUalkXġŻ@kIƒ»mm™akUm›ĉUŁV»²ġVĕ@aUU؍IɃ`ȃ@kƒw@ƒUƒmwĉ™@ƒWķсIĉÇbÝLkymbIƒwÇmÛbmbU„¯ÜõÈkÆVbŎxnXVÆnšǪ¦„bš¤Uš™xÝnĉÒmĊVȄ¤Èš„bƼ„Ā„„ÆÆބźb„VVbX„‚°²¤"],encodeOffsets:[[124786,41102]]}},{type:"Feature",id:"2113",properties:{name:"朝阳市",cp:[120.0696,41.4899],childNum:6},geometry:{type:"Polygon",coordinates:["@@na@UVI@m„ÑW™kaV¥UI@wl@„aÈbšm@wVašk„@@K@kƒ™@a@UUmƒUUalmU@KÇUű¯@±kUKVkUaƒaU@¥m@@¯k@WLUmkn@mmIkm@amU@wVmkU@Klk@U—m˜aXIWWUL™aULVbƒmk@UUmUk±™_Uym@mbkImaX¯WW™xWKzU@WƒkJWwkV™@Um@UbVVVVXb@VWX—@WŽ@Vkb@V™nUK±aUUlwX™ÇWKknU@mmUkƒLUVƒVUUVƒUaƒw™bkKmwnIƒ™kJ@nmbƒ`kmVkLWwUm@UUU™K@UmaUa@UUaWK@mUƒ¯Wkk¯VmUUŽ„xVXUVmL¯ymXkWUbmXUKƒVknWx¯JVnkLƒl@VVxnxlĀVL²WlX„l@bÝVUn@bnlÜaXblIVl@šš@Ȧ@VmbXV‚@@x„VVnUn@`°@VnXU@K@„VV@VmbnVn@ln@b„xƒ°Ub@bšLV`Ånƒ„W@@lUšnnWVU@Vbkl@Xl`XxV„UblŽkX@Ž°¦V„UVVbUlkV›@UbVbkLUxmJkXšš@b‚bœxVKÆlXX˜bnŽnala@ƒUk@U„VVklKVUXKVU°KVan@VUnLšKVL„WVaU_@mmUXa@m˜wXwVkVWXk‚k@›„k@klm@wXKl@U@KVUUUVaUƒV@„alL„xUx@b°°VnnVšxlIXJmx„LUVlV@bnX@Všb„aVx‚@XJ@b‚n@VŽVXȄl@llX@lU„Vô°°@ބVbn@‚V„k„@VW"],encodeOffsets:[[123919,43262]]}},{type:"Feature",id:"2106",properties:{name:"丹东市",cp:[124.541,40.4242],childNum:4},geometry:{type:"Polygon",coordinates:["@@lzXJ‚U@š²x‚@@Vš„@bUVmKUn„°n@lnVK„„nV@n@VlV„°WbXn@‚VzƒJ@¦@bkb‚bUl@bkbƒJ¯zƒWULWbklV„nb™¦VJ@„„K°U„kl@@W„bVn°@„Všm²U˜nX`„UÜLXmVXlKVbUVVnUbn˜ƒX@VUL@lUbWxš@²kl`n@Vlb„@nUVWVLVU@aV@²bl@ÈmšxWX„VÈU„JV„l@„„la„WnX‚KÈkÈ@Va°bÆm„@XV°IVV°UnalƒVUn@UwVU„@@VVJ„I@bl@XK@wWmXU‚UVbkJVXnJVI@mƒknwlKXL@`l@VI@UUaVKÞn„aVm@aÇ£XW„U@aÇUU@mbkKm£™@WW™ƒL@@Kk@kl›U—bWKUkUU¯UõÛƒmUUaVU„U@WU_W@kVkJƒ_WKkV@bUL™¯¯ƒ±mk¯ġƒğÑ@UmwƒKUakƒ™ƒa@a„m¥ÝƒIUWmk@w™mţ—L›KʝbȗKWĢklVbƒX@VV‚knÇV@XUVUblJXn@J"],encodeOffsets:[[126372,40967]]}},{type:"Feature",id:"2112",properties:{name:"铁岭市",cp:[124.2773,42.7423],childNum:7},geometry:{type:"Polygon",coordinates:["@@XJm@¯šmXUlnVbUJƒU@bV@UJWL@VXLmJVbkXlJXxVL@b@V@n@b@`Vbk@lxknV@VV™V@bUL@bV@@bVK@VXLWLXJ@LV@nbWJ@IUV„x@LVJUXVxVx@VV@@LXJWL@VU@@L@VnL@bVVmVX@@VVInJmbnLWVnVULVVU@VVmX@@JVz‚l@„nVVKVXރ@mk_lm„UUWV_nJlUÞÑÞVVUVƒVL„UVJ@I„Vna‚@@KV@XwWknwnKlalU„w„aĉݚwšJl_@aUaƒKUUU@WU@WXUÆ@@UVK@n@UnVVšblK@bœllb@b„bW@Xbl@UlnLl°°bš¦nKlVnI„V@UWU@WXkƒw@am@nm@aVw@I@KUaVIm±XÑlknJVnVJšaX_VaUaVKmwnkmmn@lU@U@mnašXlKUmUIVmklaUK@UlUVUW@U™kVm™a@UUU@JmUU@@bmb—KWV¯XUKm@ka@UVKVk@aUKmLkKUUÝUmbXbÇJ@k@WU_@m™™@klm@UXKVaUI@KWUXaƒÇWk™aWUkWUL±U@lUU@ƒUJƒI@V¯JmIm@@aU@Uwƒa™@UV@VkI›V¯aUkƒWkb@bVL„@@VVVUXW@Uaƒ@@b—‚ÝbUV݄@ŽƒLmUkVUbVllLUV@LššXŽWbUXm@U`@„kxlnnJlbnIllšLX„lVlUXmVK„n‚V@L"],encodeOffsets:[[126720,43572]]}},{type:"Feature",id:"2101",properties:{name:"沈阳市",cp:[123.1238,42.1216],childNum:5},geometry:{type:"Polygon",coordinates:["@@ȚĊÜ°„b„L‚lÞxUbUn±‚@ÈnVÆL@xnLšlUVƒbƒxkImJkn@V±LUxkV@bšbšKVKnzVl@L°@Va„xÞUlbôxVVœ@@V±bnŽ@llXL˜ŽöXĶŽnal@nkVJVI@aU@@aVK@ašUUUU@lmkwl@Ua@_@a@m@U@aUKWwkIlWUanIWK@UXKVIU@@a„VVIUa‚mVknW°™n@WI@KUƒmULWnkVkUWƒ™KkkmJkamIkmlw@ƒV_n@VWXaW™™@KVUkKUkValUnV„K@ÞƒVUÞa˜@a„@VbX@VWUU@Uƒ@UK@ala@IkKmUUa@U@ƒVƒkk™WVwU_@KÜUXbl@V¥XUVmƒƒƒXa‚kŃlUUkIm`UIUJW@UIKmkm@UUJƒImmU@ƒVUXU`mIUbUK@LƒJUU™l@Xƒ@UbƒJ™kU@ƒŽn„m@Uam@@ƒ™aUmLKƒwƒ™mWXUK@kUaÇa@JUIUa@aƒKVUƒUXmƒUy™_@lmbkLUKWLX`‚n@bVL@JXL„‚WX@Vnb@Vm@UbnVmL@V@x@LUbVV@V@LƒUVl@mb¯U@xU@UVVV@X@VVblJ@bn„VKUn„x@llnL±¤™b@k`VXÆK@„kV@¼kl@bWIUl@VmLnbm@@JXXmb"],encodeOffsets:[[125359,43139]]}},{type:"Feature",id:"2104",properties:{name:"抚顺市",cp:[124.585,41.8579],childNum:4},geometry:{type:"Polygon",coordinates:["@@„XVl°bœUlJ@UVUš@„bVxV@@bn@nJ°I@U„J‚I„VV@V@k²VVKlXXVšb‚lÈX„ŽWbXV@LVJUbWL@Vkn@lšš@nV`@X@lÈIWanaÞVVVlLnKVL@bUlUL@Vlbn@VL°WXU˜Lna@aV@nV@IVV@VšbUnšl@V‚XnKVa@U„UnyWkXaƒaVk@ašašbnm@_WKXmWanU@alaU—l@XJVLVxX@˜wnKnVlwƒƒ™@V_@a¯¥@UkKWUaUU‚anK@IƒaU@WUaVw@klUVyUUVUUÇ@Iôbša@mnUma@kXa@UWak@Wa—l@a›@WUƒLmU@U`mIUU™`mUk@@UUK±nkJƒbUam@kwm@@a@UU@Ua@@K@ƒVK@kmKU_UKƒUUaĉWmkkL@`™LƒnmlkLkbmK@k™@Ulmb@b™„@Ž„xUVƒIUlmVXXƒxm@™JUUk@WUk@ƒakx±@¯x¯Umb™KUUVmUU¯UmVVn™WkÆ„lWb„„„ŽUnWVU¦k@WaÛV@LV`UxšXllU„@„@VVbnVlL@J"],encodeOffsets:[[126754,42992]]}},{type:"Feature",id:"2114",properties:{name:"葫芦岛市",cp:[120.1575,40.578],childNum:4},geometry:{type:"Polygon",coordinates:["@@ll°X„ŽnV‚@XLVb@VVbnb@VšLVV@VVnXxlKnU‚l„_na@mlI„šmJnxlLša„xVbU„VV„UVU„KVlnnV@lmXLšÈWŽkxVV²bVLšm@Ula@UX˜@XW@UWaUUUUVan@V‚š@lUXxlIX„V@‚yXLšw‚ŽXXW°nblJnan@Vzš`l²nVVVl@„nUaVKšbVKnXVaUaVUšyšnXK@kVK‚@X@m@m‚LXa„LWƒU¯„w@™ƒa@UVw„¥°™ó¯¯y¯ƒUǯ»›w¯Iƒm—¯Ç™UUl™¯»ţKċÑţķm¯w@mU_ómk¼VnU`±IkbVlƒnnŽU¼±Lk`@X™Wl¦UbmVUxkXVlkbllU„Vb@bkVmx@XVV@Jb±aULkKWXkWmX¯aUJmIkVm@ƒxU@n„"],encodeOffsets:[[122097,41575]]}},{type:"Feature",id:"2109",properties:{name:"阜新市",cp:[122.0032,42.2699],childNum:4},geometry:{type:"Polygon",coordinates:["@@šXnb°lš„VlnXVJ„LlVnl@zÆxnK@b„blKVLn@@V„aVLVK@L@Vl@XVVInVVKVwlUXwlKšL„ššVVb@aV@X„lUXbVW@n„lWnXKV@@V@XUVVLUVV@@bVVV@@ln@VbVUXV‚I„xVanJ@UšIVWšL@UV@@¤V@nInw˜W„k„lnIVx‚lnzUVÇJ¦VVÜLĸUnW@aV_šWĊXXa‚Knkl@nm™L™a@alUVw²K@UlmnIlJ„w„aVU™kmK@wÅKmU@DzVmVaÝwkƒKƒaÛ¯șĉķ¥ğ¥ƒ@kUWkƏī݃ƒ@@akU„K@KWIUm¯nƒU¯JmwUVmIkJÇLm@™UImJUU@aW@U@@nUb™JƒaƒbXVWn@UVmX@V@b„š@l@Lƒ@™lUb@x™nÇaƒbk@@xVJU¦lbXšƒÒ@nUJ@Vmb"],encodeOffsets:[[123919,43262]]}},{type:"Feature",id:"2107",properties:{name:"锦州市",cp:[121.6626,41.4294],childNum:5},geometry:{type:"Polygon",coordinates:["@@nJ@nlmVnXKl@@°n@@¦‚V„bVbUlVL²l°@ƲÈV@LV‚knVb„VVnnWVU‚@XmWU„a„bšIVa@mV@X@@bVVnIVJ@š‚nÈKlInJVUnx°I„V°mVnXJ@LƒLlV@b„@ބƐĬXllV„@Ġ¦ĸ¦naWW@In@manK@UVkXJ@alk@»lU@ƒÅLUWl_@ša²£‚Kkm@kƒwVmULmƒ@akIUa@U@WUUVU™aÝ@ğ›wkƒƒmĉ£UWƒ@@bÇL@m—a@_mKƒlƒXUwKƒLţÓ@UWw@K@U„I@m™U@UV¥„@°UnJ°@@_™KUwƒW@UnaWUmmI@m™ķwUaÇLóVĵwݙUUW™¯šƒ¦Ux@V„b@šƒxV°X„ƒKWbK@n@nW‚@UL@lWL™m™zUVVbUbmWXXWJ—b˜n@Vkl@LlVUn@xnV@bln"],encodeOffsets:[[123694,42391]]}},{type:"Feature",id:"2103",properties:{name:"鞍山市",cp:[123.0798,40.6055],childNum:4},geometry:{type:"Polygon",coordinates:["@@l„œxĠŽÞ@šbV@@w°Vna‚@Uk„V@K@UUUVa@K@w@UnKmUVan@@Uma@UXWƒWK@IUK@amW_XKVLlKna@kmKVak@VU„@VmšU@anIÆan@‚a„šUVnb@blLV`ÞLlU„bna‚Kn@naVU@¥°IVK@anUUKVaƒUVak™@mJƒkXƒ™UVwkƒVUUa°U@Wƒ@WlkXWlIXUlJlaœx‚IVVXLšll@nLV@lLXl„KĊzš¥maUƒlkXaVK„X°y„Ila@aVkala@a@¥„IUy@WmXaƒ¯kU@U@mmUƒƒULkmm@ƒ¯VmnLVU@a™ƒ@U@±w@™VWIkymLUUkJWXƒJkUmxk@™xUI¯`mUULmƒ¯„m@kxVVbWV@„UVƒIUx@bkšVšVVšxUbVV@V@zšJVXU‚lnk@@lkLƒlƒLUU±Jkšm@UIUVƒLUVU@™K@UƒnnV@l@Ll„ƒaUJ@zn`@nWlƒIUVUUUV±Ln‚@nmL@VUVkLVlUxVLVlÅXma™@@akLmWUX@JUnVJVkXJ@X@`WX„VUVUIlb„W@bVUVL@`Un@¦U`@bUV@z@Jm@@XV`„LUL¯J@IVKmKÅI@J™nWVnLnšVxV¤™z@bmV@VUV@bUL"],encodeOffsets:[[125123,42447]]}},{type:"Feature",id:"2105",properties:{name:"本溪市",cp:[124.1455,41.1987],childNum:3},geometry:{type:"Polygon",coordinates:["@@lb@Vn„lnVVUb@šVJ@nnJ@bmXUx@xVbkbkŽWLUxnl@Ul@„xWx@nUV@¼Ull„knkK@bmbnl‚LVJX@VIVJn_lJVVšXUmnU°VVVUnVVšLna°V°w²@lw„bl@XVl@VVšIn@„wWWnUVk„JVUƒw@šƒ@anaVkš@@lnLlalKnk„mšK@_lKnlĊXVb„VVLV`nL@lUL@„@L@‚VbV@@V@bn@lxn@Vb„alI²mVL@Vl@nVš_VVnJV_‚@nV„K‚V@Xœ‚@b˜kXbl@XblylUUkš™@Xa@UVIlK@UUWVU„Llm@UUUnKWU@K@UXm„XVa@U°KVUUWUk@ašUVKkaWkƒKUknaWa@U—@m@mk@ƒaUJk@@_WKkLmx„l@nUJmIUWlIUaVWVXn@xWLk@@aƒJUI@Uƒ@UVVxm@UVk„mb¯VUU¯JWUƒ@Ån¯aUbÇ@ÇlLmWƒXkbƒƒk@UƒƒIÇVƒUXW™wÇnk@±aU@@bUVUKUXmVƒ@kaUm@k_±l™@XwVa@kVK@U„Wm—VaUmVUUakLUWWnÛKƒVW_—m±V™nƒU¯@Umƒa@Xk@ƒl¯V"],encodeOffsets:[[126552,41839]]}},{type:"Feature",id:"2108",properties:{name:"营口市",cp:[122.4316,40.4297],childNum:4},geometry:{type:"Polygon",coordinates:["@@ĊĖƐn¤„„°Ċ¯ŎWšô„@xXb‚wnKl@nX@VUVƒKmL@VU@Ux݄@Vlb„x„U@VUb@b‚kœ`‚IUlVUn„V@@UV@@JnXlK@bš@nbÆWUkUKVwUklKVU@UnK@mm²KVUVVVU„JXk@mm_@yVI„bkƒ@K@kmU„m@VšLV@VU„KVUVJn@l™²IVV„K„klK@kl@kmVUW™I@y@UUUVa™wUUU™l™@akmmVaUKmIUaƒJk@ƒwkaóIWWÛL@UlmUIU@WW@UnUUm@wmIVK@Kĉ¦™@bWKk@max@bWXkamKƒ@mVkKmxÛaWX@xUlÝnJ"],encodeOffsets:[[124786,41102]]}},{type:"Feature",id:"2110",properties:{name:"辽阳市",cp:[123.4094,41.1383],childNum:5},geometry:{type:"Polygon",coordinates:["@@š`Vz„‚Wn„VUV„L@bVbVJ@IÈbVb@lVLXW‚n„š„x‚LnKVŽšb@„n@Vbn@mƒ„V@šl„IVa„@@WškVV„I@KVLVanJV_VW„UV@nn„JVI‚Vn@na@alLlmkƒVk@»VU@mXwƒwk@@VmkVwXKllaUa@wVwnW@amI@mUI@™VaUUkmmƒ@UkaƒL@ƒUIĉyƒLWkkKU@mKk@™kWKUUJ›wkbkIWVkJWXkl@X„‚@X¯VVbUVl„UxšVW„„lnIš@l‚Ub„VUbVLmV@bUL¯J@¦UVmbm@LmbƒakVÝKU_kK@amaVUƒ™bm@ÅbmJ@b™VUnƒ@UVl@UbnL"],encodeOffsets:[[125562,42194]]}},{type:"Feature",id:"2111",properties:{name:"盘锦市",cp:[121.9482,41.0449],childNum:3},geometry:{type:"Polygon",coordinates:["@@Vbĸx‚š@nnJVnXŽmb@V„XVxšL@`¯@mI¯Vƒ@U¦@VšV@nƒJ@V@LXx@VŤÔ„K‚LVx„W„knL@`˜b@nÈK@a„@VXĊ¤„nVK@aVU@UnU@ašyU£Uwm™mKXUšm@IÆJnLUL@J°IVKƒKU_@Wn@@I@yVU@aV_@¥Vm@_UKUV@aƒXkaVJVUƒUXW@_@WWIUlUIVm@IVW@IU@@VU@mƒUVVkJ›_l@aVa@UƒVƒwka@UރVwV@@UnK„LVU@UmWk@mLxWa@wóƒUVUIÇÆĉ¦¯¦¯xʟJ"],encodeOffsets:[[124392,41822]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/nei_meng_gu_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1507",properties:{name:"呼伦贝尔市",cp:[120.8057,50.2185],childNum:13},geometry:{type:"Polygon",coordinates:["@@„m@Łkƒ™Žƒklƒôƒ@£kJ°ý™ɅķÑó¤ğLĉÅlÇğŁW¯¯›™ƥóÿlwkţÈéÝƛó™°ÞÅxV¤ĉĖWƒ¯lȭţυ̃ɱÿķƅˋğɱřÝţϙȍƧĊţ@¯kWKUKm¹Å@ķJU@ƧÑƧ„ō¥˹Ɔ@L@„Þ‚VLnš@VōČWJX¦@JŻbU@ţÞmVU@ȁýóbkWWLƒƒÅ™¯UWġkmóƒ±UŹôV¼ƽ¼ƒł̥ĖƽǬʉxĉŽŻȗKΕ̛ʵƨʟÞ˹»Ƨţ»Ǖō˷Ȍ±ȚʊĠUɾɜɨmÜ֞߼˸ƅȂ¯ǖKˢğÈÒǔnƾŎՂ@šĊbôô̐¼ƒ@ĊôĊŽÞĀ™xšĖƧL±ŽœŽ‚Uš°U„°ĬƒČ°ÜƒêɴȂVł°@ƒ„nxŎèƒbȄÞȌ΀ǸlŽ²IlxĊl²ÒmšôĖ™Èl„ĵºm„ÈêVþ„xɛČʉÇĵVmš„ÒƒÈɆôƐŰǀĊ°ÆǬĮƾb„yĊ@ĠšƒXǀċm»ôw°Ûk¥Çm¯ç™kkÇǫţǕéX_ĶWǖīŎaÆĵĸĊ@ȚȘ‚™ĊLĢĉ„VÆĉʊÇĕóaU¥šĉ°mkÅ°ġUĠřk°mƒÑČÿ˜ÛƒWĸ£ʠšÆxÈÞŎÞ»ʈ²ĊÇČalÒ°Ť±ĸz„ŽĊKȲm¤Ŏ@Ò°¼nyȂUźīǖƳÈē°@šÝĶƒ@ƒÈkl¥Ççkxk™›JXÇƒUÅ@˜£k»„óƿīÛ@lÅJl¥óý@¯ƽġƍÅan™ċ™°é¯¹"],encodeOffsets:[[128194,51014]]}},{type:"Feature",id:"1529",properties:{name:"阿拉善盟",cp:[102.019,40.1001],childNum:3},geometry:{type:"Polygon",coordinates:["@@™ƏnǟƨʫšŹɆÿ°¯ÆV²ˢ™żÿ@ÝÆŁȰ¯ȀƳĉó™™@ğkyš¹@īš›ƒwl£Źƒƒ¯Ŧé@™ÇÇxŋĉƩUUŃōL™Ç™ĵóÝnƒóç@™™ó@ġƒƱ„¥ƒç™WUçÆōƒ@é—çťK™çȭVһƽ̻aW¥ȁ£ʵNJǓƲɳޗǔlżÞmĠóĬȂɲȮ@ÈĢŮźÔnĶŻǠšŎȭœгŃċóȭţΗÆƑÞƧÅΫóȘǫɱȁġlÛkÇ°ȁÈnšõl¯ô„ÞɛÝkĢóWĊ„zÇɼʝ@ÇÈķlUČÅÜķnέƒǓKȮŎŎb°ĢǀŌ@ȼôĬmĠğŰōĖƧbЇƧōx@ķó£Ål±ĀƧīXÝġƃêĉK°Ýʇƅ@ΌʉżÅÒϱʈ@˺ƾ֛।࡬ţશóЈèʞUš¤Ґ_޸Ƒʠɽ̦ÝɜL׈ɛϜóȂJϚÈ@ǟͪaÞ»Ȯź"],encodeOffsets:[[107764,42750]]}},{type:"Feature",id:"1525",properties:{name:"锡林郭勒盟",cp:[115.6421,44.176],childNum:12},geometry:{type:"Polygon",coordinates:["@@ʶĬĊIȘƨƨŽ@ĬÛĢșŤĉĬƒĀóšU‚ÈŚÜènŦƐȤȄłϰUƨťƾÑ܆ğɲƜǔÈèʈƲĊƞƒšɆ¯̼V˺Ò˺ȂŤVĢêU܃x„Āˌ˘ƨ„Æ°ѢmÞżU¼ÆlŎ@ĊçŎnÈÒͪŎźƒĸU°lżwUb°°°Vš£ÞlĠĉĊLޏɆnźÞ„n¦ĊaȂīġŃ¯Iĉůl»kƒ„™Çý„¥Ŏ¯ƒén£ġљÝȭxƒÇ™@Åçķ»óƱŎ¥™çWÿmlóa£Çb™yVÅČÇV»ÝU¯™KĉýǕċţnġ¯»ÇōUm»ğƒÑ™wƏbċÇŎċwˋÈÛÿʉÑ°Łkw@óÇ»ĉw™¥VÑŹU™mW»ğğljVÿŤÅźī@ř¯ğnõƐ@ÞÅnŁVljóJƒwĊÑkĕÝw¯nk¥ŏaó¦ĉƒV¦Å`ğуÑÝ@mwn¯m±@óƒÛKˍƏǓ±UšÝ™a¯lƒōšșk„èƒĬގn@ŤġŰk°ċx@œĉ`Ƨĕ°@ţÒĉwmĉ@ƒƒnƒƒa„™¥ķnƒÞĉVóÆókĉŽķ@ÝkƧƧÛaƒ°Ç@ÝÈU˜óbݼ@„ÛÒV°™@V¼ˋL™ÞɅŤŹǠVÞȗŤÇĖŚōbȁƜ"],encodeOffsets:[[113817,44421]]}},{type:"Feature",id:"1506",properties:{name:"鄂尔多斯市",cp:[108.9734,39.2487],childNum:8},geometry:{type:"Polygon",coordinates:["@@ĶL²ĬVłƑkkl@Ȏ™ŘWńÈĬȗ¯™ºlz@ĠššĊôŦô„ÒĠ°kÞܚ™n@¤„UĸèĸbŌÈXŽĸLlÒĢxɲÆ¤ÈÛƾJÈÝ°UšÅĶ»²VW¯ĸJôšbk‚V@ôlbnĊyÈzVôašb@ĸ‚ÞUl°yǬ²Ǭm°ššk„±lbn°@È»˜JX„VŎÑÆJ@k„LšƒÆl²™Ġ²ʊůĊġ‚řóƛÞÅ@m„ƒmLUÿóĉƧ@™»L@„›`ČĸmšȗÑţů±ĉğl¯Ā™wǎƒçƧŤÛI@±ÜĉǓçō°Uwô™ǫůķƳř±bÅ£™ÓÇwnÑó@ȁƽ@™ƒÇƧĢón»ŏĕóĊ¯b„Å™™VȯÅImƒōKU„™LǓ±Ýxċ—ŋ˜V±Āȗ°™„Źl±šÛ@WÒȁŚŹНŚÅèŌô„¼°ȰɞȂVĊ"],encodeOffsets:[[109542,39983]]}},{type:"Feature",id:"1504",properties:{name:"赤峰市",cp:[118.6743,43.2642],childNum:10},geometry:{type:"Polygon",coordinates:["@@ɲŁĢljĊwƾōÞĭ°_ŎŃźȹƒUČÿl»¯ôķVÿǬƽ™ɅġÅÑǫ»̐ʟȣU™¯wVWݍÈġW»Þ¹m݃ɛŎÿŎōͩůV¹›ō™éċ™óŹÅVVĢǩʈ@Ėċ@ķšÛšV°¯xÇÅţ¥™»°Ûô™ĉʟ„¥WýČ¥™w‚灻±mnÅķ¥ˋVƒbUÒġ»ÅxğLƧ™ƒbWĖÅxš¦U°ÝVóŰlô²@š¥ÜÞÛô„V@²±`š¦™„™¯Ý@„ŽÅ„VÒō¼ôš™¤V²ŹĬÇĊƑƒţxƒç¯Lk»ʟlƽýmłÝÆƏ@mö°Ġ@ŚŹĬţÆUĀĠNJĠŽX¼šnźVUҚ¦Ċxȼ@ôlx¯łʊÒÜĀˌÇČxƍČÈƐašx„ÒĠŽn¼ŎVȐ‚¼Ģ°ŤmǖČĊþšLV°ÞŽU¼ċÈUƚzÈa‚¤ôbkŽ‚nXĀšè"],encodeOffsets:[[122232,46328]]}},{type:"Feature",id:"1508",properties:{name:"巴彦淖尔市",cp:[107.5562,41.3196],childNum:7},geometry:{type:"Polygon",coordinates:["@@²@Ζǀݴʶհĸ„˜ƒ¦Ķ™̒Uˌ¼ӾÇƾ¼̨UÞĉ˜Ƨ—éÝ»ƒĕĉ—ƐȍœōǪakó‚ó¯a@™ôţ™aV¯Þ¯°@²él¥ĵğťwōxó¯k±š—Vó@™aóbUÇyĉzmŽkaóŽU@l™aó‚ķIX°±Uĵ¼™Æ¯VÇÞƽIÇÜÅ£ɱŽġwkÑķKWŋÇķaķçƒV@£šmۙlÝğ¯ƒÑťóǿƴȯ°Åł@ÞŻĀˡš±ŽÅU¯°ɅĀ™źƧʬmǠšƐ"],encodeOffsets:[[107764,42750]]}},{type:"Feature",id:"1505",properties:{name:"通辽市",cp:[121.4758,43.9673],childNum:8},geometry:{type:"Polygon",coordinates:["@@ôƲĸ¼Æèš@„ÈȮwƾ»ʠĢ¥VÆ@²¥@»Ŏњ¯ĊJŤ£k»ÆÇX¯̼ōšī°aX£ôƒƾȁź¥„ƒ™aôŤ™ĢL°ƒĸ@Ȯ¼ÈÒʈŚôVXůÆaĠƛÈKƒķšĉôÿ@ğÈĉ™»ÇVn™ĉV›wXĠÝ°šČÿĸwVƒ™¯¯ǵ±™ĉ‚ǫ™ÅÅm»²Ż±ƽIm¥ţÈķ@¯šƧJV»ÞUÝç¯UġºU£ţŽóaÅÅlƒƒ™Ƨī¯K¯Þ݃ğL̑ȍƽ@ōŎōĀƑɜnÞݺX¼ÇĢގUX°xVšʠȤ̏Ǭ¼ÆÒɆĢšŽǫƾUĀóĸ°‚k¼ċĀƑVŹȺōń¯`ÝĮƽŎĉxġNJɱłō¦"],encodeOffsets:[[122097,46379]]}},{type:"Feature",id:"1509",properties:{name:"乌兰察布市",cp:[112.5769,41.77],childNum:11},geometry:{type:"Polygon",coordinates:["@@ʠǠÞĸɲȺƒÒȂƛŎaƙÈĕȘţUÝźǟɆţšÝˌKU»š@U¯ÜÑ@ƒÞ»ôaV—ÞÇÈ@„¯ÜbƨƨÞlĸ@ĊôlôÅĊU„Ýĸmš¦ƒŽ„bm„„„Ċ@n‚ĊxŤÑ@¯‚ƨĖĊ_@›Čwl¯™ƒȭL›Ý„»ƽ¯ķů„Ǔ@ÇǓbċ™ÅÅÆwÿĠÇU£óaƒ¥¯aŎğĠţkw°»¯ůlÝĵkǻݰɱƧǫaóôɱ»Çk¯ŃóƒʇŐŻ›ĉNJŻĢ„Ž¯ÒÈUl°ƒx°n„Ò™Ĭón™Ċğ°ÇŚĉ¦ʵVƒ°°ĬÛżÇJȁńʇʹó˂ƽŎ›Æţ¦"],encodeOffsets:[[112984,43763]]}},{type:"Feature",id:"1522",properties:{name:"兴安盟",cp:[121.3879,46.1426],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÆXnlŎ°@LVLĠþœxĊUȮĊnU„ĠV@żaW¯XIŎġƒ¥Ý@K@w@K@I˺ŻŎ¦ƨƒƨÒŎIÆ@X@VºnX°lŎ@ƾĉˤƒȘǷȘÑÝݚÞbVţĸÿŤxÈĖƐŽêÇKnĸ¥ô@›ķÞUnÒl@UŚaƒīˋƒ¯ÑƧx@±kXřƐƏÛéV™ˋ»lō¯ĉ„ÅÇÓǫޗĖġV@ğ»›°ĵ„ÇÞǓ¼¯m˜ÛÅŃĉĠÇƾb²çƒ™šéż¯VƒƒğÞml»ōÑV痻V¯™¯šĕÆU¯y°k¯¯V»ôDŽѰa@Źk™ġKţšóŽšbƒ„Ź¦ƽȂó„W¤¯b™Ĭ̻ŎW°ÅÈl¼ţ¤ĉI™°ōÒ@¼±¦Å@UŽġ¦ʟŽƽ¼šÞĢÒm¤„êō°ƒ¦Èþƒšl„k¼ĊŰ°JĢńȁĬ„°ƒżn‚ÇbV„ݼ@¼óĸţ¤@°Ånšl"],encodeOffsets:[[122412,48482]]}},{type:"Feature",id:"1502",properties:{name:"包头市",cp:[110.3467,41.4899],childNum:5},geometry:{type:"Polygon",coordinates:["@@źxżĀǔÆǬVȘĀŤ¥œÅƾōôˁʈͳȂŃÈIÜŻ¯ī„¯ōm™¯ɱĖ¯ƒķÒÝIÝ»ÅV™ƒlÅôфġ™ğVmÞnnƒWçkW܁XƝÆwU»Șĕš£ĉÑ𱱚Åk™„ƒK@lÅIō҃UW‚—IǼ¯@m‚kaƒ²™l¯™ǫnǫ±¯zkŽÝVķUô™˜l²ô°ŎwŦxĶĠk¦±ê¯@Ý°U°šbóŤ@š°bôlôǩb›ŎƏȎĊ˜„ĖÞ¼˜ê—ƨÝĊ"],encodeOffsets:[[112017,43465]]}},{type:"Feature",id:"1501",
-properties:{name:"呼和浩特市",cp:[111.4124,40.4901],childNum:6},geometry:{type:"Polygon",coordinates:["@@ʶUĊ¥ÈřĠ¯šĉômšīƒÑ¯m„wk¯ÇV°ÑƒżġĊljǓɱţǓ›ƝóX¯ƒɛÒóa@nÝÆôƜŚĉĢʉŰĊҙ¤ȗĖV¼ÅxWƞۂlXXèm„ÝmUnšĠƒĢóÒkƚ„ÆUÞ¼ÞJĸÑ°„ɲĕš°Ŏn"],encodeOffsets:[[114098,42312]]}},{type:"Feature",id:"1503",properties:{name:"乌海市",cp:[106.886,39.4739],childNum:1},geometry:{type:"Polygon",coordinates:["@@Ș°ÇīXњŗ@ȍlkƒlUŁ±īĵKō¼VŽÇôXĸ¯Ž@šťê„°ź„k¤„x™œ@Ĭ"],encodeOffsets:[[109317,40799]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/ning_xia_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6403",properties:{name:"吴忠市",cp:[106.853,37.3755],childNum:4},geometry:{type:"Polygon",coordinates:["@@nLV‚@šVLšaÞbn@@l˜š@bUVlUV„zVx™¤kÞVèšXnš‚@nm°a@UƒÑ„@VŽXnV@Va„UšŽVKUUU@@U‚@@KVa@U²@‚wXkWnk„±lLnU@UmmVKnIVWnI@UK›@UK@@UVKXkmWLWUXmlkVwUyVa@w„w@aVI„K@aVÈw„KlLVV@LnV„VVnU‚ܲ°WÈIUÆ@nÞ¼‚‚@¦™@UÞUVW@UxUxVn„b„K‚b¯ÞU`VbǬ™V@XXÆVVl°InmnUôƒ°¯‚anam£œWVX‚KXmškôaVU@ƒVak@@wmaƒn@K@UÛUWKXUƒÇƒ@UI™b@alW@akLUKV@@Ukw±Iš›nL@kmwkWmk@JUIƒůVmnnU@m@UƒK„VKlkUwkƒƒnVUKmbkI±š—KƒkmVkKƒb@U@aƒVkUmn™`kIlaUK@UUKmbUIݚUa@mUa@aƒ„m@UUULUK@bmKkbWI@WXwlkXƒWa@k@kKƒLVkkK@L@JUVmzUKlwUUnW˜£XVlKUwVU@aXI@aWaUw@W@_nam@¯‚UkWVkUWaU@nwmJkUVkWVUmUkJ@ImbUaƒ@@WÅ_mJknmak@@mƒXƒaUV@„ƒxUšƒ„@‚ƒ„@VUnkVƒ@Vn@`ULUbWLXVW@kbUJ@XW`@ƒnÅĖWJƒ@—m°@xƒxšbnUa‚w²lƒÞ°xŤIVVULۂWbšbkVVXÆ`UbVL„@kx°LlV@Vœ„WbƒJn@bl¤ULV„°@lmL@ƒƒ£U@@aUwmKULVxUVVx@„™@kU™@mK¯LÇa¯@"],encodeOffsets:[[108124,38605]]}},{type:"Feature",id:"6405",properties:{name:"中卫市",cp:[105.4028,36.9525],childNum:3},geometry:{type:"Polygon",coordinates:["@@°@Èb°KnLš@lVš@@ƒUwVUUwVKnLVx@bV@„¤@„nK@k‚¯UƒVKk£@a‚m„IXa›ƒ@UkU¯Klwƒ@UKVaÅ_UWlU™aXa܁VKUUţJ¯w„ݱkxVbmŽ™a„w@wn¯˜„@XIÆĕ„m‚@X_@WVIlaX@WUXKVaVK@_Um„@lUVm@U„ƒ@„ƒV™„w@ƒVUÛwm@@W@ImKUkU@Ua‚aXƒ@wWaUKkw@UVaUamLU™nk@»±`¯@k—W@Ua™ykbƒI„„@VWJkLWUkJƒwU@ƒn¤mL¯wm@Umƒ²XVWbnV@bmxƒVkxUblLUV@kVWKU¼ƒŽkUƒ@mn@JnV@bUnmJUn@„k‚@XlxšLVVnKlLVV@š@LkKULVbk`WL@lkXW@kVƒ@UÞUlÇX™lkaUbmV¯@@L@šƒV@bkb@xƒlW„—bƒbW@—±@UJ@IU@mVk„VxV@@l„Illœn@Vm@ƒVUbl„@JLmKÛXmVkU›KULU`@LĉwƒKUX„lVUl@Vb„JX¦̼bÞxŎxɜĖĠ„Ŏaô@"],encodeOffsets:[[108124,38605]]}},{type:"Feature",id:"6404",properties:{name:"固原市",cp:[106.1389,35.9363],childNum:6},geometry:{type:"MultiPolygon",coordinates:[["@@Vnn@°xnK‚£„mV@„xlIXVlKXI@Uƒƒ„JlašzVbX@l˜°@²_@¼mlVšnKVbUb@VlxVLXb@xW„bVbV@VlnL@J@Xn@Üx„b„W@nl@nblmnIÆ`@X„@Vbna@aVUUWVkƒ@kbWakbU@VwšW@_l@nmn@@alVlk@UkmVak@@a‚UXaƒL@¯@KVa@axWI@KnkVaVJn_lJ@„X@‚m@nVanUVb@mXLlJ„VWnLla„VVaVX@KXVVkVKlknKVa@aVU@KXb@klJUknUmƒ@K@_UW@alIUamaU¯kJma@IUK@U„@@UW@@aXLVƒVJVaXIƒKlaUkUV@ambUUJkIWJ@wUI™V@JU@UwV@@Um@™nU`@UkUmVUxWUUV@aÅb@aWXkKUUƒUUaWK@wnm@IVU@aXwm@UmVaUalk@anKUwlƒUwlkK@wmaƒUkmmIk@VmkUUbW@UVUnW@kV@xkVmbVnU‚™@UbUV@a›k@kkW@„kLW¤@„nV@VU@W_UV™UU`VLUV@IUVõVULU@UUUJ@wmkUJ@šWI@l@bkKkbVVƒbVbUL@UUJ@Vm@@L@xbVVVLVlVwX@Vb@bmUkbk@@JWIUVÅw@Km@UkWKXxWLÅ@UVUnWK@xkVW„@KULwWVXVWzXVVKVXkV›V@VUbV@U„VV@š@LXxVL@V„b‚Ž„LnKVLVxXVmb@l"],["@@@J@aƒU@LWK¯UUxVVn@Ġ„„LUW@UbUUUa@KUX"]],encodeOffsets:[[[108023,37052]],[[108541,36299]]]}},{type:"Feature",id:"6401",properties:{name:"银川市",cp:[106.3586,38.1775],childNum:4},geometry:{type:"Polygon",coordinates:["@@šUšwVK@UVWÞUšbšw„V@knV˜@@KU_VK@K„ƒn@W_XWlL@Vn@Ċw@Ulaœ@Wanamī@aƒ»ŋó@aÆÅɲÿUaV_°ÝaƒLƒaUmVwVwX@VUVݚ@@¥Ý»@mVÅÇJ¯XÛ±VUmƒUmU@KUUkKƒLÇxUŽ@bƒLUJ@bƒx@xUbVzUxklWnXV‚KnXWlUL@V@ŽVLœ@VL@ŽmJUXmJULnn@VmVkKƒ²mlXWlx±@@VUb@L@@VV@VVUL™ƒVUbU@WmUƒ@„Ò@V¯bmn@VŽƒ„@lVnUšnVWŽXVl@¦VVUn@x‚š@‚XL@¦‚lXxš„Vb"],encodeOffsets:[[108563,39803]]}},{type:"Feature",id:"6402",properties:{name:"石嘴山市",cp:[106.4795,39.0015],childNum:2},geometry:{type:"Polygon",coordinates:["@@U¯ķó±ÇÛ¯™ķmbXb›@kb@Vĉxm@@UkKWXX`m@ƒ„@LULV`@L—@mU@lƒU™x™aÝVUX@VUL™x™VkLWVšš@J„nVLXVlŽUV@zl‚VL@V@b„„n@lU²WVLlLVbUŽVxUx@xǀL˜xôҜk‚K²ŽVa‚U@wXa@W™ÈĉUa@‚bÈk„m@¯"],encodeOffsets:[[109542,39938]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/qing_hai_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6328",properties:{name:"海西蒙古族藏族自治州",cp:[94.9768,37.1118],childNum:7},geometry:{type:"MultiPolygon",coordinates:[["@@„V£°š@laœXô±źwš™ô@„Ulƒża܍n™Kƒw@U„aƒ™ša²L‚mÈLƚÈxlaUa„wÞmÜbÞUšnJ°a„kôƒ‚ÑkwÝVğwÇ@ÝkkV¯¥@ò„»„nŤ¥XImw@mVwša@Åw™mLkaW—wƒ¥l»kçƒó„»@ƒWÑĉŽğ@ĉ„™‚Ń„UwóřVómĵ»™™Ý@VǕ¯kšÝĊÅk™°ÓUklkU±šI„ÇÞkƒ±@šƽJƒ™@UġIk@W¦™VÑșÓÅnťKULnŽ¯X›ƒ@¯mUÛ@WřmóKknōbƒxÝ@ƒŽU@kw@ÿÇLţšÝUkšmwƒŽk™lċVŚU¦™ŽƒLkUWlÅÑ@aƒ@ÅѱUóġŹ¼ƒÈĉmŻ@@wkw™Kl¯U™ġ@—„lÇU™Ó¯_ƒ‚Waĉ²Åló¼VbknƒKǎÅ@ƧĢō°Ý@ğ„W™ÅxUUm@™‚ÝXۂW„ULUè¯@mbUaƒLƒbUWġxIUJWz™a¯b™y™@ōÈóLU`ÇXUl™UĉV¯n›mÛbǕLklƒUĉVƒšóaġ„ƏbġKţnkbÝmmnÝWȭȃŽÝXţWókUÇl¯U¯‚ġUɅĀ@°¯„„š¯„VÆnmJ@ĊķnóJUbÝXUlVškL@lVxnnmb@¤Vzš`ÞÞŤ@„VnÆJV„°b„UôJkzlŽkl@²óš@ÆÇ°kĖƒšÇbÛU@lmb™XV˜kzƒV™ŽɅĀXˢlń„ĬŹ@›éÅ@ĉńÆ°ğbUšlŽɜ_°‚@xŦ˜škbVbƒKĢ„ŤVŎŽ°@żÈźlĊ„ôKôb@nôxŦ„Æ@ôŽŎL@þÆb@šnnšWˌbÈx‚InaŎxlU@Ѳ±ƒğVUĢƒƨbɲ@Þ¥ôUUķWVô¯ĊWʶnôaŤˁ@£nmnIôŽǪK°xUXô@Ŧa°m‚kXÆÞVŎkĊ°ÞLȄôyVašIlwX°UVwĢÑÜKôw@nV@œm°nmŽn„Ü‚ɞ£VbmŽXnƒ°ÜÒ@xx@V‚b²UlbkxVnšJUnVVĊ°KȚm°nxÇnn¤±¦@ŽUXVV@„lV„„bmVVȁŽVxšÒ™°šIšbźaȃšbVwš@šƒVL„™ƾÑ@ƒŦô¯ĊkôÑ"],["@@„@šƒ„@n„òVœa‚w²bVxšxÜaČVô_ĊJšIVmšL„a°@Ŏ¥XlK@ƒšk„l„KVbUb˜@nUĢn‚aÈ@lmǬ»Ġ¯œn‚mnƒƨVy™Ñǖ™Ġ»ɲInŽ‚@@ÅĢƳ@¯°™ôV„KÈbVIÇ¥¯@Ýó„™@ÑnīWKšƒk™‚k@¥š™¯™Åa™Xƒ±VÅw@±Ġ¯@»™š™n™Wmw@ƒ™@¯ƒVƒUUWçƒKĉ„a±VkkƒV¯w™x@šUJ‚x@bknÇb™mÅ@Uw±U¯¦UŽ™Kmš¯I¯Žť¼ğĊ™@ǃŹÈ¯@Ý»ÇnˡJƒbÛèÇnƒ„ÅK¯„ġĠŹW¼Ålm„@¤n²ƒŽÝb@b„š¯lƒ¯@ƒšÅ¤W„™¼nV@x„„°@Vx„@lbUblbX¼W‚œšÇ²lšUŽ@¼ŽV¦@bÇlVxUbVxÞbVšœbm¦ƒVV„"]],encodeOffsets:[[[100452,39719]],[[91980,35742]]]}},{type:"Feature",id:"6327",properties:{name:"玉树藏族自治州",cp:[93.5925,33.9368],childNum:6},geometry:{type:"Polygon",coordinates:["@@ɆÿĢV°°VÈklVôŤXÞW„ȮÇÞXnmÞnlaŤmĢLƐaĢƒôb„™ĊU„VlkǖKÜaœn°mĊUšVVkÈWV_ôKŎǚ@šz°ašbXyVI‚JĢwVX„a„KVbna°@VçVKXƒÜÞWšn@VVÆwXšĠƒÞ@Ŏ¯ƨġÆ@ȍ„LlmUaô»ÆkĊ±Xb„°`šÔV‚kȘƒĢ@Všk°šLlx@xż@Ċn„Çź»ôĢ²VÆ҄@@bÆÒXklV„KšV¥Æ™ČUšk‚l„nxl™çƒ¥ċç@±m¥ƒwÅJƒ@™™™Vƒ„mÈIléÈa°U¥™™@kÞV‚K²ÑWƒ°w²Ñ‚K²ñšyƐ„ÝšVmw„»kkWĉ—JWUƒVÅwƒL™mÅ@@ƒmw„kn¥Vу»°™°@@»„¯„Lla„JônV‚UůƒU@W¯Umѯ¯k@WykU@¯„wV¥ƒkVwţƒk»šwWǜĉĶçšK„ƒÞ™ÇaĉbƒI™lUƒ@kwƒWƒXUƒ°w™±@UšKn£Wĉ—KWxƒkĕVƒšamwXw™@™„Wmnk@aƒVkƒ™bĉLƒl™Imm„wUÇ‚Wx™nÝJn@¥Æ™kwƒaXƒÜĉ™¯ÅV¯¤mkƒx¯kķܙ²VWôŹVUƒƒ@V£™¥@ƒ°wn@™m@¯@UbUôķŽmn@ÆÛ@ÇýVaUÇĊVƒ@Çlğ—¯xÝŤ™lVÈÈVƒx„ƒ¤Vx™„kK@™@ƒx@„kVƒĖġ¥kIWbXŽŎx@nƒxÅUW`ƒ_—@±ŽUa™LUxƒK¯„WbkVlb—bmŽƒLÛÆWIUwƒWkwÝV@kI›ŽéUb›UUk™V¯Km¯k@Umݐ¯m¯›m—L›Þĉ‚ÛUm™ġ£UxkKm°™Lw›šk@kšƒVm„ƒKVUk›@¯a¯Ģ™móKUU™x™ImlÅn™™ÇbXèVVU„°„@ŽšŽ@„‚xXnmš™ššŽ@¼ğ°@²ÆxU‚„²šWÆb°š™š@¦llš™„XLmĬ@҃šÞô°@ȦUJÇaƒLóU¯š@°ġƴ@Ɓ@mɱJğ¼ǕššÒUzƧ‚m„n›mğ°ǫ¼knÇ@bġmmV—@VaUaƒLƒk™l@„kLW‚ō¦¯@ƒb™KUn™JĉIó`ċUÛb™wUw±ax›bñUmƒƒ@™„ƒ@—bƒaƒbǏÅXm˜„ƒÝ„ÅôVbގ™bl„UšÞVޚ„U‚°„VUxƒ@U„V„@l`™¼nL@Ċ„LW„„¤kXķWġXUVVVķ„UbVb@°kVVxÈa‚@ȦĊbšaźJ„U@Ț„„˜Vœƒlš@XkôaWƒĢ™Þ@laĸUÆb²mÞLĠ™ÞÑôbšÒĊa„JVbm¦"],encodeOffsets:[[93285,37030]]}},{type:"Feature",id:"6326",properties:{name:"果洛藏族自治州",cp:[99.3823,34.0466],childNum:6},geometry:{type:"Polygon",coordinates:["@@ÞVŤ™ÈK@ĀlxV@„Þ@„wŎalmôLšnXÆÜ@nV‚°@œ„°WmVKŦLÆmȚԂҚUX¥l@ĢJVš@„ŽƾI@w™W°™™Ån¥›kÅÝVwôƒÈç„@lÑĊĕša„JnaÆLVw°kny°UnkÆVȍĊll¦„Vƾ@@™nUźƒÈǂIn°X„wÞKô¦VWV£„@£°ókċ±I™™am¯Va™»ČĉV¥°™@m„k„¥l@„Ċm@ašU™mwXƒ@wÆxšmĢ_„`VnÆbšKVw„@@ƒnUVğVmVVöIlŽl@@çÛmƒ£UDŽw°@VUƒ¯»m¯ƒJōĖÅLƒa@»ĉĢ±`U_k`ÇçšóƒkX™lK@ƒakÝރš£WċkÝ™kxƒJݯÅw™xķxmIÅx„@k±J@ýŋš›¤UœkŽmV™°ÅÝxkwmġƒnÝVU„š¦ƒŤlmšóXk¤™UKƒç™@mVkK@klīƒ£mš¯VUbƒW¯¼ċb¯ĵam¼mVX„m@k¤ÇX‚ÇbƒUƒ„¯J¯„¯È@˜™bVXVҙ¤V¼kxݚV„@l‚V—„WxÛ¦Wš¯šmKnlŽkŽ‚šU‚@nƑUĉ„Ý@ǺۄċUĉ¥™UƒÞŏ™z±òL±Ò¯xX„±ÒLÝU@lššV¦¯‚ÇbkêÇJƒnU„šš@š„‚ÆI„xn¦‚‚@²Č脦‚è"],encodeOffsets:[[99709,36130]]}},{type:"Feature",id:"6325",properties:{name:"海南藏族自治州",cp:[100.3711,35.9418],childNum:5},geometry:{type:"Polygon",coordinates:["@@VxƒŽńƒš@ĊĠŽĊXÒ°UƾĕÞm°£nb@‚@LUUW„Ûº@nlÆǬšĠ£ÞV°UXb‚VȂǵ„éƒ@kWanm°@™x„z„K°¯ĠVšƒVƒkw™Lnm°kÞxÆa„¥@‚wnĉƏ@™œ_l›š_VwšmĸèŤÅČU@™˜Wn@ÑmKU™nğƒK@ƒ°¯UÿV£nmšLl™„UƒUÛé±óókkmƒnƒakV@Ç°óÝXƒWəÞťIţxmm™VÛUVȂÓnWyȁĉkƒVš°WnkĊa„¥‚_œK°ÿWna@ƒmU¯wƒlÝIU¤UXó¥ÝLƒx¯WmJÇÈŹ„mV@šƽ@ƒUk¥ĉkċŽÅUml¯Vmz¯lUxÅKmbƒI™bĉĖk҃@Çèó„UxÆޜlm¦šÆ¯ššX@x™Ž@Ž„²ÝlƒÈ™JV²klVl¯ÔlšĉƙްlUǖÞ@ššĶ¼nŽUôôŚ"],encodeOffsets:[[101712,37632]]}},{type:"Feature",id:"6322",properties:{name:"海北藏族自治州",cp:[100.3711,37.9138],childNum:4},geometry:{type:"Polygon",coordinates:["@@ōmġxƽUm±Lǿþġԙ@kxmWƒb¯I¯‚mIUx@bƒbŹVǎƒkĵbƒlĉI¯¥ƒUšm@ƒÆ¯È@šašóšUlƒČ»@w›œ»›wXaƒƒó°ţç݄kUƒaV¥ÅbÝw¯lmnšKlxU„™„ğU¯°ƒLƒyšw¯@mnXb‚l„@ƒêȁǶUWa¯VÝUğ¤ǫ™kÅ@mܹXƒVV@K@ma¯¤ÝnƽĖ¯V@„ƒ¼„ôlèk¼„¦˜xXŽlbnKšÆx@Ž™bUx@nnxWJţ¦ƒmƒ¼ñ@Ž°¦lUÞlÈ@ĠxÞUlxÒó„ƒl¯bmI™ŽÝVÛaÝnƒxVbkbÇwřÇKn±K™b„šƒb@V„xšLmŽÛŽŻbk„ƒVó@™šŹxó²›Wkb™@¯U¤ƒźĊ@lUX„°lÆôU„ƒlLX‚aœV°wšxUb°xÜôÈKVkÈmlwškÈKšwšK™™VUŤĉŎ»„»„Il¥na°LV»²¯Üy@wĢƒ°ĸwlwĢw°±„_lVkš@°ƒbƒÆ¯zƒ‚„š„@l_„@Ģ±lŚVlUaރ„LVƒnKlnȏ°IllČa˜wÞÑ°x„UU™@wƒVkmĠLô»„KÞýôaÞ¥ôĀÞmƁ„™‚mUƒŎV¥Èl°²°a²¥V„@@w„amm@Ñn@Æ£żƒVƒĠ£@W„¯Þƒšl@š»@Uk@"],encodeOffsets:[[105087,37992]]}},{type:"Feature",id:"6323",properties:{name:"黄南藏族自治州",cp:[101.5686,35.1178],childNum:4},geometry:{type:"Polygon",coordinates:["@@ôl²ôÜê„VƒVkš™KmnU¤VĀ¯°@„„LmĠVšnLÈL@alb@al@n°Vš_XmWUÈamaVIn@n‚aV£œóVWƒ™U£°ašxÈ¥@™‚aĊwȹ@óša™ƒğbm@k„w@mƒaÆw@ƒ„In¯mmƒ@UkkWƒÑÅ@@kċÅçVkÝJÅkVykŹl¥@¯š™ĢU܃X¥òý—mmX™ÝÅlmU@£™Wly™XW»Åbƒl@aI›»k@klm@UxUUƒVƒ¼¯Xƒl™aUnķ‚ƒI@x™@¯„ƒK™„ĉUU`óšlČ¯ô@¤ƒÞJ„k°xVŽ„n@ŽmbXŽ¯Ā›L`ƒ¦ĉbml¯X™ŽUŽl„ȂĊXzm‚ȁÔU‚ÜVšUnnŤwŦJɚ݄XÞW¯ô@ÈlU„b„mln"],encodeOffsets:[[103984,36344]]}},{type:"Feature",id:"6321",properties:{name:"海东地区",cp:[102.3706,36.2988],childNum:6},geometry:{type:"Polygon",coordinates:["@@@҄bš¤ÆI°ôU¼š°UŽnnWx™š@b¯L@lUUWbXxWl„ƨnxVUllš„XVŽUŽnL@lȀý²KVnƾ‚ĢwV»ƒ@mÞ£nÆƒÞÑmL™ƒKUaVżĕƒWVk²ƒƒÆÝ@ƒXw°@„ô™@a°wóUUmIk™™aVmÞwmknyƒ¹VÿƧnŏm£X»˜™naV±„Ýw@ašb@aƒm¯„ĉVó¦kÝWKUU@WanU™b@ôǺĉxb@šÇ¦™w¯bV¤„šUX›ôU¤bmm@UJnbÇbXVWn™`¯Umk@@bka@bÇK"],encodeOffsets:[[104108,37030]]}},{type:"Feature",id:"6301",properties:{name:"西宁市",cp:[101.4038,36.8207],childNum:4},geometry:{type:"Polygon",coordinates:["@@@kmKVUƒWk™VkUmwƒƧXkWwXaVV@k°K@aš™XwmmV™¯V»¯óÅJ™£ƒamŽ—X@šċVţÆķç™nUx™`kœ›`@šÅmĊx@Žƒ¦U¦„blVރŤèô¯„„Wbœx›¼œŽ@xċ¼k„™V™ô™bÇ@Å°@„™n„V°¦ĊJ„kĶa„lȍźU„a@aVwnJ°°J„anXlwš@ĢÓ"],encodeOffsets:[[104356,38042]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shang_hai_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"310230",properties:{name:"崇明县",cp:[121.5637,31.5383],childNum:1},geometry:{type:"Polygon",coordinates:["@@uŏu»GPIV±ÐɃŜ{\\qJmC[W\\t„¾ÕjÕp‡nα|ěÔe`²„ †nZzZ~V|B^IpUbU†{bs\\a\\OvQ’Kªs†Mň£RAhQĤ‹lA`GĂA@ĥWĝO“"],encodeOffsets:[[124908,32105]]}},{type:"Feature",id:"310119",properties:{name:"南汇区",cp:[121.8755,30.954],childNum:1},geometry:{type:"Polygon",coordinates:["@@`y”ĉNǕDwǏ»ƒÖLxCdJ`HB@LBTD@CPFXANC@@PGBKNECCBB@EBFHEDDDSNKAUNBDMNqf[HcDCCcF…@EFGLEBa@ACoCCDDD@LGHD@DJFBBJED@BGAEGGFKIGDBDLBAD@FHBEF@RFDMLE@SGANFFJBANPH@@E@FJjRIACDMDOEKLFD@DbDAJI@AP@BGHFBCBGDCC@DCA@CECGH@FKCEHFJGBFDIHACEDNJDCVFBDCRKRLDLITB@CjNJI^DBCfNVDHDFKHAFGDIICDWBIF@@CFAjFJNJBBHD@CJ@AEFJ@@DH@BFBCPDBMFEQGDIFCNDHIP@HDABFACBJFHEBSZC@DP@@JDBƤ~"],encodeOffsets:[[124854,31907]]}},{type:"Feature",id:"310120",properties:{name:"奉贤区",cp:[121.5747,30.8475],childNum:1},geometry:{type:"Polygon",coordinates:["@@~T~JjZdDbLXDLCB_J@@FHFZJJIAGH@HGR@BENBLID@@LFCDF\\FpDBDb@FAHKFE†@dEDDdC\\GreNMACVMLBTMCCFCEGFAA@DAFDLMHA@OD@BMEWDOC@AS@KGAI_DcKw„ÕísƝ‘åĆctKbMBQ@EGEBEJ@@MBKL@BJB@FIBGKE@ABG@@FMFCPL@AjCD@ZOFCJIDICIlKJHNGJALH@@FPDCTJDGDBNCn"],encodeOffsets:[[124274,31722]]}},{type:"Feature",id:"310115",properties:{name:"浦东新区",cp:[121.6928,31.2561],childNum:1},geometry:{type:"Polygon",coordinates:["@@EN@JJLNHjLJNR^GRYVBNZJRBV@PDvbLNDN@LGNER@nCNQNuT_TIVFV\\Z\\XnDrI|[Ʉś²ÏJUHOƣ}CA@IO@@CYDATGFIEDAEBBAGCO@GJMCEDCJRHEFANOCADAEG@@CI@FE@BDIC@AGIAIMiEEB@DE@AJCXJDCJEHGBELGCUCeMAD]CIJiM@DSAKJKCLQDQACUECDMIFCBDJGECHAEIWCK@GLMCCGEACNKCEJG@MMBMC@@CIJUINT@JAJSTEPZZCP"],encodeOffsets:[[124383,31915]]}},{type:"Feature",id:"310116",properties:{name:"金山区",cp:[121.2657,30.8112],childNum:1},geometry:{type:"Polygon",coordinates:["@@L@BIHFN@@EE@@EFBDGDAADVDD@@EF@CA@IIsRE@GDAF@BF@CV@|FBCHBLCNHAFCADBMDCFZXHILBVEEQA@MWFARJJ@DCX@@TEFBLHAAERE@AJABRPBNK\\BrJ\\VHGND@CNADKDADQjGAGNC@GJ@FCFFHC@JF@@dLBDSFADHVG\\DTEPDDHJALIJkJDJCDIPE@YDCBiK@DONE@EH@BAF@HLJA@EIA@ALKNA@@FIFAFHR@NALadsæąyQY@ƒA±DʼnXUVI^BF@FFF@HBJEDFFGFEBSRkVEXGHFBMFIVW@GAEEFOIAIPKABGWEKFSCQLQBSEIBC\\FdBLRR@JGACFDDEF@AWB@LJJYNABBA@CUEGPaO_AIE@MYMFIGAEFECHSAAKAO\\[JEDB@E@MMA@@AGBKMGDFFCDDFEDFJF@NPBAFLHFH@EDDHBADDC@DDCDHHCDDFDABDAD@FEFOBCJ[D@HEDDNJBDDHABJIBBvGLBJAH"],encodeOffsets:[[123901,31695]]}},{type:"Feature",id:"310118",properties:{name:"青浦区",cp:[121.1751,31.1909],childNum:1},geometry:{type:"Polygon",coordinates:["@@RUNKdOFDJCbRFMLAHPLDN@JGL@@APBWYCKN@TU@SHGCEJIDIJKVIZVNM`iNY@CIE@CA@KBOEGEUFCCSADEIEFCDDDIDDHC@CKIeDCG@IG@DHWFEEGCH@@GO@@O]CNpeEQDBFME[JC]DGF@CKOA@QSB@GB@@GW@@ED@AQIJIAAFE@@DO@CFI@KNG@CDACAFEGKGBEGBDCCAIFCCLIECFI@MBCLDHGNAHSF@DMB@EEKBA@@C]DEICFG@ADBHGFKCDAKKHKD@@FHGAANGEEFCHKCECBCKG@ADKCNE\\[A[I@@mGBDQQEO@BCE@AI[AML@JGACLOAFKEMM@EQKC@CUCBCCBCHEA@FF@@FM@GEAJK@GNF@EXPH@FD@M^@HIADJCFDBER@DK@@DE@CAKFOCCBDHIBCNSB@GFC@GQEEOWFICGDUAEJIDBTAHJHEB@DIF@NE@H|HBDBEH@DKBAHEF@HEEUB@FGFGCCCE@AHOB@NH@PRLVNNFBX@RC€PbAvMtBfH@DJF@ELBFA@EH@HNED@FFB@HLC@CJ@@DJ@PIRf@HE@CFF@GPHD@DKE@FFBEFFD@DEFCA@DD@IjCRFBAHFDKD@HF@@PM@H@BlbDJDBFEF@DLXB@HCD@@IFCBIFEJD@FDC@FBALLF@PAACJERACAJCBD@EL@JD"],encodeOffsets:[[124061,32028]]}},{type:"Feature",id:"310117",properties:{name:"松江区",cp:[121.1984,31.0268],childNum:1},geometry:{type:"Polygon",coordinates:["@@@DLDFRN@FNELPBDKHB@INK\\BBJF@ADP@RFCRHA@nJ@B\\[\\MFLDBCH@DLDADFGLEDFFMHBBGH@EC@GLLLCBLDHEAGBCH@DEFJ^C@DB@LAFFA@CNE@GTMBGHKCAD@NEJFDKJDDJEDBCDHAAFLHFHBEBDDCH@LMJ@DEP@@CF@BEJBJIBRC@@FX@@HA@@HTA@RPBDLE@CHD^\\INFAERCfFMo^D@PP@@HG@HDFFXECGH@@JDHfCLJ@DGDCCCJCCEDJFCFTBDDVEHFPFLAB@NBFCFKFC@CHIACNOHWHCAAFIDD@CDAGEI@ACFMF@R@R_@GQED@EGFEQEDE_IAHKAEXCQUOQCUDEN@ZI\\DDmAMHCICDSOC@EG@BKHIGMIBCGOCSF[CUHCGEBCTKA@cE@@IGDEEEDI@@HMDBHiHCRCBCLMB@DMCGH[UqI[AMLOAAQIB@BQFBFGBAKFE@SW@CDI@QIEBNXB@FRUFKAGJYWDENCCADBBEMGKDGAAD{EU@@DAEE@CB@HQFJt@JDBE@@FC@"],encodeOffsets:[[123933,31687]]}},{type:"Feature",id:"310114",properties:{name:"嘉定区",cp:[121.2437,31.3625],childNum:1},geometry:{type:"Polygon",coordinates:["@@F@LI@IDKJADKIEJICADGACFECCJ@HKCAFOHAJI@aCBEE@ICAEB[GFGCKL@FGEIFADMLCAEJM@ELQECEIG@BE^QKKLQCA@EHBIGQ[GEHOMGGDHKH@JOECFCjCBEFDNCACMBCILGTABDLEEOEIG@GFIMM@CGKFBFCDE@@GEAGEEACIcGaHMFITIHDN[AKF@FS@OA@BK@IHM@KCGOKBENaQIDECcPMLQVFHFB@BFBKLGD@FAJOVGIACQ@A`LPCB@JEF@RU@ANS@@RCL\\HIFpRBFRBBDKLLDADJDGBFDABHBEDNF@DGBBBADKDAHC@\\JJFBDEH[DEFDH\\LX@XLBLbT@DNJLDCEL@VJABJNDHB@HBHYFBAA@GNFB@@AFB@AFABFLFBHFCL@HJBAFBLC@DN@HN"],encodeOffsets:[[124213,32254]]}},{type:"Feature",id:"310113",properties:{name:"宝山区",cp:[121.4346,31.4051],childNum:1},geometry:{type:"Polygon",coordinates:["@@ˆmÖoÖiƒ½[s[YEUJU`SCIEBCCWJY_LIICDWU@@FaBCJIB[ICH[@@CDKEE@MK@@IMCAEBCH@AMFI@SMGEFGB@FK@BHCAIFJNQD@FEBDFMBKGACG@ECWH@@CDDTOEEBGEK@GC@EE@GPHFR\\JHGA@FDBKRLL]RAFH@FJFDKR@FINBFKDCNEBFJEHK@DLEH\\HFADB@JFFDA@bIJGBEPDBGLI@DDEFBDCHDBIJJFCLIBCL@JKJE@ADHDBHJ@HIBBDFHBBAEIJ@BJFAVL¢ˆ"],encodeOffsets:[[124300,32302]]}},{type:"Feature",id:"310112",properties:{name:"闵行区",cp:[121.4992,31.0838],childNum:1},geometry:{type:"Polygon",coordinates:["@@T@@ELE\\BCMJGJSNEbGdHDJFBJAFIEIFCEWG@@gMENSFCVJFAxR~B@IH@AIiI@GE@FGEAFQPDRiV[\\DFSGMHAXHDOMCJCDETBBNVJJI@DD@ANNNH@FILDDMFBDHNDHKL@XDFGLD@EHGFD@DDB@CDDHCDAEAHG@ABOJ@BIaC@CECLKPFNCDCJBiQEIF@@@OGBMIAEEBMTHF@NKEC@QFEGA@EBCKAACHCLJHEFHHB@AFCAIEACIC@HG@KCCDC[ECEED@KC@KJMAAFQ@GHG@BHIJYIGE@EI@A`KDWCaKcCiY}I}S[CYJM@CFDVPRRVWDFžLBBG`JCFRFEFFHC@RF@HQ`Q@E@ENBDJ@HFCB@DCCEJBBGDGXMPBDGJ@DEDELEDMA@DJF@DMZ_jMNYUUJILCJIJDFGH@TSVM@DLXZ"],encodeOffsets:[[124165,32010]]}},{type:"Feature",id:"310110",properties:{name:"杨浦区",cp:[121.528,31.2966],childNum:1},geometry:{type:"Polygon",coordinates:["@@V@CXJDKJZ`XIDDFADJvSRMDM@mFQHM@KCMKMuaOCU@BDAJSX@HKJGD@PNJCJWAGT@R"],encodeOffsets:[[124402,32064]]}},{type:"Feature",id:"310107",properties:{name:"普陀区",cp:[121.3879,31.2602],childNum:1},geometry:{type:"Polygon",coordinates:["@@F@@FHDL@HFFAPFCSDC@@XGFDH@BDLHNACEFA@ERCIMJEDBAGL@@EHAFENHHJ\\ONQBQCIBC[MKACKI@GGGH@I_G@CW@[DMHCDIBMTDHN@JNHEH@FJFPKFACSBKHDJNABDMDECAFiDEDFDIPG@GLHCNH"],encodeOffsets:[[124248,32045]]}},{type:"Feature",id:"310104",properties:{name:"徐汇区",cp:[121.4333,31.1607],childNum:1},geometry:{type:"Polygon",coordinates:["@@RADL\\NCPHFfLJaJ@FWLGMGIK@IFMDOYYFOTSBI@IMSAMSACFIDNDCPWGGBHNET[CU\\QjOCERFBEHF@@HjJBJG@@J"],encodeOffsets:[[124327,31941]]}},{type:"Feature",id:"310105",properties:{name:"长宁区",cp:[121.3852,31.2115],childNum:1},geometry:{type:"Polygon",coordinates:["@@HFFB@HF@DCAELENSJADCNG\\CX@@D`H@JHGHHJ@BINBFUGEDO[MCKQB}AwQEBUIEDMTNF@hH@FXEDFJEJIB"],encodeOffsets:[[124250,31987]]}},{type:"Feature",id:"310108",properties:{name:"闸北区",cp:[121.4511,31.2794],childNum:1},geometry:{type:"Polygon",coordinates:["@@CSG@BQGODUPWTOBQAAFMECKBGEMFKEOHADDJARMR[PGI@TEJBNG@ADBFND@JL@@NFFCL@D\\@DG\\JJADI"],encodeOffsets:[[124385,32068]]}},{type:"Feature",id:"310109",properties:{name:"虹口区",cp:[121.4882,31.2788],childNum:1},geometry:{type:"Polygon",coordinates:["@@bA@E@QHSXBDIMI@OHCLI@GTWBIACQAYIOFGCENBBARSPOXCVHPARH@DT"],encodeOffsets:[[124385,32068]]}},{type:"Feature",id:"310101",properties:{name:"黄浦区",cp:[121.4868,31.219],childNum:1},geometry:{type:"Polygon",coordinates:["@@NEHFLAFDHDPEAMZUHQQ]IMKJG@EPERABHBGRUCCNGV"],encodeOffsets:[[124379,31992]]}},{type:"Feature",id:"310103",properties:{name:"卢湾区",cp:[121.4758,31.2074],childNum:1},geometry:{type:"Polygon",coordinates:["@@VDHQGABAFQFOH@LIiKKHEXI@IbAFZB"],encodeOffsets:[[124385,31974]]}},{type:"Feature",id:"310106",properties:{name:"静安区",cp:[121.4484,31.2286],childNum:1},geometry:{type:"Polygon",coordinates:["@@DLLB\\NPGLFHUDMYABEeKEVMAAJ"],encodeOffsets:[[124343,31979]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_dong_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3706",properties:{name:"烟台市",cp:[120.7397,37.5128],childNum:9},geometry:{type:"Polygon",coordinates:["@@ŤLšLllVń²è°xżĢĠÆl҄šŤbœ„V¤ĊXnŽlĢVĊ„Òš„È°ĊŰÞè˜L„±@џn»VUźċ²»ÆkôVɆkĊŃ²kŤVVwUUVmUaƒ@KkU@ƒmUmmk@UwUkmW@UVIXa@ƒmw@a™KULƒaƒx@Uk@UbWU@yULmK¯@kXƒVUwm@@JUUknWKUVƒLUbU@™wWykIƒa@w@mUI@ašUVynIWa„k„@@W„bl@@knmƒK@wnIl™°Kna@V¥ğ@ġUķ»™¥@UōJƒX¯¤k@™wmI¯‚k@mwƒak@@šlX@bUJ@VƒbknWxkLkxlŽšLVlkLmŽšb@bU@ƒbU@VbU`Vb@n„L@Žmb—U@˜VnUVmnU@mm™@kIUWVIUK›VkkUJUnmL@VmLUaVWaXamU@™™U@KUUmVƒU—JƒU™VÇwğn™mƒ@mXĉV@l¯xnô"],encodeOffsets:[[122446,38042]]}},{type:"Feature",id:"3713",properties:{name:"临沂市",cp:[118.3118,35.2936],childNum:10},geometry:{type:"Polygon",coordinates:["@@˜bXlƒl@zlV@lXXmŽkbVVlš„U@Vn@@Vmb@XšKšVX„WJ@XXl@„‚ŽÈbVLšUl`„@XXV@VVUxVbUxVbš¦„@‚WnXVJ@bnVUzl@„°Æx„U„KlU@mUUnUlUVWVUnVV@XX°V@Všll@Vk„aXVl@Ux@bmbXLlKlb@b@bUJn@@„„b@n°x°K@an@@UlLVKVbXb@bVVnK°LVa@UVa@™Xw‚KVxnLšU°@naV@UWUkWƒULmV—wÝKUUla@aó_@mƒK@aUU@ƒWUkwVm@aVI°W„@@IUw@a±¯@¥kUVUm@a‚wkw™@ƒK@kVKk@maXalI@alL„WXblaVLVU„V@LnKš@„l@w˜aXašLlnUl„LšmV@n°J@_VmnIVym£UKmI@WnIVm@anUVmÇ_kġIÅWUXÇm@U@ݯÅ@ƒ™@naWƒ™IVW@IkK@klKn@naWIƒmk@ƒaƒbkKkLWn™WkLWmk_ƒ@UaVƒUKmLUw@mn£WwUmU™ƒaóV@UkUm@UKULUwmJUX@WW@XҙzVblJXŽWXk@UVWK—X‚¤UL@xU@ƒ@ƒVUaU@@XmVkLmWkXUyÝLmKXnVŽ@n@l™x@bWLnVVn™`knULmxUl„„WLXŽVb@VƒK@z¯x¯¼Wx™KUn@bk@ƒlƒVVVz"],encodeOffsets:[[120241,36119]]}},{type:"Feature",id:"3707",properties:{name:"潍坊市",cp:[119.0918,36.524],childNum:9},geometry:{type:"Polygon",coordinates:["@@l@@UšK@Ž@L@bX@@VlL@JƒLUVnX@`ÜXn`V²mJ@bU@@n„b@l°xnnĸVƚ°@„ƒĊ£Þ@lWnÑnkʶJmó°w@kk»V@»ƒ¥k@V@kw@wVm„a˜Å„mšaô£ŎƒXI@mln„Kla@mV_UKƒ@kUkw@alW™IU»™mƒ—@WUIl±UUÅU›bkJƒ@a@wUKUaVIÆmXIWaka@m@Ul£XKVw@ƒUIƒJUkmJ™ƒVkU@a„ƒWK—ImVƒ@UxmL@bX`WXU@U`ÇkUak@@°UblXk‚mLUKmL@VULóƒƒVk@@Vlbn@Ub@ċaUJUbƒIUlVLUVVbVKX„VlVXU@mb¯@™VmKUwLWx@šUb@VUb¯KmLUU@aWaUaULkK@Vm@@b¯L¯w@mƒa@ƒm@UUU@U¦lJUXƒVƒmkb@nm„XVWŽkb™IVxUV@VUbWLXVƒLW`Ux@nk@Vn@x@VkJ@œV`mXkŽ@V„xV@lVššI@VULš˜VU„IV`°bVXXx„V@VWVnL@xV„Ub"],encodeOffsets:[[121332,37840]]}},{type:"Feature",id:"3702",properties:{name:"青岛市",cp:[120.4651,36.3373],childNum:6},geometry:{type:"Polygon",coordinates:["@@„@nU˜JXLƒ„@blVU‚š„nIVl„IVJ@„UxWLk¤@V@nlbXbWJÅnUJVbVL@x@b„ŽlIœaÆVVVk²VJ@X„˜šnV¼šJkX@blxlV„@VLU`@nkbƒLkm@nWJō„ó¤™bƒn—ƃbUn@xlxU@l@„¦@¼UŽl¼ĊUnW„@šnĠmÈxšU„V˜I„VnUVV@LšV@šnVWbXb‚UVbnK@UnKVmVIllœUVLUJVXlJš@nnV@nmVUUm@—˜Vna@ƒK@mUaV_UaV@„aV@@a™anlKUk™KklwlKXwlm„a@UVI@akW@™l@„bnxl@°nJšxl@°£„WŎIUÑn»lašmô¹Ŏ¥VaUUkƒmkġWɱIUUŹ`›@kk@ĉƨřV¥_Ç@™Ĭƒ¤ÝL¯m¯£ƽóķwUW±ī¯kōaĉĕ™kğmó°ƒbW@UKkLUaƒVmz@V@ŽUxVn"],encodeOffsets:[[122389,36580]]}},{type:"Feature",id:"3717",properties:{name:"菏泽市",cp:[115.6201,35.2057],childNum:9},geometry:{type:"Polygon",coordinates:["@@@¥šIVUÈmÞ»@UlU@Un@VW@UVmkk@aVUUKVÝ@UVknK@UV@VVnIVƒ@wnƒmwmKXaWaXI@UV@Vy²blkVKkam™U@kb@Um@VmUkmƒKmkXKWwkU@Ulƒ@UnK@UVUUm‚KXwšUVL„w‚K„U„@@Wl@@wUkV¥—@@I@W@_V@VWUw@UUa@aƒaWa—@@_mKUw™l¯amzmV—@WK™nU@kƒWLķaUKbÝVmV@UWÇbÛ@ƒX™°UbW@XŽm„Vlk²UJUbmLÇxÅWUzl‚¯Ll„@VkK™XUbWJ@bU@¯@™ƒkbƒLmKka™„@l™_WšXºVbUz@J‚n²V@¤lX„Ž„nV°šLn`WbXLôVlKVUšxXn˜lXLlU@bVV@„XJWLUVnVV@„„@n‚l„°nn‚V„KÈbVXÆJU°VnXV„kV@@xVL„@šWlb"],encodeOffsets:[[118654,36726]]}},{type:"Feature",id:"3708",properties:{name:"济宁市",cp:[116.8286,35.3375],childNum:11},geometry:{type:"Polygon",coordinates:["@@nam_nKlVLXa„Il`š_@KVVXI@m@w‚ƒ„@@k@Kšnô@n`VbV@@L„L@KVVn@VX@‚VL„Jl„š@VUUƒU@Uam@Uk„wšKWaXamkJmIUVUÈblašUnV@kVKl@@lXL°kVJ@VÈnVJUX@V‚LXl@xVLnU‚@VK„V@a„IUaV@„bĊU„x„K‚kVJXUlV„ƒ„UVašI@WUI@KlUnw„mWk@WXIWƒ™U™L@Wna@Um@@UƒVk™UUlanWW@kkU@y„kWk—aWVUlÝbUU@kƒJUIU@@ƒ™JmaókƒLKǃUUkKWLk@WbkUUaƒbmKn¯°¥V@XwV@VanaVaU_@Wlk@WÈ@VUÈVVۂm„aklKȯlLVUX@lK@aX@@kV@VmV@VwnJV_UWUwƒX™am@kW@wVUkKVIUUVmU@UV@IVK@aUL@aƒV@Lm„UKmx@ŽômLkUWJ@šnXmlUxUL@Vkn›VUšU„@V™L™`Ub±LkV@kUKÇbÛ@ƒU™Wó_mJƒ@Wk@@Xƒ@ƒVLƒxUK™VWxLVnUV@VmL@Vk„@VlVXxWLnl‚Ln„VlUnn@@VlaV@nšlbULkl±aUzU@@VWJXbWbnLnxm„@xU„mJUUU@@VmLUl@VUÞVLUV@bllUn@VUXm@@VkV@VݼÇnUV™J@¦nnƒlnVlL@„Þb°KVV"],encodeOffsets:[[118834,36844]]}},{type:"Feature",id:"3714",properties:{name:"德州市",cp:[116.6858,37.2107],childNum:11},geometry:{type:"Polygon",coordinates:["@@„¤@VmbVXnVVbVJššX@Žll@z„lVInl@„@bVxUbĠ‚l@Èbla„IšxXVWb@L™@n‚ULWVXXšWWLnL@`@LUVVL@lVn„JšU@UUk‚a„™nš‚Vôô„b°¼V‚ސXš˜‚œIÜbČa˜bôW„XÞWÈzÆmnLVJ°ÈnlV²lbnW@™@UƒUV™šmnwmkkKWƒkla@mVIUKUa™aUwmn™JU@@amIk@@bVlkX@mmUklUUƒƒa@_UaUUƒV@wƒw™WkXmW@I@WUaÝU@UXaWUU@UUVW@UUUWUn¥nUVa@m@k@alU@wk™LWa@UUm@@wnmU™wla@anKn_@alK@ݙ_ƒ@@WUUUmlkaƒIƒyU@UwU_Wa¯yU_mWUwkImm@InWWUk@@UVWV—kW¯U@VƒL@b¯b@l±¦@šVV@lUbV„@škxVnUšl¼XV@b@lV@nIWxnbƒ‚™@UU™LƒxÅxm¯ƒaUƒ™wU@mUÅVÝKULm@bmKUXó@"],encodeOffsets:[[118542,37801]]}},{type:"Feature",id:"3716",properties:{name:"滨州市",cp:[117.8174,37.4963],childNum:7},geometry:{type:"Polygon",coordinates:["@@Vb@`„bV„kVlnV@nlWUk@al@nJ@bV@šInmVxšbVbVLUJ@nkb‚lX„lLnlmx™nUš„V@V@šmXn˜lbĸ@nnVx‚b@lnXV@UJ@nVxšxnxVbÆVn¯ƒĕ‚@@wÈçUÇlķVIœb‚@„Çmk@¥k@UkUK@aWakUóJW_UW@wkkWK@U@Kš@XUƒƒUkmUUalKXala@U@kkWlkÈl@kšV„mVIVmU_‚a„ƒƒwnwVW@wƒwUƒ@wU£ƒwkJWIyUI±bk‚VUJ@nmV™Ukl„Xmx@lnbW„kVƒUkLWŽƒxkKUUmUkb™J±—LÇxUKmkUmkkW™™a„mUaVkšJÆ_²KĠ@U„W@w„U‚¥nUWwK@aÝUkÅVaVK@akLWƒƒƒ¯I@bnbVx¯JW„ñšWbUL@šƒŽnV@VmbkUUV@IÇak@@bWak@WJUœJWL@bXV@„‚@„V„Jlb@zUlUŽUImšnbV‚mz@°UV@V™bV@@V@L@xLmKUnmJVX„J@VkLW@UVUL@b"],encodeOffsets:[[120083,38442]]}},{type:"Feature",id:"3715",properties:{name:"聊城市",cp:[115.9167,36.4032],childNum:8},geometry:{type:"Polygon",coordinates:["@@ô@VWnL‚an@VKÞLÆUnVV@šxV„„bn°Æw„wšKVVš@„maXwmJU@@k@aWUk»V™Umlw@™UƒVa@kUU@™²¥@k°a@a„K@U›ƒU@mmm@ów—ѱ¥¯@@w™Kmw—I›¥kU¯UmakJmIUaƒVkKUkm@VUUa™Uƒ@UaƒKUK¯@™w™UVŽUIUKVw™k™¥™wƒbVŽ@xn„@lWnXxlL@`„XlJX¦l°XxW¦@¦Ul™n@Ž™@@Um@@VXVmx@¯bllUnUJ@VULVn@b„xV‚VL@b„„VlnVVblV„ÈnVlIVJœLô„lJ@xl²„"],encodeOffsets:[[118542,37801]]}},{type:"Feature",id:"3705",properties:{name:"东营市",cp:[118.7073,37.5513],childNum:5},geometry:{type:"Polygon",coordinates:["@@ͬUǪlô@°Uœw°ōĠ¯š»Ģ炻XÇ@w™wƑa™ÇƒkwVƑ¯@řķUmm¯w@kƒa@mV@@anIU±m_ÛW@_mWVU„K@IkK@UW@@a@K@™L@Vk@±U@UV@lm@mUU@kLm„„xV¤@xV„„x@xUXmx„xƒ„bV`UnUJƒn™U@lÇkkllX@l@VkbWbkLVbnVVl„„WV™@@L@VXLll@xVXX`ôIlVXb@bVLVll@@¦nlƒÈ@›aUJkĸVÈÇè@x"],encodeOffsets:[[121005,39066]]}},{type:"Feature",id:"3701",properties:{name:"济南市",cp:[117.1582,36.8701],childNum:5},geometry:{type:"Polygon",coordinates:["@@²¦˜Òôxn@nn‚@V‚œ„°VlXU˜UX@Vl@XVmX@JnnlJVxnXV`°zXbV`VxV@„z„JlbkŽVnVV@X„@š`@ÞkL@bm`mL@bkbšxnVm@xn@VV‚@XbšKl@xkV@b@l@nUbmVm¦XVVV@VUXVVV@XVWb@VÞVVb@X@JnXlWšX„x@x„UVV@aVKVUX@lK@UƒIUWnIVmnL‚K@w@K@UU@ša@UVU@¯nyUman™VJVVk@ykaƒIƒU@@ƒWU@aXK‚IV›XIl@Xb@al@Èb@JVUlVna@UmU„@™VKXaò™Xƒ°IUwma@aU@UU@wVW@фw@a™I±`kbƒUkw™UmJ@UkmÇUUkmKknUVƒ@mJUkaWkƒa@KmKkUƒLmyXa¯_@WmImmbƒLmUkVUbUVƒJ™bƒUkkWJkUƒl™IUm™k™Lƒ›„lK@knaVmkI@mWaƒLUK™UU@@VmLUVLWK@UUUƒWUkkVmx@„Vl™¦"],encodeOffsets:[[119014,37041]]}},{type:"Feature",id:"3709",properties:{name:"泰安市",cp:[117.0264,36.0516],childNum:5},geometry:{type:"Polygon",coordinates:["@@n¼šŽW„nxšL@x°@š¥Uk@ƒnwlUVl„XVV@VXL‚KVUnK@UV@šVVL„KXb@nlJUnmb@lkLƒ‚„œšKšlVnšJ„klVXIll„Vša„IVUValUnV„K‚annnJ@X°`Wbnz„KlVnL‚Ž@L„bXl‚bVlnI„@VUU@UmVƒ@U@Uš¥@VmV@@_Ua@m°@@ƒ„kmUUm@UVmn@nX‚@@a„anJVUVL„mlIVJn@nkVLVa@KVmVLXVVLš@@U°bn@VaV@@K@aVkœbWaXUVymU@aUImWXƒ@™¥UaVwUaVwUUU@WWƒ@k_™VUKÇa@ƒƒnmxkV@LVJ@X™JUbƒVƒ„kUWVUIlƒLƒwĉVƒaU@VbƒJ@bƒUUL@mVUK@wWkK@UVWUIÇm@UUI¯lWK@kk@UL@lmU™VkbÇaUVVnJlIn‚WbXb™LƒxVln@VbV@V„UV™@kƒƒIUK@UWm@UU@LƒK@KU@Uam_ó@™m@L@lƒ@„@x@nWJUU@L™`k_ƒJWbUKkmLn`mb"],encodeOffsets:[[118834,36844]]}},{type:"Feature",id:"3710",properties:{name:"威海市",cp:[121.9482,37.1393],childNum:4},geometry:{type:"Polygon",coordinates:["@@VbUnVVUxĊ¼š¼ô@Þф¯‚WǬLŎUÆW„¹Uǃō¯ÑƒÝkţ™™ţóġ™óL™ł̥U™wm¥kÝmkkKóbÝ@U¦@‚mb¯LkšmJ@x„Lmn@lk@ƒa@Xƒ@ƒlXbmJUz™V@bVJ@n@x„blJXzšxV@Va„KVUXLlmVV@In@Vx„UlW°@nLVK@zXVVal@@V„w„bVKšL@bnx@„WbUJ@VnXVlVxl@nnnV@„lV@L„‚"],encodeOffsets:[[124842,38312]]}},{type:"Feature",id:"3711",properties:{name:"日照市",cp:[119.2786,35.5023],childNum:3},geometry:{type:"Polygon",coordinates:["@@UaVUUKVk„JVaVIČb@Vam@ka@Ul@„Uô„VK@UnKVLnKlkWVa@¯l@VbÈlV_V@XWW_@anKVwUmVw@@Uny„UVblKVLX@„aô¯ó¥mÛĊÿÈ¥š™Þ¹lUīƒ¯Kĉ¼ʟbÇV™U™ŽUŽ™XmakJUnmV@bUnmJ@XnJVLn¤UzmJUn@`¯ImŽU@™nƒKVkkm™KWb—b@xƒk™@mL@KƒUUVUKkbWaƒXkK@bkJWbnbl@UL@l„Lš@lxx@b‚nUVlV@¦²°@bVx@Jƒ@¯XUJ@bUnlxVŽ„X@‚VV@b„L@nô`@bkbVVÞL˜xnU"],encodeOffsets:[[121883,36895]]}},{type:"Feature",id:"3703",properties:{name:"淄博市",cp:[118.0371,36.6064],childNum:4},geometry:{type:"Polygon",coordinates:["@@nƒlKV@nVn@@kVU‚@²VVaUƒ@wmKXU@UƒUWwUW¯aU_ƒJUV™—VK@U™JU™@kUƒw@UlnWU_@›lI@U@wUml@@mVwX_„KWUXKVa@UVUUwšJlaXWUnƒ@mla„n„UVWkIV¥V@VVVI@a@akakLWKna@aVwk@WUƒbUlk@™k@U¯UWWU@mUUVUXkVmVVV@nkVƒLƒVÅwƒ¯k@WVXb›aUl@bV@@b@xkVVXVxkJ@nk@@ŽVLUlVb‚VXUVVUzV‚™LVbUbV„VWVkLmškJ@n±@UxU„VVkV@bƒx@ÒUX@xVVV@°J„„X„lK@bULUblÆÞV@b‚LXxmV¦ƒV@xƒXVŽğ@±LÅ`™IUlVbƒnšbXšllVnnlVLÈw˜K²ŽšIlanVVVlL„wXlK„VlUXƒma@knwƒWlkšVnU@mVIUl²aVJ‚zXJlI"],encodeOffsets:[[121129,37891]]}},{type:"Feature",id:"3704",properties:{name:"枣庄市",cp:[117.323,34.8926],childNum:2},geometry:{type:"Polygon",coordinates:["@@‚yUU„U„kl@@aVmšLXw°»°w@y„L@UUaWXKƒƒVknwVKlmš_UmmUXK@ašw@k@mUWmUL@ƒ@™@£@KƒbÝV@akw™aULmƒƒbUK™LUU@lm@—°mL@nUJVxVXU`mIUxU@UnU@@lW@@bkLW@UVkKÇ°kLlŽƒbnUÜÇUUVÇ@@Xkl@XV`UbmbUbU@WxU@¯¦m°nL„aVblVXal@XKlLVVȄ‚L„KôlnbšI@„V@VJ„I@lVVÞaVkXU"],encodeOffsets:[[120241,36119]]}},{type:"Feature",id:"3712",properties:{name:"莱芜市",cp:[117.6526,36.2714],childNum:1},geometry:{type:"Polygon",coordinates:["@@lmnLVlÈVln@VnIšVlx„Vla²_šJlUUUVƒVw²@@mlIn™lKXU‚UUƒVaUašKUVyUUWVUUaVkUK@l@@mlIUwUWlU@w@aU@@LU@Ubm@¯a@V™@UKWUUKUn@LUbUKmlm@UIkJƒnUKUVmIƒb@b@mWm@Un@VVnnVƒl@„¯@@nVb@`U@Un@Ž™¦@V@VU„VnV@"],encodeOffsets:[[120173,37334]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_xi_1_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6108",properties:{name:"榆林市",cp:[109.8743,38.205],childNum:12},geometry:{type:"Polygon",coordinates:["@@™ýVƒnIW»ƒW@»kUÇL—݃U¯¥ÇIUWWїUWwX¯mƒ@»n@ÜÈķô™@a±kȱƒw„ÑmwçċmU»ÆkkVyIm™ĉÿ@ƒÝ¹ƒWnwÇVš™Åaƒzmmĉ¦ó™kVmx™xU¼VškVm_UlVlk„°IV‚kmJa›¦k™™LmmV@XmKnšlUô›VXbƒbƒ@UaÇLğܙ™Åwƒ£mKnmċwÅ@UkƒbmaVƒƒƒn@m¯aU™Jm_k˜@kWXyl@@kÅamw™LU™Þ™ƒ™mWÅzUKƒš™Uk±@™b@nnK‚bX¤mzVšŽVxÇn„‚¯„@ÒknWƒƒVUbkķÈÑWkk@Va™™U@„mUkbƒÝÅ@Ý¥ÇbkĬ™XV`kLǍVmalUUa™nV±nwmkƒJ@Inƒ°KVw¯UnÅ@¥™ƒ™U±bUU˜±œmWbÛKWnUm`UƒVK@bmnœm‚Èż@V„L@xƒxmš„Ť°nŽ@VmK™²VlšlKk„ô@„êÜV@VXLlmš¦UššV°Ș¯²ÿ@¥š@ƁĊ˜²IšmĶnnb°b„KVƒĸLl„Þ@UȮš™Ü°IVƒÞÝސlŽœx@ŽķĀWŽ„Ux„èƐ@š°ŽXnšlĊĖ°m„nƒšV„²V°ÒƦ„aބ„˜@zll@bÞĀšlš¼nKĊ¼óȂb²±šIǪÒ¯ĖV@„lxnVlk„JlaXwŌĉ„„@VnŽššlÆĕ„UÆLœèŌŤôxȚlUœ@šxlaUċĕXm„IWmnkšVVƒ„VW_@aÈWUUmk@ƒ¯çVm»™±W¯n¥V™mkXw±ÇVwƒ"],encodeOffsets:[[113592,39645]]}},{type:"Feature",id:"6106",properties:{name:"延安市",cp:[109.1052,36.4252],childNum:13},geometry:{type:"Polygon",coordinates:["@@@kkÇmIšmUwVkUƒƒU²WmšVkm@m`mIĢĕUƒVa@™mXƒƒÿVVkyUýšĕ@l_UmnƒW„KVkţ™™¥™aƒwğ@™@aôƒ„ƒWa„kUmƒa¯¯™a±£kx™mmxUwÝ@xmU™b¯K™wó„Ý@kmm¹Ub@lklVbmnnVUV@x›UknƧJUX@ŽƒLÇWkw™LķƧÅwWJk„ƒLkþĉxWz™JUnǚkš@Ɛk¼ÜÔÈKšè@°lșÆk¦l„n@l¼@l¯L™°UU™VÇ°ƒ¹—`m¼mXk‚™bUaƒV@U¯x@¦™Ç™„UUmlmUVm„nnmlkw™@@šƒ¦Å‚ÇLmx¯Iklš„@¦mÆ°VUx¯Lm„@J„InlmxU²šmVbkV‚bUnȎlKU_šWlīÈaÞ¦Æ@„ÞlanV@ƒšVšUbl@XlÇÒĸlŽVa„UX„lm@Ñ°ƒƒÈmUw‚U™nyW£amL@mša²@lšV„™VLÆynX„šÝšVššKnxÆb@lk@WzXŽ@ll—n`šIV‚°b@n„m„„‚Unb„aVlÆ@ČxmnnL„¤ÆxššĠÛÈKVb„@„aWaœU‚ókVm™nL@W‚UnnšKlšœ¥‚bnIlU¯JlƒUkVkn`lUU™V»šwnwlUôšĊ¥nn„yÆb"],encodeOffsets:[[113074,37862]]}},{type:"Feature",id:"6107",properties:{name:"汉中市",cp:[106.886,33.0139],childNum:11},geometry:{type:"Polygon",coordinates:["@@lKnb@n„lWb°bkxĸwVb@ł„nlŽ„ƒĊ¥šL@XŽl™ÈƒVblÈK‚b„akVwôml²`‚nœ@‚nVKœl˜k²xŎƒ°¦VU„JĊw@çnWçރVkUóÛ@¥kwš™šUmƒX¯WšÑkƒ@UymIUwlUn¥‚mUk²a°¯V»@™ÝVș„ÝċÅÅVl»@l@a°±@_kammÅb™a@ƒƒm@ż™KknõĠ—@mšƒ„¯LÅw›‚—LVxmb@¼kV™@mw¯wVakKW»X±¼¯Vkxƒb„¼WŽ@nx@x±bóakbƒ@ÝmU™@ķÓÛL™kƒVUm™k¯¤ÝLUlÝ@Ýz™š„x@x™°™™™bƒmƒX¯aUJW¯—k@bÇWƒwÛwWxƒ@XWlb@Žƒ„VŽÈUlwšLnl°VlUô¦œU°¤VšUxVXUxlbkVVlƒI„°„ÅVlU°m@k„ÇU¯xUlƒLUlVL@b™°ĠInĠ°ÈnK‚„@xÞa²n‚aUyšXUKVkšWô¼Èa‚z°JXUVÇV_„JVƒšz@Žnb"],encodeOffsets:[[109137,34392]]}},{type:"Feature",id:"6109",properties:{name:"安康市",cp:[109.1162,32.7722],childNum:10},geometry:{type:"Polygon",coordinates:["@@„bĊaƨèšwôô„¼šb°ašXVƒÞVUÞ@‚aXƒm¥kImx¯¯ƒV@anU@UÇéğL@ƒ¯¥V£mƒ@ÝÈb„K‚™„X°wČÿ˜ƒ„b@xÈblxȯĊ„„mÆUVƒ„nÈ@ƨÜLĢ¥ƒŹnƒ°Vnn˜K„aô_ȃšwU‚aXmnW‚¯kl›LXƒÇ™ō¦ÝaÅVmbğUn¥±wÅéVƒan¥ƒ„U„»°am¥„£ƒÝ@ƒ„wVw™¥nU„уUmmVwmķIÅaóVWxkblb@ból@œğÒĉ¤ċXƒ˜¯X™xk„Ç@óÆÅx@š™xķ_kmݎǣkblb@`¯²@bk‚‚@k¼ÆUČƃÞǚÞU@šU¼¯°±bVlnm¦kVVxnJVz@‚l„™ÒXW°n„™V™šlx@¦ôÜVUl݄Xèm@è"],encodeOffsets:[[110644,34521]]}},{type:"Feature",id:"6110",properties:{name:"商洛市",cp:[109.8083,33.761],childNum:7},geometry:{type:"Polygon",coordinates:["@@²nl‚ôbš„°aVwnKÞIš`°wšXôw°VĊ°@ŽÅš„ÞÆV„zÞK@xšŽ@a‚LŚ@b@ŽnLlƒ@šln„mnLVw„a„bVƒ‚VnbU¼„Vƒ°„bl„šbÈ@ĶŦb˜@nÇ@amIyUI@ĠVmôƒU™ƒVwkwlanJ„¯lwó¥@an°Jš_„‚@š™nóƒó@£l¥UwmašÑ@ƒUm±V_ƒJ—£›J—UW¥¯@ƒ_k¯¼mUƒVUè¯b@wmL™»ğVmağI¯¤ċIUW™XƒKĵ¦ķaƒJUb™IƒlUóVmk@WÅÅÇ@ƒmU„ÅVƒnĉƒÇ°kwÇa@wƒa—„ċĀ¯xƒWšƒLÇa@Þn„U¤°¦@„ĠKÈê@VmV@b„U°°nwlJn¦W„bÝ@VŽ"],encodeOffsets:[[111454,34628]]}},{type:"Feature",id:"6103",properties:{name:"宝鸡市",cp:[107.1826,34.3433],childNum:10},geometry:{type:"Polygon",coordinates:["@@@ƒ„£@›°Išb@¯°ynŹƒaUƒlƒU£„Umšĵĉ@@ylUÞ@@£kWU¯WaU£¯ÇV¥ƒ@kb¯wƒn™¥ÇkUÇnUƒ@¯±›kULm›@m±_kŽónUxlŽƒbaÇLkŽUaDŽkšW@™Kĉ¦ƒ„kƒm@ŁUaķxlw¯aXaƒk@mmakL@šmšÛŽ@¼m„@l„XV`ƒn™KUš°°@²š¤UÈ@VxmôƒxKl„VV²aVw„Xla„Vlx@UVnŽÇnk°ƒVVL™lkI™šƒJÇk¯V@šknƘn@lznmlVkzVŽ„VVxš@Ux„z@x±¼VxxU„l‚kb˜@„¼Čk˜VXlĠkôV²w‚LUKlwœJ@a‚IV¥Þƒn¯Ün„‚„@nk˜l²kÆ@š°„aVbnI@™š‚Ťn"],encodeOffsets:[[110408,35815]]}},{type:"Feature",id:"6105",properties:{name:"渭南市",cp:[109.7864,35.0299],childNum:11},geometry:{type:"Polygon",coordinates:["@@@ÈôL„xUŽ°„Þ@mŽÈnl¤nUôL‚wX`@ÞÝL™ŽUšmLô„„ŽôbVbnºlnÞ@ôƒšx°LšanV‚wÞ@Vxnwšnlw²¤šb°°„bVnƒlXbƒ„ó„@bš‚Ġ@„xšbš¦ŤšV™Xġ„£W¥ƽɽƒó@ýóƝÝ»„£X™mƅšĊkUƒ„@™™šó„kťaĵŽÇ@™akƒƒa„¯ƒUV»maUU„ƒaƒbUxmKƒnkm@™k„mK@ƒxó@¯n¯KǦ@ôÅèlxkx°nƒƾ¯KU¯WķL@VÝIUb™yWbX¼Ç°"],encodeOffsets:[[111589,35657]]}},{type:"Feature",id:"6104",properties:{name:"咸阳市",cp:[108.4131,34.8706],childNum:14},geometry:{type:"Polygon",coordinates:["@@šIXyĊwlý„KlƒXIVaķƒ™»a›£„¯aVU@a™‚wÈō‚ašL²»‚VœUln°WȯW»XašzVaÞJ@Uƒ»@¯Ýbğwly@£kÑţ±Wу@ka™IUƒƒnƒ@¯ƒómţU™b™U¯lÇIÝb@¤Ý@kV@zĊ@™ĶnƒVV¤k„V„„bmź¯z@°™a¯J@œƒ¤@„„bUx™bƒ„@`™xUÔ±ºVXœW‚„UnUJ‚LĢ¯ÈKlblmÈXŎ°šU„°LšŽlkÞKš@Èxl_°ĶUÒkblš"],encodeOffsets:[[111229,36394]]}},{type:"Feature",id:"6101",properties:{name:"西安市",cp:[109.1162,34.2004],childNum:5},geometry:{type:"Polygon",coordinates:["@@°²@‚„mVVÈÈlš¦„m°xla„@U¦°ÈV¤XbV°lXÞaÈJ°kšVšaŤVôn°„„@„mV„šJlb„@XÒŤ²lÒ@¤kzĠxÞa@°„¼ĸK°XV‚°L„ƽ¯mlwkwÆç@óÈ¥°L°mô@„w@aƙK@b™@wÝLƒyÅUƒÝƙ@ĉ¯¯Uóx™W¯x™_ÝJmLUx¯b™ƒóak±mÝUU„™W¯b™aƒ»óó™xƧçĉbƒaĉxƒIUV¯¥ō„±w—l"],encodeOffsets:[[110206,34532]]}},{type:"Feature",id:"6102",properties:{name:"铜川市",cp:[109.0393,35.1947],childNum:2},geometry:{type:"Polygon",coordinates:["@@ÆxĸƨšKlxÈX„K@VWƨIlmœV@wVUmUnmUalk@kVaUaóaƒóƒnKV™šÞK@ÝW_xóKmVk£ÇmnÝ@¯ƒVƒwóK@ǯXkm›VU±¼™KbÇŎx‚š@bUV°bƒœ¤‚bš¼ĸ„Ub"],encodeOffsets:[[111477,36192]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/shan_xi_2_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"1409",properties:{name:"忻州市",cp:[112.4561,38.8971],childNum:14},geometry:{type:"Polygon",coordinates:["@@Vx@lnbn¦WlnnUšmš°š²VšV‚VVVnUn„ºlz@l„„@Jƒ@kXWVXl@Lƒa@„ƒKUL„ŽlbnKlLnK‚LnKÆXn°šbVV@bUVl°Un@LnaVJUbW@UX²l‚@ČwlVVIšWnkÆa°„„anV‚Kn°™UW¯@™aVUVk@Un@„aV@ValwUanmWU„k@WVUUanaVwnLVl°@nk@mVU@UVK@w„LVKVU@ƒ„K@UUKVUV@@bnL„a‚V„aôšlIXmlKX_°KVV@bVV„@šzV`kblI„V„Ul‚šL@bnV@V„Ċll„„VlIXW@k„a‚U²blKšVnIlJ„albXXlWVn°JnšnL@l@XlJlaX@„X˜W²@l_VmnKšU„blU@mnkVK„¯@U@ƒma@kX¥VƒmakkƒLƒa@aƒ@WIUUVXWWnk@a°a@kkm@kUUmJm@WUUUIk`m@V—kaWWkX™KmƒXk¯ƒ@WKƒLkak@±bƒw@ƒaƒa@akaƒ@ma¯@ƒL—KÇÅkKWbkmġ™±ÅUƒLUK™VVkƒm¯LUVVbƒ„UwUW¯bm„ƒULƒxWJ—@ƒklmkUm@@KnwVkVK@akwƒ@@a¯bƒKkn›VUI™b¯mmbk@UbmKUL@xUUƒ@klmLUŽlVXI‚VVVUVUœU`mLXVWbXnW`Ų°xmŽxU@mĉƒƒwU@mbU@UƒmbkVW¦kJ™@ƒX@`¯Im@UlUVVnb@bWJXnmbƒJUU™UUaƒ@UamIkaƒxƒ@@x@b"],
-encodeOffsets:[[113614,39657]]}},{type:"Feature",id:"1411",properties:{name:"吕梁市",cp:[111.3574,37.7325],childNum:13},geometry:{type:"Polygon",coordinates:["@@@a@w„@„wlbnJVb„@VbšVVV„InaWmXI@a‚aUmVUVkn@°J@_„Wš@lIX¥lUnaV„V@naV@„xĊ„n‚V@‚wn¯wƱX_WmXaWUnKV_V›VUUUUWJkUVnKlk¯™@@kmKUaŁ±KkU@WmI@WUIlUUmVwXƒ‚w@ƒUlUVwœV‚@„Lnb‚W@anU@UšaVkô@l»n@na˜JnUÈLVaƃUUVm„VKVƒ²L@mU_lK@UVWkU‚a@a@U¯aUaƒÑóÑUb™„ƒKk@@aƒk¯mVaUwVƒÑkWUmK@UUKmXUWÝwUa™LUU@aWJUUU@Ua݄U@WL@VKVaVI@WnU@alIVKƒƒ@kIƒmIkJ@™m@ƒ™@@_™K@xƒ@kaW@U„@Vmn@ŽUK@mIƒJUXV¤XXWlkKƒkkK@XmJVakImJU@ó™¯LWKUV@nUVƒLkxmKkLma@kXKmmƒLƒab™LmK@V@mXVÆUxƒX@`nL„aV@@VmLUVnLlLš˜„b@„šŽ°²nx@b‚VUxlb@V¯bUV@zV‚XVĊXVx@lVn@VnnmŽUš@LlJXVƒz¯VWVXbšV@bmn™VUVk„Çþń@XVxmbUlV„Uln„W„@„Xl‚@VLXÒ@bÞJ°¦„L˜ò„@nU‚b@°„X@ŽXbmVU„V„nb@x‚x"],encodeOffsets:[[113614,39657]]}},{type:"Feature",id:"1410",properties:{name:"临汾市",cp:[111.4783,36.1615],childNum:17},geometry:{type:"Polygon",coordinates:["@@nW‚@@UnLšK‚a„b„KnnWL@lnblKnLlw„KVU@mVUXL°KôšV@nIlJUbnI@WlL„llLXkWWU£VW„InJ‚@VL@nm@UVƒX@lb„@@wšL@`‚@„šn@V@lw„@n„VmVX„WmwnUlƒœa@_lK„wVlUn°xVKVXXWlUšVVI@K@K„n°KœwlVlU@kna@V_„Wn‚m„UVm@kXml_@m„LlKXw°m@_ôJVUV@X™l@UaV@Va°I„lk»VwUkVmwUmmVn@V¯@KƒU—wmK@U¯wUVÝ@mJƒU—nWK™@@UnKVa„_lykUmKÛnm@™x@ƒUUlwVk™ƒXW@ƒa@Uƒ@@K@ƒkIV™nammVakUlƒ@wX@@kƒ™¯@ƒVVbml@„„°UbULmlVbnbÅK±VƒKVXUJWa@ULWaUU@@U@aWK@UkxUKƒLUUUJ±UkL@V±kk@kam@UV@l@LWl@n@VVUx„LlUUx@VUV™U@aƒIUl™L@°mLU‚ƒbkUUaWUUaUU@aWK—LWJ@bUL@VUVVbU@m@a@kmKmnĉlUK™XƒWUblb—xmIkƒƒU@xWb@lkšVx™LXŽmzVV@bklVVUzm˜@bk„@Vx@xlŽU„@lUbVnl@„Wxnl@n@ŽUbV„mL‚mƒb@`X@lUX@@xlnkLWaUJnnWV™Vn@l„@bULVV@l™V@XnJVX"],encodeOffsets:[[113063,37784]]}},{type:"Feature",id:"1407",properties:{name:"晋中市",cp:[112.7747,37.37],childNum:11},geometry:{type:"Polygon",coordinates:["@@@šlInJ„lJ„@‚„ULkJ@bmV@XUJUb‚L@UXKV@ރVbV@VVXI@bVVšKVbÞxVXnWVL@VnLV‚lX„ÒUŽVxUb°n„l@bl@„LšƒVaô҄ÒVb°b@VnLnnV@lmn@lb„U„V@„‚JœUVV‚Xkl@lUzmJ@xšXkl‚bUn„JVšUb„nU‚lb„V@nlLX@lakšV`Ub°š@XVJnU‚L²KlxnI@KV@lbUbVV„KnVl@„zlm@Uš@nŽšI@WUaVl@@mVU„@XkW@ƒnkVKVƒ„_Vw„y@knwVa‚@XalU„@šVnml@„X@V„L‚KVaÞbnnlJšI„mVKn„VVVInVlU„@„m@™mXK@UmyUI@mWUUakamw@wUwmLkakwVƒmK™w@wUam£y@am_ƒW@™UU@knmm„amU@WUa@knw@ƒUUUUV@nƒJm@mVUkKVUUUkKmwƒKULƒKUImV@lUn™nŽm@mbUK@°™bUnmbUmkkƒWUb@am@UXkK@a±@™V™@ĉř„V‚UXVxUVkLWl¯@@bULUlm@@nm`—XƒlWakIkm›VUbUL@Vm@kIƒ@@Kšm@—VaX‚I@W@aU@kUƒVU_™KƒbƒJkkǎ™b@nkKmL™wÅW@kVUUƒVU@WUIƒJmIXmma@_kyVaUUlkUm@ƒkU›x¯Lƒm@L@LUJ™UkVWXUWUL¯wVmUkƒxkL@`›bk„mVnxƒXUWUnmƒƒ@kxU@"],encodeOffsets:[[114087,37682]]}},{type:"Feature",id:"1408",properties:{name:"运城市",cp:[111.1487,35.2002],childNum:13},geometry:{type:"Polygon",coordinates:["@@„Vl„nJ˜wkaVa„XšWVLĊknmnL‚l@@bn‚V@UaVU@UVK@aXI˜KXL@bVVVbXVVblV„aVnK@¯šKVk„J@bšVVU@UVwkVƒKVwUUm@@Xk@K@kVUn@lbl@²l@UlK²VVIVV„KVLlw@VXL@b@VV@VŽXbVK‚@XbVIUW„L‚U²ÆLmaUankVKVaƒ¯@ƒnkUa„U°@„š‚n@@kWa„UVaXUW@IXKVw@U™ƒ„™WU@W@@UUƒU@mn@ƒ`m@UUULkUmJ™IUƒ@@UƒK@U@›anƒ™ak_@wmKUwmakV™kmK™V™k¯b™wƒ`kwUIÇx¯»ÇaŃmn@@™mƒmUkV@wkKW@kxmL™UkĉLÝk™xÝw¯lóVU„mV@ĀVVX¦W¤kz@`Vx°„²ĸ‚š@„Ul@x„êĸNJ°¤V„VlXLWnXxmV@nUl@„"],encodeOffsets:[[113232,36597]]}},{type:"Feature",id:"1402",properties:{name:"大同市",cp:[113.7854,39.8035],childNum:8},geometry:{type:"Polygon",coordinates:["@@²£šyl@Ȑ˜Ė@bĸŽĢbĸ„˜X„a‚KŤnn@ŎôllÈx„nVnÞDŽV@b‚nXllL°KšbVb@J@b—„‚„@ŽU„„xlKXLlKlXk„@Ulk„JlkUƒVKXUƒÇVIVm@_nǚLšašl‚w„VnU@UUwma@aƒaÝaLmUk@@Wƒ@U@@X™wVWÝUUUk@@VmLƒKV»nwUw™aUL@`mzƒJUIVƒUaUw™KUaVIlJôanÑlLVUn@ša„@VV„@@UUwVK°Vn_lJÆLœéW@UUUÅ@»lm@aÞIVwXW˜UUkkm@U@aƒU@mwU£VWU_kWmƒXwW_°yUkkK@UÇK@kkUVymóK—U@KWIƒbUak@mJ@bkbmLkŽ™UmƒkVU„W¦@lnb@„@Vƒ°ULml@nkVƒa™VmLUnk`±@—XƒWW@kbǦXŽ¯„WxI@xmbmxXlWV„„@bŎUz@J‚b@bÞb™ŽU@Wbk@ƒxk@WX¯VۙƒWÝbÝUkVUU@alI@a@akLWa™m@U¯UUmÇL@K@aU@¯VUkƒKmX@`@œkJ@nV‚Ub@lbVÆXVW„ULU`VbkLUV@XWl@bXJ˜@VbV@Vl"],encodeOffsets:[[115335,41209]]}},{type:"Feature",id:"1404",properties:{name:"长治市",cp:[112.8625,36.4746],childNum:12},geometry:{type:"Polygon",coordinates:["@@Uk™Lky@I‚JVa@mÞaWšy@_W@_WƒXVlUVwš@nw°K@m„UƒVaƒmVkU@mmmnLVUmKXa™U@IlKVUnK@UmWkX@WV_Vƒ@akU@a„KWIXyƒIUVmUn™Ua@WaXUVKVmkUWVkUƒLU@@VƒbƒKbƒIUmƒ@mbVL—x›WUUkn±V¯wƒbÅJUbmLkbmKÅKƒbVnUbƒV™KUb™KUbmLKmƒb™aƒKkUm@UŽnn‚VnxUVlUxl¼ƒk¯JUbU@Vbk@WšU@UVóI@`¯nWxkLƒK@nk`Wn@lUnƒVnm‚ƒXU`@mb@lkV@„VnklVVUblz@`nbWnnJ„IVJ@XUVV„UV@lÆXšxnKlL@mšaȍll„I„ašLV`„UlVV@@b@XJWUb@˜™n@L„@lJn@@UVKVaœUlnlJXb„k˜Wn_@mn@VkVK@a°@XklKVUUwVWUšƒĊƚ@šU²@@blLVWn@@bVa„XllVnnaVmša@¯VLnan@‚šmVm@knUVJ"],encodeOffsets:[[116269,37637]]}},{type:"Feature",id:"1406",properties:{name:"朔州市",cp:[113.0713,39.6991],childNum:5},geometry:{type:"Polygon",coordinates:["@@XXWVXVWnnlnn@èƼ@„„xlš„ŽV„nblšššVŽÈUVl‚š@„blnœL܃ĊmUkU@Ua‚—@WI@aXk@WVUlKUaV_VKXƒWUUÅka@VaU@mlI@›@_nW„LVl°UV@@b@LÈKVn°V@VšnXblK@b@bkJ@bVVlUÞVÞa„Xܚ°UXWl@„wl@XaV@šÝa@aa@IVyƍ@aƒƒXUWknwna@w‚JXw°ƒWÈ¥kI@W@kmKm™¯IUmkXWWkaƒbkImJ™UkL±aVƒb@lWXkJƒUkƒĉkƒ@UmU@a™KkƒVƒUkJlaU_™yƒ@UU@aUU¯LW`kLWnkJó™ƒbUƒbmK@aU@UVVL@VƒL@„UVULƒK@xUL@VUV@nml¯@UkmKUxmbVbUV@XƒlXVmnVbkxUbU@ƒbm@@VUlUVšb°@VX¯šm‚"],encodeOffsets:[[114615,40562]]}},{type:"Feature",id:"1405",properties:{name:"晋城市",cp:[112.7856,35.6342],childNum:6},geometry:{type:"Polygon",coordinates:["@@lV„Lšb„an‚LnKVašLVašL„UVaUm„aÆLnLlanKVaÆI„a°x²UlmVVœX˜wUKna„@Vn„J‚a„L„a@UV@@alUkKVKnkmmVwUk„w@ƒ™@kxWUXƒW@@mƒk@aUa@a¯aƒLkKmwkUm@kL@K@aWIXmƒVƒXƒWkUVakL@UVKƒw@aUK@UUKmLU@¯n™KUwVƒUIWJUWmka™@UXƒJƒk@UkmW@kLWKVƒx@bmI@VUaVU@a¯@UUmVKmX@±`kÝKVxUL±akL@V™bƒLkKmVƒ@XWVUbƒVXb@lm@@lW@@xk„lVUbnnmbUšlJ@„@L„@@V„b@‚WXš„UlkxVV@„šwn@ÜmnLlVkzƒ`UbmL@Vš@XL˜m„VnIÞ@VU°x@VnL˜x„V@LU°"],encodeOffsets:[[115223,36895]]}},{type:"Feature",id:"1401",properties:{name:"太原市",cp:[112.3352,37.9413],childNum:5},geometry:{type:"Polygon",coordinates:["@@„@VV@wVKnLVal@na°nšaVJœUlm„L°a@b„@lx@bULUlmx@Ln@lVkn„l˜@XI„w‚K„Vnƒ°aVXVx„ƒUaVU°K„nUlšUVL„KÆVš²Ģ‚lnXalLÈƘL„KUaVkUanmWU™a@WwkUWU¯y¯Ñ@anIl@@aVU„m„I„ymUƒLUUVakaU@@LmJkw±LKmVUI@W¯™VaU_l™kbW@kK@mƒUkaVƒmVaU™ƒIVmalk™W@wnIVy@klkWUU›VI@ƒƒUƒVkam@knU@mmmK@bblVUX@VkLV`@n±KU„ULƒ‚UnVVńUbÇKmV—Imbm@k¼ó@Ul™b@VmV@bXmaƒK@›UUxkV‚V@„xW„UxVnkVVJ@XnJ@XlV²LƂVbnL@lš@°"],encodeOffsets:[[114503,39134]]}},{type:"Feature",id:"1403",properties:{name:"阳泉市",cp:[113.4778,38.0951],childNum:3},geometry:{type:"Polygon",coordinates:["@@°@nb„@lb@b„b„b‚@„x²al@lb„KXU@m‚kUWkkmUUƒVwV@XUW@™naVklKXblKnL‚ƒnLVanImaXKlL„ašV@U@KUKW„alƒXK@£WKXUV@VU„ƒUUVW„_V™@W@@K„@šƒUƒƒIWmXUmƒULƒn™JkImmÝaUbLƒK@UƒWk@mn™Uƒ@kVWb@Ubmx@lƒzUxƒ`U„ULml@„XWlƒ@UV@nk@U‚Vb@X™Jm™@@Vknƒyk@ƒzƒJƒnUV@bk@mJ@b°Ò°zXVlVXx‚@šbXVmnVbUlVb"],encodeOffsets:[[115864,39336]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/si_chuan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5133",properties:{name:"甘孜藏族自治州",cp:[99.9207,31.0803],childNum:18},geometry:{type:"Polygon",coordinates:["@@ƒaXamƒ¯wm@±°wUwV@UaVw²Kš™„U@UƒU„¥‚a„ƒ@£Þ™ôx‚Knkm™X¥™IUƒÝUwlk°V„@ƒÈ™‚KUwlkUyV¹„mšx²Xll„ÑW»š„l„w°UŎ„nƒ„„˜Jœƒl¯°V@wôIVÇn™nUllšLšVǚLô¼XW£@±„@¥k_ÇJƒkUéƒkšƒƒwXa@ƒšLlw²™Vx„b‚mš¼ÈxlLȃ„VWÞn¯mǙÑUÝlÛkwlĉmƒULmwUJ™ç@wkm@ÑlUX™ƒÑôġƒVa™ƒUф¯@wķÓkbV„mnU@@y¯IķKƒV@¹šaƒé@k„mÞU°¥@a¯@anKlblU„¥@óğç@Çw@wkla„çݱk¯±@ğÝUÛmݯwƒ@kb±¯akXWÜkXUÆÇUš¤X_Ɛw„V@¤ƒXU‚ƒbUƒŽƒIUlÇUkŽġ@™aXČmlUlèUV@„mVk¦Vxš@¦±š¯ƒƒ¯¯anlWš¯nƒƒÅw@w°KVak£m@klƒKknÇU™»óKšīlaUaV£@™™¯@ƙU™VƒÛÝÇXƒÇl—ÓlŹ„»WUğJ¯£mx™Lĵô›ºX„VlUll²bl„„lŽƒxónn°ÝšU¼mJUš¯nƒƒƒV@êĉ°Uĸ™w™@mƒ@¯kmXamѯaUwÝKU¥„mÅn¥Wmn™ƒ¹n±ƑƆÇôXê±NJnšƒ‚UôlĖkȂVÒ¯¼VnƒȮ¯ĀnƆ˜Ģ@Žk°V°¯ĢVlkšVxm¼X²™Ŏ@ŽVxknWÜ°U‚¯n™Æݜ@`„ôݲÒƒ‚Çzn‚mX@x„è°K°Å„UČĬóĖ݄ƒ˜ó¼ÅêƒÒƒbmšk@V„Ž˜„@ҁl@nĉܛê—x@Ėml՛J¯¦óxȭ°ÝmŽ¯Lĵè›Ā@Ɓ„l°żƒ‚šX@xmŽkV@z@‚„°blŽnÞ°J@bn@ƼUVƒUóŽóLƒ°X°ÝLƒxUn„°ƒĬƒn@lnL@ŽÆ@šn„KÆxnUnV˜InĬmÆnxŎ¼ĊIĢóÞ@ĊƒƨbUƒ‚mV¥lkƒ‚wnL„mšÅÆ¥Xƒ˜wU@w‚wUÞ™@alUUŚU™Vkkm°aU—°Ó°w°U„ƒ„b°aš²K˜¯œĕ˜@ÈbޏĊaš»„XVm°In„‚Ĭk¼Vb„ašJšôš£VĊan™‚k„ů™™nƒÜU@anKnĮ‚bÈmƎš»nI‚霣Ġ™"],encodeOffsets:[[103073,33295]]}},{type:"Feature",id:"5132",properties:{name:"阿坝藏族羌族自治州",cp:[102.4805,32.4536],childNum:13},geometry:{type:"Polygon",coordinates:["@@l@@þ²I@lƒ„VL°wnJ°Uĸ™Ŏè„Ilw„V°¤nĮ™¤Ý„lè„L@„ƒ„@x„l™è²ôĊ_ĊġVÈôJżīlbXšÆÈVŽkxÇVƒ„n°„¦Üb@è@nn@@°šUÈ¥WDŽ_Uala¯¯UǙkƒ»„mVwk»˜k²°VxlL@¤œ_@x‚`ȍ‚Ėöb˜š@l²alX„a@bnK°¦VK@nnWmx@nUnl@@lƒlĉk°l°UXkmW@Unš`k„ÇL„ŽW„ÛÈVxšVVlVk@l„IXb@ylXÈW˜Į„WŤzœy@šmIƒŽ²šJ‚š@nŽ°@V„„J°a„Å@ƒŎkVǚk™aUw„KVw™™Vƒ„@nkm™@±ôkô™ĊJš¼šInÑm±nIššÞ‚XȃĊxĊUÈbÜyÈ£Vkw@kVUV™„m@ša„»ÜbÈmƒUXwÝxƒUn¥@°ġ™Å‚aœJVk™aW¯Û@W¥—UŏĶ™@¯kUƒŃ@ašI@mmanwސ‚W@œ™mw°»Uřk¹±W„xVx¯¦U°ƒzţW™w@°ÇVÑk¯@„y°aš£š@šmšnl¼„ašÝÝakwUƒ±aĉImlĵn@ƒm@kkVƒ¯Ñm™ĸ™°x„l™œ@˜ƒXVÞmlÛݙĉUÅ¥mwÅ¥VaUw›™XġċaVůÛŹlwU¯U™ó±™xÛV±¯¯n¯mċƒLmnĊm‚™@™_kJWaXmwUƒĉK™»™@mwX݃UDŽkKÇw™»nƒaUw±škx™K@„Wb„x™„„lVê„lÈIl`@¦ƒŽ@²X¤Wó»™KUșŽ™KkkmVmšUÈóJ@x¯Uk°›„—Iƒƒm„ōƒ¯Vƒxƒk™ŽX¼ƒÒkk±W™wƒnUºVzklVxLǚ@„ƒŽ¯UklVxސV„šJW¦nšmlLówݚ@¤ƒ„bƒ¦„V@VƒV™š±LUxVbU@Vx¯x@²n‚°xn„Wb„b"],encodeOffsets:[[103073,33295]]}},{type:"Feature",id:"5134",properties:{name:"凉山彝族自治州",cp:[101.9641,27.6746],childNum:17},geometry:{type:"Polygon",coordinates:["@@ĶóšKnw°¤ĠIXVƒ¼kź˜Ôk‚„ÈWŽÞȄÜUVšÅš°@šš‚@U¤Vbkb™ĬôLš¼ÈVlm„Llkn@l¤Ub¯L@xÆx„„°mX™mk°b„°°„²™@¥‚™Uwl¥nU@ƒVUkçVnkWċšbĢ@lÈVVk„J„‚V„aV„W@£ƒUƏxW`™£ÈVVÅlWXÛlW°b²la„@°xnÞVÜĠÞ²@l°Þ²ƒèkblŽ@xÈx@Ġènal£nU‚Dz@‚ÞK„nn¤@¼˜°U¼„nV‚šXU‚šbn™ĠUVbUlVš°LX„@lV„èÜUnK@_ƒyXVyUwmIU»Vƒ„kÇ¥šÿkkV¯m±n@ƒn¯ÜanVVƄz@Ž‚bœwÜb„m@wša@kƒmk»@™a@VUUó„w˜@nb°mš„XŽmnVbގVôanwšJ‚ak£lw„˜šLšÅnÝ@wl¥IÇӃ@U™™Lƒ¼kVǃÅó¯kVmmw@ƒn_‚Vn»°LÅ»@éÇçŹīVÇÝ@ÝğU™ƒaVݙ™š¯ķlŭġlƒ@óÞۂċ@¯nkUӄ—m±™IVġUwóKUn±¯—K›w»ƒKݐV„nl@„óxUwţ›£ĉƒUmŗÇ݃K™„ÝUlmKƒ£UVŽ@ÞȎW¦„Ò@Ĭšnny‚@nÒmœVŽ—¼@°Vbl@VlnUUwl™°a@„œ„@llnk°lbnKWĀnŽU„VxUŽ‚²Å‚m¦Û›ÇŚƒaU„Vbš@¦m`móX™Umm™xÅ@±Þn虲™U¯»m™ƒV—m@wƒU@wݚÝmLƒa@„™VÇUk„l°¯„VlkVƒ¦UšmxƒaULUèVx@„kIUxmWV¼¯VmȯšU„nl›È—@m»Å™ƒVWxÅbÅğW@kƒm@kVV¦mlnn@‚ō„l¦Åƙxkœ"],encodeOffsets:[[102466,28756]]}},{type:"Feature",id:"5107",properties:{name:"绵阳市",cp:[104.7327,31.8713],childNum:8},geometry:{type:"Polygon",coordinates:["@@„ńlV°š@Őĵ˜VX»ÆUĊќJ‚w„@È»m»š£°Kšk@ÇnÑƍš@„w°JUwnw@wšbVbš@VlźLUw„aƒ»„aUklyUUVakwWXwWƒUxkLƒmn¥mšwk™˜UX™lJ„w@aƒIk°X„¥Wƒ²l¥šaU™„IlmkklƒÈL@m°nlWU™aW—š@Vƒ„@UaV¥@ašk@Çk¹ƒK@a™K@kƒKkšÇX@VU@kx±V™èkIWwUVUkkKÇ@ƒa@wkml¯@kUWn£Wa„aVwnaV݃w¯@UaWx—n›JńUxUšma@L@„mbUŽU±VVnkxUƙ„VŽm@kkKW°„X@¤ÇUkÆÇnU¦¯ŽkƒmLVwÅK@UóbÇƁVƒ¦™L@‚±êX¦mVޚkÜÝnWU—„›@kšƒŽ¯wķšnš°ÒU„lln@@„ĶmnkĊJ²bV„lxÞb™Þƒbk»™m™n™@™¤¯bƒz@Žl°UÒ¯È@ŽšxŤX„yV¯°¥Uwƒw²XlºVŚ¯¼nx›š@ŽXݏmxnb@n™J@b"],encodeOffsets:[[106448,33694]]}},{type:"Feature",id:"5117",properties:{name:"达州市",cp:[107.6111,31.333],childNum:7},geometry:{type:"Polygon",coordinates:["@@Uxn°‚bnŽlUnÒƃnn@n‚¤„LnxlU„ššV@„Æl„x°XXxl`XœƒVW‚œL˜è—„±nÈbƒŽ°b@š²x°Kܼ°ĉ„V¦lJnU@¦šÞ‚JÞğ„mšLÞ»šxU„lb„VÆann„alŽ„VƍX@lnŎV„mU™maÅXƒa@aWmœ@‚£@wĉJVƒkk‚kkmƒnk@ƒmna@šal„Kš™‚J@Þwm‚ÅŃ@ambkUƒƒ@™™KUġKU@m‚ak¯±ƒ„a@aĉÑÅaVwšXlwƒ±—V¥l@@a™kƒ›@@£šmƒĉÝónWV@ŽnÝÇÇx—UmbƒaVkkk@m„@m°ƒÝýXm›akÅīƒ@@ƒmb@@xmšnbƒ@mxšŽkWL@ƒ¯b@WUXmWœWKkbm@kx™Xmm@LUl„xlêóK™nUš„all™LƒlLó°m¯JVšU„K„„@x˜K²Āô¦l°"],encodeOffsets:[[109519,31917]]}},{type:"Feature",id:"5108",properties:{name:"广元市",cp:[105.6885,32.2284],childNum:5},geometry:{type:"Polygon",coordinates:["@@ÆL„Ċx°»Ŧ¦˜W„™šLȄ@xÞKÜ°ÞnVxÅĀlÒnJ°a@w„V¯l@XWknKnw˜VȚ°XXa˜lX°VI°b„W„nšaššš¥@ƒw°™n@šyÆ@nkÞ@°¯lJn„°IÈl‚UšlXÅ@ķlUV¥VUUÝޙUUƒ@UwƒJUkĉm@ýƒƒlk™WUwVwWJk@VUK™lUkaVƒUƒmLk„m@ƒƒ@Uƒ›Ik`@„™UmlUkV¯ÇXKÝ_mm¯@Uƒ`kwmƒl¼±KV¯—¯Vk±Vk±kzma™KUnDZ™bk¦±ŽX„ƒ¦¯Wl„J@bƒxkIWš—Vlš™xnŽm¦„nlKVwX„WxXŽlxUbVVkzVlƒb„¼ƒbVxŹKUk™@Ua™a@xmxVx¯Iƒx™@ŎmÒ@șl¯L™¤n¼"],encodeOffsets:[[107146,33452]]}},{type:"Feature",id:"5118",properties:{name:"雅安市",cp:[102.6672,29.8938],childNum:8},geometry:{type:"Polygon",coordinates:["@@ln@xšèVInxVKn„‚ĊklxkÜVޚÒnÈm°nxš@š¼ĊLV„nx‚WXblIš`š@nmĉn‚KȄôÅlUÑmU„K²¹@ÇÅVÓůVýÞW„‚UVmX„ÆbnwšKUÿ‚™@UmmIUb¯¥Uwƒ™¯™Çmš™„çmanUm»UUƒl—kƒ¤ƒa¯bV™U_WĕmÇŚ±ĢUlƒUl™ÛVƒçkUƒ@WŽ¯KU™VkUağVmš™aV™WUƒmV»—¯@»m£ƒmÝLŽ±@ÈmVk¤mb@ôƒ¦kVkamL@b°‚@b¯¦ÝVƒn@l„ê™b@º„UĸL°J@zV@nmUƒlaĸÔ@xƒ°VҚ„Ub„‚óĢ„ÒWškV@Ò"],encodeOffsets:[[104727,30797]]}},{type:"Feature",id:"5115",properties:{name:"宜宾市",cp:[104.6558,28.548],childNum:10},geometry:{type:"Polygon",coordinates:["@@VlÈnl‚XnWLX`m„²nV‚@b°xĢçlnšVm‚nn„@@„°‚UzšlV°nޘÒkxl„w„`UnVb„mšL@albÞKÈۚmܼ°@Xǚ@wmW@ńKĊL„lV„šLVŎçÞL²±‚ğkw@Uƒy@¹lKX™lKVa@w™™Č@‚w@a˜ÇU¯n™@@wġak—™aō‚ƒƒK@Å»VakUWmķwkbğ¥mL™akš™@ġރ°¯xVVÞ@VšxVš—VWx„XlxU‚™@k²WVŃULmèULVĊklĠ„VœJVx±nŃ¯¦mwğ@mƒƒlğkkl±@kšUk@¯±Ç™Kƒ—kxl¤b™Imx"],encodeOffsets:[[106099,29279]]}},{type:"Feature",id:"5111",properties:{name:"乐山市",cp:[103.5791,29.1742],childNum:9},geometry:{type:"Polygon",coordinates:["@@kšVŽk„ššÆkšV²UlºÈIlxƒLXèÜlU„„XU‚mkƒbVè„x°@„@¼°Knnn@m˜ÆIUbnJ@bVI°b°±@nK@mVakkƒKl¯nbšmĸ„èl@VnÈl‚UUw„wmwnm°¥„L„™lLnU@Va™ImbkƒmK„ƒƒnk@mƒb™ƒƒLV„JVUUƒ„VnkVmb@a¯JUaÆkk¥„IW¥„Klw—ÑmÝU¯™kVy¯@ƒƒ@mmn™Ukmġè¯w@aU±mnƒW_XKWmkÇmUkóbUÝUanmW™ƒ¯nma—@ƒxVôUV@šb@‚l¼„n@l™b@xƒnÛa›xa@ƒyUÅmUÛbm°@„m‚n²U°ll™ĀȦƒlU„V¼nJVxUz‚W„z@`mL"],encodeOffsets:[[105480,29993]]}},{type:"Feature",id:"5113",properties:{name:"南充市",cp:[106.2048,31.1517],childNum:7},geometry:{type:"Polygon",coordinates:["@@ȲVmšLnblyl²²UUl˜°U°²L‚»„knlx„_VŽ°@nnÞ`WL°ÈUŽVlnkšV@ƒl_œJV„‚@„„n@lƒnKV£™Çšƒ„UV¯šm„@laX˜U„‚UbVx„@VkôJU°Jn™@™‚wUk°wnUƒV_nJmknmm¯Vwk¯ó¥±ÿ—L@wƒƒƒLVU™kU›bX¯mykI@a±Kk¦ULmaXƒƒVm¯ƒK—z±ƒklUIVbÇJšƒkL¯™l™ƒU™ÿ™UƒlUkJƒUmŽUUkVVklKk@@a™U@„™J„²ƒxƒ¦kĬ@¼±ºXnWb—xƒU@xƒx@lšL@b„Llº@șl@bU¦Vbƒ@U„™@X˜‚bVškX¯m@nÇKk„llknƒJVš"],encodeOffsets:[[107989,32282]]}},{type:"Feature",id:"5119",properties:{name:"巴中市",cp:[107.0618,31.9977],childNum:4},geometry:{type:"Polygon",coordinates:["@@V„U„lbkVšŽVLUŽl@XI‚ŽUxVxšXkl„„@þĊnVl„IVx„@VVݚVÞUVU¦kV@ĸWÆô²š@VÞnš@Vaôb²W@‚K@XUmÑUW°¯°Ina@y„_lWn¼lLUbô¼„Kla@™nkUyô—Æx°@šn£™Ý@¥mVkIU¥Ċƒ‚¯Û»¯L±w@™¯a„Ça²m˜ƒ—ç›KX„UW›k_Ww¯WƒwÅk@ƒ™Uƒ™kVmwƒK£@mmmńmÑkVmamnnlmIU`V„m¯xVlx@šmš¯IV‚óIUlƒ@UwVaƒ—VW‚kbƒ@™nU°ƒV™„šÈU¤"],encodeOffsets:[[108957,32569]]}},{type:"Feature",id:"5105",properties:{name:"泸州市",cp:[105.4578,28.493],childNum:5},geometry:{type:"Polygon",coordinates:["@@VVXwVKn„˜wnVƒn„l@b¯xmKUbVn°°X°@blLšènV„@Vn‚l@U„LnmmUna„VV_ĶV@wnJ„„l@@kkKVólaUwnJm„wUlm@ašUaôKVnJWbޚ@VšwVLX¥VVš_Þ`šw„WƒÞŹmmnIn¥Wƒ@k„WV¯@ƒ°kI™ŽƒLk¼Ç@k¤±Xk˜™nmݯUlÅÛKWV¯kƒlUwkLƒÓ™@U—@ƒ‚w@ġXV„˜WX„š@UbVbšV›š_kÇV™lU°lnwŎ¦ÞaƯnmm¯šU„™m¥nkVmkƒl_ó¥¯UÇl¯@™ƒ™L™kƒ`¯ķLUy¯@mw—¼ķ°ġ_řU°mlšnÇVUޚ„@‚ƒš_ƒJUnV‚UXšbl˜Ģb@x@mšV°—È‚b@‚xċ@šš@xUbkLWškL@º„zV‚@lxĠ±²"],encodeOffsets:[[107674,29639]]}},{type:"Feature",id:"5101",properties:{name:"成都市",cp:[103.9526,30.7617],childNum:11},geometry:{type:"Polygon",coordinates:["@@°n°m²°ÜUšw²ŽôVš°ŽVkxÜźUŰČb‚ŽĢlaÈL„»ƒ@k„wVǂ@„ƒnÛƻșUÝ°Kl_„V°Uš`Vbn@VbÈLšaVU@ƨ»V™nIl™šUUa„±lIk±š@VnKmÅ@WaƒK¦™lVōškK™Ý@maXÇmw¯IU‚@kƒVƒwUmVIƒƒƒç—ÿƒU±ŽÅ@¯È@xƒK@wƒLUbÇKō@mÝ£@yóUóóUxkI@WlIUaƒbƒaŽVĀ™LmxÅaWƒUnVƒÝXUþÆ°UÔÈÆ@±ºƒLnVVÒkóÆ"],encodeOffsets:[[105492,31534]]}},{type:"Feature",id:"5120",properties:{name:"资阳市",cp:[104.9744,30.1575],childNum:4},geometry:{type:"Polygon",coordinates:["@@„è„„UJVn„x„U@lV°JnxWÈnbÞ@šŽlLŎ™Ušk‚¥„LXbÆ@nŽmLU‚@zlbXmlnVynL„çšJVb‚UnómUnamU„an¥lKV_²aValWô„n@nƒ‚bVœK°¯VblW@kkƒlUnlV£°W@w„UXk°KVwƒmVkwVyVI@wkmƒVÅ_Umm@Uÿmbk£™xUaVw±V¼V¤kLWxU@Uk™bƒyƒXšómƒ°V@@zÝÒkKƒn™±U@@_VVkƒÇaVwnLWalm@@kkVVl™¦kIV`±n@w„Kƒƒk²™aƒVUUV¤™nkxmUkVWVnLUbVbƒ`kUU„mLU‚mX@`ÅbǚXbWLXŽ›n"],encodeOffsets:[[106695,31062]]}},{type:"Feature",id:"5104",properties:{name:"攀枝花市",cp:[101.6895,26.7133],childNum:3},geometry:{type:"Polygon",coordinates:["@@„b‚KÞnޙ@x„V@x˜n„Unš°¼šVš±mç²ÝÆ@šwnnšVWŽnôn_@¥‚™UaVƒ„bƙœÈ܎n¥Æ±VUwVƒmXÿmLkal¯km@k›ƒ@ƒ¯bkšVxmVUkk@Ua@¯˜»Un›mс@mz™m@īƒÑX¥Ç@ݙxU¦ƒšÅŽÇUkx@šlb„UWVX„mV@xĵĖ±@@Ž¯xUšÆLnÆm„šx@nXL±lUUVwKWak@WxkbšÞƒŽĉbUn@‚ƒ@@xó¦„Ŏ"],encodeOffsets:[[103602,27816]]}},{type:"Feature",id:"5114",properties:{name:"眉山市",cp:[103.8098,30.0146],childNum:6},geometry:{type:"Polygon",coordinates:["@@„šVx°¦VanJVnš@„b„aVbkJ@XlJVwôôôV@zÞ¤@nƎÈLVa„K@x„L@w°ÇÆ@²„V˜ĀœmWXKWașÆa@_nWVnKVƒlV„_UaVamKXUWwnmmwœÑm£@ynUƒkWƒĉUkWVkkV±çkJmkKƒšƒK¯¦mnnxƒxVxVÇkUmk@ƒçķ™nmak°„LllUb@nmL@‚¯²¯aUJ@amIVaÅJn—m@mm¯L@»ƒŽ¯@ƒwUç„anlVƒWVƒÛkWç„KkwÇJk¹±V™UÅl™™ġV™²ÈƂnXĖV`Uš°a„b„£˜l„kVVn¼mVnbƒè™šÈn°š"],encodeOffsets:[[105683,30685]]}},{type:"Feature",id:"5116",properties:{name:"广安市",cp:[106.6333,30.4376],childNum:5},geometry:{type:"Polygon",coordinates:["@@„VlIV‚„kšVšĀ„Vkš°šlK™„ÈIUaVJlk²„˜y„Ln°„UW„nbVKl¥²L@blJnzW°œalV°Inô¯‚K„kšKkkƒbV™šmôLkéƒwVk@KnnšWlwn@laXL›ŽnXVW@X°a@„XKl™nw„@man™@w‚@na@„„@ƒw™ĕġġ™wUkUWb@mk@™¦ƒ¥mUÛb±yÅn@bml@kV@„ƒlknVbmVnlmš—bÇk¯bWyk@V_UamJ@I—@WaƒVXamIVWkUkbVaƒUUxƒ@VnkVU¼›bkKUxmK™„@WšƒxnV@n"],encodeOffsets:[[108518,31208]]}},{type:"Feature",id:"5106",properties:{name:"德阳市",cp:[104.48,31.1133],childNum:6},geometry:{type:"Polygon",coordinates:["@@nUW¥²é@šK„¥‚UÈÅôa@VÆLUxnKl„°V¥ÈmlÅÈV@£ƒWX¯lLln@UšƒVÅlwUm²U‚VVna@ƒ@KnbV™VwƃœI˜mXwWƒkIVwÝĕVUa™IƒèmKUzkmWnka@y™@l²kJƒ²Vb™VkšmJUšƧ¼@UV™bÇKUam@Ua™_¯VƒUk`¯LVÞǚżm܃„@Uȃx@l„ƒ¼ÇKkbWŽœšVxUbƦnxƦĊV"],encodeOffsets:[[106594,32457]]}},{type:"Feature",id:"5110",properties:{name:"内江市",cp:[104.8535,29.6136],childNum:4},geometry:{type:"Polygon",coordinates:["@@²èlUUllXĊVX„„lmV@zn¤›ÒnxmnXxlUnVlwšmU£VV„Ušbl±„„ƒL@x²mU_lJš¥UklU@ln@‚kXbmKUxÈbl„UU@`V@š²„mlLÞÑ@yU@„¯ôn‚™„W„zšaVlV@XwlKU£‚»—aVaUwm@mwUVUwkƒlVDzLlƒ„KV™m_@ykUmƒ@mU™çkKmxkIU‚Ý„@LUJ@n±„kº‚LXb™¼@mmIXa™@mamnkW™ƒKUƒƒxƒ_U`UklwUw™mUbƒV™²ƒakbƒmkn@`„UmҙšVxUb™I™`UƒaÝÈ"],encodeOffsets:[[106774,30342]]}},{type:"Feature",id:"5109",properties:{name:"遂宁市",cp:[105.5347,30.6683],childNum:4},geometry:{type:"Polygon",coordinates:["@@ÞĖUxlJX„Vb°@„xUÞmbUxƒbXbm¤VX@lk°ln@x„bÈ@lLVlVUXxlJšç²UlwV@@UÈWl™„L„w@w„V˜wXaWm²¹@»lī„¥„wƒ±šI@ƒšV@bl@kLUllUVVn@mmU„wX™ċbVb@VUkbmamšW@kƒa@™™k@ƒlaUa™@¯b@šmmwó@@lkXUa¯°›LU‚am„m@óƒkXUb±bU`kLm¦ƒbnVmbnVmô"],encodeOffsets:[[107595,31270]]}},{type:"Feature",id:"5103",properties:{name:"自贡市",cp:[104.6667,29.2786],childNum:3},geometry:{type:"Polygon",coordinates:["@@lIÞDŽbVŽš_šJVaUwš™nуV@_lm„nla„bš±„UVašnVxkxVlV_„`„wV„„LšlXnmnbš@WbnJ@nš»WaKl¹²ƒ@mVI@KރVlJnw@aW¯¯¯UmVanL°w@aƒk„mmU—xmƒULWxUUÝKōèU™KUƒƒkĉKƒL@ÆnX@x™‚Wȯ@Û»™nÇÜÝLka@b™KƒnUaVmƒ_ƒxkƒLX¦ƒJl¦ÅlVb°I@bnaUŽmlƒUV„UVƒIUŽ„Kš„„a@nml„„ƒŽnLl„našJUbV@"],encodeOffsets:[[106752,30347]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/tai_wan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"7100",properties:{name:"台湾",cp:[121.0295,23.6082],childNum:1},geometry:{type:"Polygon",coordinates:["@@\\sŽ@pS}aekgKSu™SsMß`¡CqZ·be@Q^o@‹gieMp‹‰]}•}Ľc_Kk…{™ù“A¡r‰[uom@эĥJiq©mʼnq¯Bq]ÙYgSåk_gwU­isTE…“‘ĕiqiUEkue_‰OSsZ‹aWKo¡­q“ycY£w}‹ĩ™ĕS§Z©S™N¥SyLÑ¡±Ks^IY‰PdƒY[Uo†Fp}´\\¬\\j]ˆe܍ò‹¤¡–ā a\\bn™U㺹Ìs¼j®[cíȈEŽĝĆ`ļf¶Š®K|VØDdKGpVnU‚FjpH—F`†B’[pMºxÖjbpÎxp€¬‚|ΟÜÒCŠ²®‚ÜAp„ZG~€Šd˜ÞàV¨|¸€`|Œ²tx~\\~|dFf^zG€ĄŚhœdL\\hĸž¼†ŠOªP®lV`p\\]Xpll˜æ¤œCpQ|oF}fMRi†NSon_²qämœM„NM‹\\•"],encodeOffsets:[[124853,25650]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/tian_jin_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"120225",properties:{name:"蓟县",cp:[117.4672,40.004],childNum:1},geometry:{type:"Polygon",coordinates:["@@EUDAEI@WNMNCBFAHFFNACDJDPBD@@GD@DIFFHEFGDBDEQOFG@EI_KG@OcJQM]RMEKBGPG@[LaCIICBWKCEEG@WBQHCDFD@HSLEJI@IHWECFGAAEKCGDBFCBSBIDCKKHEADMJMFABKOKEQAA@IEEG@GIQAEK@OZEESMOL“lu@SLUTYFQCMG@@SQUAYKAACA@IB@BDB@B@DC@@BGAEFAA@BEGKJCC@AGAIHA@@JC@QEIP@@A@EGIDC@O@C@@@@CJCWKABFLBBEBSQGBAAMIEM@AKBcJEN@BEBCFMAEFEF@J@BG@BFABECKFG@AFQ@@F@BEB@@A@@AAAKAE@GFGDECEFEECBKIKDELDFEDYH@EIACDCHKBEB@BAAC@ADBHABKJIAIJICEDGDCD@@A@A@DHCHJHDFEFGBKRKBGIK@GIMHSBCH_BOJECCJCFKKMD@DNJEDEGC@OJCJHRUL@HRJ@H[DCNKDZHCTFDHCFFKR`TANVDFZRDLFARB@HPAPG`ILAR@TERNDFNHDLCLDDCXDYbHF@FEB@LDDVE@JPNfXPINCVDJJD@NJPAJHLXHDNANHhB@DPNLRMTBFRBHHr@`NBFEBOCCBIAQJDHCHLHFA@HSDCRLFTB@HEFLNF@PELBDJALFLTC@EPFLLP@tUHQJDfIHGTB^JTCPDLKAIBATFPADIEGECEMJ@JIAIHGECFEAGDI\\SPOXAFCL@BQTQBBTMZECYGAHA@GJAE@HCAEME@IECFKJADDBABLTHHG@ILEAMNDJCDHEBF@@JNFJELDFKTOT@JETBFFHBHEHKI@@IJEJ@XKEOUMS@AF@CEB"],encodeOffsets:[[120575,41009]]}},{type:"Feature",id:"120114",properties:{name:"武清区",cp:[117.0621,39.4121],childNum:1},geometry:{type:"Polygon",coordinates:["@@FWôµ@IFCLIB@EHNBp]AGEAKAEDMGZKFGBGME@ILGP@HEFB@BXMEAHUGC@IHCLOD@X[NWHWPKAEF[@EKIOL@EKGBNMJ@EIEHKBIC@BAKMIACCFQZCF]DB@ERAKADIHGEIBCGIIECFaGLZO@EFCNGAGDGAKL@BMG@IE@ADSDEH[JGC@CGA@BMDeK@EIACFE@@GG@FIAMM@CCGC@EM@ADE@CFMAAGHBDKIEAJG@DOGCDEKAGIS@KFCHKAEHIE]BeKNO[IFIOELC@A]GMBKVYCDDgGAICARc@MW@AQE@DGI@@AQ@@BKBAIQQYEFW@CEADIGGBCEIiMEMF_LGEKMBBDWEBGRC@E_CHYGCH_IAED@FFBQh@FGJaJ}AHRAREF@bE\\C@CT`FHC@\\BBF@BID@HGDDJ@@FAHKBARECKDAZBJIVNHCTA@EREAMLHDAFFBVFFC@RNRETHD@FOJMACH@CAB@P@DF@@FGDWE@FFSIEMKQDYCCHKb^JADOCIDGNDBdBCFJB@EC\\A@BJEA@JAAAD@HHD@LFBCFF@BERDHNhZQHMBGHOACCEBWEGD@PSJKCGEUD@CINLFGHE@AJK@HDABBHTB@F`DBFLBBHEDARCFG@ABJBAPVFE^FBGLGCFG_BMLEXGAAFE@@JNRVJHFALFBEHQJCTbNDHCF@PlFLJSXCHFHfVBTNJ\\BPJXC^FAVNFCHFB@FFH@JF@\\ABCFD\\BDMCAAJKQBGAILOEGHILECQLWFENJHADC@QxNHFJNLDFA@CBA@D˜UÂmR@FBL@BD"],encodeOffsets:[[119959,40574]]}},{type:"Feature",id:"120115",properties:{name:"宝坻区",cp:[117.4274,39.5913],childNum:1},geometry:{type:"Polygon",coordinates:["@@TZbB@JHD@DODCLM@AP@LL@BNH@ETFN@`E@DNG@CHLBCJA@AICFKDDBKA@\\N@AFNAGRBFjFFFL@DHLBLFQPcXAZMJ]GAVHAIZJFNE@JpDRRDCLFDGXA@EFF@CFFPDfEBDB@DCHCFCJDJIJBLI@I@CB@@ADBB@FALADGDC@@H@BB@FZGFCCE@@FMLALJDAFFFEFDFCB@@AHCF@L@@BBB@BB@FC@E@@R@BEL@HEFD@G@AH@AIB@@@FEFEBALDDEFAFO^IF@JCBBFPNJJ@D@PRDCEKBAXL@BIFD@T@JE@BHHJORFDI@@B@JGH@@B@BDDLIFFHCD@D@DEE@BAAAB@DAF@B@H@NGLJLMRDNMfGIEPMI@GDAKK@KIDIJ@GE@CFDN@FE@GFEPGV@TCDFKHBBF@RW@DD@@ID@TJFKIKLI@EP@IGBCLAEKLEN@KSHIGYACSD@SEAMBBMGEBMQBCMIGKFB[D@HDLPHDBC@IFITDLG@IIIFGVBNJDLN@VIRI@YIAIHIC@CLKZCBEE@JECEIHEAKGDGECBGEEM@@DA@CCCBBEGA[GEDBBoNAAH]MKiIAWKQoIIPMFQAEEDMH@FMSUYIeF@EK@BIOEKJEBICFKaKPFAFSE@LWCCFMHDDEKESBOGBKIEIODLG@CCDEQCEDWEMDIEIB@EHGEEDAEAa@@HqDEJGF[AECCFa@WCEIKAAEQB@FCAE^YDERDDJBLNABD@AJGLJF@FNIAMLH@FPKLJ@FE\\BFOLGXMXW\\C@KPGD@JHDGVFBWN@AEAGFO@KH@JNFAHEHYLNHFCLBFBBHo^MAFGA@KJED@Jó¶EX"],encodeOffsets:[[119959,40574]]}},{type:"Feature",id:"120223",properties:{name:"静海县",cp:[116.9824,38.8312],childNum:1},geometry:{type:"Polygon",coordinates:["@@NGFMDATCNDR@CCbINEHNJA@C\\EEGVE@IhE–[˜w”epc¢·²›^QEKIEKIgiQDkehY£uSDBMkUDOJDHC@GF@CAFBFEN@C‹Q@BeP@@G@HD@@MHQKi@[IGCOCESE@GMA_OcCGDu`aˆ@VZzKDkJBLNXGDqKEWE@cFEFA@ƒISIi@@KMABJGBcMuFEzGVH\\ATSEUBeALCEMG@CEBUHUCGXaBPtUBBFIBFTDFF@DDKBFNGBJPHXDDMDCLJ^mBIHIL@LR\\@LCR[@@z@NFD@LLBNb@RHDBNTPT\\F@BJF@BXCFBHHBDLFB@HODADE@@JHVXCPDHCFTLBBFNCDCCCU@@GAABEHHZHBCAEdEjFDD@GfD@DXFCHF@ERFDLBH@"],encodeOffsets:[[119688,40010]]}},{type:"Feature",id:"120221",properties:{name:"宁河县",cp:[117.6801,39.3853],childNum:1},geometry:{type:"Polygon",coordinates:["@@BFLBFJXDb@DEFD\\BHEFIrC@Gb@FBCBFFGH@FJAJFNCXFFCRDCFDDH@CKJPJFALPHTALFCFGCENDDKXF@ETEBO‚bLELJDFALIPFAJL@@FfEZJTVENG@CNFFRBNEJOpJLRBXjJNLG^BBpMAAFC\\HHBAFDADDB@@CN@FFAHFDCHLHFBJGFCFUNKJJTD\\XUXF\\^F@DDDQXXBRLRCBDFEVCDLVDpUl@LEDJHAPRFGL@CETGPBTCDDVI@CFF@GFDCCVGLKEK[Y@MECISG@BKNSCGCKWEAaEBEKNGFSECO@GGM@GYI@DÅCMLHPTF@DJHAVVNKEGDETJ^[TJNNd@NOAMFYJ@@GFANDPEJB^aOadSTQSI@MHBDIEOKCG@EEFCKCqXO@@DMFENCDDHCCGJ]AKFoDaGGHYFDHKJiCMFGC@EQ@AEHGAC@IEAATKOHGIC@IXIFEoƒGE[JCFCDHNmRADFZMF[EEBMO{GU@AOW@@]ZeHBDEHBKEfQkuIWBs‡@EC@d[@[^EDMTKCEEcI@cDAB@FCBCACmOCG{PYHeBgPwPFDDALFFFCHQGSD@BHFAR[TaFYXMASUiGFL@DQNCJI@@D@PLDN`ETEFIGMCGBCE‘~CAIFDPEHGEQPHJADFJGHCJLB"],encodeOffsets:[[120145,40295]]}},{type:"Feature",id:"120109",properties:{name:"大港区",cp:[117.3875,38.757],childNum:1},geometry:{type:"Polygon",coordinates:["@@JFFL°_`ONJKDDFIFZN xlb~yFVNRŒrdJGzDPVFBCTNND\\UR@E`F@@Ip@IWGUoawOEE@ÏDgK{İEEMFëC—b…™@—KwOCDHHKBDJCDEEEAGHOABFABMCgDLSQ@CFEB‰MgYIDQINE@AUSwSAdYEHQMEyK[KI@GRMLE@@OqOoBOnpJ@BmEAFHL^FDB[C@BBDVFAHFJENB@sNEjQAMYsUgCSBGDJH@\\LjGR@NC@@G@HO@AfR@DŒM@EFEADBE@@HGDICCPlVANTC¤vgZlfRChjLJ"],encodeOffsets:[[120065,39771]]}},{type:"Feature",id:"120107",properties:{name:"塘沽区",cp:[117.6801,38.9987],childNum:1},geometry:{type:"Polygon",coordinates:["@@|ODHnPBDADEDA@CB@ddJFFLDNSFC\\]\\@@cFDˆ@nACOMW@M@ITURBRZNHNWRQšoO•j½f‡cqŸAqeiDÿÍyÓįFL|Ch@ÐFFxPpbHVJXo@@JCTR^BPABQA]^MB@bE@@FQBFVJRH@FXtPNZSBAja@@NƒDTŽLJrQTHFXZFB`"],encodeOffsets:[[120391,40118]]}},{type:"Feature",id:"120111",properties:{name:"西青区",cp:[117.1829,39.0022],childNum:1},geometry:{type:"Polygon",coordinates:["@@@LHAHRHATh`LHNHDG`HDGZ`D@FQDAHXFACNAFLVRTBFOfHDCVBFQH@HSXHEPFB@LDBF[bDbLFKJBFLADBDjLvCPEI]FGEIGCBEUSjcFiBIVWfaHCjN^HtwBBFGPBJGjFBEGECGDONMFAP]TDHQOWCMGAMHKIJEIGQ]aDlUG]VGEGDC„{PEbBZmE@@GH@BCA@FMQCFMYMJECELCMI_P¯`]R±œ¡¸od“f—x•\\gF@JUFFH[F@DIBGMMFaJDDQ@MCSDCBENMH"],encodeOffsets:[[119688,40010]]}},{type:"Feature",id:"120113",properties:{name:"北辰区",cp:[117.1761,39.2548],childNum:1},geometry:{type:"Polygon",coordinates:["@@ROHFFGCOJEDB’}DFHANDJHFEFSM_KC@O@CJ@DIRM@CEKKA…L…FKACHoLSJSIBETDJaEIIE]E]K[MYUYQILC@GF[MGNKEK@A@BCWECAIFEFYAGFOMI[OFuDiKACBCEKIAELaKaCE\\CA@KEAFOWGGTG@ERUACDeGEPSAUQKHE`FNjNFJADHHCJFB@DEXZFRRBJLA@AR@@BJ@CHF@BRX@@NQdDBBJhHCCZDLUNA^H@BKDPFEJ\\JMPfL^AJFFGLBDGLET@HJLBCFHDCPH@BIJFCLGABHNBDEF@BCN@@FHDDDN@BNEJH@@HF@DEJB@FfLNC@AHB@DHD\\IFGTCBCF@@JNH@ALKHBHCHBDMFEP@KYbHDEJF"],encodeOffsets:[[120139,40273]]}},{type:"Feature",id:"120110",properties:{name:"东丽区",cp:[117.4013,39.1223],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZV\\N^L^FJFFJIbSCAFTJTIpKDGLB†E†KLBjHTVNBZWbE\\SBQGE@ATCRHDGEEKECBECxOhOfAZGA_YEEWSGqRKIS„C@Mb@BiTAMYsOEWG@IQEURA@EF@@acUOXQRYCUDCHDTEF[SUEgAYDcVGJM`iAWDWLQRMHUHgDsDBLHJFCFDFGHBFFVEAGHCJN@RJF‡PIhBD\\FENCPWA@LFBAFHBEJUEARCDIAEDQBRNa^"],encodeOffsets:[[120048,40134]]}},{type:"Feature",id:"120108",properties:{name:"汉沽区",cp:[117.8888,39.2191],childNum:1},geometry:{type:"Polygon",coordinates:["@@LMEI\\MTABKN@FCDMH@COAcH[AoēA™M¡Wa[Meq™pQRMXMGQYQASV@J@NNXDPmBAtJXlveRLFGACFGAYf@^X@BPV@|HNPFA\\FNEEYBCnQGMDCDE\\IHFp„EFWJ@JJDGHLPBSFB@JBDGHBFR@@FHDNEjDLICGZEHGbHpCLE^BHIDDCGDCFMNE@CP@rWLDEDFFH@"],encodeOffsets:[[120859,40235]]}},{type:"Feature",id:"120112",properties:{name:"津南区",cp:[117.3958,38.9603],childNum:1},geometry:{type:"Polygon",coordinates:["@@TLv@CNHFFBHGZFETNPhCVGNGRQXKXCjBN_HIdUZChBVF\\TFECSDGVCZDRQPWdVNA^]RBBAAOQ]DSE@F_Q@[VMCSMADUECOHycI‹qMQEU}zkaŸwENRDENB@ADG@@HF@YnaAOFƒ|CDFHUHH^kVbCR^JHIFLJNGHBDNPXGRSCO^EBMNCPDHHFAFiEIHOAEH"],encodeOffsets:[[120045,39982]]}},{type:"Feature",id:"120103",properties:{name:"河西区",cp:[117.2365,39.0804],childNum:1},geometry:{type:"Polygon",coordinates:["@@d@hZNFdcLYXKRCtCMOFSYEGHEAGEDMu@SKAAsx]GMTGt"],encodeOffsets:[[119992,40041]]}},{type:"Feature",id:"120102",properties:{name:"河东区",cp:[117.2571,39.1209],childNum:1},geometry:{type:"Polygon",coordinates:["@@ZBVFFIGABEEA@KXBDOFM[EACJgˆOIE@QIMGDBHUFEEGAEHECEDGIAKQDWLKZcdQPEP@FOFBJTJ@HNORJf@DBCN"],encodeOffsets:[[120063,40098]]}},{type:"Feature",id:"120104",properties:{name:"南开区",cp:[117.1527,39.1065],childNum:1},geometry:{type:"Polygon",coordinates:["@@NMVDCG\\E^B@HlB@YEDS@C…HsNSiMGDebUXAJEjidVTAFHDFJ"],encodeOffsets:[[119940,40093]]}},{type:"Feature",id:"120105",properties:{name:"河北区",cp:[117.2145,39.1615],childNum:1},geometry:{type:"Polygon",coordinates:["@@DBXFADB@L@LFHM\\NHED@JKZRb]QMRAFCJBDCBQYADMCAe@QIMP@GSIAIPE@E[EGH@ZEF]^HJAXK@KF"],encodeOffsets:[[119980,40125]]}},{type:"Feature",id:"120106",properties:{name:"红桥区",cp:[117.1596,39.1663],childNum:1},geometry:{type:"Polygon",coordinates:["@@J\\PNHEZBFEJELEL@BWGI^]FEkA@G]A[FDHUCMNEHJ^"],encodeOffsets:[[119942,40112]]}},{type:"Feature",id:"120101",properties:{name:"和平区",cp:[117.2008,39.1189],childNum:1},geometry:{type:"Polygon",coordinates:["@@D†T@FCHG\\FFOROMEgYc@"],encodeOffsets:[[119992,40041]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/world_geo",[],function(){return{type:"FeatureCollection",offset:{x:170,y:90},features:[{type:"Feature",id:"AFG",properties:{name:"Afghanistan"},geometry:{type:"Polygon",coordinates:["@@ࡪ͇وŐǬϠڐŶӂʮǚڦ۾njƀ̚ІɣʪҴMوǯʲĹ،˒˰Nj˖ϪԈiżŬĘͺβ̈Ҕȏĝʱʪ¡ý۷ͪ˟̊ǰώĊԼϖׂ×ࢀAƬʋӧĥяƹ७ĭࣗǭӫλȤΣĪллΛ–͑ɳ̡ߛ€ͦ։՗ɅΥԕ²ԋ͡ɿ̳þٝŋğɻسDҵӇ‡܍થΓבôǝȁԇņ࠿űටіހހåզُƚßՔ˟ڢάҢιŮɲؒ΂ਸ"],encodeOffsets:[[62680,36506]]}},{type:"Feature",id:"AGO",properties:{name:"Angola"},geometry:{type:"MultiPolygon",coordinates:[["@@ȸصʌԋȘ˕͐ѯ֊æˤŠҬşŲɀɂӨԶ®ƤіHñ̡৴RfՉǞ͕ūԑÖԫ˪̷­ৃȼüκsԴŴϦ¹ĘʹĩСƨϿů̿î́ყZᦵ֤ۋպԽ໳΁᎝Š׋Ж₭—ŵÏԃϞկ~ԉƝЙDžÿՈŜ݊̂ޒªΰ˚ݶȨΆӘռːϐĘج«ӊʣ̜ɡԚȵԎ®Ǩʶͬʭ߼ǣ֚сՐĄǎΌŔʒg̎ĸៜ["],["@@ɉėɣلͼδʪƘ̀˽̩ǯƍɍλ"]],encodeOffsets:[[[16719,-6018]],[[12736,-5820]]]}},{type:"Feature",id:"ALB",properties:{name:"Albania"},geometry:{type:"Polygon",coordinates:["@@Ń˷ŢέΒȳiə˗ŧ»˙ϷСƛÐgȂү˰ñАîֶŖʼƗƂÉˌθаÂƿɨôǴɥȪďȨ̂"],encodeOffsets:[[21085,42860]]}},{type:"Feature",id:"ARE",properties:{name:"United Arab Emirates"},geometry:{type:"Polygon",coordinates:["@@Ƭ¤ŒɱڂƂ۞uԖ{ֺ֪ظՠՎԮdž˹ŖڑѕGçճƪŝϝǑE΅ʓΏuͷǝDZᡋъ͏࡚Ț"],encodeOffsets:[[52818,24828]]}},{type:"Feature",id:"ARG",properties:{name:"Argentina"},geometry:{type:"MultiPolygon",coordinates:[["@@ߗ§ѓ̔ԑx࣑@Aሞ͒ϵрؿનԋ୲ȿϙп"],["@@Ӵ؇͠ڰॠ“ƊǷ໶ോۊŷਆاࡾ͡Ŧχࠡ౧ࡒɭ़ŷڔƈނ٢ƎݐжLjфӝiڣۻҩ֟΁ॅࠃ૭ଧȽڥɣࡹT࠷ǽȇÝիËѫ੨ܙŗ׃Հν§Ч߯ઁఛ҉။ǩउĎǰԅǣػƺщԋ̏ࡱř̪͕߱ɗŜ࠳֨ʧҠˆʢѧޛʻڭԹūࡋȣ҇ߏEڃљʋؿؙࠞߦǝ˿ݭ঳Ӄձটލͧ΅Ͽ˔ࢍ֔ӡΟ¨ީƀ᎓ŒΑӪhؾ֓Ą̃̏óࢺ٤φˈՒĭьѾܔ̬૘ěӲξDŽę̈́ϵǚˢΜϛ͈ȝॺ͸Ǣƙ਀ȠࡲɤݢԊ̨ʭࠐEޚَոo۰ӒࠎDޜɓƶϭฐԬࡺÿࠀ̜ބռ߂צԺʥ͢Ǭ˔ඔࣶд̀ࢎĹɂ۬ݺશȱ"]],encodeOffsets:[[[-67072,-56524]],[[-66524,-22605]]]}},{type:"Feature",id:"ARM",properties:{name:"Armenia"},geometry:{type:"Polygon",coordinates:["@@୞ƀǨə͌ƣǛɁ҄˽ʁˋΦɫϘƏl׋̣}΃ӢHżχCʝɤǩuͧʖرȼĄФƛ̒"],encodeOffsets:[[44629,42079]]}},{type:"Feature",id:"ATF",properties:{name:"French Southern and Antarctic Lands"},geometry:{type:"Polygon",coordinates:["@@ը˃ߐĿˆDžɽϣಇÃq҂ŮΎÊǢ"],encodeOffsets:[[70590,-49792]]}},{type:"Feature",id:"AUS",properties:{name:"Australia"},geometry:{type:"MultiPolygon",coordinates:[["@@ߺ́ҜŘپNJԎÉÐঽ˽́ēگ̉ɰ׍בǧ®ԫ€ԭܘŗֈӝܸtϬռõ"],["@@̢ڇբ̈́˦ΡЖ͟đϋǴܛŸнɄĹɬܕąѥ˖֭࣬ѭצЋ֞λŋȯӔՃࣧ͜ͲȂ;ηȴźƢࢹ׬ԩϸ͋ڀڹʀڭtӏËԳА܋µݓơϵɩݡjӕǕ׻χއثЭ̫ٱ˫гʝܧ͕нɅػʼnׁªˇӕ̇व‰ޡ·ϫ͙ԕέ۟ψԥƪżѬҝǃ݁؉ܩɪӉƄӑÔ߿ʐիԮƻْțьЭ;߱ĸˢРȯزЧ׉ݝƷѮҬŶӞ͘ЬãجہܑԿ˽͏ڛٽΊ~ҀԿ،ѹ̀ǂȘઃԚןz߯Цຓāછ̝ख़˫ߡÈࢻљܯȗljѱ̳Ϳ܉qՅõݑƶ׿ğֽԁ҃ʕœуʁЗˋؕ֛Bࢽ՜ҋDŽlӖкŘƚȒ‡̠ĺאģӼѻࡖƏӒ˜ӎͭնsʚϋͰĽڄӓڔřΪτε˳ެиʑʞ͗aјеڎă˄țʦĠӠǢȸŘрęӮΎ؀Úٕ΢׀ۀˬЦΪٜ̰ϤàɴĻڎ̺ԚĤŶȀɞüҬoࢨʖҚώɊ҆ӲѐœͲvҘט܎ΠܩΦǚ̗Ј˂ТψǻĸٖҠаȮͨцƜ`ɼτĭdɂτŦОŔبϫҲӽՂMՖÿDZҦДڪϜɘſȾκӒԘ̒јıۺǂeі؛ˢ҂Ū֎ȻҀ·ۼɋʈĐԶʵӬʊ͂ñȠNJϬеɡ͉҇ͻ˿ƒĮͱʙп̗ЭÔʁڜҫ٨ˏѠ́؈ӻʂBѰɍŶʷߤ˵ֈ˼ǐҊǠόľҤʰڞŝОÔʔīӔŌنLjǠŽˬȮѾdžҦtʈ̸̾ʂЩÎՃȾķ˜Λ̨ёÚӇ‡̥"]],encodeOffsets:[[[148888,-41771]],[[147008,-14093]]]}},{type:"Feature",id:"AUT",properties:{name:"Austria"},geometry:{type:"Polygon",coordinates:["@@Û΃ӁCǎǻ˧էLJƗܽsщȏۛÞயɐȉ̊ࠧƣĭDžԗŢѕxϝƶźȴƬʪ²ьɹŤɜݎ•׸ƮЖ}ˀǣþƜšո̠ń̒ϰز˓ӀΆ̐ÚٶʱЂªϰǁãŃČ̅"],encodeOffsets:[[17388,49279]]}},{type:"Feature",id:"AZE",properties:{name:"Azerbaijan"},geometry:{type:"MultiPolygon",coordinates:[["@@ʞɣψDGŻ΄ӡֽŒщϰƃ͆Ǫv"],["@@ϊËƞɈԈͺѴѵђ׭ϺŸʸɧۗãƣٵƟ̭̍ȝvзȽ¥ԻѲ̂дʝʚ̿×যإk׌ϗƐΥɬʂˌ҃˾ǜɂ͋ƤǧɚȶƎضʍҐ¹ŘIJбҔɔŚʀ…׀ԙ"]],encodeOffsets:[[[46083,40694]],[[48511,42210]]]}},{type:"Feature",id:"BDI",properties:{name:"Burundi"},geometry:{type:"Polygon",coordinates:["@@Á০ɃϢԜßʲӎҀŸͧǸȏT˗ȹǭ͛ѫ̧̥΍Ÿ"],encodeOffsets:[[30045,-4607]]}},{type:"Feature",id:"BEL",properties:{name:"Belgium"},geometry:{type:"Polygon",coordinates:["@@؜áުǪՐοҦȝħ֧ɕĝһܿϦћßדІϷͶϷ`ũ̒ڪǔ"],encodeOffsets:[[3395,52579]]}},{type:"Feature",id:"BEN",properties:{name:"Benin"},geometry:{type:"Polygon",coordinates:["@@ۛįȹ׆žኞǛǦЮ̇̌ʱʞņѶ̀ĨǠξЪĀȀʤˮʘ̠F٘ә˩ȎӽǓͷĘɧСԳʵʳǁՉt՗µണ"],encodeOffsets:[[2757,6410]]}},{type:"Feature",id:"BFA",properties:{name:"Burkina Faso"},geometry:{type:"Polygon",coordinates:["@@ֹɐϽ‹̍Ƀϗǰƥ˦ϙǾÅӦɮΤo˴ښۢŬּɲȴОœΚǢŘɎٴϖdžˀ޼ΒҦŢɀLJՠJáСŔϣӀչ€НॺȏmֻǿʣЩÿǟν˿ħ݁lϳâ˓ƉωÖร¡qӉŘم"],encodeOffsets:[[-2895,9874]]}},{type:"Feature",id:"BGD",properties:{name:"Bangladesh"},geometry:{type:"Polygon",coordinates:["@@i׽̉ŶÆگʉѬµєDžКΕӨޟ’ü΋˃ҳΧǠũƵʃĠ͗øŽۖ̅لƜԒԫɤȆ̪Հ̼؅Ѽ֮̔ږεВ£ô׏ߞřު^Ӟƛϯ܅ϕµʷӍҢѥƎ՞ɶFѶ೯"],encodeOffsets:[[94897,22571]]}},{type:"Feature",id:"BGR",properties:{name:"Bulgaria"},geometry:{type:"Polygon",coordinates:["@@ʎΉ͚Ö٦ſ௾«иɌবȜ̩ؒӴĕѥΏ̫׹˔ӏܣŒࡥ˃Uлޅÿס̊ڧɱة|Ñ֊сːƒŢĝĴƘˌ͌ˀСδ÷̬ȸȐ"],encodeOffsets:[[23201,45297]]}},{type:"Feature",id:"BHS",properties:{name:"The Bahamas"},geometry:{type:"MultiPolygon",coordinates:[["@@ȵ£ɇӜ̿ʐǾՔʨ‘ۣ̎Jӥ"],["@@ࣷƅÏ̴Ђäֈ{~ɕ"],["@@ƟׯƷņ`ѮϓͪCĪڐϗ"]],encodeOffsets:[[[-79395,24330]],[[-79687,27218]],[[-78848,27229]]]}},{type:"Feature",id:"BIH",properties:{name:"Bosnia and Herzegovina"},geometry:{type:"Polygon",coordinates:["@@̦FȿσМ͓ūЃȡ™ƽû˙țūҥݓ͈ͅΘ͋Ȅϭ̾ǻʺЩϾǬΒ̞ȕǼǨϾnܠƓ׈\\Ϟȅ"],encodeOffsets:[[19462,45937]]}},{type:"Feature",id:"BLR",properties:{name:"Belarus"},geometry:{type:"Polygon",coordinates:["@@߼Mࣰ̈́ȚӄېːÿϔԜƚ͖ࣘࢮɁŢȻѲĴࠒȧĊЁǷɧՄս΂Ƴ»Ʊ֦Ʃʎɡ͝ǿڳˆljÿȠ˧ȸ՝ܝ¹ʵȁÃхͭĆݷ¡əȞ̿ƥ́ŨڍjफȬࡕàٱmҡɩГeϐʷϴԌǢLͰɷ͌™ϊ"],encodeOffsets:[[24048,55207]]}},{type:"Feature",id:"BLZ",properties:{name:"Belize"},geometry:{type:"Polygon",coordinates:["@@OŮĸžƴı̞ԔDŽZHūDŽGaɭƋεôŻĕ̝ÀăīщǓɟƱǓ̅ʣ@àॆPژ"],encodeOffsets:[[-91282,18236]]}},{type:"Feature",id:"BMU",properties:{name:"Bermuda"},geometry:{type:"Polygon",coordinates:["@@OEMA]NOGNG\\Q^McMOI_OK@CQSGa@WNLVWHFLJXVFGJ`ZRTDLeeWKIHGIK@@[MQNi`]VDTBHCJAPBJLVFjT^LV\\RJZRn^RH`TfJjZHHOTTFJP_NOX[EYQQKMEJOLANJH@HQHAARF@ZEPS[U_IcRQXE@EEKKOCGGCQCOGISKYGUC"],encodeOffsets:[[-66334,33083]]}},{type:"Feature",id:"BOL",properties:{name:"Bolivia"},geometry:{type:"Polygon",coordinates:["@@य़”͟گӳ؈વȲ۫ݹ؅ŗ͡୆ҋऺˆ߾ѳ΢ŏ؆ЫֲՌ࣢αۺȖ˰ƭ̶͠рh܎¤נǸ˶ܩഠزíѠnȈʪ݀;Ѷ͂સƚęؽļ͓ãࣰ֛ݫऴƑ̻ͦ֨ǕΐʑՈTӦʟšӟǐʕZγʓa͒এྖ“ūӟĜͧҞɽȤԹƫڋɯρĄӏʿǥaʶ޳јޭ^ัʓЕ݋sҋͥ৕ƉǸ"],encodeOffsets:[[-64354,-22563]]}},{type:"Feature",id:"BRA",properties:{name:"Brazil"},geometry:{type:"Polygon",coordinates:["@@૮ନॆࠄ֠΂ۼҪjڤуӞеLJǒӜŖӼBҦ̡ƴ̿Ƌ̻œį͔ýޔƿʤ֥ɪ΃ǏࢱLjÈଜʝҴˀǦăӐɰςƬڌȣԺҝɾěͨŬӠྕ”͑ঐʔbYδǏʖ™ӠӥʠՇSΏʒ֧ǖ̼ͥळƒ࣯ݬä֜Ļ͔Ěؾષƙѵ́ܿͽȇʩџmرîӃƟϡĪÈ౨ۏӷݏv҄ͅ֏¶DzΰұԞΓݴɜƶA΢ԖʎċҔɊ̈Ôϼ०ֲێNJŔŴݴŸϚᘰpθſӔύ̬LؐӀƒǚē†͐ӯĔYՀ࿖k˦̂ɸˉǐӷǂļҨѻٸÆnjʲشȞΊƐĮΤ׸ʆ¯Ǯ܅ðśՊ’֞ϓɒǀþجŅڜȿʐȤ؀žल̮͎̾ŏʂѪšȜȗʼnσ̀ŵȖϷɷ̏ƅ܏ɌыÔϳԬϿЮ¥Ģǒˆ˜ϠƦ˚ɢҬíȲŠҚçøǢƗǘĎʐͺõЈĒӔDZξǥʺɪȊ•ŘɿДÒ͒͊ʴؤӼޒ˺¢ȺҫҼ฽҈Ƒxׅمەʾʩ๤ƁŠࡃٔր੐̟ඊԡШӱƏҫ঎ʶ࿐ѹఴŽఔ۝੸व٪ʏܖ‘̦˅˸੭Ɣԗͯ൹ёշஅୡՙोثܯȿgɻءÒ༽ɹಓęօˇͧƫ૱࡛઱ƛࢁڹηȟԋ࣯Fೕ͓סύवʗ঩ڝ܅࠯ũطƔҫƽࡓȏЧחҥट๕݉ڗ֯Ͻϥߛ։ӑɷӈψЊӟֲڇҬࡹՠ̹{ࡅٰձę"],
-encodeOffsets:[[-59008,-30941]]}},{type:"Feature",id:"BRN",properties:{name:"Brunei"},geometry:{type:"Polygon",coordinates:["@@ͬ̾܎Ң›Я·՛Б€ǭ˹ϥѦ"],encodeOffsets:[[116945,4635]]}},{type:"Feature",id:"BTN",properties:{name:"Bhutan"},geometry:{type:"Polygon",coordinates:["@@΂ˍÏԩۇ{ۿÈՇſޅ͊kǚ֌زҒɈ׸șѺqπɥ"],encodeOffsets:[[93898,28439]]}},{type:"Feature",id:"BWA",properties:{name:"Botswana"},geometry:{type:"Polygon",coordinates:["@@ǜƭ˄ӡॎइήĝD̑ʚՑٰŹ՚ϝ஑أݭع˩֓ʧ́ҙãƧГďʽ՝țہ¤БɾΟĸХșȵГЉʧпϑ׻đȇ̐üԠӽߚɧŲAរࠤˆ|Ჾش„ಖ͎̎΍՜ͤʮDӂȎưÙ͔ڣ"],encodeOffsets:[[26265,-18980]]}},{type:"Feature",id:"CAF",properties:{name:"Central African Republic"},geometry:{type:"Polygon",coordinates:["@@ۜÚƺɎƔgȾȏ੔͐Τ͠Ѭ̌ĉ̐ʂüߺ½߆ϴ؊ࣺю;ՐƜĪΫӜԿF΃ƋΓÄʻ̆ʍٖοҢͻT˗֠ѫΖεɆԋغͩƊˉˣęաpكĘ̹ïųȱ˕}ͧDzधнϥĎŗÝʥԕطǐؙĊ՗̴ۓ˸҉˓͛яùדգ²֩Ƙԅѻѯޱėʐ›Ϧϧ˔̳Ѡï̠ЇѮæʢċΞÞٴȬƴц࡜"],encodeOffsets:[[15647,7601]]}},{type:"Feature",id:"CAN",properties:{name:"Canada"},geometry:{type:"MultiPolygon",coordinates:[["@@؎œުxЯ΅̵Å੥Φȿˬ͆ʸ̎С"],["@@Хcઝ˂ޯІ̄î૆Ɂ࡮Η|Ʒ"],["@@хŝൡϢʥ̘ݩ̌Ưʈࡻư͕ҜðȚࢨǿԨŵ߄ė˺̃дЋ࠼΍Όҩ"],["@@։ܿո˴֠ǵ̏̉ݚɱϰȴ࠼ʵʹ؛טƞņѿʼԷΝ݉ϝ‹փǂǾیɻńইܯԅ†צЂ߫Ȳࣙ¹࿅~ŹʠԼ̐λɬ۸Ԓࢄ೾Զӎܲ̂϶™Njɫ҅Չ"],["@@@@@@@@߰äʥ॓ܶگͯDԑϪ̵ϮчʾƻτºˎЂŋ"],["@@͡ѳχîəʢ Î͖ʦΆkɈǣ"],["@@ঝҧץnǿɪزϲ଼SiǍ"],["@@ƼυјżӨɗं˽४ʽöЍؤÞ׶˥ݙ˃ಳȬҽϚ࠭ҁ஡ѣ˿Ӯଗăܴдņڌ˺ޔ؈å"],["@@ष¥ȿЪΦҼޖŜپɷXέħřձʛ"],["@@Է̍ଉʬۃğଫϘ݊ʼטζࢼʃԎƯʦDžԠ͍"],["@@G࡭૰ڄ৐եʡح߾֥࢚؈ؖܨ°ईஞÝఔūૼй¼зس҃פ҇ŃУ࿩חୡŻࢃʨʣуߵ۽ʓοই֩ளÇڏΡÇձ঍Ŀਉڻ࣭ु͙ڏ±উంƕϜ޻ϼّ୲ǔ༞εࡀ͋׺Ѕ੆ɳࢸΟ൶µࣴąƍܫʼࡋ،ळనߗ٨˚ҔࡺѭೢףѶഎЀ॒לҮהç֭֘܌৷لলࢤνݾ˫ಾגȘ෸ɫࡸć۠ɚ޴˵ਚӣʮ͙ຄÛ}۷˪ਜ਼ގſ،ӵ௖Ұߦऔ֌ϸٺݣબੳघ৙͵Յ૤Ӂݰӓംɏբˍͬ܃ټŏͶͅÖऻ؍́׽̏൯̗੏ۑ෇ƋᅛǮుPࢇÍ۱׽ੳω௉૗ॵޡ܌Ɛഘૄᄈ۪సČݔЫߍ֟ˊࣟ˜هતп൸ŨࡆीÎ؍ժ̥ਣսᇷԁ࠯ͽय؁ٓ֍܆ฤ۞഍ƒणĹջӆBନύʐ֛ƛ˧ɚٙىʱٹ̕ϡΥŽˏ¥čȹ໽A౥MϛƷࢵ؃Ŀßˍ͝ޗBࠛGϛƅƊǑøʯeďષлࡽſউ҅Ɂ@˷ƂĥŦnĔȂ̎ЂҦʘӺǙܴǵނ࢕ЂľƬūĺɳ@ǛƆ¥ȤǍēɥ€¾ĊȡĊćɚٵːڹ˪ࠑ͘߁̨ݧʃ˝Sਕɔڻʼnࠁʺ࡫Ɔו¾ʻƜƫҤ˳IE͓჏BᮝA᭯@ᡃ@ᠿ@៙@ᢡ@ࠛ@᠁@ᛷ@őF྽ࠜ׵δຽΐҳݖŤԨ੻ΨƧڴ৭؎iѠҲКwՌෙ՘࡭ॠՁ׾ޑϚ֣ΈѿѢࡇ˕ࠇҹݛւדπࠋɸࠟ|JⷎNᷲ༬ȭ೘Й࢘û݆ΖৰˀఢĹ఼τ൘Ⱦ־ΑظȠȊЄ׈ęෆݫ૦֬ŖّਔƐ͆ʖৰ·౼Λዸ̭ୄƛࠖÄଊэ஁зຶǷᗘIJܒƦࣆԋࣴьࡩΦժ˼৾žڦĎڴȩࡊҗरä๢ϛಬƄ௬oĭԺݞƦದ˵KߑՖڠڰuϞࡊ࣑԰কͺäघশ؎ૌƇࡘχଞॅݗЭ༠ǝ"],["@@нϿሎʬୠщॊіސ˟یࠛфΒ׭ࡰ݊Ŭ࠲Ƈश͹ՆࠉʼץථеະЉĝσൡã՚͓˱ູ̯Ƃฃɪঋ»ཅ˷ᒃű๻āҕІଫɮݙģਛږ֔ĚಘƜஈ›રƦྷȞᅗã஗jѷ̴ዎͲಗ[ืɚ۶ـגͮᖬԠ࡬Nj"],["@@݉ևಹך˸Ş૸’ٔȁ"],["@@öɵࢿ|ࣟjࣿőʑ¼ऍѾ˜̠ИÈነěชң"],["@@ڎԽޤڴᒆΈ෺ࢅůջဒʒߒͮሀыୄЏŊν༚Ȑ࢘՗᎐ܸͩ͹ߐ޻໯ϹጘչೲȁீޙೖÇʽכ้ঋਗά೓߲ઙĿŁӕࢪӥଜϯΌɟմࠩ́׿੕ɪᑏڨஎܣ࢔ԕƎ̉ᗱͲᅩӤ৳Ц̌ʂయќ௥Т`ʑᝡƅ܃˾ֆؤ཈dႸņ˫̜̊оચࠊɳϊ͕˾౿Рၳ˺՞ɆࢷԺ݋´ڏ˸҇ʛ຿ŅᵝȈᄫʚഹŴۥ̐࢞Ϧ஝Hˉ࡚٦ݨࡺ΄ᓪɢأի"],["@@৊ǯຄńɖʑ޷Е౜αƱݳ൝͗߳ê׉͎ᐡٮjˎ႖ĽएռসР"],["@@࣓عय़ŒԽ݆`кѮΨ࠰ɮც‡ྈȱళݟ৉Ǎ"],["@@ᕍЙѷςኹѺήΤ׌ؘܰւࠑԦᭊƀ஬ǧᒰ±ࠄʑࣖΝ੍ɃᏝןਫי@ν"],["@@ҙ͙௝Øৱɖ҂Ϛீɨܼ̬̍ˇ"],["@@ٞϵ€љϣس൱đࣗƈjӬ൝ÝÁٮࣜౌ˺ஂµÜŎ"],["@@̙͢ݠƘࢢ™ƪЩԝЋ᭗Žᑯη౩mŅ˜პϊ④ij୯Ʈପࠐ߈ɾᛄ˳๶ӻฺÛறߨޔ̪ࢄĭ˲Џ"],["@@ढ˓ကFܨˡȑ́८ȍՔȧଊ™௬ë೸ǼႊðീÏ࣒ͅȊ΍ԽɟభǷ੽ĸᜱŻႫcഫļᖁ˔̃ҦĹжࡇξ჋ĺঅʼ͂ΈႾÁ"],["@@ŗ٣٩̇޹£༝Ϋ഍ŹଗǼ@@ුؼႮծಆ[ସŬ"],["@@ϣy༽Âɡɼၜ]מƻĵĩ"],["@@༩ʋఝ˔ڼˎ௮Đஈſ˩ʥ"],["@@৽ǏඉBbŤࡴʦҌદǝ"],["@@కǥۃȚέ͂áΎજ‘ӪÅ৐̇ɫ̣"],["@@͜Ε൏Ĥ൩˘ሏŒߺʠ৫ȮÕ͐࿶ŕᗢ̫ٞЍ"],["@@০˕ଽʟ༇ك๥Óდņࣗ΄^̦ڔɢ໡Oए˨ՑϠ׌ώ׊ʲࡴÎοȖዜ¨੶҅මǵ൞ǃڒև"],["@@ᖢßᅮŅ໤ɫ™ɡᏅη᎙ǟݻȉᆬJጡԙേʃ෯ۇႿƓՙǡᡷěୈĿׇƭ۞бߙ˽ಛʃЋ͡୫ʣŞȏ෬lȳᖟԋᔧɴឿŻధĸཟªĿЖ༊Ȑб؆ԢÐᖤγ଩բഹLjڼ͘๰Ȩʄ̊஋͠ΥѠᘞ—ڒĝ಼̪ቃĬ᰽Á๣˸۩ͼগʘȁ˺దLjঘ‚࿲ƌం̺ਬ©ࣤɽٔҒૐƈບĢᢲ–Ҁĝ᝚ƚᆔÁᆒÁ"]],encodeOffsets:[[[-65192,47668]],[[-63289,50284]],[[-126474,49675]],[[-57481,51904]],[[-135895,55337]],[[-81168,63651]],[[-83863,64216]],[[-87205,67234]],[[-77686,68761]],[[-97943,70767]],[[-92720,71166]],[[-116907,74877]],[[-107008,75183]],[[-78172,74858]],[[-88639,74914]],[[-102764,75617]],[[-95433,74519]],[[-123351,73097]],[[-95859,76780]],[[-100864,78562]],[[-110808,78031]],[[-96956,78949]],[[-118987,79509]],[[-96092,79381]],[[-112831,79562]],[[-112295,80489]],[[-98130,79931]],[[-102461,80205]],[[-89108,81572]],[[-70144,85101]]]}},{type:"Feature",id:"CHE",properties:{name:"Switzerland"},geometry:{type:"Polygon",coordinates:["@@ƫŹȳϞƵіwá΅χƙةŀǻ͹ЏơƄһ˵Л¡αǶ˽ςБſ^ϠؚҾɈϤûɲƞ܎MǦǼ࣒ʱ"],encodeOffsets:[[9825,48666]]}},{type:"Feature",id:"CHL",properties:{name:"Chile"},geometry:{type:"MultiPolygon",coordinates:[["@@Bም࣒@Ԓw˧ͻܛʻЭ‚ӻä؏ʨ࢟ŨੑҸ࡫Ҏୃशۘǭ୼֗૜̟ѢϬ˘ֺޠΎװı"],["@@͢୅؆ŘĺɁ˿ࢍࣵг€ඓǫ˓ʦ͡ץԹջ߁̛ރĀ߿ԫࡹϮฏɔƵCޛӑࠍpۯٍշFޙʮࠏԉ̧ɣݡȟࡱƚ৿ͷǡȞॹϜ͇ˡΛ϶ǙĚ̓νǃĜӱ̫૗ѽܓĮыˇՑ٣υôࢹ̧̐֔ÄgؽΒө᎔őުſݝPЙȷݷ̣Ɖ޹Σoॅ˚१ג@@ਲ਼ӔˁՒʄӰх֒Ņ෤Φ߰ࢴٰౣʔߞݒ˸ඊत̏Ѯგ֝ɠʿ਻ՉŠ˂ல˺༒ϮָʍࠎéूΠ„Ԩപ׈എΤబȗ఼ʤۚĵਞӮਆưྺ˒ნˀሤÕ൘ǩ஄ќɌɦњЬֱŐ؅ѴΡ˅߽Ҍह"]],encodeOffsets:[[[-70281,-53899]],[[-69857,-22010]]]}},{type:"Feature",id:"CHN",properties:{name:"China"},geometry:{type:"MultiPolygon",coordinates:[["@@ԑഓΫۏѷ܂ĩخӶࠜڦَϨʡƣԓ","@@ܩЗۏʺyܢаϠࣾɾӚoȊ͍σσșӟ"],["@@ฬˍ঺ׯͼ߃౨Cܰͨ൸ʜѳݱ͙̭˽ः֡ࠇ৵ƪܝ̑ɜܙť঳ѕwLяթӺͯһಙαƀѹܩŒЍ˂ֽ׭ऑҋۃա୭ʑأϽࣝɭ҂ϴǭ͞ږ֠ѹѲܷ̓ॉ׏ԫթ࠙¡ѓϻѸ֩یƏ„ϕڔʕस׶ݚ͝լuƌѱஓɻϻҏࠇућיࣜҥͦࠝԞޓ֮٥_دՅɯȪ҃ӶʻŻۃɇڗҷ÷ؗࣧڹિޭোିޡୟۻृĩԣύ̃˘Ӈй୭сࢵŹ˻ࢱҭ·ə؎Ȧ͘ૻːЇƍࡍɔЏ΀ƄӜޏƶЙܑ̀҃ࠇīڡJ҉ȳѥūŶ॥҃x÷Ȣ}Ύ؝ʓεƸر͂ʔۤՏǎȧޜࢱƓĴাߔۮ”ۚ{٠νȨ˭ӶӭÙࣟŲ˴ΜϿԺ׳Ν۵ȸॷ՗އسڳĿοɦѹr׷Țґɇ֋رëڌԟǭওĈोȖڿτٵǔ˯ЖҽŦࡓոکʴΑȩଢ଼טࠛՒɽऐ׾ő‚іͭјĐۆࣙঠ൧ͼʝ٦ةϼƫʌųӎˆ͜ԛȔ˟ďɇިʈȔśȠߤЈ׈ǐࢸő͆՜ંIJͮ̚೜ҔŠȐãӐּɔݱฦဘͲјȈ؆ຒဠˡҲϞ¢ࡆۦĀٖ֔͢èɚו۸ѽப̿׆ڱ͕ঙ̢ηূƝଆŝ৪ԻԲġϤޟӲӿऒnჄȉ૤Ŝࠦůఔԛ৮BόʽঐҌബ̈ాŒঘ̒׾҈ך˰Ƌˤˍ͔ѴըӀùࡺǝ࠸Ѿ౲͚؞֊נʆ௠ŐڐĥĠ̘ݿזګː٥̳ࠣžӇŃɏΆר࠾Цو৚̓ஆՎQτݸࢾҲːWҪңȦۜмਰƲ૜vసʡ݈̱԰ࡏ̀α̊ԩ̶ࠕ"]],encodeOffsets:[[[124701,24980],[112988,19127]],[[130722,50955]]]}},{type:"Feature",id:"CIV",properties:{name:"Ivory Coast"},geometry:{type:"Polygon",coordinates:["@@ϣUוǒ՟Wহƥ׍ʍ̯ࠫNjvÞۖĄŀ}ͨΣΚˉÈʕɲǾώčО ʔƄB¸ξÝnjĄŜ̸ĶȹڨȗΎæ˸ǘÞŊúɸųٮOƸʖƢgʎĦžΫȞłΌŰϚǽƦ˥Ϙǯ̎ɄϾŒֺɏɠ஡Ο۷ɕेθܣ›ͧ"],encodeOffsets:[[-2924,5115]]}},{type:"Feature",id:"CMR",properties:{name:"Cameroon"},geometry:{type:"Polygon",coordinates:["@@Ľ°ӻŇԝŒЋÅ൅nŬڒ͟֊ϧƚǟϖɋŦXɶɎתЎ߸ʒRԄӮ͈bҾΉ־˲ĀΔȌͺžь҆ΊǞךDzȊŢѨɜ՚۾ٲ¬˨ĠƲͫͰ‚ˌʂ¶ͮ՟Ê֏‹֏ҜޅҷTʁÏϥČǻЅӸөμƛŠΏˆ׃ſɩх࡛ȫƳÝٳČΝåʡЈѭð̴̟џϨ˓œϥĘʏÓґڛȤڷɜ੗"],encodeOffsets:[[13390,2322]]}},{type:"Feature",id:"COD",properties:{name:"Democratic Republic of the Congo"},geometry:{type:"Polygon",coordinates:["@@»ঙͶŕˑ̗͓ɟ͍ѫǯϷ±ګț͍Oهʍɹ‹ԃŗÝýҟɄϡÂ৥ưޝċѧǘӣӤҹҒ੕ͥĒ૿ƙɣĵʇՙȊχƫষĻࡇɨƫט͝ɲƴìٟࣟR·Ҧ̳ΨٟŠȋѰԣ˅ڧŞ˫ϢՕüϽqµʾ́rϥºԳųιtȻû®ৄ˩̸ÕԬŬԒǝ͖eՊ৳Qò̢ѕG­ƣԵɁӧűȿҫŠˣş։å͏Ѱȗ˖ʋԌȷض៛\\̍ķʑh΋œşʼɊʀμƎɎ̪ǰɚđ˼͐ҜSÄʃ̼ƩӶՄӨШɆːƒ۔θࠆϬўքМĪˌt̰Ǝ̆«ӊŀݖǐԾʦ҈¸Ԕúה͜ѐҊ˔۔˷՘ؚ̳ĉظǏʦԖŘÞϦčनоͨDZ˖~ŴȲ̺ðلėբoˤĚԘۙϘķɤƖϲÅҶDzȦΫ݊֏"],encodeOffsets:[[31574,3594]]}},{type:"Feature",id:"COG",properties:{name:"Republic of the Congo"},geometry:{type:"Polygon",coordinates:["@@̿˾ʩƗͻγۏࢸٖҪ̓֌˾ɂ֦ĺäό҆Зݐ•ʴЈł֒ĝڀЉӺζ঄ȽǘسçɻѢÔξ੘ڸɛڜȣÔҒѰ޲ԆѼ֪Ɨդ±·ԓʥ҇ǏԽĿݕ¬Ӊƍ̅s̯ĩˋփЛϫѝηࠅ„ۓɅˏӧЧӵՃ̻ƪÃʄқT˻͏əĒ"],encodeOffsets:[[13308,-4895]]}},{type:"Feature",id:"COL",properties:{name:"Colombia"},geometry:{type:"Polygon",coordinates:["@@ΫȤЭ˨ʅƅ܉Ŝȱΰƽ_࠿Ӓŕʺ̼ڛтȢ̦иÊΞՆ͐Ѵ̳ȦDŽӦȏސǸɚƃ܄ͻ҄ņТ˔ÑǂʠțӶĺŬѢـהΌĚT˦ƺ܂ӖϸՊfäǪڂéڌъ͞ȊОК̖»ɚɛǍ˱գƕɇп͗ʋʓ̷Ĺ׵ɷӭѢÇņϭȄȁâ͹ij̵ˆǫȸéȨ̉ઊĄӦŃעܡͼĚ؂­ӐĪ̔ƟƱҍȇ˯ß׻ǜ֑ʆʟ†ȉэл̨ȃɠ̋ʰ࠹ǁĻǏӸɷˊ˥́࿕lZԿӰē…͏ǙĔҿƑK؏ώ̫ƀӓoηϙᘯп҂ʣpժࡤٟϾԍị̈ƤҧɝصŀӵࢤϳɐˍІ֑Њɡā"],encodeOffsets:[[-77182,-155]]}},{type:"Feature",id:"CRI",properties:{name:"Costa Rica"},geometry:{type:"Polygon",coordinates:["@@җȆǟǮĬƤ‰ȄɷȪͥǔ́ņÅʖəƮÄʑǗȩȓɸˑĊŗǞLʮŎˆʁŠȖnjŴňֆɝȖŊˊéƔǥʜÇȪDzɈҙ͖ͷЂΩ͗õLͷǪűűıƱëǟ©Ǖ"],encodeOffsets:[[-84956,8423]]}},{type:"Feature",id:"CUB",properties:{name:"Cuba"},geometry:{type:"Polygon",coordinates:["@@ܨÑڊW߄˹̭ͮ޺Ĩ̔ȡ܈ԳԺϛˢ\\ԆǟÕʁئ“ٌ΅ıȟ֑Ń֡¥׃âளą֜Ҷ΁ɔէÈ̃ʐȥӎӃ޵ɦʥǬભž̋ǐ̀ɀࠗ¨׿ѧΏ[ťȳеğΫĂѺʸǼ̤ϞȈіǎَĄȰĢ"],encodeOffsets:[[-84242,23746]]}},{type:"Feature",id:"-99",properties:{name:"Northern Cyprus"},geometry:{type:"Polygon",coordinates:["@@ÐJŨȮ؄Yކʢ֧ΧÔƿęˆLJÙűj¥iĎѾNjVɫïƿ¬"],encodeOffsets:[[33518,35984]]}},{type:"Feature",id:"CYP",properties:{name:"Cyprus"},geometry:{type:"Polygon",coordinates:["@@€ãࡱͿЩŊȟͶЎŒǀ«ɬðnjUÒ½j覎ŲiLjÚ̇"],encodeOffsets:[[34789,35900]]}},{type:"Feature",id:"CZE",properties:{name:"Czech Republic"},geometry:{type:"Polygon",coordinates:["@@ϯǂЁ©ٵʲ̏Ùҿ΅ر˔ӃΰѕȬėΠƧʠؒǾ̸Ⱦ׾ǎɂdžɜīϒĖЊ˓ؼñ¿ɳҘǧŲɒּĥĄʿز»ϮЯʡCŽƯȕ—ÅȑLJ¡wý˹ēϋbšȁ"],encodeOffsets:[[17368,49764]]}},{type:"Feature",id:"DEU",properties:{name:"Germany"},geometry:{type:"Polygon",coordinates:["@@d͗ࡔțS̗ࡢǂҾɰॊͧІˋȞёɹɣ̨̙Ⱥ҅ß́Έ՛ϑĕɛĬɁDž׽Ǎ̷ȽؑǽƨʟĘΟіȫӄί̑ϯ̟ŃŢշýƛʿǤЕ~׷ƭݍ–ţɛыɺʩ±࣑ʲǥǻ܍Nń״ьֺ௅ƸЇɘ´ςǗȐĨ֨ƗࢢԎ@Ɉ͂Ⱦޔƿ˴ǐDz۰°Ƽȃ֮вȓ̀ӈٌōՠŸ"],encodeOffsets:[[10161,56303]]}},{type:"Feature",id:"DJI",properties:{name:"Djibouti"},geometry:{type:"Polygon",coordinates:["@@ȤʹΑӏȩήɯ̱҇ȅƬȭÏҷb_ʮßɶ˴Ѐ̐ϊήñʪȴ"],encodeOffsets:[[44116,13005]]}},{type:"Feature",id:"DNK",properties:{name:"Denmark"},geometry:{type:"MultiPolygon",coordinates:[["@@ԋڹ࢟ӄŝΒ௼˨ˎу"],["@@ȵ̓ʡĞ؁؁ɮХ՟ŷًŎͽҲ}࡬Ɣɪʌʦ݌À̐ɴڮʂƒѝʟ˙ĶɽҘŵ"]],encodeOffsets:[[[12995,56945]],[[11175,57814]]]}},{type:"Feature",id:"DOM",properties:{name:"Dominican Republic"},geometry:{type:"Polygon",coordinates:["@@ŀƞپIӾɏɜtƴ̕Ҡhʡϐ‰Ю̷̯ͿЍǼϫ•ˡ¢ƱƵ͑½ŷȲˣťͳֻɏƆ§ʎjɬɍʦȲƚÞ͒óҜ"],encodeOffsets:[[-73433,20188]]}},{type:"Feature",id:"DZA",properties:{name:"Algeria"},geometry:{type:"Polygon",coordinates:["@@ᮩཽᝩ࿷இϑटćU՘ϵƌԹʊȧЀᬻᆴᬻᆴṕᎠfnj@ÊQ঺ബب࠼Ÿێɦ͎тচͪ˜جӢòϞ̶સƚƸ͜ɛDz̃ࢲ¹Ԟ́ՠ߰ҠࣦƢՌΎ߶ʰ෎Ƭർæшůߊͨ࣌P΀ȝֺ¾ǟћƄߟȡۙԭҵôمۊԃRȯԮ͹Ϊຝ˖ݏ°ϵƧۇÔϥŃҟòՇͫΗӺؓŽέ̘ҵϼƸڒϷςՃ"],encodeOffsets:[[12288,24035]]}},{type:"Feature",id:"ECU",properties:{name:"Ecuador"},geometry:{type:"Polygon",coordinates:["@@҂غǻξ͍ϵԉςǞʀƙބ̎ŴƺԼ͆զÍ΄ҢǸ׀Ͱࡀӑƾ`Ȳί܊śʆƆЮ˧άȣŞٓʽճࣷ࢟য়ͧԥܵǃ֣Ӆ΋ΙъͻĞ΍áw̮ʈȨıΔ"],encodeOffsets:[[-82229,-3486]]}},{type:"Feature",id:"EGY",properties:{name:"Egypt"},geometry:{type:"Polygon",coordinates:["@@ɽͷǹىɫѩȝƥ˩˔ϛϒ׵ஸđùΐࢯԪࡋٌವ̴ҙ˒ӃݮछǗƣ‚ճ঒ݭƨǣΏ@Ὁ@⁩@@ᶶ@Ჴʥڲɐ԰Żά̤Ж૦b߲ɝ࠲ʛϴſ٨ˊΌʊݎêװŃɮеȜ˜ڨȣټ³аɄւ෽"],encodeOffsets:[[35761,30210]]}},{type:"Feature",id:"ERI",properties:{name:"Eritrea"},geometry:{type:"Polygon",coordinates:["@@˻˖ΉӰϋ˒ɏܷ̄ͶֻXȭǬӯȡԛϢʽط঑ǬęʹβఀĊ֒ˆʴؤƐьӒӦঃɴޗҢУବߏҲӍҖӝˀ˿аʧʩȳέò"],encodeOffsets:[[43368,12844]]}},{type:"Feature",id:"ESP",properties:{name:"Spain"},geometry:{type:"Polygon",coordinates:["@@¦״΃θஒ؆ਊƱ૾NࣂƝۦªമƒͰ͛໺ϡ̨ǺीϝআŊ®ӥߓ֓ઁǯõ˱ԩү͕ہ͞ӑӟϑǹճىǗש٥੧_ߟhՃ͍̓ͅЩê̵˴ʃӚ޷žé˦̶̀Śɬ̃ʢɶրͳԌδè’ЈƎŬZپϲɪɻфөˆƝŁӹCɁЬ΃ū̥ɇ"],encodeOffsets:[[-9251,42886]]}},{type:"Feature",id:"EST",properties:{name:"Estonia"},geometry:{type:"Polygon",coordinates:["@@ĮӸ̱ŁՓ̘ñӘਫ਼ɼ੔Ũ࣮Ƒࢂ|Ŵƣׯӝʞ޵ΫˉۙDܡ̸ρļ܏Ʃ"],encodeOffsets:[[24897,59181]]}},{type:"Feature",id:"ETH",properties:{name:"Ethiopia"},geometry:{type:"Polygon",coordinates:["@@ԜϡӰȢȮǫּWܸ͵ɐ̃όˑΊӯ˼˕̏ω˳Ͽàɵ`ʭҸaȮÐȆƫǽ̴̕ҧ̴Й̛͎ᩨঽۺNᛛᡃફ™ݟףաeɯ˅ַB͹˴ލΙʝΓ֕àȃĬȟwˇT੟܌ב@˹ˢ@ҾѧƘӻࣴϥȚƧʹэЦԧÒ˸ӐҀrŲʰ[ݲʞࢠЊɾĎ΄ήٜԔи΀ࠠƆܠ঒ǫʾظ"],encodeOffsets:[[38816,15319]]}},{type:"Feature",id:"FIN",properties:{name:"Finland"},geometry:{type:"Polygon",coordinates:["@@ūיಀ֓ޡى঎ख़֡ܛݴس΅յఘֻ́ѓޭӟᅡੵໃá๑̯ൃǯӡҞ߿ˠȈࠢСݶАӪނՆ኎࣮֖Ǭē΢ୟЈ˳͜uಒ಻ֲ૩ЪԊɞतѻલ¦ࣘȭߠϊЬ؞ಬ˶઄ͯΡכ"],encodeOffsets:[[29279,70723]]}},{type:"Feature",id:"FJI",properties:{name:"Fiji"},geometry:{type:"MultiPolygon",coordinates:[["@@̂ʍƓѭԳŗҩļąτ͖̀ϤĻȼƐ"],["@@՛ǯŅ̼оǤˊ°Ӱˀ@ЧՕȷ"],["@@é­@ШǨžĽЗ"]],encodeOffsets:[[[182655,-17756]],[[183669,-17204]],[[-184235,-16897]]]}},{type:"Feature",id:"FLK",properties:{name:"Falkland Islands"},geometry:{type:"Polygon",coordinates:["@@৘Ԍ܎ȿԌʹڦϙʥ̋ଋʥϙ̌܋ϙпϚ"],encodeOffsets:[[-62668,-53094]]}},{type:"Feature",id:"FRA",properties:{name:"France"},geometry:{type:"MultiPolygon",coordinates:[["@@ˣ٭ϡǠș֢ǜ̺ը͎Ɯܛ"],["@@הЅќà݀ϥȊñʎjЈɗெƷыֹŃ׳ɱƝϣü‚ɇؙҽ]ϟВƀ˾ρ“ʁʚ̿̅ʯɐٱҖŃĩηݿӅစɬ௧˗ĩԑঅʼnिϞ̧ǹ໹Ϣͯ͜ѢԎdžူࢁࢤإю౹͒čؖઠǾථɏˇॎߌέዠپʨێܾǞŪ̑ϸ_ϸ͵"]],encodeOffsets:[[[9790,43165]],[[3675,51589]]]}},{type:"Feature",id:"GAB",properties:{name:"Gabon"},geometry:{type:"Polygon",coordinates:["@@ࡹࡔ։ۚԙࢄ‚˨ǾˎȲؔǜخ˴¶௢SOৠЌÆԞőӼňľ¯ÓνɼѡشèȾǗεঃЊӹĞٿŁ֑ʳЇݏ–҅Иãϋ֥Ĺ˽Ɂ̈́֋ٕҩ"],encodeOffsets:[[11361,-4074]]}},{type:"Feature",id:"GBR",properties:{name:"United Kingdom"},geometry:{type:"MultiPolygon",coordinates:[["@@҉ֽًǦԱ[ǦҊǥ҈۴–ࣔԳ"],["@@࣋ࣧࡦŘऄIɕۅݯݩࢄÃäĕݠ঱ֺƇԬढ़ʈͧৰDžķ՝ѓʗͲѣݱѯ૳Rෝɱϻǒ։ϿޥĪם͍ҁǘ௼ࢨݪǺOBಽƔʃͰ࢜ʺҡҐdžռఢ÷D@ŮӤ֛Ԯ_\\৵ƨȧɬ̨ϒˡɴҍЇ·߶щє̨ࢆٶھڤá০ì"]],encodeOffsets:[[[-5797,55864]],[[-3077,60043]]]}},{type:"Feature",id:"GEO",properties:{name:"Georgia"},geometry:{type:"Polygon",coordinates:["@@Ųάȿִӟ̲ҭĬ̯ʴĺIJ܄ƝఆƋଦЕƦƻԚƂ޶ǭʴ·Նșɓřвғŗıҏºصʎȵƍଢ଼ſ߳Юࣅ¡"],encodeOffsets:[[42552,42533]]}},{type:"Feature",id:"GHA",properties:{name:"Ghana"},geometry:{type:"Polygon",coordinates:["@@೉ӯҳ˽ݳʑݡʆœͨηܤɖैΠ۸ɟ஢ŗنrӊฤ¢ϊÕ˔ƊϴáÕʿΖџC؍Ąڍɂ̫ȅݳäйɢՓȈ̍"],encodeOffsets:[[1086,6072]]}},{type:"Feature",id:"GIN",properties:{name:"Guinea"},geometry:{type:"Polygon",coordinates:["@@ʃtǡͷʁJǏǴÈͶΗԨɕħǵmɳ³V̮Ƈɘ‚ʔǻΜɹ̜ڥDțǁɵoƝǷīɹ҅σρӼ͛͢ɋŊȿǖħϊūȂʓƐώЦʮeɖƘȄDƄŎï˨ĢĖd˶МU؀ȱȄlÚĤҜáŨ´¶̭ƆBɖŒƔƒɸɇάãɲǺ˖ŒȬŠǚuȈȁĴɳΆΙǣɏ˙ǴĊŀį«ʡʲʍǗÝå˷Ș΍Ⱥڧ̷ĵăśÞNj·νƃA"],encodeOffsets:[[-8641,7871]]}},{type:"Feature",id:"GMB",properties:{name:"Gambia"},geometry:{type:"Polygon",coordinates:["@@ņόࣶzȎȦˊ`ͨȷʼIˢƚǞʏεȋιdέǰ̷ȗƭQȫŝއl"],encodeOffsets:[[-17245,13468]]}},{type:"Feature",id:"GNB",properties:{name:"Guinea Bissau"},geometry:{type:"Polygon",coordinates:["@@҅ΘΝÈȕʀLŸʯǴÁǶѼƌ˦ɦĨ༈•c˵ġĕð˧ƃōȃCɕƗʭfύХ"],encodeOffsets:[[-15493,11306]]}},{type:"Feature",id:"GNQ",properties:{name:"Equatorial Guinea"},geometry:{type:"Polygon",coordinates:["@@ƿŴ़̀െmPয়௡T˳µ"],encodeOffsets:[[9721,1035]]}},{type:"Feature",id:"GRC",properties:{name:"Greece"},geometry:{type:"MultiPolygon",coordinates:[["@@Ҡ˱ٺ¶شÑqƣҜĶĿʛ௃íTƒਁǎƺΦ"],["@@ʹՁȥĥԟ|ѫĀৱɓ׌ҿяƋҳAѻўƿȁȊԅрЁ̓ǿҴϯжʑ^ӅޥɠʜѕՓĕ͈ݏ֏Yۍμ̿ڦƧ֒͝ϮљӐÉʆϸТ¼˚˘Ũjɚռö͌ȀҖgƒƦdž„ت{ڨɲע̉ކĀVмЦɝ"]],encodeOffsets:[[[24269,36562]],[[27243,42560]]]}},{type:"Feature",id:"GRL",properties:{name:"Greenland"},geometry:{type:"Polygon",coordinates:["@@ᬜԆ᱒›ੴ̴ᲈĄ䀦Ŀ㉊ڗ༅͕ộ™⭏ćшƫᲐĠᡚ́࿈ʴۦ̝इӧᒞ̺✘͚ᠼNjҾΫ⃝ױӃȕ᧑ơወ¡ছؕگկ€ध৚շಽ“൧ˇ༂ѽȢ܋࣍ýઞܡህÑঈ΁˟̑இŽ୥E੆֩\\Ϗပΐћɣଌȿ઼ԣ͈ڱກlj٫͖ਣӘ˼֭উѵᕖ•୆¯ᖯܵᗿڏឧ́ओIࢅ͓ୟࢱᅵכׅ“૧ȷ஽ȝܛԱ[כыտോڧͺٿϗ۝љࠍஅ½఍ۈဿLࠁҢ֕ࠐฝਲэոŗݮ୓ޢ̢ئ֗̒ࠪচొ̺ͨΘǬڀॡ̕қůݯţਏ˜Éְ͢҂ެ\\႔ɟ෿Քݩ˾࠷ş۫ȼम޴ԝ̺ڗ׈ৡࢼ੯͚XΚᖷӮᄻÖᖟ‘Ꮕ×ইˌวՈᕂ˄ၚ¬≹ɖ቉΄Ś͜ẊИᶎИ̪͘ᗗ̠ܺͰ᯲ז௢ĚΓϘጲɜᣚƂᣖRࣺʽᕺҨፘ̽୺áპ˙ፅҐŘή"],encodeOffsets:[[-47886,84612]]}},{type:"Feature",id:"GTM",properties:{name:"Guatemala"},geometry:{type:"Polygon",coordinates:["@@ћƦԻfϩǖҍΌrʖĮȠšƾКۆ઄Ft˸Ƌ¾ġǺ̵Ț̹ˬϜDBӂ޸BަUOڗßॅʤ@˚ƱòŰʘŃϥ͍ЉɻÏljâǑǧɇȟ½¬ıƿġ˽Ƀ}ŭ"],encodeOffsets:[[-92257,14065]]}},{type:"Feature",id:"GUF",properties:{name:"French Guiana"},geometry:{type:"Polygon",coordinates:["@@͉͑ГÑŗʀȉ–ʹɩνǦɈΪòϤƢή͛ӸáֺѪܠ˸ğؤȥࢸۿƔ·ӻޑʳأ"],encodeOffsets:[[-53817,2565]]}},{type:"Feature",id:"GUY",properties:{name:"Guyana"},geometry:{type:"Polygon",coordinates:["@@ր̯Դյzџ̈́o҈Чͪ̇Ƈݱԛɕ°ȣƹџϊ؏ːAŎӃԢܳȱ‰ҫî˙ɡϟƥ˅—ġǑЭ¦ԫЀÓϴɋьƆܐɸ̐ȕϸ˿ŶŊτțȘѩ™ْ֩ɬɲiϲԬƊȾƾ˽̸ô̬ږӲ"],encodeOffsets:[[-61192,8568]]}},{type:"Feature",id:"HND",properties:{name:"Honduras"},geometry:{type:"Polygon",coordinates:["@@ơˀʭòÐʹŗĞǣÒσij‹ŔʩƈǷǚʛìǨɈáǒÐNJЊɼϦ͎ĔȂƨʊ\\þ垦ϸùϲv˒ĢİĦˎ©ȪÉɘnǖòϨśƄkʲƿʐį̏Źɜɳ˽jśŕ̇ŋɃAȅŃǙœƛźĕ{ŇȩăRaǥ̉ɳƹıđĽʛǞǹɣǫPȟqlЭūQĿȓʽ“"],encodeOffsets:[[-89412,13297]]}},{type:"Feature",id:"HRV",properties:{name:"Croatia"},geometry:{type:"Polygon",coordinates:["@@Ȳ͗ˊʇ͓̓ϝȆׇ[ܟƔϽmǻǧ̝ȖǫΑЪϽǼʹϮ̽͌ȃ͆Ηݔ͇ġƛ߃̶ӣ̢ޑʠ۹ؤǞØϥΞe˲եƄʱγʝˮn̆Šbג…Ƹƚ˸ƍͤgGɼ̈ĒĈͺڞɠˊĻؼέۜlj̼Ų"],encodeOffsets:[[19282,47011]]}},{type:"Feature",id:"HTI",properties:{name:"Haiti"},geometry:{type:"Polygon",coordinates:["@@Ԣ™ܰƁôқÝ͑ȱƙɎʥiɫ֏ƜЅÍԡÔϽƿ҉ʾö˔ޜśيã̢ȈϧθP͎ՋžȌɶ"],encodeOffsets:[[-74946,20394]]}},{type:"Feature",id:"HUN",properties:{name:"Hungary"},geometry:{type:"Polygon",coordinates:["@@˨ըǍǼӂDÜ΄ђɋ̲ğ۸ļäǚͮ~ЦžĜÃЂŀȠȢˠ¼࣒ʭǴĒҲɭÎɣԡǭЉ֫ԕ֭کǁԽš١ə̻űۛNJػήˉļǍ˴ƗV"],encodeOffsets:[[16592,47977]]}},{type:"Feature",id:"IDN",properties:{name:"Indonesia"},geometry:{type:"MultiPolygon",coordinates:[["@@Λe૝ך޴ǒѴʭ̎ʭ»ɩ"],["@@ܙȁijĶø˸ΰԢࠨͬĐǓfʫշع"],["@@̢ɣԲèȼΥॿǛ׉őҍP̀ӚҤPɤ̖"],["@@ūұ౅ʅૣľE̬ښǪՂʥ֔Üݬ̮"],["@@ྔċȂΌ༘З̪կీƵਐӿय़͋ऍ͸ݻwࢍØ޻ưঅ͎؝ČΓŁ໕ΌƣΰޑØּߤ৶·ڴ͡ΒÛŘ̗"],["@@ѝֱćنƬ̠Ǭ˴ȒʗCЏ"],["@@̿˥ׅƸǏΰࡘ¢Ⱦˣ"],["@@̨ٝۿΌۯìӃÅׇˆȦҦਠ”ऎʕ"],["@@ɼയ࢈ԉ۰ࢼ८ԔݜBܘ̉خ̛ࣘLJbᩑbᩑݟې࡟ǜȷʇ੡}ΦۂՈɺɕࣲЕ۸࿃܆ۗêృަʛУ͑óȏ̮GκٛЮ̢ࣞ״gëɠ௵DͩԄݥƺΡдଈȰњ˜ഘ·Ƃ̹"],["@@ڭ࠭كlj߱ǐඓ¥ܽŧţٍݪݛҒϠ༪˸çϯλŪιӯ͙݉ߒ੿Ƶ˿ݲॻQտ҅ʙ̐͡Мی࠙͗ȻɶŊ͖؅ӲØࠌ֕ʭîও”றՓũίʚʌޜŽ߸ΛPʻֺΎվŤښф౎ǮΎ܎ذپʛ੖śॴ–ࠨ؎Ʀȉ"],["@@©ܽџĈŷԝΌѷɽĵ͹Ւʟ੺ǚڤ˨̨ÔҝӸóĀ΃"],["@@सާহį˫ֵšݿַ߱u࠷͕౻ŭ̚ॕϙͫԤ׳´лːৃ̟̩Оս¯ۗĬŹૺнɺЕܘŝ݀ĮުԂ֐Ɩָ֗ӅըǠ՜ÑӪъЖôߒɽۆǶњୠ͔̈̆क़ॲ@ܰƙӍݷآߓơϭ"],["@@छkۻ۰અۊέԚٍۄзؾٕ୴۪݅ʙܠ̳ڀݵՊѭܘمҺࢗऒóђզ‘ಢNjݔࠓٮ֫ҪΓߔࣙࡢ_ۺֹӠ۳٘ϥͳۉӖ̞̅sƜו̊ҵؠõФՏɁ਱‘ಟ"]],encodeOffsets:[[[123613,-10485]],[[127423,-10383]],[[120730,-8289]],[[125854,-8288]],[[111231,-6940]],[[137959,-6363]],[[130304,-3542]],[[133603,-3168]],[[137363,-1179]],[[128247,1454]],[[131777,1160]],[[120705,1872]],[[108358,-5992]]]}},{type:"Feature",id:"IND",properties:{name:"India"},geometry:{type:"Polygon",coordinates:["@@ࣚটďۅͮїѕ׽ŒɾएࠜՑ୞חՑϟ͛޻ࠀͅߊЭરһସʼnӜёٮāৠȝ۪bĪͪŋՖÞβԠǮìڋlǙކ͉Ոƀ܀Çۈ|ÐԪ΁ˎڴŀވشॸ՘۶ȷ״ΞЀԹ˳Λ࣠űÜ͇̍Ʒèԫ׷Ʋછׅ~ӓҩ۵§ХϏۗځȒࢇȏ˹ĚΣгȥѵ೰ɵEƍ՝ҡѦʸӎϖ¶ϰ܆ӝƜީ]ߝŚóאБ¤ڕζ֭̓؆ѻԿ̻ȅ̩Ԭɣƛԑ̆كžەţֱ̫Zਛǩ´ك҃ӻ௃֡ळ঩كՋ࠷ջCϭлȹݳ̝Ͻ«ʥٙǪધ®ۡΣߙI෗ѣ¡ϣٙʰˣދʃ˱֯͵ʍߑ޸ϳ୴͑ࡒ̍Јѿ߰ȻੂơՀޅ଼Α࿀ʣ੾HৰǍ޾௣ԉףĶ઱৲И̤ʝͤড܊֖֔ᇜCǗܞҽюĩ٨ջϘऒࢢঊÙ࢞ࢢՄ࡞ࠄࡈ_״ܒӠڳд֪݂̇̕Ьβ౤ȱपŰߺ۸"],encodeOffsets:[[79706,36346]]}},{type:"Feature",id:"IRL",properties:{name:"Ireland"},geometry:{type:"Polygon",coordinates:["@@ƒ׷ًݣ๯ӹ஑Ŷڼ࢚ѭࡢତڄٌϼǦ҇ǥ҉Բ\\ٌǥ"],encodeOffsets:[[-6346,55161]]}},{type:"Feature",id:"IRN",properties:{name:"Iran"},geometry:{type:"Polygon",coordinates:["@@݈njװӔ֚{τƾװýघэڤğ।ݓظ‰òۻ΁਷ɱؑκŭΫҡˠڡàՓِƙæեݿݿжѵ͸ԓߦυx݉ДƋêϯ௉ѡ̓উཌྷʪࣷȖेŊΧਐЕƪ٣ƭࡑНਇ˦ࡑ٦߳ʈ֗ߘا૪ҍƋՕ˦̻͝ҭѴS҂ˍ@Ɛ،ѝٔ਍Ң׉ߜȜپц̂ÙӬտʨխ৊ҟڨǐʼʿ६ּʈƄͅъϯ־ő̤~রئ̀Øʞʙ́гԼѱȾ¦ˈإߖǩ׎у஠ƟಾɞĄȞ"],encodeOffsets:[[55216,38092]]}},{type:"Feature",id:"IRQ",properties:{name:"Iraq"},geometry:{type:"Polygon",coordinates:["@@րʧÚӫх́țٽ׊ߛ਎ҡўٓƏ؋ˎ@TҁҮѳӿ¤֟ê؝߭༟äᛍၖఫךৡɪ͹৾ᇶ࢔͆৬āؘҢȺјԾΰž঎Ň̐ɉЖƚծ৉"],encodeOffsets:[[46511,36842]]}},{type:"Feature",id:"ISL",properties:{name:"Iceland"},geometry:{type:"Polygon",coordinates:["@@șիॊֵથٙᝓֹܣƵૉŮᚑˈࠠψᆧЪ๪ǎ—ʘᄋȜ֨նౠŰಸ֭౨Ҝ੒ʃൌ҄ආÑ"],encodeOffsets:[[-14856,68051]]}},{type:"Feature",id:"ISR",properties:{name:"Israel"},geometry:{type:"Polygon",coordinates:["@@ƥ˅̣Ŝǫ֓ɂĥɋř—ɛЄŖp͛нഉց෾ʔˢ˶ɞϼǠيŤɆzVˬCþƦɤ\\`·ŕŵhM"],encodeOffsets:[[36578,33495]]}},{type:"Feature",id:"ITA",properties:{name:"Italy"},geometry:{type:"MultiPolygon",coordinates:[["@@̟ڋŲʹǭѝٝ̈́ёĞ୩ѐŞќজûࡪĠْò"],["@@Ԍ׭ş૕ϣÂ΁˫͇ɞ‘২ȓӒҨ¥рʼ"],["@@ரɏĝЯȬΧڝŪہ̗²зĻʇˠё߀чцۛदڱچLȲȃɽǗݪ̥ؠʩܜѫĔƿƽ̛үϼܳƐΝի؈̷ıѫΗ¹҅ܛΕÝHʲǢҊǼǶ͝ӤʱшΑŀʛδգƴεͶثÆٿϜޑմ֯ӜʿࠪйĮہˤϯŕӝϵΓÕĪθҕńɏٲ̆ʰʙ̀”ʂβǵМ¢Ҽ˶ƢƃА€ǼͺتĿψƚâΆԘšĮdžࠨƤȊ̉"]],encodeOffsets:[[[15893,39149]],[[9432,42200]],[[12674,47890]]]}},{type:"Feature",id:"JAM",properties:{name:"Jamaica"},geometry:{type:"Polygon",coordinates:["@@֢÷ҀȫƔɯןeʭƗҹƊӑ̪ĶȔΜÎȒƒ"],encodeOffsets:[[-79431,18935]]}},{type:"Feature",id:"JOR",properties:{name:"Jordan"},geometry:{type:"Polygon",coordinates:["@@Ʀˆपͫ࿪ࣆͺ৽Džų၅у࠸࠿ˣƛƑ˭ٙřȩ̡εʵधƆƒŨоഊo͜Ůʚ@Ԥ"],encodeOffsets:[[36399,33172]]}},{type:"Feature",id:"JPN",properties:{name:"Japan"},geometry:{type:"MultiPolygon",coordinates:[["@@ņ˽ҿԕΉːљțɝӭշʈRЊҬԆӌīΊΜؠǹ"],["@@́ڡƤсѩף੹Ѓ๏½ணॡ͔֡“غษȃষЃঝe࡞أ֗෗իΝН͜ȶݶՏʒͿ־ߐʶѲՈࡌѢ؞ָာʤ࣎ǣࢠ๺֔Б௾ࡀӌ͜ՈਈƟा΢ՎࣀƸҞୗ}ڻޥࡍbࢁ"],["@@נǵרΤȈहఝɯ݁࠱೓ָқँण]ř࠴д٨࣌²ʖ୐ʜټন࢓٤˯"]],encodeOffsets:[[[137870,34969]],[[144360,38034]],[[147365,45235]]]}},{type:"Feature",id:"KAZ",properties:{name:"Kazakhstan"},geometry:{type:"Polygon",coordinates:["@@ӕƹ્דο׹̹KɱЊ੫‚ǡێХNÚࡆ৓ؘ෷ßডũߣݶۋ͆ಥ׼ƽðᓗӹᶽљ£יچ֧ɼॕǩχ˧±ȲȶΖDž̊অ˺ϛݮҩɆ…˜ࠊāŽؘ܎ƎܼűƲࠎƭԲ࠿£܍ȴঃσ޵ǭяƌĐўՙ֘دw܉֬ӞِʕǢڢऊࡺӣŀؘჄࣴಾtᇢ׉঺ͻࢼΠ೰j੺ѥʔʠ୼—ɂЊഷ׀߮Цƿɮ߮ɔ؅ֺϬ˼Ḯ̈ШȺᑆ̴ݰΒຢǹ˄ࢉ࢚Ȳઆ˹éҝ߮´ᑌߎ̭ˁ੶٭ሠᒑ҄ѰୄӛீɎҪƯКӟטNjΨΥ઎ŒѾԣٕ֓ۥÿ¡ࡅұϝဟˢ؅ຑїȇဗͱݲลֻɓäӏԭŬу̠ఝĖඃx̧ġ஥ΞӉǧŽӹ൩̂փşȉρ"],encodeOffsets:[[72666,43281]]}},{type:"Feature",id:"KEN",properties:{name:"Kenya"},geometry:{type:"Polygon",coordinates:["@@ӾۙיͱȹΕ̿Õšףˑ͹Ǐ֑ͷ˥஻ࡀËӤᵁႌƙĢSࢺʊ;а֌̨ؔσ॰įтЉ׎ԬԈ֬ֆѨƗ@ҽ˺ˡג@੠܋ˈSȠxȄī֖ßʞΔގΚͺ˳ָAܽ॑Xᵣ"],encodeOffsets:[[41977,-878]]}},{type:"Feature",id:"KGZ",properties:{name:"Kyrgyzstan"},geometry:{type:"Polygon",coordinates:["@@ȊςքŠ൪́žӺӊǨ஦Ν̨Ģ඄wఞĕф̟Ԯūşȏ೛ғ̙ͭઁıͅ՛ࢷŒׇǏߣЇŜȟʇȓཟŵਡ˘࣫ÝĂӜࣴƕ̮ʸٖĉ੾؂঻ѸױȽإ͂۶ծʟĊ"],encodeOffsets:[[72666,43281]]}},{type:"Feature",id:"KHM",properties:{name:"Cambodia"},geometry:{type:"Polygon",coordinates:["@@΁Ѭыࢄȣ২ՠۨઘdž߀ťۚ͡Ϟׄݖ̱Ȝ֕Ļ৕ඳ٧τԙࢥÓܫͷ۱Ū"],encodeOffsets:[[105982,10888]]}},{type:"Feature",id:"KOR",properties:{name:"South Korea"},geometry:{type:"Polygon",coordinates:["@@ܨযȺխPॷ̓ҥݽljڥΏݳïĥҚƼـχ࢔ذƚֻܘÂúϒ‡͞Ϝצ¢ΨÈŨȮ"],encodeOffsets:[[131431,39539]]}},{type:"Feature",id:"CS-KM",properties:{name:"Kosovo"},geometry:{type:"Polygon",coordinates:["@@›ǣŃPĘ́ȩĐdzɦƾȌȪÒŜ˨ư²Ţşƾ¿ŌƅƒŸǎƻŢLĥȳijij„×ȉӹŻ"],encodeOffsets:[[21261,43062]]}},{type:"Feature",id:"KWT",properties:{name:"Kuwait"},geometry:{type:"Polygon",coordinates:["@@Ǭχõȓ˔هשuȽАݟĆ؞߮֠é"],encodeOffsets:[[49126,30696]]}},{type:"Feature",id:"LAO",properties:{name:"Laos"},geometry:{type:"Polygon",coordinates:["@@˚Ϝœ܆ڹܸ¿ٕࠦھٍÎǛ̉ӯyʣƨࢯԅoݬȸࢮ֧ž³ԎηʸǴ̲ܐնøȡ҄wŵ०ѦŬӮڏϖޅਚO͚ܹ՝ɗʉ̟৔ԉۦ঳Ռ݋َ׏ɄץƵ࠿ݕ̲ϝ׃ۙ͢"],encodeOffsets:[[107745,14616]]}},{type:"Feature",id:"LBN",properties:{name:"Lebanon"},geometry:{type:"Polygon",coordinates:["@@ɣ[ýƥ˫D̘ۄмעfˆϘ§Ɛͣқ̓ȷҟ"],encodeOffsets:[[36681,34077]]}},{type:"Feature",id:"LBR",properties:{name:"Liberia"},geometry:{type:"Polygon",coordinates:["@@ɗQࡽАޅٖ܏Ң֣ըȪː¬ʔϜҘϺϺǶnɖĨΘԧÇ͵ǐdzʂIǢ͸ʄsŸʓĎНǽύʖɱˊÇΤΙ~ͧăĿÝە"],encodeOffsets:[[-7897,4470]]}},{type:"Feature",id:"LBY",properties:{name:"Libya"},geometry:{type:"Polygon",coordinates:["@@ק̷ҿҤ೧βρՄڑϸϻƷ̗ҶήӹؔͬΘñՈńҠÓϦƨۈ¯϶˕ݐШȜðΠėΒ־͔ʶːЦʌ´٦দ́ΜðۮƓ૞ϓЀݛݮǍஆΙࣆйЦɔЖϮț٠˂Ф؄ЀׂŘ଒ǣ˺ϑ̺Iˌƛ࠴ıȲˣ̣ЕżΫɏԯʦڱ@Ჳ@ᶵ@့ॱGYΙ‧ྐ‧ྒࡓҟ"],encodeOffsets:[[15208,23412]]}},{type:"Feature",id:"LKA",properties:{name:"Sri Lanka"},geometry:{type:"Polygon",coordinates:["@@ų࢓ΙʇܵȓЍڜƫீϠ഼׆ұϺסО࢓"],encodeOffsets:[[83751,7704]]}},{type:"Feature",id:"LSO",properties:{name:"Lesotho"},geometry:{type:"Polygon",coordinates:["@@̆ʩʳУƛ˛ҳſƹˍ̛ċؿ٨҄ՐҖ͢ϼǠξʵ"],encodeOffsets:[[29674,-29650]]}},{type:"Feature",id:"LTU",properties:{name:"Lithuania"},geometry:{type:"Polygon",coordinates:["@@ãɊĚɲχƄࢡƨDZ۸२ʴඬÁࠜĊŞǩ҂Ã߲СĀϓۏˏșӃ࣯̓߻NȫʶљĜ"],encodeOffsets:[[23277,55632]]}},{type:"Feature",id:"LUX",properties:{name:"Luxembourg"},geometry:{type:"Polygon",coordinates:["@@ǘȏ³ρʍiȉòĞҼɖŽ"],encodeOffsets:[[6189,51332]]}},{type:"Feature",id:"LVA",properties:{name:"Latvia"},geometry:{type:"Polygon",coordinates:["@@†نЮՆߊ˼ڜعڪhNJ٤ܐƪςĻܢ̷ۚCКȕîС˒ӷ͕ࣗԛƙ߱ТҁÄŝǪࠛĉණÂ१ʳ"],encodeOffsets:[[21562,57376]]}},{type:"Feature",id:"MAR",properties:{name:"Morocco"},geometry:{type:"Polygon",coordinates:["@@ԒΥߜÎࢊȃκU͂՟ºԝ̄ࢱɜDZƷ͛ષƙϝ̵ӡñ—ثঙ͍ͩсۍɥ࠻ŷഫاRহŷ@@@p҉Ա˓ȑϡ@̥Ŋ۹ě˛ٻʿÕЁ੕ୟ࣡ˣୋ΅ϗĵ̡ቅãaD ϶͒ɮ˞ѪÃ˶̀פҴՖ˲ƊɞӬp҂̤Բ̪֔Ւ࡬f\\ц͔ްĢڎָтɠۮۮȿਸ਼͊ܢŔѶդ֨ࡈϦخΐ֘࢈˄ԪؤI"],encodeOffsets:[[-5318,36614]]}},{type:"Feature",id:"MDA",properties:{name:"Moldova"},geometry:{type:"Polygon",coordinates:["@@ȨŮ֒ĊؤʽΊϞɥÑ˵̪ƏŨΗ̊ɇÏűƾčɝ×ӷ|ĉŜǫãÒƭɱˍƥ˽ɁĝƯϦĘΪςӝԂˉΠʹʠʯĈ"],encodeOffsets:[[27259,49379]]}},{type:"Feature",id:"MDG",properties:{name:"Madagascar"},geometry:{type:"Polygon",coordinates:["@@ɠΥȺ։Ɗঢ়ɒϽĉЗƩʙ˷ӰǁʝLjثõΥɵȗ¿܅ͧওб୅ԯཧ͑ୟϛইہȣܻΡӛɊڙ̜ɳѺÇݘ̑ڠù؂Ʈ؄ϰƢD˪Дِø՚șЈǃՌãޠ̊ҺŔՒмŒҶǤ̶Ʋτ\\ӐӎۖԮʦцŗάΦĵҪ׎fԐ˦ϔ̊ί"],encodeOffsets:[[50733,-12769]]}},{type:"Feature",id:"MEX",properties:{name:"Mexico"},geometry:{type:"Polygon",coordinates:["@@͙݅ƥ؁Õ૷ąЧƤқʺЧǚٳ֎سȞӏ͢бࢾɝΐΙ݄ɾٚĎؼưՊƠՖ΂ȨӬè۸Ƣʖ֬ɚࢶȚݔ‡ԚîȬDZ…ЙҋԁȥԝƸƥűγɁٽɅɎǭcǃY̝ԓƳIJķPŭޥV޷AAӁϛC̺˫̶șĢǹƌ½s˷ઃEЙۅŢƽĭȟqʕ्ࣞџ˘ۇɖҷÓګ́чĉץɜؿDŽ޹ϬؿŠ्ϸ۱ВɃɤҹº࡯ˈΓϦࣗӊсՌȧЦ˪ĈđʈȖɔJ̄˱Ϙùͮ˭ъ݋࠴ࡋڀУԼܝ΄ƷȴŸԲѓȞӹФȽהҍæӣѸϿФ™ˀҍو̓٠^͔؇ͬ˫™ӑɴƇͿƔЕĆف̀΋خׁƒȡŸÓŎ˽Ƭ\\ǜթʮɇǴ̕Նё˨ޯʠρɸϿ²ѷКƒͶϡ̨ϑqƭΝ̱ƫJɛԞջӎ؃РїɈ„ؚŵҖЏʺֿϒŏŇɃɖԭȰӷӦÖÚΊ³̸̼ŽϜ٩׶ӱɶ̱Հ̷վϳڦͿݲॖÞ੪ĞÿǑ౔СኀףဪPژ@DΌผ@̪̕јˇԀσ˨ѭȾҥѢʩۤʥՊڒۊhפͱфֹ̄ӯӸӏȂחɾЃپʹ׮ȁ͞|"],encodeOffsets:[[-99471,26491]]}},{type:"Feature",id:"MKD",properties:{name:"Macedonia"},geometry:{type:"Polygon",coordinates:["@@ńOœǤӺżȊ˺¶ϴbтˏÒ։DžƒƑƥҕh͋ǿջõΑȴšήń˸"],encodeOffsets:[[21085,42860]]}},{type:"Feature",id:"MLI",properties:{name:"Mali"},geometry:{type:"Polygon",coordinates:["@@˰ƶƘӶˊpזɻӄǖ͖ÇŴȈ⁚^ȈךƣļЛ⋈Л⋆౾dᬼᆳᬼᆳȨϿԺʉ϶ƋV՗ठĈFካҟ֗íԭݛƃ଩ï̳̗ա՟IȿLjҥš޻ΑDžʿٳϕŗɍΙǡНŔɱȳūֻڙۡp˳ɭΣÆӥ΋ůȝŁŽάʍĥơhƷʕ٭PɷŴʼnùʱʎ¬ʢĿİdzĉ˚Ǥɐ΅ΚijɴȇȂǙvȫş˕őɱǹΫäɷɈƓ„ɕőƅAµ̮žʾí̽͘ʀǓӔԺ"],encodeOffsets:[[-12462,14968]]}},{type:"Feature",id:"MMR",properties:{name:"Myanmar"},geometry:{type:"Polygon",coordinates:["@@ӫηץ›ϥࣥΟƳО݅ՔؗΈօ̭ܵ̃ƹȪу֖ڙĪҷ_ϵ͠ދң޵Сࡷăذʴ٠˯ӼæࣸͽѤ˛৔Ʊਗ਼εۢօуॕ׳ҽöԳȠ̂ਪǫ޾څॺļ̢ӭņ׭ۆÅڰ̊ŵj׾дȦęΤȐ˺Ž࢈ڂȑϐۘ¨ЦҪ۶}Ӕજ׆׸ƱçԬ̎ƸÛ͈ӮÚˮӵξȧ|ٟ“ۙߓۭijঽࢲƔȨޛՐǍʓۣز́ζƷ؞ʔ~΍܏յdẕӓȗ"],encodeOffsets:[[101933,20672]]}},{type:"Feature",id:"MNE",properties:{name:"Montenegro"},geometry:{type:"Polygon",coordinates:["@@ÁǀηЯÊˋǫÞɽ˞εǖĢƜŬҦ˚ȜƾüɠƟŬśˠě͌ǧçïƽȋɧó"],encodeOffsets:[[20277,43521]]}},{type:"Feature",id:"MNG",properties:{name:"Mongolia"},geometry:{type:"Polygon",coordinates:["@@ࢮƢ྄ܤ౬Єܴʳ࢚]֘Ͻ࠼‰ௐɁࠈגͿӶࢊࢊश΍ނįনɍLjؿஜΛߐƺਫ਼ŌࡆōࠖЗԚѕެT੒Ƌޜȼૈƒ௸פԌĝѰ˭ৌêХهק࠽ɐ΅ӈńࠤŽ٦̴ڬˏހוğ̗ڏĦ௟ŏןʅ؝։౱͙࠷ѽࡹǞҿúѳէˎ͓ƌˣי˯׽҇গ̑ఽ‹ഫ̇এҋϋʾ৭AఓԜࠥŰૣśჃȊऑmӱԀϣޠԱĢ৩ԼଅŞুƞ̡θ͖চׅڲன̀۷Ѿəז"],encodeOffsets:[[89858,50481]]}},{type:"Feature",id:"MOZ",properties:{name:"Mozambique"},geometry:{type:"Polygon",coordinates:["@@لæ৞ʁɖńגt̚ʦԌaऀ͜ڞӤƊϕ“࠷ľ݅ಿƨЫʣ׷͙׍՗Եޏ͉ृСॉ͓ࣕƵוׯ΋ȗí׳ЌُǔӱZʣƪ¦{ࠗƋϷȤƝűΓΗ̗ۗ˳য়ҕρ̳ðΟɊÉíѵّRïϊůϖí̠ƬपɓװГஂࢬ॔ɜ؆ŶúĨӶƉʞ˜غǐ׌E੠ѥ˒ЏÔǹȼϳǰ۫gÅ̼āװᢈۘӚЕɴüͨɅ¸͵ǯϷØסոԱʲ׌ζǰíઊΙ؈̣˖̅]ɽદɾٔ"],encodeOffsets:[[35390,-11796]]}},{type:"Feature",id:"MRT",properties:{name:"Mauritania"},geometry:{type:"Polygon",coordinates:["@@և־ԗؤ֍ɞГʚҵUЧǽйð˽ˏïҐɺаŀߊģࠨĵкČмɑЎѵδǾˬᾔMǃ௎ȴќ߀øᒸ᪂©F౞Ṗ᎟౽cМ⋅М⋇ƤĻȇי⁙]ųȇ͕ÈӃǕוɼˉoƗӵ˯Ƶ"],encodeOffsets:[[-12462,14968]]}},{type:"Feature",id:"MWI",properties:{name:"Malawi"},geometry:{type:"Polygon",coordinates:["@@ɽٓɾથ̆^̤˕Κ؇îઉεǯʱ׋շԲ×עǰϸ·ͶͧɆɳûәЖѵɔʮޮ˄̈LJۢǚڼƞɪɉ܌Ѕϐ࠘ƽǜɵ˶Ϲɾଡ"],encodeOffsets:[[35390,-11796]]}},{type:"Feature",id:"MYS",properties:{name:"Malaysia"},geometry:{type:"MultiPolygon",coordinates:[["@@àћֈĶ˞ΈȘýӸԓΜ֛¶֣ęϡĆ˿Öӻ̒ɵͤݑe˳׫Éߑخ঵ښįђӟ֚ś̡۠ҜĠؔȃΤƤƮۈρ"],["@@أ˹ܯƚॱ@̅ॗ͓̇љୟۅǵߑɾЕóөщ՛Òէǟַӆƕ֘؜˽ٮǀǜ܆άǂ৖Ǻ׾ڔЬՐϦѥǮ˺В¸՜œа٪אшڀͼHќыžιֆɻ۬ʧÑ֝͡¥ƮЧ"]],encodeOffsets:[[[103502,6354]],[[121466,4586]]]}},{type:"Feature",id:"NAM",properties:{name:"Namibia"},geometry:{type:"Polygon",coordinates:["@@رٌؖ͡ȃࠊȷ،˯ಒm৒ŅҞ͛Όѡۜѳ৘ǽՆۃࠐ»٢КdžԊƞհ}ԄϝŶÐ₮˜׌Е᎞ş໴΂یȒհµͨȍPéӁȍʭC՛͍ͣΎಕ̍سƒ{Ჽࠣ‡BយA᷋ݣѕҋÕՇDŽϗÔƗάͩɰГг"],encodeOffsets:[[16738,-29262]]}},{type:"Feature",id:"NCL",properties:{name:"New Caledonia"},geometry:{type:"Polygon",coordinates:["@@ېԵѨϭ͉ȫҥɪ׹ϚէѼ։פś˶β[Һ˹φ˷ˎɻ"],encodeOffsets:[[169759,-21585]]}},{type:"Feature",id:"NER",properties:{name:"Niger"},geometry:{type:"Polygon",coordinates:["@@nּॹȐОҿպœϤâТբ̴̘ପðݜƄîԮҠ֘Eኬஈϒᝪ࿸᮪ཾ೨αӀңר̸ȸಯ̾ɓ`ˋΔ˽ǻί͕ၻ«ધੳߋγૉΔ̵CեբmčЃʁµˋƻm֩ंȟ’ځҷٱʔҍ¸ʏşӯ~ӷΧѓq৯ѢЉȵѓb̿͆ࡅ̼ࣗıɕǻşӗʋ͹ÍݣٗӚ̟E˭ʗ"],encodeOffsets:[[2207,12227]]}},{type:"Feature",id:"NGA",properties:{name:"Nigeria"},geometry:{type:"Polygon",coordinates:["@@ࢍ̡͉¬͓ȉڥl҇Ղˡ؊שֆكYݍB¶തs՘ǂՊʶʴТԴėɨǔ͸ȍӾ˪ÎݤʌͺŠӘɖǼࣘIJࡆ̻̀ͅєaЊȶৰѡєrӸΨӰ}ʐŠҎ·ٲʓڂҸȠ‘֪ँƼnͬͯğƱ«˧۽ٱɛՙšѧDZȉǝי҅ΉŽыȋ͹ÿΓֽ˱ҽΊ͇aԃӭʑQЍ߷ɍש"],encodeOffsets:[[8705,4887]]}},{type:"Feature",id:"NIC",properties:{name:"Nicaragua"},geometry:{type:"Polygon",coordinates:["@@̃ˆϽͺȁ˲Ο˄сϜĤžƒŵÚÒʾ”ŀȔŬRkЮȠrǬOǺɤʜǝĒľƺIJ̊ɴbǦĄQňȪĖ|ƜŹǚ›ȆńɄB̈ŌŜŖ˾iïă§ȉĐ̫ȗ˹ěͷυ®ɏtϙŹĉýΫÌɛǣɋ ɩźƏȩDZʛÈƓǦˉêȕʼnօɞųŇ"],encodeOffsets:[[-87769,11355]]}},{type:"Feature",id:"NLD",properties:{name:"Netherlands"},geometry:{type:"Polygon",coordinates:["@@ۦyǀ˳Ƚޓɇ́ԍ@ƘࢡҥȞՏπީǩ؛âѠɲ݀ఆଲΘ"],encodeOffsets:[[6220,54795]]}},{type:"Feature",id:"NOR",properties:{name:"Norway"},geometry:{type:"MultiPolygon",coordinates:[["@@᥆ؙઍɣऄՅෛ͵ڵû΢לઃͰಫ˵Ы؝ߟωࣗȮ઱¥णѼԉɝԷ“ūփནƊɝҵ߭Hևױ࠿झಫ஁̨˹̇ͫ࠯bձ޿¾૟՞э˥ধֻۧυӛ֝Ԫဋঁ૫ȟ୏є̛ࣚˇ኶ޞզᕠ۶ဌࢂ໤୦፺ྴඦلᘼ੊ᇎπ൪­౮ۢ໖›ພǘ"],["@@ም΅๝Ȝ׆ɐԕˎეǚͮ̿ொȍ"],["@@᪖صᑟͥұأ݅ǁЍۡৣᅵԢނ̘ఽʐ࿕܂ٷڄᘎ̜Ң̋஦\\͊˼௾ˆ੖̋"],["@@࿮̏ఝҍ᝱ı៙ƖƫɴஹdँϬᣴɼ௞ȫࡘʤᑺȽ"]],encodeOffsets:[[[28842,72894]],[[25318,79723]],[[18690,81615]],[[26059,82338]]]}},{type:"Feature",id:"NPL",properties:{name:"Nepal"},geometry:{type:"Polygon",coordinates:["@@ÝαŌՕĩͩ۩aয়Ȟ٭ĂӛђଷŊયҼ߉Ю߿͆͜޼ՒϠΒȪڪʳࡔշҾť˰ЕٶǓۀσौȕঔć"],encodeOffsets:[[90236,28546]]}},{type:"Feature",id:"NZL",properties:{name:"New Zealand"},geometry:{type:"MultiPolygon",coordinates:[["@@Ȓ΋װ;ʐΡBΝ̹ϳչإїͷ̴З٭Yܗ̓ɣջӋࡗڇϓнʇޝlխˢࣱÐƗ̰Ҍذ੐ࠦժǀ׾͌ܜѰԎѦώظ͈ɆŰҶלϴȆΧ"],["@@،ࢫlָϜɯŲًڰ˛֨ãӒ͎юĭȯݗʯӫٛjɡʭþαūƻͅҏзֹ٭ͯƟɘΕŨӞ۔˟ҨࣛͲz̦؈̌ƚ٨Ÿլͻ֜vƪБΎڋݔΗת̸àҚұٺɑʂݡ"]],encodeOffsets:[[[177173,-41901]],[[178803,-37024]]]}},{type:"Feature",id:"OMN",properties:{name:"Oman"},geometry:{type:"MultiPolygon",coordinates:[["@@ֹ̻ϟªǩȧƉэļ֗ÿĻϯFԽ̻ćХȓǯԹP͡ɃJͻПɷҩĂ֗˳ϱ³˝טٿ൴ᠾ࠾֖၂ϩתv͸ʔΐFΆϞǒƩŞèմіHϖֵҸ̧؞ŋӼƳϜӕɨ˧̞ŃCȉ̩ԃƅɽΟˏ"],["@@ʼnƳDž˺ʔ˺ľñā΍"]],encodeOffsets:[[[60274,21621]],[[57745,26518]]]}},{type:"Feature",id:"PAK",properties:{name:"Pakistan"},geometry:{type:"Polygon",coordinates:["@@تϻʞ٥൨ͻ߹۷ऩůౣȲЫα̖݁̈֩ڴгܑӟ`׳ࠃࡇՃ࡝࢝ࢡউÚऑࢡռϗĪ٧ҾэǘܝᇛD֓֕؛Ɇʣ؀٭٘໻ǁിeஃŝ̈́ঊொѢéϰГƌw݊ߥφͷԔеѶඨѕࡀŲԈŅǞȂגóદĈ܎ҶӈشCĠɼٞŌ̴ý͢ʀ±ԌΦԖ՘Ɇͥ֊ߜɴ̢•͒мΜĩмȣΤӬμࣘǮ८ĮѐƺӨĦ"],encodeOffsets:[[76962,38025]]}},{type:"Feature",id:"PAN",properties:{name:"Panama"},geometry:{type:"Polygon",coordinates:["@@˫ʎǵҒȺɢɅÎƿˤлɸοÁǝ̇ͻɁǽ‡ĉǩВҗɯŅŧŭϷ©ơԈŋƛˡ¸ǝ͸·ÈɓİέCǻĩŶªǖìǠƲŲIJǩŲK͸͘ö̠̝iDZͲ›ĀæɴȵЮÔΨɄԜǞ˺ʤҬ·‹ĉҶ…ώơ˜ʧ̈́ɵĹūȜӵǁʟ˓ÒŅС"],encodeOffsets:[[-79750,7398]]}},{type:"Feature",id:"PER",properties:{name:"Peru"},geometry:{type:"Polygon",coordinates:["@@ɥљћɋࡅӘñΈရࡊທࣾ٫԰ΏۜƐʎ܅ાࠣ༄ߍီ΅Ϥ˃ؤٷպױͼ˖ϒПߢʼךڢՎIJΓʇȧx̭ΎâͼĝΚщӆΌDŽ֤ԦܶৠͨࣸࢠʾմŝٔɢĂ֒ЉˎЅϴɏӶࢣضĿҨɞ̤ƣԎð٠Ͻթࡣʤoрҁݳ œųۍlj॥ֱÓϻɉ̇ČғԕʍBΡɛƵΔݳҲԝDZί֐µ͆҃ݐuېӸÇ౧ϢĩӄƠܪടǷ˵£ןg܍͟пƮ̵ȕ˯β۹Ջ࣡"],encodeOffsets:[[-71260,-18001]]}},{type:"Feature",id:"PHL",properties:{name:"Philippines"},geometry:{type:"MultiPolygon",coordinates:[["@@Đ֏ºҽ˹ޑ̫ࡨϽэˎإʉϿ঩Ӧɿ؊ʰЎՑЈˁΑЃثҵƑʖ͢۾ՌʀҜ̈́̔ϝٔɰƎϒרv·ٰڼЋêхÐ̱"],["@@̟ˡˁՍ˃ʝԫ׈ǦɤɂɾĢԸҨ¸Ɖ֣جߺāߡ"],["@@ૣߕЬט؈԰Ԏ׊Ѱ࠲Ʈۅևҧѳֿ"],["@@Ԏʹ՘BgΗϳΣՕʧ‡ϸÒєŽА"],["@@ʀभ٫ɞj˭ȶԯЍȋ•עʧªƁԘӶãY͈ԣٜ߮mɴ̻"],["@@ɟܩέоѓ٘ܚ‰̡̈"],["@@ԮʉʶɖüɇƍΑ˼׻ɛۥӷ˥ƁڳȊڝѾġϊIJਾүăҙ˜ȫēϯٻЮ̵Ѵɍ̯՗ԊރůлȆ¨ΎˀɊʣȘŇ̡бӚűμߨͺˡĔೄ˜ހԘA"]],encodeOffsets:[[[129410,8617]],[[126959,10526]],[[121349,9540]],[[124809,12178]],[[128515,12455]],[[124445,13384]],[[124234,18949]]]}},{type:"Feature",id:"PNG",properties:{name:"Papua New Guinea"},geometry:{type:"MultiPolygon",coordinates:[["@@ɽčε͔ρՔǷ٘ŜĆĜʡʬȏРՑЈ˵ŝɽ"],["@@ѯçƃɽҟȱћȟѽBۏʔӑɺêʺݬũҠàŶЖŦrĆѽӐÜʂ˼Ҹ̚ġӸԌfǜƏgү˯ԡ"],["@@ݤտղࢻӖ„‘ω٬ƛʥǁࣀΝġʏ֋ÏȷɔܟĦࡕŴٷ՚ӉҦѧ݀ભπ܇ʇԡˣńإڇ˿һƖࢅ–aᩒaᩒภ׃༊ӓׄїҴхŸӵඔԱȲѽޛěȄ֕"],["@@ʿɡǁӸȝ͘ϝ˞ӍΪ؇ʚɺȮҒɻ˸ȁΜȫʹΛ͊ˏĶѧ"]],encodeOffsets:[[[159622,-6983]],[[155631,-5609]],[[150725,-7565]],[[156816,-4607]]]}},{type:"Feature",id:"POL",properties:{name:"Poland"},geometry:{type:"Polygon",coordinates:["@@·՜à̂ȹ̧҆̚ɺɤȝђָʘ಼ϴ੒˴࠼ƙÚȱ߸Yਚħ໶^њěȬʵšωɸ͋KͯԋǡʸϳfϏцܻěɽзįރۥɒϗǿ¶ߙ͔؁šЇĒӹǵч̖Ήŕ³¼ϭаر¼ăˀֻĦűɑҗǨÀɴػòЉ˔"],encodeOffsets:[[15378,52334]]}},{type:"Feature",id:"PRI",properties:{name:"Puerto Rico"},geometry:{type:"Polygon",coordinates:["@@јõưǕɋɃمLӫ‡·άŢŬیK"],encodeOffsets:[[-67873,18960]]}},{type:"Feature",id:"PRK",properties:{name:"North Korea"},geometry:{type:"Polygon",coordinates:["@@Şƥ͉ºη˵ʣ˷Ž׽ѣȅƫƧ̓ʝ֓ƏηɥηįġͰƋӈσŧȭΧÇץ¡͝ϛϑˆÁùСdžĵƿʙé‡ǀɑüɥƆɰφȤİõƶɆҒÅƎөĠЇɤۄբऒҌ־׮Ўˁܪ‹ſѺಚβͰҼժӹ"],encodeOffsets:[[133776,43413]]}},{type:"Feature",id:"PRT",properties:{name:"Portugal"},geometry:{type:"Polygon",coordinates:["@@̦Ɉ΄ŬɂЫӺDƞłӪ‡ɼуϱɩYٽƍū‘Їγçʹԋɵտ̄ʡřɫ̵̿ê˥ͷɓѷŠџġŸڂÿԬϓþȩ͈äռͰ̨ÒͼǪԎkΤǙ̠™˲"],encodeOffsets:[[-9251,42886]]}},{type:"Feature",id:"PRY",properties:{name:"Paraguay"},geometry:{type:"Polygon",coordinates:["@@ͦ৖tҌЖ݌าʔޮ]޴їbʵʞҳÇଛࢲLJ΄ǐ֦ɩǀʣþޓİ͓̼›̀ƌ̢ƳAҥŕӻǑӛƍݏށ١ړƇऻŸࡑɮࠢ౨ťψࡽ͢ਅبۉŸ໵ൌ"],encodeOffsets:[[-64189,-22783]]}},{type:"Feature",id:"QAT",properties:{name:"Qatar"},geometry:{type:"Polygon",coordinates:["@@ÇؔɨѲɰĜʬˁdӯǽӳɵÑʫǖ"],encodeOffsets:[[52030,25349]]}},{type:"Feature",id:"ROU",properties:{name:"Romania"},geometry:{type:"Polygon",coordinates:["@@δǶԴġՠGϸȳ˺źبĄɄȠΠ@ʰćʺʟˊΟӞԁ€ρėΩưϥϒƹЂƊϠƟpɏПǹʯĀɻ৥ӳĖ̪ؑফțзɋ௽¬٥ƀ͙ÕʍΊƵƦȚƘȷŀ˃ȋөʔßΌԟȢĥˌҕͤڪǂԖ֮Њ֬ԢǮ"],encodeOffsets:[[23256,49032]]}},{type:"Feature",id:"RUS",properties:{name:"Russia"},geometry:{type:"MultiPolygon",coordinates:[["@@ࡌ๫కˤԫ்ࠌࡳyוُԒսٱƻ۸Ĥࠊħ࣢Țٌš૴ӯࠜôରަϮͭϴϐŠɔ։̆ߵuࠟΎࡑ"],["@@໵]ਙĨȒτ୊˚ࢢƧψƃęɱäɉ"],["@@֦Ƚțؐᗸű࿨޻࠭λ൛ēsࠑͳǩ޽~ٗ̊ૣʖȉθ࡟Ǝॗʼnҗ̎Ǽ̸৓ȥϚЃӉΣ@„Ꮪٛᔺ࠳ïԷ"],["@@ः©ƭˌੲΖ@ַ"],["@@ળ»@ָň–܈E௒ʉïŗࡽȩ"],["@@ౡMႣĤƧ¬ߘͪੀþஞ͏ĸə"],["@@ॿͩഉø༛ͨȪ˖༨ųᑔɗ"],["@@ډرᶽzඃȣမղҎ׀૎ǂᕞ™ᴬѽ"],["@@ӹóᩣŊɟώູɦūҒ࡮Ƕ…Ҟသܒޙĺ፨݆ɩϢሤѺ᪪բ᫠ǀ෴̸࿐Ŋאͩ֟ʻᲗз᢭Џᤙߝఫࠍ೉߱Ǡۥྎۏ"],["@@ɨгސȲឤYቈЧڬ̿ȽѧङʝᕅүفʟਬşఖɃݴDŽєաτɔഊƂ᧪ƑȴϽ↲ů´ٜᄼƥഄLബѷϮ՝ӹΙੌڋ೔Ϳ߸ࢦഖϙ෢ɦྼʵؤʀൖş؅ޮૐζ䢀ձܐӿᔲٛ₎DŽာƑ۪΍Ĺؙਜʇ૴Ǥ๰vཚǑཪĢะݛਪˎڷ՞ϐώᧆɻფºᝂБ୲ν@”MKઇσઝÖݶҁԄەϲɧĮΏɑɝ༧Ǿ᚝مݛĭ౽ן௛ԧ̱ϣய׊ᔗڇϣ̸ߵΫ૱Ř˓ց৙߽Šͻड़ȋő௣ޭ‹Ϋ۱Δα฽ѕ̅ॡభȳʥ࡟ே޳ׂ̳έ௬ҵለИ୘܀ԆªϾರȊຊ੒คࡺຢڢڮஆ৷ëԍۗᒉइۍਖᓧ˷ᑃටۚԧሙɕಝēÔ؊ಯŶ਩ЭᢵƠ᪏ʟᨩ࿛ủጝ೚ŁаՃࠄȅ՞оईÃௌऍ†܍ځ࠽ë্ϛഉ్௓˯ׇଙ঑ଇॻթӹ૩ӱՉYՇФૻؙſ˩ŝƦKѐіxŦ঴ɛܚܞ̒৶Ʃ֢ࠈ˾ऄ͚̮Ѵݲ൷ʛܯͧ౧Dͻ߄হװหˎ̵ࠖ̉Ԫ̿βԯࡐ̲݇షʢ૛uਯƱۛлҤȥXҩұˑݷࢻRσஅՍ৙̈́োéѯˮԋĞ௷ףેƑޛȻੑƌޫSԙіࠕИࡅŎ੝ŋߏƹ஛ΜLJـধɎށİवΎࢉࢉ΀ӵࠇב௏ɂ࠻Š֗Ͼ࢙^ܳʴ౫Ѓྃܣࢭơ͡çѽԤઍőΧΦחnjЙӠҩưிɍୃӜ҃ѯሟᒒੵٮ̮˂ᑋߍ߭³êҞઅ˺࢙ȱ˃ࢊມǺݯΑᑅ̳Чȹḭ̇ϫ˻؆ֹ߭ɓǀɭ߭ХസֿɁЉ୻˜ʓʟ੹Ѧ೯iࢻΟহͼᇡ׊ಽsჃࣳĿؗࡹӤڡउʖǡӝُ܊֫ذx՚֗ďѝѐƋϥӽ߿Ƒ࠳ࢁކߕĉ֣ࣼফԇ͹ƝɇωÌֿԚɿ†ՅȚʳΈ޵ǮԙƁƥƼଥЖఅƌ܃ƞĹıੱ܂य़̈́ܩӴؒƈۤ۰ҹͪఌ΄uȀݯƉ‚ώѠɼ߼ÖƄ˪ȅҪ΀ѰWʚఉ˚ӭUԯЀ١ƃ੩̐lǒ̗θڟ¤éʼɀǞ՝ӈࢋąʭ¦Ƀȑ̽”ȷ՞ȟ˨NJĀڴ‡͞Ȁʍɢ֥ƪ¼Ʋ΁ƴՃվǸɨĉЂࠑȨѱijšȼࢭɂˑӸíТЙȖάˊʝ޶װӞųƤक़ҬࢡЎᅢ੶ޮӠ͂єగּΆնݳش֢ܜ঍ग़ޢي౿֔ŬךڶüොͶࢀ̈൦ԕᘨȧṺो٤ЋÆ֓टѳ൏ɡ⏷ٔ؟Ńൌ؛ÂϵÆ࡫ઌʯڂɓňРԑΰ՘͈᎖Թ۾Ȳ֣؜ዦࠖޢµ޸̋Ӫ׀۫ԄЪԊءԶᚠˑӔҹ੡ĻNҳڌ˽ಜǼȶ՚ჶАᰪܞي£ࠣԙਬĕ׼˼༾xఢΐफ़ԏॖ֌ࢡӢѪˤ២ʫ୒ʿᴾॣ֚ѰࡡѺ{ǴৣĈˢЌ҅ټ}ː༄ݾրކزǒᕮɛǬұߕڽԺˋ˒חȏଵऒԧέ֕࿫஝०ŭ̢ͮऎɎɞжܮЎөӌϼֈࣿêȫҲڢࡈણۆຒ֦șװмnѴүͧ߷࣐Ƶϥ؄ඤͦლ¬༈ӏݛ۪ċࣆศǞ፾™ᆘŌہѮংւॲx࿎иᕠŐ˪ɲᕂþیȋሴҀ໲aɶδߤΨጤΈ෸˗ଥȷበŹ"],["@@ⵙ͕ໞીےĦقÃᒈӋʟͿ"],["@@૽ōݱÛśƏঙƑ࣫ȦӐʾል~࿞ƶ౨XǢɧӘȬߊƐఞǿ͗ŷ"],["@@ᆳĿᚉʎඅ͎٣׾଩ǔᔆָᆎȎ࿌чኬ߻ȹݯ"]],encodeOffsets:[[[147096,51966]],[[23277,55632]],[[-179214,68183]],[[184320,72533]],[[-182982,72595]],[[147051,74970]],[[154350,76887]],[[148569,77377]],[[58917,72418]],[[109538,78822]],[[107598,80187]],[[52364,82481]],[[102339,80775]]]}},{type:"Feature",id:"RWA",properties:{name:"Rwanda"},geometry:{type:"Polygon",coordinates:["@@ͬӃµӵʏŁѿÆʱӍԛàþҠŘތԄʎɺȰďԈʸ"],encodeOffsets:[[31150,-1161]]}},{type:"Feature",id:"ESH",properties:{name:"Western Sahara"},geometry:{type:"Polygon",coordinates:["@@oҊŸ@@ÉeNjEౝ᪁ª‚ᒷ޿÷ȳћDŽ்ᾓNǽ˫˜΢bCቆäĶ̢ΆϘˤୌୠ࣢Ђ੖ˀÖ˜ټۺĜ̦ʼnϢ@˔ȒԲ‚"],encodeOffsets:[[-9005,27772]]}},{type:"Feature",id:"SAU",properties:{name:"Saudi Arabia"},geometry:{type:"Polygon",coordinates:["@@ʼnΪʩʨÝͲѡ̞҃۴ʁۆׇ׀ϑƐ֋ߠīא–ӾӕञϿ͠ґǨˡӖ°ȎɹѦʕȊ͝زԟڴѓ־лIžҦœ̌ļͲनƅζʶȪ̢ٚŚƒˮˤƜ࠷ࡀ၆фdžŴৢɩబיᛎၕ༠ãݠąȾЏתv͠ܥаȓƠִ̏Λ¼΍ċ˩ł˯ʎɽŐ˟ŲȵʬǕɶÒdž͍Žș࡙͐ᡌщǞDzϪש֕၁ᠽ࠽ᝑ͑޷ϙ׻ࢥϹƕɁˬ͏§߻ĎƷČॹmɫùΉɔɝЭĒΟρˋ"],encodeOffsets:[[43807,16741]]}},{type:"Feature",id:"SDN",properties:{name:"Sudan"},geometry:{type:"Polygon",coordinates:["@@śhdмĵ̀џͨĵ؄ĶبϳÌÍȇԍ©Ȭʕðԍңңл؅џđ۹Ӫͅǥđʓџǃ…ǥ࠵@řǦ؃†̡ƝɳîѝӬƟɲ؃ŗɱϵɏݣ˿ǁʳğå ̅ʎÃʼƌΔE΄ӛՀĩάZȰ̱ʜUӦǭ͖̍µĎ̰ɒΖħΐˢʴǫȞɞ԰ϨئܦÏ¥ ZΚॲH@း@Ὂ@ῼ@˔ࠗȁƳŪࡻ্̰͌ȷҠ̳ыӑأƏ˅ʳĉ֑α௿ĚͳƅܟͿࠟԓзέٛč΃Љɽʝ࢟Dij"],encodeOffsets:[[34779,9692]]}},{type:"Feature",id:"SDS",properties:{name:"South Sudan"},geometry:{type:"Polygon",coordinates:["@@Xٽűʯѿq˷ӏԨÑюХƨͳϦșӼࣳ֫օԫԇԫϭסFگȟՕȊ΋ɭ݉֐ȥάҵDZϱÆɣƕϗĸԗۚƉˊعͪɅԌΕζ֟ѬS˘ҡͼ֯͠ʴĠ̀ǂɐݤɲ϶؄ŘƠɱўӫɴí̢ƞ؄…Śǥ࠶@†ǦѠDŽĒʔ͆ǦۺөѠĒм؆ҤҤïԎȫʖԎªÎȈϴËĵاĶ؃ѠͧĶ˿cлŜg"],encodeOffsets:[[34779,9692]]}},{type:"Feature",id:"SEN",properties:{name:"Senegal"},geometry:{type:"Polygon",coordinates:["@@΍ٺн̚φDŽРמȦќ˾ːкïШǾҶVДʙ֎ɝԘأֈֽžԹǔӓ̾ɿî͗ʽŧ³қâÙģȃk׿ȲЛV༇–ɥħ˥‚ѻƋƏ٢ވkȬŞƮR̸ȘήǯκcζȌǝʐˡƙʻJͧȸˉ_ȍȥࣵy"],encodeOffsets:[[-17114,13922]]}},{type:"Feature",id:"SLB",properties:{name:"Solomon Islands"},geometry:{type:"MultiPolygon",coordinates:[["@@ɾ˿חN͉ԬԈȯǜ‰"],["@@͝mԧĎǫżÀͮֈƁ˜ǭƎə"],["@@ųƹحܰǫԈ˺@̠ڥʹЗ"],["@@–ǛڅΦҟ̠̿˪ŰĐϮȫېϭȢˉ"],["@@Ǘ³οȒ·Ί¨ƖԈΡͰ˛"]],encodeOffsets:[[[166010,-10734]],[[164713,-10109]],[[165561,-9830]],[[163713,-8537]],[[161320,-7524]]]}},{type:"Feature",id:"SLE",properties:{name:"Sierra Leone"},geometry:{type:"Polygon",coordinates:["@@ɧØ؁ͺѩ҈Ƨ̬Ĺت҆τĬɺƞǸɶpȜǂڦCɺ̛ǼˁʓƈɗṶɴ´ϹϹϛҗ«ʓȩˏ"],encodeOffsets:[[-11713,6949]]}},{type:"Feature",id:"SLV",properties:{name:"El Salvador"},geometry:{type:"Polygon",coordinates:["@@ġȡӡ^̡Ą΍ǘұÀʃǶ~Ů˾ɄǀĢ«IJȠ¾ʜëǸǙʪƇŒœτĴǤÑŘĝÏͳ"],encodeOffsets:[[-89900,13706]]}},{type:"Feature",id:"-99",properties:{name:"Somaliland"},geometry:{type:"Polygon",coordinates:["@@ϛԩד۫۹Mᩧা͍̜̳К̳ҨǾ̖̲҈˚ƹǒΏϜΗкGߊɌࣴĴ݌ʼиÆ̚ƶӎˆKaE΋Aࡑ@ѫ"],
-encodeOffsets:[[50113,9679]]}},{type:"Feature",id:"SOM",properties:{name:"Somalia"},geometry:{type:"Polygon",coordinates:["@@ѼĎЊ˾͈FpɵýӧHѳǯ̣ʁࣥЙयԱ੷ܝ௷ܓवধ଩ࡁڹష࠯޳ٕँৱȗѷȍȣӽۚWᵤܾ॒ɰˆբfݠפબšᛜᡄה۬ϜԪ@ѬBࡒFΌLbːhϰŰ"],encodeOffsets:[[50923,11857]]}},{type:"Feature",id:"SRB",properties:{name:"Republic of Serbia"},geometry:{type:"Polygon",coordinates:["@@Ԡȡà΋Ӫʓ˄ȌȸĿșƗƶƥȷȏø̫Тγ͋ʿƗˋĞijƑšϳa˹µƒØĴĴĦȴšKǍƼƑ ŋƆƽÀšŠƯ±ś˧ȩÑèð͋Ǩ˟ĜūŜɟƠȢšŬЄЛ͔ɀτ̥Ë͔́ˉʈȱ͘٢ɚԾ™ҖͣĦˋ"],encodeOffsets:[[21376,46507]]}},{type:"Feature",id:"SUR",properties:{name:"Suriname"},geometry:{type:"Polygon",coordinates:["@@৔ǙĞưڶÔࣚɥѩܟâֹͤӽƥίóϩɉΛӓDzЇđ͹öčʏƘǗ÷ǡҙèԡܴōӄˏBωؐƺѠ¯ȤԜɖƈݲ"],encodeOffsets:[[-58518,6117]]}},{type:"Feature",id:"SVK",properties:{name:"Slovakia"},geometry:{type:"Polygon",coordinates:["@@´»ΊŖш̕ӺǶЈđ؂Ţߚ͓ɷɓǏ͹dzđ࣑ʮ˟»ȟȡЁĿěÄХŽͭ}ãǙ۷Ļ̱ĠёɌċ̆äńŢȂόa˺ĔxþLj¢ÆȒȖ˜žưʢD"],encodeOffsets:[[19306,50685]]}},{type:"Feature",id:"SVN",properties:{name:"Slovenia"},geometry:{type:"Polygon",coordinates:["@@ۜÝъȐܾtLjƘƘUǎ˳ڝɟć͹̇đHɻͣh˷ƎƷƙב†ȈúȫΨĞа"],encodeOffsets:[[14138,47626]]}},{type:"Feature",id:"SWE",properties:{name:"Sweden"},geometry:{type:"Polygon",coordinates:["@@ࠁוƀԥ೹ڭྱܡؓஃײףߦүޗॅ࢑ȝ͍තӋ޿৳ĆӅڗঃˉߐ۳॔ٓஐφӜּۨ˦ন՝ю½ૠղ߀࠰ä̧ͬ˺ಬஂࡀञֈײ߮GɞҶཔƉŬքԸ”૪Щ಼ֱv಑˴͛ฃʃ"],encodeOffsets:[[22716,67302]]}},{type:"Feature",id:"SWZ",properties:{name:"Swaziland"},geometry:{type:"Polygon",coordinates:["@@ǡύӭěԅҖS̄ɰ̀ĂʔʐÒшƵŰϕðω"],encodeOffsets:[[32842,-27375]]}},{type:"Feature",id:"SYR",properties:{name:"Syria"},geometry:{type:"Polygon",coordinates:["@@࿩ࣅऩͬgNŖŶ_ΈȸҠҜ̈́Əͤϗ¨ÿٞȶΌɤȀɤȀ°Ҹ˞Ǐऎɺ҂ƿۖFॴ̀Ґaक़žїԽҡȹĂؗͅ৫ᇵ࢓"],encodeOffsets:[[39724,34180]]}},{type:"Feature",id:"TCD",properties:{name:"Chad"},geometry:{type:"Polygon",coordinates:["@@ĎЄաnDզΓ̶δ૊ੴߌ¬ન͖ၼǼΰΓ˾_ˌ̽ɔȷರࡔҠ…ྑ…ྏ¦ ܥÐϧإɝԯǬȝˡʳĨΏɑΕč̯̎¶Ǯ͕Vӥ̲ʛYȯՏƛэͽ؉ࣹ߅ϳ߹¾ʁûĊ̏ѫ̋Σ͟੓͏ȽȐƓhƹɍۛÙƀɪ˅ׄşΐλƜӷӪǼІϦċʂÐҸSқކŒ֐É֐ͭՠ"],encodeOffsets:[[14844,13169]]}},{type:"Feature",id:"TGO",properties:{name:"Togo"},geometry:{type:"Polygon",coordinates:["@@ڱdzȇ̎ɡՔãкȆݴɁ̬ăڎD؎ΕѠÖˀ݂kŅѵʲʝ̈̋ŽЭǜǥኝȺׅ"],encodeOffsets:[[1911,6290]]}},{type:"Feature",id:"THA",properties:{name:"Thailand"},geometry:{type:"Polygon",coordinates:["@@ݭϬܗeŬڈ݉Káऋґ௯˙ݏÌ؋ն΀ދưܭҶӓԚĭѤѧ˝·ևĵßќۇςƣƭͧ͒ƝжҁӄПЌƏӳǃҲĠԾʚ߬ТࡸҤ޶͟ތ`϶ĩҸ֕ښȩф̄ƺ̮ܶ·ֆՓؘН݆ΠƴϦࣦצœӬθӔȘθʷ´ԍ֨ȷࢭpݫࢰԆʤƧӰzǜَ̊ÍٖڽÀࠥںܷ›܅˙ϛ޿ŦગDž՟ۧȤ১"],encodeOffsets:[[105047,12480]]}},{type:"Feature",id:"TJK",properties:{name:"Tajikistan"},geometry:{type:"Polygon",coordinates:["@@̭ʷࣳƖāӛ࣬Þਢ˗འŶɈާˠĐԜȓ‡͛ŴӍࡿBׁØԻϕύĉ̉ǯͩˠþ۸ʩ¢ĞʲғȐα̇ė͹Żūԇj˕ϩ˯nj؋ˑʱĺӀࡘǹض؟ȨɔφۮŸЌҬˌբ૲ȜǩϵŤɹΎv"],encodeOffsets:[[72719,41211]]}},{type:"Feature",id:"TKM",properties:{name:"Turkmenistan"},geometry:{type:"Polygon",coordinates:["@@ñۼطŠॣݔڣĠगюׯþσƽ֙|ׯӓ݇NjƻרŪ࢞ٽ˶Ɏֺ֏¸Ȇ۾ߊȵ݈ˎؓԎʉӔڱɋď؛ʿհψ˨ॖǪ֨ɻךڅњ¤ॆ\\Əцܖ̂۾ӦଆѹĜڡ͐ǣࣦžˮƳаࡽ०ׇոЃ࢞Щ૤Ϋwԥʩ€Ѕɤſ̙۽NjǙڥӁʭڏŵǫϟهŏࡩ͈"],encodeOffsets:[[62680,36506]]}},{type:"Feature",id:"TLS",properties:{name:"East Timor"},geometry:{type:"Polygon",coordinates:["@@IJȤܢȌז†ˀŀ͆Ľ̯ɫ࢕ο۳ʋeʬďǔ"],encodeOffsets:[[127968,-9106]]}},{type:"Feature",id:"TTO",properties:{name:"Trinidad and Tobago"},geometry:{type:"Polygon",coordinates:["@@ӚŊǮ‡‘صۭġƯúʒɲiͪ"],encodeOffsets:[[-63160,11019]]}},{type:"Feature",id:"TUN",properties:{name:"Tunisia"},geometry:{type:"Polygon",coordinates:["@@ΩພԭͺQȰۉԄóنԮҶȢۚƃߠǠќࣶͺךĵ}ы܊̲ÒljпЫMϱ̆ȽōܫփхDŽқѤaɄЍ͊ſ³٥Хʋʵˏֽ͓ĘΑïΟЧț"],encodeOffsets:[[9710,31035]]}},{type:"Feature",id:"TUR",properties:{name:"Turkey"},geometry:{type:"MultiPolygon",coordinates:[["@@஺͗ঐżܤõলѬࣆ¢ߴЭƜ̑ăУزȻͨʕֻʇˀ५ǏʻҠڧЕƙ̏Ɋ঍ňίŽॗŽҏbॳ̿ەEҁǀऍɹ˝ǐ¯ҷɣǿɣǿ̱Ϡ͈͂ԟí۱ȖֿәౣĥڹҊࣟ†ȗΑׇij߻҄ࣻeӽ࠶ؗҰЦٸՓВठߨಒ’Μྀٔŏ৞հ঒ʄർlุף"],["@@۫ҏ˃Ϻ\\ǦȦĦʺՂХɞࡦ˄ܤőĴ͓ܼ˓Ƶȵি±Ωʷ"]],encodeOffsets:[[[37800,42328]],[[27845,41668]]]}},{type:"Feature",id:"TZA",properties:{name:"United Republic of Tanzania"},geometry:{type:"Polygon",coordinates:["@@ƚġᵂႋÌӣ஼࠿ϱਙ¸Ӊՠ̩~ɓɳԓ¶ʭÇГ̌Ճΐ̰ࠡǿڝӣࣿ͛ԋb̙ʥבsɕŃঢ়ʂكåɽଢ˵ϺǛɶࠗƾӉʨՕƘͯƘΗɈґ੖ӣҺǗӤČѨƯޞΎ ̨̦͜ѬȺǮS˘ǷȐ·ͨʐł¶Ӷͫӄ̎Ķऄ[ႎà"],encodeOffsets:[[34718,-972]]}},{type:"Feature",id:"UGA",properties:{name:"Uganda"},geometry:{type:"Polygon",coordinates:["@@ः\\̍ĵԇʷȯĐPوȜ͎²ڬǰϸ͎Ѭ͔ɠ˒̘͵Ŗ¼চΌɮՖȉڰȠעEԬϮЊ׍İсτ९̧ؓЯ֋ʉͽTࢹႍß"],encodeOffsets:[[32631,-1052]]}},{type:"Feature",id:"UKR",properties:{name:"Ukraine"},geometry:{type:"Polygon",coordinates:["@@̾“ɄȒʮ¥ࢌĆ՞Ӈȿǝêʻڠ£̘ηkǑ੪̏٢Ƅ԰ϿӮVఊ˙XʙͿѯȆҩƃ˩߻Õџɻύڡã֑˕޽«ܣ̻¸ԹЪȭࡨ¼Ǐ̛ँơଛӟұǠȄЂࣽʘƨLjߪ˪ʑȔಯɆË̼ީĻ̷ҧٱةϟƠЁƉϑƺɂĞƦ˾ɲˎÑƮǬäĊśӸ{ɞØƽĎÐŲ̉ɈŧΘ̩ƐÒ˶ϝɦΉŽأʾ֑ĉȧŭΟ@Ƀȟاă˹ŹϷȴ՟HԳĢγǵÍɤұɮǐͺɸɔȀµɑϘބۦиİĜɾхܼДҢɪٲnࡖßबȫڎi͂ŧ̀Ʀɚȝݸ¢ͮąÄцʶȂܞº"],encodeOffsets:[[32549,53353]]}},{type:"Feature",id:"URY",properties:{name:"Uruguay"},geometry:{type:"Polygon",coordinates:["@@ղĚࡆٯ̺|ࡺ՟ڈҫӠֱχЉɸӇεՇॉұاǚғěޥΰ֫ԟҬÞլǾȈS࠸ɤࡺȾڦ"],encodeOffsets:[[-59008,-30941]]}},{type:"Feature",id:"USA",properties:{name:"United States of America"},geometry:{type:"MultiPolygon",coordinates:[["@@ũƕȽŤ|ɾƓ̨¦ĤƤƎÍǔ¸þÜe͐ƙƬñƌőɊ̍q¯͟ǵˏſ"],["@@˭ÑƟǮīèQÀĈî̘āɘŹëĵ"],["@@ĝ҉|Úĸа•"],["@@­µÓŻˆŃȒ’ɤŚêÃʐ˥"],["@@ıĉ˱ƴªÖŸĈȘijȝ"],["@@Ƭңʼƛז½࡬ƅࠂʹڼŊਖɓ˞Tݨʄ߂̧ࠒ͗ں˩ٶˏĈəȢĉ½ĉɦǎĔ¦ȣǜƅɴ@ŬĹĽƫ࢖ЁǶށǚܳʗӹЁҥȁ̍mēĦť˸Ɓɂ@ঊ҆ࡾƀસмfĐ÷ʰƉǒϜƆࠜHޘAˎ͞ŀàࢶ؄ϜƸ౦N໾BĎȺː¦Φž̖Ϣʲٺٚي˨ə֜ƜώʏAଧռӅƢ˝࣋Пࡷ̃ࢱʝѻӿƛȋSѽˤѽΒsė̬ʦȇãʇ֥ƋЗhةƥλ¥ӥ¥۫ʏఀǂʠǃ୳ʥ՗C|ĺʭɷʚǹ׽ؑ٧×Ɏȁª˟ɀǪҍȼƭ^ͅˏ͛ҿڡûʺֲѕ͎įۦljεǴՑևƀׂ˓˜ߛʊÍĖ̃ŠࡁՕدࢇʝցӱнÁэ̱ţ˭इձӁЍЅӽŻׯƪ׍ˬܗώשLεЊঅ֥—͛ȿԡʣŃЯĺƁς͋ȖѻܢϹٞű͢Ǥ֐ɽҦٻ۲͟źࡑϡƭ¦СϼՃȺोŁݗĤٙÍΏſƲɟaͽǴǓLJō̵Ů́ǃ؍€طѺܻĿ؏ȚԹÏۻȝއح࠳γҝБȕϗUׅ¨ЕDŽ˹͝{׭ȂٽʺɽЄȁטӷӐ̃ӰуֺףͲۉgՉڑۣʦѡʪȽҦ˧Ѯӿτїˈ̩̖ป@C΋ڗ@ဩOቿפ౓ТĀǒ੩ĝॕÝƙіխӚϻĴğʌһ¦̝ɪޭĊɉƌĹҢࠁࡊ۩ୠˆȚχˤٯ۴řۆ҃ҞȀۢ…ܜˍ٢͠ߊĸނĺނƱૼˇܘʓ϶ĸǐ௒˷҂ߋȺɜƇې˷ێᛸ@᠂@ࠜ@ᢢ@៚@ᡀ@ᡄ@᭰@ᮞBაAF͔˴J"],["@@࠽͋ѕɐŽЀބ̘҆Ÿ֐ÉΤʻܫЍ"],["@@ԧŽսƾԛɮࠦƞښùĂ͑"],["@@԰DžԾĒڸɛ࠲őéĝُDZٕǾ͋Ʋݍµȧôº̈́"],["@@؊ϛώnjහ»¹ȕ౾ƛࡨČᄚ˅ྤā٨ʼn૦Ǝౢʧࣲŝ@@MᷱIⷍࠠ{ࠌɵהρݜցࠈҺࡈ˖Ҁѡ֤·ޒϙՂ׽࡮य़ේ՗xՋұЙҥ͂ݍˌʃܺએںҍߎ߯Ä೷rটʌ჉ࢎߩDŽ฽̜୑í࿻ϬৃΨटǯǦ׏ҫÁঁǫ݉˱झdzťӶϚࠚࣀʶɱɂੱҵֵ֑௅ױؚСߏ׿ࣗΗࡁʱȻωಽѡ˅ϿছΫֽÞ޷ɻ࡝˹ۧ˫෹ʉſƘऀϾࠔʸࣆҠਬĨвΈ୘ԊȈǚب̒ƢْђӸॹʫ˓Ơҕ̧շюɧ̝̽м࠿ͳԩBïԄƲ̮ե̚થLJ܁ЀַȬIӈ٩Ϊ͘ӘۆҸ̚њںÖ־ƇڴМ؎ï٘ʼƻϨҹưج͖ԩWࢻǽʯȃڏȄஏĥ௷ȬΛ͸੟Ӧ୾ΘመШ۔@ŕнᄢŽڽԶਕ͌ױр߫ΨଽˈҺѲ๰‚ਗ਼ϦȨФ࡬ЎࠊĪཪώޜÉಐ҄ౚǭ"]],encodeOffsets:[[[-159275,19542]],[[-159825,21140]],[[-160520,21686]],[[-161436,21834]],[[-163169,22510]],[[-97093,50575]],[[-156678,58487]],[[-169553,61348]],[[-175853,65314]],[[-158789,72856]]]}},{type:"Feature",id:"UZB",properties:{name:"Uzbekistan"},geometry:{type:"Polygon",coordinates:["@@xԦૣά࢝ЪշЄ॥׈Яࡾ˭ƴࣥ͏ǤěڢଅѺ۽ӥܕ́Ɛхॅ[ᶾᓘӺƾïದ׻یͅߤݵঢŪ෸à৔ؗÙࡅЦMǢۍ੬ɲЉ̺Lπ׺૎הӖƺʠĉ۵խئ́ײȾ়ѷ੽؁ٕĊ΍uţɺǪ϶૱țˋաЋҫۭ ɓυؠȧǺصҿࡗهǰҳN"],encodeOffsets:[[68116,38260]]}},{type:"Feature",id:"VEN",properties:{name:"Venezuela"},geometry:{type:"Polygon",coordinates:["@@yȣӱĭ˜ϡYѭυӥ͆ڙδÆȌ؈ʻ̒§َਸ਼΀řІ̎ˆ̞ןל_մҵ˧ݮQ࣌ĔӖϕٞĻҼʾXɄਨ¼৖\\܉ʛ˼Їڦ×ِЯƆڧѬn͢ȣڕӱó̫˾̷ȽƽԫƉjϱɫɱّ֪Őʁ̭͍ऱ̽׿Žʏȣڛɀثņƿýϔɑ‘֝ŜՉ܆ï°ǭ׷ʅĭΣΉƏسȝNjʱٷÅҧѼʯ࠺ɟ̧̌Ȅюм…ȊʅʠǛ֒à׼Ȉ˰ƲҎ̓Ơӏĩ؁®ͻęסܢӥńઉăȧ̊ȷê‡ǬĴ̶áͺȃȂŅϮѡÈɸӮĺ׶ʔ̸͘ʌɈрդƖ"],encodeOffsets:[[-73043,12059]]}},{type:"Feature",id:"VNM",properties:{name:"Vietnam"},geometry:{type:"Polygon",coordinates:["@@૭ܗ۫ߍȁ׍٠ࢭ޺ળނԱԞګϪ།ŕ๓۫փ१եۇ۫਷ޱ̧ՠʀ֬دӌܬ͸ࢦÔσԚප٨ļ৖ț֖ƶࡀɃצٍאՋ݌ۥ঴৓Ԋʊ̠՞ɘ͙ܺਙPϕކӭڐҊȴڢIࠈĬܒ҄К̿ސƵƃӛАͿࡎɓ"],encodeOffsets:[[110644,22070]]}},{type:"Feature",id:"VUT",properties:{name:"Vanuatu"},geometry:{type:"MultiPolygon",coordinates:[["@@ˣō˭ςŒɤՆӗ"],["@@ƌڱɥŀǩ­ťɴi٢Дʵ"]],encodeOffsets:[[[171874,-16861]],[[171119,-15292]]]}},{type:"Feature",id:"PSE",properties:{name:"West Bank"},geometry:{type:"Polygon",coordinates:["@@@ԣŭʙЃŕ˜ɜɌŚɁĦǬ̤֔ś"],encodeOffsets:[[36399,33172]]}},{type:"Feature",id:"YEM",properties:{name:"Yemen"},geometry:{type:"Polygon",coordinates:["@@؉ɥNjύo˹࠷Οഇϻݩףυ±ʥºӭΑ՗lj۷©ɃµǿɛəÕŻɇеlˍœ׉¨ɓӬzҠƍʜǑتʋΊǚ¤đϨĸNJ™ξςˌđΠɞЮΊɓɬúॺnƸċ߼č͐¨ɂ˫ϺƖ׼ࢦ޸Ϛᝒ͒ڀ൳˞ח"],encodeOffsets:[[54384,17051]]}},{type:"Feature",id:"ZAF",properties:{name:"South Africa"},geometry:{type:"Polygon",coordinates:["@@ǏŧΣяɻћӇ׻ोࢁףԋًϣ࢛͙ѓ«ŇɷԛŰеDž࣫NJԙĹΏ¬ࡿͩܓƃԱͅϡoΣ̚˳fαϒŸśŏɦLӰ˙֞˔ƴs٤ս޼х܈AF׽તДдͪɯƘΫϘÓՈǃҌÖݤіB᷌ɨűӾߙûԟȈ̏׼ĒрϒЊʨȶДЦȚΠķВɽۂ£՞ȜĐʾƨДҚäʨ͂˪֔ݮغஒؤ΂UОƛ˲Ķ҂ċД஁ɔׯƫऩî̟чƶʏÑāʓɯ̿T̃ԆҕӮĜǢώْQȿؑıۥɑϛֵщ","@@νʶϻǟҕ҃͡Տـ٧̜ČƺˎҴƀƜ˜ʴФ̅ʪ"],encodeOffsets:[[32278,-29959],[29674,-29650]]}},{type:"Feature",id:"ZMB",properties:{name:"Zambia"},geometry:{type:"Polygon",coordinates:["@@ІϏɊ܋ƝɩǙڻLjۡ˃̇ʭޭѶɓᢇۗĂׯٍřӍͯĹ̛̅ßܵۓҭխ˳o˗ĬऱĠƯÚOêͧȎկ¶ۋȑչԾ֣یžᦶშYí̂Ű̀ƧЀĪТėʺ̂q¶ʽϾrՖûˬϡڨŝԤˆȌѯ٠ş̴ΧΈҥ٠Që࣠ɱƳח͞ɧƬļࡈƬসȉψʈ՚ɤĶ଀ƚͦđΘɇͰƗՖƗӊʧ"],encodeOffsets:[[33546,-9452]]}},{type:"Feature",id:"ZWE",properties:{name:"Zimbabwe"},geometry:{type:"Polygon",coordinates:["@@ҁČ˱ĵНƜ΁VՙϞٯźʙՒC̒έĞ्ई˃ӢǛƮ͓ڤलğ˘ī˴pҮծܶ۔̜àĺ̆ӎͰَŚÆ̻۬hϴǯǺȻАÓѦˑF੟Ǐ׋—عƊʝħӵŵùɛ؅ࢫ॓"],encodeOffsets:[[31941,-22785]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xiang_gang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"8100",properties:{name:"香港",cp:[114.2784,22.3057],childNum:1},geometry:{type:"Polygon",coordinates:["@@™@}ScTʟ@cWuJÁ–]„l¦RLj¼BĄà˜ ŽH@TOHCTDDDHDNAT@PEHDDNJLX@BABALHFF@DKHADBBLDHHFBLEJB@GDBBFBADDB@@KFAFBBJJA@BB@@FFDDADFF@FADDDBJC@AFBD@@DDD@DAA@D@DB@DHHBFJBBFEHDFAN@DGDC@DLCBDDCFDlAFBFCBEF@BC@GDAB@FD@DZJ‚X´HĐMja@Ý`p_PCZ@lLnRGSDMFK|a\\Y}­ƒ§™Mën"],encodeOffsets:[[117078,22678]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xin_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"6528",properties:{name:"巴音郭楞蒙古自治州",cp:[88.1653,39.6002],childNum:9},geometry:{type:"Polygon",coordinates:["@@˜@ÈÒĊanwŎV„™Ȯ¦ͪŃĢ„ÜōȂçČéƐżLɆóĊ‚ĊaʊŁ±¯²Um»ˌmÈ»V™ʠţWÑůǓ郙ôƑƒğÆīŎī@Ƿ™wô™˺LÞ¯ƨVǪуšĢ™ȘV°wĢŽôk°¯ƒ»΀@Ȃ»ĸŽǔ@΀ƒ͔ôôLɆó̐ÝɜLɲōͪƒƨóŤK@ī@IU܃ÛmȻţǩÝ˹ÛljťǓǫō@Ɲ²¯VçōKͿŁΗÇţ»ƽ™ɅƑLÓŏÅÅɱV@ÝĊU¯ÑĊĭÞLšÞŎJ±̃XȣˌōlƒUÈ¯ŎKÆƅ°™XÑܱnŗġV¯™óaUƒƧUōŁ„Ñ™±„çɲ¥lĉkğ°ƒk¥˜ƒnğţL¯ÝÝUƽĬ΁lķ°@„ō„XÿݯV»ŹLʉÞɱŤĉó°ÝJ™¦ÝKÝ£ţܙÈĉ@ƒxǩUċƑ@ky͓¹™`U²ĉVġ»ğa¯¥ť@ĉ™‚ó@ŻÛÛJƒw¯nó¯ġWƽʩķÝɛwĉĕݼȭÞķō@ó£Å΀ƑŽ¯ôȯÞ¯Ȱ™ÆōèĉXǼó@ݚnºƒĸ„ÞVƜĸȚUʶõˀĵĖɱŎÝĖVࢰӒѢ°˘nϚVˌ™ÈmɼĵŦW¤öʊõʔ@°ÈXVŽ™ènŎȁb¯ǫĉ„±Èğ`ġwōÔğ»mVVŽ„Ý¥ó@™ĸķô@ššbX„ĶmV²²`Þ_˜˜ɴbͪÈ°„ÞWĸÈŌmބškɲŽÈUÆ»n¼ǬVķĸźô¯°n¦ɄǜÈ"],encodeOffsets:[[86986,44534]]}},{type:"Feature",id:"6532",properties:{name:"和田地区",cp:[81.167,36.9855],childNum:8},geometry:{type:"Polygon",coordinates:["@@ƨ¥šèź٨ΘƑᩄbUࢯÞĕɲōĶĕöʿVʵķșUƛƒÝ„ķm¹Þ™ô@È»ĊWŎçšÅ°ȯȰÝ°óƒÆͿĉ»̽çnƒmɱĵƧºóU™™ƽ@±wóL¯°̻L±Æ¯Vƴķb¯VÇ¥ğ²Ǖbk¥ÇKlÅɱġ@у™óK@™ÇaÝXğţxĉČǫķê¯K@уaŹ„ƑKƒ¼¯Vóaónġw™óÞéU™ġbóĉğÇl¹™aUóğKW„Vůn›ÇŋƑ›ķnʇ»óxĉw™çÇ°Åw™°ċ„XŽ™„ób±ƒkÈÇJ—ƒm²ţx@ÒݎšŦǺn„ó¼n°ÇbUÒ±¼XĸĠłƽXmwĉºƒzÈÜmnxmx²ĖmҚbnŽƧêUºĊêÆVóĖóUĉ¼ÅĬƑ°ɆƆŻŚlłÞLš¼nĠƒ¼@ޙšÞź@ŎÞ°VšɄɴжϼِ͈Ŏ„"],encodeOffsets:[[81293,39764]]}},{type:"Feature",id:"6522",properties:{name:"哈密地区",cp:[93.7793,42.9236],childNum:3},geometry:{type:"Polygon",coordinates:["@@WnŐÆĶLĢ¦ţºź„lxÅĸƽŚ‚Ʉ—Į˜è@ô²ÞUĔƐńV°¯ĸX¦Ɛm̐bƒ»Ɇa΀šĢ™ƐLˤ™ȘÑnƒІljĸÿn¯ĶaŎ¯ĢĕȘ¯°΂œla¯¥™ǕǔwˤӱlťО̻nŻmɃĕċţUw°WUóƨÅţķ°ýV±óÅǓéʉ¯ƽŁƒéōǖȁÝƏůǕw˹ǫȗǓƧǕVý™é@ĬţLƧôͩ„ɱŎɛK̏ÞɅôóK@²@°ōؚ¼lŦ¯ŰóƜÛlV¼ķ¼ƒ°kȰ™Ű„ĠƒǬ™ŚÝŎmĖ`@ÇÜn„"],encodeOffsets:[[93387,44539]]}},{type:"Feature",id:"6529",properties:{name:"阿克苏地区",cp:[82.9797,41.0229],childNum:10},geometry:{type:"Polygon",coordinates:["@@VƚxˌŎÞŎƒ°n„ȂÒ°²VĊ¯VğƾˍǬƨÞÞKÈÞĊVźôɆÞĢèŌôWČ²ŤVÞĸʶbl‚¯ôn_VÆĸlmÞnVź_ĸ¼Ȯmǖ„šéĸW°°„ĸJ„kʠ¼Æw°¤ÈƒlxɆzČºĶI²ÆǔUš°ô@Þ¦‚ƒUnUĠ¼ŎÓĢxĠ_²ÇĊƒǬ°ŽȂamōšçUÇW@¯öʓõʉX£ĶťnɻšÇUˋmϙ¯˗ӑѡᩃaΗƒœɜ°xWƴUxɃÒˣ¤Ʌwğ„ʉōóÝŹ±°ȗ@¯„ƃ²¼","@@ō™гwȁ¥Ƨ°ŹÑķV™¼ÞêĊ»‚lĵšm¦ÅW@ĀôÈźaɜxÈbÞÆĶIОŘnIÇŃÛÝĊÑĠƏ"],encodeOffsets:[[80022,41294],[83914,41474]]}},{type:"Feature",id:"6543",properties:{name:"阿勒泰地区",cp:[88.2971,47.0929],childNum:7},geometry:{type:"Polygon",coordinates:["@@ɲˣĊIÈ¥‚ÅU±Ċýkō°ƒĉƽó»ĶƽXóʵʵ™ȯƑÅȁɅ¯ĉ@ÇሗK֛@@ˤV֜ʵрƒǬVĸƑŎ@ƆϯÑóŽķ@ʇ»ķ¦έmlÈĸĊX¼WźÛÞÝѸ‚ĢČþ„ĀĊôάVö¼ĊUƨ°°èŎČUÜƐóôVôôŽ²êȘlˌç°`n²ǬŽĊaš™ƒÛ°±kğmm»š@°ÝɆÛÅÇVaݍVm͔ğôÝÈb‚„@„ƒ™n¯š™ÜUĢÑĊ@źīżWŤÈǖWôŁÆI²ÓƨL@ŽĊX„mmÑÆ»ȰÑkƒĶō@ý°m—¯"],encodeOffsets:[[92656,48460]]}},{type:"Feature",id:"6531",properties:{name:"喀什地区",cp:[77.168,37.8534],childNum:13},geometry:{type:"Polygon",coordinates:["@@Č@°ƒĠ„ôÓô@Ŏĉ@Ƴĸ@Ť£ĢlVôWVóřXĉŤêÞ@ƐÒĢÑlèÈV@šĠIk°ÆŘ@ÈÈĀ@ǶťÒğ@š„@ÒĉlŻ_@šƧĖÅĬōÆ@bźÞnƒƒlVœÝĬšWƼʇ„ƒÝÅ@ÇÅÈwWóĉ±ğz‚ĬČƨƂÝIĉݯbÇÑĉƒ¯ʈV°xUŰĊ¤ƪ_ôÓɚI@lȚXȮ™ŎlɴȘ՘š„¦ɲÆʈ_ɴŽźŽôÞʊŎĠƒɆxˤ£ɄÑVwXƳ¯w›ɛŹ٧™çƧ¦ōƒُ͇еϻɃɳU™Ý¯@ōÝŹš™@݄»mğ™»ÝKkŁżřɅƅƒ¯ÆīĊ»ôVôĕÅUĉéV¹ƨém™anѱĕnwmwnÇۄyĉ¹ŹlŏkĵèķmōÞġKñÔċKÅèĉzƒŽ„ômxȗÿƿI@þÅČÝKÝ°@¼ÈVºš@ÅĢšÆUċłn„ÝÆǕČĵJm£ÝJ¦@ĊƒxV°ƏLċ¼ǩ™@™m@ÅĢómÇÆğ¹Çš™ÆšĖÞKšx„wô¦ÆÑÆL²ÆƾŽU„Ž±ŚÅŻĖ@ĬŤÈñ„@ǔÇx„Èǃ","@@VÇ™ţ°ğUĠ¯mk¯ó¥ķIġÿƏbƒ„ĉa±ÒĸĀlKU„_m»nwšŽ„m@ÈŤ¦ĉbÞ°±Þżł̦°ĢŁVé"],encodeOffsets:[[76624,39196],[81507,40877]]}},{type:"Feature",id:"6542",properties:{name:"塔城地区",cp:[86.6272,45.8514],childNum:7},geometry:{type:"Polygon",coordinates:["@@ήnĸ¥ʈ¼ĸ@ôϰÒ@ƅƒōUķƑǫʶпU֛܃LګK@΋ĸ@Æ£ÞġÅĠċšLV݄»™@Å»Ýnm¯š»nŻĊ@nķŃ@¯ómóÛÝǟ¯aÝóȭ¥ƒšōUmxĉbÇї@›bUº¯X¯ÆƧbVÒĉnǕw¯°ƑŽV„—ŽÇ@kx±Uƒšɱn™ŽÅKƒ„¯ƒĠǠU°ɜL@°ƒxnĬ‚ĀŋŎÇLƒŽğšϱÞέƜkôÅĀǕłƒĸĊŤUŰĢ°„¦ȂϰÜɨ°x@°żǠÆƈČVĠ»ČL°ÇšbĊÑ̐óÞlĶwބɆVÞwǬxǪţȼÜLŐĶˢ@","@@óKĵĀV͈ĉłƾNJÆŤƒzXl°ƒÆL²¼źŽôÈĢǔ™¦l„ô°ɜÞʊĠğŃm»ʵƳƑʝȗīV¥¯ĉ°Ñ@ŃÅI™»ĉmğn™ƒašƒċƨbš™Vğ—w›ġ¯@Uōa™ĉÝJğÑÆŎkŎÞĀlźƒ¦"],encodeOffsets:[[87593,48184],[86884,45760]]}},{type:"Feature",id:"6523",properties:{name:"昌吉回族自治州",cp:[89.6814,44.4507],childNum:7},geometry:{type:"MultiPolygon",coordinates:[["@@መL@È°ĊȂɆƒÆĊ£„ťôWÓɆbĢÅŎƒÆ¦ČÑW¥°ķU¯ƏŃVē±Ý@ó—ç˜ĭɃƾřÆķkwŹƒŤ¹ġ¥ĵKŏÅXmˍщwǓ¤Ƒ@wóōVķ£ɱšġôÛa±Òȁ„óèţIVŽƽ¼k¤ó¹ġJmx—»ÝUƒ²™@ÅƃĸǫŎ„ĊmŎǬ՘"],["@@Þô°bÞǠôÜôn@°ĸń˜Ƕkłƒ¼UޙKğȂÆÝĢŤķ@@ΌڬL܄K@ˣȂ˭lĉńW¥ĵVÆý@ŃÞēUŃȗƅ@ŹƩǕĉ»k»Ç™VğóřX™ŻKƏŽċêȁèÛŎġƒͩń"]],encodeOffsets:[[[90113,46080]],[[87638,44579]]]}},{type:"Feature",id:"6530",properties:{name:"克孜勒苏柯尔克孜自治州",cp:[74.6301,39.5233],childNum:4},geometry:{type:"Polygon",coordinates:["@@ˎǫĠƽ°UUĉ¯±ȁÑmƒ„¯Ýōˋō™wUű»ÅƑ°ƒȘ@²¯ɳʇ`ɱŃ¥՗™ɳȗōkȭšșW@kəJóÔƩ`ĉ£Vů¯wU°ʇĊ„ÈÒ°aĊÞÞJŁċƧīĠyĊ²XôÇxÈÆÆ@„ÞʈƒÅ»™XÞīU›Ƒkm„ŹÝ@aŎÅÆīƨĕ@™ż`Ċk@љƒĠ@ŦÑ@ǵÇÿ@ÇÅŗl¯ğJ@™ÇUkçġÒƏÑÝ@ţéWĊôŚUŽóXUġkţ¤ķ@@ƴōĊó@óÔğƒ¯„ċ@@Қ¤kôˣŰ͓„k»ƒKX¯ċwƧôğɐšÒôIVƙš¯UķǬķšnŽ™¼ôb°ÒȰVVÈÞ°ƒĸó¤V¼°„V°²êƒlĢ҂Uƨ¦ôȰƴĊVV¼ǖIċĊ„ÞɜéšnČW˸Ǹša„řÈw±īšçĸ¤ĊšôšwšŽĸUĢ¦˜éǖĬ„Āô¼lÞkÒ°x°ƆÞx„šÆV²ǔ»„b°wގȘ¥°n„šŎV@°„„ʠè‚ŰȂb"],encodeOffsets:[[80269,42396]]}},{type:"Feature",id:"6521",properties:{name:"吐鲁番地区",cp:[89.6375,42.4127],childNum:3},geometry:{type:"Polygon",coordinates:["@@ôK„ĉǪa²¼lÜô@ʠê°Ĭ™ôȂƒ²ÑÜbĢóɲ™ĸ¤ŎUô@xƒŽǔ£ъxˎmƒÈÛ@‚_nĕÞōšř„ǫƒğšůlȯ„¯ĸ»U»Ükôƛ°ůkť™»Ŏŗ@¯@±͓óͿ„Ǔ@ķȁ¼Ϳ@Ƒ¼¯°ólġ¯xȗUġšƑ™ǩÒƧUÝ°˹Kóššx@ǸōĬÅĬƑĠ󃄚ǔêÆ°XÒʟŤUšÇ¼ˋnn¼±V²°ȂUŌݜbʟǔɅô@żǬaҎÈ"],encodeOffsets:[[90248,44371]]}},{type:"Feature",id:"6540",properties:{name:"伊犁哈萨克自治州",cp:[82.5513,43.5498],childNum:10},geometry:{type:"MultiPolygon",coordinates:[["@@ĉ„ÆŘȁ̐mÞ¯ĀX°±¼@ƾ¯ƴ°ŎÝþŋ¦WÜÞbȂĉźUœÇmwVUȂóô@ȰÝ΀nÆJn™ƾ™ʠ™ŌLČóǪ¯œ¥ǔaǖšŌaôÝĢLšx„ƒÆLšɲm„™²VlwÈ@˜Uƒƒ°¯ǖxĊmUÑƨa°Å°WV¹œa›ÇɃÈm¥°¯ŹóĸķǫUm»Å¼ÇVɱ™l݃ŋnķÇÝX¯ƒͩÇɳa——Ý`±_U±ĵnWƒ™a@™ĸóšķ™¯ǓV±ÅĵJċ¹ɅykwDŽ¯£Åxʟ»ƒlķI¯ƒX¯ķ‚™êǕƒȭnķ»Ź`±„kÞ@Žš„Ýô@Þ°xšŤŎIƨÆUxōš¯²ǔĬǬlUŚ"],["@@ÞĀlźƒ¦¯ĸŤKޙšƒċƨbš™Vğ—w›ġ¯@ţƽJ"]],encodeOffsets:[[[82722,44337]],[[86817,45456]]]}},{type:"Feature",id:"6527",properties:{name:"博尔塔拉蒙古自治州",cp:[81.8481,44.6979],childNum:3},geometry:{type:"Polygon",coordinates:["@@ήƛϲÝĠ™„ÈKŌōÿmī„w@¯ɛKV¯ğǟ°Ƒ™wġKóÞŋbǕ™Ǔb›¦ǩ°ċôŋKʟšƽšmšÅImŽͿŽȯÞó@ȁôUVnx›ÈŹVȁĊÝabŻ£¯°l„óxȂŤĸkĊšÞyĊêĊmĢxV„ƨÈŽĠX„ŽΘÆĠÔź‚Ɇţ°LXƾŤŤb"],encodeOffsets:[[84555,46311]]}},{type:"Feature",id:"6501",properties:{name:"乌鲁木齐市",cp:[87.9236,43.5883],childNum:4},geometry:{type:"Polygon",coordinates:["@@šŽWŽôŚUĠȚl¼Ċ¼ƪǖ@źȘƆ@ýlܚXVŘޙš¦V¼kĖó҃èkĊȁˮ֜@ǫ՗nōƒĉǬō„ķÆŚ@„±ÞV˜¼nwĢIôºl£ƾ»UŤJôçšó¯īʟéó@kÛ±»ǩbƒĊóLҍÇǫb@ŻɆóʠǓ›aŋÞȁVʉłĉbĉɅô"],encodeOffsets:[[88887,44146]]}},{type:"Feature",id:"6502",properties:{name:"克拉玛依市",cp:[85.2869,45.5054],childNum:2},geometry:{type:"MultiPolygon",coordinates:[["@@ɜÞʊĊýVaŃm»ʵƳƑʝȗīV¥¯ĉ°Ñ@ŃÅI™»ĉmğn™ƒaݚţL°ķóKĵĀV͈ĉłƾNJÆŤƒzXl°ƒÆL²¼źŽôÈĢǔ™¦l„ô°"],["@@ƾIŤ@UUwōa™ĉÝJğÑÆŎkŎ"]],encodeOffsets:[[[87424,47245]],[[86817,45456]]]}},{type:"Feature",id:"659002",properties:{name:"阿拉尔市",cp:[81.2769,40.6549],childNum:1},geometry:{type:"Polygon",coordinates:["@@nIÇŃÛÝĊÑĠƏō™гwȁ¥Ƨ°ŹÑķV™¼ÞêĊ»‚lĵšm¦ÅW@ĀôÈźaɜxÈbÞÆĶIОŘ"],encodeOffsets:[[83824,41929]]}},{type:"Feature",id:"659003",properties:{name:"图木舒克市",cp:[79.1345,39.8749],childNum:1},geometry:{type:"Polygon",coordinates:["@@VéVÇ™ţ°ğUĠ¯mk¯ó¥ķIġÿƏbƒ„ĉa±ÒĸĀlKU„_m»nwšŽ„m@ÈŤ¦ĉbÞ°±Þżł̦°ĢŁ"],encodeOffsets:[[81496,40962]]}},{type:"Feature",id:"659004",properties:{name:"五家渠市",cp:[87.5391,44.3024],childNum:1},geometry:{type:"Polygon",coordinates:["@@„çôÑlĕU»™¥ÝšUŗ™WkÛ@þVńÝĔ@ńÅþĶUX¦Æƒ"],encodeOffsets:[[89674,45636]]}},{type:"Feature",id:"659001",properties:{name:"石河子市",cp:[86.0229,44.2914],childNum:1},geometry:{type:"Polygon",coordinates:["@@lŁ—ǵm‚ĉ@mż™¼n°ÞmƼš@"],encodeOffsets:[[88178,45529]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/xi_zang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5424",properties:{name:"那曲地区",cp:[88.1982,33.3215],childNum:10},geometry:{type:"Polygon",coordinates:["@@ƨʔĸbܺÞwnxźbÞ°ô@„ĶŽĸIȼĊJŎÈôUšÝƒ¤ǔLސŎ@ĢŽȘblƒôL„ÇźçȤôLš¥ÞIÞ¯Ķxʊťƨ™ƿÑĉXVķŦ¯ȂKÇǕšÑ¯IUš£¯Óƿ£VĕōÞÿÆwƒƑ„£ǖxÞĕ±ÇÝaUÑȃU¯‚UōÈ݃wWŁĵ™±Ý„óĢÿ°IÞ±mÅĢ¯mÿ„¥°UnÑŤĢĕĶwǬŻͪwŎ¼źÇĢ„ĠĕˎŁ°óƨ¼Èa‚m@¥°wǔ„ǖ°ŽƨÇŤœšġƨ„ŎŃôbÈÛŎĊ°@Ġw²ÑÞJƃÆb²ƒ°êĊUނlȲƒV„ÈKĊÒĸĉ›»ÅôťUÅǃk¯@ǂÑklǁÅl™Ģ™VÑóƒ@°@„ÛĸƒV¯ƒÇĊ™n¯Uĕšƽ¯m›¯b™È@Ò°Ĭƒbĵ›¼„‚kxķýÇJk£ÝaUÑÅóĶǟkÓʉnĉƒÝ¼Ƒ„ó»Þmn£m™Č¯@ƒȮÿV¯ĸƒ™k@Ýówƒ»ğ„ġ±ǓLō„ƒšV¼Əèķĉ™è±b@Òţ„UÑóakƒl£™Ó@¯L@™ÇlUóȁš¯aġÈÅĕÝLķ¯Ė¯@WĬ—x‚ÒÈnW°ţôU²ǓÓġ²V°¯ôƒǔÝL—ċšk™š»Ý»Ýš¯ÞƒVƒwۄÝÇōͩÈĉċ»ĉm¯£W¥ţKkóġƏW@¯±kōŽÈ›b@җšÇaƒÆ¯a™„ƒkóŽÛƒÇ¦Ýa¯šÝ™ĉ@ǻۄmƒǓxķƛ¯lVĀÅÞġb™™ÇJUÅV™ĖƑW™zō»ōšƒW™n@è¯ÞóVkwƩnkźÇބҙޯƒƒýğÇUxÆÈnè±bĉÝ»ÈуwšwÞ@m»ÈV@ýÇ°ķ™xƒa„ݯXċ¥ƒÈóW@ôkxlnxVÈóĊkŤġ¼@°¯ŰƑL̻۱ŎÝV—Þ›VƒÇÞŎÇakƞ‚š@èğŎĸżšƾ°ÒšLÞôĠKȰĖźVÈÒĠ„¤™VôšŽU„ÈþťL@ôǬÞlÜÈnÇÒUŚ™@šĊƨW°™°Xƒ‚@ČÇþ„ƴĉÒķ¦@ŽĢôWĀôłUÞĢǬ™ź°¼š@ƒôV°„bUÆnzm¤ƽĸƒÈ"],encodeOffsets:[[88133,36721]]}},{type:"Feature",id:"5425",properties:{name:"阿里地区",cp:[82.3645,32.7667],childNum:7},geometry:{type:"Polygon",coordinates:["@@„Çƾķn£myVŃaU¯„ó™@¯»šŹġǫVÝóŁXÿġó@ĸ¥ĊуƳÈý@ċ„Wš¯X¯ĉƧ‚™š@VřÈÑÇmkÛǫÝ@óŦKÇýVƒ™U󚏃£ğÇÑŹUȯĕğLÝó™K¯Ñ™ƽķŻĠō@灙lƝÈbƍÈ݂„œU˜ÝÞU²ō̼ůƒK°ů@¯UK±—ĊƧbōÇmçÈġƒóšÅób™™źóš¥kīƯól™ç™KôĵUƒÅ„VŃķ¥nÅŏm¯¹Å‚™»@ÑǍóxÝkʇȤU¤ķb@ƒ¯ĊÇx¯ĸĉKm°šĀk¦l„„KnĬȀƾÛ¦WÆŐmNJĉ°ōUţ¤UšŎ°šŎKÞłÆ„Ǔ¦ƒÞ™‚™„ř¯bmUÝl¯Um™ğl¯£șwŎǫaÝnĉĶƒk@¯™K™šō»ĉn™aÞ»ťnkml™ĸ¥UŚŻkÑťƒĉV™ôó°LôīĠU„ÿĉǕÅz±Kƒ¤„²ō¤¯Ė¯UÝ¥Vĵ™óÈťÝwķșÑk¤ó„™ƒWýĵĕ™„VĠƒV󍃎Ǔ„ķ°k±VU±ţ¦UǟÝřJVљ¥XUċUŎlÛƆǕÆȗƆ¯wŏÞÅ@™šĉl݁óŽƒÒ™nUôńlxólÝôێ±™™LÛôÝL@‚ġ¯X¯ÇUżóa󤛼XÒġŎóLk¦‚ôżĸĠ™¼™KġƆô¦„ÆƑÔĉĶ¯ImÒ°¦n°¯Þl˜ÝČn„ƒÒšKĠޚĕkƒlýƾťœšôI‚ĖŤÒnƜm¼¯lnżóÞ@Ůó¦™ôƽĖċŚn°Ý°ôÈUƜƒblÞóŽ@Žǖô°UÈƆ°X„þôŽô‚lѢšŽ²Ėm¦°š@¤™XŽĊblܚzkºƒĖmX„šŎWVšóÞn°lĠxȚa°»żLźƒ„b@Æ°XĠÝȚxĊĕŤaȚ‚°È@„„@èŤ¦Ü¼œW˜ÞkŽÈ@V°lŤkŎ±²¦ƐUšlj°aÈÑŎbĢƒŎbÆ¥ÞIȘlššôVÈU‚™šb„kɲĶn„mnXb̼òƾĖŎ@ĢȂÑôÓĠĖʊšĊÔ"],encodeOffsets:[[88133,36721]]}},{type:"Feature",id:"5423",properties:{name:"日喀则地区",cp:[86.2427,29.5093],childNum:18},geometry:{type:"Polygon",coordinates:["@@ĶĖXþš„ôƒl£šÒĸÇÞxÇŦšôUĶÞ¦°V°ĕŎ£ƒ±„£²LÆyĊǖƒĀğVóĬ¯KóôUš‚ĊŦ„lҙżVÆķ¦kšlnŦmݼšbĊmŎ¼š™šL@°„lĊĵÞmǬbƍȚx°¤Ġknš°VÞkVn°aƒŚš‚š„Ýǔ¥ÅƒÝŁōL¯™ōV™Ť£ŎVĊ¯nljƏXÅÜ¥ǿƽmīƒLkƒl¥™ÿn¯ĊL°ķÈw°ĉ@ƑĸaV£ʈȣÞlôwȎ@Қ¼Æ°ºŐnmÆĸ¦UńƃV„óĶšLšèôkÅ°lĬ™¦Źôššôa™Æ„ôÇĢnèŎÈƨa˜ĉ²‚VLĢ»lţôĉUǂwkmlw@óôX„ÇȦ°WƒÞ„b‚wĸšÈ¯@þÇUn¼Ý@™x„xÇńÞ¼ĊŽ²amçÅÇVwĠȄþ°„šÝƒÑÈÝlŹƪmlxôU°Ý@çšm„XŎ™Ŏ¼šyƒXšĕÆUVÈIššĢaÆÝUÿ°kĸƜǔwn„܃ȼĊ@ޚ°™Þbȥ܄ô„lšƒ°b„ÅÈb˜™@ќa‚ǯUU¯Vġš»ƒ™¯aV¯Ç°Å™mnÑŤçǬVǬ™±ĉ¯¥Vĕ¯Ýk£˜ō—w@±ġÛ°ÇVїƒ@ۘa@ČL™Ƴ™„ƒÇa¯¤ÝIĵ¼U¥ƿōķÅţŻókÝóĕ‚¥¯™U»Æ£X¯ġŃÛkÝ°V°ó¼¯èWôÞĖ„ȎƒŽkĀƧĀówm¥¯JŹÝJݙōVVŁaݐƑ@ƒ˜ğŭǂ¯_ƒ˜ĵ—›VnxŃón›ƒĵxÇĖĉVÝÈğV™Ò󃯐±Żĉ£ķÆÅL™Ljĉý˜ţۃ¯VƒnV¤ÝÈ@°ÅÞݤ™ŰğŁm¦ÝxóKƒ¥ɱÈUĠôêVôÛ¼ÇWÝçĵaō¦óĖƧlÇĢƑŽnŎDŽV¼¼‚ºÛ@m¦ƽ„ĉmm¯ÝKÛç¯bŏłĬ™bƒ¼ÅLmŽ„xť°ÅU™šÝXkŽÝmĉ¦W„¯K„ÒknÝaV„Ýè¯KɅńÝKnÞ¯¼"],encodeOffsets:[[84117,30927]]}},{type:"Feature",id:"5426",properties:{name:"林芝地区",cp:[95.4602,29.1138],childNum:7},geometry:{type:"Polygon",coordinates:["@@‚VÈłVôÈk@š°K@ŽšÔk¤l„ôbVÒŤƒ@ѲašçĸĊƐçU»„™ŎƒǔKĢ²Ġƒ„¼ôx@ޚlƨĬ„Ul¯ÈLV‚šÞJ„°Ünʊ„wÜbXê‚VÞ¯°ššanaU°wƼɴÑWÑ°mÈýÈam¥Þ£Ť@„¥ôblÞĢ„ź¥ôxÈÅmݚ™ƒĕŃV»ĉōŤōnóƒ»ÈīķIUƒĠÑ°ġĸLÞ¯VÒƂ@Ābš¼WôÈ@V¼ôóŤKÈÑU»šwVǫżnWÒÈx™¼‚lŦ£ĊōŤx²¯@ƒÆƒU¯šçÆ@„¤°£„é°k°lšůÈó@¯ŤÇÈĉƒkkÿó¥ÝXķљÜ@ÒóŚÝ¯°ĉówÇ±¦ÅJUÒĉĀķw¯°mĖ¯„±akxÝÅnƒ™»lуK@¯lU™¯UVѯóĊ¯mōğVǓƅƒÞƒWÝÈÛ@ƿô¯ÜġzÅþ¯ólmôʇġĊÅUͿřŏȁˋŁóÇˡōƧƒÇb™w°Ķôk¦šÒƒnUþġҙÔkǔķèó@ƒ²@ŘōńĵyƒzġaݤÅIƒ¤Ƀť¦ğѯ¤ķbóš¯ó±ŽU²°¤ČÜVnÈƂ„ŚŎ°ôĢ„þÆzèVĀǎĀǘƒXŹÑ¯¤ówċķk¦šłUÒġzÇ@ƒ™ÆÝx@²Þ@Ƥ„Uô¦Uš°x„U"],encodeOffsets:[[94737,30809]]}},{type:"Feature",id:"5421",properties:{name:"昌都地区",cp:[97.0203,30.7068],childNum:11},geometry:{type:"Polygon",coordinates:["@@™ŽVĖm°ĉš„ÈU°ķ„ƒÜ¯@@ô„UÒġškš‚ÆkÈlŽÒ@Èl°È„VÆóŦƂœ¼‚a„ÅĢ™Ʉwnōw@¥Ŏ¦°ŹÞmVš°wnÿƒw„wÝw@¯šmÞŗ°wĠ˜ĸkÞğlĔ²¦°@„ĕĸwVóšal@nĢÇĊn°@¦šŽźUXçǔůĸVš™ÆK„ÈÝĠš²ÅĔô@lšŽÈ_m˜„zǖl„šaU¼ôwV°¯¦‚ĬÈa„l@Čǎ„¼™„nŽ˜I„xô»ɜ@ƨ¥ɆŁ„ŃǪȁkƛƨȍʊȡóĭ›@—ÈÇVƒůރĸƅmēƨť™ÅÈʉVǵ°ġVŭÅɧ°ÿnɛš£mƒķ²ŃóÑUĉ°mÇ»¯@mxUĀ¯èţ°ȁÝç„ġU¯ÆÇţÈ@°Çô™Ű¯k¯lƒê¯¤ƒ£Å@™èV°Å„@„±°ţwĉŎť¤kš»ÇwXÑŻmUǬ™xV¼ÇÒţLóôU»Ç@X󙻂a@ÿŁUÑÝ°ķK¯ĢğÒV„ĸJÇĬ„¼môţŎĊŎU¼Æ„„Ė™šnÞÇÆówŹ¦ġƒkÝóaƒ¦ţ@ݤn¦ÇbÇþ¯nXÒɳÒÅ»¯xVmb™b¯™Ý°UWéÛaƒxʉÛmƒ¯ÝI™‚UÇKk°ƒVƧīķ„U°ȭĀ@„ċ°nšm¤Ýnô¼ƒƒÞ»Ċ„ʊmlÔĵǠÆôVÒÞbl¤ÈIĸþlwƒœ»ĶŽ„a¯ī@њǰanœƾ°"],encodeOffsets:[[97302,31917]]}},{type:"Feature",id:"5422",properties:{name:"山南地区",cp:[92.2083,28.3392],childNum:12},geometry:{type:"Polygon",coordinates:["@@°ÞUĖ°¦²ĊôÇÜLǖĀɜŽȘŰÞLĸźêÞ@UÜUŤ°ɞ¯Ü„°WŦĀmŎ„¦ĢyVљŁl¥Čĸôx°£źÒ„Wȗ‚ÿȍUÿ‚çÅyƒýóġō¯ƒřŁmÇÛUċŽ¯£V±²°ôô™ĸa°£ĠÒŦ¥ɄŽ„£ÆJÞ£Ģb„yĶzŎŃ@ŗ„±ô@ĸçlǓšÓĢÑVý„m™Ñl¥ĵó‚¯̻̥™ƛǫÝһÇƧĉyţ¼ҍēVĶĉŎ°ĸmšÞVÝĸ™ÒÛaċ„ó™ŹĖƒèÈÈl¼k¤ÝX@`ސŏ¼Æō¼ÇçĉKUÝÝ£ğ¤@¦ġl¯Òġĉ¯óš™móxÝÞğVšƴċK@—b@ܘ„UÒ¯ÈĢÜ@²˜x—Ŏl¤"],encodeOffsets:[[92363,29672]]}},{type:"Feature",id:"5401",properties:{name:"拉萨市",cp:[91.1865,30.1465],childNum:8},geometry:{type:"Polygon",coordinates:["@@Ŏ²l@°‚XĢƐlôŤLX¦°¤ĊnČ¼ÇĊŎͪÞÈ܃„x„U°Ýޙ޼™¼lšČ™˜ŽÞK„Ǔ°óU¯Ģ±ǔÔV±ŤóX¯ÇmÑ˜wXī°@°ĕĸÞKÆĖĢÇ°bȂ™ÇŁUƒV¯wV™ó¥ƒVÅ£Ý@@±ÞwšÅ‚„È@ƒ¥nōťÿ¯Xۃɝ°ţ¯ÛVVÝ@ŹéķÝKȗůɛǕÿÛKóÈǫšǫUţèmҚn¯Æ°ÈU‚°b„š™¼UĢV°°V"],encodeOffsets:[[92059,30696]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/yun_nan_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"5308",properties:{name:"普洱市",cp:[100.7446,23.4229],childNum:10},geometry:{type:"Polygon",coordinates:["@@U‚ô²‚a@Ž²²Ķ¥œV°šĶ²bl¤kVxl‚@œ°‚Ś²@˜„„y„@ô¦¯„@xƒxVxU„VššbVšÜm¼Ŏ„„ĢmºXXWÆ@ĀœšmŽmXU°ÅÒm¼Þx°w„@°‚XêĠ°»nV°U„l@k„@V±ôī@£‚ƒČŃÆ£„KÞý@¥‚k@y„a@—nWV„UVƒšwƒmƒ£Jƒknm@wmkn‚X„˜šX„¥mUUlUnbš¯°ŽnkƒVInlIUw°n™mk@@mlanXlanmšk@wVWUw™_@éĠašnmUaÜ£ƒmXƒ¥¯@@„óUmݯ¯ÞÝlKnxô£š»„»Ġ„J°aV„UÝÿV¥ÛbƒI@wmŽón¯yÛL@ƒWkŎmș`IWa¯K@¯mUnmaXm™bmak„¯ŽƒĢ™ÒÝm¯mV¯KÇb¯KۜWW™X@a™V™knċLUWV™kXóW@k™a@ƒób¯Uƒwmb¥UUlaU¥U£maķšƒKXkƒmÝ@kwmѯk±ċbUUVakaġ¦ƒƒkL@`ƒœ™a¯xƒm™Åƒ™LUWƒ@ċnŎUV°LkL@b°°@¤š²ƒ‚šnôôk„l°kè›ÒÈzV¤È„WôôƒnV@„ƒ¦@¼Ux"],encodeOffsets:[[101903,23637]]}},{type:"Feature",id:"5325",properties:{name:"红河哈尼族彝族自治州",cp:[103.0408,23.6041],childNum:13},geometry:{type:"Polygon",coordinates:["@@°°nÞôV@ƒ°@„¦WŽ„nÛ¤Vbmn™ğb@êš`VxUX@xš„ƏÞUnn˜WÞĸĢƒšÈ@ŽÇè@zÛÜWšÅêlš²„˜KnV¯ĖĊx@bk@@„°JÆ£Èbl„nnm°nlUkVUUwVm„Kn„‚nVŽÞxVLX¥laX@@xl@VzȎVmšk@b°šÈĸmŽV¦`W„XšƒbUb‚bX¼°x@ašVVkn@lþnXUlVxŤÅ„y‚IUƒka‚IŎĊ@lXx@b„z@‚ô„ƒ¥„_V@l‚n@„ôy@al_l`nmƒÈ»@kƒmXwWK™U¯»™a™Å@wƒmUÝKUa™UUƒ™wWƒ@w²»@kƃV£—mm£VKkÑV@@»nwƒ¥™ƒ@kƙnllIVlnLVakalknJšWmnaUaVÑVVލn¥m@ƒ„¯Uÿl™@™™™VçƒaXaV¯UyVLVkš@nJlšXLlŽkxlbla²Òl@nVJVkšx„KlkUaVķÝÑU@Åm¯@±™Uó°ğńķĠmU™Ñ@ǯ¯Å¼@nml@°¯¯`@w™£@¯Çƒk@ƒ»nmċ¯U»™I™Ž¯LÇĶÛn@bó°™U›šwmŽ¯„™Umǯa„™ƒ™ƒI@ykIƒVUŽ¯bƒIğŽƒ¼™¼ó¤mwkLÝÞ"],encodeOffsets:[[104243,23429]]}},{type:"Feature",id:"5326",properties:{name:"文山壮族苗族自治州",cp:[104.8865,23.5712],childNum:8},geometry:{type:"Polygon",coordinates:["@@šwô„š@²¯maUmôUÆxš@Xš˜bÞInlVUVw„JVaU„K°¥„xmÞXnlKlnna°@ĊČ„ÆwUmnkl@°ƒƒ£nyn@VV@Vak™ƒ@@kÞ݄bmx°Vnw°klÞInĖÞVlKl™@Xa°„„KlV„U@šJnx‚U@ÈĢbUKlm@ak_‚wšanWUk°ƒl»„k@Wk@lwU_ƒ@UalóU¥ƒÇnƒ™kJWƒ@mVXx±bƒK@nV±a@™Åa™£ÝK²ƒWknamKknǏk¯ƒaV™™V¯ĀƒU™„™Ò¥ƒI@mm¯¯xōW@@`k@ó»ƒUU¯lm£ÅWlĵ„w@mmwÅmWU@y±U—xmwU„¯Uƒ¥Ý¥¯£m@kŽÇVUV°VbklƒL™wUlUIm‚k@±ÑkbkalwkWKk™mI™@UlUKVzU°Wb„bU蚚@škšVĀƒ°@„n‚m¦ÝŽUUUÒVbmbXn™‚mIkllbUbmKUkkJmkŚ@lš„„¦mx@¼U@lÒULn¤˜nU¤Å„@l±¼@xX„šxV„šVVbÞLVŽ„n@xšÆšb°¼šV"],encodeOffsets:[[106504,25037]]}},{type:"Feature",id:"5303",properties:{name:"曲靖市",cp:[103.9417,25.7025],childNum:9},geometry:{type:"Polygon",coordinates:["@@ȦlKÞĕUV¯Um¯„ÇVUnVVUƒĉn™ĊÇƾLn°°È„JÆw„@lbÞa„¦V„XJ°¯W¯„aÞJVkUša„ƒ@lKnÅmWUk¯a¯»@m±@уkkbWWX_WÓU»_l™kÑm@U»m@l@IWċn¯l@VanV„UV™UVwVx„KȄVmUē‚@„ƒn@VÝÆL„w„VVwnVlmkUVÑÇ°ka@k™ÿÝaÞUl£™›—ċĕX±±ĉƒa@UnVnalónk@wl™UVmkÝJ—aW™™@ÅwóVVnnb±°™@óƒ™xXLWx„n@lǼn„m‚k_k`@bózƒ‚m@kU@ƒ`„¦óƒ@nWš@ÜÅXWw@ƒyƒb¦@ÒlnUb@x™lܐk‚@²Ç@Uƒ¯bmy@kV@bƒb„¦U`lLVx@b—Ll¼Þ¤@„°VVބU@WސUb›J@nnš@lnnm„šxUŽƒUUbƒK@šÇwklkUƒVWakn@ŽlbU@@„ULVxkKUn‚°¯Ò@¼™„kmƒ¦m@kl™Ȱ@lU„l¦„@Vl°wšnnþĊUÆbUx™b„ŽV„šĖU°„a‚nnašV„al@@b"],encodeOffsets:[[106099,27653]]}},{type:"Feature",id:"5323",properties:{name:"楚雄彝族自治州",cp:[101.6016,25.3619],childNum:10},geometry:{type:"Polygon",coordinates:["@@mҁXU`Wnšš™@Xl±¦š„Uxnbl°knmKUx„„ƒxVôUx°¼ôÒȄ°JlnÞKĠœW°¦ƒ„Vx²JVwš_°¥@UV@@wnymknK¯I@‚™²b°ƒš£V¥šwU‚V„¤nLškÆJÈwôô°„l»Č¯ƒġVƒUU@@ƒ°ƒƒÝXl@U»°Å„@U„¯@w±¯VmUUlm@m™„ÑnIVyUwmak£Vwm±—@Çw@nƒ@UxkwlÇnL‚mkř@±Žk™ka@kóJV¯Ç»U£lw¯™Xalbl¥¯UXƒ@a˜™UaÈL@ÇVIVƒkaU¯mm™akLWkUJ¯Umxnšƒ@ƒkUx¯xƒ„mWÅīÝkkbƒŤƒbkxWmXwWk¯wƒKkƒƒLŤċń„@¤óĬU²ƒ@@lƒk¯VmU¯¼@xV@k°l°kbUš°nm‚VnUš@°„š„UVèރÆbUÒÞnU¦›V—¼lô„@Vl"],encodeOffsets:[[103433,26196]]}},{type:"Feature",id:"5329",properties:{name:"大理白族自治州",cp:[99.9536,25.6805],childNum:12},geometry:{type:"Polygon",coordinates:["@@lbœKVIUa˜@²m@b™xôÒÜxXLmbnšl@š„„K°šš¼k„Uô‚xôlV¦nJ„Uš™Ænšm„@šx„ÆwšbXšÆôô„LUVwôK@wlmšaVwœ@WknmƒIUmlnJla@_™@kÝmKUašÑm¯Xw°aUaVl»²JV„bÆJkôĶĀ²VVk„mšbVwUó„wƒƒVwnLlmk¯maVw™ƒ²¥Wkš@™™XmV_‚WnÑUkƒ@k󘻜UV¥ÝmVÑÅa݄UçƒVƒ™@¯V™Umn¯mV™lak¯l¯U@@wğŽW鯁ƒ@¯xÝw¯š¯Jċa¯U¥mLU¤„bÞȤƒbÇLWUwmIUVW¼kbš`U„Vb¯L±ĊÛkƒÿÝKkwƒKţê™UĉþƒÈƒV¯ÞVbUŽ°KVšk²Ý‚mI—ƒmV@kƒm™UkšVxm„¯KXÈķJU¦V°ULWxšL@môƒšb@bkx±LnVUŽVLnkÜWnwlLŃmW@kkJU_ƒV„šWĊ„Þ"],encodeOffsets:[[101408,26770]]}},{type:"Feature",id:"5309",properties:{name:"临沧市",cp:[99.613,24.0546],childNum:8},geometry:{type:"Polygon",coordinates:["@@‚xĢ„l`²X°ŽV„šx@x°Þ°KXašğUњW‚bnIl`X²°b„xl°„„šV@xVxk¦mb„l@xšXV‚ÆzX¤™Æ˜k°„kx@lźêlaX»VUnJVx‚XÈK„aÝȣƒaV£nKV¦°‚Čb°I°™n»ÆÑV¯nWn›™@ÿXÅWWn¹ƒġōƒn»‚ÛU™™aU™VƒUw„w@w°ƒó¥ƒ@ƒz—ƒ±@ř›¯@kUwlk£±aĵŽ¯™›Uĵ¦±±@bó±VÝ@ó¤ƒw¯I@mńóm±XŽ¯IólƒK@š°Ullb™zkKlln@@ԙºƒUmVk²ôҙx™ŎUVóLƒb„ŽmÈnŽmbnl‚a„x@z„@Ǝ„¦kš"],encodeOffsets:[[101251,24734]]}},{type:"Feature",id:"5334",properties:{name:"迪庆藏族自治州",cp:[99.4592,27.9327],childNum:3},geometry:{type:"Polygon",coordinates:["@@W™Xwƒ™@akk@y›—k°īX¥›Uóķ¯w@n»UaVaUۃ¯ƒmV¼k‚™Þċô@n¯xÛÒm„V‚¯Ô@xƒ‚@šk™wm™Åa@ƒUa‚݁¯VŃyV„a@ÿšn»ÝVmank™mmÞÅôƒ@n£±›ğzÇmU¦™Vm„nÜmbn@°nV@xmzÅ@mºV¦k°ln¤š¼õô„n@xkƃIUxUš@Ťƒ¦VšmVkmkXW¤XzVx@ƚx™¼ƒÞ¯b@lVš™ĸގV„m¼XŽm¦V„ŽÞ@Ǝš¹Vón¥ÆKn„‚KX¯x@èĊȱłXšaÆxnlV@UÛlȻkğV¥„m²ljmÅÞĕƒƛm°„ÆmX¤mznƃŽV¦ÞVVb°bnÞWbnŽ°l@V„È@„‚VĵĊ±@ó„InxÆw„¥@£Þ›W¯ĸ£UƒUK‚ƒk±akkkbmWmÈķ„aÆÇU—ȃÆW@wmknmU¯"],encodeOffsets:[[102702,28401]]}},{type:"Feature",id:"5306",properties:{name:"昭通市",cp:[104.0955,27.6031],childNum:11},geometry:{type:"Polygon",coordinates:["@@mƒnK@wmƒUř¥mšóXǓŏmX@Ž—VƒmL@xţ™nk@mlUšŻÒğŋ@ƒL@mmLkm™š@b™XŎW¼ka¯lÇŹ¯aÇ»™ÝÝ_@m„@@a™@UklwUm@ak@ƒb™UmbmƒbV¯™ĕUƒƒšaVwÅaĉVmý™m¯xUkƒ@k¥VƒUXƒ¤VÈm`@„—ńÇÜ@Ākn‚ĔkƞÆĠ„™Þš‚U„VôƆÞI@ŽUxƦn„l@ĊĊnxUÒ°¦Vb¯WUnWŽIml@xn„Ubô¤‚¼ÈxlI„»šKVš„@ÈԂJkšUĖ±ÆVb@nœ„VÜVUVƒšL„wĠl„kn„Ġ@nx°¥Æ„²mUwƒ@m™mÅUl¯UњÑUm„Lll„Il±š@VkwƒW@w°@U»™kUóI°ƒ„»ĢтL„™š`nUĠ²lm„bôV@n„JUxƦX¦l@š‚ŎUƒV„@lV„KVřV£UaÞU™ƒnW@¯VU@ó™"],encodeOffsets:[[107787,28244]]}},{type:"Feature",id:"5301",properties:{name:"昆明市",cp:[102.9199,25.4663],childNum:11},geometry:{type:"Polygon",coordinates:["@@n@Vk‚VUn²°@xƒ°Vƒ@¯ÆV¼k@WŽ„Þ¯„@„@‚VVU„„Ģċ°k¼V„Ċxœ¤Ōœx°mVkƒÑȏšL‚°„x°Xœ°VmĊLVxUĖ°bX¦VW@kšȯlkn@„¥lnšƒ@»°Ñ¯VmlLUwVK@ƒV@ka@lmXb„UlVlkÈx@™„LVa„VV™wnƒmm@km™@mœIVaݏ@XƒVUݯU@ƒÝ£k»˜K@aUwkKV_ƒ¥„a@alU@nz°aV„È@@±lÛšk@wVakm@т¥„a„z‚@XxÆW@ÛX™@m@ƒy@aWw@kōĉJlbV„JƒzţÆUwVkmWkým@Ul™U@b¯wVºƒU™VUêšĠƒXUaUbVĊUŽWXUmkK™™WnUUU™V™ƒƒVV™Ý@kk±‚™¯ƒƒLkƒš±WkXlVklƒ@ƒwXbmLƒ›VUIVmk@Ubma@kkaVKUƒ™kmlXLWn™J¯ÒĊ°@zkºlLUŤn@@n›ô@lƁnmKkÈlxVw„@@mÈx˜@n²Uxl¤nbVxUzmJƒÒnš"],encodeOffsets:[[104828,25999]]}},{type:"Feature",id:"5307",properties:{name:"丽江市",cp:[100.448,26.955],childNum:5},geometry:{type:"Polygon",coordinates:["@@l@™„@w°ÓUnƒÜÑ°w@mČóšÝlU»n°„„VÜUbVbm¼@Ž°xôĸœVW¦¯Ĭlœ˜@zll@b„šWxXš‚a„X@ÆĠÆaXwl@XaƦn¼˜Jn@mnKW¯È»V¯°ak™VanXVwl@VyUĕVU„bÈīlaUk°ƒk¯lƒ²V˜Ukƛô@ƒ„I@mVwĊa„™ƒVaka„™ÆbUŽVLšaXIWKUw™ƒ„aWÑÅKUaVk°ƒ@Uw„ƒ¯¥›XğÝLkm¯Iǃóѯ»™aƒnUl±UĵÿlóÅIƒaU‚±Ik¼UŽVb¯bWxn°™ÒVbnLlޚ@@`kbmIkŽVn„JmnXl›@Ux™bkn@xóLUxVŽƒKóóŐW™™aÅxƒŽ™wƒ@™nÅm™šƒV™„ƒôX„ƒLlVU¤ƒb¦m¼™Ž@ĀƒbU‚„zUƂ°ÞVb@„Æbnššx"],encodeOffsets:[[101937,28227]]}},{type:"Feature",id:"5328",properties:{name:"西双版纳傣族自治州",cp:[100.8984,21.8628],childNum:3},geometry:{type:"Polygon",coordinates:["@@l²°ŽnÒlxÞ@„nWl„Lĸ™nbV¤V¦kbVV‚¦na„x°Vôa@„šb@lôXlWUšVXČKlmššU@bšWXXܛ°LÈa°LnU°‚ÞnšÑ„ġ°lƒnbšaƒ¯¯KWƒœó@kmK@UšĉV@k°„VV¹„a@y‚_ċl_nÓlL@anI@ƒóWl£VU—ƒl™kĕl™šKVw„U@™kVƒam¯ÅL@bƒ‚Ýk@Vn„UbÇbÝwÅ@ċ¥¯lk‚¼ÅŽ™Ò°b@¦nlUn@ŽÇV„mƁbWôU@ÝÅōm™¯ƒaU™™mk™WWw—@±ƒ™n¯U™è™a™Lƒ¯mƒL™škwƒl@°mnÈÒ¯šów@V™xƒĀU¤°Įƒ°Xl"],encodeOffsets:[[102376,22579]]}},{type:"Feature",id:"5305",properties:{name:"保山市",cp:[99.0637,24.9884],childNum:5},geometry:{type:"Polygon",coordinates:["@@X°„Il‚@¦ƒŽÈ¼m¼ÞaÞÅl„ÈxV¼šlVôÈÆlLޣȺlkUƒ‚ƒUw„¯UĕVwĊ@n¦mlnVĸIWÇ°LnƒUwl™šV„n@lnU˜„nJށl±U™¯LVUa°Ý„U„ÇĊýšVŤé„LlxÞL„ĀÜl²ĉ°KUaVƒ™_Źé@klw¯ƒlÅ—šW£ÅyU™W@wƒknal¥Uw@w™Uƒƒk¯ƒw¯aW±k_mJa™XVҙĠWb¯L¯Ý@w™wUƒ¯±Wk_ġƒwƒwōKmb@¤„bk°lĖƒô„UJƒšVnÅlťUš¯°VbnbWxX„m„ÞššWUĀ™L™yWzÛKmbUxVKkn݃kŽVšĀċ¤Ux„@Ž¯Žm@ƒ¦"],encodeOffsets:[[100440,25943]]}},{type:"Feature",id:"5304",properties:{name:"玉溪市",cp:[101.9312,23.8898],childNum:9},geometry:{type:"Polygon",coordinates:["@@l„„L°xXlWxXnlw„a„ţlaÞlÆĬnX„ƒ°wVw„l„@m™nw°VVIXllKšbnnV°lbU„UJ@ÈÇKVb—š@bW„°Vk¦kaWb°škxV¤È¼U°ôI@llblš²š@‚@œó@mm@VţkKl¹@yĉ¯°ÑšIXmWKnkšlV„ULlb@lnbVal@UnVJœU‚„nKWa„x„@lkkUlW²X„™‚l„K°„šl²@lšÞUŽ„U‚„UšVšVVXmššlLVnXWVUĉVaVb„W™ğVéšU„VU¹W»aVa„aW™Xƒ‚_U¥nÇķ¯™@a™lUnǍUyk@@wW@kbW¦UKÝwUmmƒƒLUnVxUVVlk¯mmnƒmkÇaŤ¯I@ƒl@@aĉw°ĕmU—L±ƒk™ÆéX™ÜÛ@yÈç@™Çġ„Ýķ—XmmÝVՙƒ™lmnkbmWkb@nl@nŽmš¯VxkJmUJ„ml¯™°makVVnVƒ¦™Wƒ—Wmnl@xmn„l‚I„¤„n™xU„ƒVUŽmX@˜ƒb@zl@¦Ýþ"],encodeOffsets:[[103703,24874]]}},{type:"Feature",id:"5333",properties:{name:"怒江傈僳族自治州",cp:[99.1516,26.5594],childNum:4},geometry:{type:"Polygon",coordinates:["@@WyX£lWlnnUU™„¥@ţV™Vw„JlÅ@wƒmö󙻂£kml¯U¥n¹Æ@ny@wmU@¯mnamÛnƒšUV¥ÈnĠy²œm¤„@ÆónݚnmlnbÞU‚¥„aV£kU„KWƒ„óšƒmIU¥ókwVólƒ™»¯™ƒL™ƒk@m™naWKÛwóњw@a±n—@VbUJ›LkaƒÝXĉƒ™„UV`lI@lnXÆƑkKmxÛXmlUKVmU²Klw@a™aó„@n™KXwVKU¯V¥mUnkm¥ĉ@UxVĖƒ°Vx„V„klmޙkKWĀkVWšnl°Lnm@°ŽUxlV@nk¦™JVÈ°ŽVÒ@nX°@ÆlUômlnôƒ²nxmłnVV„¯x@Èm°XblVUšl°@xkXU¤WXX‚W„Xƃ„mkÅJmށw±bƒxUīkKmÅVUĖÝèV„kx@š›lX„lnk¤ƒLkŽ‚Ėk¦‚xUššL°‚¯Ė@LnK@b°xVI„¥Ua°Ñ@»nm@¹‚KŎÞÈWln²n"],encodeOffsets:[[101071,28891]]}},{type:"Feature",id:"5331",properties:{name:"德宏傣族景颇族自治州",cp:[98.1299,24.5874],childNum:5},geometry:{type:"Polygon",coordinates:["@@„¥n@°@ƒVwČ£™ÿUlÞ„lmULVwnaÜLXyšzšKVÿ™XݙnƒWƒXwmaUa°¯V™ŦŽÆkUm„™VIƒ„ókĕl¯ƒa@£nama™@¯m¯œó@óyţbġkÅm±ÛammVkƒLwU`Wk@VƒkUmŃlUUKmbkkUVUwƒ¦óŽ°¼šbn°ô¦lºƒz@xšŽ¯„™@UŽ°nƒšU¤ţU„°VƆ@ÈmlnzÞl°¦Æa„xUxƒLkxWƒn@‚š²ŰšW„™‚@°ÈXl°Llx"],encodeOffsets:[[100440,25943]]}}],UTF8Encoding:!0}}),i("echarts/util/mapData/geoJson/zhe_jiang_geo",[],function(){return{type:"FeatureCollection",features:[{type:"Feature",id:"3311",properties:{name:"丽水市",cp:[119.5642,28.1854],childNum:9},geometry:{type:"Polygon",coordinates:["@@@V‚bVl@Xn‚UXƒKVŽ@¦nxlUXV‚n„KVmnL‚UV@bn¤lLXK˜²„`nnlJXIVJ‚I„Vnn°KnnVll@VLXWV@UkVaVK„zV@„ƒšVVaUK@U»VUl@@WnUUƒ@wVLn@Vwl@XW°LVbn@VU‚@X„l`@XnKVbkl@XVJlUnlV„„xlL@lnXl„@VšUnV°°„@a„UVLXblWVXn@VVUV@Lš¤VLV„U‚VbnalLUUVX_laVa„WVzXKV@@a@KUmImmXama@kU@yVIUK‚aVa@kXK@aWU@VIUmW@kkVm„Uš@VwUa@K@k@Uƒ`@kUKVk@UV@VaUm²Vy@klUUWUkVmUa@_ƒKVaXa›XmƒU@mUlWkaUXƒ@mmkL@w™JƒnVVÅbWKXa™@@I@aƒJUUÇ@V„UL™W@akLmb@K@a™XXw@mƒVmUVkUy@£@aU@@VkUWm@kUKƒXUWU_mW@wkkmJUUkLWWUXƒW@IkJ@k@mW_kӃ_Ul™Lƒm@I@aUa¯m@kƒa¯LUJƒ@mVVxUb™a@LUKkXƒbm@Uak@@a@Um`ƒIUbUJ@nUVW@@LnVV@lšUbVlUX@`š@blXklW„Ušm„Xlm¦U@@V¯bml@š@nUb@llnn@VbX@lV@ŽUVULmU@JVn„bVbkb™VWxU@@nUVk@"],encodeOffsets:[[121546,28992]]}},{type:"Feature",id:"3301",properties:{name:"杭州市",cp:[119.5313,29.8773],childNum:6},geometry:{type:"Polygon",coordinates:["@@X@l„°KXXlW„b@²„`šššb‚I„šX`l@„@bWl@n@VnLUV@V„@°¦@šl@XVlU@š@xVbUb@Vkb@‚@XVJVz™J@Lޚ@VmLUxUJ@LU„Vx‚b„xXUl@VaÈw„b‚aÞa@Vl@XUVx@V@V„LlbnV„al@lb„Vnn‚LnKnL@VlbVJXalIšb@KUU@mVInJ˜„U„Vl@xUšVLnUš@UÞaV@lkV@UanK„L@UlKVUnbÆmn@@nUlVnVJl@@UXU„L@WVIVJVxVLXV@IÜKnbn@V¥V@@I@ƒƒ„y°b@UUwnk°ÆƨVlUšçXm›£aƒÇ™IkVƒ@WV@@aWIUWUIkb@WW@UnƒK@UU@kaWVkƒVIVVnU@UWVUV@VmVkKkWIkVWaULU`UImJUImm—U@ƒƒwmwUV™IUWVkUamaU@mV—kƒb@KVU@aVU@anKULVJ‚U@kÛU™JUV›kkƒVakU@ƒaVwkW@UWkXmWaULUaUK@XƒJUUmƒVU@UVƒUkJ@ImwmKU@k„@lU„W@@akKm„kamIkWl_UwVm@UkaVUUaƒ@UamakbWlkL@aUalU@mkL@U@U™lmK@XkKm@Ýakb@xƒnXbƒ`ƒnUUU@›™U@™wU@@ƒmKkkƒV¯U@lULUbVbUb@V‚a@L™ºÝb@bLmK™x@VUL@bk@mxULWl"],encodeOffsets:[[121185,30184]]}},{type:"Feature",id:"3303",properties:{name:"温州市",cp:[120.498,27.8119],childNum:9},geometry:{type:"Polygon",coordinates:["@@ll@xnXV`VX„WVL@lXnlV@UV@@b@¤VzUlnV„U@nWxšW@b@LnalK@bšXVKUƒÈ@VV„I@b@Jš@WbXLÆaUU„mšI@xlKnn„@VWlbkXV‚@n„VWnœ‚WbUb„L@`VbUnVlVXkV@lUz±‚VnUbU@@VUlVL@l„_@V@l@LVbV@XLV`VÈlxn@lU@aœaVV‚k„@XJ@nl@@LU`°LVb„L°a@a„UVy@anI@a„a‚nV@²wÜJX@VšVV°k„na@WVk„aWwU@m@™ƒkƒaUĕ™ÝšÝŤnÈa„aóI›»@±X™WkUķ@kV±kw™ƒUkWw„™UƒÝ»ÛkɳlImaUaWóXÿǬk‚UnWVmmk™KţnŏÞğl™„UlUx@XWb„V@JkXƒ°mb@VULVxUVk@@LWWk@WIkšƒUkJmUkVmI@yƒ@Ua™kLm‚U@mUUUkaVk™@mK@UlUU@UmKmbUUUJ@n@KVLUL@VkJWXX`mnULWlkL@JVLVb@°kxkU@LVŽ™V@„VLV`UL@VUX"],encodeOffsets:[[122502,28334]]}},{type:"Feature",id:"3302",properties:{name:"宁波市",cp:[121.5967,29.6466],childNum:6},geometry:{type:"Polygon",coordinates:["@@Ċ¦ĸĀ°‚nXÞVšKškƨƑźÿ°»n„@wô¥ÜbœU°ÆXÞWóçĉݱIUƒÈ¥@U°wÆ»²mm_@aXƒVKÞVlk@akk›̅@£X»VwƏXWa¯aȗb™KƽۃĊ™xƒLóŽk@ƒƒƒ@¯nƒKUL@xkL›ÑkWULUUmJUXVŽU@mŽUX¯@V`mbXbV@@nn¤WXšx@škJ@nVVUVl²UbÝVUVk@Wx@V@„ƒVXzmlaƒL@VlLU`„XUVVVUnl@VbnJlnUVVnƒlUKkbmnn„VxlJnxmbU@UL@KUV™X@xmb@lk@mnVVUš™è"],encodeOffsets:[[123784,30977]]}},{type:"Feature",id:"3309",properties:{name:"舟山市",cp:[122.2559,30.2234],childNum:3},geometry:{type:"Polygon",coordinates:["@@l΢ƒʠþÆVĢLĊƒǬXĊ܄XôV„ÑÆw„ƒlšƏÈóVĭVǓ@ƒĉwɛkmK@ĉXīWaĉUĵÝmƒ¯ĉƒwĉ±±nż¯x@VǦV„²JĊÞôèÝXÅW¯›VÛaó¦@xƒŽmŽ¯¼ŹĀ"],
-encodeOffsets:[[124437,30983]]}},{type:"Feature",id:"3310",properties:{name:"台州市",cp:[121.1353,28.6688],childNum:7},geometry:{type:"Polygon",coordinates:["@@lV„IVWVz@bXJl@Xal@°„nLll@nVxnV„K@UJVbƒ¦°„k`UIWJXnƚ@bUJ„Xl@lb„Wn@UzVV@bVVšmVnnJVXna‚bšKUKnUVVUnVLlKVLXa„Jm£@mU@WanaU_°@VWnV@UVWnIVVVKlXœÒlK@wVK„L°m„@„„l@ô„Kšw„ĉƾůUƒl£@»UƒVk„m@ƅUƒƒaÛIŏmUk@m„w@a™£ƒWk@ţšƒIm±@ankôUlaU™Uw¯ƒōaƒbÇbţm™ÞšÞVĖ„b„l@š@n‚VXxƒbUl@XmbƒŽ¯lUUU™W@ÛI±xU@mƒb@bmJ@bUzƒV@b¯bƒKUa¯KV_@Kk@@mWIƒ@lUU›b@bkVm@kwUÇU_WKU@Ux™@ƒVUnllX@Vn‚J@UXV@bWL@lUbbVLUJ@z‚V@lnbWbnnnJVŽ@L"],encodeOffsets:[[123312,29526]]}},{type:"Feature",id:"3307",properties:{name:"金华市",cp:[120.0037,29.1028],childNum:8},geometry:{type:"Polygon",coordinates:["@@nbVb„@VbUVlb@VUnVxk`lXnJlbnƒlL@bX@Vƒ@klƒV@nLnx@JlI„V‚U@VUVn„VV„I@WVLVbVKXbWnXl@VlXUx„b@ŽlVUbl„œlVUšIÜVnalKX@@bV@@aUUlUƒwUw„@naWW„UVaUUšaVb„LlxXJVk°ƒUƒlkU¥@k„a@LVlXLVlšVWznVn@lxšJl_@WX_@mVa„a@alU@kVVna„KVLlK„b@UUaVašbnUWmXU@k@yVI@ařWmXIVJl_¯ƒ„¥UaVI@ƒLmUUw@mkkmK¯ƒk@Wbk@WI@aUyUXƒJkU@bU@WLUyƒXUbkbW`UVVkKmbUaVUƒUK™£@KVUUUm@UWkXWaUKƒV@b¯ƒ¯mU™V@UkƒmW@kkKƒwUƒmkkVUI@WlkUamL@Wk_Wƒ@UVm@Ua¯KWXk@Uxm@UK@xV„mV@Xk@UVV¼@‚VLUb™Uƒ„U@ƒyULUbVlU@@XlVUVVbƒU@lXXVW@XUVl@@VUVƒÈn@VVU„@lVa@„U„mL@`X@`WL@VUX@lUL@xlx"],encodeOffsets:[[122119,29948]]}},{type:"Feature",id:"3308",properties:{name:"衢州市",cp:[118.6853,28.8666],childNum:5},geometry:{type:"Polygon",coordinates:["@@XkVKnwl@@aVK@UšwnL‚K@aÞaš¹@Kb@UVaUaVaVK@k°V„UllnL@„V@šxV@œšV@VV„m„_Wa„m@wlaÞbn@lL@WnLšk@V@VlK@nkVVb@blKXklakw@wVK@kVW@UXK@_‚W@_nKVƒ@ƒUb@kVƒUUm@„ÇVU@Uk@VU@WUXWW@k„VUaVUkU@WWXUKk@Ukmm¯LmmƒUJUIWJkImmƒ_—±WLkKm£@aVUmKUnƒLmWUkVmw@¥U„LVWm@WUka@UmmLmm@@bUX™@@WUIm@UVUK@UVUUU™VVJmb@b„Xn‚mVƒ¼nnn¦mJUVƒL„V@VW@UzUlVnUbl`UnVl@XU@kl@bmÈUx™Vk@@J@„ƒ¼W@ÅaVVnzmVƒ„@WJk@kWJ@ƒlXbWbXxmVnšlLXb@°lKVXnWšbWV„„X„mbV@Xl‚bšI@Kn@@x@šVLlm"],encodeOffsets:[[121185,30184]]}},{type:"Feature",id:"3306",properties:{name:"绍兴市",cp:[120.564,29.7565],childNum:6},geometry:{type:"Polygon",coordinates:["@@„x@„˜VnnVJnIVJV_VKXblUXJlŽlLUŽUnU@UVVX@ŽmVUUUJl„XUlbV@@V„LVmX@@XlaVJVXXJ@b‚@XU„@lUšJ„È‚bœ¤Ō„JšçV™UUnml@@kna@wšWVU@LVKV@namwkIUwmƒnmlaVL„kUmVUkmmIUak@VmUUVUƒWV_kK@U„K‚bnkWy„U@ƒ@UXwl@VUÞUVak±VUUU@mlI@™™wXWƒIWbUKkLUKVmUUmVVL™LambUWmIUm™nUU@aUUVym@ƒXkak@ƒW@z@lWVXnmV™aUbVb@VƒakLUKƒLmbUU@lkV@bƒbUb@nW`@Xk`™Ikwm@mUXy™UUkWKUk@Kƒb@lV¦klV„¯„UlWIkwƒKUa™bVVUbƒVXXmbƒ@Vx„xkVVV@bU@@aW@kLmb@lVUIVKmL@bUV@bUV@L„a˜lnUV@nbVbUlVXšJVUnx"],encodeOffsets:[[122997,30561]]}},{type:"Feature",id:"3304",properties:{name:"嘉兴市",cp:[120.9155,30.6354],childNum:6},geometry:{type:"Polygon",coordinates:["@@@blIX@@VÜVUnn@l‚k„lKnI°Þl`²LVKVbnbVaVLUVn@W¦@VkVVb„@VI„`@blLnL‚aX@„VVb@U‚@XlVa„@@kVaUKV»U_lWXUƒƒ@alb„k@VllnLVKn@@UVIUw@y°IVVXU@VV@lw„m@wVkƾaœJ‚LkΡƧƒ™l™LÝUmW¯ķÿĉ¥ƒIŋŽWn™èkVƧU¯ÅmlVx@V¯aƒz„Ž@„@JU@U¦m@@šnVmn@V„LV‚"],encodeOffsets:[[123233,31382]]}},{type:"Feature",id:"3305",properties:{name:"湖州市",cp:[119.8608,30.7782],childNum:4},geometry:{type:"Polygon",coordinates:["@@kLlƒkm@VmÛU@UW@kJ@aUƒK@UnmmU@™maÛL@JWUUKUwUIUJ@XƒKWV@Vk@UIUmVk@mm@ÅnmaUVkL@VƒKmLVbU@klU@ÝbV™@mVUKV™@wUkVƒ—ƒmIUJ@nVV@L™akJWbUIka@UmKmLKmmƒUUVk@@nmLX`WXUV@Ž@nUl™kmlU@Ub„„ƒxVVšIlV„Žšnn„@@n˜„UҚ@„°n@@xmb@„VbnV@šš„@b@`@L@L@x@blVklVbnnV@‚aXb°VlU@W„b°U„LXWVUV™„™VwÈwÜ»ĸaĠnUVw²X@V@lVU@wlaUUVm@knUV›"],encodeOffsets:[[123379,31500]]}}],UTF8Encoding:!0}}),i("echarts/chart/gauge",["require","./base","../util/shape/GaugePointer","zrender/shape/Text","zrender/shape/Line","zrender/shape/Rectangle","zrender/shape/Circle","zrender/shape/Sector","../config","../util/ecData","../util/accMath","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../util/shape/GaugePointer"),a=e("zrender/shape/Text"),o=e("zrender/shape/Line"),r=e("zrender/shape/Rectangle"),s=e("zrender/shape/Circle"),l=e("zrender/shape/Sector"),h=e("../config");h.gauge={zlevel:0,z:2,center:["50%","50%"],clickable:!0,legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#228b22"],[.8,"#48b"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,textStyle:{color:"auto"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{show:!0,length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:[0,"40%"],textStyle:{color:"auto",fontSize:30}}};var m=e("../util/ecData"),V=e("../util/accMath"),U=e("zrender/tool/util");return t.prototype={type:h.CHART_TYPE_GAUGE,_buildShape:function(){var e=this.series;this._paramsMap={},this.selectedMap={};for(var t=0,i=e.length;i>t;t++)e[t].type===h.CHART_TYPE_GAUGE&&(this.selectedMap[e[t].name]=!0,e[t]=this.reformOption(e[t]),this.legendHoverLink=e[t].legendHoverLink||this.legendHoverLink,this._buildSingleGauge(t),this.buildMark(t));this.addShapeList()},_buildSingleGauge:function(e){var t=this.series[e];this._paramsMap[e]={center:this.parseCenter(this.zr,t.center),radius:this.parseRadius(this.zr,t.radius),startAngle:t.startAngle.toFixed(2)-0,endAngle:t.endAngle.toFixed(2)-0},this._paramsMap[e].totalAngle=this._paramsMap[e].startAngle-this._paramsMap[e].endAngle,this._colorMap(e),this._buildAxisLine(e),this._buildSplitLine(e),this._buildAxisTick(e),this._buildAxisLabel(e),this._buildPointer(e),this._buildTitle(e),this._buildDetail(e)},_buildAxisLine:function(e){var t=this.series[e];if(t.axisLine.show)for(var i,n,a=t.min,o=t.max-a,r=this._paramsMap[e],s=r.center,l=r.startAngle,h=r.totalAngle,V=r.colorArray,U=t.axisLine.lineStyle,d=this.parsePercent(U.width,r.radius[1]),p=r.radius[1],c=p-d,u=l,y=0,g=V.length;g>y;y++)n=l-h*(V[y][0]-a)/o,i=this._getSector(s,c,p,n,u,V[y][1],U,t.zlevel,t.z),u=n,i._animationAdd="r",m.set(i,"seriesIndex",e),m.set(i,"dataIndex",y),this.shapeList.push(i)},_buildSplitLine:function(e){var t=this.series[e];if(t.splitLine.show)for(var i,n,a,r=this._paramsMap[e],s=t.splitNumber,l=t.min,h=t.max-l,m=t.splitLine,V=this.parsePercent(m.length,r.radius[1]),U=m.lineStyle,d=U.color,p=r.center,c=r.startAngle*Math.PI/180,u=r.totalAngle*Math.PI/180,y=r.radius[1],g=y-V,b=0;s>=b;b++)i=c-u/s*b,n=Math.sin(i),a=Math.cos(i),this.shapeList.push(new o({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{xStart:p[0]+a*y,yStart:p[1]-n*y,xEnd:p[0]+a*g,yEnd:p[1]-n*g,strokeColor:"auto"===d?this._getColor(e,l+h/s*b):d,lineType:U.type,lineWidth:U.width,shadowColor:U.shadowColor,shadowBlur:U.shadowBlur,shadowOffsetX:U.shadowOffsetX,shadowOffsetY:U.shadowOffsetY}}))},_buildAxisTick:function(e){var t=this.series[e];if(t.axisTick.show)for(var i,n,a,r=this._paramsMap[e],s=t.splitNumber,l=t.min,h=t.max-l,m=t.axisTick,V=m.splitNumber,U=this.parsePercent(m.length,r.radius[1]),d=m.lineStyle,p=d.color,c=r.center,u=r.startAngle*Math.PI/180,y=r.totalAngle*Math.PI/180,g=r.radius[1],b=g-U,f=0,k=s*V;k>=f;f++)f%V!==0&&(i=u-y/k*f,n=Math.sin(i),a=Math.cos(i),this.shapeList.push(new o({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{xStart:c[0]+a*g,yStart:c[1]-n*g,xEnd:c[0]+a*b,yEnd:c[1]-n*b,strokeColor:"auto"===p?this._getColor(e,l+h/k*f):p,lineType:d.type,lineWidth:d.width,shadowColor:d.shadowColor,shadowBlur:d.shadowBlur,shadowOffsetX:d.shadowOffsetX,shadowOffsetY:d.shadowOffsetY}})))},_buildAxisLabel:function(e){var t=this.series[e];if(t.axisLabel.show)for(var i,n,o,r,s=t.splitNumber,l=t.min,h=t.max-l,m=t.axisLabel.textStyle,U=this.getFont(m),d=m.color,p=this._paramsMap[e],c=p.center,u=p.startAngle,y=p.totalAngle,g=p.radius[1]-this.parsePercent(t.splitLine.length,p.radius[1])-5,b=0;s>=b;b++)r=V.accAdd(l,V.accMul(V.accDiv(h,s),b)),i=u-y/s*b,n=Math.sin(i*Math.PI/180),o=Math.cos(i*Math.PI/180),i=(i+360)%360,this.shapeList.push(new a({zlevel:t.zlevel,z:t.z+1,hoverable:!1,style:{x:c[0]+o*g,y:c[1]-n*g,color:"auto"===d?this._getColor(e,r):d,text:this._getLabelText(t.axisLabel.formatter,r),textAlign:i>=110&&250>=i?"left":70>=i||i>=290?"right":"center",textBaseline:i>=10&&170>=i?"top":i>=190&&350>=i?"bottom":"middle",textFont:U,shadowColor:m.shadowColor,shadowBlur:m.shadowBlur,shadowOffsetX:m.shadowOffsetX,shadowOffsetY:m.shadowOffsetY}}))},_buildPointer:function(e){var t=this.series[e];if(t.pointer.show){var i=t.max-t.min,a=t.pointer,o=this._paramsMap[e],r=this.parsePercent(a.length,o.radius[1]),l=this.parsePercent(a.width,o.radius[1]),h=o.center,V=this._getValue(e);V=V<t.max?V:t.max;var U=(o.startAngle-o.totalAngle/i*(V-t.min))*Math.PI/180,d="auto"===a.color?this._getColor(e,V):a.color,p=new n({zlevel:t.zlevel,z:t.z+1,clickable:this.query(t,"clickable"),style:{x:h[0],y:h[1],r:r,startAngle:o.startAngle*Math.PI/180,angle:U,color:d,width:l,shadowColor:a.shadowColor,shadowBlur:a.shadowBlur,shadowOffsetX:a.shadowOffsetX,shadowOffsetY:a.shadowOffsetY},highlightStyle:{brushType:"fill",width:l>2?2:l/2,color:"#fff"}});m.pack(p,this.series[e],e,this.series[e].data[0],0,this.series[e].data[0].name,V),this.shapeList.push(p),this.shapeList.push(new s({zlevel:t.zlevel,z:t.z+2,hoverable:!1,style:{x:h[0],y:h[1],r:a.width/2.5,color:"#fff"}}))}},_buildTitle:function(e){var t=this.series[e];if(t.title.show){var i=t.data[0],n=null!=i.name?i.name:"";if(""!==n){var o=t.title,r=o.offsetCenter,s=o.textStyle,l=s.color,h=this._paramsMap[e],m=h.center[0]+this.parsePercent(r[0],h.radius[1]),V=h.center[1]+this.parsePercent(r[1],h.radius[1]);this.shapeList.push(new a({zlevel:t.zlevel,z:t.z+(Math.abs(m-h.center[0])+Math.abs(V-h.center[1])<2*s.fontSize?2:1),hoverable:!1,style:{x:m,y:V,color:"auto"===l?this._getColor(e):l,text:n,textAlign:"center",textFont:this.getFont(s),shadowColor:s.shadowColor,shadowBlur:s.shadowBlur,shadowOffsetX:s.shadowOffsetX,shadowOffsetY:s.shadowOffsetY}}))}}},_buildDetail:function(e){var t=this.series[e];if(t.detail.show){var i=t.detail,n=i.offsetCenter,a=i.backgroundColor,o=i.textStyle,s=o.color,l=this._paramsMap[e],h=this._getValue(e),m=l.center[0]-i.width/2+this.parsePercent(n[0],l.radius[1]),V=l.center[1]+this.parsePercent(n[1],l.radius[1]);this.shapeList.push(new r({zlevel:t.zlevel,z:t.z+(Math.abs(m+i.width/2-l.center[0])+Math.abs(V+i.height/2-l.center[1])<o.fontSize?2:1),hoverable:!1,style:{x:m,y:V,width:i.width,height:i.height,brushType:"both",color:"auto"===a?this._getColor(e,h):a,lineWidth:i.borderWidth,strokeColor:i.borderColor,shadowColor:i.shadowColor,shadowBlur:i.shadowBlur,shadowOffsetX:i.shadowOffsetX,shadowOffsetY:i.shadowOffsetY,text:this._getLabelText(i.formatter,h),textFont:this.getFont(o),textPosition:"inside",textColor:"auto"===s?this._getColor(e,h):s}}))}},_getValue:function(e){return this.getDataFromOption(this.series[e].data[0])},_colorMap:function(e){var t=this.series[e],i=t.min,n=t.max-i,a=t.axisLine.lineStyle.color;a instanceof Array||(a=[[1,a]]);for(var o=[],r=0,s=a.length;s>r;r++)o.push([a[r][0]*n+i,a[r][1]]);this._paramsMap[e].colorArray=o},_getColor:function(e,t){null==t&&(t=this._getValue(e));for(var i=this._paramsMap[e].colorArray,n=0,a=i.length;a>n;n++)if(i[n][0]>=t)return i[n][1];return i[i.length-1][1]},_getSector:function(e,t,i,n,a,o,r,s,h){return new l({zlevel:s,z:h,hoverable:!1,style:{x:e[0],y:e[1],r0:t,r:i,startAngle:n,endAngle:a,brushType:"fill",color:o,shadowColor:r.shadowColor,shadowBlur:r.shadowBlur,shadowOffsetX:r.shadowOffsetX,shadowOffsetY:r.shadowOffsetY}})},_getLabelText:function(e,t){if(e){if("function"==typeof e)return e.call(this.myChart,t);if("string"==typeof e)return e.replace("{value}",t)}return t},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},U.inherits(t,i),e("../chart").define("gauge",t),t}),i("echarts/util/shape/GaugePointer",["require","zrender/shape/Base","zrender/tool/util","./normalIsCover"],function(e){function t(e){i.call(this,e)}var i=e("zrender/shape/Base"),n=e("zrender/tool/util");return t.prototype={type:"gauge-pointer",buildPath:function(e,t){var i=t.r,n=t.width,a=t.angle,o=t.x-Math.cos(a)*n*(n>=i/3?1:2),r=t.y+Math.sin(a)*n*(n>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(o,r),e.lineTo(t.x+Math.cos(a)*n,t.y-Math.sin(a)*n),e.lineTo(t.x+Math.cos(t.angle)*i,t.y-Math.sin(t.angle)*i),e.lineTo(t.x-Math.cos(a)*n,t.y+Math.sin(a)*n),e.lineTo(o,r)},getRect:function(e){if(e.__rect)return e.__rect;var t=2*e.width,i=e.x,n=e.y,a=i+Math.cos(e.angle)*e.r,o=n-Math.sin(e.angle)*e.r;return e.__rect={x:Math.min(i,a)-t,y:Math.min(n,o)-t,width:Math.abs(i-a)+t,height:Math.abs(n-o)+t},e.__rect},isCover:e("./normalIsCover")},n.inherits(t,i),t}),i("echarts/chart/funnel",["require","./base","zrender/shape/Text","zrender/shape/Line","zrender/shape/Polygon","../config","../util/ecData","../util/number","zrender/tool/util","zrender/tool/color","zrender/tool/area","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Line"),o=e("zrender/shape/Polygon"),r=e("../config");r.funnel={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,x:80,y:60,x2:80,y2:60,min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",itemStyle:{normal:{borderColor:"#fff",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:10,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0},labelLine:{show:!0}}}};var s=e("../util/ecData"),l=e("../util/number"),h=e("zrender/tool/util"),m=e("zrender/tool/color"),V=e("zrender/tool/area");return t.prototype={type:r.CHART_TYPE_FUNNEL,_buildShape:function(){var e=this.series,t=this.component.legend;this._paramsMap={},this._selected={},this.selectedMap={};for(var i,n=0,a=e.length;a>n;n++)if(e[n].type===r.CHART_TYPE_FUNNEL){if(e[n]=this.reformOption(e[n]),this.legendHoverLink=e[n].legendHoverLink||this.legendHoverLink,i=e[n].name||"",this.selectedMap[i]=t?t.isSelected(i):!0,!this.selectedMap[i])continue;this._buildSingleFunnel(n),this.buildMark(n)}this.addShapeList()},_buildSingleFunnel:function(e){var t=this.component.legend,i=this.series[e],n=this._mapData(e),a=this._getLocation(e);this._paramsMap[e]={location:a,data:n};for(var o,r=0,s=[],h=0,m=n.length;m>h;h++)o=n[h].name,this.selectedMap[o]=t?t.isSelected(o):!0,this.selectedMap[o]&&!isNaN(n[h].value)&&(s.push(n[h]),r++);if(0!==r){for(var V,U,d,p,c=this._buildFunnelCase(e),u=i.funnelAlign,y=i.gap,g=r>1?(a.height-(r-1)*y)/r:a.height,b=a.y,f="descending"===i.sort?this._getItemWidth(e,s[0].value):l.parsePercent(i.minSize,a.width),k="descending"===i.sort?1:0,x=a.centerX,_=[],h=0,m=s.length;m>h;h++)if(o=s[h].name,this.selectedMap[o]&&!isNaN(s[h].value)){switch(V=m-2>=h?this._getItemWidth(e,s[h+k].value):"descending"===i.sort?l.parsePercent(i.minSize,a.width):l.parsePercent(i.maxSize,a.width),u){case"left":U=a.x;break;case"right":U=a.x+a.width-f;break;default:U=x-f/2}d=this._buildItem(e,s[h]._index,t?t.getColor(o):this.zr.getColor(s[h]._index),U,b,f,V,g,u),b+=g+y,p=d.style.pointList,_.unshift([p[0][0]-10,p[0][1]]),_.push([p[1][0]+10,p[1][1]]),0===h&&(0===f?(p=_.pop(),"center"==u&&(_[0][0]+=10),"right"==u&&(_[0][0]=p[0]),_[0][1]-="center"==u?10:15,1==m&&(p=d.style.pointList)):(_[_.length-1][1]-=5,_[0][1]-=5)),f=V}c&&(_.unshift([p[3][0]-10,p[3][1]]),_.push([p[2][0]+10,p[2][1]]),0===f?(p=_.pop(),"center"==u&&(_[0][0]+=10),"right"==u&&(_[0][0]=p[0]),_[0][1]+="center"==u?10:15):(_[_.length-1][1]+=5,_[0][1]+=5),c.style.pointList=_)}},_buildFunnelCase:function(e){var t=this.series[e];if(this.deepQuery([t,this.option],"calculable")){var i=this._paramsMap[e].location,n=10,a={hoverable:!1,style:{pointListd:[[i.x-n,i.y-n],[i.x+i.width+n,i.y-n],[i.x+i.width+n,i.y+i.height+n],[i.x-n,i.y+i.height+n]],brushType:"stroke",lineWidth:1,strokeColor:t.calculableHolderColor||this.ecTheme.calculableHolderColor||r.calculableHolderColor}};return s.pack(a,t,e,void 0,-1),this.setCalculable(a),a=new o(a),this.shapeList.push(a),a}},_getLocation:function(e){var t=this.series[e],i=this.zr.getWidth(),n=this.zr.getHeight(),a=this.parsePercent(t.x,i),o=this.parsePercent(t.y,n),r=null==t.width?i-a-this.parsePercent(t.x2,i):this.parsePercent(t.width,i);return{x:a,y:o,width:r,height:null==t.height?n-o-this.parsePercent(t.y2,n):this.parsePercent(t.height,n),centerX:a+r/2}},_mapData:function(e){function t(e,t){return"-"===e.value?1:"-"===t.value?-1:t.value-e.value}function i(e,i){return-t(e,i)}for(var n=this.series[e],a=h.clone(n.data),o=0,r=a.length;r>o;o++)a[o]._index=o;return"none"!=n.sort&&a.sort("descending"===n.sort?t:i),a},_buildItem:function(e,t,i,n,a,o,r,l,h){var m=this.series,V=m[e],U=V.data[t],d=this.getPolygon(e,t,i,n,a,o,r,l,h);s.pack(d,m[e],e,m[e].data[t],t,m[e].data[t].name),this.shapeList.push(d);var p=this.getLabel(e,t,i,n,a,o,r,l,h);s.pack(p,m[e],e,m[e].data[t],t,m[e].data[t].name),this.shapeList.push(p),this._needLabel(V,U,!1)||(p.invisible=!0);var c=this.getLabelLine(e,t,i,n,a,o,r,l,h);this.shapeList.push(c),this._needLabelLine(V,U,!1)||(c.invisible=!0);var u=[],y=[];return this._needLabelLine(V,U,!0)&&(u.push(c.id),y.push(c.id)),this._needLabel(V,U,!0)&&(u.push(p.id),y.push(d.id)),d.hoverConnect=u,p.hoverConnect=y,d},_getItemWidth:function(e,t){var i=this.series[e],n=this._paramsMap[e].location,a=i.min,o=i.max,r=l.parsePercent(i.minSize,n.width),s=l.parsePercent(i.maxSize,n.width);return(t-a)*(s-r)/(o-a)+r},getPolygon:function(e,t,i,n,a,r,s,l,h){var V,U=this.series[e],d=U.data[t],p=[d,U],c=this.deepMerge(p,"itemStyle.normal")||{},u=this.deepMerge(p,"itemStyle.emphasis")||{},y=this.getItemStyleColor(c.color,e,t,d)||i,g=this.getItemStyleColor(u.color,e,t,d)||("string"==typeof y?m.lift(y,-.2):y);switch(h){case"left":V=n;break;case"right":V=n+(r-s);break;default:V=n+(r-s)/2}var b={zlevel:U.zlevel,z:U.z,clickable:this.deepQuery(p,"clickable"),style:{pointList:[[n,a],[n+r,a],[V+s,a+l],[V,a+l]],brushType:"both",color:y,lineWidth:c.borderWidth,strokeColor:c.borderColor},highlightStyle:{color:g,lineWidth:u.borderWidth,strokeColor:u.borderColor}};return this.deepQuery([d,U,this.option],"calculable")&&(this.setCalculable(b),b.draggable=!0),new o(b)},getLabel:function(e,t,i,a,o,r,s,l,U){var d,p=this.series[e],c=p.data[t],u=this._paramsMap[e].location,y=h.merge(h.clone(c.itemStyle)||{},p.itemStyle),g="normal",b=y[g].label,f=b.textStyle||{},k=y[g].labelLine.length,x=this.getLabelText(e,t,g),_=this.getFont(f),L=i;b.position=b.position||y.normal.label.position,"inner"===b.position||"inside"===b.position||"center"===b.position?(d=U,L=Math.max(r,s)/2>V.getTextWidth(x,_)?"#fff":m.reverse(i)):d="left"===b.position?"right":"left";var W={zlevel:p.zlevel,z:p.z+1,style:{x:this._getLabelPoint(b.position,a,u,r,s,k,U),y:o+l/2,color:f.color||L,text:x,textAlign:f.align||d,textBaseline:f.baseline||"middle",textFont:_}};return g="emphasis",b=y[g].label||b,f=b.textStyle||f,k=y[g].labelLine.length||k,b.position=b.position||y.normal.label.position,x=this.getLabelText(e,t,g),_=this.getFont(f),L=i,"inner"===b.position||"inside"===b.position||"center"===b.position?(d=U,L=Math.max(r,s)/2>V.getTextWidth(x,_)?"#fff":m.reverse(i)):d="left"===b.position?"right":"left",W.highlightStyle={x:this._getLabelPoint(b.position,a,u,r,s,k,U),color:f.color||L,text:x,textAlign:f.align||d,textFont:_,brushType:"fill"},new n(W)},getLabelText:function(e,t,i){var n=this.series,a=n[e],o=a.data[t],r=this.deepQuery([o,a],"itemStyle."+i+".label.formatter");return r?"function"==typeof r?r.call(this.myChart,{seriesIndex:e,seriesName:a.name||"",series:a,dataIndex:t,data:o,name:o.name,value:o.value}):"string"==typeof r?r=r.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}").replace("{a0}",a.name).replace("{b0}",o.name).replace("{c0}",o.value):void 0:o.name},getLabelLine:function(e,t,i,n,o,r,s,l,m){var V=this.series[e],U=V.data[t],d=this._paramsMap[e].location,p=h.merge(h.clone(U.itemStyle)||{},V.itemStyle),c="normal",u=p[c].labelLine,y=p[c].labelLine.length,g=u.lineStyle||{},b=p[c].label;b.position=b.position||p.normal.label.position;var f={zlevel:V.zlevel,z:V.z+1,hoverable:!1,style:{xStart:this._getLabelLineStartPoint(n,d,r,s,m),yStart:o+l/2,xEnd:this._getLabelPoint(b.position,n,d,r,s,y,m),yEnd:o+l/2,strokeColor:g.color||i,lineType:g.type,lineWidth:g.width}};return c="emphasis",u=p[c].labelLine||u,y=p[c].labelLine.length||y,g=u.lineStyle||g,b=p[c].label||b,b.position=b.position,f.highlightStyle={xEnd:this._getLabelPoint(b.position,n,d,r,s,y,m),strokeColor:g.color||i,lineType:g.type,lineWidth:g.width},new a(f)},_getLabelPoint:function(e,t,i,n,a,o,r){switch(e="inner"===e||"inside"===e?"center":e){case"center":return"center"==r?t+n/2:"left"==r?t+10:t+n-10;case"left":return"auto"===o?i.x-10:"center"==r?i.centerX-Math.max(n,a)/2-o:"right"==r?t-(a>n?a-n:0)-o:i.x-o;default:return"auto"===o?i.x+i.width+10:"center"==r?i.centerX+Math.max(n,a)/2+o:"right"==r?i.x+i.width+o:t+Math.max(n,a)+o}},_getLabelLineStartPoint:function(e,t,i,n,a){return"center"==a?t.centerX:n>i?e+Math.min(i,n)/2:e+Math.max(i,n)/2},_needLabel:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".label.show")},_needLabelLine:function(e,t,i){return this.deepQuery([t,e],"itemStyle."+(i?"emphasis":"normal")+".labelLine.show")},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},h.inherits(t,i),e("../chart").define("funnel",t),t}),i("echarts/chart/eventRiver",["require","./base","../layout/eventRiver","zrender/shape/Polygon","../component/axis","../component/grid","../component/dataZoom","../config","../util/ecData","../util/date","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o);var r=this;r._ondragend=function(){r.isDragend=!0},this.refresh(a)}var i=e("./base"),n=e("../layout/eventRiver"),a=e("zrender/shape/Polygon");e("../component/axis"),e("../component/grid"),e("../component/dataZoom");var o=e("../config");o.eventRiver={zlevel:0,z:2,clickable:!0,legendHoverLink:!0,itemStyle:{normal:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0,position:"inside",formatter:"{b}"}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!0}}}};var r=e("../util/ecData"),s=e("../util/date"),l=e("zrender/tool/util"),h=e("zrender/tool/color");return t.prototype={type:o.CHART_TYPE_EVENTRIVER,_buildShape:function(){var e=this.series;this.selectedMap={},this._dataPreprocessing();for(var t=this.component.legend,i=[],a=0;a<e.length;a++)if(e[a].type===this.type){e[a]=this.reformOption(e[a]),this.legendHoverLink=e[a].legendHoverLink||this.legendHoverLink;var o=e[a].name||"";if(this.selectedMap[o]=t?t.isSelected(o):!0,!this.selectedMap[o])continue;this.buildMark(a),i.push(this.series[a])}n(i,this._intervalX,this.component.grid.getArea()),this._drawEventRiver(),this.addShapeList()},_dataPreprocessing:function(){for(var e,t,i=this.series,n=0,a=i.length;a>n;n++)if(i[n].type===this.type){e=this.component.xAxis.getAxis(i[n].xAxisIndex||0);for(var o=0,r=i[n].data.length;r>o;o++){t=i[n].data[o].evolution;for(var l=0,h=t.length;h>l;l++)t[l].timeScale=e.getCoord(s.getNewDate(t[l].time)-0),t[l].valueScale=Math.pow(t[l].value,.8)}}this._intervalX=Math.round(this.component.grid.getWidth()/40)},_drawEventRiver:function(){for(var e=this.series,t=0;t<e.length;t++){var i=e[t].name||"";if(e[t].type===this.type&&this.selectedMap[i])for(var n=0;n<e[t].data.length;n++)this._drawEventBubble(e[t].data[n],t,n)}},_drawEventBubble:function(e,t,i){var n=this.series,o=n[t],s=o.name||"",l=o.data[i],m=[l,o],V=this.component.legend,U=V?V.getColor(s):this.zr.getColor(t),d=this.deepMerge(m,"itemStyle.normal")||{},p=this.deepMerge(m,"itemStyle.emphasis")||{},c=this.getItemStyleColor(d.color,t,i,l)||U,u=this.getItemStyleColor(p.color,t,i,l)||("string"==typeof c?h.lift(c,-.2):c),y=this._calculateControlPoints(e),g={zlevel:o.zlevel,z:o.z,clickable:this.deepQuery(m,"clickable"),style:{pointList:y,smooth:"spline",brushType:"both",lineJoin:"round",color:c,lineWidth:d.borderWidth,strokeColor:d.borderColor},highlightStyle:{color:u,lineWidth:p.borderWidth,strokeColor:p.borderColor},draggable:"vertical",ondragend:this._ondragend};g=new a(g),this.addLabel(g,o,l,e.name),r.pack(g,n[t],t,n[t].data[i],i,n[t].data[i].name),this.shapeList.push(g)},_calculateControlPoints:function(e){var t=this._intervalX,i=e.y,n=e.evolution,a=n.length;if(!(1>a)){for(var o=[],r=[],s=0;a>s;s++)o.push(n[s].timeScale),r.push(n[s].valueScale);var l=[];l.push([o[0],i]);var s=0;for(s=0;a-1>s;s++)l.push([(o[s]+o[s+1])/2,r[s]/-2+i]);for(l.push([(o[s]+(o[s]+t))/2,r[s]/-2+i]),l.push([o[s]+t,i]),l.push([(o[s]+(o[s]+t))/2,r[s]/2+i]),s=a-1;s>0;s--)l.push([(o[s]+o[s-1])/2,r[s-1]/2+i]);return l}},ondragend:function(e,t){this.isDragend&&e.target&&(t.dragOut=!0,t.dragIn=!0,t.needRefresh=!1,this.isDragend=!1)},refresh:function(e){e&&(this.option=e,this.series=e.series),this.backupShapeList(),this._buildShape()}},l.inherits(t,i),e("../chart").define("eventRiver",t),t}),i("echarts/layout/eventRiver",["require"],function(){function e(e,i,o){function r(e,t){var i=e.importance,n=t.importance;return i>n?-1:n>i?1:0}for(var s=4,l=0;l<e.length;l++){for(var h=0;h<e[l].data.length;h++){null==e[l].data[h].weight&&(e[l].data[h].weight=1);for(var m=0,V=0;V<e[l].data[h].evolution.length;V++)m+=e[l].data[h].evolution[V].valueScale;e[l].data[h].importance=m*e[l].data[h].weight}e[l].data.sort(r)}for(var l=0;l<e.length;l++){null==e[l].weight&&(e[l].weight=1);for(var m=0,h=0;h<e[l].data.length;h++)m+=e[l].data[h].weight;e[l].importance=m*e[l].weight}e.sort(r);for(var U=Number.MAX_VALUE,d=0,l=0;l<e.length;l++)for(var h=0;h<e[l].data.length;h++)for(var V=0;V<e[l].data[h].evolution.length;V++){var p=e[l].data[h].evolution[V].timeScale;U=Math.min(U,p),d=Math.max(d,p)}U=~~U,d=~~d;for(var c=function(){var e=d-U+1+~~i;if(0>=e)return[0];for(var t=[];e--;)t.push(0);return t}(),u=c.slice(0),y=[],g=0,b=0,l=0;l<e.length;l++)for(var h=0;h<e[l].data.length;h++){var f=e[l].data[h];f.time=[],f.value=[];for(var k,x=0,V=0;V<e[l].data[h].evolution.length;V++)k=e[l].data[h].evolution[V],f.time.push(k.timeScale),f.value.push(k.valueScale),x=Math.max(x,k.valueScale);n(f,i,U),f.y=a(u,f,function(e,t){return e.ypx[t]}),f._offset=a(c,f,function(){return s}),g=Math.max(g,f.y+x),b=Math.max(b,f._offset),y.push(f)}t(y,o,g,b)}function t(e,t,i,n){for(var a=t.height,o=n/a>.5?.5:1,r=t.y,s=(t.height-n)/i,l=0,h=e.length;h>l;l++){var m=e[l];m.y=r+s*m.y+m._offset*o,delete m.time,delete m.value,delete m.xpx,delete m.ypx,delete m._offset;for(var V=m.evolution,U=0,d=V.length;d>U;U++)V[U].valueScale*=s}}function i(e,t,i,n){if(e===i)throw new Error("x0 is equal with x1!!!");if(t===n)return function(){return t};var a=(t-n)/(e-i),o=(n*e-t*i)/(e-i);return function(e){return a*e+o}}function n(e,t,n){var a=~~t,o=e.time.length;e.xpx=[],e.ypx=[];for(var r,s=0,l=0,h=0,m=0,V=0;o>s;s++){l=~~e.time[s],m=e.value[s]/2,s===o-1?(h=l+a,V=0):(h=~~e.time[s+1],V=e.value[s+1]/2),r=i(l,m,h,V);for(var U=l;h>U;U++)e.xpx.push(U-n),e.ypx.push(r(U))}e.xpx.push(h-n),e.ypx.push(V)}function a(e,t,i){for(var n,a=0,o=t.xpx.length,r=0;o>r;r++)n=i(t,r),a=Math.max(a,n+e[t.xpx[r]]);for(r=0;o>r;r++)n=i(t,r),e[t.xpx[r]]=a+n;return a}return e}),i("echarts/chart/venn",["require","./base","zrender/shape/Text","zrender/shape/Circle","zrender/shape/Path","../config","../util/ecData","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("zrender/shape/Circle"),o=e("zrender/shape/Path"),r=e("../config");r.venn={zlevel:0,z:1,calculable:!1};var s=e("../util/ecData"),l=e("zrender/tool/util");return t.prototype={type:r.CHART_TYPE_VENN,_buildShape:function(){this.selectedMap={},this._symbol=this.option.symbolList,this._queryTarget,this._dropBoxList=[],this._vennDataCounter=0;for(var e=this.series,t=this.component.legend,i=0;i<e.length;i++)if(e[i].type===r.CHART_TYPE_VENN){e[i]=this.reformOption(e[i]);var n=e[i].name||"";if(this.selectedMap[n]=t?t.isSelected(n):!0,!this.selectedMap[n])continue;this._buildVenn(i)}this.addShapeList()},_buildVenn:function(e){var t,i,n=this.series[e],a=n.data;a[0].value>a[1].value?(t=this.zr.getHeight()/3,i=t*Math.sqrt(a[1].value)/Math.sqrt(a[0].value)):(i=this.zr.getHeight()/3,t=i*Math.sqrt(a[0].value)/Math.sqrt(a[1].value));var o=this.zr.getWidth()/2-t,r=(t+i)/2*Math.sqrt(a[2].value)/Math.sqrt((a[0].value+a[1].value)/2),s=t+i;0!==a[2].value&&(s=this._getCoincideLength(a[0].value,a[1].value,a[2].value,t,i,r,Math.abs(t-i),t+i));var l=o+s,h=this.zr.getHeight()/2;if(this._buildItem(e,0,a[0],o,h,t),this._buildItem(e,1,a[1],l,h,i),0!==a[2].value&&a[2].value!==a[0].value&&a[2].value!==a[1].value){var m=(t*t-i*i)/(2*s)+s/2,V=s/2-(t*t-i*i)/(2*s),U=Math.sqrt(t*t-m*m),d=0,p=0;a[0].value>a[1].value&&o+m>l&&(p=1),a[0].value<a[1].value&&o+V>l&&(d=1),this._buildCoincideItem(e,2,a[2],o+m,h-U,h+U,t,i,d,p)}},_getCoincideLength:function(e,t,i,n,a,o,r,s){var l=(n*n-a*a)/(2*o)+o/2,h=o/2-(n*n-a*a)/(2*o),m=Math.acos(l/n),V=Math.acos(h/a),U=n*n*Math.PI,d=m*n*n-l*n*Math.sin(m)+V*a*a-h*a*Math.sin(V),p=d/U,c=i/e,u=Math.abs(p/c);return u>.999&&1.001>u?o:.999>=u?(s=o,o=(o+r)/2,this._getCoincideLength(e,t,i,n,a,o,r,s)):(r=o,o=(o+s)/2,this._getCoincideLength(e,t,i,n,a,o,r,s))},_buildItem:function(e,t,i,n,a,o){var r=this.series,l=r[e],h=this.getCircle(e,t,i,n,a,o);if(s.pack(h,l,e,i,t,i.name),this.shapeList.push(h),l.itemStyle.normal.label.show){var m=this.getLabel(e,t,i,n,a,o);s.pack(m,l,e,l.data[t],t,l.data[t].name),this.shapeList.push(m)}},_buildCoincideItem:function(e,t,i,n,a,r,l,h,m,V){var U=this.series,d=U[e],p=[i,d],c=this.deepMerge(p,"itemStyle.normal")||{},u=this.deepMerge(p,"itemStyle.emphasis")||{},y=c.color||this.zr.getColor(t),g=u.color||this.zr.getColor(t),b="M"+n+","+a+"A"+l+","+l+",0,"+m+",1,"+n+","+r+"A"+h+","+h+",0,"+V+",1,"+n+","+a,f={color:y,path:b},k={zlevel:d.zlevel,z:d.z,style:f,highlightStyle:{color:g,lineWidth:u.borderWidth,strokeColor:u.borderColor}};k=new o(k),k.buildPathArray&&(k.style.pathArray=k.buildPathArray(f.path)),s.pack(k,U[e],0,i,t,i.name),this.shapeList.push(k)},getCircle:function(e,t,i,n,o,r){var s=this.series[e],l=[i,s],h=this.deepMerge(l,"itemStyle.normal")||{},m=this.deepMerge(l,"itemStyle.emphasis")||{},V=h.color||this.zr.getColor(t),U=m.color||this.zr.getColor(t),d={zlevel:s.zlevel,z:s.z,clickable:!0,style:{x:n,y:o,r:r,brushType:"fill",opacity:1,color:V},highlightStyle:{color:U,lineWidth:m.borderWidth,strokeColor:m.borderColor}};return this.deepQuery([i,s,this.option],"calculable")&&(this.setCalculable(d),d.draggable=!0),new a(d)},getLabel:function(e,t,i,a,o,r){var s=this.series[e],l=s.itemStyle,h=[i,s],m=this.deepMerge(h,"itemStyle.normal")||{},V="normal",U=l[V].label,d=U.textStyle||{},p=this.getLabelText(t,i,V),c=this.getFont(d),u=m.color||this.zr.getColor(t),y=d.fontSize||12,g={zlevel:s.zlevel,z:s.z,style:{x:a,y:o-r-y,color:d.color||u,text:p,textFont:c,textAlign:"center"}};return new n(g)},getLabelText:function(e,t,i){var n=this.series,a=n[0],o=this.deepQuery([t,a],"itemStyle."+i+".label.formatter");return o?"function"==typeof o?o(a.name,t.name,t.value):"string"==typeof o?(o=o.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),o=o.replace("{a0}",a.name).replace("{b0}",t.name).replace("{c0}",t.value)):void 0:t.name},refresh:function(e){e&&(this.option=e,this.series=e.series),this._buildShape()}},l.inherits(t,i),e("../chart").define("venn",t),t}),i("echarts/chart/treemap",["require","./base","zrender/tool/area","zrender/shape/Rectangle","zrender/shape/Text","zrender/shape/Line","../layout/TreeMap","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a);var r=this;r._onclick=function(e){return r.__onclick(e)},r.zr.on(V.EVENT.CLICK,r._onclick)}var i=e("./base"),n=e("zrender/tool/area"),a=e("zrender/shape/Rectangle"),o=e("zrender/shape/Text"),r=e("zrender/shape/Line"),s=e("../layout/TreeMap"),l=e("../data/Tree"),h=e("../config");h.treemap={zlevel:0,z:1,calculable:!1,clickable:!0,center:["50%","50%"],size:["80%","80%"],root:"",itemStyle:{normal:{label:{
-show:!0,x:5,y:12,textStyle:{align:"left",color:"#000",fontFamily:"Arial",fontSize:13,fontStyle:"normal",fontWeight:"normal"}},breadcrumb:{show:!0,textStyle:{}},borderWidth:1,borderColor:"#ccc",childBorderWidth:1,childBorderColor:"#ccc"},emphasis:{}}};var m=e("../util/ecData"),V=e("zrender/config"),U=(e("zrender/tool/event"),e("zrender/tool/util")),d=e("zrender/tool/color");return t.prototype={type:h.CHART_TYPE_TREEMAP,refresh:function(e){this.clear(),e&&(this.option=e,this.series=this.option.series),this._treesMap={};for(var t=this.series,i=this.component.legend,n=0;n<t.length;n++)if(t[n].type===h.CHART_TYPE_TREEMAP){t[n]=this.reformOption(t[n]);var a=t[n].name||"";if(this.selectedMap[a]=i?i.isSelected(a):!0,!this.selectedMap[a])continue;this._buildSeries(t[n],n)}},_buildSeries:function(e,t){var i=l.fromOptionData(e.name,e.data);this._treesMap[t]=i;var n=e.root&&i.getNodeById(e.root)||i.root;this._buildTreemap(n,t)},_buildTreemap:function(e,t){for(var i=this.shapeList,n=0;n<i.length;){var a=i[n];m.get(a,"seriesIndex")===t?(this.zr.delShape(i[n]),i.splice(n,1)):n++}for(var o=i.length,r=this.series[t],l=r.itemStyle,h=this.parsePercent(r.size[0],this.zr.getWidth())||400,V=this.parsePercent(r.size[1],this.zr.getHeight())||500,U=this.parseCenter(this.zr,r.center),d=U[0]-.5*h,p=U[1]-.5*V,c=h*V,u=0,y=[],g=e.children,n=0;n<g.length;n++)u+=g[n].data.value;for(var b=0;b<g.length;b++)y.push(g[b].data.value*c/u);for(var f=new s({x:d,y:p,width:h,height:V}),k=f.run(y),x=0;x<k.length;x++){var _=g[x].data,L=k[x],W=[_.itemStyle,l],X=this.deepMerge(W);X.normal.color||(X.normal.color=this.zr.getColor(x)),X.emphasis.color||(X.emphasis.color=X.normal.color),this._buildItem(_,X,L,t,x),_.children&&this._buildChildrenTreemap(_.children,X,L,t)}this.query(r,"itemStyle.normal.breadcrumb.show")&&this._buildBreadcrumb(e,t,d,p+V);for(var n=o;n<i.length;n++)this.zr.addShape(i[n])},_buildItem:function(e,t,i,n,a){var o=this.series,r=this.getRectangle(e,t,i);m.pack(r,o[n],n,e,a,e.name),this.shapeList.push(r)},getRectangle:function(e,t,i){var n=t.emphasis,o=t.normal,r=this.getLabel(t,i,e.name,e.value),s=this.option.hoverable,l={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:s,clickable:!0,style:U.merge({x:i.x,y:i.y,width:i.width,height:i.height,brushType:"both",color:o.color,lineWidth:o.borderWidth,strokeColor:o.borderColor},r.style,!0),highlightStyle:U.merge({color:n.color,lineWidth:n.borderWidth,strokeColor:n.borderColor},r.highlightStyle,!0)};return new a(l)},getLabel:function(e,t,i,a){var o=e.normal.label.textStyle,r=[e.emphasis.label.textStyle,o],s=this.deepMerge(r),l=e.normal.label.formatter,h=this.getLabelText(i,a,l),m=this.getFont(o),V=n.getTextWidth(h,m),U=n.getTextHeight(h,m),d=this.deepQuery([e.emphasis,e.normal],"label.formatter"),p=this.getLabelText(i,a,d),c=this.getFont(s),u=n.getTextWidth(h,c),y=n.getTextHeight(h,c);e.normal.label.show?(e.normal.label.x+V>t.width||e.normal.label.y+U>t.height)&&(h=""):h="",e.emphasis.label.show?(s.x+u>t.width||s.y+y>t.height)&&(p=""):p="";var g={style:{textX:t.x+e.normal.label.x,textY:t.y+e.normal.label.y,text:h,textPosition:"specific",textColor:o.color,textFont:m},highlightStyle:{textX:t.x+e.emphasis.label.x,textY:t.y+e.emphasis.label.y,text:p,textColor:s.color,textPosition:"specific"}};return g},getLabelText:function(e,t,i){return i?"function"==typeof i?i.call(this.myChart,e,t):"string"==typeof i?(i=i.replace("{b}","{b0}").replace("{c}","{c0}"),i=i.replace("{b0}",e).replace("{c0}",t)):void 0:e},_buildChildrenTreemap:function(e,t,i,n){for(var a=i.width*i.height,o=0,r=[],l=0;l<e.length;l++)o+=e[l].value;for(var h=0;h<e.length;h++)r.push(e[h].value*a/o);for(var V=new s({x:i.x,y:i.y,width:i.width,height:i.height}),U=V.run(r),d=t.normal.childBorderWidth,p=t.normal.childBorderColor,c=0;c<U.length;c++){var u=U[c],y=[];i.y.toFixed(2)!==u.y.toFixed(2)&&y.push(this._getLine(u.x,u.y,u.x+u.width,u.y,d,p)),i.x.toFixed(2)!==u.x.toFixed(2)&&y.push(this._getLine(u.x,u.y,u.x,u.y+u.height,d,p)),(i.y+i.height).toFixed(2)!==(u.y+u.height).toFixed(2)&&y.push(this._getLine(u.x,u.y+u.height,u.x+u.width,u.y+u.height,d,p)),(i.x+i.width).toFixed(2)!==(u.x+u.width).toFixed(2)&&y.push(this._getLine(u.x+u.width,u.y,u.x+u.width,u.y+u.height,d,p));for(var g=0;g<y.length;g++)m.set(y[g],"seriesIndex",n),this.shapeList.push(y[g])}},_getLine:function(e,t,i,n,a,o){var s={zlevel:this.getZlevelBase(),z:this.getZBase(),hoverable:!1,style:{xStart:e,yStart:t,xEnd:i,yEnd:n,lineWidth:a,strokeColor:o}};return new r(s)},_buildBreadcrumb:function(e,t,i,n){for(var a=[],r=e;r;)a.unshift(r.data.name),r=r.parent;for(var s=this.series[t],l=this.query(s,"itemStyle.normal.breadcrumb.textStyle")||{},h=this.query(s,"itemStyle.emphasis.breadcrumb.textStyle")||{},V={y:n+10,textBaseline:"top",textAlign:"left",color:l.color,textFont:this.getFont(l)},p={brushType:"fill",color:h.color||d.lift(l.color,-.3),textFont:this.getFont(h)},c=0;c<a.length;c++){var u=new o({zlevel:this.getZlevelBase(),z:this.getZBase(),style:U.merge({x:i,text:a[c]+(a.length-1-c?" > ":"")},V),clickable:!0,highlightStyle:p});m.set(u,"seriesIndex",t),m.set(u,"name",a[c]),i+=u.getRect(u.style).width,this.shapeList.push(u)}},__onclick:function(e){var t=e.target;if(t){var i=m.get(t,"seriesIndex"),n=m.get(t,"name"),a=this._treesMap[i],o=a.getNodeById(n);o&&o.children.length&&this._buildTreemap(o,i)}}},U.inherits(t,i),e("../chart").define("treemap",t),t}),i("echarts/layout/TreeMap",["require"],function(){function e(e){({x:e.x,y:e.y,width:e.width,height:e.height});this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}return e.prototype.run=function(e){var t=[];return this._squarify(e,{x:this.x,y:this.y,width:this.width,height:this.height},t),t},e.prototype._squarify=function(e,t,i){var n="VERTICAL",a=t.width,o=t.height;t.width<t.height&&(n="HORIZONTAL",a=t.height,o=t.width);for(var r=this._getShapeListInAbstractRow(e,a,o),s=0;s<r.length;s++){r[s].x=0,r[s].y=0;for(var l=0;s>l;l++)r[s].y+=r[l].height}var h={};if("VERTICAL"==n){for(var m=0;m<r.length;m++)i.push({x:r[m].x+t.x,y:r[m].y+t.y,width:r[m].width,height:r[m].height});h={x:r[0].width+t.x,y:t.y,width:t.width-r[0].width,height:t.height}}else{for(var V=0;V<r.length;V++)i.push({x:r[V].y+t.x,y:r[V].x+t.y,width:r[V].height,height:r[V].width});h={x:t.x,y:t.y+r[0].width,width:t.width,height:t.height-r[0].width}}var U=e.slice(r.length);0!==U.length&&this._squarify(U,h,i)},e.prototype._getShapeListInAbstractRow=function(e,t,i){if(1===e.length)return[{width:t,height:i}];for(var n=1;n<e.length;n++){var a=this._placeFixedNumberRectangles(e.slice(0,n),t,i),o=this._placeFixedNumberRectangles(e.slice(0,n+1),t,i);if(this._isFirstBetter(a,o))return a}},e.prototype._placeFixedNumberRectangles=function(e,t,i){for(var n=e.length,a=[],o=0,r=0;r<e.length;r++)o+=e[r];for(var s=o/i,l=0;n>l;l++){var h=i*e[l]/o;a.push({width:s,height:h})}return a},e.prototype._isFirstBetter=function(e,t){var i=e[0].height/e[0].width;i=i>1?1/i:i;var n=t[0].height/t[0].width;return n=n>1?1/n:n,Math.abs(i-1)<=Math.abs(n-1)?!0:!1},e}),i("echarts/data/Tree",["require","zrender/tool/util"],function(e){function t(e,t){this.id=e,this.depth=0,this.height=0,this.children=[],this.parent=null,this.data=t||null}function i(e){this.root=new t(e)}var n=e("zrender/tool/util");return t.prototype.add=function(e){var t=this.children;e.parent!==this&&(t.push(e),e.parent=this)},t.prototype.remove=function(e){var t=this.children,i=n.indexOf(t,e);i>=0&&(t.splice(i,1),e.parent=null)},t.prototype.traverse=function(e,t){e.call(t,this);for(var i=0;i<this.children.length;i++)this.children[i].traverse(e,t)},t.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},t.prototype.getNodeById=function(e){if(this.id===e)return this;for(var t=0;t<this.children.length;t++){var i=this.children[t].getNodeById(e);if(i)return i}},i.prototype.traverse=function(e,t){this.root.traverse(e,t)},i.prototype.getSubTree=function(e){var t=this.getNodeById(e);if(t){var n=new i(t.id);return n.root=t,n}},i.prototype.getNodeById=function(e){return this.root.getNodeById(e)},i.fromOptionData=function(e,n){function a(e,i){var n=new t(e.name,e);i.add(n);var o=e.children;if(o)for(var r=0;r<o.length;r++)a(o[r],n)}var o=new i(e),r=o.root;r.data={name:e,children:n};for(var s=0;s<n.length;s++)a(n[s],r);return o.root.updateDepthAndHeight(0),o},i.fromGraph=function(e){function n(t){for(var i=e.getNodeById(t.id),a=0;a<i.outEdges.length;a++){var r=i.outEdges[a],s=o[r.node2.id];t.children.push(s),n(s)}}for(var a={},o={},r=0;r<e.nodes.length;r++){var s,l=e.nodes[r];0===l.inDegree()?(a[l.id]=new i(l.id),s=a[l.id].root):s=new t(l.id),s.data=l.data,o[l.id]=s}var h=[];for(var m in a)n(a[m].root),a[m].root.updateDepthAndHeight(0),h.push(a[m]);return h},i}),i("echarts/chart/tree",["require","./base","../util/shape/Icon","zrender/shape/Image","zrender/shape/Line","zrender/shape/BezierCurve","../layout/Tree","../data/Tree","../config","../util/ecData","zrender/config","zrender/tool/event","zrender/tool/util","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=.618,a=e("../util/shape/Icon"),o=e("zrender/shape/Image"),r=e("zrender/shape/Line"),s=e("zrender/shape/BezierCurve"),l=e("../layout/Tree"),h=e("../data/Tree"),m=e("../config");m.tree={zlevel:1,z:2,calculable:!1,clickable:!0,rootLocation:{},orient:"vertical",symbol:"circle",symbolSize:20,nodePadding:30,layerPadding:100,itemStyle:{normal:{label:{show:!0},lineStyle:{width:1,color:"#777",type:"curve"}},emphasis:{}}};var V=e("../util/ecData"),U=(e("zrender/config"),e("zrender/tool/event"),e("zrender/tool/util"));return t.prototype={type:m.CHART_TYPE_TREE,_buildShape:function(e,t){var i=e.data[0];this.tree=h.fromOptionData(i.name,i.children),this.tree.root.data=i,this._setTreeShape(e),this.tree.traverse(function(i){this._buildItem(i,e,t),i.children.length>0&&this._buildLink(i,e)},this);var n=e.roam===!0||"move"===e.roam,a=e.roam===!0||"scale"===e.roam;this.zr.modLayer(this.getZlevelBase(),{panable:n,zoomable:a}),(this.query("markPoint.effect.show")||this.query("markLine.effect.show"))&&this.zr.modLayer(m.EFFECT_ZLEVEL,{panable:n,zoomable:a}),this.addShapeList()},_buildItem:function(e,t,i){var n=[e.data,t],r=this.deepQuery(n,"symbol"),s=this.deepMerge(n,"itemStyle.normal")||{},l=this.deepMerge(n,"itemStyle.emphasis")||{},h=s.color||this.zr.getColor(),m=l.color||this.zr.getColor(),U=-e.layout.angle||0;e.id===this.tree.root.id&&(U=0);var d="right";Math.abs(U)>=Math.PI/2&&Math.abs(U)<3*Math.PI/2&&(U+=Math.PI,d="left");var p=[U,e.layout.position[0],e.layout.position[1]],c=new a({zlevel:this.getZlevelBase(),z:this.getZBase()+1,rotation:p,clickable:this.deepQuery(n,"clickable"),style:{x:e.layout.position[0]-.5*e.layout.width,y:e.layout.position[1]-.5*e.layout.height,width:e.layout.width,height:e.layout.height,iconType:r,color:h,brushType:"both",lineWidth:s.borderWidth,strokeColor:s.borderColor},highlightStyle:{color:m,lineWidth:l.borderWidth,strokeColor:l.borderColor}});c.style.iconType.match("image")&&(c.style.image=c.style.iconType.replace(new RegExp("^image:\\/\\/"),""),c=new o({rotation:p,style:c.style,highlightStyle:c.highlightStyle,clickable:c.clickable,zlevel:this.getZlevelBase(),z:this.getZBase()})),this.deepQuery(n,"itemStyle.normal.label.show")&&(c.style.text=null==e.data.label?e.id:e.data.label,c.style.textPosition=this.deepQuery(n,"itemStyle.normal.label.position"),"radial"===t.orient&&"inside"!==c.style.textPosition&&(c.style.textPosition=d),c.style.textColor=this.deepQuery(n,"itemStyle.normal.label.textStyle.color"),c.style.textFont=this.getFont(this.deepQuery(n,"itemStyle.normal.label.textStyle")||{})),this.deepQuery(n,"itemStyle.emphasis.label.show")&&(c.highlightStyle.textPosition=this.deepQuery(n,"itemStyle.emphasis.label.position"),c.highlightStyle.textColor=this.deepQuery(n,"itemStyle.emphasis.label.textStyle.color"),c.highlightStyle.textFont=this.getFont(this.deepQuery(n,"itemStyle.emphasis.label.textStyle")||{})),V.pack(c,t,i,e.data,0,e.id),this.shapeList.push(c)},_buildLink:function(e,t){var i=t.itemStyle.normal.lineStyle;if("broken"===i.type)return void this._buildBrokenLine(e,i,t);for(var n=0;n<e.children.length;n++){var a=e.layout.position[0],o=e.layout.position[1],r=e.children[n].layout.position[0],s=e.children[n].layout.position[1];switch(i.type){case"curve":this._buildBezierCurve(e,e.children[n],i,t);break;case"broken":break;default:var l=this._getLine(a,o,r,s,i);this.shapeList.push(l)}}},_buildBrokenLine:function(e,t,i){var a=U.clone(t);a.type="solid";var o=[],r=e.layout.position[0],s=e.layout.position[1],l=i.orient,h=e.children[0].layout.position[1],m=r,V=s+(h-s)*(1-n),d=e.children[0].layout.position[0],p=V,c=e.children[e.children.length-1].layout.position[0],u=V;if("horizontal"===l){var y=e.children[0].layout.position[0];m=r+(y-r)*(1-n),V=s,d=m,p=e.children[0].layout.position[1],c=m,u=e.children[e.children.length-1].layout.position[1]}o.push(this._getLine(r,s,m,V,a)),o.push(this._getLine(d,p,c,u,a));for(var g=0;g<e.children.length;g++)y=e.children[g].layout.position[0],h=e.children[g].layout.position[1],"horizontal"===l?p=h:d=y,o.push(this._getLine(d,p,y,h,a));this.shapeList=this.shapeList.concat(o)},_getLine:function(e,t,i,n,a){return e===i&&(e=i=this.subPixelOptimize(e,a.width)),t===n&&(t=n=this.subPixelOptimize(t,a.width)),new r({zlevel:this.getZlevelBase(),hoverable:!1,style:U.merge({xStart:e,yStart:t,xEnd:i,yEnd:n,lineType:a.type,strokeColor:a.color,lineWidth:a.width},a,!0)})},_buildBezierCurve:function(e,t,i,a){var o=n,r=a.orient,l=e.layout.position[0],h=e.layout.position[1],m=t.layout.position[0],V=t.layout.position[1],d=l,p=(V-h)*o+h,c=m,u=(V-h)*(1-o)+h;if("horizontal"===r)d=(m-l)*o+l,p=h,c=(m-l)*(1-o)+l,u=V;else if("radial"===r)if(e.id===this.tree.root.id)d=(m-l)*o+l,p=(V-h)*o+h,c=(m-l)*(1-o)+l,u=(V-h)*(1-o)+h;else{var y=e.layout.originPosition[0],g=e.layout.originPosition[1],b=t.layout.originPosition[0],f=t.layout.originPosition[1],k=this.tree.root.layout.position[0],x=this.tree.root.layout.position[1];d=y,p=(f-g)*o+g,c=b,u=(f-g)*(1-o)+g;var _=(d-this.minX)/this.width*Math.PI*2;d=p*Math.cos(_)+k,p=p*Math.sin(_)+x,_=(c-this.minX)/this.width*Math.PI*2,c=u*Math.cos(_)+k,u=u*Math.sin(_)+x}var L=new s({zlevel:this.getZlevelBase(),hoverable:!1,style:U.merge({xStart:l,yStart:h,cpX1:d,cpY1:p,cpX2:c,cpY2:u,xEnd:m,yEnd:V,strokeColor:i.color,lineWidth:i.width},i,!0)});this.shapeList.push(L)},_setTreeShape:function(e){var t=new l({nodePadding:e.nodePadding,layerPadding:e.layerPadding});this.tree.traverse(function(t){var i=[t.data,e],n=this.deepQuery(i,"symbolSize");"number"==typeof n&&(n=[n,n]),t.layout={width:n[0],height:n[1]}},this),t.run(this.tree);var i=e.orient,n=e.rootLocation.x,a=e.rootLocation.y,o=this.zr.getWidth(),r=this.zr.getHeight();n="center"===n?.5*o:this.parsePercent(n,o),a="center"===a?.5*r:this.parsePercent(a,r),a=this.parsePercent(a,r),"horizontal"===i&&(n=isNaN(n)?10:n,a=isNaN(a)?.5*r:a),"radial"===i?(n=isNaN(n)?.5*o:n,a=isNaN(a)?.5*r:a):(n=isNaN(n)?.5*o:n,a=isNaN(a)?10:a);var s=this.tree.root.layout.position[0];if("radial"===i){var h=1/0,m=0,V=0;this.tree.traverse(function(e){m=Math.max(m,e.layout.position[0]),h=Math.min(h,e.layout.position[0]),V=Math.max(V,e.layout.width)}),this.width=m-h+2*V,this.minX=h}this.tree.traverse(function(t){var o,r;if("vertical"===i&&"inverse"===e.direction)o=t.layout.position[0]-s+n,r=a-t.layout.position[1];else if("vertical"===i)o=t.layout.position[0]-s+n,r=t.layout.position[1]+a;else if("horizontal"===i&&"inverse"===e.direction)r=t.layout.position[0]-s+a,o=n-t.layout.position[1];else if("horizontal"===i)r=t.layout.position[0]-s+a,o=t.layout.position[1]+n;else{o=t.layout.position[0],r=t.layout.position[1],t.layout.originPosition=[o,r];var l=r,m=(o-h)/this.width*Math.PI*2;o=l*Math.cos(m)+n,r=l*Math.sin(m)+a,t.layout.angle=m}t.layout.position[0]=o,t.layout.position[1]=r},this)},refresh:function(e){this.clear(),e&&(this.option=e,this.series=this.option.series);for(var t=this.series,i=this.component.legend,n=0;n<t.length;n++)if(t[n].type===m.CHART_TYPE_TREE){t[n]=this.reformOption(t[n]);var a=t[n].name||"";if(this.selectedMap[a]=i?i.isSelected(a):!0,!this.selectedMap[a])continue;this._buildSeries(t[n],n)}},_buildSeries:function(e,t){this._buildShape(e,t)}},U.inherits(t,i),e("../chart").define("tree",t),t}),i("echarts/layout/Tree",["require","zrender/tool/vector"],function(e){function t(e){e=e||{},this.nodePadding=e.nodePadding||30,this.layerPadding=e.layerPadding||100,this._layerOffsets=[],this._layers=[]}var i=e("zrender/tool/vector");return t.prototype.run=function(e){this._layerOffsets.length=0;for(var t=0;t<e.root.height+1;t++)this._layerOffsets[t]=0,this._layers[t]=[];this._updateNodeXPosition(e.root);var i=e.root;this._updateNodeYPosition(i,0,i.layout.height)},t.prototype._updateNodeXPosition=function(e){var t=1/0,n=-(1/0);e.layout.position=e.layout.position||i.create();for(var a=0;a<e.children.length;a++){var o=e.children[a];this._updateNodeXPosition(o);var r=o.layout.position[0];t>r&&(t=r),r>n&&(n=r)}e.layout.position[0]=e.children.length>0?(t+n)/2:0;var s=this._layerOffsets[e.depth]||0;if(s>e.layout.position[0]){var l=s-e.layout.position[0];this._shiftSubtree(e,l);for(var a=e.depth+1;a<e.height+e.depth;a++)this._layerOffsets[a]+=l}this._layerOffsets[e.depth]=e.layout.position[0]+e.layout.width+this.nodePadding,this._layers[e.depth].push(e)},t.prototype._shiftSubtree=function(e,t){e.layout.position[0]+=t;for(var i=0;i<e.children.length;i++)this._shiftSubtree(e.children[i],t)},t.prototype._updateNodeYPosition=function(e,t,i){e.layout.position[1]=t;for(var n=0,a=0;a<e.children.length;a++)n=Math.max(e.children[a].layout.height,n);var o=this.layerPadding;"function"==typeof o&&(o=o(e.depth));for(var a=0;a<e.children.length;a++)this._updateNodeYPosition(e.children[a],t+o+i,n)},t}),i("echarts/chart/wordCloud",["require","./base","zrender/shape/Text","../layout/WordCloud","../component/grid","../component/dataRange","../config","../util/ecData","zrender/tool/util","zrender/tool/color","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("zrender/shape/Text"),a=e("../layout/WordCloud");e("../component/grid"),e("../component/dataRange");var o=e("../config"),r=e("../util/ecData"),s=e("zrender/tool/util"),l=e("zrender/tool/color");return o.wordCloud={zlevel:0,z:2,clickable:!0,center:["50%","50%"],size:["40%","40%"],textRotation:[0,90],textPadding:0,autoSize:{enable:!0,minSize:12},itemStyle:{normal:{textStyle:{fontSize:function(e){return e.value}}}}},t.prototype={type:o.CHART_TYPE_WORDCLOUD,refresh:function(e){e&&(this.option=e,this.series=e.series),this._init()},_init:function(){var e=this.series;this.backupShapeList();for(var t=this.component.legend,i=0;i<e.length;i++)if(e[i].type===o.CHART_TYPE_WORDCLOUD){e[i]=this.reformOption(e[i]);var n=e[i].name||"";if(this.selectedMap[n]=t?t.isSelected(n):!0,!this.selectedMap[n])continue;this.buildMark(i),this._initSerie(e[i])}},_initSerie:function(e){var t=e.itemStyle.normal.textStyle,i=[this.parsePercent(e.size[0],this.zr.getWidth())||200,this.parsePercent(e.size[1],this.zr.getHeight())||200],n=this.parseCenter(this.zr,e.center),o={size:i,wordletype:{autoSizeCal:e.autoSize},center:n,rotate:e.textRotation,padding:e.textPadding,font:t.fontFamily,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,text:function(e){return e.name},data:e.data},r=new a(o),s=this;r.end(function(e){s._buildShapes(e)}),r.start()},_buildShapes:function(e){for(var t=e.length,i=0;t>i;i++)this._buildTextShape(e[i],0,i);this.addShapeList()},_buildTextShape:function(e,t,i){var a=this.series,o=a[t],s=o.name||"",h=o.data[i],m=[h,o],V=this.component.legend,U=V?V.getColor(s):this.zr.getColor(t),d=this.deepMerge(m,"itemStyle.normal")||{},p=this.deepMerge(m,"itemStyle.emphasis")||{},c=this.getItemStyleColor(d.color,t,i,h)||U,u=this.getItemStyleColor(p.color,t,i,h)||("string"==typeof c?l.lift(c,-.2):c),y=new n({zlevel:o.zlevel,z:o.z,hoverable:!0,clickable:this.deepQuery(m,"clickable"),style:{x:0,y:0,text:e.text,color:c,textFont:[e.style,e.weight,e.size+"px",e.font].join(" "),textBaseline:"alphabetic",textAlign:"center"},highlightStyle:{brushType:p.borderWidth?"both":"fill",color:u,lineWidth:p.borderWidth||0,strokeColor:p.borderColor},position:[e.x,e.y],rotation:[-e.rotate/180*Math.PI,0,0]});r.pack(y,o,t,h,i,h.name),this.shapeList.push(y)}},s.inherits(t,i),e("../chart").define("wordCloud",t),t}),i("echarts/layout/WordCloud",["require","../layout/WordCloudRectZero","zrender/tool/util"],function(e){function t(e){this._init(e)}var i=e("../layout/WordCloudRectZero"),n=e("zrender/tool/util");return t.prototype={start:function(){function e(){p.totalArea=r,U.autoSizeCal.enable&&p._autoCalTextSize(m,r,a,o,U.autoSizeCal.minSize),V.timer&&clearInterval(V.timer),V.timer=setInterval(t,0),t()}function t(){for(var e,t=+new Date,i=m.length;+new Date-t<V.timeInterval&&++s<i&&V.timer;)e=m[s],e.x=d[0]>>1,e.y=d[1]>>1,p._cloudSprite(e,m,s),e.hasText&&p._place(n,e,h)&&(l.push(e),e.x-=d[0]>>1,e.y-=d[1]>>1);s>=i&&(p.stop(),p._fixTagPosition(l),V.endcallback(l))}var n=null,a=0,o=0,r=0,s=-1,l=[],h=null,m=this.wordsdata,V=this.defaultOption,U=V.wordletype,d=V.size,p=this,c=new i({type:U.type,width:d[0],height:d[1]});return c.calculate(function(t){n=t.initarr,a=t.maxWit,o=t.maxHit,r=t.area,h=t.imgboard,e()},this),this},_fixTagPosition:function(e){for(var t=this.defaultOption.center,i=0,n=e.length;n>i;i++)e[i].x+=t[0],e[i].y+=t[1]},stop:function(){return this.defaultOption.timer&&(clearInterval(this.defaultOption.timer),this.defaultOption.timer=null),this},end:function(e){return e&&(this.defaultOption.endcallback=e),this},_init:function(e){this.defaultOption={},this._initProperty(e),this._initMethod(e),this._initCanvas(),this._initData(e.data)},_initData:function(e){var t=this,i=t.defaultOption;this.wordsdata=e.map(function(e,n){return e.text=i.text.call(t,e,n),e.font=i.font.call(t,e,n),e.style=i.fontStyle.call(t,e,n),e.weight=i.fontWeight.call(t,e,n),e.rotate=i.rotate.call(t,e,n),e.size=~~i.fontSize.call(t,e,n),e.padding=i.padding.call(t,e,n),e}).sort(function(e,t){return t.value-e.value})},_initMethod:function(e){function t(e){return e.name}function i(){return"sans-serif"}function n(){return"normal"}function a(e){return e.value}function o(){return 0}function r(e){return function(){return e[Math.round(Math.random()*(e.length-1))]}}function s(){return 0}function l(e){var t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function h(e){var t=4,i=t*e[0]/e[1],n=0,a=0;return function(e){var o=0>e?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:n+=i;break;case 1:a+=t;break;case 2:n-=i;break;default:a-=t}return[n,a]}}function m(e){return"function"==typeof e?e:function(){return e}}var V=this.defaultOption;V.text=e.text?m(e.text):t,V.font=e.font?m(e.font):i,V.fontSize=e.fontSize?m(e.fontSize):a,V.fontStyle=e.fontStyle?m(e.fontStyle):n,V.fontWeight=e.fontWeight?m(e.fontWeight):n,V.rotate=e.rotate?r(e.rotate):o,V.padding=e.padding?m(e.padding):s,V.center=e.center,V.spiral=l,V.endcallback=function(){},V.rectangularSpiral=h,V.archimedeanSpiral=l},_initProperty:function(e){var t=this.defaultOption;t.size=e.size||[256,256],t.wordletype=e.wordletype,t.words=e.words||[],t.timeInterval=1/0,t.timer=null,t.spirals={archimedean:t.archimedeanSpiral,rectangular:t.rectangularSpiral},n.merge(t,{size:[256,256],wordletype:{type:"RECT",areaPresent:.058,autoSizeCal:{enable:!0,minSize:12}}})},_initCanvas:function(){var e,t=Math.PI/180,i=64,n=2048,a=1;"undefined"!=typeof document?(e=document.createElement("canvas"),e.width=1,e.height=1,a=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2),e.width=(i<<5)/a,e.height=n/a):e=new Canvas(i<<5,n);var o=e.getContext("2d");o.fillStyle=o.strokeStyle="red",o.textAlign="center",this.defaultOption.c=o,this.defaultOption.cw=i,this.defaultOption.ch=n,this.defaultOption.ratio=a,this.defaultOption.cloudRadians=t},_cloudSprite:function(e,t,i){if(!e.sprite){var n=this.defaultOption.cw,a=this.defaultOption.ch,o=this.defaultOption.c,r=this.defaultOption.ratio,s=this.defaultOption.cloudRadians;o.clearRect(0,0,(n<<5)/r,a/r);var l=0,h=0,m=0,V=t.length;for(--i;++i<V;){e=t[i],o.save(),o.font=e.style+" "+e.weight+" "+~~((e.size+1)/r)+"px "+e.font;var U=o.measureText(e.text+"m").width*r,d=e.size<<1;if(e.rotate){var p=Math.sin(e.rotate*s),c=Math.cos(e.rotate*s),u=U*c,y=U*p,g=d*c,b=d*p;U=Math.max(Math.abs(u+b),Math.abs(u-b))+31>>5<<5,d=~~Math.max(Math.abs(y+g),Math.abs(y-g))}else U=U+31>>5<<5;if(d>m&&(m=d),l+U>=n<<5&&(l=0,h+=m,m=0),h+d>=a)break;o.translate((l+(U>>1))/r,(h+(d>>1))/r),e.rotate&&o.rotate(e.rotate*s),o.fillText(e.text,0,0),e.padding&&(o.lineWidth=2*e.padding,o.strokeText(e.text,0,0)),o.restore(),e.width=U,e.height=d,e.xoff=l,e.yoff=h,e.x1=U>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=U}for(var f=o.getImageData(0,0,(n<<5)/r,a/r).data,k=[];--i>=0;)if(e=t[i],e.hasText){for(var U=e.width,x=U>>5,d=e.y1-e.y0,_=0;d*x>_;_++)k[_]=0;if(l=e.xoff,null==l)return;h=e.yoff;for(var L=0,W=-1,X=0;d>X;X++){for(var _=0;U>_;_++){var v=x*X+(_>>5),w=f[(h+X)*(n<<5)+(l+_)<<2]?1<<31-_%32:0;k[v]|=w,L|=w}L?W=X:(e.y0++,d--,X--,h++)}e.y1=e.y0+W,e.sprite=k.slice(0,(e.y1-e.y0)*x)}}},_place:function(e,t,i){function n(e,t,i){i>>=5;for(var n,a=e.sprite,o=e.width>>5,r=e.x-(o<<4),s=127&r,l=32-s,h=e.y1-e.y0,m=(e.y+e.y0)*i+(r>>5),V=0;h>V;V++){n=0;for(var U=0;o>=U;U++)if((n<<l|(o>U?(n=a[V*o+U])>>>s:0))&t[m+U])return!0;m+=i}return!1}function a(e,t){return t.row[e.y]&&t.cloumn[e.x]&&e.x>=t.row[e.y].start&&e.x<=t.row[e.y].end&&e.y>=t.cloumn[e.x].start&&e.y<=t.cloumn[e.x].end}for(var o,r,s,l=this.defaultOption.size,h=([{x:0,y:0},{x:l[0],y:l[1]}],t.x),m=t.y,V=Math.sqrt(l[0]*l[0]+l[1]*l[1]),U=this.defaultOption.spiral(l),d=Math.random()<.5?1:-1,p=-d;(o=U(p+=d))&&(r=~~o[0],s=~~o[1],!(Math.min(r,s)>V));)if(t.x=h+r,t.y=m+s,!(t.x+t.x0<0||t.y+t.y0<0||t.x+t.x1>l[0]||t.y+t.y1>l[1])&&!n(t,e,l[0])&&a(t,i)){for(var c,u=t.sprite,y=t.width>>5,g=l[0]>>5,b=t.x-(y<<4),f=127&b,k=32-f,x=t.y1-t.y0,_=(t.y+t.y0)*g+(b>>5),L=0;x>L;L++){c=0;for(var W=0;y>=W;W++)e[_+W]|=c<<k|(y>W?(c=u[L*y+W])>>>f:0);_+=g}return delete t.sprite,!0}return!1},_autoCalTextSize:function(e,t,i,n,a){function o(e){c.clearRect(0,0,(d<<5)/u,p/u),c.save(),c.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var t=c.measureText(e.text+"m").width*u,r=e.size<<1;t=t+31>>5<<5,c.restore(),e.aw=t,e.ah=r;var s,l,h;if(e.rotate){var m=Math.sin(e.rotate*y),V=Math.cos(e.rotate*y),g=t*V,b=t*m,f=r*V,k=r*m;l=Math.max(Math.abs(g+k),Math.abs(g-k))+31>>5<<5,h=~~Math.max(Math.abs(b+f),Math.abs(b-f))}return e.size<=U||e.rotate&&t*r<=e.area&&i>=l&&n>=h||t*r<=e.area&&i>=t&&n>=r?void(e.area=t*r):(s=e.rotate&&l>i&&h>n?Math.min(i/l,n/h):t>i||r>n?Math.min(i/t,n/r):Math.sqrt(e.area/(e.aw*e.ah)),e.size=~~(s*e.size),e.size<a?void(e.size=a):o(e))}function r(e,t){for(var i=e.length,n=0;i--;)n+=t(e[i]);return n}for(var s,l,h=r(e,function(e){return e.size}),m=e.length,V=.25,U=a,d=this.defaultOption.cw,p=this.defaultOption.ch,c=this.defaultOption.c,u=this.defaultOption.ratio,y=this.defaultOption.cloudRadians;m--;)s=e[m],l=s.size/h,s.areapre=V?V>l?l:V:l,s.area=t*s.areapre,s.totalarea=t,o(s)}},t}),i("echarts/layout/WordCloudRectZero",["require"],function(){function e(e){this.defaultOption={type:"RECT"},this._init(e)}return e.prototype={RECT:"_calculateRect",_init:function(e){this._initOption(e),this._initCanvas()},_initOption:function(e){for(k in e)this.defaultOption[k]=e[k]},_initCanvas:function(){var e=document.createElement("canvas");e.width=1,e.height=1;var t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);if(e.width=this.defaultOption.width,e.height=this.defaultOption.height,e.getContext)var i=e.getContext("2d");this.canvas=e,this.ctx=i,this.ratio=t},calculate:function(e,t){var i=this.defaultOption.type,n=this[i];this[n].call(this,e,t)},_calculateReturn:function(e,t,i){t.call(i,e)},_calculateRect:function(e,t){var i={},n=this.defaultOption.width>>5<<5,a=this.defaultOption.height;i.initarr=this._rectZeroArray(n*a),i.area=n*a,i.maxHit=a,i.maxWit=n,i.imgboard=this._rectBoard(n,a),this._calculateReturn(i,e,t)},_rectBoard:function(e,t){for(var i=[],n=0;t>n;n++)i.push({y:n,start:0,end:e});for(var a=[],n=0;e>n;n++)a.push({x:n,start:0,end:t});return{row:i,cloumn:a}},_rectZeroArray:function(e){for(var t=[],i=e,n=-1;++n<i;)t[n]=0;return t}},e}),i("echarts/chart/heatmap",["require","./base","../layer/heatmap","../config","../util/ecData","zrender/tool/util","zrender/tool/color","zrender/shape/Image","../chart"],function(e){function t(e,t,n,a,o){i.call(this,e,t,n,a,o),this.refresh(a)}var i=e("./base"),n=e("../layer/heatmap"),a=e("../config"),o=(e("../util/ecData"),e("zrender/tool/util")),r=(e("zrender/tool/color"),e("zrender/shape/Image"));return a.heatmap={zlevel:0,z:2,clickable:!0},t.prototype={type:a.CHART_TYPE_HEATMAP,refresh:function(e){this.clear(),e&&(this.option=e,this.series=e.series),this._init()},_init:function(){var e=this.series;this.backupShapeList();for(var t=e.length,i=0;t>i;++i)if(e[i].type===a.CHART_TYPE_HEATMAP){e[i]=this.reformOption(e[i]);var o=new n(e[i]),s=o.getCanvas(e[i].data,this.zr.getWidth(),this.zr.getHeight()),l=new r({position:[0,0],scale:[1,1],hoverable:this.option.hoverable,style:{x:0,y:0,image:s,width:s.width,height:s.height}});this.shapeList.push(l)}this.addShapeList()}},o.inherits(t,i),e("../chart").define("heatmap",t),t});var n=t("zrender");n.tool={color:t("zrender/tool/color"),math:t("zrender/tool/math"),util:t("zrender/tool/util"),vector:t("zrender/tool/vector"),area:t("zrender/tool/area"),event:t("zrender/tool/event")},n.animation={Animation:t("zrender/animation/Animation"),Cip:t("zrender/animation/Clip"),easing:t("zrender/animation/easing")};var a=t("echarts");a.config=t("echarts/config"),a.util={mapData:{params:t("echarts/util/mapData/params")}},t("echarts/chart/line"),t("echarts/chart/bar"),t("echarts/chart/scatter"),t("echarts/chart/k"),t("echarts/chart/pie"),t("echarts/chart/radar"),t("echarts/chart/chord"),t("echarts/chart/force"),t("echarts/chart/map"),t("echarts/chart/gauge"),t("echarts/chart/funnel"),t("echarts/chart/eventRiver"),t("echarts/chart/venn"),t("echarts/chart/treemap"),t("echarts/chart/tree"),t("echarts/chart/wordCloud"),t("echarts/chart/heatmap"),e.echarts=a,e.zrender=n}(window); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/echarts/echarts.js b/common/src/main/webapp/thirdparty/echarts/echarts.js
deleted file mode 100644
index f058414..0000000
--- a/common/src/main/webapp/thirdparty/echarts/echarts.js
+++ /dev/null
@@ -1,54502 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
- if(typeof exports === 'object' && typeof module === 'object')
- module.exports = factory();
- else if(typeof define === 'function' && define.amd)
- define([], factory);
- else if(typeof exports === 'object')
- exports["echarts"] = factory();
- else
- root["echarts"] = factory();
-})(this, function() {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ // The module cache
-/******/ var installedModules = {};
-
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-
-/******/ // Check if module is in cache
-/******/ if(installedModules[moduleId])
-/******/ return installedModules[moduleId].exports;
-
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = installedModules[moduleId] = {
-/******/ exports: {},
-/******/ id: moduleId,
-/******/ loaded: false
-/******/ };
-
-/******/ // Execute the module function
-/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-
-/******/ // Flag the module as loaded
-/******/ module.loaded = true;
-
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-
-
-/******/ // expose the modules object (__webpack_modules__)
-/******/ __webpack_require__.m = modules;
-
-/******/ // expose the module cache
-/******/ __webpack_require__.c = installedModules;
-
-/******/ // __webpack_public_path__
-/******/ __webpack_require__.p = "";
-
-/******/ // Load entry module and return exports
-/******/ return __webpack_require__(0);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Export echarts as CommonJS module
- */
- module.exports = __webpack_require__(1);
-
- // Import all charts and components
- __webpack_require__(91);
- __webpack_require__(127);
- __webpack_require__(132);
- __webpack_require__(141);
- __webpack_require__(145);
-
- __webpack_require__(155);
- __webpack_require__(177);
- __webpack_require__(189);
- __webpack_require__(207);
- __webpack_require__(211);
- __webpack_require__(215);
- __webpack_require__(230);
- __webpack_require__(236);
- __webpack_require__(243);
- __webpack_require__(249);
- __webpack_require__(253);
- __webpack_require__(258);
-
- __webpack_require__(106);
- __webpack_require__(262);
- __webpack_require__(268);
- __webpack_require__(272);
- __webpack_require__(283);
- __webpack_require__(216);
-
- __webpack_require__(285);
-
- __webpack_require__(286);
- __webpack_require__(300);
-
- __webpack_require__(315);
- __webpack_require__(319);
-
- __webpack_require__(322);
- __webpack_require__(331);
-
- __webpack_require__(345);
-
-
-/***/ },
-/* 1 */
-/***/ function(module, exports, __webpack_require__) {
-
- /*!
- * ECharts, a javascript interactive chart library.
- *
- * Copyright (c) 2015, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
- */
-
- /**
- * @module echarts
- */
-
-
- var GlobalModel = __webpack_require__(2);
- var ExtensionAPI = __webpack_require__(24);
- var CoordinateSystemManager = __webpack_require__(25);
- var OptionManager = __webpack_require__(26);
-
- var ComponentModel = __webpack_require__(19);
- var SeriesModel = __webpack_require__(27);
-
- var ComponentView = __webpack_require__(28);
- var ChartView = __webpack_require__(41);
- var graphic = __webpack_require__(42);
-
- var zrender = __webpack_require__(77);
- var zrUtil = __webpack_require__(3);
- var colorTool = __webpack_require__(38);
- var env = __webpack_require__(78);
- var Eventful = __webpack_require__(32);
-
- var each = zrUtil.each;
-
- var VISUAL_CODING_STAGES = ['echarts', 'chart', 'component'];
-
- // TODO Transform first or filter first
- var PROCESSOR_STAGES = ['transform', 'filter', 'statistic'];
-
- function createRegisterEventWithLowercaseName(method) {
- return function (eventName, handler, context) {
- // Event name is all lowercase
- eventName = eventName && eventName.toLowerCase();
- Eventful.prototype[method].call(this, eventName, handler, context);
- };
- }
- /**
- * @module echarts~MessageCenter
- */
- function MessageCenter() {
- Eventful.call(this);
- }
- MessageCenter.prototype.on = createRegisterEventWithLowercaseName('on');
- MessageCenter.prototype.off = createRegisterEventWithLowercaseName('off');
- MessageCenter.prototype.one = createRegisterEventWithLowercaseName('one');
- zrUtil.mixin(MessageCenter, Eventful);
- /**
- * @module echarts~ECharts
- */
- function ECharts (dom, theme, opts) {
- opts = opts || {};
-
- // Get theme by name
- if (typeof theme === 'string') {
- theme = themeStorage[theme];
- }
-
- if (theme) {
- each(optionPreprocessorFuncs, function (preProcess) {
- preProcess(theme);
- });
- }
- /**
- * @type {string}
- */
- this.id;
- /**
- * Group id
- * @type {string}
- */
- this.group;
- /**
- * @type {HTMLDomElement}
- * @private
- */
- this._dom = dom;
- /**
- * @type {module:zrender/ZRender}
- * @private
- */
- this._zr = zrender.init(dom, {
- renderer: opts.renderer || 'canvas',
- devicePixelRatio: opts.devicePixelRatio
- });
-
- /**
- * @type {Object}
- * @private
- */
- this._theme = zrUtil.clone(theme);
-
- /**
- * @type {Array.<module:echarts/view/Chart>}
- * @private
- */
- this._chartsViews = [];
-
- /**
- * @type {Object.<string, module:echarts/view/Chart>}
- * @private
- */
- this._chartsMap = {};
-
- /**
- * @type {Array.<module:echarts/view/Component>}
- * @private
- */
- this._componentsViews = [];
-
- /**
- * @type {Object.<string, module:echarts/view/Component>}
- * @private
- */
- this._componentsMap = {};
-
- /**
- * @type {module:echarts/ExtensionAPI}
- * @private
- */
- this._api = new ExtensionAPI(this);
-
- /**
- * @type {module:echarts/CoordinateSystem}
- * @private
- */
- this._coordSysMgr = new CoordinateSystemManager();
-
- Eventful.call(this);
-
- /**
- * @type {module:echarts~MessageCenter}
- * @private
- */
- this._messageCenter = new MessageCenter();
-
- // Init mouse events
- this._initEvents();
-
- // In case some people write `window.onresize = chart.resize`
- this.resize = zrUtil.bind(this.resize, this);
- }
-
- var echartsProto = ECharts.prototype;
-
- /**
- * @return {HTMLDomElement}
- */
- echartsProto.getDom = function () {
- return this._dom;
- };
-
- /**
- * @return {module:zrender~ZRender}
- */
- echartsProto.getZr = function () {
- return this._zr;
- };
-
- /**
- * @param {Object} option
- * @param {boolean} notMerge
- * @param {boolean} [notRefreshImmediately=false] Useful when setOption frequently.
- */
- echartsProto.setOption = function (option, notMerge, notRefreshImmediately) {
- if (!this._model || notMerge) {
- this._model = new GlobalModel(
- null, null, this._theme, new OptionManager(this._api)
- );
- }
-
- this._model.setOption(option, optionPreprocessorFuncs);
-
- updateMethods.prepareAndUpdate.call(this);
-
- !notRefreshImmediately && this._zr.refreshImmediately();
- };
-
- /**
- * @DEPRECATED
- */
- echartsProto.setTheme = function () {
- console.log('ECharts#setTheme() is DEPRECATED in ECharts 3.0');
- };
-
- /**
- * @return {module:echarts/model/Global}
- */
- echartsProto.getModel = function () {
- return this._model;
- };
-
- /**
- * @return {Object}
- */
- echartsProto.getOption = function () {
- return this._model.getOption();
- };
-
- /**
- * @return {number}
- */
- echartsProto.getWidth = function () {
- return this._zr.getWidth();
- };
-
- /**
- * @return {number}
- */
- echartsProto.getHeight = function () {
- return this._zr.getHeight();
- };
-
- /**
- * Get canvas which has all thing rendered
- * @param {Object} opts
- * @param {string} [opts.backgroundColor]
- */
- echartsProto.getRenderedCanvas = function (opts) {
- if (!env.canvasSupported) {
- return;
- }
- opts = opts || {};
- opts.pixelRatio = opts.pixelRatio || 1;
- opts.backgroundColor = opts.backgroundColor
- || this._model.get('backgroundColor');
- var zr = this._zr;
- var list = zr.storage.getDisplayList();
- // Stop animations
- zrUtil.each(list, function (el) {
- el.stopAnimation(true);
- });
- return zr.painter.getRenderedCanvas(opts);
- };
- /**
- * @return {string}
- * @param {Object} opts
- * @param {string} [opts.type='png']
- * @param {string} [opts.pixelRatio=1]
- * @param {string} [opts.backgroundColor]
- */
- echartsProto.getDataURL = function (opts) {
- opts = opts || {};
- var excludeComponents = opts.excludeComponents;
- var ecModel = this._model;
- var excludesComponentViews = [];
- var self = this;
-
- each(excludeComponents, function (componentType) {
- ecModel.eachComponent({
- mainType: componentType
- }, function (component) {
- var view = self._componentsMap[component.__viewId];
- if (!view.group.ignore) {
- excludesComponentViews.push(view);
- view.group.ignore = true;
- }
- });
- });
-
- var url = this.getRenderedCanvas(opts).toDataURL(
- 'image/' + (opts && opts.type || 'png')
- );
-
- each(excludesComponentViews, function (view) {
- view.group.ignore = false;
- });
- return url;
- };
-
-
- /**
- * @return {string}
- * @param {Object} opts
- * @param {string} [opts.type='png']
- * @param {string} [opts.pixelRatio=1]
- * @param {string} [opts.backgroundColor]
- */
- echartsProto.getConnectedDataURL = function (opts) {
- if (!env.canvasSupported) {
- return;
- }
- var groupId = this.group;
- var mathMin = Math.min;
- var mathMax = Math.max;
- var MAX_NUMBER = Infinity;
- if (connectedGroups[groupId]) {
- var left = MAX_NUMBER;
- var top = MAX_NUMBER;
- var right = -MAX_NUMBER;
- var bottom = -MAX_NUMBER;
- var canvasList = [];
- var dpr = (opts && opts.pixelRatio) || 1;
- for (var id in instances) {
- var chart = instances[id];
- if (chart.group === groupId) {
- var canvas = chart.getRenderedCanvas(
- zrUtil.clone(opts)
- );
- var boundingRect = chart.getDom().getBoundingClientRect();
- left = mathMin(boundingRect.left, left);
- top = mathMin(boundingRect.top, top);
- right = mathMax(boundingRect.right, right);
- bottom = mathMax(boundingRect.bottom, bottom);
- canvasList.push({
- dom: canvas,
- left: boundingRect.left,
- top: boundingRect.top
- });
- }
- }
-
- left *= dpr;
- top *= dpr;
- right *= dpr;
- bottom *= dpr;
- var width = right - left;
- var height = bottom - top;
- var targetCanvas = zrUtil.createCanvas();
- targetCanvas.width = width;
- targetCanvas.height = height;
- var zr = zrender.init(targetCanvas);
-
- each(canvasList, function (item) {
- var img = new graphic.Image({
- style: {
- x: item.left * dpr - left,
- y: item.top * dpr - top,
- image: item.dom
- }
- });
- zr.add(img);
- });
- zr.refreshImmediately();
-
- return targetCanvas.toDataURL('image/' + (opts && opts.type || 'png'));
- }
- else {
- return this.getDataURL(opts);
- }
- };
-
- var updateMethods = {
-
- /**
- * @param {Object} payload
- * @private
- */
- update: function (payload) {
- // console.time && console.time('update');
-
- var ecModel = this._model;
- var api = this._api;
- var coordSysMgr = this._coordSysMgr;
- // update before setOption
- if (!ecModel) {
- return;
- }
-
- ecModel.restoreData();
-
- // TODO
- // Save total ecModel here for undo/redo (after restoring data and before processing data).
- // Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
-
- // Create new coordinate system each update
- // In LineView may save the old coordinate system and use it to get the orignal point
- coordSysMgr.create(this._model, this._api);
-
- processData.call(this, ecModel, api);
-
- stackSeriesData.call(this, ecModel);
-
- coordSysMgr.update(ecModel, api);
-
- doLayout.call(this, ecModel, payload);
-
- doVisualCoding.call(this, ecModel, payload);
-
- doRender.call(this, ecModel, payload);
-
- // Set background
- var backgroundColor = ecModel.get('backgroundColor') || 'transparent';
-
- var painter = this._zr.painter;
- // TODO all use clearColor ?
- if (painter.isSingleCanvas && painter.isSingleCanvas()) {
- this._zr.configLayer(0, {
- clearColor: backgroundColor
- });
- }
- else {
- // In IE8
- if (!env.canvasSupported) {
- var colorArr = colorTool.parse(backgroundColor);
- backgroundColor = colorTool.stringify(colorArr, 'rgb');
- if (colorArr[3] === 0) {
- backgroundColor = 'transparent';
- }
- }
- backgroundColor = backgroundColor;
- this._dom.style.backgroundColor = backgroundColor;
- }
-
- // console.time && console.timeEnd('update');
- },
-
- // PENDING
- /**
- * @param {Object} payload
- * @private
- */
- updateView: function (payload) {
- var ecModel = this._model;
-
- // update before setOption
- if (!ecModel) {
- return;
- }
-
- doLayout.call(this, ecModel, payload);
-
- doVisualCoding.call(this, ecModel, payload);
-
- invokeUpdateMethod.call(this, 'updateView', ecModel, payload);
- },
-
- /**
- * @param {Object} payload
- * @private
- */
- updateVisual: function (payload) {
- var ecModel = this._model;
-
- // update before setOption
- if (!ecModel) {
- return;
- }
-
- doVisualCoding.call(this, ecModel, payload);
-
- invokeUpdateMethod.call(this, 'updateVisual', ecModel, payload);
- },
-
- /**
- * @param {Object} payload
- * @private
- */
- updateLayout: function (payload) {
- var ecModel = this._model;
-
- // update before setOption
- if (!ecModel) {
- return;
- }
-
- doLayout.call(this, ecModel, payload);
-
- invokeUpdateMethod.call(this, 'updateLayout', ecModel, payload);
- },
-
- /**
- * @param {Object} payload
- * @private
- */
- highlight: function (payload) {
- toggleHighlight.call(this, 'highlight', payload);
- },
-
- /**
- * @param {Object} payload
- * @private
- */
- downplay: function (payload) {
- toggleHighlight.call(this, 'downplay', payload);
- },
-
- /**
- * @param {Object} payload
- * @private
- */
- prepareAndUpdate: function (payload) {
- var ecModel = this._model;
-
- prepareView.call(this, 'component', ecModel);
-
- prepareView.call(this, 'chart', ecModel);
-
- updateMethods.update.call(this, payload);
- }
- };
-
- /**
- * @param {Object} payload
- * @private
- */
- function toggleHighlight(method, payload) {
- var ecModel = this._model;
-
- // dispatchAction before setOption
- if (!ecModel) {
- return;
- }
-
- ecModel.eachComponent(
- {mainType: 'series', query: payload},
- function (seriesModel, index) {
- var chartView = this._chartsMap[seriesModel.__viewId];
- if (chartView && chartView.__alive) {
- chartView[method](
- seriesModel, ecModel, this._api, payload
- );
- }
- },
- this
- );
- }
-
- /**
- * Resize the chart
- */
- echartsProto.resize = function () {
- this._zr.resize();
-
- var optionChanged = this._model && this._model.resetOption('media');
- updateMethods[optionChanged ? 'prepareAndUpdate' : 'update'].call(this);
-
- // Resize loading effect
- this._loadingFX && this._loadingFX.resize();
- };
-
- var defaultLoadingEffect = __webpack_require__(87);
- /**
- * Show loading effect
- * @param {string} [name='default']
- * @param {Object} [cfg]
- */
- echartsProto.showLoading = function (name, cfg) {
- if (zrUtil.isObject(name)) {
- cfg = name;
- name = 'default';
- }
- this.hideLoading();
- var el = defaultLoadingEffect(this._api, cfg);
- var zr = this._zr;
- this._loadingFX = el;
-
- zr.add(el);
- };
-
- /**
- * Hide loading effect
- */
- echartsProto.hideLoading = function () {
- this._loadingFX && this._zr.remove(this._loadingFX);
- this._loadingFX = null;
- };
-
- /**
- * @param {Object} eventObj
- * @return {Object}
- */
- echartsProto.makeActionFromEvent = function (eventObj) {
- var payload = zrUtil.extend({}, eventObj);
- payload.type = eventActionMap[eventObj.type];
- return payload;
- };
-
- /**
- * @pubilc
- * @param {Object} payload
- * @param {string} [payload.type] Action type
- * @param {boolean} [silent=false] Whether trigger event.
- */
- echartsProto.dispatchAction = function (payload, silent) {
- var actionWrap = actions[payload.type];
- if (actionWrap) {
- var actionInfo = actionWrap.actionInfo;
- var updateMethod = actionInfo.update || 'update';
-
- var payloads = [payload];
- var batched = false;
- // Batch action
- if (payload.batch) {
- batched = true;
- payloads = zrUtil.map(payload.batch, function (item) {
- item = zrUtil.defaults(zrUtil.extend({}, item), payload);
- item.batch = null;
- return item;
- });
- }
-
- var eventObjBatch = [];
- var eventObj;
- var isHighlightOrDownplay = payload.type === 'highlight' || payload.type === 'downplay';
- for (var i = 0; i < payloads.length; i++) {
- var batchItem = payloads[i];
- // Action can specify the event by return it.
- eventObj = actionWrap.action(batchItem, this._model);
- // Emit event outside
- eventObj = eventObj || zrUtil.extend({}, batchItem);
- // Convert type to eventType
- eventObj.type = actionInfo.event || eventObj.type;
- eventObjBatch.push(eventObj);
-
- // Highlight and downplay are special.
- isHighlightOrDownplay && updateMethods[updateMethod].call(this, batchItem);
- }
-
- (updateMethod !== 'none' && !isHighlightOrDownplay)
- && updateMethods[updateMethod].call(this, payload);
-
- if (!silent) {
- // Follow the rule of action batch
- if (batched) {
- eventObj = {
- type: actionInfo.event || payload.type,
- batch: eventObjBatch
- };
- }
- else {
- eventObj = eventObjBatch[0];
- }
- this._messageCenter.trigger(eventObj.type, eventObj);
- }
- }
- };
-
- /**
- * Register event
- * @method
- */
- echartsProto.on = createRegisterEventWithLowercaseName('on');
- echartsProto.off = createRegisterEventWithLowercaseName('off');
- echartsProto.one = createRegisterEventWithLowercaseName('one');
-
- /**
- * @param {string} methodName
- * @private
- */
- function invokeUpdateMethod(methodName, ecModel, payload) {
- var api = this._api;
-
- // Update all components
- each(this._componentsViews, function (component) {
- var componentModel = component.__model;
- component[methodName](componentModel, ecModel, api, payload);
-
- updateZ(componentModel, component);
- }, this);
-
- // Upate all charts
- ecModel.eachSeries(function (seriesModel, idx) {
- var chart = this._chartsMap[seriesModel.__viewId];
- chart[methodName](seriesModel, ecModel, api, payload);
-
- updateZ(seriesModel, chart);
- }, this);
-
- }
-
- /**
- * Prepare view instances of charts and components
- * @param {module:echarts/model/Global} ecModel
- * @private
- */
- function prepareView(type, ecModel) {
- var isComponent = type === 'component';
- var viewList = isComponent ? this._componentsViews : this._chartsViews;
- var viewMap = isComponent ? this._componentsMap : this._chartsMap;
- var zr = this._zr;
-
- for (var i = 0; i < viewList.length; i++) {
- viewList[i].__alive = false;
- }
-
- ecModel[isComponent ? 'eachComponent' : 'eachSeries'](function (componentType, model) {
- if (isComponent) {
- if (componentType === 'series') {
- return;
- }
- }
- else {
- model = componentType;
- }
-
- // Consider: id same and type changed.
- var viewId = model.id + '_' + model.type;
- var view = viewMap[viewId];
- if (!view) {
- var classType = ComponentModel.parseClassType(model.type);
- var Clazz = isComponent
- ? ComponentView.getClass(classType.main, classType.sub)
- : ChartView.getClass(classType.sub);
- if (Clazz) {
- view = new Clazz();
- view.init(ecModel, this._api);
- viewMap[viewId] = view;
- viewList.push(view);
- zr.add(view.group);
- }
- else {
- // Error
- return;
- }
- }
-
- model.__viewId = viewId;
- view.__alive = true;
- view.__id = viewId;
- view.__model = model;
- }, this);
-
- for (var i = 0; i < viewList.length;) {
- var view = viewList[i];
- if (!view.__alive) {
- zr.remove(view.group);
- view.dispose(ecModel, this._api);
- viewList.splice(i, 1);
- delete viewMap[view.__id];
- }
- else {
- i++;
- }
- }
- }
-
- /**
- * Processor data in each series
- *
- * @param {module:echarts/model/Global} ecModel
- * @private
- */
- function processData(ecModel, api) {
- each(PROCESSOR_STAGES, function (stage) {
- each(dataProcessorFuncs[stage] || [], function (process) {
- process(ecModel, api);
- });
- });
- }
-
- /**
- * @private
- */
- function stackSeriesData(ecModel) {
- var stackedDataMap = {};
- ecModel.eachSeries(function (series) {
- var stack = series.get('stack');
- var data = series.getData();
- if (stack && data.type === 'list') {
- var previousStack = stackedDataMap[stack];
- if (previousStack) {
- data.stackedOn = previousStack;
- }
- stackedDataMap[stack] = data;
- }
- });
- }
-
- /**
- * Layout before each chart render there series, after visual coding and data processing
- *
- * @param {module:echarts/model/Global} ecModel
- * @private
- */
- function doLayout(ecModel, payload) {
- var api = this._api;
- each(layoutFuncs, function (layout) {
- layout(ecModel, api, payload);
- });
- }
-
- /**
- * Code visual infomation from data after data processing
- *
- * @param {module:echarts/model/Global} ecModel
- * @private
- */
- function doVisualCoding(ecModel, payload) {
- each(VISUAL_CODING_STAGES, function (stage) {
- each(visualCodingFuncs[stage] || [], function (visualCoding) {
- visualCoding(ecModel, payload);
- });
- });
- }
-
- /**
- * Render each chart and component
- * @private
- */
- function doRender(ecModel, payload) {
- var api = this._api;
- // Render all components
- each(this._componentsViews, function (componentView) {
- var componentModel = componentView.__model;
- componentView.render(componentModel, ecModel, api, payload);
-
- updateZ(componentModel, componentView);
- }, this);
-
- each(this._chartsViews, function (chart) {
- chart.__alive = false;
- }, this);
-
- // Render all charts
- ecModel.eachSeries(function (seriesModel, idx) {
- var chartView = this._chartsMap[seriesModel.__viewId];
- chartView.__alive = true;
- chartView.render(seriesModel, ecModel, api, payload);
-
- updateZ(seriesModel, chartView);
- }, this);
-
- // Remove groups of unrendered charts
- each(this._chartsViews, function (chart) {
- if (!chart.__alive) {
- chart.remove(ecModel, api);
- }
- }, this);
- }
-
- var MOUSE_EVENT_NAMES = [
- 'click', 'dblclick', 'mouseover', 'mouseout', 'mousedown', 'mouseup', 'globalout'
- ];
- /**
- * @private
- */
- echartsProto._initEvents = function () {
- var zr = this._zr;
- each(MOUSE_EVENT_NAMES, function (eveName) {
- zr.on(eveName, function (e) {
- var ecModel = this.getModel();
- var el = e.target;
- if (el && el.dataIndex != null) {
- var dataModel = el.dataModel || ecModel.getSeriesByIndex(el.seriesIndex);
- var params = dataModel && dataModel.getDataParams(el.dataIndex) || {};
- params.event = e;
- params.type = eveName;
- this.trigger(eveName, params);
- }
- }, this);
- }, this);
-
- each(eventActionMap, function (actionType, eventType) {
- this._messageCenter.on(eventType, function (event) {
- this.trigger(eventType, event);
- }, this);
- }, this);
- };
-
- /**
- * @return {boolean}
- */
- echartsProto.isDisposed = function () {
- return this._disposed;
- };
-
- /**
- * Clear
- */
- echartsProto.clear = function () {
- this.setOption({}, true);
- };
- /**
- * Dispose instance
- */
- echartsProto.dispose = function () {
- this._disposed = true;
- var api = this._api;
- var ecModel = this._model;
-
- each(this._componentsViews, function (component) {
- component.dispose(ecModel, api);
- });
- each(this._chartsViews, function (chart) {
- chart.dispose(ecModel, api);
- });
-
- this._zr.dispose();
-
- delete instances[this.id];
- };
-
- zrUtil.mixin(ECharts, Eventful);
-
- /**
- * @param {module:echarts/model/Series|module:echarts/model/Component} model
- * @param {module:echarts/view/Component|module:echarts/view/Chart} view
- * @return {string}
- */
- function updateZ(model, view) {
- var z = model.get('z');
- var zlevel = model.get('zlevel');
- // Set z and zlevel
- view.group.traverse(function (el) {
- z != null && (el.z = z);
- zlevel != null && (el.zlevel = zlevel);
- });
- }
- /**
- * @type {Array.<Function>}
- * @inner
- */
- var actions = [];
-
- /**
- * Map eventType to actionType
- * @type {Object}
- */
- var eventActionMap = {};
-
- /**
- * @type {Array.<Function>}
- * @inner
- */
- var layoutFuncs = [];
-
- /**
- * Data processor functions of each stage
- * @type {Array.<Object.<string, Function>>}
- * @inner
- */
- var dataProcessorFuncs = {};
-
- /**
- * @type {Array.<Function>}
- * @inner
- */
- var optionPreprocessorFuncs = [];
-
- /**
- * Visual coding functions of each stage
- * @type {Array.<Object.<string, Function>>}
- * @inner
- */
- var visualCodingFuncs = {};
- /**
- * Theme storage
- * @type {Object.<key, Object>}
- */
- var themeStorage = {};
-
-
- var instances = {};
- var connectedGroups = {};
-
- var idBase = new Date() - 0;
- var groupIdBase = new Date() - 0;
- var DOM_ATTRIBUTE_KEY = '_echarts_instance_';
- /**
- * @alias module:echarts
- */
- var echarts = {
- /**
- * @type {number}
- */
- version: '3.1.5',
- dependencies: {
- zrender: '3.0.6'
- }
- };
-
- function enableConnect(chart) {
-
- var STATUS_PENDING = 0;
- var STATUS_UPDATING = 1;
- var STATUS_UPDATED = 2;
- var STATUS_KEY = '__connectUpdateStatus';
- function updateConnectedChartsStatus(charts, status) {
- for (var i = 0; i < charts.length; i++) {
- var otherChart = charts[i];
- otherChart[STATUS_KEY] = status;
- }
- }
- zrUtil.each(eventActionMap, function (actionType, eventType) {
- chart._messageCenter.on(eventType, function (event) {
- if (connectedGroups[chart.group] && chart[STATUS_KEY] !== STATUS_PENDING) {
- var action = chart.makeActionFromEvent(event);
- var otherCharts = [];
- for (var id in instances) {
- var otherChart = instances[id];
- if (otherChart !== chart && otherChart.group === chart.group) {
- otherCharts.push(otherChart);
- }
- }
- updateConnectedChartsStatus(otherCharts, STATUS_PENDING);
- each(otherCharts, function (otherChart) {
- if (otherChart[STATUS_KEY] !== STATUS_UPDATING) {
- otherChart.dispatchAction(action);
- }
- });
- updateConnectedChartsStatus(otherCharts, STATUS_UPDATED);
- }
- });
- });
-
- }
- /**
- * @param {HTMLDomElement} dom
- * @param {Object} [theme]
- * @param {Object} opts
- */
- echarts.init = function (dom, theme, opts) {
- // Check version
- if ((zrender.version.replace('.', '') - 0) < (echarts.dependencies.zrender.replace('.', '') - 0)) {
- throw new Error(
- 'ZRender ' + zrender.version
- + ' is too old for ECharts ' + echarts.version
- + '. Current version need ZRender '
- + echarts.dependencies.zrender + '+'
- );
- }
- if (!dom) {
- throw new Error('Initialize failed: invalid dom.');
- }
-
- var chart = new ECharts(dom, theme, opts);
- chart.id = 'ec_' + idBase++;
- instances[chart.id] = chart;
-
- dom.setAttribute &&
- dom.setAttribute(DOM_ATTRIBUTE_KEY, chart.id);
-
- enableConnect(chart);
-
- return chart;
- };
-
- /**
- * @return {string|Array.<module:echarts~ECharts>} groupId
- */
- echarts.connect = function (groupId) {
- // Is array of charts
- if (zrUtil.isArray(groupId)) {
- var charts = groupId;
- groupId = null;
- // If any chart has group
- zrUtil.each(charts, function (chart) {
- if (chart.group != null) {
- groupId = chart.group;
- }
- });
- groupId = groupId || ('g_' + groupIdBase++);
- zrUtil.each(charts, function (chart) {
- chart.group = groupId;
- });
- }
- connectedGroups[groupId] = true;
- return groupId;
- };
-
- /**
- * @return {string} groupId
- */
- echarts.disConnect = function (groupId) {
- connectedGroups[groupId] = false;
- };
-
- /**
- * Dispose a chart instance
- * @param {module:echarts~ECharts|HTMLDomElement|string} chart
- */
- echarts.dispose = function (chart) {
- if (zrUtil.isDom(chart)) {
- chart = echarts.getInstanceByDom(chart);
- }
- else if (typeof chart === 'string') {
- chart = instances[chart];
- }
- if ((chart instanceof ECharts) && !chart.isDisposed()) {
- chart.dispose();
- }
- };
-
- /**
- * @param {HTMLDomElement} dom
- * @return {echarts~ECharts}
- */
- echarts.getInstanceByDom = function (dom) {
- var key = dom.getAttribute(DOM_ATTRIBUTE_KEY);
- return instances[key];
- };
- /**
- * @param {string} key
- * @return {echarts~ECharts}
- */
- echarts.getInstanceById = function (key) {
- return instances[key];
- };
-
- /**
- * Register theme
- */
- echarts.registerTheme = function (name, theme) {
- themeStorage[name] = theme;
- };
-
- /**
- * Register option preprocessor
- * @param {Function} preprocessorFunc
- */
- echarts.registerPreprocessor = function (preprocessorFunc) {
- optionPreprocessorFuncs.push(preprocessorFunc);
- };
-
- /**
- * @param {string} stage
- * @param {Function} processorFunc
- */
- echarts.registerProcessor = function (stage, processorFunc) {
- if (zrUtil.indexOf(PROCESSOR_STAGES, stage) < 0) {
- throw new Error('stage should be one of ' + PROCESSOR_STAGES);
- }
- var funcs = dataProcessorFuncs[stage] || (dataProcessorFuncs[stage] = []);
- funcs.push(processorFunc);
- };
-
- /**
- * Usage:
- * registerAction('someAction', 'someEvent', function () { ... });
- * registerAction('someAction', function () { ... });
- * registerAction(
- * {type: 'someAction', event: 'someEvent', update: 'updateView'},
- * function () { ... }
- * );
- *
- * @param {(string|Object)} actionInfo
- * @param {string} actionInfo.type
- * @param {string} [actionInfo.event]
- * @param {string} [actionInfo.update]
- * @param {string} [eventName]
- * @param {Function} action
- */
- echarts.registerAction = function (actionInfo, eventName, action) {
- if (typeof eventName === 'function') {
- action = eventName;
- eventName = '';
- }
- var actionType = zrUtil.isObject(actionInfo)
- ? actionInfo.type
- : ([actionInfo, actionInfo = {
- event: eventName
- }][0]);
-
- // Event name is all lowercase
- actionInfo.event = (actionInfo.event || actionType).toLowerCase();
- eventName = actionInfo.event;
-
- if (!actions[actionType]) {
- actions[actionType] = {action: action, actionInfo: actionInfo};
- }
- eventActionMap[eventName] = actionType;
- };
-
- /**
- * @param {string} type
- * @param {*} CoordinateSystem
- */
- echarts.registerCoordinateSystem = function (type, CoordinateSystem) {
- CoordinateSystemManager.register(type, CoordinateSystem);
- };
-
- /**
- * @param {*} layout
- */
- echarts.registerLayout = function (layout) {
- // PENDING All functions ?
- if (zrUtil.indexOf(layoutFuncs, layout) < 0) {
- layoutFuncs.push(layout);
- }
- };
-
- /**
- * @param {string} stage
- * @param {Function} visualCodingFunc
- */
- echarts.registerVisualCoding = function (stage, visualCodingFunc) {
- if (zrUtil.indexOf(VISUAL_CODING_STAGES, stage) < 0) {
- throw new Error('stage should be one of ' + VISUAL_CODING_STAGES);
- }
- var funcs = visualCodingFuncs[stage] || (visualCodingFuncs[stage] = []);
- funcs.push(visualCodingFunc);
- };
-
- /**
- * @param {Object} opts
- */
- echarts.extendChartView = function (opts) {
- return ChartView.extend(opts);
- };
-
- /**
- * @param {Object} opts
- */
- echarts.extendComponentModel = function (opts) {
- return ComponentModel.extend(opts);
- };
-
- /**
- * @param {Object} opts
- */
- echarts.extendSeriesModel = function (opts) {
- return SeriesModel.extend(opts);
- };
-
- /**
- * @param {Object} opts
- */
- echarts.extendComponentView = function (opts) {
- return ComponentView.extend(opts);
- };
-
- /**
- * ZRender need a canvas context to do measureText.
- * But in node environment canvas may be created by node-canvas.
- * So we need to specify how to create a canvas instead of using document.createElement('canvas')
- *
- * Be careful of using it in the browser.
- *
- * @param {Function} creator
- * @example
- * var Canvas = require('canvas');
- * var echarts = require('echarts');
- * echarts.setCanvasCreator(function () {
- * // Small size is enough.
- * return new Canvas(32, 32);
- * });
- */
- echarts.setCanvasCreator = function (creator) {
- zrUtil.createCanvas = creator;
- };
-
- echarts.registerVisualCoding('echarts', zrUtil.curry(
- __webpack_require__(88), '', 'itemStyle'
- ));
- echarts.registerPreprocessor(__webpack_require__(89));
-
- // Default action
- echarts.registerAction({
- type: 'highlight',
- event: 'highlight',
- update: 'highlight'
- }, zrUtil.noop);
- echarts.registerAction({
- type: 'downplay',
- event: 'downplay',
- update: 'downplay'
- }, zrUtil.noop);
-
-
- // --------
- // Exports
- // --------
-
- echarts.graphic = __webpack_require__(42);
- echarts.number = __webpack_require__(7);
- echarts.format = __webpack_require__(6);
- echarts.matrix = __webpack_require__(17);
- echarts.vector = __webpack_require__(16);
-
- echarts.util = {};
- each([
- 'map', 'each', 'filter', 'indexOf', 'inherits',
- 'reduce', 'filter', 'bind', 'curry', 'isArray',
- 'isString', 'isObject', 'isFunction', 'extend'
- ],
- function (name) {
- echarts.util[name] = zrUtil[name];
- }
- );
-
- module.exports = echarts;
-
-
-/***/ },
-/* 2 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * ECharts global model
- *
- * @module {echarts/model/Global}
- *
- */
-
-
-
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var Model = __webpack_require__(8);
- var each = zrUtil.each;
- var filter = zrUtil.filter;
- var map = zrUtil.map;
- var isArray = zrUtil.isArray;
- var indexOf = zrUtil.indexOf;
- var isObject = zrUtil.isObject;
-
- var ComponentModel = __webpack_require__(19);
-
- var globalDefault = __webpack_require__(23);
-
- var OPTION_INNER_KEY = '\0_ec_inner';
-
- /**
- * @alias module:echarts/model/Global
- *
- * @param {Object} option
- * @param {module:echarts/model/Model} parentModel
- * @param {Object} theme
- */
- var GlobalModel = Model.extend({
-
- constructor: GlobalModel,
-
- init: function (option, parentModel, theme, optionManager) {
- theme = theme || {};
-
- this.option = null; // Mark as not initialized.
-
- /**
- * @type {module:echarts/model/Model}
- * @private
- */
- this._theme = new Model(theme);
-
- /**
- * @type {module:echarts/model/OptionManager}
- */
- this._optionManager = optionManager;
- },
-
- setOption: function (option, optionPreprocessorFuncs) {
- zrUtil.assert(
- !(OPTION_INNER_KEY in option),
- 'please use chart.getOption()'
- );
-
- this._optionManager.setOption(option, optionPreprocessorFuncs);
-
- this.resetOption();
- },
-
- /**
- * @param {string} type null/undefined: reset all.
- * 'recreate': force recreate all.
- * 'timeline': only reset timeline option
- * 'media': only reset media query option
- * @return {boolean} Whether option changed.
- */
- resetOption: function (type) {
- var optionChanged = false;
- var optionManager = this._optionManager;
-
- if (!type || type === 'recreate') {
- var baseOption = optionManager.mountOption(type === 'recreate');
-
- if (!this.option || type === 'recreate') {
- initBase.call(this, baseOption);
- }
- else {
- this.restoreData();
- this.mergeOption(baseOption);
- }
- optionChanged = true;
- }
-
- if (type === 'timeline' || type === 'media') {
- this.restoreData();
- }
-
- if (!type || type === 'recreate' || type === 'timeline') {
- var timelineOption = optionManager.getTimelineOption(this);
- timelineOption && (this.mergeOption(timelineOption), optionChanged = true);
- }
-
- if (!type || type === 'recreate' || type === 'media') {
- var mediaOptions = optionManager.getMediaOption(this, this._api);
- if (mediaOptions.length) {
- each(mediaOptions, function (mediaOption) {
- this.mergeOption(mediaOption, optionChanged = true);
- }, this);
- }
- }
-
- return optionChanged;
- },
-
- /**
- * @protected
- */
- mergeOption: function (newOption) {
- var option = this.option;
- var componentsMap = this._componentsMap;
- var newCptTypes = [];
-
- // 如果不存在对应的 component model 则直接 merge
- each(newOption, function (componentOption, mainType) {
- if (componentOption == null) {
- return;
- }
-
- if (!ComponentModel.hasClass(mainType)) {
- option[mainType] = option[mainType] == null
- ? zrUtil.clone(componentOption)
- : zrUtil.merge(option[mainType], componentOption, true);
- }
- else {
- newCptTypes.push(mainType);
- }
- });
-
- // FIXME OPTION 同步是否要改回原来的
- ComponentModel.topologicalTravel(
- newCptTypes, ComponentModel.getAllClassMainTypes(), visitComponent, this
- );
-
- function visitComponent(mainType, dependencies) {
- var newCptOptionList = modelUtil.normalizeToArray(newOption[mainType]);
-
- var mapResult = modelUtil.mappingToExists(
- componentsMap[mainType], newCptOptionList
- );
-
- makeKeyInfo(mainType, mapResult);
-
- var dependentModels = getComponentsByTypes(
- componentsMap, dependencies
- );
-
- option[mainType] = [];
- componentsMap[mainType] = [];
-
- each(mapResult, function (resultItem, index) {
- var componentModel = resultItem.exist;
- var newCptOption = resultItem.option;
-
- zrUtil.assert(
- isObject(newCptOption) || componentModel,
- 'Empty component definition'
- );
-
- // Consider where is no new option and should be merged using {},
- // see removeEdgeAndAdd in topologicalTravel and
- // ComponentModel.getAllClassMainTypes.
- if (!newCptOption) {
- componentModel.mergeOption({}, this);
- componentModel.optionUpdated(this);
- }
- else {
- var ComponentModelClass = ComponentModel.getClass(
- mainType, resultItem.keyInfo.subType, true
- );
-
- if (componentModel && componentModel instanceof ComponentModelClass) {
- componentModel.mergeOption(newCptOption, this);
- componentModel.optionUpdated(this);
- }
- else {
- // PENDING Global as parent ?
- componentModel = new ComponentModelClass(
- newCptOption, this, this,
- zrUtil.extend(
- {
- dependentModels: dependentModels,
- componentIndex: index
- },
- resultItem.keyInfo
- )
- );
- // Call optionUpdated after init
- componentModel.optionUpdated(this);
- }
- }
-
- componentsMap[mainType][index] = componentModel;
- option[mainType][index] = componentModel.option;
- }, this);
-
- // Backup series for filtering.
- if (mainType === 'series') {
- this._seriesIndices = createSeriesIndices(componentsMap.series);
- }
- }
- },
-
- /**
- * Get option for output (cloned option and inner info removed)
- * @public
- * @return {Object}
- */
- getOption: function () {
- var option = zrUtil.clone(this.option);
-
- each(option, function (opts, mainType) {
- if (ComponentModel.hasClass(mainType)) {
- var opts = modelUtil.normalizeToArray(opts);
- for (var i = opts.length - 1; i >= 0; i--) {
- // Remove options with inner id.
- if (modelUtil.isIdInner(opts[i])) {
- opts.splice(i, 1);
- }
- }
- option[mainType] = opts;
- }
- });
-
- delete option[OPTION_INNER_KEY];
-
- return option;
- },
-
- /**
- * @return {module:echarts/model/Model}
- */
- getTheme: function () {
- return this._theme;
- },
-
- /**
- * @param {string} mainType
- * @param {number} [idx=0]
- * @return {module:echarts/model/Component}
- */
- getComponent: function (mainType, idx) {
- var list = this._componentsMap[mainType];
- if (list) {
- return list[idx || 0];
- }
- },
-
- /**
- * @param {Object} condition
- * @param {string} condition.mainType
- * @param {string} [condition.subType] If ignore, only query by mainType
- * @param {number} [condition.index] Either input index or id or name.
- * @param {string} [condition.id] Either input index or id or name.
- * @param {string} [condition.name] Either input index or id or name.
- * @return {Array.<module:echarts/model/Component>}
- */
- queryComponents: function (condition) {
- var mainType = condition.mainType;
- if (!mainType) {
- return [];
- }
-
- var index = condition.index;
- var id = condition.id;
- var name = condition.name;
-
- var cpts = this._componentsMap[mainType];
-
- if (!cpts || !cpts.length) {
- return [];
- }
-
- var result;
-
- if (index != null) {
- if (!isArray(index)) {
- index = [index];
- }
- result = filter(map(index, function (idx) {
- return cpts[idx];
- }), function (val) {
- return !!val;
- });
- }
- else if (id != null) {
- var isIdArray = isArray(id);
- result = filter(cpts, function (cpt) {
- return (isIdArray && indexOf(id, cpt.id) >= 0)
- || (!isIdArray && cpt.id === id);
- });
- }
- else if (name != null) {
- var isNameArray = isArray(name);
- result = filter(cpts, function (cpt) {
- return (isNameArray && indexOf(name, cpt.name) >= 0)
- || (!isNameArray && cpt.name === name);
- });
- }
-
- return filterBySubType(result, condition);
- },
-
- /**
- * The interface is different from queryComponents,
- * which is convenient for inner usage.
- *
- * @usage
- * findComponents(
- * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}},
- * function (model, index) {...}
- * );
- *
- * findComponents(
- * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}},
- * function (model, index) {...}
- * );
- *
- * var result = findComponents(
- * {mainType: 'series'},
- * function (model, index) {...}
- * );
- * // result like [component0, componnet1, ...]
- *
- * @param {Object} condition
- * @param {string} condition.mainType Mandatory.
- * @param {string} [condition.subType] Optional.
- * @param {Object} [condition.query] like {xxxIndex, xxxId, xxxName},
- * where xxx is mainType.
- * If query attribute is null/undefined or has no index/id/name,
- * do not filtering by query conditions, which is convenient for
- * no-payload situations or when target of action is global.
- * @param {Function} [condition.filter] parameter: component, return boolean.
- * @return {Array.<module:echarts/model/Component>}
- */
- findComponents: function (condition) {
- var query = condition.query;
- var mainType = condition.mainType;
-
- var queryCond = getQueryCond(query);
- var result = queryCond
- ? this.queryComponents(queryCond)
- : this._componentsMap[mainType];
-
- return doFilter(filterBySubType(result, condition));
-
- function getQueryCond(q) {
- var indexAttr = mainType + 'Index';
- var idAttr = mainType + 'Id';
- var nameAttr = mainType + 'Name';
- return q && (
- q.hasOwnProperty(indexAttr)
- || q.hasOwnProperty(idAttr)
- || q.hasOwnProperty(nameAttr)
- )
- ? {
- mainType: mainType,
- // subType will be filtered finally.
- index: q[indexAttr],
- id: q[idAttr],
- name: q[nameAttr]
- }
- : null;
- }
-
- function doFilter(res) {
- return condition.filter
- ? filter(res, condition.filter)
- : res;
- }
- },
-
- /**
- * @usage
- * eachComponent('legend', function (legendModel, index) {
- * ...
- * });
- * eachComponent(function (componentType, model, index) {
- * // componentType does not include subType
- * // (componentType is 'xxx' but not 'xxx.aa')
- * });
- * eachComponent(
- * {mainType: 'dataZoom', query: {dataZoomId: 'abc'}},
- * function (model, index) {...}
- * );
- * eachComponent(
- * {mainType: 'series', subType: 'pie', query: {seriesName: 'uio'}},
- * function (model, index) {...}
- * );
- *
- * @param {string|Object=} mainType When mainType is object, the definition
- * is the same as the method 'findComponents'.
- * @param {Function} cb
- * @param {*} context
- */
- eachComponent: function (mainType, cb, context) {
- var componentsMap = this._componentsMap;
-
- if (typeof mainType === 'function') {
- context = cb;
- cb = mainType;
- each(componentsMap, function (components, componentType) {
- each(components, function (component, index) {
- cb.call(context, componentType, component, index);
- });
- });
- }
- else if (zrUtil.isString(mainType)) {
- each(componentsMap[mainType], cb, context);
- }
- else if (isObject(mainType)) {
- var queryResult = this.findComponents(mainType);
- each(queryResult, cb, context);
- }
- },
-
- /**
- * @param {string} name
- * @return {Array.<module:echarts/model/Series>}
- */
- getSeriesByName: function (name) {
- var series = this._componentsMap.series;
- return filter(series, function (oneSeries) {
- return oneSeries.name === name;
- });
- },
-
- /**
- * @param {number} seriesIndex
- * @return {module:echarts/model/Series}
- */
- getSeriesByIndex: function (seriesIndex) {
- return this._componentsMap.series[seriesIndex];
- },
-
- /**
- * @param {string} subType
- * @return {Array.<module:echarts/model/Series>}
- */
- getSeriesByType: function (subType) {
- var series = this._componentsMap.series;
- return filter(series, function (oneSeries) {
- return oneSeries.subType === subType;
- });
- },
-
- /**
- * @return {Array.<module:echarts/model/Series>}
- */
- getSeries: function () {
- return this._componentsMap.series.slice();
- },
-
- /**
- * After filtering, series may be different
- * frome raw series.
- *
- * @param {Function} cb
- * @param {*} context
- */
- eachSeries: function (cb, context) {
- assertSeriesInitialized(this);
- each(this._seriesIndices, function (rawSeriesIndex) {
- var series = this._componentsMap.series[rawSeriesIndex];
- cb.call(context, series, rawSeriesIndex);
- }, this);
- },
-
- /**
- * Iterate raw series before filtered.
- *
- * @param {Function} cb
- * @param {*} context
- */
- eachRawSeries: function (cb, context) {
- each(this._componentsMap.series, cb, context);
- },
-
- /**
- * After filtering, series may be different.
- * frome raw series.
- *
- * @parma {string} subType
- * @param {Function} cb
- * @param {*} context
- */
- eachSeriesByType: function (subType, cb, context) {
- assertSeriesInitialized(this);
- each(this._seriesIndices, function (rawSeriesIndex) {
- var series = this._componentsMap.series[rawSeriesIndex];
- if (series.subType === subType) {
- cb.call(context, series, rawSeriesIndex);
- }
- }, this);
- },
-
- /**
- * Iterate raw series before filtered of given type.
- *
- * @parma {string} subType
- * @param {Function} cb
- * @param {*} context
- */
- eachRawSeriesByType: function (subType, cb, context) {
- return each(this.getSeriesByType(subType), cb, context);
- },
-
- /**
- * @param {module:echarts/model/Series} seriesModel
- */
- isSeriesFiltered: function (seriesModel) {
- assertSeriesInitialized(this);
- return zrUtil.indexOf(this._seriesIndices, seriesModel.componentIndex) < 0;
- },
-
- /**
- * @param {Function} cb
- * @param {*} context
- */
- filterSeries: function (cb, context) {
- assertSeriesInitialized(this);
- var filteredSeries = filter(
- this._componentsMap.series, cb, context
- );
- this._seriesIndices = createSeriesIndices(filteredSeries);
- },
-
- restoreData: function () {
- var componentsMap = this._componentsMap;
-
- this._seriesIndices = createSeriesIndices(componentsMap.series);
-
- var componentTypes = [];
- each(componentsMap, function (components, componentType) {
- componentTypes.push(componentType);
- });
-
- ComponentModel.topologicalTravel(
- componentTypes,
- ComponentModel.getAllClassMainTypes(),
- function (componentType, dependencies) {
- each(componentsMap[componentType], function (component) {
- component.restoreData();
- });
- }
- );
- }
-
- });
-
- /**
- * @inner
- */
- function mergeTheme(option, theme) {
- for (var name in theme) {
- // 如果有 component model 则把具体的 merge 逻辑交给该 model 处理
- if (!ComponentModel.hasClass(name)) {
- if (typeof theme[name] === 'object') {
- option[name] = !option[name]
- ? zrUtil.clone(theme[name])
- : zrUtil.merge(option[name], theme[name], false);
- }
- else {
- if (option[name] == null) {
- option[name] = theme[name];
- }
- }
- }
- }
- }
-
- function initBase(baseOption) {
- baseOption = baseOption;
-
- // Using OPTION_INNER_KEY to mark that this option can not be used outside,
- // i.e. `chart.setOption(chart.getModel().option);` is forbiden.
- this.option = {};
- this.option[OPTION_INNER_KEY] = 1;
-
- /**
- * @type {Object.<string, Array.<module:echarts/model/Model>>}
- * @private
- */
- this._componentsMap = {};
-
- /**
- * Mapping between filtered series list and raw series list.
- * key: filtered series indices, value: raw series indices.
- * @type {Array.<nubmer>}
- * @private
- */
- this._seriesIndices = null;
-
- mergeTheme(baseOption, this._theme.option);
-
- // TODO Needs clone when merging to the unexisted property
- zrUtil.merge(baseOption, globalDefault, false);
-
- this.mergeOption(baseOption);
- }
-
- /**
- * @inner
- * @param {Array.<string>|string} types model types
- * @return {Object} key: {string} type, value: {Array.<Object>} models
- */
- function getComponentsByTypes(componentsMap, types) {
- if (!zrUtil.isArray(types)) {
- types = types ? [types] : [];
- }
-
- var ret = {};
- each(types, function (type) {
- ret[type] = (componentsMap[type] || []).slice();
- });
-
- return ret;
- }
-
- /**
- * @inner
- */
- function makeKeyInfo(mainType, mapResult) {
- // We use this id to hash component models and view instances
- // in echarts. id can be specified by user, or auto generated.
-
- // The id generation rule ensures new view instance are able
- // to mapped to old instance when setOption are called in
- // no-merge mode. So we generate model id by name and plus
- // type in view id.
-
- // name can be duplicated among components, which is convenient
- // to specify multi components (like series) by one name.
-
- // Ensure that each id is distinct.
- var idMap = {};
-
- each(mapResult, function (item, index) {
- var existCpt = item.exist;
- existCpt && (idMap[existCpt.id] = item);
- });
-
- each(mapResult, function (item, index) {
- var opt = item.option;
-
- zrUtil.assert(
- !opt || opt.id == null || !idMap[opt.id] || idMap[opt.id] === item,
- 'id duplicates: ' + (opt && opt.id)
- );
-
- opt && opt.id != null && (idMap[opt.id] = item);
-
- // Complete subType
- if (isObject(opt)) {
- var subType = determineSubType(mainType, opt, item.exist);
- item.keyInfo = {mainType: mainType, subType: subType};
- }
- });
-
- // Make name and id.
- each(mapResult, function (item, index) {
- var existCpt = item.exist;
- var opt = item.option;
- var keyInfo = item.keyInfo;
-
- if (!isObject(opt)) {
- return;
- }
-
- // name can be overwitten. Consider case: axis.name = '20km'.
- // But id generated by name will not be changed, which affect
- // only in that case: setOption with 'not merge mode' and view
- // instance will be recreated, which can be accepted.
- keyInfo.name = opt.name != null
- ? opt.name + ''
- : existCpt
- ? existCpt.name
- : '\0-';
-
- if (existCpt) {
- keyInfo.id = existCpt.id;
- }
- else if (opt.id != null) {
- keyInfo.id = opt.id + '';
- }
- else {
- // Consider this situatoin:
- // optionA: [{name: 'a'}, {name: 'a'}, {..}]
- // optionB [{..}, {name: 'a'}, {name: 'a'}]
- // Series with the same name between optionA and optionB
- // should be mapped.
- var idNum = 0;
- do {
- keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++;
- }
- while (idMap[keyInfo.id]);
- }
-
- idMap[keyInfo.id] = item;
- });
- }
-
- /**
- * @inner
- */
- function determineSubType(mainType, newCptOption, existComponent) {
- var subType = newCptOption.type
- ? newCptOption.type
- : existComponent
- ? existComponent.subType
- // Use determineSubType only when there is no existComponent.
- : ComponentModel.determineSubType(mainType, newCptOption);
-
- // tooltip, markline, markpoint may always has no subType
- return subType;
- }
-
- /**
- * @inner
- */
- function createSeriesIndices(seriesModels) {
- return map(seriesModels, function (series) {
- return series.componentIndex;
- }) || [];
- }
-
- /**
- * @inner
- */
- function filterBySubType(components, condition) {
- // Using hasOwnProperty for restrict. Consider
- // subType is undefined in user payload.
- return condition.hasOwnProperty('subType')
- ? filter(components, function (cpt) {
- return cpt.subType === condition.subType;
- })
- : components;
- }
-
- /**
- * @inner
- */
- function assertSeriesInitialized(ecModel) {
- // Components that use _seriesIndices should depends on series component,
- // which make sure that their initialization is after series.
- if (!ecModel._seriesIndices) {
- throw new Error('Series has not been initialized yet.');
- }
- }
-
- module.exports = GlobalModel;
-
-
-/***/ },
-/* 3 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- */
-
- var Gradient = __webpack_require__(4);
- // 用于处理merge时无法遍历Date等对象的问题
- var BUILTIN_OBJECT = {
- '[object Function]': 1,
- '[object RegExp]': 1,
- '[object Date]': 1,
- '[object Error]': 1,
- '[object CanvasGradient]': 1
- };
-
- var objToString = Object.prototype.toString;
-
- var arrayProto = Array.prototype;
- var nativeForEach = arrayProto.forEach;
- var nativeFilter = arrayProto.filter;
- var nativeSlice = arrayProto.slice;
- var nativeMap = arrayProto.map;
- var nativeReduce = arrayProto.reduce;
-
- /**
- * @param {*} source
- * @return {*} 拷贝后的新对象
- */
- function clone(source) {
- if (typeof source == 'object' && source !== null) {
- var result = source;
- if (source instanceof Array) {
- result = [];
- for (var i = 0, len = source.length; i < len; i++) {
- result[i] = clone(source[i]);
- }
- }
- else if (
- !isBuildInObject(source)
- // 是否为 dom 对象
- && !isDom(source)
- ) {
- result = {};
- for (var key in source) {
- if (source.hasOwnProperty(key)) {
- result[key] = clone(source[key]);
- }
- }
- }
-
- return result;
- }
-
- return source;
- }
-
- /**
- * @param {*} target
- * @param {*} source
- * @param {boolean} [overwrite=false]
- */
- function merge(target, source, overwrite) {
- // We should escapse that source is string
- // and enter for ... in ...
- if (!isObject(source) || !isObject(target)) {
- return overwrite ? clone(source) : target;
- }
-
- for (var key in source) {
- if (source.hasOwnProperty(key)) {
- var targetProp = target[key];
- var sourceProp = source[key];
-
- if (isObject(sourceProp)
- && isObject(targetProp)
- && !isArray(sourceProp)
- && !isArray(targetProp)
- && !isDom(sourceProp)
- && !isDom(targetProp)
- && !isBuildInObject(sourceProp)
- && !isBuildInObject(targetProp)
- ) {
- // 如果需要递归覆盖,就递归调用merge
- merge(targetProp, sourceProp, overwrite);
- }
- else if (overwrite || !(key in target)) {
- // 否则只处理overwrite为true,或者在目标对象中没有此属性的情况
- // NOTE,在 target[key] 不存在的时候也是直接覆盖
- target[key] = clone(source[key], true);
- }
- }
- }
-
- return target;
- }
-
- /**
- * @param {Array} targetAndSources The first item is target, and the rests are source.
- * @param {boolean} [overwrite=false]
- * @return {*} target
- */
- function mergeAll(targetAndSources, overwrite) {
- var result = targetAndSources[0];
- for (var i = 1, len = targetAndSources.length; i < len; i++) {
- result = merge(result, targetAndSources[i], overwrite);
- }
- return result;
- }
-
- /**
- * @param {*} target
- * @param {*} source
- */
- function extend(target, source) {
- for (var key in source) {
- if (source.hasOwnProperty(key)) {
- target[key] = source[key];
- }
- }
- return target;
- }
-
- /**
- * @param {*} target
- * @param {*} source
- * @param {boolen} [overlay=false]
- */
- function defaults(target, source, overlay) {
- for (var key in source) {
- if (source.hasOwnProperty(key)
- && (overlay ? source[key] != null : target[key] == null)
- ) {
- target[key] = source[key];
- }
- }
- return target;
- }
-
- function createCanvas() {
- return document.createElement('canvas');
- }
- // FIXME
- var _ctx;
- function getContext() {
- if (!_ctx) {
- // Use util.createCanvas instead of createCanvas
- // because createCanvas may be overwritten in different environment
- _ctx = util.createCanvas().getContext('2d');
- }
- return _ctx;
- }
-
- /**
- * 查询数组中元素的index
- */
- function indexOf(array, value) {
- if (array) {
- if (array.indexOf) {
- return array.indexOf(value);
- }
- for (var i = 0, len = array.length; i < len; i++) {
- if (array[i] === value) {
- return i;
- }
- }
- }
- return -1;
- }
-
- /**
- * 构造类继承关系
- *
- * @param {Function} clazz 源类
- * @param {Function} baseClazz 基类
- */
- function inherits(clazz, baseClazz) {
- var clazzPrototype = clazz.prototype;
- function F() {}
- F.prototype = baseClazz.prototype;
- clazz.prototype = new F();
-
- for (var prop in clazzPrototype) {
- clazz.prototype[prop] = clazzPrototype[prop];
- }
- clazz.prototype.constructor = clazz;
- clazz.superClass = baseClazz;
- }
-
- /**
- * @param {Object|Function} target
- * @param {Object|Function} sorce
- * @param {boolean} overlay
- */
- function mixin(target, source, overlay) {
- target = 'prototype' in target ? target.prototype : target;
- source = 'prototype' in source ? source.prototype : source;
-
- defaults(target, source, overlay);
- }
-
- /**
- * @param {Array|TypedArray} data
- */
- function isArrayLike(data) {
- if (! data) {
- return;
- }
- if (typeof data == 'string') {
- return false;
- }
- return typeof data.length == 'number';
- }
-
- /**
- * 数组或对象遍历
- * @memberOf module:zrender/tool/util
- * @param {Object|Array} obj
- * @param {Function} cb
- * @param {*} [context]
- */
- function each(obj, cb, context) {
- if (!(obj && cb)) {
- return;
- }
- if (obj.forEach && obj.forEach === nativeForEach) {
- obj.forEach(cb, context);
- }
- else if (obj.length === +obj.length) {
- for (var i = 0, len = obj.length; i < len; i++) {
- cb.call(context, obj[i], i, obj);
- }
- }
- else {
- for (var key in obj) {
- if (obj.hasOwnProperty(key)) {
- cb.call(context, obj[key], key, obj);
- }
- }
- }
- }
-
- /**
- * 数组映射
- * @memberOf module:zrender/tool/util
- * @param {Array} obj
- * @param {Function} cb
- * @param {*} [context]
- * @return {Array}
- */
- function map(obj, cb, context) {
- if (!(obj && cb)) {
- return;
- }
- if (obj.map && obj.map === nativeMap) {
- return obj.map(cb, context);
- }
- else {
- var result = [];
- for (var i = 0, len = obj.length; i < len; i++) {
- result.push(cb.call(context, obj[i], i, obj));
- }
- return result;
- }
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {Array} obj
- * @param {Function} cb
- * @param {Object} [memo]
- * @param {*} [context]
- * @return {Array}
- */
- function reduce(obj, cb, memo, context) {
- if (!(obj && cb)) {
- return;
- }
- if (obj.reduce && obj.reduce === nativeReduce) {
- return obj.reduce(cb, memo, context);
- }
- else {
- for (var i = 0, len = obj.length; i < len; i++) {
- memo = cb.call(context, memo, obj[i], i, obj);
- }
- return memo;
- }
- }
-
- /**
- * 数组过滤
- * @memberOf module:zrender/tool/util
- * @param {Array} obj
- * @param {Function} cb
- * @param {*} [context]
- * @return {Array}
- */
- function filter(obj, cb, context) {
- if (!(obj && cb)) {
- return;
- }
- if (obj.filter && obj.filter === nativeFilter) {
- return obj.filter(cb, context);
- }
- else {
- var result = [];
- for (var i = 0, len = obj.length; i < len; i++) {
- if (cb.call(context, obj[i], i, obj)) {
- result.push(obj[i]);
- }
- }
- return result;
- }
- }
-
- /**
- * 数组项查找
- * @memberOf module:zrender/tool/util
- * @param {Array} obj
- * @param {Function} cb
- * @param {*} [context]
- * @return {Array}
- */
- function find(obj, cb, context) {
- if (!(obj && cb)) {
- return;
- }
- for (var i = 0, len = obj.length; i < len; i++) {
- if (cb.call(context, obj[i], i, obj)) {
- return obj[i];
- }
- }
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {Function} func
- * @param {*} context
- * @return {Function}
- */
- function bind(func, context) {
- var args = nativeSlice.call(arguments, 2);
- return function () {
- return func.apply(context, args.concat(nativeSlice.call(arguments)));
- };
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {Function} func
- * @param {...}
- * @return {Function}
- */
- function curry(func) {
- var args = nativeSlice.call(arguments, 1);
- return function () {
- return func.apply(this, args.concat(nativeSlice.call(arguments)));
- };
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isArray(value) {
- return objToString.call(value) === '[object Array]';
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isFunction(value) {
- return typeof value === 'function';
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isString(value) {
- return objToString.call(value) === '[object String]';
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isObject(value) {
- // Avoid a V8 JIT bug in Chrome 19-20.
- // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
- var type = typeof value;
- return type === 'function' || (!!value && type == 'object');
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isBuildInObject(value) {
- return !!BUILTIN_OBJECT[objToString.call(value)]
- || (value instanceof Gradient);
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {*} value
- * @return {boolean}
- */
- function isDom(value) {
- return value && value.nodeType === 1
- && typeof(value.nodeName) == 'string';
- }
-
- /**
- * If value1 is not null, then return value1, otherwise judget rest of values.
- * @param {*...} values
- * @return {*} Final value
- */
- function retrieve(values) {
- for (var i = 0, len = arguments.length; i < len; i++) {
- if (arguments[i] != null) {
- return arguments[i];
- }
- }
- }
-
- /**
- * @memberOf module:zrender/tool/util
- * @param {Array} arr
- * @param {number} startIndex
- * @param {number} endIndex
- * @return {Array}
- */
- function slice() {
- return Function.call.apply(nativeSlice, arguments);
- }
-
- /**
- * @param {boolean} condition
- * @param {string} message
- */
- function assert(condition, message) {
- if (!condition) {
- throw new Error(message);
- }
- }
-
- var util = {
- inherits: inherits,
- mixin: mixin,
- clone: clone,
- merge: merge,
- mergeAll: mergeAll,
- extend: extend,
- defaults: defaults,
- getContext: getContext,
- createCanvas: createCanvas,
- indexOf: indexOf,
- slice: slice,
- find: find,
- isArrayLike: isArrayLike,
- each: each,
- map: map,
- reduce: reduce,
- filter: filter,
- bind: bind,
- curry: curry,
- isArray: isArray,
- isString: isString,
- isObject: isObject,
- isFunction: isFunction,
- isBuildInObject: isBuildInObject,
- isDom: isDom,
- retrieve: retrieve,
- assert: assert,
- noop: function () {}
- };
- module.exports = util;
-
-
-
-/***/ },
-/* 4 */
-/***/ function(module, exports) {
-
-
-
- /**
- * @param {Array.<Object>} colorStops
- */
- var Gradient = function (colorStops) {
-
- this.colorStops = colorStops || [];
- };
-
- Gradient.prototype = {
-
- constructor: Gradient,
-
- addColorStop: function (offset, color) {
- this.colorStops.push({
-
- offset: offset,
-
- color: color
- });
- }
- };
-
- module.exports = Gradient;
-
-
-/***/ },
-/* 5 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var formatUtil = __webpack_require__(6);
- var nubmerUtil = __webpack_require__(7);
- var zrUtil = __webpack_require__(3);
-
- var Model = __webpack_require__(8);
-
- var AXIS_DIMS = ['x', 'y', 'z', 'radius', 'angle'];
-
- var modelUtil = {};
-
- /**
- * Create "each" method to iterate names.
- *
- * @pubilc
- * @param {Array.<string>} names
- * @param {Array.<string>=} attrs
- * @return {Function}
- */
- modelUtil.createNameEach = function (names, attrs) {
- names = names.slice();
- var capitalNames = zrUtil.map(names, modelUtil.capitalFirst);
- attrs = (attrs || []).slice();
- var capitalAttrs = zrUtil.map(attrs, modelUtil.capitalFirst);
-
- return function (callback, context) {
- zrUtil.each(names, function (name, index) {
- var nameObj = {name: name, capital: capitalNames[index]};
-
- for (var j = 0; j < attrs.length; j++) {
- nameObj[attrs[j]] = name + capitalAttrs[j];
- }
-
- callback.call(context, nameObj);
- });
- };
- };
-
- /**
- * @public
- */
- modelUtil.capitalFirst = function (str) {
- return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;
- };
-
- /**
- * Iterate each dimension name.
- *
- * @public
- * @param {Function} callback The parameter is like:
- * {
- * name: 'angle',
- * capital: 'Angle',
- * axis: 'angleAxis',
- * axisIndex: 'angleAixs',
- * index: 'angleIndex'
- * }
- * @param {Object} context
- */
- modelUtil.eachAxisDim = modelUtil.createNameEach(AXIS_DIMS, ['axisIndex', 'axis', 'index']);
-
- /**
- * If value is not array, then translate it to array.
- * @param {*} value
- * @return {Array} [value] or value
- */
- modelUtil.normalizeToArray = function (value) {
- return zrUtil.isArray(value)
- ? value
- : value == null
- ? []
- : [value];
- };
-
- /**
- * If tow dataZoomModels has the same axis controlled, we say that they are 'linked'.
- * dataZoomModels and 'links' make up one or more graphics.
- * This function finds the graphic where the source dataZoomModel is in.
- *
- * @public
- * @param {Function} forEachNode Node iterator.
- * @param {Function} forEachEdgeType edgeType iterator
- * @param {Function} edgeIdGetter Giving node and edgeType, return an array of edge id.
- * @return {Function} Input: sourceNode, Output: Like {nodes: [], dims: {}}
- */
- modelUtil.createLinkedNodesFinder = function (forEachNode, forEachEdgeType, edgeIdGetter) {
-
- return function (sourceNode) {
- var result = {
- nodes: [],
- records: {} // key: edgeType.name, value: Object (key: edge id, value: boolean).
- };
-
- forEachEdgeType(function (edgeType) {
- result.records[edgeType.name] = {};
- });
-
- if (!sourceNode) {
- return result;
- }
-
- absorb(sourceNode, result);
-
- var existsLink;
- do {
- existsLink = false;
- forEachNode(processSingleNode);
- }
- while (existsLink);
-
- function processSingleNode(node) {
- if (!isNodeAbsorded(node, result) && isLinked(node, result)) {
- absorb(node, result);
- existsLink = true;
- }
- }
-
- return result;
- };
-
- function isNodeAbsorded(node, result) {
- return zrUtil.indexOf(result.nodes, node) >= 0;
- }
-
- function isLinked(node, result) {
- var hasLink = false;
- forEachEdgeType(function (edgeType) {
- zrUtil.each(edgeIdGetter(node, edgeType) || [], function (edgeId) {
- result.records[edgeType.name][edgeId] && (hasLink = true);
- });
- });
- return hasLink;
- }
-
- function absorb(node, result) {
- result.nodes.push(node);
- forEachEdgeType(function (edgeType) {
- zrUtil.each(edgeIdGetter(node, edgeType) || [], function (edgeId) {
- result.records[edgeType.name][edgeId] = true;
- });
- });
- }
- };
-
- /**
- * Sync default option between normal and emphasis like `position` and `show`
- * In case some one will write code like
- * label: {
- * normal: {
- * show: false,
- * position: 'outside',
- * textStyle: {
- * fontSize: 18
- * }
- * },
- * emphasis: {
- * show: true
- * }
- * }
- * @param {Object} opt
- * @param {Array.<string>} subOpts
- */
- modelUtil.defaultEmphasis = function (opt, subOpts) {
- if (opt) {
- var emphasisOpt = opt.emphasis = opt.emphasis || {};
- var normalOpt = opt.normal = opt.normal || {};
-
- // Default emphasis option from normal
- zrUtil.each(subOpts, function (subOptName) {
- var val = zrUtil.retrieve(emphasisOpt[subOptName], normalOpt[subOptName]);
- if (val != null) {
- emphasisOpt[subOptName] = val;
- }
- });
- }
- };
-
- /**
- * Create a model proxy to be used in tooltip for edge data, markLine data, markPoint data.
- * @param {Object} opt
- * @param {string} [opt.seriesIndex]
- * @param {Object} [opt.name]
- * @param {module:echarts/data/List} data
- * @param {Array.<Object>} rawData
- */
- modelUtil.createDataFormatModel = function (opt, data, rawData) {
- var model = new Model();
- zrUtil.mixin(model, modelUtil.dataFormatMixin);
- model.seriesIndex = opt.seriesIndex;
- model.name = opt.name || '';
-
- model.getData = function () {
- return data;
- };
- model.getRawDataArray = function () {
- return rawData;
- };
- return model;
- };
-
- /**
- * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
- * This helper method retieves value from data.
- * @param {string|number|Date|Array|Object} dataItem
- * @return {number|string|Date|Array.<number|string|Date>}
- */
- modelUtil.getDataItemValue = function (dataItem) {
- // Performance sensitive.
- return dataItem && (dataItem.value == null ? dataItem : dataItem.value);
- };
-
- /**
- * This helper method convert value in data.
- * @param {string|number|Date} value
- * @param {Object|string} [dimInfo] If string (like 'x'), dimType defaults 'number'.
- */
- modelUtil.converDataValue = function (value, dimInfo) {
- // Performance sensitive.
- var dimType = dimInfo && dimInfo.type;
- if (dimType === 'ordinal') {
- return value;
- }
-
- if (dimType === 'time' && !isFinite(value) && value != null && value !== '-') {
- value = +nubmerUtil.parseDate(value);
- }
-
- // dimType defaults 'number'.
- // If dimType is not ordinal and value is null or undefined or NaN or '-',
- // parse to NaN.
- return (value == null || value === '')
- ? NaN : +value; // If string (like '-'), using '+' parse to NaN
- };
-
- modelUtil.dataFormatMixin = {
- /**
- * Get params for formatter
- * @param {number} dataIndex
- * @return {Object}
- */
- getDataParams: function (dataIndex) {
- var data = this.getData();
-
- var seriesIndex = this.seriesIndex;
- var seriesName = this.name;
-
- var rawValue = this.getRawValue(dataIndex);
- var rawDataIndex = data.getRawIndex(dataIndex);
- var name = data.getName(dataIndex, true);
-
- // Data may not exists in the option given by user
- var rawDataArray = this.getRawDataArray();
- var itemOpt = rawDataArray && rawDataArray[rawDataIndex];
-
- return {
- seriesIndex: seriesIndex,
- seriesName: seriesName,
- name: name,
- dataIndex: rawDataIndex,
- data: itemOpt,
- value: rawValue,
- color: data.getItemVisual(dataIndex, 'color'),
-
- // Param name list for mapping `a`, `b`, `c`, `d`, `e`
- $vars: ['seriesName', 'name', 'value']
- };
- },
-
- /**
- * Format label
- * @param {number} dataIndex
- * @param {string} [status='normal'] 'normal' or 'emphasis'
- * @param {Function|string} [formatter] Default use the `itemStyle[status].label.formatter`
- * @return {string}
- */
- getFormattedLabel: function (dataIndex, status, formatter) {
- status = status || 'normal';
- var data = this.getData();
- var itemModel = data.getItemModel(dataIndex);
-
- var params = this.getDataParams(dataIndex);
- if (formatter == null) {
- formatter = itemModel.get(['label', status, 'formatter']);
- }
-
- if (typeof formatter === 'function') {
- params.status = status;
- return formatter(params);
- }
- else if (typeof formatter === 'string') {
- return formatUtil.formatTpl(formatter, params);
- }
- },
-
- /**
- * Get raw value in option
- * @param {number} idx
- * @return {Object}
- */
- getRawValue: function (idx) {
- var itemModel = this.getData().getItemModel(idx);
- if (itemModel && itemModel.option != null) {
- var dataItem = itemModel.option;
- return (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem))
- ? dataItem.value : dataItem;
- }
- }
- };
-
- /**
- * Mapping to exists for merge.
- *
- * @public
- * @param {Array.<Object>|Array.<module:echarts/model/Component>} exists
- * @param {Object|Array.<Object>} newCptOptions
- * @return {Array.<Object>} Result, like [{exist: ..., option: ...}, {}],
- * which order is the same as exists.
- */
- modelUtil.mappingToExists = function (exists, newCptOptions) {
- // Mapping by the order by original option (but not order of
- // new option) in merge mode. Because we should ensure
- // some specified index (like xAxisIndex) is consistent with
- // original option, which is easy to understand, espatially in
- // media query. And in most case, merge option is used to
- // update partial option but not be expected to change order.
- newCptOptions = (newCptOptions || []).slice();
-
- var result = zrUtil.map(exists || [], function (obj, index) {
- return {exist: obj};
- });
-
- // Mapping by id or name if specified.
- zrUtil.each(newCptOptions, function (cptOption, index) {
- if (!zrUtil.isObject(cptOption)) {
- return;
- }
-
- for (var i = 0; i < result.length; i++) {
- var exist = result[i].exist;
- if (!result[i].option // Consider name: two map to one.
- && (
- // id has highest priority.
- (cptOption.id != null && exist.id === cptOption.id + '')
- || (cptOption.name != null
- && !modelUtil.isIdInner(cptOption)
- && !modelUtil.isIdInner(exist)
- && exist.name === cptOption.name + ''
- )
- )
- ) {
- result[i].option = cptOption;
- newCptOptions[index] = null;
- break;
- }
- }
- });
-
- // Otherwise mapping by index.
- zrUtil.each(newCptOptions, function (cptOption, index) {
- if (!zrUtil.isObject(cptOption)) {
- return;
- }
-
- var i = 0;
- for (; i < result.length; i++) {
- var exist = result[i].exist;
- if (!result[i].option
- && !modelUtil.isIdInner(exist)
- // Caution:
- // Do not overwrite id. But name can be overwritten,
- // because axis use name as 'show label text'.
- // 'exist' always has id and name and we dont
- // need to check it.
- && cptOption.id == null
- ) {
- result[i].option = cptOption;
- break;
- }
- }
-
- if (i >= result.length) {
- result.push({option: cptOption});
- }
- });
-
- return result;
- };
-
- /**
- * @public
- * @param {Object} cptOption
- * @return {boolean}
- */
- modelUtil.isIdInner = function (cptOption) {
- return zrUtil.isObject(cptOption)
- && cptOption.id
- && (cptOption.id + '').indexOf('\0_ec_\0') === 0;
- };
-
- module.exports = modelUtil;
-
-
-/***/ },
-/* 6 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
-
- /**
- * 每三位默认加,格式化
- * @type {string|number} x
- */
- function addCommas(x) {
- if (isNaN(x)) {
- return '-';
- }
- x = (x + '').split('.');
- return x[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,'$1,')
- + (x.length > 1 ? ('.' + x[1]) : '');
- }
-
- /**
- * @param {string} str
- * @return {string} str
- */
- function toCamelCase(str) {
- return str.toLowerCase().replace(/-(.)/g, function(match, group1) {
- return group1.toUpperCase();
- });
- }
-
- /**
- * Normalize css liked array configuration
- * e.g.
- * 3 => [3, 3, 3, 3]
- * [4, 2] => [4, 2, 4, 2]
- * [4, 3, 2] => [4, 3, 2, 3]
- * @param {number|Array.<number>} val
- */
- function normalizeCssArray(val) {
- var len = val.length;
- if (typeof (val) === 'number') {
- return [val, val, val, val];
- }
- else if (len === 2) {
- // vertical | horizontal
- return [val[0], val[1], val[0], val[1]];
- }
- else if (len === 3) {
- // top | horizontal | bottom
- return [val[0], val[1], val[2], val[1]];
- }
- return val;
- }
-
- function encodeHTML(source) {
- return String(source)
- .replace(/&/g, '&amp;')
- .replace(/</g, '&lt;')
- .replace(/>/g, '&gt;')
- .replace(/"/g, '&quot;')
- .replace(/'/g, '&#39;');
- }
-
- var TPL_VAR_ALIAS = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
-
- function wrapVar(varName, seriesIdx) {
- return '{' + varName + (seriesIdx == null ? '' : seriesIdx) + '}';
- }
- /**
- * Template formatter
- * @param {string} tpl
- * @param {Array.<Object>|Object} paramsList
- * @return {string}
- */
- function formatTpl(tpl, paramsList) {
- if (!zrUtil.isArray(paramsList)) {
- paramsList = [paramsList];
- }
- var seriesLen = paramsList.length;
- if (!seriesLen) {
- return '';
- }
-
- var $vars = paramsList[0].$vars;
- for (var i = 0; i < $vars.length; i++) {
- var alias = TPL_VAR_ALIAS[i];
- tpl = tpl.replace(wrapVar(alias), wrapVar(alias, 0));
- }
- for (var seriesIdx = 0; seriesIdx < seriesLen; seriesIdx++) {
- for (var k = 0; k < $vars.length; k++) {
- tpl = tpl.replace(
- wrapVar(TPL_VAR_ALIAS[k], seriesIdx),
- paramsList[seriesIdx][$vars[k]]
- );
- }
- }
-
- return tpl;
- }
-
- /**
- * ISO Date format
- * @param {string} tpl
- * @param {number} value
- * @inner
- */
- function formatTime(tpl, value) {
- if (tpl === 'week'
- || tpl === 'month'
- || tpl === 'quarter'
- || tpl === 'half-year'
- || tpl === 'year'
- ) {
- tpl = 'MM-dd\nyyyy';
- }
-
- var date = numberUtil.parseDate(value);
- var y = date.getFullYear();
- var M = date.getMonth() + 1;
- var d = date.getDate();
- var h = date.getHours();
- var m = date.getMinutes();
- var s = date.getSeconds();
-
- tpl = tpl.replace('MM', s2d(M))
- .toLowerCase()
- .replace('yyyy', y)
- .replace('yy', y % 100)
- .replace('dd', s2d(d))
- .replace('d', d)
- .replace('hh', s2d(h))
- .replace('h', h)
- .replace('mm', s2d(m))
- .replace('m', m)
- .replace('ss', s2d(s))
- .replace('s', s);
-
- return tpl;
- }
-
- /**
- * @param {string} str
- * @return {string}
- * @inner
- */
- function s2d(str) {
- return str < 10 ? ('0' + str) : str;
- }
-
- module.exports = {
-
- normalizeCssArray: normalizeCssArray,
-
- addCommas: addCommas,
-
- toCamelCase: toCamelCase,
-
- encodeHTML: encodeHTML,
-
- formatTpl: formatTpl,
-
- formatTime: formatTime
- };
-
-
-/***/ },
-/* 7 */
-/***/ function(module, exports) {
-
- /**
- * 数值处理模块
- * @module echarts/util/number
- */
-
-
-
- var number = {};
-
- var RADIAN_EPSILON = 1e-4;
-
- function _trim(str) {
- return str.replace(/^\s+/, '').replace(/\s+$/, '');
- }
-
- /**
- * Linear mapping a value from domain to range
- * @memberOf module:echarts/util/number
- * @param {(number|Array.<number>)} val
- * @param {Array.<number>} domain Domain extent domain[0] can be bigger than domain[1]
- * @param {Array.<number>} range Range extent range[0] can be bigger than range[1]
- * @param {boolean} clamp
- * @return {(number|Array.<number>}
- */
- number.linearMap = function (val, domain, range, clamp) {
-
- var sub = domain[1] - domain[0];
-
- if (sub === 0) {
- return (range[0] + range[1]) / 2;
- }
- var t = (val - domain[0]) / sub;
-
- if (clamp) {
- t = Math.min(Math.max(t, 0), 1);
- }
-
- return t * (range[1] - range[0]) + range[0];
- };
-
- /**
- * Convert a percent string to absolute number.
- * Returns NaN if percent is not a valid string or number
- * @memberOf module:echarts/util/number
- * @param {string|number} percent
- * @param {number} all
- * @return {number}
- */
- number.parsePercent = function(percent, all) {
- switch (percent) {
- case 'center':
- case 'middle':
- percent = '50%';
- break;
- case 'left':
- case 'top':
- percent = '0%';
- break;
- case 'right':
- case 'bottom':
- percent = '100%';
- break;
- }
- if (typeof percent === 'string') {
- if (_trim(percent).match(/%$/)) {
- return parseFloat(percent) / 100 * all;
- }
-
- return parseFloat(percent);
- }
-
- return percent == null ? NaN : +percent;
- };
-
- /**
- * Fix rounding error of float numbers
- * @param {number} x
- * @return {number}
- */
- number.round = function (x) {
- // PENDING
- return +(+x).toFixed(12);
- };
-
- number.asc = function (arr) {
- arr.sort(function (a, b) {
- return a - b;
- });
- return arr;
- };
-
- /**
- * Get precision
- * @param {number} val
- */
- number.getPrecision = function (val) {
- if (isNaN(val)) {
- return 0;
- }
- // It is much faster than methods converting number to string as follows
- // var tmp = val.toString();
- // return tmp.length - 1 - tmp.indexOf('.');
- // especially when precision is low
- var e = 1;
- var count = 0;
- while (Math.round(val * e) / e !== val) {
- e *= 10;
- count++;
- }
- return count;
- };
-
- /**
- * @param {Array.<number>} dataExtent
- * @param {Array.<number>} pixelExtent
- * @return {number} precision
- */
- number.getPixelPrecision = function (dataExtent, pixelExtent) {
- var log = Math.log;
- var LN10 = Math.LN10;
- var dataQuantity = Math.floor(log(dataExtent[1] - dataExtent[0]) / LN10);
- var sizeQuantity = Math.round(log(Math.abs(pixelExtent[1] - pixelExtent[0])) / LN10);
- return Math.max(
- -dataQuantity + sizeQuantity,
- 0
- );
- };
-
- // Number.MAX_SAFE_INTEGER, ie do not support.
- number.MAX_SAFE_INTEGER = 9007199254740991;
-
- /**
- * To 0 - 2 * PI, considering negative radian.
- * @param {number} radian
- * @return {number}
- */
- number.remRadian = function (radian) {
- var pi2 = Math.PI * 2;
- return (radian % pi2 + pi2) % pi2;
- };
-
- /**
- * @param {type} radian
- * @return {boolean}
- */
- number.isRadianAroundZero = function (val) {
- return val > -RADIAN_EPSILON && val < RADIAN_EPSILON;
- };
-
- /**
- * @param {string|Date|number} value
- * @return {number} timestamp
- */
- number.parseDate = function (value) {
- return value instanceof Date
- ? value
- : new Date(
- typeof value === 'string'
- ? value.replace(/-/g, '/')
- : Math.round(value)
- );
- };
-
- // "Nice Numbers for Graph Labels" of Graphic Gems
- /**
- * find a “nice” number approximately equal to x. Round the number if round = true, take ceiling if round = false
- * The primary observation is that the “nicest” numbers in decimal are 1, 2, and 5, and all power-of-ten multiples of these numbers.
- * @param {number} val
- * @param {boolean} round
- * @return {number}
- */
- number.nice = function (val, round) {
- var exp = Math.floor(Math.log(val) / Math.LN10);
- var exp10 = Math.pow(10, exp);
- var f = val / exp10; // between 1 and 10
- var nf;
- if (round) {
- if (f < 1.5) { nf = 1; }
- else if (f < 2.5) { nf = 2; }
- else if (f < 4) { nf = 3; }
- else if (f < 7) { nf = 5; }
- else { nf = 10; }
- }
- else {
- if (f < 1) { nf = 1; }
- else if (f < 2) { nf = 2; }
- else if (f < 3) { nf = 3; }
- else if (f < 5) { nf = 5; }
- else { nf = 10; }
- }
- return nf * exp10;
- };
-
- module.exports = number;
-
-
-/***/ },
-/* 8 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/model/Model
- */
-
-
- var zrUtil = __webpack_require__(3);
- var clazzUtil = __webpack_require__(9);
-
- /**
- * @alias module:echarts/model/Model
- * @constructor
- * @param {Object} option
- * @param {module:echarts/model/Model} parentModel
- * @param {module:echarts/model/Global} ecModel
- * @param {Object} extraOpt
- */
- function Model(option, parentModel, ecModel, extraOpt) {
- /**
- * @type {module:echarts/model/Model}
- * @readOnly
- */
- this.parentModel = parentModel;
-
- /**
- * @type {module:echarts/model/Global}
- * @readOnly
- */
- this.ecModel = ecModel;
-
- /**
- * @type {Object}
- * @protected
- */
- this.option = option;
-
- // Simple optimization
- if (this.init) {
- if (arguments.length <= 4) {
- this.init(option, parentModel, ecModel, extraOpt);
- }
- else {
- this.init.apply(this, arguments);
- }
- }
- }
-
- Model.prototype = {
-
- constructor: Model,
-
- /**
- * Model 的初始化函数
- * @param {Object} option
- */
- init: null,
-
- /**
- * 从新的 Option merge
- */
- mergeOption: function (option) {
- zrUtil.merge(this.option, option, true);
- },
-
- /**
- * @param {string} path
- * @param {boolean} [ignoreParent=false]
- * @return {*}
- */
- get: function (path, ignoreParent) {
- if (!path) {
- return this.option;
- }
-
- if (typeof path === 'string') {
- path = path.split('.');
- }
-
- var obj = this.option;
- var parentModel = this.parentModel;
- for (var i = 0; i < path.length; i++) {
- // obj could be number/string/... (like 0)
- obj = (obj && typeof obj === 'object') ? obj[path[i]] : null;
- if (obj == null) {
- break;
- }
- }
- if (obj == null && parentModel && !ignoreParent) {
- obj = parentModel.get(path);
- }
- return obj;
- },
-
- /**
- * @param {string} key
- * @param {boolean} [ignoreParent=false]
- * @return {*}
- */
- getShallow: function (key, ignoreParent) {
- var option = this.option;
- var val = option && option[key];
- var parentModel = this.parentModel;
- if (val == null && parentModel && !ignoreParent) {
- val = parentModel.getShallow(key);
- }
- return val;
- },
-
- /**
- * @param {string} path
- * @param {module:echarts/model/Model} [parentModel]
- * @return {module:echarts/model/Model}
- */
- getModel: function (path, parentModel) {
- var obj = this.get(path, true);
- var thisParentModel = this.parentModel;
- var model = new Model(
- obj, parentModel || (thisParentModel && thisParentModel.getModel(path)),
- this.ecModel
- );
- return model;
- },
-
- /**
- * If model has option
- */
- isEmpty: function () {
- return this.option == null;
- },
-
- restoreData: function () {},
-
- // Pending
- clone: function () {
- var Ctor = this.constructor;
- return new Ctor(zrUtil.clone(this.option));
- },
-
- setReadOnly: function (properties) {
- clazzUtil.setReadOnly(this, properties);
- }
- };
-
- // Enable Model.extend.
- clazzUtil.enableClassExtend(Model);
-
- var mixin = zrUtil.mixin;
- mixin(Model, __webpack_require__(10));
- mixin(Model, __webpack_require__(12));
- mixin(Model, __webpack_require__(13));
- mixin(Model, __webpack_require__(18));
-
- module.exports = Model;
-
-
-/***/ },
-/* 9 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var clazz = {};
-
- var TYPE_DELIMITER = '.';
- var IS_CONTAINER = '___EC__COMPONENT__CONTAINER___';
- /**
- * @public
- */
- var parseClassType = clazz.parseClassType = function (componentType) {
- var ret = {main: '', sub: ''};
- if (componentType) {
- componentType = componentType.split(TYPE_DELIMITER);
- ret.main = componentType[0] || '';
- ret.sub = componentType[1] || '';
- }
- return ret;
- };
- /**
- * @public
- */
- clazz.enableClassExtend = function (RootClass, preConstruct) {
- RootClass.extend = function (proto) {
- var ExtendedClass = function () {
- preConstruct && preConstruct.apply(this, arguments);
- RootClass.apply(this, arguments);
- };
-
- zrUtil.extend(ExtendedClass.prototype, proto);
-
- ExtendedClass.extend = this.extend;
- ExtendedClass.superCall = superCall;
- ExtendedClass.superApply = superApply;
- zrUtil.inherits(ExtendedClass, this);
- ExtendedClass.superClass = this;
-
- return ExtendedClass;
- };
- };
-
- // superCall should have class info, which can not be fetch from 'this'.
- // Consider this case:
- // class A has method f,
- // class B inherits class A, overrides method f, f call superApply('f'),
- // class C inherits class B, do not overrides method f,
- // then when method of class C is called, dead loop occured.
- function superCall(context, methodName) {
- var args = zrUtil.slice(arguments, 2);
- return this.superClass.prototype[methodName].apply(context, args);
- }
-
- function superApply(context, methodName, args) {
- return this.superClass.prototype[methodName].apply(context, args);
- }
-
- /**
- * @param {Object} entity
- * @param {Object} options
- * @param {boolean} [options.registerWhenExtend]
- * @public
- */
- clazz.enableClassManagement = function (entity, options) {
- options = options || {};
-
- /**
- * Component model classes
- * key: componentType,
- * value:
- * componentClass, when componentType is 'xxx'
- * or Object.<subKey, componentClass>, when componentType is 'xxx.yy'
- * @type {Object}
- */
- var storage = {};
-
- entity.registerClass = function (Clazz, componentType) {
- if (componentType) {
- componentType = parseClassType(componentType);
-
- if (!componentType.sub) {
- if (storage[componentType.main]) {
- throw new Error(componentType.main + 'exists.');
- }
- storage[componentType.main] = Clazz;
- }
- else if (componentType.sub !== IS_CONTAINER) {
- var container = makeContainer(componentType);
- container[componentType.sub] = Clazz;
- }
- }
- return Clazz;
- };
-
- entity.getClass = function (componentTypeMain, subType, throwWhenNotFound) {
- var Clazz = storage[componentTypeMain];
-
- if (Clazz && Clazz[IS_CONTAINER]) {
- Clazz = subType ? Clazz[subType] : null;
- }
-
- if (throwWhenNotFound && !Clazz) {
- throw new Error(
- 'Component ' + componentTypeMain + '.' + (subType || '') + ' not exists. Load it first.'
- );
- }
-
- return Clazz;
- };
-
- entity.getClassesByMainType = function (componentType) {
- componentType = parseClassType(componentType);
-
- var result = [];
- var obj = storage[componentType.main];
-
- if (obj && obj[IS_CONTAINER]) {
- zrUtil.each(obj, function (o, type) {
- type !== IS_CONTAINER && result.push(o);
- });
- }
- else {
- result.push(obj);
- }
-
- return result;
- };
-
- entity.hasClass = function (componentType) {
- // Just consider componentType.main.
- componentType = parseClassType(componentType);
- return !!storage[componentType.main];
- };
-
- /**
- * @return {Array.<string>} Like ['aa', 'bb'], but can not be ['aa.xx']
- */
- entity.getAllClassMainTypes = function () {
- var types = [];
- zrUtil.each(storage, function (obj, type) {
- types.push(type);
- });
- return types;
- };
-
- /**
- * If a main type is container and has sub types
- * @param {string} mainType
- * @return {boolean}
- */
- entity.hasSubTypes = function (componentType) {
- componentType = parseClassType(componentType);
- var obj = storage[componentType.main];
- return obj && obj[IS_CONTAINER];
- };
-
- entity.parseClassType = parseClassType;
-
- function makeContainer(componentType) {
- var container = storage[componentType.main];
- if (!container || !container[IS_CONTAINER]) {
- container = storage[componentType.main] = {};
- container[IS_CONTAINER] = true;
- }
- return container;
- }
-
- if (options.registerWhenExtend) {
- var originalExtend = entity.extend;
- if (originalExtend) {
- entity.extend = function (proto) {
- var ExtendedClass = originalExtend.call(this, proto);
- return entity.registerClass(ExtendedClass, proto.type);
- };
- }
- }
-
- return entity;
- };
-
- /**
- * @param {string|Array.<string>} properties
- */
- clazz.setReadOnly = function (obj, properties) {
- // FIXME It seems broken in IE8 simulation of IE11
- // if (!zrUtil.isArray(properties)) {
- // properties = properties != null ? [properties] : [];
- // }
- // zrUtil.each(properties, function (prop) {
- // var value = obj[prop];
-
- // Object.defineProperty
- // && Object.defineProperty(obj, prop, {
- // value: value, writable: false
- // });
- // zrUtil.isArray(obj[prop])
- // && Object.freeze
- // && Object.freeze(obj[prop]);
- // });
- };
-
- module.exports = clazz;
-
-
-/***/ },
-/* 10 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- var getLineStyle = __webpack_require__(11)(
- [
- ['lineWidth', 'width'],
- ['stroke', 'color'],
- ['opacity'],
- ['shadowBlur'],
- ['shadowOffsetX'],
- ['shadowOffsetY'],
- ['shadowColor']
- ]
- );
- module.exports = {
- getLineStyle: function (excludes) {
- var style = getLineStyle.call(this, excludes);
- var lineDash = this.getLineDash();
- lineDash && (style.lineDash = lineDash);
- return style;
- },
-
- getLineDash: function () {
- var lineType = this.get('type');
- return (lineType === 'solid' || lineType == null) ? null
- : (lineType === 'dashed' ? [5, 5] : [1, 1]);
- }
- };
-
-
-/***/ },
-/* 11 */
-/***/ function(module, exports, __webpack_require__) {
-
- // TODO Parse shadow style
- // TODO Only shallow path support
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (properties) {
- // Normalize
- for (var i = 0; i < properties.length; i++) {
- if (!properties[i][1]) {
- properties[i][1] = properties[i][0];
- }
- }
- return function (excludes) {
- var style = {};
- for (var i = 0; i < properties.length; i++) {
- var propName = properties[i][1];
- if (excludes && zrUtil.indexOf(excludes, propName) >= 0) {
- continue;
- }
- var val = this.getShallow(propName);
- if (val != null) {
- style[properties[i][0]] = val;
- }
- }
- return style;
- };
- };
-
-
-/***/ },
-/* 12 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- module.exports = {
- getAreaStyle: __webpack_require__(11)(
- [
- ['fill', 'color'],
- ['shadowBlur'],
- ['shadowOffsetX'],
- ['shadowOffsetY'],
- ['opacity'],
- ['shadowColor']
- ]
- )
- };
-
-
-/***/ },
-/* 13 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var textContain = __webpack_require__(14);
-
- function getShallow(model, path) {
- return model && model.getShallow(path);
- }
-
- module.exports = {
- /**
- * Get color property or get color from option.textStyle.color
- * @return {string}
- */
- getTextColor: function () {
- var ecModel = this.ecModel;
- return this.getShallow('color')
- || (ecModel && ecModel.get('textStyle.color'));
- },
-
- /**
- * Create font string from fontStyle, fontWeight, fontSize, fontFamily
- * @return {string}
- */
- getFont: function () {
- var ecModel = this.ecModel;
- var gTextStyleModel = ecModel && ecModel.getModel('textStyle');
- return [
- // FIXME in node-canvas fontWeight is before fontStyle
- this.getShallow('fontStyle') || getShallow(gTextStyleModel, 'fontStyle'),
- this.getShallow('fontWeight') || getShallow(gTextStyleModel, 'fontWeight'),
- (this.getShallow('fontSize') || getShallow(gTextStyleModel, 'fontSize') || 12) + 'px',
- this.getShallow('fontFamily') || getShallow(gTextStyleModel, 'fontFamily') || 'sans-serif'
- ].join(' ');
- },
-
- getTextRect: function (text) {
- var textStyle = this.get('textStyle') || {};
- return textContain.getBoundingRect(
- text,
- this.getFont(),
- textStyle.align,
- textStyle.baseline
- );
- },
-
- ellipsis: function (text, containerWidth, options) {
- return textContain.ellipsis(
- text, this.getFont(), containerWidth, options
- );
- }
- };
-
-
-/***/ },
-/* 14 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var textWidthCache = {};
- var textWidthCacheCounter = 0;
- var TEXT_CACHE_MAX = 5000;
-
- var util = __webpack_require__(3);
- var BoundingRect = __webpack_require__(15);
-
- function getTextWidth(text, textFont) {
- var key = text + ':' + textFont;
- if (textWidthCache[key]) {
- return textWidthCache[key];
- }
-
- var textLines = (text + '').split('\n');
- var width = 0;
-
- for (var i = 0, l = textLines.length; i < l; i++) {
- // measureText 可以被覆盖以兼容不支持 Canvas 的环境
- width = Math.max(textContain.measureText(textLines[i], textFont).width, width);
- }
-
- if (textWidthCacheCounter > TEXT_CACHE_MAX) {
- textWidthCacheCounter = 0;
- textWidthCache = {};
- }
- textWidthCacheCounter++;
- textWidthCache[key] = width;
-
- return width;
- }
-
- function getTextRect(text, textFont, textAlign, textBaseline) {
- var textLineLen = ((text || '') + '').split('\n').length;
-
- var width = getTextWidth(text, textFont);
- // FIXME 高度计算比较粗暴
- var lineHeight = getTextWidth('国', textFont);
- var height = textLineLen * lineHeight;
-
- var rect = new BoundingRect(0, 0, width, height);
- // Text has a special line height property
- rect.lineHeight = lineHeight;
-
- switch (textBaseline) {
- case 'bottom':
- case 'alphabetic':
- rect.y -= lineHeight;
- break;
- case 'middle':
- rect.y -= lineHeight / 2;
- break;
- // case 'hanging':
- // case 'top':
- }
-
- // FIXME Right to left language
- switch (textAlign) {
- case 'end':
- case 'right':
- rect.x -= rect.width;
- break;
- case 'center':
- rect.x -= rect.width / 2;
- break;
- // case 'start':
- // case 'left':
- }
-
- return rect;
- }
-
- function adjustTextPositionOnRect(textPosition, rect, textRect, distance) {
-
- var x = rect.x;
- var y = rect.y;
-
- var height = rect.height;
- var width = rect.width;
-
- var textHeight = textRect.height;
-
- var halfHeight = height / 2 - textHeight / 2;
-
- var textAlign = 'left';
-
- switch (textPosition) {
- case 'left':
- x -= distance;
- y += halfHeight;
- textAlign = 'right';
- break;
- case 'right':
- x += distance + width;
- y += halfHeight;
- textAlign = 'left';
- break;
- case 'top':
- x += width / 2;
- y -= distance + textHeight;
- textAlign = 'center';
- break;
- case 'bottom':
- x += width / 2;
- y += height + distance;
- textAlign = 'center';
- break;
- case 'inside':
- x += width / 2;
- y += halfHeight;
- textAlign = 'center';
- break;
- case 'insideLeft':
- x += distance;
- y += halfHeight;
- textAlign = 'left';
- break;
- case 'insideRight':
- x += width - distance;
- y += halfHeight;
- textAlign = 'right';
- break;
- case 'insideTop':
- x += width / 2;
- y += distance;
- textAlign = 'center';
- break;
- case 'insideBottom':
- x += width / 2;
- y += height - textHeight - distance;
- textAlign = 'center';
- break;
- case 'insideTopLeft':
- x += distance;
- y += distance;
- textAlign = 'left';
- break;
- case 'insideTopRight':
- x += width - distance;
- y += distance;
- textAlign = 'right';
- break;
- case 'insideBottomLeft':
- x += distance;
- y += height - textHeight - distance;
- break;
- case 'insideBottomRight':
- x += width - distance;
- y += height - textHeight - distance;
- textAlign = 'right';
- break;
- }
-
- return {
- x: x,
- y: y,
- textAlign: textAlign,
- textBaseline: 'top'
- };
- }
-
- /**
- * Show ellipsis if overflow.
- *
- * @param {string} text
- * @param {string} textFont
- * @param {string} containerWidth
- * @param {Object} [options]
- * @param {number} [options.ellipsis='...']
- * @param {number} [options.maxIterations=3]
- * @param {number} [options.minCharacters=3]
- * @return {string}
- */
- function textEllipsis(text, textFont, containerWidth, options) {
- if (!containerWidth) {
- return '';
- }
-
- options = util.defaults({
- ellipsis: '...',
- minCharacters: 3,
- maxIterations: 3,
- cnCharWidth: getTextWidth('国', textFont),
- // FIXME
- // 未考虑非等宽字体
- ascCharWidth: getTextWidth('a', textFont)
- }, options, true);
-
- containerWidth -= getTextWidth(options.ellipsis);
-
- var textLines = (text + '').split('\n');
-
- for (var i = 0, len = textLines.length; i < len; i++) {
- textLines[i] = textLineTruncate(
- textLines[i], textFont, containerWidth, options
- );
- }
-
- return textLines.join('\n');
- }
-
- function textLineTruncate(text, textFont, containerWidth, options) {
- // FIXME
- // 粗糙得写的,尚未考虑性能和各种语言、字体的效果。
- for (var i = 0;; i++) {
- var lineWidth = getTextWidth(text, textFont);
-
- if (lineWidth < containerWidth || i >= options.maxIterations) {
- text += options.ellipsis;
- break;
- }
-
- var subLength = i === 0
- ? estimateLength(text, containerWidth, options)
- : Math.floor(text.length * containerWidth / lineWidth);
-
- if (subLength < options.minCharacters) {
- text = '';
- break;
- }
-
- text = text.substr(0, subLength);
- }
-
- return text;
- }
-
- function estimateLength(text, containerWidth, options) {
- var width = 0;
- var i = 0;
- for (var len = text.length; i < len && width < containerWidth; i++) {
- var charCode = text.charCodeAt(i);
- width += (0 <= charCode && charCode <= 127)
- ? options.ascCharWidth : options.cnCharWidth;
- }
- return i;
- }
-
- var textContain = {
-
- getWidth: getTextWidth,
-
- getBoundingRect: getTextRect,
-
- adjustTextPositionOnRect: adjustTextPositionOnRect,
-
- ellipsis: textEllipsis,
-
- measureText: function (text, textFont) {
- var ctx = util.getContext();
- ctx.font = textFont;
- return ctx.measureText(text);
- }
- };
-
- module.exports = textContain;
-
-
-/***/ },
-/* 15 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * @module echarts/core/BoundingRect
- */
-
-
- var vec2 = __webpack_require__(16);
- var matrix = __webpack_require__(17);
-
- var v2ApplyTransform = vec2.applyTransform;
- var mathMin = Math.min;
- var mathAbs = Math.abs;
- var mathMax = Math.max;
- /**
- * @alias module:echarts/core/BoundingRect
- */
- function BoundingRect(x, y, width, height) {
- /**
- * @type {number}
- */
- this.x = x;
- /**
- * @type {number}
- */
- this.y = y;
- /**
- * @type {number}
- */
- this.width = width;
- /**
- * @type {number}
- */
- this.height = height;
- }
-
- BoundingRect.prototype = {
-
- constructor: BoundingRect,
-
- /**
- * @param {module:echarts/core/BoundingRect} other
- */
- union: function (other) {
- var x = mathMin(other.x, this.x);
- var y = mathMin(other.y, this.y);
-
- this.width = mathMax(
- other.x + other.width,
- this.x + this.width
- ) - x;
- this.height = mathMax(
- other.y + other.height,
- this.y + this.height
- ) - y;
- this.x = x;
- this.y = y;
- },
-
- /**
- * @param {Array.<number>} m
- * @methods
- */
- applyTransform: (function () {
- var min = [];
- var max = [];
- return function (m) {
- // In case usage like this
- // el.getBoundingRect().applyTransform(el.transform)
- // And element has no transform
- if (!m) {
- return;
- }
- min[0] = this.x;
- min[1] = this.y;
- max[0] = this.x + this.width;
- max[1] = this.y + this.height;
-
- v2ApplyTransform(min, min, m);
- v2ApplyTransform(max, max, m);
-
- this.x = mathMin(min[0], max[0]);
- this.y = mathMin(min[1], max[1]);
- this.width = mathAbs(max[0] - min[0]);
- this.height = mathAbs(max[1] - min[1]);
- };
- })(),
-
- /**
- * Calculate matrix of transforming from self to target rect
- * @param {module:zrender/core/BoundingRect} b
- * @return {Array.<number>}
- */
- calculateTransform: function (b) {
- var a = this;
- var sx = b.width / a.width;
- var sy = b.height / a.height;
-
- var m = matrix.create();
-
- // 矩阵右乘
- matrix.translate(m, m, [-a.x, -a.y]);
- matrix.scale(m, m, [sx, sy]);
- matrix.translate(m, m, [b.x, b.y]);
-
- return m;
- },
-
- /**
- * @param {(module:echarts/core/BoundingRect|Object)} b
- * @return {boolean}
- */
- intersect: function (b) {
- var a = this;
- var ax0 = a.x;
- var ax1 = a.x + a.width;
- var ay0 = a.y;
- var ay1 = a.y + a.height;
-
- var bx0 = b.x;
- var bx1 = b.x + b.width;
- var by0 = b.y;
- var by1 = b.y + b.height;
-
- return ! (ax1 < bx0 || bx1 < ax0 || ay1 < by0 || by1 < ay0);
- },
-
- contain: function (x, y) {
- var rect = this;
- return x >= rect.x
- && x <= (rect.x + rect.width)
- && y >= rect.y
- && y <= (rect.y + rect.height);
- },
-
- /**
- * @return {module:echarts/core/BoundingRect}
- */
- clone: function () {
- return new BoundingRect(this.x, this.y, this.width, this.height);
- },
-
- /**
- * Copy from another rect
- */
- copy: function (other) {
- this.x = other.x;
- this.y = other.y;
- this.width = other.width;
- this.height = other.height;
- }
- };
-
- module.exports = BoundingRect;
-
-
-/***/ },
-/* 16 */
-/***/ function(module, exports) {
-
-
- var ArrayCtor = typeof Float32Array === 'undefined'
- ? Array
- : Float32Array;
-
- /**
- * @typedef {Float32Array|Array.<number>} Vector2
- */
- /**
- * 二维向量类
- * @exports zrender/tool/vector
- */
- var vector = {
- /**
- * 创建一个向量
- * @param {number} [x=0]
- * @param {number} [y=0]
- * @return {Vector2}
- */
- create: function (x, y) {
- var out = new ArrayCtor(2);
- out[0] = x || 0;
- out[1] = y || 0;
- return out;
- },
-
- /**
- * 复制向量数据
- * @param {Vector2} out
- * @param {Vector2} v
- * @return {Vector2}
- */
- copy: function (out, v) {
- out[0] = v[0];
- out[1] = v[1];
- return out;
- },
-
- /**
- * 克隆一个向量
- * @param {Vector2} v
- * @return {Vector2}
- */
- clone: function (v) {
- var out = new ArrayCtor(2);
- out[0] = v[0];
- out[1] = v[1];
- return out;
- },
-
- /**
- * 设置向量的两个项
- * @param {Vector2} out
- * @param {number} a
- * @param {number} b
- * @return {Vector2} 结果
- */
- set: function (out, a, b) {
- out[0] = a;
- out[1] = b;
- return out;
- },
-
- /**
- * 向量相加
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- add: function (out, v1, v2) {
- out[0] = v1[0] + v2[0];
- out[1] = v1[1] + v2[1];
- return out;
- },
-
- /**
- * 向量缩放后相加
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- * @param {number} a
- */
- scaleAndAdd: function (out, v1, v2, a) {
- out[0] = v1[0] + v2[0] * a;
- out[1] = v1[1] + v2[1] * a;
- return out;
- },
-
- /**
- * 向量相减
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- sub: function (out, v1, v2) {
- out[0] = v1[0] - v2[0];
- out[1] = v1[1] - v2[1];
- return out;
- },
-
- /**
- * 向量长度
- * @param {Vector2} v
- * @return {number}
- */
- len: function (v) {
- return Math.sqrt(this.lenSquare(v));
- },
-
- /**
- * 向量长度平方
- * @param {Vector2} v
- * @return {number}
- */
- lenSquare: function (v) {
- return v[0] * v[0] + v[1] * v[1];
- },
-
- /**
- * 向量乘法
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- mul: function (out, v1, v2) {
- out[0] = v1[0] * v2[0];
- out[1] = v1[1] * v2[1];
- return out;
- },
-
- /**
- * 向量除法
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- div: function (out, v1, v2) {
- out[0] = v1[0] / v2[0];
- out[1] = v1[1] / v2[1];
- return out;
- },
-
- /**
- * 向量点乘
- * @param {Vector2} v1
- * @param {Vector2} v2
- * @return {number}
- */
- dot: function (v1, v2) {
- return v1[0] * v2[0] + v1[1] * v2[1];
- },
-
- /**
- * 向量缩放
- * @param {Vector2} out
- * @param {Vector2} v
- * @param {number} s
- */
- scale: function (out, v, s) {
- out[0] = v[0] * s;
- out[1] = v[1] * s;
- return out;
- },
-
- /**
- * 向量归一化
- * @param {Vector2} out
- * @param {Vector2} v
- */
- normalize: function (out, v) {
- var d = vector.len(v);
- if (d === 0) {
- out[0] = 0;
- out[1] = 0;
- }
- else {
- out[0] = v[0] / d;
- out[1] = v[1] / d;
- }
- return out;
- },
-
- /**
- * 计算向量间距离
- * @param {Vector2} v1
- * @param {Vector2} v2
- * @return {number}
- */
- distance: function (v1, v2) {
- return Math.sqrt(
- (v1[0] - v2[0]) * (v1[0] - v2[0])
- + (v1[1] - v2[1]) * (v1[1] - v2[1])
- );
- },
-
- /**
- * 向量距离平方
- * @param {Vector2} v1
- * @param {Vector2} v2
- * @return {number}
- */
- distanceSquare: function (v1, v2) {
- return (v1[0] - v2[0]) * (v1[0] - v2[0])
- + (v1[1] - v2[1]) * (v1[1] - v2[1]);
- },
-
- /**
- * 求负向量
- * @param {Vector2} out
- * @param {Vector2} v
- */
- negate: function (out, v) {
- out[0] = -v[0];
- out[1] = -v[1];
- return out;
- },
-
- /**
- * 插值两个点
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- * @param {number} t
- */
- lerp: function (out, v1, v2, t) {
- out[0] = v1[0] + t * (v2[0] - v1[0]);
- out[1] = v1[1] + t * (v2[1] - v1[1]);
- return out;
- },
-
- /**
- * 矩阵左乘向量
- * @param {Vector2} out
- * @param {Vector2} v
- * @param {Vector2} m
- */
- applyTransform: function (out, v, m) {
- var x = v[0];
- var y = v[1];
- out[0] = m[0] * x + m[2] * y + m[4];
- out[1] = m[1] * x + m[3] * y + m[5];
- return out;
- },
- /**
- * 求两个向量最小值
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- min: function (out, v1, v2) {
- out[0] = Math.min(v1[0], v2[0]);
- out[1] = Math.min(v1[1], v2[1]);
- return out;
- },
- /**
- * 求两个向量最大值
- * @param {Vector2} out
- * @param {Vector2} v1
- * @param {Vector2} v2
- */
- max: function (out, v1, v2) {
- out[0] = Math.max(v1[0], v2[0]);
- out[1] = Math.max(v1[1], v2[1]);
- return out;
- }
- };
-
- vector.length = vector.len;
- vector.lengthSquare = vector.lenSquare;
- vector.dist = vector.distance;
- vector.distSquare = vector.distanceSquare;
-
- module.exports = vector;
-
-
-
-/***/ },
-/* 17 */
-/***/ function(module, exports) {
-
-
- var ArrayCtor = typeof Float32Array === 'undefined'
- ? Array
- : Float32Array;
- /**
- * 3x2矩阵操作类
- * @exports zrender/tool/matrix
- */
- var matrix = {
- /**
- * 创建一个单位矩阵
- * @return {Float32Array|Array.<number>}
- */
- create : function() {
- var out = new ArrayCtor(6);
- matrix.identity(out);
-
- return out;
- },
- /**
- * 设置矩阵为单位矩阵
- * @param {Float32Array|Array.<number>} out
- */
- identity : function(out) {
- out[0] = 1;
- out[1] = 0;
- out[2] = 0;
- out[3] = 1;
- out[4] = 0;
- out[5] = 0;
- return out;
- },
- /**
- * 复制矩阵
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} m
- */
- copy: function(out, m) {
- out[0] = m[0];
- out[1] = m[1];
- out[2] = m[2];
- out[3] = m[3];
- out[4] = m[4];
- out[5] = m[5];
- return out;
- },
- /**
- * 矩阵相乘
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} m1
- * @param {Float32Array|Array.<number>} m2
- */
- mul : function (out, m1, m2) {
- // Consider matrix.mul(m, m2, m);
- // where out is the same as m2.
- // So use temp variable to escape error.
- var out0 = m1[0] * m2[0] + m1[2] * m2[1];
- var out1 = m1[1] * m2[0] + m1[3] * m2[1];
- var out2 = m1[0] * m2[2] + m1[2] * m2[3];
- var out3 = m1[1] * m2[2] + m1[3] * m2[3];
- var out4 = m1[0] * m2[4] + m1[2] * m2[5] + m1[4];
- var out5 = m1[1] * m2[4] + m1[3] * m2[5] + m1[5];
- out[0] = out0;
- out[1] = out1;
- out[2] = out2;
- out[3] = out3;
- out[4] = out4;
- out[5] = out5;
- return out;
- },
- /**
- * 平移变换
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} a
- * @param {Float32Array|Array.<number>} v
- */
- translate : function(out, a, v) {
- out[0] = a[0];
- out[1] = a[1];
- out[2] = a[2];
- out[3] = a[3];
- out[4] = a[4] + v[0];
- out[5] = a[5] + v[1];
- return out;
- },
- /**
- * 旋转变换
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} a
- * @param {number} rad
- */
- rotate : function(out, a, rad) {
- var aa = a[0];
- var ac = a[2];
- var atx = a[4];
- var ab = a[1];
- var ad = a[3];
- var aty = a[5];
- var st = Math.sin(rad);
- var ct = Math.cos(rad);
-
- out[0] = aa * ct + ab * st;
- out[1] = -aa * st + ab * ct;
- out[2] = ac * ct + ad * st;
- out[3] = -ac * st + ct * ad;
- out[4] = ct * atx + st * aty;
- out[5] = ct * aty - st * atx;
- return out;
- },
- /**
- * 缩放变换
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} a
- * @param {Float32Array|Array.<number>} v
- */
- scale : function(out, a, v) {
- var vx = v[0];
- var vy = v[1];
- out[0] = a[0] * vx;
- out[1] = a[1] * vy;
- out[2] = a[2] * vx;
- out[3] = a[3] * vy;
- out[4] = a[4] * vx;
- out[5] = a[5] * vy;
- return out;
- },
- /**
- * 求逆矩阵
- * @param {Float32Array|Array.<number>} out
- * @param {Float32Array|Array.<number>} a
- */
- invert : function(out, a) {
-
- var aa = a[0];
- var ac = a[2];
- var atx = a[4];
- var ab = a[1];
- var ad = a[3];
- var aty = a[5];
-
- var det = aa * ad - ab * ac;
- if (!det) {
- return null;
- }
- det = 1.0 / det;
-
- out[0] = ad * det;
- out[1] = -ab * det;
- out[2] = -ac * det;
- out[3] = aa * det;
- out[4] = (ac * aty - ad * atx) * det;
- out[5] = (ab * atx - aa * aty) * det;
- return out;
- }
- };
-
- module.exports = matrix;
-
-
-
-/***/ },
-/* 18 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- module.exports = {
- getItemStyle: __webpack_require__(11)(
- [
- ['fill', 'color'],
- ['stroke', 'borderColor'],
- ['lineWidth', 'borderWidth'],
- ['opacity'],
- ['shadowBlur'],
- ['shadowOffsetX'],
- ['shadowOffsetY'],
- ['shadowColor']
- ]
- )
- };
-
-
-/***/ },
-/* 19 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Component model
- *
- * @module echarts/model/Component
- */
-
-
- var Model = __webpack_require__(8);
- var zrUtil = __webpack_require__(3);
- var arrayPush = Array.prototype.push;
- var componentUtil = __webpack_require__(20);
- var clazzUtil = __webpack_require__(9);
- var layout = __webpack_require__(21);
-
- /**
- * @alias module:echarts/model/Component
- * @constructor
- * @param {Object} option
- * @param {module:echarts/model/Model} parentModel
- * @param {module:echarts/model/Model} ecModel
- */
- var ComponentModel = Model.extend({
-
- type: 'component',
-
- /**
- * @readOnly
- * @type {string}
- */
- id: '',
-
- /**
- * @readOnly
- */
- name: '',
-
- /**
- * @readOnly
- * @type {string}
- */
- mainType: '',
-
- /**
- * @readOnly
- * @type {string}
- */
- subType: '',
-
- /**
- * @readOnly
- * @type {number}
- */
- componentIndex: 0,
-
- /**
- * @type {Object}
- * @protected
- */
- defaultOption: null,
-
- /**
- * @type {module:echarts/model/Global}
- * @readOnly
- */
- ecModel: null,
-
- /**
- * key: componentType
- * value: Component model list, can not be null.
- * @type {Object.<string, Array.<module:echarts/model/Model>>}
- * @readOnly
- */
- dependentModels: [],
-
- /**
- * @type {string}
- * @readOnly
- */
- uid: null,
-
- /**
- * Support merge layout params.
- * Only support 'box' now (left/right/top/bottom/width/height).
- * @type {string|Object} Object can be {ignoreSize: true}
- * @readOnly
- */
- layoutMode: null,
-
-
- init: function (option, parentModel, ecModel, extraOpt) {
- this.mergeDefaultAndTheme(this.option, this.ecModel);
- },
-
- mergeDefaultAndTheme: function (option, ecModel) {
- var layoutMode = this.layoutMode;
- var inputPositionParams = layoutMode
- ? layout.getLayoutParams(option) : {};
-
- var themeModel = ecModel.getTheme();
- zrUtil.merge(option, themeModel.get(this.mainType));
- zrUtil.merge(option, this.getDefaultOption());
-
- if (layoutMode) {
- layout.mergeLayoutParam(option, inputPositionParams, layoutMode);
- }
- },
-
- mergeOption: function (option) {
- zrUtil.merge(this.option, option, true);
-
- var layoutMode = this.layoutMode;
- if (layoutMode) {
- layout.mergeLayoutParam(this.option, option, layoutMode);
- }
- },
-
- // Hooker after init or mergeOption
- optionUpdated: function (ecModel) {},
-
- getDefaultOption: function () {
- if (!this.hasOwnProperty('__defaultOption')) {
- var optList = [];
- var Class = this.constructor;
- while (Class) {
- var opt = Class.prototype.defaultOption;
- opt && optList.push(opt);
- Class = Class.superClass;
- }
-
- var defaultOption = {};
- for (var i = optList.length - 1; i >= 0; i--) {
- defaultOption = zrUtil.merge(defaultOption, optList[i], true);
- }
- this.__defaultOption = defaultOption;
- }
- return this.__defaultOption;
- }
-
- });
-
- // Reset ComponentModel.extend, add preConstruct.
- clazzUtil.enableClassExtend(
- ComponentModel,
- function (option, parentModel, ecModel, extraOpt) {
- // Set dependentModels, componentIndex, name, id, mainType, subType.
- zrUtil.extend(this, extraOpt);
-
- this.uid = componentUtil.getUID('componentModel');
-
- // this.setReadOnly([
- // 'type', 'id', 'uid', 'name', 'mainType', 'subType',
- // 'dependentModels', 'componentIndex'
- // ]);
- }
- );
-
- // Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
- clazzUtil.enableClassManagement(
- ComponentModel, {registerWhenExtend: true}
- );
- componentUtil.enableSubTypeDefaulter(ComponentModel);
-
- // Add capability of ComponentModel.topologicalTravel.
- componentUtil.enableTopologicalTravel(ComponentModel, getDependencies);
-
- function getDependencies(componentType) {
- var deps = [];
- zrUtil.each(ComponentModel.getClassesByMainType(componentType), function (Clazz) {
- arrayPush.apply(deps, Clazz.prototype.dependencies || []);
- });
- // Ensure main type
- return zrUtil.map(deps, function (type) {
- return clazzUtil.parseClassType(type).main;
- });
- }
-
- zrUtil.mixin(ComponentModel, __webpack_require__(22));
-
- module.exports = ComponentModel;
-
-
-/***/ },
-/* 20 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var clazz = __webpack_require__(9);
-
- var parseClassType = clazz.parseClassType;
-
- var base = 0;
-
- var componentUtil = {};
-
- var DELIMITER = '_';
-
- /**
- * @public
- * @param {string} type
- * @return {string}
- */
- componentUtil.getUID = function (type) {
- // Considering the case of crossing js context,
- // use Math.random to make id as unique as possible.
- return [(type || ''), base++, Math.random()].join(DELIMITER);
- };
-
- /**
- * @inner
- */
- componentUtil.enableSubTypeDefaulter = function (entity) {
-
- var subTypeDefaulters = {};
-
- entity.registerSubTypeDefaulter = function (componentType, defaulter) {
- componentType = parseClassType(componentType);
- subTypeDefaulters[componentType.main] = defaulter;
- };
-
- entity.determineSubType = function (componentType, option) {
- var type = option.type;
- if (!type) {
- var componentTypeMain = parseClassType(componentType).main;
- if (entity.hasSubTypes(componentType) && subTypeDefaulters[componentTypeMain]) {
- type = subTypeDefaulters[componentTypeMain](option);
- }
- }
- return type;
- };
-
- return entity;
- };
-
- /**
- * Topological travel on Activity Network (Activity On Vertices).
- * Dependencies is defined in Model.prototype.dependencies, like ['xAxis', 'yAxis'].
- *
- * If 'xAxis' or 'yAxis' is absent in componentTypeList, just ignore it in topology.
- *
- * If there is circle dependencey, Error will be thrown.
- *
- */
- componentUtil.enableTopologicalTravel = function (entity, dependencyGetter) {
-
- /**
- * @public
- * @param {Array.<string>} targetNameList Target Component type list.
- * Can be ['aa', 'bb', 'aa.xx']
- * @param {Array.<string>} fullNameList By which we can build dependency graph.
- * @param {Function} callback Params: componentType, dependencies.
- * @param {Object} context Scope of callback.
- */
- entity.topologicalTravel = function (targetNameList, fullNameList, callback, context) {
- if (!targetNameList.length) {
- return;
- }
-
- var result = makeDepndencyGraph(fullNameList);
- var graph = result.graph;
- var stack = result.noEntryList;
-
- var targetNameSet = {};
- zrUtil.each(targetNameList, function (name) {
- targetNameSet[name] = true;
- });
-
- while (stack.length) {
- var currComponentType = stack.pop();
- var currVertex = graph[currComponentType];
- var isInTargetNameSet = !!targetNameSet[currComponentType];
- if (isInTargetNameSet) {
- callback.call(context, currComponentType, currVertex.originalDeps.slice());
- delete targetNameSet[currComponentType];
- }
- zrUtil.each(
- currVertex.successor,
- isInTargetNameSet ? removeEdgeAndAdd : removeEdge
- );
- }
-
- zrUtil.each(targetNameSet, function () {
- throw new Error('Circle dependency may exists');
- });
-
- function removeEdge(succComponentType) {
- graph[succComponentType].entryCount--;
- if (graph[succComponentType].entryCount === 0) {
- stack.push(succComponentType);
- }
- }
-
- // Consider this case: legend depends on series, and we call
- // chart.setOption({series: [...]}), where only series is in option.
- // If we do not have 'removeEdgeAndAdd', legendModel.mergeOption will
- // not be called, but only sereis.mergeOption is called. Thus legend
- // have no chance to update its local record about series (like which
- // name of series is available in legend).
- function removeEdgeAndAdd(succComponentType) {
- targetNameSet[succComponentType] = true;
- removeEdge(succComponentType);
- }
- };
-
- /**
- * DepndencyGraph: {Object}
- * key: conponentType,
- * value: {
- * successor: [conponentTypes...],
- * originalDeps: [conponentTypes...],
- * entryCount: {number}
- * }
- */
- function makeDepndencyGraph(fullNameList) {
- var graph = {};
- var noEntryList = [];
-
- zrUtil.each(fullNameList, function (name) {
-
- var thisItem = createDependencyGraphItem(graph, name);
- var originalDeps = thisItem.originalDeps = dependencyGetter(name);
-
- var availableDeps = getAvailableDependencies(originalDeps, fullNameList);
- thisItem.entryCount = availableDeps.length;
- if (thisItem.entryCount === 0) {
- noEntryList.push(name);
- }
-
- zrUtil.each(availableDeps, function (dependentName) {
- if (zrUtil.indexOf(thisItem.predecessor, dependentName) < 0) {
- thisItem.predecessor.push(dependentName);
- }
- var thatItem = createDependencyGraphItem(graph, dependentName);
- if (zrUtil.indexOf(thatItem.successor, dependentName) < 0) {
- thatItem.successor.push(name);
- }
- });
- });
-
- return {graph: graph, noEntryList: noEntryList};
- }
-
- function createDependencyGraphItem(graph, name) {
- if (!graph[name]) {
- graph[name] = {predecessor: [], successor: []};
- }
- return graph[name];
- }
-
- function getAvailableDependencies(originalDeps, fullNameList) {
- var availableDeps = [];
- zrUtil.each(originalDeps, function (dep) {
- zrUtil.indexOf(fullNameList, dep) >= 0 && availableDeps.push(dep);
- });
- return availableDeps;
- }
- };
-
- module.exports = componentUtil;
-
-
-/***/ },
-/* 21 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- // Layout helpers for each component positioning
-
-
- var zrUtil = __webpack_require__(3);
- var BoundingRect = __webpack_require__(15);
- var numberUtil = __webpack_require__(7);
- var formatUtil = __webpack_require__(6);
- var parsePercent = numberUtil.parsePercent;
- var each = zrUtil.each;
-
- var layout = {};
-
- var LOCATION_PARAMS = ['left', 'right', 'top', 'bottom', 'width', 'height'];
-
- function boxLayout(orient, group, gap, maxWidth, maxHeight) {
- var x = 0;
- var y = 0;
- if (maxWidth == null) {
- maxWidth = Infinity;
- }
- if (maxHeight == null) {
- maxHeight = Infinity;
- }
- var currentLineMaxSize = 0;
- group.eachChild(function (child, idx) {
- var position = child.position;
- var rect = child.getBoundingRect();
- var nextChild = group.childAt(idx + 1);
- var nextChildRect = nextChild && nextChild.getBoundingRect();
- var nextX;
- var nextY;
- if (orient === 'horizontal') {
- var moveX = rect.width + (nextChildRect ? (-nextChildRect.x + rect.x) : 0);
- nextX = x + moveX;
- // Wrap when width exceeds maxWidth or meet a `newline` group
- if (nextX > maxWidth || child.newline) {
- x = 0;
- nextX = moveX;
- y += currentLineMaxSize + gap;
- currentLineMaxSize = rect.height;
- }
- else {
- currentLineMaxSize = Math.max(currentLineMaxSize, rect.height);
- }
- }
- else {
- var moveY = rect.height + (nextChildRect ? (-nextChildRect.y + rect.y) : 0);
- nextY = y + moveY;
- // Wrap when width exceeds maxHeight or meet a `newline` group
- if (nextY > maxHeight || child.newline) {
- x += currentLineMaxSize + gap;
- y = 0;
- nextY = moveY;
- currentLineMaxSize = rect.width;
- }
- else {
- currentLineMaxSize = Math.max(currentLineMaxSize, rect.width);
- }
- }
-
- if (child.newline) {
- return;
- }
-
- position[0] = x;
- position[1] = y;
-
- orient === 'horizontal'
- ? (x = nextX + gap)
- : (y = nextY + gap);
- });
- }
-
- /**
- * VBox or HBox layouting
- * @param {string} orient
- * @param {module:zrender/container/Group} group
- * @param {number} gap
- * @param {number} [width=Infinity]
- * @param {number} [height=Infinity]
- */
- layout.box = boxLayout;
-
- /**
- * VBox layouting
- * @param {module:zrender/container/Group} group
- * @param {number} gap
- * @param {number} [width=Infinity]
- * @param {number} [height=Infinity]
- */
- layout.vbox = zrUtil.curry(boxLayout, 'vertical');
-
- /**
- * HBox layouting
- * @param {module:zrender/container/Group} group
- * @param {number} gap
- * @param {number} [width=Infinity]
- * @param {number} [height=Infinity]
- */
- layout.hbox = zrUtil.curry(boxLayout, 'horizontal');
-
- /**
- * If x or x2 is not specified or 'center' 'left' 'right',
- * the width would be as long as possible.
- * If y or y2 is not specified or 'middle' 'top' 'bottom',
- * the height would be as long as possible.
- *
- * @param {Object} positionInfo
- * @param {number|string} [positionInfo.x]
- * @param {number|string} [positionInfo.y]
- * @param {number|string} [positionInfo.x2]
- * @param {number|string} [positionInfo.y2]
- * @param {Object} containerRect
- * @param {string|number} margin
- * @return {Object} {width, height}
- */
- layout.getAvailableSize = function (positionInfo, containerRect, margin) {
- var containerWidth = containerRect.width;
- var containerHeight = containerRect.height;
-
- var x = parsePercent(positionInfo.x, containerWidth);
- var y = parsePercent(positionInfo.y, containerHeight);
- var x2 = parsePercent(positionInfo.x2, containerWidth);
- var y2 = parsePercent(positionInfo.y2, containerHeight);
-
- (isNaN(x) || isNaN(parseFloat(positionInfo.x))) && (x = 0);
- (isNaN(x2) || isNaN(parseFloat(positionInfo.x2))) && (x2 = containerWidth);
- (isNaN(y) || isNaN(parseFloat(positionInfo.y))) && (y = 0);
- (isNaN(y2) || isNaN(parseFloat(positionInfo.y2))) && (y2 = containerHeight);
-
- margin = formatUtil.normalizeCssArray(margin || 0);
-
- return {
- width: Math.max(x2 - x - margin[1] - margin[3], 0),
- height: Math.max(y2 - y - margin[0] - margin[2], 0)
- };
- };
-
- /**
- * Parse position info.
- *
- * @param {Object} positionInfo
- * @param {number|string} [positionInfo.left]
- * @param {number|string} [positionInfo.top]
- * @param {number|string} [positionInfo.right]
- * @param {number|string} [positionInfo.bottom]
- * @param {number|string} [positionInfo.width]
- * @param {number|string} [positionInfo.height]
- * @param {number|string} [positionInfo.aspect] Aspect is width / height
- * @param {Object} containerRect
- * @param {string|number} [margin]
- *
- * @return {module:zrender/core/BoundingRect}
- */
- layout.getLayoutRect = function (
- positionInfo, containerRect, margin
- ) {
- margin = formatUtil.normalizeCssArray(margin || 0);
-
- var containerWidth = containerRect.width;
- var containerHeight = containerRect.height;
-
- var left = parsePercent(positionInfo.left, containerWidth);
- var top = parsePercent(positionInfo.top, containerHeight);
- var right = parsePercent(positionInfo.right, containerWidth);
- var bottom = parsePercent(positionInfo.bottom, containerHeight);
- var width = parsePercent(positionInfo.width, containerWidth);
- var height = parsePercent(positionInfo.height, containerHeight);
-
- var verticalMargin = margin[2] + margin[0];
- var horizontalMargin = margin[1] + margin[3];
- var aspect = positionInfo.aspect;
-
- // If width is not specified, calculate width from left and right
- if (isNaN(width)) {
- width = containerWidth - right - horizontalMargin - left;
- }
- if (isNaN(height)) {
- height = containerHeight - bottom - verticalMargin - top;
- }
-
- // If width and height are not given
- // 1. Graph should not exceeds the container
- // 2. Aspect must be keeped
- // 3. Graph should take the space as more as possible
- if (isNaN(width) && isNaN(height)) {
- if (aspect > containerWidth / containerHeight) {
- width = containerWidth * 0.8;
- }
- else {
- height = containerHeight * 0.8;
- }
- }
-
- if (aspect != null) {
- // Calculate width or height with given aspect
- if (isNaN(width)) {
- width = aspect * height;
- }
- if (isNaN(height)) {
- height = width / aspect;
- }
- }
-
- // If left is not specified, calculate left from right and width
- if (isNaN(left)) {
- left = containerWidth - right - width - horizontalMargin;
- }
- if (isNaN(top)) {
- top = containerHeight - bottom - height - verticalMargin;
- }
-
- // Align left and top
- switch (positionInfo.left || positionInfo.right) {
- case 'center':
- left = containerWidth / 2 - width / 2 - margin[3];
- break;
- case 'right':
- left = containerWidth - width - horizontalMargin;
- break;
- }
- switch (positionInfo.top || positionInfo.bottom) {
- case 'middle':
- case 'center':
- top = containerHeight / 2 - height / 2 - margin[0];
- break;
- case 'bottom':
- top = containerHeight - height - verticalMargin;
- break;
- }
- // If something is wrong and left, top, width, height are calculated as NaN
- left = left || 0;
- top = top || 0;
- if (isNaN(width)) {
- // Width may be NaN if only one value is given except width
- width = containerWidth - left - (right || 0);
- }
- if (isNaN(height)) {
- // Height may be NaN if only one value is given except height
- height = containerHeight - top - (bottom || 0);
- }
-
- var rect = new BoundingRect(left + margin[3], top + margin[0], width, height);
- rect.margin = margin;
- return rect;
- };
-
- /**
- * Position group of component in viewport
- * Group position is specified by either
- * {left, top}, {right, bottom}
- * If all properties exists, right and bottom will be igonred.
- *
- * @param {module:zrender/container/Group} group
- * @param {Object} positionInfo
- * @param {number|string} [positionInfo.left]
- * @param {number|string} [positionInfo.top]
- * @param {number|string} [positionInfo.right]
- * @param {number|string} [positionInfo.bottom]
- * @param {Object} containerRect
- * @param {string|number} margin
- */
- layout.positionGroup = function (
- group, positionInfo, containerRect, margin
- ) {
- var groupRect = group.getBoundingRect();
-
- positionInfo = zrUtil.extend(zrUtil.clone(positionInfo), {
- width: groupRect.width,
- height: groupRect.height
- });
-
- positionInfo = layout.getLayoutRect(
- positionInfo, containerRect, margin
- );
-
- group.position = [
- positionInfo.x - groupRect.x,
- positionInfo.y - groupRect.y
- ];
- };
-
- /**
- * Consider Case:
- * When defulat option has {left: 0, width: 100}, and we set {right: 0}
- * through setOption or media query, using normal zrUtil.merge will cause
- * {right: 0} does not take effect.
- *
- * @example
- * ComponentModel.extend({
- * init: function () {
- * ...
- * var inputPositionParams = layout.getLayoutParams(option);
- * this.mergeOption(inputPositionParams);
- * },
- * mergeOption: function (newOption) {
- * newOption && zrUtil.merge(thisOption, newOption, true);
- * layout.mergeLayoutParam(thisOption, newOption);
- * }
- * });
- *
- * @param {Object} targetOption
- * @param {Object} newOption
- * @param {Object|string} [opt]
- * @param {boolean} [opt.ignoreSize=false] Some component must has width and height.
- */
- layout.mergeLayoutParam = function (targetOption, newOption, opt) {
- !zrUtil.isObject(opt) && (opt = {});
- var hNames = ['width', 'left', 'right']; // Order by priority.
- var vNames = ['height', 'top', 'bottom']; // Order by priority.
- var hResult = merge(hNames);
- var vResult = merge(vNames);
-
- copy(hNames, targetOption, hResult);
- copy(vNames, targetOption, vResult);
-
- function merge(names) {
- var newParams = {};
- var newValueCount = 0;
- var merged = {};
- var mergedValueCount = 0;
- var enoughParamNumber = opt.ignoreSize ? 1 : 2;
-
- each(names, function (name) {
- merged[name] = targetOption[name];
- });
- each(names, function (name) {
- // Consider case: newOption.width is null, which is
- // set by user for removing width setting.
- hasProp(newOption, name) && (newParams[name] = merged[name] = newOption[name]);
- hasValue(newParams, name) && newValueCount++;
- hasValue(merged, name) && mergedValueCount++;
- });
-
- // Case: newOption: {width: ..., right: ...},
- // or targetOption: {right: ...} and newOption: {width: ...},
- // There is no conflict when merged only has params count
- // little than enoughParamNumber.
- if (mergedValueCount === enoughParamNumber || !newValueCount) {
- return merged;
- }
- // Case: newOption: {width: ..., right: ...},
- // Than we can make sure user only want those two, and ignore
- // all origin params in targetOption.
- else if (newValueCount >= enoughParamNumber) {
- return newParams;
- }
- else {
- // Chose another param from targetOption by priority.
- // When 'ignoreSize', enoughParamNumber is 1 and those will not happen.
- for (var i = 0; i < names.length; i++) {
- var name = names[i];
- if (!hasProp(newParams, name) && hasProp(targetOption, name)) {
- newParams[name] = targetOption[name];
- break;
- }
- }
- return newParams;
- }
- }
-
- function hasProp(obj, name) {
- return obj.hasOwnProperty(name);
- }
-
- function hasValue(obj, name) {
- return obj[name] != null && obj[name] !== 'auto';
- }
-
- function copy(names, target, source) {
- each(names, function (name) {
- target[name] = source[name];
- });
- }
- };
-
- /**
- * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
- * @param {Object} source
- * @return {Object} Result contains those props.
- */
- layout.getLayoutParams = function (source) {
- return layout.copyLayoutParams({}, source);
- };
-
- /**
- * Retrieve 'left', 'right', 'top', 'bottom', 'width', 'height' from object.
- * @param {Object} source
- * @return {Object} Result contains those props.
- */
- layout.copyLayoutParams = function (target, source) {
- source && target && each(LOCATION_PARAMS, function (name) {
- source.hasOwnProperty(name) && (target[name] = source[name]);
- });
- return target;
- };
-
- module.exports = layout;
-
-
-/***/ },
-/* 22 */
-/***/ function(module, exports) {
-
-
-
- module.exports = {
- getBoxLayoutParams: function () {
- return {
- left: this.get('left'),
- top: this.get('top'),
- right: this.get('right'),
- bottom: this.get('bottom'),
- width: this.get('width'),
- height: this.get('height')
- };
- }
- };
-
-
-/***/ },
-/* 23 */
-/***/ function(module, exports) {
-
-
- var platform = '';
- // Navigator not exists in node
- if (typeof navigator !== 'undefined') {
- platform = navigator.platform || '';
- }
- module.exports = {
- // 全图默认背景
- // backgroundColor: 'rgba(0,0,0,0)',
-
- // https://dribbble.com/shots/1065960-Infographic-Pie-chart-visualization
- // color: ['#5793f3', '#d14a61', '#fd9c35', '#675bba', '#fec42c', '#dd4444', '#d4df5a', '#cd4870'],
- // 浅色
- // color: ['#bcd3bb', '#e88f70', '#edc1a5', '#9dc5c8', '#e1e8c8', '#7b7c68', '#e5b5b5', '#f0b489', '#928ea8', '#bda29a'],
- // color: ['#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'],
- // 深色
- color: ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622', '#bda29a','#6e7074', '#546570', '#c4ccd3'],
-
- // 默认需要 Grid 配置项
- grid: {},
- // 主题,主题
- textStyle: {
- // color: '#000',
- // decoration: 'none',
- // PENDING
- fontFamily: platform.match(/^Win/) ? 'Microsoft YaHei' : 'sans-serif',
- // fontFamily: 'Arial, Verdana, sans-serif',
- fontSize: 12,
- fontStyle: 'normal',
- fontWeight: 'normal'
- },
- // 主题,默认标志图形类型列表
- // symbolList: [
- // 'circle', 'rectangle', 'triangle', 'diamond',
- // 'emptyCircle', 'emptyRectangle', 'emptyTriangle', 'emptyDiamond'
- // ],
- animation: true, // 过渡动画是否开启
- animationThreshold: 2000, // 动画元素阀值,产生的图形原素超过2000不出动画
- animationDuration: 1000, // 过渡动画参数:进入
- animationDurationUpdate: 300, // 过渡动画参数:更新
- animationEasing: 'exponentialOut', //BounceOut
- animationEasingUpdate: 'cubicOut'
- };
-
-
-/***/ },
-/* 24 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
-
- var echartsAPIList = [
- 'getDom', 'getZr', 'getWidth', 'getHeight', 'dispatchAction',
- 'on', 'off', 'getDataURL', 'getConnectedDataURL', 'getModel', 'getOption'
- ];
-
- function ExtensionAPI(chartInstance) {
- zrUtil.each(echartsAPIList, function (name) {
- this[name] = zrUtil.bind(chartInstance[name], chartInstance);
- }, this);
- }
-
- module.exports = ExtensionAPI;
-
-
-/***/ },
-/* 25 */
-/***/ function(module, exports) {
-
- 'use strict';
-
-
- // var zrUtil = require('zrender/lib/core/util');
- var coordinateSystemCreators = {};
-
- function CoordinateSystemManager() {
-
- this._coordinateSystems = [];
- }
-
- CoordinateSystemManager.prototype = {
-
- constructor: CoordinateSystemManager,
-
- create: function (ecModel, api) {
- var coordinateSystems = [];
- for (var type in coordinateSystemCreators) {
- var list = coordinateSystemCreators[type].create(ecModel, api);
- list && (coordinateSystems = coordinateSystems.concat(list));
- }
-
- this._coordinateSystems = coordinateSystems;
- },
-
- update: function (ecModel, api) {
- var coordinateSystems = this._coordinateSystems;
- for (var i = 0; i < coordinateSystems.length; i++) {
- // FIXME MUST have
- coordinateSystems[i].update && coordinateSystems[i].update(ecModel, api);
- }
- }
- };
-
- CoordinateSystemManager.register = function (type, coordinateSystemCreator) {
- coordinateSystemCreators[type] = coordinateSystemCreator;
- };
-
- CoordinateSystemManager.get = function (type) {
- return coordinateSystemCreators[type];
- };
-
- module.exports = CoordinateSystemManager;
-
-
-/***/ },
-/* 26 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * ECharts option manager
- *
- * @module {echarts/model/OptionManager}
- */
-
-
-
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var ComponentModel = __webpack_require__(19);
- var each = zrUtil.each;
- var clone = zrUtil.clone;
- var map = zrUtil.map;
- var merge = zrUtil.merge;
-
- var QUERY_REG = /^(min|max)?(.+)$/;
-
- /**
- * TERM EXPLANATIONS:
- *
- * [option]:
- *
- * An object that contains definitions of components. For example:
- * var option = {
- * title: {...},
- * legend: {...},
- * visualMap: {...},
- * series: [
- * {data: [...]},
- * {data: [...]},
- * ...
- * ]
- * };
- *
- * [rawOption]:
- *
- * An object input to echarts.setOption. 'rawOption' may be an
- * 'option', or may be an object contains multi-options. For example:
- * var option = {
- * baseOption: {
- * title: {...},
- * legend: {...},
- * series: [
- * {data: [...]},
- * {data: [...]},
- * ...
- * ]
- * },
- * timeline: {...},
- * options: [
- * {title: {...}, series: {data: [...]}},
- * {title: {...}, series: {data: [...]}},
- * ...
- * ],
- * media: [
- * {
- * query: {maxWidth: 320},
- * option: {series: {x: 20}, visualMap: {show: false}}
- * },
- * {
- * query: {minWidth: 320, maxWidth: 720},
- * option: {series: {x: 500}, visualMap: {show: true}}
- * },
- * {
- * option: {series: {x: 1200}, visualMap: {show: true}}
- * }
- * ]
- * };
- *
- * @alias module:echarts/model/OptionManager
- * @param {module:echarts/ExtensionAPI} api
- */
- function OptionManager(api) {
-
- /**
- * @private
- * @type {module:echarts/ExtensionAPI}
- */
- this._api = api;
-
- /**
- * @private
- * @type {Array.<number>}
- */
- this._timelineOptions = [];
-
- /**
- * @private
- * @type {Array.<Object>}
- */
- this._mediaList = [];
-
- /**
- * @private
- * @type {Object}
- */
- this._mediaDefault;
-
- /**
- * -1, means default.
- * empty means no media.
- * @private
- * @type {Array.<number>}
- */
- this._currentMediaIndices = [];
-
- /**
- * @private
- * @type {Object}
- */
- this._optionBackup;
-
- /**
- * @private
- * @type {Object}
- */
- this._newOptionBackup;
- }
-
- // timeline.notMerge is not supported in ec3. Firstly there is rearly
- // case that notMerge is needed. Secondly supporting 'notMerge' requires
- // rawOption cloned and backuped when timeline changed, which does no
- // good to performance. What's more, that both timeline and setOption
- // method supply 'notMerge' brings complex and some problems.
- // Consider this case:
- // (step1) chart.setOption({timeline: {notMerge: false}, ...}, false);
- // (step2) chart.setOption({timeline: {notMerge: true}, ...}, false);
-
- OptionManager.prototype = {
-
- constructor: OptionManager,
-
- /**
- * @public
- * @param {Object} rawOption Raw option.
- * @param {module:echarts/model/Global} ecModel
- * @param {Array.<Function>} optionPreprocessorFuncs
- * @return {Object} Init option
- */
- setOption: function (rawOption, optionPreprocessorFuncs) {
- rawOption = clone(rawOption, true);
-
- // FIXME
- // 如果 timeline options 或者 media 中设置了某个属性,而baseOption中没有设置,则进行警告。
-
- var oldOptionBackup = this._optionBackup;
- var newOptionBackup = this._newOptionBackup = parseRawOption.call(
- this, rawOption, optionPreprocessorFuncs
- );
-
- // For setOption at second time (using merge mode);
- if (oldOptionBackup) {
- // Only baseOption can be merged.
- mergeOption(oldOptionBackup.baseOption, newOptionBackup.baseOption);
-
- if (newOptionBackup.timelineOptions.length) {
- oldOptionBackup.timelineOptions = newOptionBackup.timelineOptions;
- }
- if (newOptionBackup.mediaList.length) {
- oldOptionBackup.mediaList = newOptionBackup.mediaList;
- }
- if (newOptionBackup.mediaDefault) {
- oldOptionBackup.mediaDefault = newOptionBackup.mediaDefault;
- }
- }
- else {
- this._optionBackup = newOptionBackup;
- }
- },
-
- /**
- * @param {boolean} isRecreate
- * @return {Object}
- */
- mountOption: function (isRecreate) {
- var optionBackup = isRecreate
- // this._optionBackup can be only used when recreate.
- // In other cases we use model.mergeOption to handle merge.
- ? this._optionBackup : this._newOptionBackup;
-
- // FIXME
- // 如果没有reset功能则不clone。
-
- this._timelineOptions = map(optionBackup.timelineOptions, clone);
- this._mediaList = map(optionBackup.mediaList, clone);
- this._mediaDefault = clone(optionBackup.mediaDefault);
- this._currentMediaIndices = [];
-
- return clone(optionBackup.baseOption);
- },
-
- /**
- * @param {module:echarts/model/Global} ecModel
- * @return {Object}
- */
- getTimelineOption: function (ecModel) {
- var option;
- var timelineOptions = this._timelineOptions;
-
- if (timelineOptions.length) {
- // getTimelineOption can only be called after ecModel inited,
- // so we can get currentIndex from timelineModel.
- var timelineModel = ecModel.getComponent('timeline');
- if (timelineModel) {
- option = clone(
- timelineOptions[timelineModel.getCurrentIndex()],
- true
- );
- }
- }
-
- return option;
- },
-
- /**
- * @param {module:echarts/model/Global} ecModel
- * @return {Array.<Object>}
- */
- getMediaOption: function (ecModel) {
- var ecWidth = this._api.getWidth();
- var ecHeight = this._api.getHeight();
- var mediaList = this._mediaList;
- var mediaDefault = this._mediaDefault;
- var indices = [];
- var result = [];
-
- // No media defined.
- if (!mediaList.length && !mediaDefault) {
- return result;
- }
-
- // Multi media may be applied, the latter defined media has higher priority.
- for (var i = 0, len = mediaList.length; i < len; i++) {
- if (applyMediaQuery(mediaList[i].query, ecWidth, ecHeight)) {
- indices.push(i);
- }
- }
-
- // FIXME
- // 是否mediaDefault应该强制用户设置,否则可能修改不能回归。
- if (!indices.length && mediaDefault) {
- indices = [-1];
- }
-
- if (indices.length && !indicesEquals(indices, this._currentMediaIndices)) {
- result = map(indices, function (index) {
- return clone(
- index === -1 ? mediaDefault.option : mediaList[index].option
- );
- });
- }
- // Otherwise return nothing.
-
- this._currentMediaIndices = indices;
-
- return result;
- }
- };
-
- function parseRawOption(rawOption, optionPreprocessorFuncs) {
- var timelineOptions = [];
- var mediaList = [];
- var mediaDefault;
- var baseOption;
-
- // Compatible with ec2.
- var timelineOpt = rawOption.timeline;
-
- if (rawOption.baseOption) {
- baseOption = rawOption.baseOption;
- }
-
- // For timeline
- if (timelineOpt || rawOption.options) {
- baseOption = baseOption || {};
- timelineOptions = (rawOption.options || []).slice();
- }
- // For media query
- if (rawOption.media) {
- baseOption = baseOption || {};
- var media = rawOption.media;
- each(media, function (singleMedia) {
- if (singleMedia && singleMedia.option) {
- if (singleMedia.query) {
- mediaList.push(singleMedia);
- }
- else if (!mediaDefault) {
- // Use the first media default.
- mediaDefault = singleMedia;
- }
- }
- });
- }
-
- // For normal option
- if (!baseOption) {
- baseOption = rawOption;
- }
-
- // Set timelineOpt to baseOption in ec3,
- // which is convenient for merge option.
- if (!baseOption.timeline) {
- baseOption.timeline = timelineOpt;
- }
-
- // Preprocess.
- each([baseOption].concat(timelineOptions)
- .concat(zrUtil.map(mediaList, function (media) {
- return media.option;
- })),
- function (option) {
- each(optionPreprocessorFuncs, function (preProcess) {
- preProcess(option);
- });
- }
- );
-
- return {
- baseOption: baseOption,
- timelineOptions: timelineOptions,
- mediaDefault: mediaDefault,
- mediaList: mediaList
- };
- }
-
- /**
- * @see <http://www.w3.org/TR/css3-mediaqueries/#media1>
- * Support: width, height, aspectRatio
- * Can use max or min as prefix.
- */
- function applyMediaQuery(query, ecWidth, ecHeight) {
- var realMap = {
- width: ecWidth,
- height: ecHeight,
- aspectratio: ecWidth / ecHeight // lowser case for convenientce.
- };
-
- var applicatable = true;
-
- zrUtil.each(query, function (value, attr) {
- var matched = attr.match(QUERY_REG);
-
- if (!matched || !matched[1] || !matched[2]) {
- return;
- }
-
- var operator = matched[1];
- var realAttr = matched[2].toLowerCase();
-
- if (!compare(realMap[realAttr], value, operator)) {
- applicatable = false;
- }
- });
-
- return applicatable;
- }
-
- function compare(real, expect, operator) {
- if (operator === 'min') {
- return real >= expect;
- }
- else if (operator === 'max') {
- return real <= expect;
- }
- else { // Equals
- return real === expect;
- }
- }
-
- function indicesEquals(indices1, indices2) {
- // indices is always order by asc and has only finite number.
- return indices1.join(',') === indices2.join(',');
- }
-
- /**
- * Consider case:
- * `chart.setOption(opt1);`
- * Then user do some interaction like dataZoom, dataView changing.
- * `chart.setOption(opt2);`
- * Then user press 'reset button' in toolbox.
- *
- * After doing that all of the interaction effects should be reset, the
- * chart should be the same as the result of invoke
- * `chart.setOption(opt1); chart.setOption(opt2);`.
- *
- * Although it is not able ensure that
- * `chart.setOption(opt1); chart.setOption(opt2);` is equivalents to
- * `chart.setOption(merge(opt1, opt2));` exactly,
- * this might be the only simple way to implement that feature.
- *
- * MEMO: We've considered some other approaches:
- * 1. Each model handle its self restoration but not uniform treatment.
- * (Too complex in logic and error-prone)
- * 2. Use a shadow ecModel. (Performace expensive)
- */
- function mergeOption(oldOption, newOption) {
- newOption = newOption || {};
-
- each(newOption, function (newCptOpt, mainType) {
- if (newCptOpt == null) {
- return;
- }
-
- var oldCptOpt = oldOption[mainType];
-
- if (!ComponentModel.hasClass(mainType)) {
- oldOption[mainType] = merge(oldCptOpt, newCptOpt, true);
- }
- else {
- newCptOpt = modelUtil.normalizeToArray(newCptOpt);
- oldCptOpt = modelUtil.normalizeToArray(oldCptOpt);
-
- var mapResult = modelUtil.mappingToExists(oldCptOpt, newCptOpt);
-
- oldOption[mainType] = map(mapResult, function (item) {
- return (item.option && item.exist)
- ? merge(item.exist, item.option, true)
- : (item.exist || item.option);
- });
- }
- });
- }
-
- module.exports = OptionManager;
-
-
-/***/ },
-/* 27 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var formatUtil = __webpack_require__(6);
- var modelUtil = __webpack_require__(5);
- var ComponentModel = __webpack_require__(19);
-
- var encodeHTML = formatUtil.encodeHTML;
- var addCommas = formatUtil.addCommas;
-
- var SeriesModel = ComponentModel.extend({
-
- type: 'series.__base__',
-
- /**
- * @readOnly
- */
- seriesIndex: 0,
-
- // coodinateSystem will be injected in the echarts/CoordinateSystem
- coordinateSystem: null,
-
- /**
- * @type {Object}
- * @protected
- */
- defaultOption: null,
-
- /**
- * Data provided for legend
- * @type {Function}
- */
- // PENDING
- legendDataProvider: null,
-
- init: function (option, parentModel, ecModel, extraOpt) {
-
- /**
- * @type {number}
- * @readOnly
- */
- this.seriesIndex = this.componentIndex;
-
- this.mergeDefaultAndTheme(option, ecModel);
-
- /**
- * @type {module:echarts/data/List|module:echarts/data/Tree|module:echarts/data/Graph}
- * @private
- */
- this._dataBeforeProcessed = this.getInitialData(option, ecModel);
-
- // When using module:echarts/data/Tree or module:echarts/data/Graph,
- // cloneShallow will cause this._data.graph.data pointing to new data list.
- // Wo we make this._dataBeforeProcessed first, and then make this._data.
- this._data = this._dataBeforeProcessed.cloneShallow();
- },
-
- /**
- * Util for merge default and theme to option
- * @param {Object} option
- * @param {module:echarts/model/Global} ecModel
- */
- mergeDefaultAndTheme: function (option, ecModel) {
- zrUtil.merge(
- option,
- ecModel.getTheme().get(this.subType)
- );
- zrUtil.merge(option, this.getDefaultOption());
-
- // Default label emphasis `position` and `show`
- modelUtil.defaultEmphasis(
- option.label, ['position', 'show', 'textStyle', 'distance', 'formatter']
- );
-
- // Default data label emphasis `position` and `show`
- // FIXME Tree structure data ?
- var data = option.data || [];
- for (var i = 0; i < data.length; i++) {
- if (data[i] && data[i].label) {
- modelUtil.defaultEmphasis(
- data[i].label, ['position', 'show', 'textStyle', 'distance', 'formatter']
- );
- }
- }
- },
-
- mergeOption: function (newSeriesOption, ecModel) {
- newSeriesOption = zrUtil.merge(this.option, newSeriesOption, true);
-
- var data = this.getInitialData(newSeriesOption, ecModel);
- // TODO Merge data?
- if (data) {
- this._data = data;
- this._dataBeforeProcessed = data.cloneShallow();
- }
- },
-
- /**
- * Init a data structure from data related option in series
- * Must be overwritten
- */
- getInitialData: function () {},
-
- /**
- * @return {module:echarts/data/List}
- */
- getData: function () {
- return this._data;
- },
-
- /**
- * @param {module:echarts/data/List} data
- */
- setData: function (data) {
- this._data = data;
- },
-
- /**
- * Get data before processed
- * @return {module:echarts/data/List}
- */
- getRawData: function () {
- return this._dataBeforeProcessed;
- },
-
- /**
- * Get raw data array given by user
- * @return {Array.<Object>}
- */
- getRawDataArray: function () {
- return this.option.data;
- },
-
- /**
- * Coord dimension to data dimension.
- *
- * By default the result is the same as dimensions of series data.
- * But some series dimensions are different from coord dimensions (i.e.
- * candlestick and boxplot). Override this method to handle those cases.
- *
- * Coord dimension to data dimension can be one-to-many
- *
- * @param {string} coordDim
- * @return {Array.<string>} dimensions on the axis.
- */
- coordDimToDataDim: function (coordDim) {
- return [coordDim];
- },
-
- /**
- * Convert data dimension to coord dimension.
- *
- * @param {string|number} dataDim
- * @return {string}
- */
- dataDimToCoordDim: function (dataDim) {
- return dataDim;
- },
-
- /**
- * Get base axis if has coordinate system and has axis.
- * By default use coordSys.getBaseAxis();
- * Can be overrided for some chart.
- * @return {type} description
- */
- getBaseAxis: function () {
- var coordSys = this.coordinateSystem;
- return coordSys && coordSys.getBaseAxis && coordSys.getBaseAxis();
- },
-
- // FIXME
- /**
- * Default tooltip formatter
- *
- * @param {number} dataIndex
- * @param {boolean} [multipleSeries=false]
- */
- formatTooltip: function (dataIndex, multipleSeries) {
- var data = this._data;
- var value = this.getRawValue(dataIndex);
- var formattedValue = zrUtil.isArray(value)
- ? zrUtil.map(value, addCommas).join(', ') : addCommas(value);
- var name = data.getName(dataIndex);
- var color = data.getItemVisual(dataIndex, 'color');
- var colorEl = '<span style="display:inline-block;margin-right:5px;'
- + 'border-radius:10px;width:9px;height:9px;background-color:' + color + '"></span>';
-
- return !multipleSeries
- ? (encodeHTML(this.name) + '<br />' + colorEl
- + (name
- ? encodeHTML(name) + ' : ' + formattedValue
- : formattedValue)
- )
- : (colorEl + encodeHTML(this.name) + ' : ' + formattedValue);
- },
-
- restoreData: function () {
- this._data = this._dataBeforeProcessed.cloneShallow();
- }
- });
-
- zrUtil.mixin(SeriesModel, modelUtil.dataFormatMixin);
-
- module.exports = SeriesModel;
-
-
-/***/ },
-/* 28 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var Group = __webpack_require__(29);
- var componentUtil = __webpack_require__(20);
- var clazzUtil = __webpack_require__(9);
-
- var Component = function () {
- /**
- * @type {module:zrender/container/Group}
- * @readOnly
- */
- this.group = new Group();
-
- /**
- * @type {string}
- * @readOnly
- */
- this.uid = componentUtil.getUID('viewComponent');
- };
-
- Component.prototype = {
-
- constructor: Component,
-
- init: function (ecModel, api) {},
-
- render: function (componentModel, ecModel, api, payload) {},
-
- dispose: function () {}
- };
-
- var componentProto = Component.prototype;
- componentProto.updateView
- = componentProto.updateLayout
- = componentProto.updateVisual
- = function (seriesModel, ecModel, api, payload) {
- // Do nothing;
- };
- // Enable Component.extend.
- clazzUtil.enableClassExtend(Component);
-
- // Enable capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
- clazzUtil.enableClassManagement(Component, {registerWhenExtend: true});
-
- module.exports = Component;
-
-
-/***/ },
-/* 29 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Group是一个容器,可以插入子节点,Group的变换也会被应用到子节点上
- * @module zrender/graphic/Group
- * @example
- * var Group = require('zrender/lib/container/Group');
- * var Circle = require('zrender/lib/graphic/shape/Circle');
- * var g = new Group();
- * g.position[0] = 100;
- * g.position[1] = 100;
- * g.add(new Circle({
- * style: {
- * x: 100,
- * y: 100,
- * r: 20,
- * }
- * }));
- * zr.add(g);
- */
-
-
- var zrUtil = __webpack_require__(3);
- var Element = __webpack_require__(30);
- var BoundingRect = __webpack_require__(15);
-
- /**
- * @alias module:zrender/graphic/Group
- * @constructor
- * @extends module:zrender/mixin/Transformable
- * @extends module:zrender/mixin/Eventful
- */
- var Group = function (opts) {
-
- opts = opts || {};
-
- Element.call(this, opts);
-
- for (var key in opts) {
- this[key] = opts[key];
- }
-
- this._children = [];
-
- this.__storage = null;
-
- this.__dirty = true;
- };
-
- Group.prototype = {
-
- constructor: Group,
-
- /**
- * @type {string}
- */
- type: 'group',
-
- /**
- * @return {Array.<module:zrender/Element>}
- */
- children: function () {
- return this._children.slice();
- },
-
- /**
- * 获取指定 index 的儿子节点
- * @param {number} idx
- * @return {module:zrender/Element}
- */
- childAt: function (idx) {
- return this._children[idx];
- },
-
- /**
- * 获取指定名字的儿子节点
- * @param {string} name
- * @return {module:zrender/Element}
- */
- childOfName: function (name) {
- var children = this._children;
- for (var i = 0; i < children.length; i++) {
- if (children[i].name === name) {
- return children[i];
- }
- }
- },
-
- /**
- * @return {number}
- */
- childCount: function () {
- return this._children.length;
- },
-
- /**
- * 添加子节点到最后
- * @param {module:zrender/Element} child
- */
- add: function (child) {
- if (child && child !== this && child.parent !== this) {
-
- this._children.push(child);
-
- this._doAdd(child);
- }
-
- return this;
- },
-
- /**
- * 添加子节点在 nextSibling 之前
- * @param {module:zrender/Element} child
- * @param {module:zrender/Element} nextSibling
- */
- addBefore: function (child, nextSibling) {
- if (child && child !== this && child.parent !== this
- && nextSibling && nextSibling.parent === this) {
-
- var children = this._children;
- var idx = children.indexOf(nextSibling);
-
- if (idx >= 0) {
- children.splice(idx, 0, child);
- this._doAdd(child);
- }
- }
-
- return this;
- },
-
- _doAdd: function (child) {
- if (child.parent) {
- child.parent.remove(child);
- }
-
- child.parent = this;
-
- var storage = this.__storage;
- var zr = this.__zr;
- if (storage && storage !== child.__storage) {
-
- storage.addToMap(child);
-
- if (child instanceof Group) {
- child.addChildrenToStorage(storage);
- }
- }
-
- zr && zr.refresh();
- },
-
- /**
- * 移除子节点
- * @param {module:zrender/Element} child
- */
- remove: function (child) {
- var zr = this.__zr;
- var storage = this.__storage;
- var children = this._children;
-
- var idx = zrUtil.indexOf(children, child);
- if (idx < 0) {
- return this;
- }
- children.splice(idx, 1);
-
- child.parent = null;
-
- if (storage) {
-
- storage.delFromMap(child.id);
-
- if (child instanceof Group) {
- child.delChildrenFromStorage(storage);
- }
- }
-
- zr && zr.refresh();
-
- return this;
- },
-
- /**
- * 移除所有子节点
- */
- removeAll: function () {
- var children = this._children;
- var storage = this.__storage;
- var child;
- var i;
- for (i = 0; i < children.length; i++) {
- child = children[i];
- if (storage) {
- storage.delFromMap(child.id);
- if (child instanceof Group) {
- child.delChildrenFromStorage(storage);
- }
- }
- child.parent = null;
- }
- children.length = 0;
-
- return this;
- },
-
- /**
- * 遍历所有子节点
- * @param {Function} cb
- * @param {} context
- */
- eachChild: function (cb, context) {
- var children = this._children;
- for (var i = 0; i < children.length; i++) {
- var child = children[i];
- cb.call(context, child, i);
- }
- return this;
- },
-
- /**
- * 深度优先遍历所有子孙节点
- * @param {Function} cb
- * @param {} context
- */
- traverse: function (cb, context) {
- for (var i = 0; i < this._children.length; i++) {
- var child = this._children[i];
- cb.call(context, child);
-
- if (child.type === 'group') {
- child.traverse(cb, context);
- }
- }
- return this;
- },
-
- addChildrenToStorage: function (storage) {
- for (var i = 0; i < this._children.length; i++) {
- var child = this._children[i];
- storage.addToMap(child);
- if (child instanceof Group) {
- child.addChildrenToStorage(storage);
- }
- }
- },
-
- delChildrenFromStorage: function (storage) {
- for (var i = 0; i < this._children.length; i++) {
- var child = this._children[i];
- storage.delFromMap(child.id);
- if (child instanceof Group) {
- child.delChildrenFromStorage(storage);
- }
- }
- },
-
- dirty: function () {
- this.__dirty = true;
- this.__zr && this.__zr.refresh();
- return this;
- },
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- getBoundingRect: function (includeChildren) {
- // TODO Caching
- // TODO Transform
- var rect = null;
- var tmpRect = new BoundingRect(0, 0, 0, 0);
- var children = includeChildren || this._children;
- var tmpMat = [];
-
- for (var i = 0; i < children.length; i++) {
- var child = children[i];
- if (child.ignore || child.invisible) {
- continue;
- }
-
- var childRect = child.getBoundingRect();
- var transform = child.getLocalTransform(tmpMat);
- if (transform) {
- tmpRect.copy(childRect);
- tmpRect.applyTransform(transform);
- rect = rect || tmpRect.clone();
- rect.union(tmpRect);
- }
- else {
- rect = rect || childRect.clone();
- rect.union(childRect);
- }
- }
- return rect || tmpRect;
- }
- };
-
- zrUtil.inherits(Group, Element);
-
- module.exports = Group;
-
-
-/***/ },
-/* 30 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * @module zrender/Element
- */
-
-
- var guid = __webpack_require__(31);
- var Eventful = __webpack_require__(32);
- var Transformable = __webpack_require__(33);
- var Animatable = __webpack_require__(34);
- var zrUtil = __webpack_require__(3);
-
- /**
- * @alias module:zrender/Element
- * @constructor
- * @extends {module:zrender/mixin/Animatable}
- * @extends {module:zrender/mixin/Transformable}
- * @extends {module:zrender/mixin/Eventful}
- */
- var Element = function (opts) {
-
- Transformable.call(this, opts);
- Eventful.call(this, opts);
- Animatable.call(this, opts);
-
- /**
- * 画布元素ID
- * @type {string}
- */
- this.id = opts.id || guid();
- };
-
- Element.prototype = {
-
- /**
- * 元素类型
- * Element type
- * @type {string}
- */
- type: 'element',
-
- /**
- * 元素名字
- * Element name
- * @type {string}
- */
- name: '',
-
- /**
- * ZRender 实例对象,会在 element 添加到 zrender 实例中后自动赋值
- * ZRender instance will be assigned when element is associated with zrender
- * @name module:/zrender/Element#__zr
- * @type {module:zrender/ZRender}
- */
- __zr: null,
-
- /**
- * 图形是否忽略,为true时忽略图形的绘制以及事件触发
- * If ignore drawing and events of the element object
- * @name module:/zrender/Element#ignore
- * @type {boolean}
- * @default false
- */
- ignore: false,
-
- /**
- * 用于裁剪的路径(shape),所有 Group 内的路径在绘制时都会被这个路径裁剪
- * 该路径会继承被裁减对象的变换
- * @type {module:zrender/graphic/Path}
- * @see http://www.w3.org/TR/2dcontext/#clipping-region
- * @readOnly
- */
- clipPath: null,
-
- /**
- * Drift element
- * @param {number} dx dx on the global space
- * @param {number} dy dy on the global space
- */
- drift: function (dx, dy) {
- switch (this.draggable) {
- case 'horizontal':
- dy = 0;
- break;
- case 'vertical':
- dx = 0;
- break;
- }
-
- var m = this.transform;
- if (!m) {
- m = this.transform = [1, 0, 0, 1, 0, 0];
- }
- m[4] += dx;
- m[5] += dy;
-
- this.decomposeTransform();
- this.dirty();
- },
-
- /**
- * Hook before update
- */
- beforeUpdate: function () {},
- /**
- * Hook after update
- */
- afterUpdate: function () {},
- /**
- * Update each frame
- */
- update: function () {
- this.updateTransform();
- },
-
- /**
- * @param {Function} cb
- * @param {} context
- */
- traverse: function (cb, context) {},
-
- /**
- * @protected
- */
- attrKV: function (key, value) {
- if (key === 'position' || key === 'scale' || key === 'origin') {
- // Copy the array
- if (value) {
- var target = this[key];
- if (!target) {
- target = this[key] = [];
- }
- target[0] = value[0];
- target[1] = value[1];
- }
- }
- else {
- this[key] = value;
- }
- },
-
- /**
- * Hide the element
- */
- hide: function () {
- this.ignore = true;
- this.__zr && this.__zr.refresh();
- },
-
- /**
- * Show the element
- */
- show: function () {
- this.ignore = false;
- this.__zr && this.__zr.refresh();
- },
-
- /**
- * @param {string|Object} key
- * @param {*} value
- */
- attr: function (key, value) {
- if (typeof key === 'string') {
- this.attrKV(key, value);
- }
- else if (zrUtil.isObject(key)) {
- for (var name in key) {
- if (key.hasOwnProperty(name)) {
- this.attrKV(name, key[name]);
- }
- }
- }
- this.dirty();
-
- return this;
- },
-
- /**
- * @param {module:zrender/graphic/Path} clipPath
- */
- setClipPath: function (clipPath) {
- var zr = this.__zr;
- if (zr) {
- clipPath.addSelfToZr(zr);
- }
-
- // Remove previous clip path
- if (this.clipPath && this.clipPath !== clipPath) {
- this.removeClipPath();
- }
-
- this.clipPath = clipPath;
- clipPath.__zr = zr;
- clipPath.__clipTarget = this;
-
- this.dirty();
- },
-
- /**
- */
- removeClipPath: function () {
- var clipPath = this.clipPath;
- if (clipPath) {
- if (clipPath.__zr) {
- clipPath.removeSelfFromZr(clipPath.__zr);
- }
-
- clipPath.__zr = null;
- clipPath.__clipTarget = null;
- this.clipPath = null;
-
- this.dirty();
- }
- },
-
- /**
- * Add self from zrender instance.
- * Not recursively because it will be invoked when element added to storage.
- * @param {module:zrender/ZRender} zr
- */
- addSelfToZr: function (zr) {
- this.__zr = zr;
- // 添加动画
- var animators = this.animators;
- if (animators) {
- for (var i = 0; i < animators.length; i++) {
- zr.animation.addAnimator(animators[i]);
- }
- }
-
- if (this.clipPath) {
- this.clipPath.addSelfToZr(zr);
- }
- },
-
- /**
- * Remove self from zrender instance.
- * Not recursively because it will be invoked when element added to storage.
- * @param {module:zrender/ZRender} zr
- */
- removeSelfFromZr: function (zr) {
- this.__zr = null;
- // 移除动画
- var animators = this.animators;
- if (animators) {
- for (var i = 0; i < animators.length; i++) {
- zr.animation.removeAnimator(animators[i]);
- }
- }
-
- if (this.clipPath) {
- this.clipPath.removeSelfFromZr(zr);
- }
- }
- };
-
- zrUtil.mixin(Element, Animatable);
- zrUtil.mixin(Element, Transformable);
- zrUtil.mixin(Element, Eventful);
-
- module.exports = Element;
-
-
-/***/ },
-/* 31 */
-/***/ function(module, exports) {
-
- /**
- * zrender: 生成唯一id
- *
- * @author errorrik (errorrik@gmail.com)
- */
-
-
- var idStart = 0x0907;
-
- module.exports = function () {
- return 'zr_' + (idStart++);
- };
-
-
-
-/***/ },
-/* 32 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 事件扩展
- * @module zrender/mixin/Eventful
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * pissang (https://www.github.com/pissang)
- */
-
-
- var arrySlice = Array.prototype.slice;
- var zrUtil = __webpack_require__(3);
- var indexOf = zrUtil.indexOf;
-
- /**
- * 事件分发器
- * @alias module:zrender/mixin/Eventful
- * @constructor
- */
- var Eventful = function () {
- this._$handlers = {};
- };
-
- Eventful.prototype = {
-
- constructor: Eventful,
-
- /**
- * 单次触发绑定,trigger后销毁
- *
- * @param {string} event 事件名
- * @param {Function} handler 响应函数
- * @param {Object} context
- */
- one: function (event, handler, context) {
- var _h = this._$handlers;
-
- if (!handler || !event) {
- return this;
- }
-
- if (!_h[event]) {
- _h[event] = [];
- }
-
- if (indexOf(_h[event], event) >= 0) {
- return this;
- }
-
- _h[event].push({
- h: handler,
- one: true,
- ctx: context || this
- });
-
- return this;
- },
-
- /**
- * 绑定事件
- * @param {string} event 事件名
- * @param {Function} handler 事件处理函数
- * @param {Object} [context]
- */
- on: function (event, handler, context) {
- var _h = this._$handlers;
-
- if (!handler || !event) {
- return this;
- }
-
- if (!_h[event]) {
- _h[event] = [];
- }
-
- _h[event].push({
- h: handler,
- one: false,
- ctx: context || this
- });
-
- return this;
- },
-
- /**
- * 是否绑定了事件
- * @param {string} event
- * @return {boolean}
- */
- isSilent: function (event) {
- var _h = this._$handlers;
- return _h[event] && _h[event].length;
- },
-
- /**
- * 解绑事件
- * @param {string} event 事件名
- * @param {Function} [handler] 事件处理函数
- */
- off: function (event, handler) {
- var _h = this._$handlers;
-
- if (!event) {
- this._$handlers = {};
- return this;
- }
-
- if (handler) {
- if (_h[event]) {
- var newList = [];
- for (var i = 0, l = _h[event].length; i < l; i++) {
- if (_h[event][i]['h'] != handler) {
- newList.push(_h[event][i]);
- }
- }
- _h[event] = newList;
- }
-
- if (_h[event] && _h[event].length === 0) {
- delete _h[event];
- }
- }
- else {
- delete _h[event];
- }
-
- return this;
- },
-
- /**
- * 事件分发
- *
- * @param {string} type 事件类型
- */
- trigger: function (type) {
- if (this._$handlers[type]) {
- var args = arguments;
- var argLen = args.length;
-
- if (argLen > 3) {
- args = arrySlice.call(args, 1);
- }
-
- var _h = this._$handlers[type];
- var len = _h.length;
- for (var i = 0; i < len;) {
- // Optimize advise from backbone
- switch (argLen) {
- case 1:
- _h[i]['h'].call(_h[i]['ctx']);
- break;
- case 2:
- _h[i]['h'].call(_h[i]['ctx'], args[1]);
- break;
- case 3:
- _h[i]['h'].call(_h[i]['ctx'], args[1], args[2]);
- break;
- default:
- // have more than 2 given arguments
- _h[i]['h'].apply(_h[i]['ctx'], args);
- break;
- }
-
- if (_h[i]['one']) {
- _h.splice(i, 1);
- len--;
- }
- else {
- i++;
- }
- }
- }
-
- return this;
- },
-
- /**
- * 带有context的事件分发, 最后一个参数是事件回调的context
- * @param {string} type 事件类型
- */
- triggerWithContext: function (type) {
- if (this._$handlers[type]) {
- var args = arguments;
- var argLen = args.length;
-
- if (argLen > 4) {
- args = arrySlice.call(args, 1, args.length - 1);
- }
- var ctx = args[args.length - 1];
-
- var _h = this._$handlers[type];
- var len = _h.length;
- for (var i = 0; i < len;) {
- // Optimize advise from backbone
- switch (argLen) {
- case 1:
- _h[i]['h'].call(ctx);
- break;
- case 2:
- _h[i]['h'].call(ctx, args[1]);
- break;
- case 3:
- _h[i]['h'].call(ctx, args[1], args[2]);
- break;
- default:
- // have more than 2 given arguments
- _h[i]['h'].apply(ctx, args);
- break;
- }
-
- if (_h[i]['one']) {
- _h.splice(i, 1);
- len--;
- }
- else {
- i++;
- }
- }
- }
-
- return this;
- }
- };
-
- // 对象可以通过 onxxxx 绑定事件
- /**
- * @event module:zrender/mixin/Eventful#onclick
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmouseover
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmouseout
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmousemove
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmousewheel
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmousedown
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#onmouseup
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondragstart
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondragend
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondragenter
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondragleave
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondragover
- * @type {Function}
- * @default null
- */
- /**
- * @event module:zrender/mixin/Eventful#ondrop
- * @type {Function}
- * @default null
- */
-
- module.exports = Eventful;
-
-
-
-/***/ },
-/* 33 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 提供变换扩展
- * @module zrender/mixin/Transformable
- * @author pissang (https://www.github.com/pissang)
- */
-
-
- var matrix = __webpack_require__(17);
- var vector = __webpack_require__(16);
- var mIdentity = matrix.identity;
-
- var EPSILON = 5e-5;
-
- function isNotAroundZero(val) {
- return val > EPSILON || val < -EPSILON;
- }
-
- /**
- * @alias module:zrender/mixin/Transformable
- * @constructor
- */
- var Transformable = function (opts) {
- opts = opts || {};
- // If there are no given position, rotation, scale
- if (!opts.position) {
- /**
- * 平移
- * @type {Array.<number>}
- * @default [0, 0]
- */
- this.position = [0, 0];
- }
- if (opts.rotation == null) {
- /**
- * 旋转
- * @type {Array.<number>}
- * @default 0
- */
- this.rotation = 0;
- }
- if (!opts.scale) {
- /**
- * 缩放
- * @type {Array.<number>}
- * @default [1, 1]
- */
- this.scale = [1, 1];
- }
- /**
- * 旋转和缩放的原点
- * @type {Array.<number>}
- * @default null
- */
- this.origin = this.origin || null;
- };
-
- var transformableProto = Transformable.prototype;
- transformableProto.transform = null;
-
- /**
- * 判断是否需要有坐标变换
- * 如果有坐标变换, 则从position, rotation, scale以及父节点的transform计算出自身的transform矩阵
- */
- transformableProto.needLocalTransform = function () {
- return isNotAroundZero(this.rotation)
- || isNotAroundZero(this.position[0])
- || isNotAroundZero(this.position[1])
- || isNotAroundZero(this.scale[0] - 1)
- || isNotAroundZero(this.scale[1] - 1);
- };
-
- transformableProto.updateTransform = function () {
- var parent = this.parent;
- var parentHasTransform = parent && parent.transform;
- var needLocalTransform = this.needLocalTransform();
-
- var m = this.transform;
- if (!(needLocalTransform || parentHasTransform)) {
- m && mIdentity(m);
- return;
- }
-
- m = m || matrix.create();
-
- if (needLocalTransform) {
- this.getLocalTransform(m);
- }
- else {
- mIdentity(m);
- }
-
- // 应用父节点变换
- if (parentHasTransform) {
- if (needLocalTransform) {
- matrix.mul(m, parent.transform, m);
- }
- else {
- matrix.copy(m, parent.transform);
- }
- }
- // 保存这个变换矩阵
- this.transform = m;
-
- this.invTransform = this.invTransform || matrix.create();
- matrix.invert(this.invTransform, m);
- };
-
- transformableProto.getLocalTransform = function (m) {
- m = m || [];
- mIdentity(m);
-
- var origin = this.origin;
-
- var scale = this.scale;
- var rotation = this.rotation;
- var position = this.position;
- if (origin) {
- // Translate to origin
- m[4] -= origin[0];
- m[5] -= origin[1];
- }
- matrix.scale(m, m, scale);
- if (rotation) {
- matrix.rotate(m, m, rotation);
- }
- if (origin) {
- // Translate back from origin
- m[4] += origin[0];
- m[5] += origin[1];
- }
-
- m[4] += position[0];
- m[5] += position[1];
-
- return m;
- };
- /**
- * 将自己的transform应用到context上
- * @param {Context2D} ctx
- */
- transformableProto.setTransform = function (ctx) {
- var m = this.transform;
- if (m) {
- ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
- }
- };
-
- var tmpTransform = [];
-
- /**
- * 分解`transform`矩阵到`position`, `rotation`, `scale`
- */
- transformableProto.decomposeTransform = function () {
- if (!this.transform) {
- return;
- }
- var parent = this.parent;
- var m = this.transform;
- if (parent && parent.transform) {
- // Get local transform and decompose them to position, scale, rotation
- matrix.mul(tmpTransform, parent.invTransform, m);
- m = tmpTransform;
- }
- var sx = m[0] * m[0] + m[1] * m[1];
- var sy = m[2] * m[2] + m[3] * m[3];
- var position = this.position;
- var scale = this.scale;
- if (isNotAroundZero(sx - 1)) {
- sx = Math.sqrt(sx);
- }
- if (isNotAroundZero(sy - 1)) {
- sy = Math.sqrt(sy);
- }
- if (m[0] < 0) {
- sx = -sx;
- }
- if (m[3] < 0) {
- sy = -sy;
- }
- position[0] = m[4];
- position[1] = m[5];
- scale[0] = sx;
- scale[1] = sy;
- this.rotation = Math.atan2(-m[1] / sy, m[0] / sx);
- };
-
- /**
- * 变换坐标位置到 shape 的局部坐标空间
- * @method
- * @param {number} x
- * @param {number} y
- * @return {Array.<number>}
- */
- transformableProto.transformCoordToLocal = function (x, y) {
- var v2 = [x, y];
- var invTransform = this.invTransform;
- if (invTransform) {
- vector.applyTransform(v2, v2, invTransform);
- }
- return v2;
- };
-
- /**
- * 变换局部坐标位置到全局坐标空间
- * @method
- * @param {number} x
- * @param {number} y
- * @return {Array.<number>}
- */
- transformableProto.transformCoordToGlobal = function (x, y) {
- var v2 = [x, y];
- var transform = this.transform;
- if (transform) {
- vector.applyTransform(v2, v2, transform);
- }
- return v2;
- };
-
- module.exports = Transformable;
-
-
-
-/***/ },
-/* 34 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * @module zrender/mixin/Animatable
- */
-
-
- var Animator = __webpack_require__(35);
- var util = __webpack_require__(3);
- var isString = util.isString;
- var isFunction = util.isFunction;
- var isObject = util.isObject;
- var log = __webpack_require__(39);
-
- /**
- * @alias modue:zrender/mixin/Animatable
- * @constructor
- */
- var Animatable = function () {
-
- /**
- * @type {Array.<module:zrender/animation/Animator>}
- * @readOnly
- */
- this.animators = [];
- };
-
- Animatable.prototype = {
-
- constructor: Animatable,
-
- /**
- * 动画
- *
- * @param {string} path 需要添加动画的属性获取路径,可以通过a.b.c来获取深层的属性
- * @param {boolean} [loop] 动画是否循环
- * @return {module:zrender/animation/Animator}
- * @example:
- * el.animate('style', false)
- * .when(1000, {x: 10} )
- * .done(function(){ // Animation done })
- * .start()
- */
- animate: function (path, loop) {
- var target;
- var animatingShape = false;
- var el = this;
- var zr = this.__zr;
- if (path) {
- var pathSplitted = path.split('.');
- var prop = el;
- // If animating shape
- animatingShape = pathSplitted[0] === 'shape';
- for (var i = 0, l = pathSplitted.length; i < l; i++) {
- if (!prop) {
- continue;
- }
- prop = prop[pathSplitted[i]];
- }
- if (prop) {
- target = prop;
- }
- }
- else {
- target = el;
- }
-
- if (!target) {
- log(
- 'Property "'
- + path
- + '" is not existed in element '
- + el.id
- );
- return;
- }
-
- var animators = el.animators;
-
- var animator = new Animator(target, loop);
-
- animator.during(function (target) {
- el.dirty(animatingShape);
- })
- .done(function () {
- // FIXME Animator will not be removed if use `Animator#stop` to stop animation
- animators.splice(util.indexOf(animators, animator), 1);
- });
-
- animators.push(animator);
-
- // If animate after added to the zrender
- if (zr) {
- zr.animation.addAnimator(animator);
- }
-
- return animator;
- },
-
- /**
- * 停止动画
- * @param {boolean} forwardToLast If move to last frame before stop
- */
- stopAnimation: function (forwardToLast) {
- var animators = this.animators;
- var len = animators.length;
- for (var i = 0; i < len; i++) {
- animators[i].stop(forwardToLast);
- }
- animators.length = 0;
-
- return this;
- },
-
- /**
- * @param {Object} target
- * @param {number} [time=500] Time in ms
- * @param {string} [easing='linear']
- * @param {number} [delay=0]
- * @param {Function} [callback]
- *
- * @example
- * // Animate position
- * el.animateTo({
- * position: [10, 10]
- * }, function () { // done })
- *
- * // Animate shape, style and position in 100ms, delayed 100ms, with cubicOut easing
- * el.animateTo({
- * shape: {
- * width: 500
- * },
- * style: {
- * fill: 'red'
- * }
- * position: [10, 10]
- * }, 100, 100, 'cubicOut', function () { // done })
- */
- // TODO Return animation key
- animateTo: function (target, time, delay, easing, callback) {
- // animateTo(target, time, easing, callback);
- if (isString(delay)) {
- callback = easing;
- easing = delay;
- delay = 0;
- }
- // animateTo(target, time, delay, callback);
- else if (isFunction(easing)) {
- callback = easing;
- easing = 'linear';
- delay = 0;
- }
- // animateTo(target, time, callback);
- else if (isFunction(delay)) {
- callback = delay;
- delay = 0;
- }
- // animateTo(target, callback)
- else if (isFunction(time)) {
- callback = time;
- time = 500;
- }
- // animateTo(target)
- else if (!time) {
- time = 500;
- }
- // Stop all previous animations
- this.stopAnimation();
- this._animateToShallow('', this, target, time, delay, easing, callback);
-
- // Animators may be removed immediately after start
- // if there is nothing to animate
- var animators = this.animators.slice();
- var count = animators.length;
- function done() {
- count--;
- if (!count) {
- callback && callback();
- }
- }
-
- // No animators. This should be checked before animators[i].start(),
- // because 'done' may be executed immediately if no need to animate.
- if (!count) {
- callback && callback();
- }
- // Start after all animators created
- // Incase any animator is done immediately when all animation properties are not changed
- for (var i = 0; i < animators.length; i++) {
- animators[i]
- .done(done)
- .start(easing);
- }
- },
-
- /**
- * @private
- * @param {string} path=''
- * @param {Object} source=this
- * @param {Object} target
- * @param {number} [time=500]
- * @param {number} [delay=0]
- *
- * @example
- * // Animate position
- * el._animateToShallow({
- * position: [10, 10]
- * })
- *
- * // Animate shape, style and position in 100ms, delayed 100ms
- * el._animateToShallow({
- * shape: {
- * width: 500
- * },
- * style: {
- * fill: 'red'
- * }
- * position: [10, 10]
- * }, 100, 100)
- */
- _animateToShallow: function (path, source, target, time, delay) {
- var objShallow = {};
- var propertyCount = 0;
- for (var name in target) {
- if (source[name] != null) {
- if (isObject(target[name]) && !util.isArrayLike(target[name])) {
- this._animateToShallow(
- path ? path + '.' + name : name,
- source[name],
- target[name],
- time,
- delay
- );
- }
- else {
- objShallow[name] = target[name];
- propertyCount++;
- }
- }
- else if (target[name] != null) {
- // Attr directly if not has property
- // FIXME, if some property not needed for element ?
- if (!path) {
- this.attr(name, target[name]);
- }
- else { // Shape or style
- var props = {};
- props[path] = {};
- props[path][name] = target[name];
- this.attr(props);
- }
- }
- }
-
- if (propertyCount > 0) {
- this.animate(path, false)
- .when(time == null ? 500 : time, objShallow)
- .delay(delay || 0);
- }
-
- return this;
- }
- };
-
- module.exports = Animatable;
-
-
-/***/ },
-/* 35 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/animation/Animator
- */
-
-
- var Clip = __webpack_require__(36);
- var color = __webpack_require__(38);
- var util = __webpack_require__(3);
- var isArrayLike = util.isArrayLike;
-
- var arraySlice = Array.prototype.slice;
-
- function defaultGetter(target, key) {
- return target[key];
- }
-
- function defaultSetter(target, key, value) {
- target[key] = value;
- }
-
- /**
- * @param {number} p0
- * @param {number} p1
- * @param {number} percent
- * @return {number}
- */
- function interpolateNumber(p0, p1, percent) {
- return (p1 - p0) * percent + p0;
- }
-
- /**
- * @param {string} p0
- * @param {string} p1
- * @param {number} percent
- * @return {string}
- */
- function interpolateString(p0, p1, percent) {
- return percent > 0.5 ? p1 : p0;
- }
-
- /**
- * @param {Array} p0
- * @param {Array} p1
- * @param {number} percent
- * @param {Array} out
- * @param {number} arrDim
- */
- function interpolateArray(p0, p1, percent, out, arrDim) {
- var len = p0.length;
- if (arrDim == 1) {
- for (var i = 0; i < len; i++) {
- out[i] = interpolateNumber(p0[i], p1[i], percent);
- }
- }
- else {
- var len2 = p0[0].length;
- for (var i = 0; i < len; i++) {
- for (var j = 0; j < len2; j++) {
- out[i][j] = interpolateNumber(
- p0[i][j], p1[i][j], percent
- );
- }
- }
- }
- }
-
- function fillArr(arr0, arr1, arrDim) {
- var arr0Len = arr0.length;
- var arr1Len = arr1.length;
- if (arr0Len === arr1Len) {
- return;
- }
- // FIXME Not work for TypedArray
- var isPreviousLarger = arr0Len > arr1Len;
- if (isPreviousLarger) {
- // Cut the previous
- arr0.length = arr1Len;
- }
- else {
- // Fill the previous
- for (var i = arr0Len; i < arr1Len; i++) {
- arr0.push(
- arrDim === 1 ? arr1[i] : arraySlice.call(arr1[i])
- );
- }
- }
- }
-
- /**
- * @param {Array} arr0
- * @param {Array} arr1
- * @param {number} arrDim
- * @return {boolean}
- */
- function isArraySame(arr0, arr1, arrDim) {
- if (arr0 === arr1) {
- return true;
- }
- var len = arr0.length;
- if (len !== arr1.length) {
- return false;
- }
- if (arrDim === 1) {
- for (var i = 0; i < len; i++) {
- if (arr0[i] !== arr1[i]) {
- return false;
- }
- }
- }
- else {
- var len2 = arr0[0].length;
- for (var i = 0; i < len; i++) {
- for (var j = 0; j < len2; j++) {
- if (arr0[i][j] !== arr1[i][j]) {
- return false;
- }
- }
- }
- }
- return true;
- }
-
- /**
- * Catmull Rom interpolate array
- * @param {Array} p0
- * @param {Array} p1
- * @param {Array} p2
- * @param {Array} p3
- * @param {number} t
- * @param {number} t2
- * @param {number} t3
- * @param {Array} out
- * @param {number} arrDim
- */
- function catmullRomInterpolateArray(
- p0, p1, p2, p3, t, t2, t3, out, arrDim
- ) {
- var len = p0.length;
- if (arrDim == 1) {
- for (var i = 0; i < len; i++) {
- out[i] = catmullRomInterpolate(
- p0[i], p1[i], p2[i], p3[i], t, t2, t3
- );
- }
- }
- else {
- var len2 = p0[0].length;
- for (var i = 0; i < len; i++) {
- for (var j = 0; j < len2; j++) {
- out[i][j] = catmullRomInterpolate(
- p0[i][j], p1[i][j], p2[i][j], p3[i][j],
- t, t2, t3
- );
- }
- }
- }
- }
-
- /**
- * Catmull Rom interpolate number
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {number} t
- * @param {number} t2
- * @param {number} t3
- * @return {number}
- */
- function catmullRomInterpolate(p0, p1, p2, p3, t, t2, t3) {
- var v0 = (p2 - p0) * 0.5;
- var v1 = (p3 - p1) * 0.5;
- return (2 * (p1 - p2) + v0 + v1) * t3
- + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
- + v0 * t + p1;
- }
-
- function cloneValue(value) {
- if (isArrayLike(value)) {
- var len = value.length;
- if (isArrayLike(value[0])) {
- var ret = [];
- for (var i = 0; i < len; i++) {
- ret.push(arraySlice.call(value[i]));
- }
- return ret;
- }
-
- return arraySlice.call(value);
- }
-
- return value;
- }
-
- function rgba2String(rgba) {
- rgba[0] = Math.floor(rgba[0]);
- rgba[1] = Math.floor(rgba[1]);
- rgba[2] = Math.floor(rgba[2]);
-
- return 'rgba(' + rgba.join(',') + ')';
- }
-
- function createTrackClip (animator, easing, oneTrackDone, keyframes, propName) {
- var getter = animator._getter;
- var setter = animator._setter;
- var useSpline = easing === 'spline';
-
- var trackLen = keyframes.length;
- if (!trackLen) {
- return;
- }
- // Guess data type
- var firstVal = keyframes[0].value;
- var isValueArray = isArrayLike(firstVal);
- var isValueColor = false;
- var isValueString = false;
-
- // For vertices morphing
- var arrDim = (
- isValueArray
- && isArrayLike(firstVal[0])
- )
- ? 2 : 1;
- var trackMaxTime;
- // Sort keyframe as ascending
- keyframes.sort(function(a, b) {
- return a.time - b.time;
- });
-
- trackMaxTime = keyframes[trackLen - 1].time;
- // Percents of each keyframe
- var kfPercents = [];
- // Value of each keyframe
- var kfValues = [];
- var prevValue = keyframes[0].value;
- var isAllValueEqual = true;
- for (var i = 0; i < trackLen; i++) {
- kfPercents.push(keyframes[i].time / trackMaxTime);
- // Assume value is a color when it is a string
- var value = keyframes[i].value;
-
- // Check if value is equal, deep check if value is array
- if (!((isValueArray && isArraySame(value, prevValue, arrDim))
- || (!isValueArray && value === prevValue))) {
- isAllValueEqual = false;
- }
- prevValue = value;
-
- // Try converting a string to a color array
- if (typeof value == 'string') {
- var colorArray = color.parse(value);
- if (colorArray) {
- value = colorArray;
- isValueColor = true;
- }
- else {
- isValueString = true;
- }
- }
- kfValues.push(value);
- }
- if (isAllValueEqual) {
- return;
- }
-
- if (isValueArray) {
- var lastValue = kfValues[trackLen - 1];
- // Polyfill array
- for (var i = 0; i < trackLen - 1; i++) {
- fillArr(kfValues[i], lastValue, arrDim);
- }
- fillArr(getter(animator._target, propName), lastValue, arrDim);
- }
-
- // Cache the key of last frame to speed up when
- // animation playback is sequency
- var lastFrame = 0;
- var lastFramePercent = 0;
- var start;
- var w;
- var p0;
- var p1;
- var p2;
- var p3;
-
- if (isValueColor) {
- var rgba = [0, 0, 0, 0];
- }
-
- var onframe = function (target, percent) {
- // Find the range keyframes
- // kf1-----kf2---------current--------kf3
- // find kf2 and kf3 and do interpolation
- var frame;
- if (percent < lastFramePercent) {
- // Start from next key
- start = Math.min(lastFrame + 1, trackLen - 1);
- for (frame = start; frame >= 0; frame--) {
- if (kfPercents[frame] <= percent) {
- break;
- }
- }
- frame = Math.min(frame, trackLen - 2);
- }
- else {
- for (frame = lastFrame; frame < trackLen; frame++) {
- if (kfPercents[frame] > percent) {
- break;
- }
- }
- frame = Math.min(frame - 1, trackLen - 2);
- }
- lastFrame = frame;
- lastFramePercent = percent;
-
- var range = (kfPercents[frame + 1] - kfPercents[frame]);
- if (range === 0) {
- return;
- }
- else {
- w = (percent - kfPercents[frame]) / range;
- }
- if (useSpline) {
- p1 = kfValues[frame];
- p0 = kfValues[frame === 0 ? frame : frame - 1];
- p2 = kfValues[frame > trackLen - 2 ? trackLen - 1 : frame + 1];
- p3 = kfValues[frame > trackLen - 3 ? trackLen - 1 : frame + 2];
- if (isValueArray) {
- catmullRomInterpolateArray(
- p0, p1, p2, p3, w, w * w, w * w * w,
- getter(target, propName),
- arrDim
- );
- }
- else {
- var value;
- if (isValueColor) {
- value = catmullRomInterpolateArray(
- p0, p1, p2, p3, w, w * w, w * w * w,
- rgba, 1
- );
- value = rgba2String(rgba);
- }
- else if (isValueString) {
- // String is step(0.5)
- return interpolateString(p1, p2, w);
- }
- else {
- value = catmullRomInterpolate(
- p0, p1, p2, p3, w, w * w, w * w * w
- );
- }
- setter(
- target,
- propName,
- value
- );
- }
- }
- else {
- if (isValueArray) {
- interpolateArray(
- kfValues[frame], kfValues[frame + 1], w,
- getter(target, propName),
- arrDim
- );
- }
- else {
- var value;
- if (isValueColor) {
- interpolateArray(
- kfValues[frame], kfValues[frame + 1], w,
- rgba, 1
- );
- value = rgba2String(rgba);
- }
- else if (isValueString) {
- // String is step(0.5)
- return interpolateString(kfValues[frame], kfValues[frame + 1], w);
- }
- else {
- value = interpolateNumber(kfValues[frame], kfValues[frame + 1], w);
- }
- setter(
- target,
- propName,
- value
- );
- }
- }
- };
-
- var clip = new Clip({
- target: animator._target,
- life: trackMaxTime,
- loop: animator._loop,
- delay: animator._delay,
- onframe: onframe,
- ondestroy: oneTrackDone
- });
-
- if (easing && easing !== 'spline') {
- clip.easing = easing;
- }
-
- return clip;
- }
-
- /**
- * @alias module:zrender/animation/Animator
- * @constructor
- * @param {Object} target
- * @param {boolean} loop
- * @param {Function} getter
- * @param {Function} setter
- */
- var Animator = function(target, loop, getter, setter) {
- this._tracks = {};
- this._target = target;
-
- this._loop = loop || false;
-
- this._getter = getter || defaultGetter;
- this._setter = setter || defaultSetter;
-
- this._clipCount = 0;
-
- this._delay = 0;
-
- this._doneList = [];
-
- this._onframeList = [];
-
- this._clipList = [];
- };
-
- Animator.prototype = {
- /**
- * 设置动画关键帧
- * @param {number} time 关键帧时间,单位是ms
- * @param {Object} props 关键帧的属性值,key-value表示
- * @return {module:zrender/animation/Animator}
- */
- when: function(time /* ms */, props) {
- var tracks = this._tracks;
- for (var propName in props) {
- if (!tracks[propName]) {
- tracks[propName] = [];
- // Invalid value
- var value = this._getter(this._target, propName);
- if (value == null) {
- // zrLog('Invalid property ' + propName);
- continue;
- }
- // If time is 0
- // Then props is given initialize value
- // Else
- // Initialize value from current prop value
- if (time !== 0) {
- tracks[propName].push({
- time: 0,
- value: cloneValue(value)
- });
- }
- }
- tracks[propName].push({
- time: time,
- value: props[propName]
- });
- }
- return this;
- },
- /**
- * 添加动画每一帧的回调函数
- * @param {Function} callback
- * @return {module:zrender/animation/Animator}
- */
- during: function (callback) {
- this._onframeList.push(callback);
- return this;
- },
-
- _doneCallback: function () {
- // Clear all tracks
- this._tracks = {};
- // Clear all clips
- this._clipList.length = 0;
-
- var doneList = this._doneList;
- var len = doneList.length;
- for (var i = 0; i < len; i++) {
- doneList[i].call(this);
- }
- },
- /**
- * 开始执行动画
- * @param {string|Function} easing
- * 动画缓动函数,详见{@link module:zrender/animation/easing}
- * @return {module:zrender/animation/Animator}
- */
- start: function (easing) {
-
- var self = this;
- var clipCount = 0;
-
- var oneTrackDone = function() {
- clipCount--;
- if (!clipCount) {
- self._doneCallback();
- }
- };
-
- var lastClip;
- for (var propName in this._tracks) {
- var clip = createTrackClip(
- this, easing, oneTrackDone,
- this._tracks[propName], propName
- );
- if (clip) {
- this._clipList.push(clip);
- clipCount++;
-
- // If start after added to animation
- if (this.animation) {
- this.animation.addClip(clip);
- }
-
- lastClip = clip;
- }
- }
-
- // Add during callback on the last clip
- if (lastClip) {
- var oldOnFrame = lastClip.onframe;
- lastClip.onframe = function (target, percent) {
- oldOnFrame(target, percent);
-
- for (var i = 0; i < self._onframeList.length; i++) {
- self._onframeList[i](target, percent);
- }
- };
- }
-
- if (!clipCount) {
- this._doneCallback();
- }
- return this;
- },
- /**
- * 停止动画
- * @param {boolean} forwardToLast If move to last frame before stop
- */
- stop: function (forwardToLast) {
- var clipList = this._clipList;
- var animation = this.animation;
- for (var i = 0; i < clipList.length; i++) {
- var clip = clipList[i];
- if (forwardToLast) {
- // Move to last frame before stop
- clip.onframe(this._target, 1);
- }
- animation && animation.removeClip(clip);
- }
- clipList.length = 0;
- },
- /**
- * 设置动画延迟开始的时间
- * @param {number} time 单位ms
- * @return {module:zrender/animation/Animator}
- */
- delay: function (time) {
- this._delay = time;
- return this;
- },
- /**
- * 添加动画结束的回调
- * @param {Function} cb
- * @return {module:zrender/animation/Animator}
- */
- done: function(cb) {
- if (cb) {
- this._doneList.push(cb);
- }
- return this;
- },
-
- /**
- * @return {Array.<module:zrender/animation/Clip>}
- */
- getClips: function () {
- return this._clipList;
- }
- };
-
- module.exports = Animator;
-
-
-/***/ },
-/* 36 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 动画主控制器
- * @config target 动画对象,可以是数组,如果是数组的话会批量分发onframe等事件
- * @config life(1000) 动画时长
- * @config delay(0) 动画延迟时间
- * @config loop(true)
- * @config gap(0) 循环的间隔时间
- * @config onframe
- * @config easing(optional)
- * @config ondestroy(optional)
- * @config onrestart(optional)
- *
- * TODO pause
- */
-
-
- var easingFuncs = __webpack_require__(37);
-
- function Clip(options) {
-
- this._target = options.target;
-
- // 生命周期
- this._life = options.life || 1000;
- // 延时
- this._delay = options.delay || 0;
- // 开始时间
- // this._startTime = new Date().getTime() + this._delay;// 单位毫秒
- this._initialized = false;
-
- // 是否循环
- this.loop = options.loop == null ? false : options.loop;
-
- this.gap = options.gap || 0;
-
- this.easing = options.easing || 'Linear';
-
- this.onframe = options.onframe;
- this.ondestroy = options.ondestroy;
- this.onrestart = options.onrestart;
- }
-
- Clip.prototype = {
-
- constructor: Clip,
-
- step: function (time) {
- // Set startTime on first step, or _startTime may has milleseconds different between clips
- // PENDING
- if (!this._initialized) {
- this._startTime = new Date().getTime() + this._delay;
- this._initialized = true;
- }
-
- var percent = (time - this._startTime) / this._life;
-
- // 还没开始
- if (percent < 0) {
- return;
- }
-
- percent = Math.min(percent, 1);
-
- var easing = this.easing;
- var easingFunc = typeof easing == 'string' ? easingFuncs[easing] : easing;
- var schedule = typeof easingFunc === 'function'
- ? easingFunc(percent)
- : percent;
-
- this.fire('frame', schedule);
-
- // 结束
- if (percent == 1) {
- if (this.loop) {
- this.restart();
- // 重新开始周期
- // 抛出而不是直接调用事件直到 stage.update 后再统一调用这些事件
- return 'restart';
- }
-
- // 动画完成将这个控制器标识为待删除
- // 在Animation.update中进行批量删除
- this._needsRemove = true;
- return 'destroy';
- }
-
- return null;
- },
-
- restart: function() {
- var time = new Date().getTime();
- var remainder = (time - this._startTime) % this._life;
- this._startTime = new Date().getTime() - remainder + this.gap;
-
- this._needsRemove = false;
- },
-
- fire: function(eventType, arg) {
- eventType = 'on' + eventType;
- if (this[eventType]) {
- this[eventType](this._target, arg);
- }
- }
- };
-
- module.exports = Clip;
-
-
-
-/***/ },
-/* 37 */
-/***/ function(module, exports) {
-
- /**
- * 缓动代码来自 https://github.com/sole/tween.js/blob/master/src/Tween.js
- * @see http://sole.github.io/tween.js/examples/03_graphs.html
- * @exports zrender/animation/easing
- */
-
- var easing = {
- /**
- * @param {number} k
- * @return {number}
- */
- linear: function (k) {
- return k;
- },
-
- /**
- * @param {number} k
- * @return {number}
- */
- quadraticIn: function (k) {
- return k * k;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quadraticOut: function (k) {
- return k * (2 - k);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quadraticInOut: function (k) {
- if ((k *= 2) < 1) {
- return 0.5 * k * k;
- }
- return -0.5 * (--k * (k - 2) - 1);
- },
-
- // 三次方的缓动(t^3)
- /**
- * @param {number} k
- * @return {number}
- */
- cubicIn: function (k) {
- return k * k * k;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- cubicOut: function (k) {
- return --k * k * k + 1;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- cubicInOut: function (k) {
- if ((k *= 2) < 1) {
- return 0.5 * k * k * k;
- }
- return 0.5 * ((k -= 2) * k * k + 2);
- },
-
- // 四次方的缓动(t^4)
- /**
- * @param {number} k
- * @return {number}
- */
- quarticIn: function (k) {
- return k * k * k * k;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quarticOut: function (k) {
- return 1 - (--k * k * k * k);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quarticInOut: function (k) {
- if ((k *= 2) < 1) {
- return 0.5 * k * k * k * k;
- }
- return -0.5 * ((k -= 2) * k * k * k - 2);
- },
-
- // 五次方的缓动(t^5)
- /**
- * @param {number} k
- * @return {number}
- */
- quinticIn: function (k) {
- return k * k * k * k * k;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quinticOut: function (k) {
- return --k * k * k * k * k + 1;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- quinticInOut: function (k) {
- if ((k *= 2) < 1) {
- return 0.5 * k * k * k * k * k;
- }
- return 0.5 * ((k -= 2) * k * k * k * k + 2);
- },
-
- // 正弦曲线的缓动(sin(t))
- /**
- * @param {number} k
- * @return {number}
- */
- sinusoidalIn: function (k) {
- return 1 - Math.cos(k * Math.PI / 2);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- sinusoidalOut: function (k) {
- return Math.sin(k * Math.PI / 2);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- sinusoidalInOut: function (k) {
- return 0.5 * (1 - Math.cos(Math.PI * k));
- },
-
- // 指数曲线的缓动(2^t)
- /**
- * @param {number} k
- * @return {number}
- */
- exponentialIn: function (k) {
- return k === 0 ? 0 : Math.pow(1024, k - 1);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- exponentialOut: function (k) {
- return k === 1 ? 1 : 1 - Math.pow(2, -10 * k);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- exponentialInOut: function (k) {
- if (k === 0) {
- return 0;
- }
- if (k === 1) {
- return 1;
- }
- if ((k *= 2) < 1) {
- return 0.5 * Math.pow(1024, k - 1);
- }
- return 0.5 * (-Math.pow(2, -10 * (k - 1)) + 2);
- },
-
- // 圆形曲线的缓动(sqrt(1-t^2))
- /**
- * @param {number} k
- * @return {number}
- */
- circularIn: function (k) {
- return 1 - Math.sqrt(1 - k * k);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- circularOut: function (k) {
- return Math.sqrt(1 - (--k * k));
- },
- /**
- * @param {number} k
- * @return {number}
- */
- circularInOut: function (k) {
- if ((k *= 2) < 1) {
- return -0.5 * (Math.sqrt(1 - k * k) - 1);
- }
- return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
- },
-
- // 创建类似于弹簧在停止前来回振荡的动画
- /**
- * @param {number} k
- * @return {number}
- */
- elasticIn: function (k) {
- var s;
- var a = 0.1;
- var p = 0.4;
- if (k === 0) {
- return 0;
- }
- if (k === 1) {
- return 1;
- }
- if (!a || a < 1) {
- a = 1; s = p / 4;
- }
- else {
- s = p * Math.asin(1 / a) / (2 * Math.PI);
- }
- return -(a * Math.pow(2, 10 * (k -= 1)) *
- Math.sin((k - s) * (2 * Math.PI) / p));
- },
- /**
- * @param {number} k
- * @return {number}
- */
- elasticOut: function (k) {
- var s;
- var a = 0.1;
- var p = 0.4;
- if (k === 0) {
- return 0;
- }
- if (k === 1) {
- return 1;
- }
- if (!a || a < 1) {
- a = 1; s = p / 4;
- }
- else {
- s = p * Math.asin(1 / a) / (2 * Math.PI);
- }
- return (a * Math.pow(2, -10 * k) *
- Math.sin((k - s) * (2 * Math.PI) / p) + 1);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- elasticInOut: function (k) {
- var s;
- var a = 0.1;
- var p = 0.4;
- if (k === 0) {
- return 0;
- }
- if (k === 1) {
- return 1;
- }
- if (!a || a < 1) {
- a = 1; s = p / 4;
- }
- else {
- s = p * Math.asin(1 / a) / (2 * Math.PI);
- }
- if ((k *= 2) < 1) {
- return -0.5 * (a * Math.pow(2, 10 * (k -= 1))
- * Math.sin((k - s) * (2 * Math.PI) / p));
- }
- return a * Math.pow(2, -10 * (k -= 1))
- * Math.sin((k - s) * (2 * Math.PI) / p) * 0.5 + 1;
-
- },
-
- // 在某一动画开始沿指示的路径进行动画处理前稍稍收回该动画的移动
- /**
- * @param {number} k
- * @return {number}
- */
- backIn: function (k) {
- var s = 1.70158;
- return k * k * ((s + 1) * k - s);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- backOut: function (k) {
- var s = 1.70158;
- return --k * k * ((s + 1) * k + s) + 1;
- },
- /**
- * @param {number} k
- * @return {number}
- */
- backInOut: function (k) {
- var s = 1.70158 * 1.525;
- if ((k *= 2) < 1) {
- return 0.5 * (k * k * ((s + 1) * k - s));
- }
- return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
- },
-
- // 创建弹跳效果
- /**
- * @param {number} k
- * @return {number}
- */
- bounceIn: function (k) {
- return 1 - easing.bounceOut(1 - k);
- },
- /**
- * @param {number} k
- * @return {number}
- */
- bounceOut: function (k) {
- if (k < (1 / 2.75)) {
- return 7.5625 * k * k;
- }
- else if (k < (2 / 2.75)) {
- return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
- }
- else if (k < (2.5 / 2.75)) {
- return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
- }
- else {
- return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
- }
- },
- /**
- * @param {number} k
- * @return {number}
- */
- bounceInOut: function (k) {
- if (k < 0.5) {
- return easing.bounceIn(k * 2) * 0.5;
- }
- return easing.bounceOut(k * 2 - 1) * 0.5 + 0.5;
- }
- };
-
- module.exports = easing;
-
-
-
-
-/***/ },
-/* 38 */
-/***/ function(module, exports) {
-
- /**
- * @module zrender/tool/color
- */
-
-
- var kCSSColorTable = {
- 'transparent': [0,0,0,0], 'aliceblue': [240,248,255,1],
- 'antiquewhite': [250,235,215,1], 'aqua': [0,255,255,1],
- 'aquamarine': [127,255,212,1], 'azure': [240,255,255,1],
- 'beige': [245,245,220,1], 'bisque': [255,228,196,1],
- 'black': [0,0,0,1], 'blanchedalmond': [255,235,205,1],
- 'blue': [0,0,255,1], 'blueviolet': [138,43,226,1],
- 'brown': [165,42,42,1], 'burlywood': [222,184,135,1],
- 'cadetblue': [95,158,160,1], 'chartreuse': [127,255,0,1],
- 'chocolate': [210,105,30,1], 'coral': [255,127,80,1],
- 'cornflowerblue': [100,149,237,1], 'cornsilk': [255,248,220,1],
- 'crimson': [220,20,60,1], 'cyan': [0,255,255,1],
- 'darkblue': [0,0,139,1], 'darkcyan': [0,139,139,1],
- 'darkgoldenrod': [184,134,11,1], 'darkgray': [169,169,169,1],
- 'darkgreen': [0,100,0,1], 'darkgrey': [169,169,169,1],
- 'darkkhaki': [189,183,107,1], 'darkmagenta': [139,0,139,1],
- 'darkolivegreen': [85,107,47,1], 'darkorange': [255,140,0,1],
- 'darkorchid': [153,50,204,1], 'darkred': [139,0,0,1],
- 'darksalmon': [233,150,122,1], 'darkseagreen': [143,188,143,1],
- 'darkslateblue': [72,61,139,1], 'darkslategray': [47,79,79,1],
- 'darkslategrey': [47,79,79,1], 'darkturquoise': [0,206,209,1],
- 'darkviolet': [148,0,211,1], 'deeppink': [255,20,147,1],
- 'deepskyblue': [0,191,255,1], 'dimgray': [105,105,105,1],
- 'dimgrey': [105,105,105,1], 'dodgerblue': [30,144,255,1],
- 'firebrick': [178,34,34,1], 'floralwhite': [255,250,240,1],
- 'forestgreen': [34,139,34,1], 'fuchsia': [255,0,255,1],
- 'gainsboro': [220,220,220,1], 'ghostwhite': [248,248,255,1],
- 'gold': [255,215,0,1], 'goldenrod': [218,165,32,1],
- 'gray': [128,128,128,1], 'green': [0,128,0,1],
- 'greenyellow': [173,255,47,1], 'grey': [128,128,128,1],
- 'honeydew': [240,255,240,1], 'hotpink': [255,105,180,1],
- 'indianred': [205,92,92,1], 'indigo': [75,0,130,1],
- 'ivory': [255,255,240,1], 'khaki': [240,230,140,1],
- 'lavender': [230,230,250,1], 'lavenderblush': [255,240,245,1],
- 'lawngreen': [124,252,0,1], 'lemonchiffon': [255,250,205,1],
- 'lightblue': [173,216,230,1], 'lightcoral': [240,128,128,1],
- 'lightcyan': [224,255,255,1], 'lightgoldenrodyellow': [250,250,210,1],
- 'lightgray': [211,211,211,1], 'lightgreen': [144,238,144,1],
- 'lightgrey': [211,211,211,1], 'lightpink': [255,182,193,1],
- 'lightsalmon': [255,160,122,1], 'lightseagreen': [32,178,170,1],
- 'lightskyblue': [135,206,250,1], 'lightslategray': [119,136,153,1],
- 'lightslategrey': [119,136,153,1], 'lightsteelblue': [176,196,222,1],
- 'lightyellow': [255,255,224,1], 'lime': [0,255,0,1],
- 'limegreen': [50,205,50,1], 'linen': [250,240,230,1],
- 'magenta': [255,0,255,1], 'maroon': [128,0,0,1],
- 'mediumaquamarine': [102,205,170,1], 'mediumblue': [0,0,205,1],
- 'mediumorchid': [186,85,211,1], 'mediumpurple': [147,112,219,1],
- 'mediumseagreen': [60,179,113,1], 'mediumslateblue': [123,104,238,1],
- 'mediumspringgreen': [0,250,154,1], 'mediumturquoise': [72,209,204,1],
- 'mediumvioletred': [199,21,133,1], 'midnightblue': [25,25,112,1],
- 'mintcream': [245,255,250,1], 'mistyrose': [255,228,225,1],
- 'moccasin': [255,228,181,1], 'navajowhite': [255,222,173,1],
- 'navy': [0,0,128,1], 'oldlace': [253,245,230,1],
- 'olive': [128,128,0,1], 'olivedrab': [107,142,35,1],
- 'orange': [255,165,0,1], 'orangered': [255,69,0,1],
- 'orchid': [218,112,214,1], 'palegoldenrod': [238,232,170,1],
- 'palegreen': [152,251,152,1], 'paleturquoise': [175,238,238,1],
- 'palevioletred': [219,112,147,1], 'papayawhip': [255,239,213,1],
- 'peachpuff': [255,218,185,1], 'peru': [205,133,63,1],
- 'pink': [255,192,203,1], 'plum': [221,160,221,1],
- 'powderblue': [176,224,230,1], 'purple': [128,0,128,1],
- 'red': [255,0,0,1], 'rosybrown': [188,143,143,1],
- 'royalblue': [65,105,225,1], 'saddlebrown': [139,69,19,1],
- 'salmon': [250,128,114,1], 'sandybrown': [244,164,96,1],
- 'seagreen': [46,139,87,1], 'seashell': [255,245,238,1],
- 'sienna': [160,82,45,1], 'silver': [192,192,192,1],
- 'skyblue': [135,206,235,1], 'slateblue': [106,90,205,1],
- 'slategray': [112,128,144,1], 'slategrey': [112,128,144,1],
- 'snow': [255,250,250,1], 'springgreen': [0,255,127,1],
- 'steelblue': [70,130,180,1], 'tan': [210,180,140,1],
- 'teal': [0,128,128,1], 'thistle': [216,191,216,1],
- 'tomato': [255,99,71,1], 'turquoise': [64,224,208,1],
- 'violet': [238,130,238,1], 'wheat': [245,222,179,1],
- 'white': [255,255,255,1], 'whitesmoke': [245,245,245,1],
- 'yellow': [255,255,0,1], 'yellowgreen': [154,205,50,1]
- };
-
- function clampCssByte(i) { // Clamp to integer 0 .. 255.
- i = Math.round(i); // Seems to be what Chrome does (vs truncation).
- return i < 0 ? 0 : i > 255 ? 255 : i;
- }
-
- function clampCssAngle(i) { // Clamp to integer 0 .. 360.
- i = Math.round(i); // Seems to be what Chrome does (vs truncation).
- return i < 0 ? 0 : i > 360 ? 360 : i;
- }
-
- function clampCssFloat(f) { // Clamp to float 0.0 .. 1.0.
- return f < 0 ? 0 : f > 1 ? 1 : f;
- }
-
- function parseCssInt(str) { // int or percentage.
- if (str.length && str.charAt(str.length - 1) === '%') {
- return clampCssByte(parseFloat(str) / 100 * 255);
- }
- return clampCssByte(parseInt(str, 10));
- }
-
- function parseCssFloat(str) { // float or percentage.
- if (str.length && str.charAt(str.length - 1) === '%') {
- return clampCssFloat(parseFloat(str) / 100);
- }
- return clampCssFloat(parseFloat(str));
- }
-
- function cssHueToRgb(m1, m2, h) {
- if (h < 0) {
- h += 1;
- }
- else if (h > 1) {
- h -= 1;
- }
-
- if (h * 6 < 1) {
- return m1 + (m2 - m1) * h * 6;
- }
- if (h * 2 < 1) {
- return m2;
- }
- if (h * 3 < 2) {
- return m1 + (m2 - m1) * (2/3 - h) * 6;
- }
- return m1;
- }
-
- function lerp(a, b, p) {
- return a + (b - a) * p;
- }
-
- /**
- * @param {string} colorStr
- * @return {Array.<number>}
- * @memberOf module:zrender/util/color
- */
- function parse(colorStr) {
- if (!colorStr) {
- return;
- }
- // colorStr may be not string
- colorStr = colorStr + '';
- // Remove all whitespace, not compliant, but should just be more accepting.
- var str = colorStr.replace(/ /g, '').toLowerCase();
-
- // Color keywords (and transparent) lookup.
- if (str in kCSSColorTable) {
- return kCSSColorTable[str].slice(); // dup.
- }
-
- // #abc and #abc123 syntax.
- if (str.charAt(0) === '#') {
- if (str.length === 4) {
- var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
- if (!(iv >= 0 && iv <= 0xfff)) {
- return; // Covers NaN.
- }
- return [
- ((iv & 0xf00) >> 4) | ((iv & 0xf00) >> 8),
- (iv & 0xf0) | ((iv & 0xf0) >> 4),
- (iv & 0xf) | ((iv & 0xf) << 4),
- 1
- ];
- }
- else if (str.length === 7) {
- var iv = parseInt(str.substr(1), 16); // TODO(deanm): Stricter parsing.
- if (!(iv >= 0 && iv <= 0xffffff)) {
- return; // Covers NaN.
- }
- return [
- (iv & 0xff0000) >> 16,
- (iv & 0xff00) >> 8,
- iv & 0xff,
- 1
- ];
- }
-
- return;
- }
- var op = str.indexOf('('), ep = str.indexOf(')');
- if (op !== -1 && ep + 1 === str.length) {
- var fname = str.substr(0, op);
- var params = str.substr(op + 1, ep - (op + 1)).split(',');
- var alpha = 1; // To allow case fallthrough.
- switch (fname) {
- case 'rgba':
- if (params.length !== 4) {
- return;
- }
- alpha = parseCssFloat(params.pop()); // jshint ignore:line
- // Fall through.
- case 'rgb':
- if (params.length !== 3) {
- return;
- }
- return [
- parseCssInt(params[0]),
- parseCssInt(params[1]),
- parseCssInt(params[2]),
- alpha
- ];
- case 'hsla':
- if (params.length !== 4) {
- return;
- }
- params[3] = parseCssFloat(params[3]);
- return hsla2rgba(params);
- case 'hsl':
- if (params.length !== 3) {
- return;
- }
- return hsla2rgba(params);
- default:
- return;
- }
- }
-
- return;
- }
-
- /**
- * @param {Array.<number>} hsla
- * @return {Array.<number>} rgba
- */
- function hsla2rgba(hsla) {
- var h = (((parseFloat(hsla[0]) % 360) + 360) % 360) / 360; // 0 .. 1
- // NOTE(deanm): According to the CSS spec s/l should only be
- // percentages, but we don't bother and let float or percentage.
- var s = parseCssFloat(hsla[1]);
- var l = parseCssFloat(hsla[2]);
- var m2 = l <= 0.5 ? l * (s + 1) : l + s - l * s;
- var m1 = l * 2 - m2;
-
- var rgba = [
- clampCssByte(cssHueToRgb(m1, m2, h + 1 / 3) * 255),
- clampCssByte(cssHueToRgb(m1, m2, h) * 255),
- clampCssByte(cssHueToRgb(m1, m2, h - 1 / 3) * 255)
- ];
-
- if (hsla.length === 4) {
- rgba[3] = hsla[3];
- }
-
- return rgba;
- }
-
- /**
- * @param {Array.<number>} rgba
- * @return {Array.<number>} hsla
- */
- function rgba2hsla(rgba) {
- if (!rgba) {
- return;
- }
-
- // RGB from 0 to 255
- var R = rgba[0] / 255;
- var G = rgba[1] / 255;
- var B = rgba[2] / 255;
-
- var vMin = Math.min(R, G, B); // Min. value of RGB
- var vMax = Math.max(R, G, B); // Max. value of RGB
- var delta = vMax - vMin; // Delta RGB value
-
- var L = (vMax + vMin) / 2;
- var H;
- var S;
- // HSL results from 0 to 1
- if (delta === 0) {
- H = 0;
- S = 0;
- }
- else {
- if (L < 0.5) {
- S = delta / (vMax + vMin);
- }
- else {
- S = delta / (2 - vMax - vMin);
- }
-
- var deltaR = (((vMax - R) / 6) + (delta / 2)) / delta;
- var deltaG = (((vMax - G) / 6) + (delta / 2)) / delta;
- var deltaB = (((vMax - B) / 6) + (delta / 2)) / delta;
-
- if (R === vMax) {
- H = deltaB - deltaG;
- }
- else if (G === vMax) {
- H = (1 / 3) + deltaR - deltaB;
- }
- else if (B === vMax) {
- H = (2 / 3) + deltaG - deltaR;
- }
-
- if (H < 0) {
- H += 1;
- }
-
- if (H > 1) {
- H -= 1;
- }
- }
-
- var hsla = [H * 360, S, L];
-
- if (rgba[3] != null) {
- hsla.push(rgba[3]);
- }
-
- return hsla;
- }
-
- /**
- * @param {string} color
- * @param {number} level
- * @return {string}
- * @memberOf module:zrender/util/color
- */
- function lift(color, level) {
- var colorArr = parse(color);
- if (colorArr) {
- for (var i = 0; i < 3; i++) {
- if (level < 0) {
- colorArr[i] = colorArr[i] * (1 - level) | 0;
- }
- else {
- colorArr[i] = ((255 - colorArr[i]) * level + colorArr[i]) | 0;
- }
- }
- return stringify(colorArr, colorArr.length === 4 ? 'rgba' : 'rgb');
- }
- }
-
- /**
- * @param {string} color
- * @return {string}
- * @memberOf module:zrender/util/color
- */
- function toHex(color, level) {
- var colorArr = parse(color);
- if (colorArr) {
- return ((1 << 24) + (colorArr[0] << 16) + (colorArr[1] << 8) + (+colorArr[2])).toString(16).slice(1);
- }
- }
-
- /**
- * Map value to color. Faster than mapToColor methods because color is represented by rgba array
- * @param {number} normalizedValue A float between 0 and 1.
- * @param {Array.<Array.<number>>} colors List of rgba color array
- * @param {Array.<number>} [out] Mapped gba color array
- * @return {Array.<number>}
- */
- function fastMapToColor(normalizedValue, colors, out) {
- if (!(colors && colors.length)
- || !(normalizedValue >= 0 && normalizedValue <= 1)
- ) {
- return;
- }
- out = out || [0, 0, 0, 0];
- var value = normalizedValue * (colors.length - 1);
- var leftIndex = Math.floor(value);
- var rightIndex = Math.ceil(value);
- var leftColor = colors[leftIndex];
- var rightColor = colors[rightIndex];
- var dv = value - leftIndex;
- out[0] = clampCssByte(lerp(leftColor[0], rightColor[0], dv));
- out[1] = clampCssByte(lerp(leftColor[1], rightColor[1], dv));
- out[2] = clampCssByte(lerp(leftColor[2], rightColor[2], dv));
- out[3] = clampCssByte(lerp(leftColor[3], rightColor[3], dv));
- return out;
- }
- /**
- * @param {number} normalizedValue A float between 0 and 1.
- * @param {Array.<string>} colors Color list.
- * @param {boolean=} fullOutput Default false.
- * @return {(string|Object)} Result color. If fullOutput,
- * return {color: ..., leftIndex: ..., rightIndex: ..., value: ...},
- * @memberOf module:zrender/util/color
- */
- function mapToColor(normalizedValue, colors, fullOutput) {
- if (!(colors && colors.length)
- || !(normalizedValue >= 0 && normalizedValue <= 1)
- ) {
- return;
- }
-
- var value = normalizedValue * (colors.length - 1);
- var leftIndex = Math.floor(value);
- var rightIndex = Math.ceil(value);
- var leftColor = parse(colors[leftIndex]);
- var rightColor = parse(colors[rightIndex]);
- var dv = value - leftIndex;
-
- var color = stringify(
- [
- clampCssByte(lerp(leftColor[0], rightColor[0], dv)),
- clampCssByte(lerp(leftColor[1], rightColor[1], dv)),
- clampCssByte(lerp(leftColor[2], rightColor[2], dv)),
- clampCssFloat(lerp(leftColor[3], rightColor[3], dv))
- ],
- 'rgba'
- );
-
- return fullOutput
- ? {
- color: color,
- leftIndex: leftIndex,
- rightIndex: rightIndex,
- value: value
- }
- : color;
- }
-
- /**
- * @param {Array<number>} interval Array length === 2,
- * each item is normalized value ([0, 1]).
- * @param {Array.<string>} colors Color list.
- * @return {Array.<Object>} colors corresponding to the interval,
- * each item is {color: 'xxx', offset: ...}
- * where offset is between 0 and 1.
- * @memberOf module:zrender/util/color
- */
- function mapIntervalToColor(interval, colors) {
- if (interval.length !== 2 || interval[1] < interval[0]) {
- return;
- }
-
- var info0 = mapToColor(interval[0], colors, true);
- var info1 = mapToColor(interval[1], colors, true);
-
- var result = [{color: info0.color, offset: 0}];
-
- var during = info1.value - info0.value;
- var start = Math.max(info0.value, info0.rightIndex);
- var end = Math.min(info1.value, info1.leftIndex);
-
- for (var i = start; during > 0 && i <= end; i++) {
- result.push({
- color: colors[i],
- offset: (i - info0.value) / during
- });
- }
- result.push({color: info1.color, offset: 1});
-
- return result;
- }
-
- /**
- * @param {string} color
- * @param {number=} h 0 ~ 360, ignore when null.
- * @param {number=} s 0 ~ 1, ignore when null.
- * @param {number=} l 0 ~ 1, ignore when null.
- * @return {string} Color string in rgba format.
- * @memberOf module:zrender/util/color
- */
- function modifyHSL(color, h, s, l) {
- color = parse(color);
-
- if (color) {
- color = rgba2hsla(color);
- h != null && (color[0] = clampCssAngle(h));
- s != null && (color[1] = parseCssFloat(s));
- l != null && (color[2] = parseCssFloat(l));
-
- return stringify(hsla2rgba(color), 'rgba');
- }
- }
-
- /**
- * @param {string} color
- * @param {number=} alpha 0 ~ 1
- * @return {string} Color string in rgba format.
- * @memberOf module:zrender/util/color
- */
- function modifyAlpha(color, alpha) {
- color = parse(color);
-
- if (color && alpha != null) {
- color[3] = clampCssFloat(alpha);
- return stringify(color, 'rgba');
- }
- }
-
- /**
- * @param {Array.<string>} colors Color list.
- * @param {string} type 'rgba', 'hsva', ...
- * @return {string} Result color.
- */
- function stringify(arrColor, type) {
- if (type === 'rgb' || type === 'hsv' || type === 'hsl') {
- arrColor = arrColor.slice(0, 3);
- }
- return type + '(' + arrColor.join(',') + ')';
- }
-
- module.exports = {
- parse: parse,
- lift: lift,
- toHex: toHex,
- fastMapToColor: fastMapToColor,
- mapToColor: mapToColor,
- mapIntervalToColor: mapIntervalToColor,
- modifyHSL: modifyHSL,
- modifyAlpha: modifyAlpha,
- stringify: stringify
- };
-
-
-
-
-/***/ },
-/* 39 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- var config = __webpack_require__(40);
-
- /**
- * @exports zrender/tool/log
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- */
- module.exports = function() {
- if (config.debugMode === 0) {
- return;
- }
- else if (config.debugMode == 1) {
- for (var k in arguments) {
- throw new Error(arguments[k]);
- }
- }
- else if (config.debugMode > 1) {
- for (var k in arguments) {
- console.log(arguments[k]);
- }
- }
- };
-
- /* for debug
- return function(mes) {
- document.getElementById('wrong-message').innerHTML =
- mes + ' ' + (new Date() - 0)
- + '<br/>'
- + document.getElementById('wrong-message').innerHTML;
- };
- */
-
-
-
-/***/ },
-/* 40 */
-/***/ function(module, exports) {
-
-
- var dpr = 1;
- // If in browser environment
- if (typeof window !== 'undefined') {
- dpr = Math.max(window.devicePixelRatio || 1, 1);
- }
- /**
- * config默认配置项
- * @exports zrender/config
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- */
- var config = {
- /**
- * debug日志选项:catchBrushException为true下有效
- * 0 : 不生成debug数据,发布用
- * 1 : 异常抛出,调试用
- * 2 : 控制台输出,调试用
- */
- debugMode: 0,
-
- // retina 屏幕优化
- devicePixelRatio: dpr
- };
- module.exports = config;
-
-
-
-
-/***/ },
-/* 41 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var Group = __webpack_require__(29);
- var componentUtil = __webpack_require__(20);
- var clazzUtil = __webpack_require__(9);
-
- function Chart() {
-
- /**
- * @type {module:zrender/container/Group}
- * @readOnly
- */
- this.group = new Group();
-
- /**
- * @type {string}
- * @readOnly
- */
- this.uid = componentUtil.getUID('viewChart');
- }
-
- Chart.prototype = {
-
- type: 'chart',
-
- /**
- * Init the chart
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- */
- init: function (ecModel, api) {},
-
- /**
- * Render the chart
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- * @param {Object} payload
- */
- render: function (seriesModel, ecModel, api, payload) {},
-
- /**
- * Highlight series or specified data item
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- * @param {Object} payload
- */
- highlight: function (seriesModel, ecModel, api, payload) {
- toggleHighlight(seriesModel.getData(), payload, 'emphasis');
- },
-
- /**
- * Downplay series or specified data item
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- * @param {Object} payload
- */
- downplay: function (seriesModel, ecModel, api, payload) {
- toggleHighlight(seriesModel.getData(), payload, 'normal');
- },
-
- /**
- * Remove self
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- */
- remove: function (ecModel, api) {
- this.group.removeAll();
- },
-
- /**
- * Dispose self
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- */
- dispose: function () {}
- };
-
- var chartProto = Chart.prototype;
- chartProto.updateView
- = chartProto.updateLayout
- = chartProto.updateVisual
- = function (seriesModel, ecModel, api, payload) {
- this.render(seriesModel, ecModel, api, payload);
- };
-
- /**
- * Set state of single element
- * @param {module:zrender/Element} el
- * @param {string} state
- */
- function elSetState(el, state) {
- if (el) {
- el.trigger(state);
- if (el.type === 'group') {
- for (var i = 0; i < el.childCount(); i++) {
- elSetState(el.childAt(i), state);
- }
- }
- }
- }
- /**
- * @param {module:echarts/data/List} data
- * @param {Object} payload
- * @param {string} state 'normal'|'emphasis'
- * @inner
- */
- function toggleHighlight(data, payload, state) {
- if (payload.dataIndex != null) {
- var el = data.getItemGraphicEl(payload.dataIndex);
- elSetState(el, state);
- }
- else if (payload.name) {
- var dataIndex = data.indexOfName(payload.name);
- var el = data.getItemGraphicEl(dataIndex);
- elSetState(el, state);
- }
- else {
- data.eachItemGraphicEl(function (el) {
- elSetState(el, state);
- });
- }
- }
-
- // Enable Chart.extend.
- clazzUtil.enableClassExtend(Chart);
-
- // Add capability of registerClass, getClass, hasClass, registerSubTypeDefaulter and so on.
- clazzUtil.enableClassManagement(Chart, {registerWhenExtend: true});
-
- module.exports = Chart;
-
-
-/***/ },
-/* 42 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
-
- var pathTool = __webpack_require__(43);
- var round = Math.round;
- var Path = __webpack_require__(44);
- var colorTool = __webpack_require__(38);
- var matrix = __webpack_require__(17);
- var vector = __webpack_require__(16);
- var Gradient = __webpack_require__(4);
-
- var graphic = {};
-
- graphic.Group = __webpack_require__(29);
-
- graphic.Image = __webpack_require__(59);
-
- graphic.Text = __webpack_require__(62);
-
- graphic.Circle = __webpack_require__(63);
-
- graphic.Sector = __webpack_require__(64);
-
- graphic.Ring = __webpack_require__(65);
-
- graphic.Polygon = __webpack_require__(66);
-
- graphic.Polyline = __webpack_require__(70);
-
- graphic.Rect = __webpack_require__(71);
-
- graphic.Line = __webpack_require__(72);
-
- graphic.BezierCurve = __webpack_require__(73);
-
- graphic.Arc = __webpack_require__(74);
-
- graphic.LinearGradient = __webpack_require__(75);
-
- graphic.RadialGradient = __webpack_require__(76);
-
- graphic.BoundingRect = __webpack_require__(15);
-
- /**
- * Extend shape with parameters
- */
- graphic.extendShape = function (opts) {
- return Path.extend(opts);
- };
-
- /**
- * Extend path
- */
- graphic.extendPath = function (pathData, opts) {
- return pathTool.extendFromString(pathData, opts);
- };
-
- /**
- * Create a path element from path data string
- * @param {string} pathData
- * @param {Object} opts
- * @param {module:zrender/core/BoundingRect} rect
- * @param {string} [layout=cover] 'center' or 'cover'
- */
- graphic.makePath = function (pathData, opts, rect, layout) {
- var path = pathTool.createFromString(pathData, opts);
- var boundingRect = path.getBoundingRect();
- if (rect) {
- var aspect = boundingRect.width / boundingRect.height;
-
- if (layout === 'center') {
- // Set rect to center, keep width / height ratio.
- var width = rect.height * aspect;
- var height;
- if (width <= rect.width) {
- height = rect.height;
- }
- else {
- width = rect.width;
- height = width / aspect;
- }
- var cx = rect.x + rect.width / 2;
- var cy = rect.y + rect.height / 2;
-
- rect.x = cx - width / 2;
- rect.y = cy - height / 2;
- rect.width = width;
- rect.height = height;
- }
-
- this.resizePath(path, rect);
- }
- return path;
- };
-
- graphic.mergePath = pathTool.mergePath,
-
- /**
- * Resize a path to fit the rect
- * @param {module:zrender/graphic/Path} path
- * @param {Object} rect
- */
- graphic.resizePath = function (path, rect) {
- if (!path.applyTransform) {
- return;
- }
-
- var pathRect = path.getBoundingRect();
-
- var m = pathRect.calculateTransform(rect);
-
- path.applyTransform(m);
- };
-
- /**
- * Sub pixel optimize line for canvas
- *
- * @param {Object} param
- * @param {Object} [param.shape]
- * @param {number} [param.shape.x1]
- * @param {number} [param.shape.y1]
- * @param {number} [param.shape.x2]
- * @param {number} [param.shape.y2]
- * @param {Object} [param.style]
- * @param {number} [param.style.lineWidth]
- * @return {Object} Modified param
- */
- graphic.subPixelOptimizeLine = function (param) {
- var subPixelOptimize = graphic.subPixelOptimize;
- var shape = param.shape;
- var lineWidth = param.style.lineWidth;
-
- if (round(shape.x1 * 2) === round(shape.x2 * 2)) {
- shape.x1 = shape.x2 = subPixelOptimize(shape.x1, lineWidth, true);
- }
- if (round(shape.y1 * 2) === round(shape.y2 * 2)) {
- shape.y1 = shape.y2 = subPixelOptimize(shape.y1, lineWidth, true);
- }
- return param;
- };
-
- /**
- * Sub pixel optimize rect for canvas
- *
- * @param {Object} param
- * @param {Object} [param.shape]
- * @param {number} [param.shape.x]
- * @param {number} [param.shape.y]
- * @param {number} [param.shape.width]
- * @param {number} [param.shape.height]
- * @param {Object} [param.style]
- * @param {number} [param.style.lineWidth]
- * @return {Object} Modified param
- */
- graphic.subPixelOptimizeRect = function (param) {
- var subPixelOptimize = graphic.subPixelOptimize;
- var shape = param.shape;
- var lineWidth = param.style.lineWidth;
- var originX = shape.x;
- var originY = shape.y;
- var originWidth = shape.width;
- var originHeight = shape.height;
- shape.x = subPixelOptimize(shape.x, lineWidth, true);
- shape.y = subPixelOptimize(shape.y, lineWidth, true);
- shape.width = Math.max(
- subPixelOptimize(originX + originWidth, lineWidth, false) - shape.x,
- originWidth === 0 ? 0 : 1
- );
- shape.height = Math.max(
- subPixelOptimize(originY + originHeight, lineWidth, false) - shape.y,
- originHeight === 0 ? 0 : 1
- );
- return param;
- };
-
- /**
- * Sub pixel optimize for canvas
- *
- * @param {number} position Coordinate, such as x, y
- * @param {number} lineWidth Should be nonnegative integer.
- * @param {boolean=} positiveOrNegative Default false (negative).
- * @return {number} Optimized position.
- */
- graphic.subPixelOptimize = function (position, lineWidth, positiveOrNegative) {
- // Assure that (position + lineWidth / 2) is near integer edge,
- // otherwise line will be fuzzy in canvas.
- var doubledPosition = round(position * 2);
- return (doubledPosition + round(lineWidth)) % 2 === 0
- ? doubledPosition / 2
- : (doubledPosition + (positiveOrNegative ? 1 : -1)) / 2;
- };
-
- /**
- * @private
- */
- function doSingleEnterHover(el) {
- if (el.__isHover) {
- return;
- }
- if (el.__hoverStlDirty) {
- var stroke = el.style.stroke;
- var fill = el.style.fill;
-
- // Create hoverStyle on mouseover
- var hoverStyle = el.__hoverStl;
- var lift = colorTool.lift;
- hoverStyle.fill = hoverStyle.fill
- || (fill && (fill instanceof Gradient ? fill : lift(fill, -0.1)));
- hoverStyle.stroke = hoverStyle.stroke
- || (stroke && (stroke instanceof Gradient ? stroke : lift(stroke, -0.1)));
-
- var normalStyle = {};
- for (var name in hoverStyle) {
- if (hoverStyle.hasOwnProperty(name)) {
- normalStyle[name] = el.style[name];
- }
- }
-
- el.__normalStl = normalStyle;
-
- el.__hoverStlDirty = false;
- }
- el.setStyle(el.__hoverStl);
- el.z2 += 1;
-
- el.__isHover = true;
- }
-
- /**
- * @inner
- */
- function doSingleLeaveHover(el) {
- if (!el.__isHover) {
- return;
- }
-
- var normalStl = el.__normalStl;
- normalStl && el.setStyle(normalStl);
- el.z2 -= 1;
-
- el.__isHover = false;
- }
-
- /**
- * @inner
- */
- function doEnterHover(el) {
- el.type === 'group'
- ? el.traverse(function (child) {
- if (child.type !== 'group') {
- doSingleEnterHover(child);
- }
- })
- : doSingleEnterHover(el);
- }
-
- function doLeaveHover(el) {
- el.type === 'group'
- ? el.traverse(function (child) {
- if (child.type !== 'group') {
- doSingleLeaveHover(child);
- }
- })
- : doSingleLeaveHover(el);
- }
-
- /**
- * @inner
- */
- function setElementHoverStl(el, hoverStl) {
- // If element has sepcified hoverStyle, then use it instead of given hoverStyle
- // Often used when item group has a label element and it's hoverStyle is different
- el.__hoverStl = el.hoverStyle || hoverStl || {};
- el.__hoverStlDirty = true;
- }
-
- /**
- * @inner
- */
- function onElementMouseOver() {
- // Only if element is not in emphasis status
- !this.__isEmphasis && doEnterHover(this);
- }
-
- /**
- * @inner
- */
- function onElementMouseOut() {
- // Only if element is not in emphasis status
- !this.__isEmphasis && doLeaveHover(this);
- }
-
- /**
- * @inner
- */
- function enterEmphasis() {
- this.__isEmphasis = true;
- doEnterHover(this);
- }
-
- /**
- * @inner
- */
- function leaveEmphasis() {
- this.__isEmphasis = false;
- doLeaveHover(this);
- }
-
- /**
- * Set hover style of element
- * @param {module:zrender/Element} el
- * @param {Object} [hoverStyle]
- */
- graphic.setHoverStyle = function (el, hoverStyle) {
- el.type === 'group'
- ? el.traverse(function (child) {
- if (child.type !== 'group') {
- setElementHoverStl(child, hoverStyle);
- }
- })
- : setElementHoverStl(el, hoverStyle);
- // Remove previous bound handlers
- el.on('mouseover', onElementMouseOver)
- .on('mouseout', onElementMouseOut);
-
- // Emphasis, normal can be triggered manually
- el.on('emphasis', enterEmphasis)
- .on('normal', leaveEmphasis);
- };
-
- /**
- * Set text option in the style
- * @param {Object} textStyle
- * @param {module:echarts/model/Model} labelModel
- * @param {string} color
- */
- graphic.setText = function (textStyle, labelModel, color) {
- var labelPosition = labelModel.getShallow('position') || 'inside';
- var labelColor = labelPosition.indexOf('inside') >= 0 ? 'white' : color;
- var textStyleModel = labelModel.getModel('textStyle');
- zrUtil.extend(textStyle, {
- textDistance: labelModel.getShallow('distance') || 5,
- textFont: textStyleModel.getFont(),
- textPosition: labelPosition,
- textFill: textStyleModel.getTextColor() || labelColor
- });
- };
-
- function animateOrSetProps(isUpdate, el, props, animatableModel, cb) {
- var postfix = isUpdate ? 'Update' : '';
- var duration = animatableModel
- && animatableModel.getShallow('animationDuration' + postfix);
- var animationEasing = animatableModel
- && animatableModel.getShallow('animationEasing' + postfix);
-
- animatableModel && animatableModel.getShallow('animation')
- ? el.animateTo(props, duration, animationEasing, cb)
- : (el.attr(props), cb && cb());
- }
- /**
- * Update graphic element properties with or without animation according to the configuration in series
- * @param {module:zrender/Element} el
- * @param {Object} props
- * @param {module:echarts/model/Model} [animatableModel]
- * @param {Function} cb
- */
- graphic.updateProps = zrUtil.curry(animateOrSetProps, true);
-
- /**
- * Init graphic element properties with or without animation according to the configuration in series
- * @param {module:zrender/Element} el
- * @param {Object} props
- * @param {module:echarts/model/Model} [animatableModel]
- * @param {Function} cb
- */
- graphic.initProps = zrUtil.curry(animateOrSetProps, false);
-
- /**
- * Get transform matrix of target (param target),
- * in coordinate of its ancestor (param ancestor)
- *
- * @param {module:zrender/mixin/Transformable} target
- * @param {module:zrender/mixin/Transformable} ancestor
- */
- graphic.getTransform = function (target, ancestor) {
- var mat = matrix.identity([]);
-
- while (target && target !== ancestor) {
- matrix.mul(mat, target.getLocalTransform(), mat);
- target = target.parent;
- }
-
- return mat;
- };
-
- /**
- * Apply transform to an vertex.
- * @param {Array.<number>} vertex [x, y]
- * @param {Array.<number>} transform Transform matrix: like [1, 0, 0, 1, 0, 0]
- * @param {boolean=} invert Whether use invert matrix.
- * @return {Array.<number>} [x, y]
- */
- graphic.applyTransform = function (vertex, transform, invert) {
- if (invert) {
- transform = matrix.invert([], transform);
- }
- return vector.applyTransform([], vertex, transform);
- };
-
- /**
- * @param {string} direction 'left' 'right' 'top' 'bottom'
- * @param {Array.<number>} transform Transform matrix: like [1, 0, 0, 1, 0, 0]
- * @param {boolean=} invert Whether use invert matrix.
- * @return {string} Transformed direction. 'left' 'right' 'top' 'bottom'
- */
- graphic.transformDirection = function (direction, transform, invert) {
-
- // Pick a base, ensure that transform result will not be (0, 0).
- var hBase = (transform[4] === 0 || transform[5] === 0 || transform[0] === 0)
- ? 1 : Math.abs(2 * transform[4] / transform[0]);
- var vBase = (transform[4] === 0 || transform[5] === 0 || transform[2] === 0)
- ? 1 : Math.abs(2 * transform[4] / transform[2]);
-
- var vertex = [
- direction === 'left' ? -hBase : direction === 'right' ? hBase : 0,
- direction === 'top' ? -vBase : direction === 'bottom' ? vBase : 0
- ];
-
- vertex = graphic.applyTransform(vertex, transform, invert);
-
- return Math.abs(vertex[0]) > Math.abs(vertex[1])
- ? (vertex[0] > 0 ? 'right' : 'left')
- : (vertex[1] > 0 ? 'bottom' : 'top');
- };
-
- module.exports = graphic;
-
-
-/***/ },
-/* 43 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var Path = __webpack_require__(44);
- var PathProxy = __webpack_require__(48);
- var transformPath = __webpack_require__(58);
- var matrix = __webpack_require__(17);
-
- // command chars
- var cc = [
- 'm', 'M', 'l', 'L', 'v', 'V', 'h', 'H', 'z', 'Z',
- 'c', 'C', 'q', 'Q', 't', 'T', 's', 'S', 'a', 'A'
- ];
-
- var mathSqrt = Math.sqrt;
- var mathSin = Math.sin;
- var mathCos = Math.cos;
- var PI = Math.PI;
-
- var vMag = function(v) {
- return Math.sqrt(v[0] * v[0] + v[1] * v[1]);
- };
- var vRatio = function(u, v) {
- return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));
- };
- var vAngle = function(u, v) {
- return (u[0] * v[1] < u[1] * v[0] ? -1 : 1)
- * Math.acos(vRatio(u, v));
- };
-
- function processArc(x1, y1, x2, y2, fa, fs, rx, ry, psiDeg, cmd, path) {
- var psi = psiDeg * (PI / 180.0);
- var xp = mathCos(psi) * (x1 - x2) / 2.0
- + mathSin(psi) * (y1 - y2) / 2.0;
- var yp = -1 * mathSin(psi) * (x1 - x2) / 2.0
- + mathCos(psi) * (y1 - y2) / 2.0;
-
- var lambda = (xp * xp) / (rx * rx) + (yp * yp) / (ry * ry);
-
- if (lambda > 1) {
- rx *= mathSqrt(lambda);
- ry *= mathSqrt(lambda);
- }
-
- var f = (fa === fs ? -1 : 1)
- * mathSqrt((((rx * rx) * (ry * ry))
- - ((rx * rx) * (yp * yp))
- - ((ry * ry) * (xp * xp))) / ((rx * rx) * (yp * yp)
- + (ry * ry) * (xp * xp))
- ) || 0;
-
- var cxp = f * rx * yp / ry;
- var cyp = f * -ry * xp / rx;
-
- var cx = (x1 + x2) / 2.0
- + mathCos(psi) * cxp
- - mathSin(psi) * cyp;
- var cy = (y1 + y2) / 2.0
- + mathSin(psi) * cxp
- + mathCos(psi) * cyp;
-
- var theta = vAngle([ 1, 0 ], [ (xp - cxp) / rx, (yp - cyp) / ry ]);
- var u = [ (xp - cxp) / rx, (yp - cyp) / ry ];
- var v = [ (-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry ];
- var dTheta = vAngle(u, v);
-
- if (vRatio(u, v) <= -1) {
- dTheta = PI;
- }
- if (vRatio(u, v) >= 1) {
- dTheta = 0;
- }
- if (fs === 0 && dTheta > 0) {
- dTheta = dTheta - 2 * PI;
- }
- if (fs === 1 && dTheta < 0) {
- dTheta = dTheta + 2 * PI;
- }
-
- path.addData(cmd, cx, cy, rx, ry, theta, dTheta, psi, fs);
- }
-
- function createPathProxyFromString(data) {
- if (!data) {
- return [];
- }
-
- // command string
- var cs = data.replace(/-/g, ' -')
- .replace(/ /g, ' ')
- .replace(/ /g, ',')
- .replace(/,,/g, ',');
-
- var n;
- // create pipes so that we can split the data
- for (n = 0; n < cc.length; n++) {
- cs = cs.replace(new RegExp(cc[n], 'g'), '|' + cc[n]);
- }
-
- // create array
- var arr = cs.split('|');
- // init context point
- var cpx = 0;
- var cpy = 0;
-
- var path = new PathProxy();
- var CMD = PathProxy.CMD;
-
- var prevCmd;
- for (n = 1; n < arr.length; n++) {
- var str = arr[n];
- var c = str.charAt(0);
- var off = 0;
- var p = str.slice(1).replace(/e,-/g, 'e-').split(',');
- var cmd;
-
- if (p.length > 0 && p[0] === '') {
- p.shift();
- }
-
- for (var i = 0; i < p.length; i++) {
- p[i] = parseFloat(p[i]);
- }
- while (off < p.length && !isNaN(p[off])) {
- if (isNaN(p[0])) {
- break;
- }
- var ctlPtx;
- var ctlPty;
-
- var rx;
- var ry;
- var psi;
- var fa;
- var fs;
-
- var x1 = cpx;
- var y1 = cpy;
-
- // convert l, H, h, V, and v to L
- switch (c) {
- case 'l':
- cpx += p[off++];
- cpy += p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'L':
- cpx = p[off++];
- cpy = p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'm':
- cpx += p[off++];
- cpy += p[off++];
- cmd = CMD.M;
- path.addData(cmd, cpx, cpy);
- c = 'l';
- break;
- case 'M':
- cpx = p[off++];
- cpy = p[off++];
- cmd = CMD.M;
- path.addData(cmd, cpx, cpy);
- c = 'L';
- break;
- case 'h':
- cpx += p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'H':
- cpx = p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'v':
- cpy += p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'V':
- cpy = p[off++];
- cmd = CMD.L;
- path.addData(cmd, cpx, cpy);
- break;
- case 'C':
- cmd = CMD.C;
- path.addData(
- cmd, p[off++], p[off++], p[off++], p[off++], p[off++], p[off++]
- );
- cpx = p[off - 2];
- cpy = p[off - 1];
- break;
- case 'c':
- cmd = CMD.C;
- path.addData(
- cmd,
- p[off++] + cpx, p[off++] + cpy,
- p[off++] + cpx, p[off++] + cpy,
- p[off++] + cpx, p[off++] + cpy
- );
- cpx += p[off - 2];
- cpy += p[off - 1];
- break;
- case 'S':
- ctlPtx = cpx;
- ctlPty = cpy;
- var len = path.len();
- var pathData = path.data;
- if (prevCmd === CMD.C) {
- ctlPtx += cpx - pathData[len - 4];
- ctlPty += cpy - pathData[len - 3];
- }
- cmd = CMD.C;
- x1 = p[off++];
- y1 = p[off++];
- cpx = p[off++];
- cpy = p[off++];
- path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
- break;
- case 's':
- ctlPtx = cpx;
- ctlPty = cpy;
- var len = path.len();
- var pathData = path.data;
- if (prevCmd === CMD.C) {
- ctlPtx += cpx - pathData[len - 4];
- ctlPty += cpy - pathData[len - 3];
- }
- cmd = CMD.C;
- x1 = cpx + p[off++];
- y1 = cpy + p[off++];
- cpx += p[off++];
- cpy += p[off++];
- path.addData(cmd, ctlPtx, ctlPty, x1, y1, cpx, cpy);
- break;
- case 'Q':
- x1 = p[off++];
- y1 = p[off++];
- cpx = p[off++];
- cpy = p[off++];
- cmd = CMD.Q;
- path.addData(cmd, x1, y1, cpx, cpy);
- break;
- case 'q':
- x1 = p[off++] + cpx;
- y1 = p[off++] + cpy;
- cpx += p[off++];
- cpy += p[off++];
- cmd = CMD.Q;
- path.addData(cmd, x1, y1, cpx, cpy);
- break;
- case 'T':
- ctlPtx = cpx;
- ctlPty = cpy;
- var len = path.len();
- var pathData = path.data;
- if (prevCmd === CMD.Q) {
- ctlPtx += cpx - pathData[len - 4];
- ctlPty += cpy - pathData[len - 3];
- }
- cpx = p[off++];
- cpy = p[off++];
- cmd = CMD.Q;
- path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
- break;
- case 't':
- ctlPtx = cpx;
- ctlPty = cpy;
- var len = path.len();
- var pathData = path.data;
- if (prevCmd === CMD.Q) {
- ctlPtx += cpx - pathData[len - 4];
- ctlPty += cpy - pathData[len - 3];
- }
- cpx += p[off++];
- cpy += p[off++];
- cmd = CMD.Q;
- path.addData(cmd, ctlPtx, ctlPty, cpx, cpy);
- break;
- case 'A':
- rx = p[off++];
- ry = p[off++];
- psi = p[off++];
- fa = p[off++];
- fs = p[off++];
-
- x1 = cpx, y1 = cpy;
- cpx = p[off++];
- cpy = p[off++];
- cmd = CMD.A;
- processArc(
- x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path
- );
- break;
- case 'a':
- rx = p[off++];
- ry = p[off++];
- psi = p[off++];
- fa = p[off++];
- fs = p[off++];
-
- x1 = cpx, y1 = cpy;
- cpx += p[off++];
- cpy += p[off++];
- cmd = CMD.A;
- processArc(
- x1, y1, cpx, cpy, fa, fs, rx, ry, psi, cmd, path
- );
- break;
- }
- }
-
- if (c === 'z' || c === 'Z') {
- cmd = CMD.Z;
- path.addData(cmd);
- }
-
- prevCmd = cmd;
- }
-
- path.toStatic();
-
- return path;
- }
-
- // TODO Optimize double memory cost problem
- function createPathOptions(str, opts) {
- var pathProxy = createPathProxyFromString(str);
- var transform;
- opts = opts || {};
- opts.buildPath = function (path) {
- path.setData(pathProxy.data);
- transform && transformPath(path, transform);
- // Svg and vml renderer don't have context
- var ctx = path.getContext();
- if (ctx) {
- path.rebuildPath(ctx);
- }
- };
-
- opts.applyTransform = function (m) {
- if (!transform) {
- transform = matrix.create();
- }
- matrix.mul(transform, m, transform);
- };
-
- return opts;
- }
-
- module.exports = {
- /**
- * Create a Path object from path string data
- * http://www.w3.org/TR/SVG/paths.html#PathData
- * @param {Object} opts Other options
- */
- createFromString: function (str, opts) {
- return new Path(createPathOptions(str, opts));
- },
-
- /**
- * Create a Path class from path string data
- * @param {string} str
- * @param {Object} opts Other options
- */
- extendFromString: function (str, opts) {
- return Path.extend(createPathOptions(str, opts));
- },
-
- /**
- * Merge multiple paths
- */
- // TODO Apply transform
- // TODO stroke dash
- // TODO Optimize double memory cost problem
- mergePath: function (pathEls, opts) {
- var pathList = [];
- var len = pathEls.length;
- var pathEl;
- var i;
- for (i = 0; i < len; i++) {
- pathEl = pathEls[i];
- if (pathEl.__dirty) {
- pathEl.buildPath(pathEl.path, pathEl.shape);
- }
- pathList.push(pathEl.path);
- }
-
- var pathBundle = new Path(opts);
- pathBundle.buildPath = function (path) {
- path.appendPath(pathList);
- // Svg and vml renderer don't have context
- var ctx = path.getContext();
- if (ctx) {
- path.rebuildPath(ctx);
- }
- };
-
- return pathBundle;
- }
- };
-
-
-/***/ },
-/* 44 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Path element
- * @module zrender/graphic/Path
- */
-
-
-
- var Displayable = __webpack_require__(45);
- var zrUtil = __webpack_require__(3);
- var PathProxy = __webpack_require__(48);
- var pathContain = __webpack_require__(51);
-
- var Gradient = __webpack_require__(4);
-
- function pathHasFill(style) {
- var fill = style.fill;
- return fill != null && fill !== 'none';
- }
-
- function pathHasStroke(style) {
- var stroke = style.stroke;
- return stroke != null && stroke !== 'none' && style.lineWidth > 0;
- }
-
- var abs = Math.abs;
-
- /**
- * @alias module:zrender/graphic/Path
- * @extends module:zrender/graphic/Displayable
- * @constructor
- * @param {Object} opts
- */
- function Path(opts) {
- Displayable.call(this, opts);
-
- /**
- * @type {module:zrender/core/PathProxy}
- * @readOnly
- */
- this.path = new PathProxy();
- }
-
- Path.prototype = {
-
- constructor: Path,
-
- type: 'path',
-
- __dirtyPath: true,
-
- strokeContainThreshold: 5,
-
- brush: function (ctx) {
- ctx.save();
-
- var style = this.style;
- var path = this.path;
- var hasStroke = pathHasStroke(style);
- var hasFill = pathHasFill(style);
-
- if (this.__dirtyPath) {
- // Update gradient because bounding rect may changed
- if (hasFill && (style.fill instanceof Gradient)) {
- style.fill.updateCanvasGradient(this, ctx);
- }
- if (hasStroke && (style.stroke instanceof Gradient)) {
- style.stroke.updateCanvasGradient(this, ctx);
- }
- }
-
- style.bind(ctx, this);
- this.setTransform(ctx);
-
- var lineDash = style.lineDash;
- var lineDashOffset = style.lineDashOffset;
-
- var ctxLineDash = !!ctx.setLineDash;
-
- // Proxy context
- // Rebuild path in following 2 cases
- // 1. Path is dirty
- // 2. Path needs javascript implemented lineDash stroking.
- // In this case, lineDash information will not be saved in PathProxy
- if (this.__dirtyPath || (
- lineDash && !ctxLineDash && hasStroke
- )) {
- path = this.path.beginPath(ctx);
-
- // Setting line dash before build path
- if (lineDash && !ctxLineDash) {
- path.setLineDash(lineDash);
- path.setLineDashOffset(lineDashOffset);
- }
-
- this.buildPath(path, this.shape);
-
- // Clear path dirty flag
- this.__dirtyPath = false;
- }
- else {
- // Replay path building
- ctx.beginPath();
- this.path.rebuildPath(ctx);
- }
-
- hasFill && path.fill(ctx);
-
- if (lineDash && ctxLineDash) {
- ctx.setLineDash(lineDash);
- ctx.lineDashOffset = lineDashOffset;
- }
-
- hasStroke && path.stroke(ctx);
-
- // Draw rect text
- if (style.text != null) {
- // var rect = this.getBoundingRect();
- this.drawRectText(ctx, this.getBoundingRect());
- }
-
- ctx.restore();
- },
-
- buildPath: function (ctx, shapeCfg) {},
-
- getBoundingRect: function () {
- var rect = this._rect;
- var style = this.style;
- var needsUpdateRect = !rect;
- if (needsUpdateRect) {
- var path = this.path;
- if (this.__dirtyPath) {
- path.beginPath();
- this.buildPath(path, this.shape);
- }
- rect = path.getBoundingRect();
- }
- this._rect = rect;
-
- if (pathHasStroke(style)) {
- // Needs update rect with stroke lineWidth when
- // 1. Element changes scale or lineWidth
- // 2. Shape is changed
- var rectWithStroke = this._rectWithStroke;
- if (this.__dirty || needsUpdateRect) {
- var rectWithStroke = this._rectWithStroke
- || (this._rectWithStroke = rect.clone());
- rectWithStroke.copy(rect);
- // FIXME Must after updateTransform
- var w = style.lineWidth;
- // PENDING, Min line width is needed when line is horizontal or vertical
- var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
-
- // Only add extra hover lineWidth when there are no fill
- if (!pathHasFill(style)) {
- w = Math.max(w, this.strokeContainThreshold);
- }
- // Consider line width
- // Line scale can't be 0;
- if (lineScale > 1e-10) {
- rectWithStroke.width += w / lineScale;
- rectWithStroke.height += w / lineScale;
- rectWithStroke.x -= w / lineScale / 2;
- rectWithStroke.y -= w / lineScale / 2;
- }
- }
-
- // Return rect with stroke
- return rectWithStroke;
- }
-
- return rect;
- },
-
- contain: function (x, y) {
- var localPos = this.transformCoordToLocal(x, y);
- var rect = this.getBoundingRect();
- var style = this.style;
- x = localPos[0];
- y = localPos[1];
-
- if (rect.contain(x, y)) {
- var pathData = this.path.data;
- if (pathHasStroke(style)) {
- var lineWidth = style.lineWidth;
- var lineScale = style.strokeNoScale ? this.getLineScale() : 1;
- // Line scale can't be 0;
- if (lineScale > 1e-10) {
- // Only add extra hover lineWidth when there are no fill
- if (!pathHasFill(style)) {
- lineWidth = Math.max(lineWidth, this.strokeContainThreshold);
- }
- if (pathContain.containStroke(
- pathData, lineWidth / lineScale, x, y
- )) {
- return true;
- }
- }
- }
- if (pathHasFill(style)) {
- return pathContain.contain(pathData, x, y);
- }
- }
- return false;
- },
-
- /**
- * @param {boolean} dirtyPath
- */
- dirty: function (dirtyPath) {
- if (arguments.length ===0) {
- dirtyPath = true;
- }
- // Only mark dirty, not mark clean
- if (dirtyPath) {
- this.__dirtyPath = dirtyPath;
- this._rect = null;
- }
-
- this.__dirty = true;
-
- this.__zr && this.__zr.refresh();
-
- // Used as a clipping path
- if (this.__clipTarget) {
- this.__clipTarget.dirty();
- }
- },
-
- /**
- * Alias for animate('shape')
- * @param {boolean} loop
- */
- animateShape: function (loop) {
- return this.animate('shape', loop);
- },
-
- // Overwrite attrKV
- attrKV: function (key, value) {
- // FIXME
- if (key === 'shape') {
- this.setShape(value);
- }
- else {
- Displayable.prototype.attrKV.call(this, key, value);
- }
- },
-
- /**
- * @param {Object|string} key
- * @param {*} value
- */
- setShape: function (key, value) {
- var shape = this.shape;
- // Path from string may not have shape
- if (shape) {
- if (zrUtil.isObject(key)) {
- for (var name in key) {
- shape[name] = key[name];
- }
- }
- else {
- shape[key] = value;
- }
- this.dirty(true);
- }
- return this;
- },
-
- getLineScale: function () {
- var m = this.transform;
- // Get the line scale.
- // Determinant of `m` means how much the area is enlarged by the
- // transformation. So its square root can be used as a scale factor
- // for width.
- return m && abs(m[0] - 1) > 1e-10 && abs(m[3] - 1) > 1e-10
- ? Math.sqrt(abs(m[0] * m[3] - m[2] * m[1]))
- : 1;
- }
- };
-
- /**
- * 扩展一个 Path element, 比如星形,圆等。
- * Extend a path element
- * @param {Object} props
- * @param {string} props.type Path type
- * @param {Function} props.init Initialize
- * @param {Function} props.buildPath Overwrite buildPath method
- * @param {Object} [props.style] Extended default style config
- * @param {Object} [props.shape] Extended default shape config
- */
- Path.extend = function (defaults) {
- var Sub = function (opts) {
- Path.call(this, opts);
-
- if (defaults.style) {
- // Extend default style
- this.style.extendFrom(defaults.style, false);
- }
-
- // Extend default shape
- var defaultShape = defaults.shape;
- if (defaultShape) {
- this.shape = this.shape || {};
- var thisShape = this.shape;
- for (var name in defaultShape) {
- if (
- ! thisShape.hasOwnProperty(name)
- && defaultShape.hasOwnProperty(name)
- ) {
- thisShape[name] = defaultShape[name];
- }
- }
- }
-
- defaults.init && defaults.init.call(this, opts);
- };
-
- zrUtil.inherits(Sub, Path);
-
- // FIXME 不能 extend position, rotation 等引用对象
- for (var name in defaults) {
- // Extending prototype values and methods
- if (name !== 'style' && name !== 'shape') {
- Sub.prototype[name] = defaults[name];
- }
- }
-
- return Sub;
- };
-
- zrUtil.inherits(Path, Displayable);
-
- module.exports = Path;
-
-
-/***/ },
-/* 45 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 可绘制的图形基类
- * Base class of all displayable graphic objects
- * @module zrender/graphic/Displayable
- */
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var Style = __webpack_require__(46);
-
- var Element = __webpack_require__(30);
- var RectText = __webpack_require__(47);
- // var Stateful = require('./mixin/Stateful');
-
- /**
- * @alias module:zrender/graphic/Displayable
- * @extends module:zrender/Element
- * @extends module:zrender/graphic/mixin/RectText
- */
- function Displayable(opts) {
-
- opts = opts || {};
-
- Element.call(this, opts);
-
- // Extend properties
- for (var name in opts) {
- if (
- opts.hasOwnProperty(name) &&
- name !== 'style'
- ) {
- this[name] = opts[name];
- }
- }
-
- /**
- * @type {module:zrender/graphic/Style}
- */
- this.style = new Style(opts.style);
-
- this._rect = null;
- // Shapes for cascade clipping.
- this.__clipPaths = [];
-
- // FIXME Stateful must be mixined after style is setted
- // Stateful.call(this, opts);
- }
-
- Displayable.prototype = {
-
- constructor: Displayable,
-
- type: 'displayable',
-
- /**
- * Displayable 是否为脏,Painter 中会根据该标记判断是否需要是否需要重新绘制
- * Dirty flag. From which painter will determine if this displayable object needs brush
- * @name module:zrender/graphic/Displayable#__dirty
- * @type {boolean}
- */
- __dirty: true,
-
- /**
- * 图形是否可见,为true时不绘制图形,但是仍能触发鼠标事件
- * If ignore drawing of the displayable object. Mouse event will still be triggered
- * @name module:/zrender/graphic/Displayable#invisible
- * @type {boolean}
- * @default false
- */
- invisible: false,
-
- /**
- * @name module:/zrender/graphic/Displayable#z
- * @type {number}
- * @default 0
- */
- z: 0,
-
- /**
- * @name module:/zrender/graphic/Displayable#z
- * @type {number}
- * @default 0
- */
- z2: 0,
-
- /**
- * z层level,决定绘画在哪层canvas中
- * @name module:/zrender/graphic/Displayable#zlevel
- * @type {number}
- * @default 0
- */
- zlevel: 0,
-
- /**
- * 是否可拖拽
- * @name module:/zrender/graphic/Displayable#draggable
- * @type {boolean}
- * @default false
- */
- draggable: false,
-
- /**
- * 是否正在拖拽
- * @name module:/zrender/graphic/Displayable#draggable
- * @type {boolean}
- * @default false
- */
- dragging: false,
-
- /**
- * 是否相应鼠标事件
- * @name module:/zrender/graphic/Displayable#silent
- * @type {boolean}
- * @default false
- */
- silent: false,
-
- /**
- * If enable culling
- * @type {boolean}
- * @default false
- */
- culling: false,
-
- /**
- * Mouse cursor when hovered
- * @name module:/zrender/graphic/Displayable#cursor
- * @type {string}
- */
- cursor: 'pointer',
-
- /**
- * If hover area is bounding rect
- * @name module:/zrender/graphic/Displayable#rectHover
- * @type {string}
- */
- rectHover: false,
-
- beforeBrush: function (ctx) {},
-
- afterBrush: function (ctx) {},
-
- /**
- * 图形绘制方法
- * @param {Canvas2DRenderingContext} ctx
- */
- // Interface
- brush: function (ctx) {},
-
- /**
- * 获取最小包围盒
- * @return {module:zrender/core/BoundingRect}
- */
- // Interface
- getBoundingRect: function () {},
-
- /**
- * 判断坐标 x, y 是否在图形上
- * If displayable element contain coord x, y
- * @param {number} x
- * @param {number} y
- * @return {boolean}
- */
- contain: function (x, y) {
- return this.rectContain(x, y);
- },
-
- /**
- * @param {Function} cb
- * @param {} context
- */
- traverse: function (cb, context) {
- cb.call(context, this);
- },
-
- /**
- * 判断坐标 x, y 是否在图形的包围盒上
- * If bounding rect of element contain coord x, y
- * @param {number} x
- * @param {number} y
- * @return {boolean}
- */
- rectContain: function (x, y) {
- var coord = this.transformCoordToLocal(x, y);
- var rect = this.getBoundingRect();
- return rect.contain(coord[0], coord[1]);
- },
-
- /**
- * 标记图形元素为脏,并且在下一帧重绘
- * Mark displayable element dirty and refresh next frame
- */
- dirty: function () {
- this.__dirty = true;
-
- this._rect = null;
-
- this.__zr && this.__zr.refresh();
- },
-
- /**
- * 图形是否会触发事件
- * If displayable object binded any event
- * @return {boolean}
- */
- // TODO, 通过 bind 绑定的事件
- // isSilent: function () {
- // return !(
- // this.hoverable || this.draggable
- // || this.onmousemove || this.onmouseover || this.onmouseout
- // || this.onmousedown || this.onmouseup || this.onclick
- // || this.ondragenter || this.ondragover || this.ondragleave
- // || this.ondrop
- // );
- // },
- /**
- * Alias for animate('style')
- * @param {boolean} loop
- */
- animateStyle: function (loop) {
- return this.animate('style', loop);
- },
-
- attrKV: function (key, value) {
- if (key !== 'style') {
- Element.prototype.attrKV.call(this, key, value);
- }
- else {
- this.style.set(value);
- }
- },
-
- /**
- * @param {Object|string} key
- * @param {*} value
- */
- setStyle: function (key, value) {
- this.style.set(key, value);
- this.dirty(false);
- return this;
- }
- };
-
- zrUtil.inherits(Displayable, Element);
-
- zrUtil.mixin(Displayable, RectText);
- // zrUtil.mixin(Displayable, Stateful);
-
- module.exports = Displayable;
-
-
-/***/ },
-/* 46 */
-/***/ function(module, exports) {
-
- /**
- * @module zrender/graphic/Style
- */
-
-
-
- var STYLE_LIST_COMMON = [
- 'lineCap', 'lineJoin', 'miterLimit',
- 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'shadowColor'
- ];
-
- var Style = function (opts) {
- this.extendFrom(opts);
- };
-
- Style.prototype = {
-
- constructor: Style,
-
- /**
- * @type {string}
- */
- fill: '#000000',
-
- /**
- * @type {string}
- */
- stroke: null,
-
- /**
- * @type {number}
- */
- opacity: 1,
-
- /**
- * @type {Array.<number>}
- */
- lineDash: null,
-
- /**
- * @type {number}
- */
- lineDashOffset: 0,
-
- /**
- * @type {number}
- */
- shadowBlur: 0,
-
- /**
- * @type {number}
- */
- shadowOffsetX: 0,
-
- /**
- * @type {number}
- */
- shadowOffsetY: 0,
-
- /**
- * @type {number}
- */
- lineWidth: 1,
-
- /**
- * If stroke ignore scale
- * @type {Boolean}
- */
- strokeNoScale: false,
-
- // Bounding rect text configuration
- // Not affected by element transform
- /**
- * @type {string}
- */
- text: null,
-
- /**
- * @type {string}
- */
- textFill: '#000',
-
- /**
- * @type {string}
- */
- textStroke: null,
-
- /**
- * 'inside', 'left', 'right', 'top', 'bottom'
- * [x, y]
- * @type {string|Array.<number>}
- * @default 'inside'
- */
- textPosition: 'inside',
-
- /**
- * @type {string}
- */
- textBaseline: null,
-
- /**
- * @type {string}
- */
- textAlign: null,
-
- /**
- * @type {string}
- */
- textVerticalAlign: null,
-
- /**
- * @type {number}
- */
- textDistance: 5,
-
- /**
- * @type {number}
- */
- textShadowBlur: 0,
-
- /**
- * @type {number}
- */
- textShadowOffsetX: 0,
-
- /**
- * @type {number}
- */
- textShadowOffsetY: 0,
-
- /**
- * @param {CanvasRenderingContext2D} ctx
- */
- bind: function (ctx, el) {
- var fill = this.fill;
- var stroke = this.stroke;
- for (var i = 0; i < STYLE_LIST_COMMON.length; i++) {
- var styleName = STYLE_LIST_COMMON[i];
-
- if (this[styleName] != null) {
- ctx[styleName] = this[styleName];
- }
- }
- if (stroke != null) {
- var lineWidth = this.lineWidth;
- ctx.lineWidth = lineWidth / (
- (this.strokeNoScale && el && el.getLineScale) ? el.getLineScale() : 1
- );
- }
- if (fill != null) {
- // Use canvas gradient if has
- ctx.fillStyle = fill.canvasGradient ? fill.canvasGradient : fill;
- }
- if (stroke != null) {
- // Use canvas gradient if has
- ctx.strokeStyle = stroke.canvasGradient ? stroke.canvasGradient : stroke;
- }
- this.opacity != null && (ctx.globalAlpha = this.opacity);
- },
-
- /**
- * Extend from other style
- * @param {zrender/graphic/Style} otherStyle
- * @param {boolean} overwrite
- */
- extendFrom: function (otherStyle, overwrite) {
- if (otherStyle) {
- var target = this;
- for (var name in otherStyle) {
- if (otherStyle.hasOwnProperty(name)
- && (overwrite || ! target.hasOwnProperty(name))
- ) {
- target[name] = otherStyle[name];
- }
- }
- }
- },
-
- /**
- * Batch setting style with a given object
- * @param {Object|string} obj
- * @param {*} [obj]
- */
- set: function (obj, value) {
- if (typeof obj === 'string') {
- this[obj] = value;
- }
- else {
- this.extendFrom(obj, true);
- }
- },
-
- /**
- * Clone
- * @return {zrender/graphic/Style} [description]
- */
- clone: function () {
- var newStyle = new this.constructor();
- newStyle.extendFrom(this, true);
- return newStyle;
- }
- };
-
- var styleProto = Style.prototype;
- var name;
- var i;
- for (i = 0; i < STYLE_LIST_COMMON.length; i++) {
- name = STYLE_LIST_COMMON[i];
- if (!(name in styleProto)) {
- styleProto[name] = null;
- }
- }
-
- module.exports = Style;
-
-
-/***/ },
-/* 47 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Mixin for drawing text in a element bounding rect
- * @module zrender/mixin/RectText
- */
-
-
-
- var textContain = __webpack_require__(14);
- var BoundingRect = __webpack_require__(15);
-
- var tmpRect = new BoundingRect();
-
- var RectText = function () {};
-
- function parsePercent(value, maxValue) {
- if (typeof value === 'string') {
- if (value.lastIndexOf('%') >= 0) {
- return parseFloat(value) / 100 * maxValue;
- }
- return parseFloat(value);
- }
- return value;
- }
-
- function setTransform(ctx, m) {
- ctx.transform(m[0], m[1], m[2], m[3], m[4], m[5]);
- }
-
- RectText.prototype = {
-
- constructor: RectText,
-
- /**
- * Draw text in a rect with specified position.
- * @param {CanvasRenderingContext} ctx
- * @param {Object} rect Displayable rect
- * @return {Object} textRect Alternative precalculated text bounding rect
- */
- drawRectText: function (ctx, rect, textRect) {
- var style = this.style;
- var text = style.text;
- // Convert to string
- text != null && (text += '');
- if (!text) {
- return;
- }
- var x;
- var y;
- var textPosition = style.textPosition;
- var distance = style.textDistance;
- var align = style.textAlign;
- var font = style.textFont || style.font;
- var baseline = style.textBaseline;
- var verticalAlign = style.textVerticalAlign;
-
- textRect = textRect || textContain.getBoundingRect(text, font, align, baseline);
-
- // Transform rect to view space
- var transform = this.transform;
- var invTransform = this.invTransform;
- if (transform) {
- tmpRect.copy(rect);
- tmpRect.applyTransform(transform);
- rect = tmpRect;
- // Transform back
- setTransform(ctx, invTransform);
- }
-
- // Text position represented by coord
- if (textPosition instanceof Array) {
- // Percent
- x = rect.x + parsePercent(textPosition[0], rect.width);
- y = rect.y + parsePercent(textPosition[1], rect.height);
- align = align || 'left';
- baseline = baseline || 'top';
- }
- else {
- var res = textContain.adjustTextPositionOnRect(
- textPosition, rect, textRect, distance
- );
- x = res.x;
- y = res.y;
- // Default align and baseline when has textPosition
- align = align || res.textAlign;
- baseline = baseline || res.textBaseline;
- }
-
- ctx.textAlign = align;
- if (verticalAlign) {
- switch (verticalAlign) {
- case 'middle':
- y -= textRect.height / 2;
- break;
- case 'bottom':
- y -= textRect.height;
- break;
- // 'top'
- }
- // Ignore baseline
- ctx.textBaseline = 'top';
- }
- else {
- ctx.textBaseline = baseline;
- }
-
- var textFill = style.textFill;
- var textStroke = style.textStroke;
- textFill && (ctx.fillStyle = textFill);
- textStroke && (ctx.strokeStyle = textStroke);
- ctx.font = font;
-
- // Text shadow
- ctx.shadowColor = style.textShadowColor;
- ctx.shadowBlur = style.textShadowBlur;
- ctx.shadowOffsetX = style.textShadowOffsetX;
- ctx.shadowOffsetY = style.textShadowOffsetY;
-
- var textLines = text.split('\n');
- for (var i = 0; i < textLines.length; i++) {
- textFill && ctx.fillText(textLines[i], x, y);
- textStroke && ctx.strokeText(textLines[i], x, y);
- y += textRect.lineHeight;
- }
-
- // Transform again
- transform && setTransform(ctx, transform);
- }
- };
-
- module.exports = RectText;
-
-
-/***/ },
-/* 48 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Path 代理,可以在`buildPath`中用于替代`ctx`, 会保存每个path操作的命令到pathCommands属性中
- * 可以用于 isInsidePath 判断以及获取boundingRect
- *
- * @module zrender/core/PathProxy
- * @author Yi Shen (http://www.github.com/pissang)
- */
-
- // TODO getTotalLength, getPointAtLength
-
-
- var curve = __webpack_require__(49);
- var vec2 = __webpack_require__(16);
- var bbox = __webpack_require__(50);
- var BoundingRect = __webpack_require__(15);
-
- var CMD = {
- M: 1,
- L: 2,
- C: 3,
- Q: 4,
- A: 5,
- Z: 6,
- // Rect
- R: 7
- };
-
- var min = [];
- var max = [];
- var min2 = [];
- var max2 = [];
- var mathMin = Math.min;
- var mathMax = Math.max;
- var mathCos = Math.cos;
- var mathSin = Math.sin;
- var mathSqrt = Math.sqrt;
-
- var hasTypedArray = typeof Float32Array != 'undefined';
-
- /**
- * @alias module:zrender/core/PathProxy
- * @constructor
- */
- var PathProxy = function () {
-
- /**
- * Path data. Stored as flat array
- * @type {Array.<Object>}
- */
- this.data = [];
-
- this._len = 0;
-
- this._ctx = null;
-
- this._xi = 0;
- this._yi = 0;
-
- this._x0 = 0;
- this._y0 = 0;
- };
-
- /**
- * 快速计算Path包围盒(并不是最小包围盒)
- * @return {Object}
- */
- PathProxy.prototype = {
-
- constructor: PathProxy,
-
- _lineDash: null,
-
- _dashOffset: 0,
-
- _dashIdx: 0,
-
- _dashSum: 0,
-
- getContext: function () {
- return this._ctx;
- },
-
- /**
- * @param {CanvasRenderingContext2D} ctx
- * @return {module:zrender/core/PathProxy}
- */
- beginPath: function (ctx) {
- this._ctx = ctx;
-
- ctx && ctx.beginPath();
-
- // Reset
- this._len = 0;
-
- if (this._lineDash) {
- this._lineDash = null;
-
- this._dashOffset = 0;
- }
-
- return this;
- },
-
- /**
- * @param {number} x
- * @param {number} y
- * @return {module:zrender/core/PathProxy}
- */
- moveTo: function (x, y) {
- this.addData(CMD.M, x, y);
- this._ctx && this._ctx.moveTo(x, y);
-
- // x0, y0, xi, yi 是记录在 _dashedXXXXTo 方法中使用
- // xi, yi 记录当前点, x0, y0 在 closePath 的时候回到起始点。
- // 有可能在 beginPath 之后直接调用 lineTo,这时候 x0, y0 需要
- // 在 lineTo 方法中记录,这里先不考虑这种情况,dashed line 也只在 IE10- 中不支持
- this._x0 = x;
- this._y0 = y;
-
- this._xi = x;
- this._yi = y;
-
- return this;
- },
-
- /**
- * @param {number} x
- * @param {number} y
- * @return {module:zrender/core/PathProxy}
- */
- lineTo: function (x, y) {
- this.addData(CMD.L, x, y);
- if (this._ctx) {
- this._needsDash() ? this._dashedLineTo(x, y)
- : this._ctx.lineTo(x, y);
- }
- this._xi = x;
- this._yi = y;
- return this;
- },
-
- /**
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} x3
- * @param {number} y3
- * @return {module:zrender/core/PathProxy}
- */
- bezierCurveTo: function (x1, y1, x2, y2, x3, y3) {
- this.addData(CMD.C, x1, y1, x2, y2, x3, y3);
- if (this._ctx) {
- this._needsDash() ? this._dashedBezierTo(x1, y1, x2, y2, x3, y3)
- : this._ctx.bezierCurveTo(x1, y1, x2, y2, x3, y3);
- }
- this._xi = x3;
- this._yi = y3;
- return this;
- },
-
- /**
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @return {module:zrender/core/PathProxy}
- */
- quadraticCurveTo: function (x1, y1, x2, y2) {
- this.addData(CMD.Q, x1, y1, x2, y2);
- if (this._ctx) {
- this._needsDash() ? this._dashedQuadraticTo(x1, y1, x2, y2)
- : this._ctx.quadraticCurveTo(x1, y1, x2, y2);
- }
- this._xi = x2;
- this._yi = y2;
- return this;
- },
-
- /**
- * @param {number} cx
- * @param {number} cy
- * @param {number} r
- * @param {number} startAngle
- * @param {number} endAngle
- * @param {boolean} anticlockwise
- * @return {module:zrender/core/PathProxy}
- */
- arc: function (cx, cy, r, startAngle, endAngle, anticlockwise) {
- this.addData(
- CMD.A, cx, cy, r, r, startAngle, endAngle - startAngle, 0, anticlockwise ? 0 : 1
- );
- this._ctx && this._ctx.arc(cx, cy, r, startAngle, endAngle, anticlockwise);
-
- this._xi = mathCos(endAngle) * r + cx;
- this._xi = mathSin(endAngle) * r + cx;
- return this;
- },
-
- // TODO
- arcTo: function (x1, y1, x2, y2, radius) {
- if (this._ctx) {
- this._ctx.arcTo(x1, y1, x2, y2, radius);
- }
- return this;
- },
-
- // TODO
- rect: function (x, y, w, h) {
- this._ctx && this._ctx.rect(x, y, w, h);
- this.addData(CMD.R, x, y, w, h);
- return this;
- },
-
- /**
- * @return {module:zrender/core/PathProxy}
- */
- closePath: function () {
- this.addData(CMD.Z);
-
- var ctx = this._ctx;
- var x0 = this._x0;
- var y0 = this._y0;
- if (ctx) {
- this._needsDash() && this._dashedLineTo(x0, y0);
- ctx.closePath();
- }
-
- this._xi = x0;
- this._yi = y0;
- return this;
- },
-
- /**
- * Context 从外部传入,因为有可能是 rebuildPath 完之后再 fill。
- * stroke 同样
- * @param {CanvasRenderingContext2D} ctx
- * @return {module:zrender/core/PathProxy}
- */
- fill: function (ctx) {
- ctx && ctx.fill();
- this.toStatic();
- },
-
- /**
- * @param {CanvasRenderingContext2D} ctx
- * @return {module:zrender/core/PathProxy}
- */
- stroke: function (ctx) {
- ctx && ctx.stroke();
- this.toStatic();
- },
-
- /**
- * 必须在其它绘制命令前调用
- * Must be invoked before all other path drawing methods
- * @return {module:zrender/core/PathProxy}
- */
- setLineDash: function (lineDash) {
- if (lineDash instanceof Array) {
- this._lineDash = lineDash;
-
- this._dashIdx = 0;
-
- var lineDashSum = 0;
- for (var i = 0; i < lineDash.length; i++) {
- lineDashSum += lineDash[i];
- }
- this._dashSum = lineDashSum;
- }
- return this;
- },
-
- /**
- * 必须在其它绘制命令前调用
- * Must be invoked before all other path drawing methods
- * @return {module:zrender/core/PathProxy}
- */
- setLineDashOffset: function (offset) {
- this._dashOffset = offset;
- return this;
- },
-
- /**
- *
- * @return {boolean}
- */
- len: function () {
- return this._len;
- },
-
- /**
- * 直接设置 Path 数据
- */
- setData: function (data) {
-
- var len = data.length;
-
- if (! (this.data && this.data.length == len) && hasTypedArray) {
- this.data = new Float32Array(len);
- }
-
- for (var i = 0; i < len; i++) {
- this.data[i] = data[i];
- }
-
- this._len = len;
- },
-
- /**
- * 添加子路径
- * @param {module:zrender/core/PathProxy|Array.<module:zrender/core/PathProxy>} path
- */
- appendPath: function (path) {
- if (!(path instanceof Array)) {
- path = [path];
- }
- var len = path.length;
- var appendSize = 0;
- var offset = this._len;
- for (var i = 0; i < len; i++) {
- appendSize += path[i].len();
- }
- if (hasTypedArray && (this.data instanceof Float32Array)) {
- this.data = new Float32Array(offset + appendSize);
- }
- for (var i = 0; i < len; i++) {
- var appendPathData = path[i].data;
- for (var k = 0; k < appendPathData.length; k++) {
- this.data[offset++] = appendPathData[k];
- }
- }
- this._len = offset;
- },
-
- /**
- * 填充 Path 数据。
- * 尽量复用而不申明新的数组。大部分图形重绘的指令数据长度都是不变的。
- */
- addData: function (cmd) {
- var data = this.data;
- if (this._len + arguments.length > data.length) {
- // 因为之前的数组已经转换成静态的 Float32Array
- // 所以不够用时需要扩展一个新的动态数组
- this._expandData();
- data = this.data;
- }
- for (var i = 0; i < arguments.length; i++) {
- data[this._len++] = arguments[i];
- }
-
- this._prevCmd = cmd;
- },
-
- _expandData: function () {
- // Only if data is Float32Array
- if (!(this.data instanceof Array)) {
- var newData = [];
- for (var i = 0; i < this._len; i++) {
- newData[i] = this.data[i];
- }
- this.data = newData;
- }
- },
-
- /**
- * If needs js implemented dashed line
- * @return {boolean}
- * @private
- */
- _needsDash: function () {
- return this._lineDash;
- },
-
- _dashedLineTo: function (x1, y1) {
- var dashSum = this._dashSum;
- var offset = this._dashOffset;
- var lineDash = this._lineDash;
- var ctx = this._ctx;
-
- var x0 = this._xi;
- var y0 = this._yi;
- var dx = x1 - x0;
- var dy = y1 - y0;
- var dist = mathSqrt(dx * dx + dy * dy);
- var x = x0;
- var y = y0;
- var dash;
- var nDash = lineDash.length;
- var idx;
- dx /= dist;
- dy /= dist;
-
- if (offset < 0) {
- // Convert to positive offset
- offset = dashSum + offset;
- }
- offset %= dashSum;
- x -= offset * dx;
- y -= offset * dy;
-
- while ((dx >= 0 && x <= x1) || (dx < 0 && x > x1)) {
- idx = this._dashIdx;
- dash = lineDash[idx];
- x += dx * dash;
- y += dy * dash;
- this._dashIdx = (idx + 1) % nDash;
- // Skip positive offset
- if ((dx > 0 && x < x0) || (dx < 0 && x > x0)) {
- continue;
- }
- ctx[idx % 2 ? 'moveTo' : 'lineTo'](
- dx >= 0 ? mathMin(x, x1) : mathMax(x, x1),
- dy >= 0 ? mathMin(y, y1) : mathMax(y, y1)
- );
- }
- // Offset for next lineTo
- dx = x - x1;
- dy = y - y1;
- this._dashOffset = -mathSqrt(dx * dx + dy * dy);
- },
-
- // Not accurate dashed line to
- _dashedBezierTo: function (x1, y1, x2, y2, x3, y3) {
- var dashSum = this._dashSum;
- var offset = this._dashOffset;
- var lineDash = this._lineDash;
- var ctx = this._ctx;
-
- var x0 = this._xi;
- var y0 = this._yi;
- var t;
- var dx;
- var dy;
- var cubicAt = curve.cubicAt;
- var bezierLen = 0;
- var idx = this._dashIdx;
- var nDash = lineDash.length;
-
- var x;
- var y;
-
- var tmpLen = 0;
-
- if (offset < 0) {
- // Convert to positive offset
- offset = dashSum + offset;
- }
- offset %= dashSum;
- // Bezier approx length
- for (t = 0; t < 1; t += 0.1) {
- dx = cubicAt(x0, x1, x2, x3, t + 0.1)
- - cubicAt(x0, x1, x2, x3, t);
- dy = cubicAt(y0, y1, y2, y3, t + 0.1)
- - cubicAt(y0, y1, y2, y3, t);
- bezierLen += mathSqrt(dx * dx + dy * dy);
- }
-
- // Find idx after add offset
- for (; idx < nDash; idx++) {
- tmpLen += lineDash[idx];
- if (tmpLen > offset) {
- break;
- }
- }
- t = (tmpLen - offset) / bezierLen;
-
- while (t <= 1) {
-
- x = cubicAt(x0, x1, x2, x3, t);
- y = cubicAt(y0, y1, y2, y3, t);
-
- // Use line to approximate dashed bezier
- // Bad result if dash is long
- idx % 2 ? ctx.moveTo(x, y)
- : ctx.lineTo(x, y);
-
- t += lineDash[idx] / bezierLen;
-
- idx = (idx + 1) % nDash;
- }
-
- // Finish the last segment and calculate the new offset
- (idx % 2 !== 0) && ctx.lineTo(x3, y3);
- dx = x3 - x;
- dy = y3 - y;
- this._dashOffset = -mathSqrt(dx * dx + dy * dy);
- },
-
- _dashedQuadraticTo: function (x1, y1, x2, y2) {
- // Convert quadratic to cubic using degree elevation
- var x3 = x2;
- var y3 = y2;
- x2 = (x2 + 2 * x1) / 3;
- y2 = (y2 + 2 * y1) / 3;
- x1 = (this._xi + 2 * x1) / 3;
- y1 = (this._yi + 2 * y1) / 3;
-
- this._dashedBezierTo(x1, y1, x2, y2, x3, y3);
- },
-
- /**
- * 转成静态的 Float32Array 减少堆内存占用
- * Convert dynamic array to static Float32Array
- */
- toStatic: function () {
- var data = this.data;
- if (data instanceof Array) {
- data.length = this._len;
- if (hasTypedArray) {
- this.data = new Float32Array(data);
- }
- }
- },
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- getBoundingRect: function () {
- min[0] = min[1] = min2[0] = min2[1] = Number.MAX_VALUE;
- max[0] = max[1] = max2[0] = max2[1] = -Number.MAX_VALUE;
-
- var data = this.data;
- var xi = 0;
- var yi = 0;
- var x0 = 0;
- var y0 = 0;
-
- for (var i = 0; i < data.length;) {
- var cmd = data[i++];
-
- if (i == 1) {
- // 如果第一个命令是 L, C, Q
- // 则 previous point 同绘制命令的第一个 point
- //
- // 第一个命令为 Arc 的情况下会在后面特殊处理
- xi = data[i];
- yi = data[i + 1];
-
- x0 = xi;
- y0 = yi;
- }
-
- switch (cmd) {
- case CMD.M:
- // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
- // 在 closePath 的时候使用
- x0 = data[i++];
- y0 = data[i++];
- xi = x0;
- yi = y0;
- min2[0] = x0;
- min2[1] = y0;
- max2[0] = x0;
- max2[1] = y0;
- break;
- case CMD.L:
- bbox.fromLine(xi, yi, data[i], data[i + 1], min2, max2);
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.C:
- bbox.fromCubic(
- xi, yi, data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
- min2, max2
- );
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.Q:
- bbox.fromQuadratic(
- xi, yi, data[i++], data[i++], data[i], data[i + 1],
- min2, max2
- );
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.A:
- // TODO Arc 判断的开销比较大
- var cx = data[i++];
- var cy = data[i++];
- var rx = data[i++];
- var ry = data[i++];
- var startAngle = data[i++];
- var endAngle = data[i++] + startAngle;
- // TODO Arc 旋转
- var psi = data[i++];
- var anticlockwise = 1 - data[i++];
-
- if (i == 1) {
- // 直接使用 arc 命令
- // 第一个命令起点还未定义
- x0 = mathCos(startAngle) * rx + cx;
- y0 = mathSin(startAngle) * ry + cy;
- }
-
- bbox.fromArc(
- cx, cy, rx, ry, startAngle, endAngle,
- anticlockwise, min2, max2
- );
-
- xi = mathCos(endAngle) * rx + cx;
- yi = mathSin(endAngle) * ry + cy;
- break;
- case CMD.R:
- x0 = xi = data[i++];
- y0 = yi = data[i++];
- var width = data[i++];
- var height = data[i++];
- // Use fromLine
- bbox.fromLine(x0, y0, x0 + width, y0 + height, min2, max2);
- break;
- case CMD.Z:
- xi = x0;
- yi = y0;
- break;
- }
-
- // Union
- vec2.min(min, min, min2);
- vec2.max(max, max, max2);
- }
-
- // No data
- if (i === 0) {
- min[0] = min[1] = max[0] = max[1] = 0;
- }
-
- return new BoundingRect(
- min[0], min[1], max[0] - min[0], max[1] - min[1]
- );
- },
-
- /**
- * Rebuild path from current data
- * Rebuild path will not consider javascript implemented line dash.
- * @param {CanvasRenderingContext} ctx
- */
- rebuildPath: function (ctx) {
- var d = this.data;
- for (var i = 0; i < this._len;) {
- var cmd = d[i++];
- switch (cmd) {
- case CMD.M:
- ctx.moveTo(d[i++], d[i++]);
- break;
- case CMD.L:
- ctx.lineTo(d[i++], d[i++]);
- break;
- case CMD.C:
- ctx.bezierCurveTo(
- d[i++], d[i++], d[i++], d[i++], d[i++], d[i++]
- );
- break;
- case CMD.Q:
- ctx.quadraticCurveTo(d[i++], d[i++], d[i++], d[i++]);
- break;
- case CMD.A:
- var cx = d[i++];
- var cy = d[i++];
- var rx = d[i++];
- var ry = d[i++];
- var theta = d[i++];
- var dTheta = d[i++];
- var psi = d[i++];
- var fs = d[i++];
- var r = (rx > ry) ? rx : ry;
- var scaleX = (rx > ry) ? 1 : rx / ry;
- var scaleY = (rx > ry) ? ry / rx : 1;
- var isEllipse = Math.abs(rx - ry) > 1e-3;
- if (isEllipse) {
- ctx.translate(cx, cy);
- ctx.rotate(psi);
- ctx.scale(scaleX, scaleY);
- ctx.arc(0, 0, r, theta, theta + dTheta, 1 - fs);
- ctx.scale(1 / scaleX, 1 / scaleY);
- ctx.rotate(-psi);
- ctx.translate(-cx, -cy);
- }
- else {
- ctx.arc(cx, cy, r, theta, theta + dTheta, 1 - fs);
- }
- break;
- case CMD.R:
- ctx.rect(d[i++], d[i++], d[i++], d[i++]);
- break;
- case CMD.Z:
- ctx.closePath();
- }
- }
- }
- };
-
- PathProxy.CMD = CMD;
-
- module.exports = PathProxy;
-
-
-/***/ },
-/* 49 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 曲线辅助模块
- * @module zrender/core/curve
- * @author pissang(https://www.github.com/pissang)
- */
-
-
- var vec2 = __webpack_require__(16);
- var v2Create = vec2.create;
- var v2DistSquare = vec2.distSquare;
- var mathPow = Math.pow;
- var mathSqrt = Math.sqrt;
-
- var EPSILON = 1e-8;
- var EPSILON_NUMERIC = 1e-4;
-
- var THREE_SQRT = mathSqrt(3);
- var ONE_THIRD = 1 / 3;
-
- // 临时变量
- var _v0 = v2Create();
- var _v1 = v2Create();
- var _v2 = v2Create();
- // var _v3 = vec2.create();
-
- function isAroundZero(val) {
- return val > -EPSILON && val < EPSILON;
- }
- function isNotAroundZero(val) {
- return val > EPSILON || val < -EPSILON;
- }
- /**
- * 计算三次贝塞尔值
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {number} t
- * @return {number}
- */
- function cubicAt(p0, p1, p2, p3, t) {
- var onet = 1 - t;
- return onet * onet * (onet * p0 + 3 * t * p1)
- + t * t * (t * p3 + 3 * onet * p2);
- }
-
- /**
- * 计算三次贝塞尔导数值
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {number} t
- * @return {number}
- */
- function cubicDerivativeAt(p0, p1, p2, p3, t) {
- var onet = 1 - t;
- return 3 * (
- ((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet
- + (p3 - p2) * t * t
- );
- }
-
- /**
- * 计算三次贝塞尔方程根,使用盛金公式
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {number} val
- * @param {Array.<number>} roots
- * @return {number} 有效根数目
- */
- function cubicRootAt(p0, p1, p2, p3, val, roots) {
- // Evaluate roots of cubic functions
- var a = p3 + 3 * (p1 - p2) - p0;
- var b = 3 * (p2 - p1 * 2 + p0);
- var c = 3 * (p1 - p0);
- var d = p0 - val;
-
- var A = b * b - 3 * a * c;
- var B = b * c - 9 * a * d;
- var C = c * c - 3 * b * d;
-
- var n = 0;
-
- if (isAroundZero(A) && isAroundZero(B)) {
- if (isAroundZero(b)) {
- roots[0] = 0;
- }
- else {
- var t1 = -c / b; //t1, t2, t3, b is not zero
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- }
- }
- else {
- var disc = B * B - 4 * A * C;
-
- if (isAroundZero(disc)) {
- var K = B / A;
- var t1 = -b / a + K; // t1, a is not zero
- var t2 = -K / 2; // t2, t3
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- if (t2 >= 0 && t2 <= 1) {
- roots[n++] = t2;
- }
- }
- else if (disc > 0) {
- var discSqrt = mathSqrt(disc);
- var Y1 = A * b + 1.5 * a * (-B + discSqrt);
- var Y2 = A * b + 1.5 * a * (-B - discSqrt);
- if (Y1 < 0) {
- Y1 = -mathPow(-Y1, ONE_THIRD);
- }
- else {
- Y1 = mathPow(Y1, ONE_THIRD);
- }
- if (Y2 < 0) {
- Y2 = -mathPow(-Y2, ONE_THIRD);
- }
- else {
- Y2 = mathPow(Y2, ONE_THIRD);
- }
- var t1 = (-b - (Y1 + Y2)) / (3 * a);
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- }
- else {
- var T = (2 * A * b - 3 * a * B) / (2 * mathSqrt(A * A * A));
- var theta = Math.acos(T) / 3;
- var ASqrt = mathSqrt(A);
- var tmp = Math.cos(theta);
-
- var t1 = (-b - 2 * ASqrt * tmp) / (3 * a);
- var t2 = (-b + ASqrt * (tmp + THREE_SQRT * Math.sin(theta))) / (3 * a);
- var t3 = (-b + ASqrt * (tmp - THREE_SQRT * Math.sin(theta))) / (3 * a);
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- if (t2 >= 0 && t2 <= 1) {
- roots[n++] = t2;
- }
- if (t3 >= 0 && t3 <= 1) {
- roots[n++] = t3;
- }
- }
- }
- return n;
- }
-
- /**
- * 计算三次贝塞尔方程极限值的位置
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {Array.<number>} extrema
- * @return {number} 有效数目
- */
- function cubicExtrema(p0, p1, p2, p3, extrema) {
- var b = 6 * p2 - 12 * p1 + 6 * p0;
- var a = 9 * p1 + 3 * p3 - 3 * p0 - 9 * p2;
- var c = 3 * p1 - 3 * p0;
-
- var n = 0;
- if (isAroundZero(a)) {
- if (isNotAroundZero(b)) {
- var t1 = -c / b;
- if (t1 >= 0 && t1 <=1) {
- extrema[n++] = t1;
- }
- }
- }
- else {
- var disc = b * b - 4 * a * c;
- if (isAroundZero(disc)) {
- extrema[0] = -b / (2 * a);
- }
- else if (disc > 0) {
- var discSqrt = mathSqrt(disc);
- var t1 = (-b + discSqrt) / (2 * a);
- var t2 = (-b - discSqrt) / (2 * a);
- if (t1 >= 0 && t1 <= 1) {
- extrema[n++] = t1;
- }
- if (t2 >= 0 && t2 <= 1) {
- extrema[n++] = t2;
- }
- }
- }
- return n;
- }
-
- /**
- * 细分三次贝塞尔曲线
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} p3
- * @param {number} t
- * @param {Array.<number>} out
- */
- function cubicSubdivide(p0, p1, p2, p3, t, out) {
- var p01 = (p1 - p0) * t + p0;
- var p12 = (p2 - p1) * t + p1;
- var p23 = (p3 - p2) * t + p2;
-
- var p012 = (p12 - p01) * t + p01;
- var p123 = (p23 - p12) * t + p12;
-
- var p0123 = (p123 - p012) * t + p012;
- // Seg0
- out[0] = p0;
- out[1] = p01;
- out[2] = p012;
- out[3] = p0123;
- // Seg1
- out[4] = p0123;
- out[5] = p123;
- out[6] = p23;
- out[7] = p3;
- }
-
- /**
- * 投射点到三次贝塞尔曲线上,返回投射距离。
- * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} x3
- * @param {number} y3
- * @param {number} x
- * @param {number} y
- * @param {Array.<number>} [out] 投射点
- * @return {number}
- */
- function cubicProjectPoint(
- x0, y0, x1, y1, x2, y2, x3, y3,
- x, y, out
- ) {
- // http://pomax.github.io/bezierinfo/#projections
- var t;
- var interval = 0.005;
- var d = Infinity;
- var prev;
- var next;
- var d1;
- var d2;
-
- _v0[0] = x;
- _v0[1] = y;
-
- // 先粗略估计一下可能的最小距离的 t 值
- // PENDING
- for (var _t = 0; _t < 1; _t += 0.05) {
- _v1[0] = cubicAt(x0, x1, x2, x3, _t);
- _v1[1] = cubicAt(y0, y1, y2, y3, _t);
- d1 = v2DistSquare(_v0, _v1);
- if (d1 < d) {
- t = _t;
- d = d1;
- }
- }
- d = Infinity;
-
- // At most 32 iteration
- for (var i = 0; i < 32; i++) {
- if (interval < EPSILON_NUMERIC) {
- break;
- }
- prev = t - interval;
- next = t + interval;
- // t - interval
- _v1[0] = cubicAt(x0, x1, x2, x3, prev);
- _v1[1] = cubicAt(y0, y1, y2, y3, prev);
-
- d1 = v2DistSquare(_v1, _v0);
-
- if (prev >= 0 && d1 < d) {
- t = prev;
- d = d1;
- }
- else {
- // t + interval
- _v2[0] = cubicAt(x0, x1, x2, x3, next);
- _v2[1] = cubicAt(y0, y1, y2, y3, next);
- d2 = v2DistSquare(_v2, _v0);
-
- if (next <= 1 && d2 < d) {
- t = next;
- d = d2;
- }
- else {
- interval *= 0.5;
- }
- }
- }
- // t
- if (out) {
- out[0] = cubicAt(x0, x1, x2, x3, t);
- out[1] = cubicAt(y0, y1, y2, y3, t);
- }
- // console.log(interval, i);
- return mathSqrt(d);
- }
-
- /**
- * 计算二次方贝塞尔值
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} t
- * @return {number}
- */
- function quadraticAt(p0, p1, p2, t) {
- var onet = 1 - t;
- return onet * (onet * p0 + 2 * t * p1) + t * t * p2;
- }
-
- /**
- * 计算二次方贝塞尔导数值
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} t
- * @return {number}
- */
- function quadraticDerivativeAt(p0, p1, p2, t) {
- return 2 * ((1 - t) * (p1 - p0) + t * (p2 - p1));
- }
-
- /**
- * 计算二次方贝塞尔方程根
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} t
- * @param {Array.<number>} roots
- * @return {number} 有效根数目
- */
- function quadraticRootAt(p0, p1, p2, val, roots) {
- var a = p0 - 2 * p1 + p2;
- var b = 2 * (p1 - p0);
- var c = p0 - val;
-
- var n = 0;
- if (isAroundZero(a)) {
- if (isNotAroundZero(b)) {
- var t1 = -c / b;
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- }
- }
- else {
- var disc = b * b - 4 * a * c;
- if (isAroundZero(disc)) {
- var t1 = -b / (2 * a);
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- }
- else if (disc > 0) {
- var discSqrt = mathSqrt(disc);
- var t1 = (-b + discSqrt) / (2 * a);
- var t2 = (-b - discSqrt) / (2 * a);
- if (t1 >= 0 && t1 <= 1) {
- roots[n++] = t1;
- }
- if (t2 >= 0 && t2 <= 1) {
- roots[n++] = t2;
- }
- }
- }
- return n;
- }
-
- /**
- * 计算二次贝塞尔方程极限值
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @return {number}
- */
- function quadraticExtremum(p0, p1, p2) {
- var divider = p0 + p2 - 2 * p1;
- if (divider === 0) {
- // p1 is center of p0 and p2
- return 0.5;
- }
- else {
- return (p0 - p1) / divider;
- }
- }
-
- /**
- * 细分二次贝塞尔曲线
- * @memberOf module:zrender/core/curve
- * @param {number} p0
- * @param {number} p1
- * @param {number} p2
- * @param {number} t
- * @param {Array.<number>} out
- */
- function quadraticSubdivide(p0, p1, p2, t, out) {
- var p01 = (p1 - p0) * t + p0;
- var p12 = (p2 - p1) * t + p1;
- var p012 = (p12 - p01) * t + p01;
-
- // Seg0
- out[0] = p0;
- out[1] = p01;
- out[2] = p012;
-
- // Seg1
- out[3] = p012;
- out[4] = p12;
- out[5] = p2;
- }
-
- /**
- * 投射点到二次贝塞尔曲线上,返回投射距离。
- * 投射点有可能会有一个或者多个,这里只返回其中距离最短的一个。
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} x
- * @param {number} y
- * @param {Array.<number>} out 投射点
- * @return {number}
- */
- function quadraticProjectPoint(
- x0, y0, x1, y1, x2, y2,
- x, y, out
- ) {
- // http://pomax.github.io/bezierinfo/#projections
- var t;
- var interval = 0.005;
- var d = Infinity;
-
- _v0[0] = x;
- _v0[1] = y;
-
- // 先粗略估计一下可能的最小距离的 t 值
- // PENDING
- for (var _t = 0; _t < 1; _t += 0.05) {
- _v1[0] = quadraticAt(x0, x1, x2, _t);
- _v1[1] = quadraticAt(y0, y1, y2, _t);
- var d1 = v2DistSquare(_v0, _v1);
- if (d1 < d) {
- t = _t;
- d = d1;
- }
- }
- d = Infinity;
-
- // At most 32 iteration
- for (var i = 0; i < 32; i++) {
- if (interval < EPSILON_NUMERIC) {
- break;
- }
- var prev = t - interval;
- var next = t + interval;
- // t - interval
- _v1[0] = quadraticAt(x0, x1, x2, prev);
- _v1[1] = quadraticAt(y0, y1, y2, prev);
-
- var d1 = v2DistSquare(_v1, _v0);
-
- if (prev >= 0 && d1 < d) {
- t = prev;
- d = d1;
- }
- else {
- // t + interval
- _v2[0] = quadraticAt(x0, x1, x2, next);
- _v2[1] = quadraticAt(y0, y1, y2, next);
- var d2 = v2DistSquare(_v2, _v0);
- if (next <= 1 && d2 < d) {
- t = next;
- d = d2;
- }
- else {
- interval *= 0.5;
- }
- }
- }
- // t
- if (out) {
- out[0] = quadraticAt(x0, x1, x2, t);
- out[1] = quadraticAt(y0, y1, y2, t);
- }
- // console.log(interval, i);
- return mathSqrt(d);
- }
-
- module.exports = {
-
- cubicAt: cubicAt,
-
- cubicDerivativeAt: cubicDerivativeAt,
-
- cubicRootAt: cubicRootAt,
-
- cubicExtrema: cubicExtrema,
-
- cubicSubdivide: cubicSubdivide,
-
- cubicProjectPoint: cubicProjectPoint,
-
- quadraticAt: quadraticAt,
-
- quadraticDerivativeAt: quadraticDerivativeAt,
-
- quadraticRootAt: quadraticRootAt,
-
- quadraticExtremum: quadraticExtremum,
-
- quadraticSubdivide: quadraticSubdivide,
-
- quadraticProjectPoint: quadraticProjectPoint
- };
-
-
-/***/ },
-/* 50 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @author Yi Shen(https://github.com/pissang)
- */
-
-
- var vec2 = __webpack_require__(16);
- var curve = __webpack_require__(49);
-
- var bbox = {};
- var mathMin = Math.min;
- var mathMax = Math.max;
- var mathSin = Math.sin;
- var mathCos = Math.cos;
-
- var start = vec2.create();
- var end = vec2.create();
- var extremity = vec2.create();
-
- var PI2 = Math.PI * 2;
- /**
- * 从顶点数组中计算出最小包围盒,写入`min`和`max`中
- * @module zrender/core/bbox
- * @param {Array<Object>} points 顶点数组
- * @param {number} min
- * @param {number} max
- */
- bbox.fromPoints = function(points, min, max) {
- if (points.length === 0) {
- return;
- }
- var p = points[0];
- var left = p[0];
- var right = p[0];
- var top = p[1];
- var bottom = p[1];
- var i;
-
- for (i = 1; i < points.length; i++) {
- p = points[i];
- left = mathMin(left, p[0]);
- right = mathMax(right, p[0]);
- top = mathMin(top, p[1]);
- bottom = mathMax(bottom, p[1]);
- }
-
- min[0] = left;
- min[1] = top;
- max[0] = right;
- max[1] = bottom;
- };
-
- /**
- * @memberOf module:zrender/core/bbox
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {Array.<number>} min
- * @param {Array.<number>} max
- */
- bbox.fromLine = function (x0, y0, x1, y1, min, max) {
- min[0] = mathMin(x0, x1);
- min[1] = mathMin(y0, y1);
- max[0] = mathMax(x0, x1);
- max[1] = mathMax(y0, y1);
- };
-
- var xDim = [];
- var yDim = [];
- /**
- * 从三阶贝塞尔曲线(p0, p1, p2, p3)中计算出最小包围盒,写入`min`和`max`中
- * @memberOf module:zrender/core/bbox
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} x3
- * @param {number} y3
- * @param {Array.<number>} min
- * @param {Array.<number>} max
- */
- bbox.fromCubic = function(
- x0, y0, x1, y1, x2, y2, x3, y3, min, max
- ) {
- var cubicExtrema = curve.cubicExtrema;
- var cubicAt = curve.cubicAt;
- var i;
- var n = cubicExtrema(x0, x1, x2, x3, xDim);
- min[0] = Infinity;
- min[1] = Infinity;
- max[0] = -Infinity;
- max[1] = -Infinity;
-
- for (i = 0; i < n; i++) {
- var x = cubicAt(x0, x1, x2, x3, xDim[i]);
- min[0] = mathMin(x, min[0]);
- max[0] = mathMax(x, max[0]);
- }
- n = cubicExtrema(y0, y1, y2, y3, yDim);
- for (i = 0; i < n; i++) {
- var y = cubicAt(y0, y1, y2, y3, yDim[i]);
- min[1] = mathMin(y, min[1]);
- max[1] = mathMax(y, max[1]);
- }
-
- min[0] = mathMin(x0, min[0]);
- max[0] = mathMax(x0, max[0]);
- min[0] = mathMin(x3, min[0]);
- max[0] = mathMax(x3, max[0]);
-
- min[1] = mathMin(y0, min[1]);
- max[1] = mathMax(y0, max[1]);
- min[1] = mathMin(y3, min[1]);
- max[1] = mathMax(y3, max[1]);
- };
-
- /**
- * 从二阶贝塞尔曲线(p0, p1, p2)中计算出最小包围盒,写入`min`和`max`中
- * @memberOf module:zrender/core/bbox
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {Array.<number>} min
- * @param {Array.<number>} max
- */
- bbox.fromQuadratic = function(x0, y0, x1, y1, x2, y2, min, max) {
- var quadraticExtremum = curve.quadraticExtremum;
- var quadraticAt = curve.quadraticAt;
- // Find extremities, where derivative in x dim or y dim is zero
- var tx =
- mathMax(
- mathMin(quadraticExtremum(x0, x1, x2), 1), 0
- );
- var ty =
- mathMax(
- mathMin(quadraticExtremum(y0, y1, y2), 1), 0
- );
-
- var x = quadraticAt(x0, x1, x2, tx);
- var y = quadraticAt(y0, y1, y2, ty);
-
- min[0] = mathMin(x0, x2, x);
- min[1] = mathMin(y0, y2, y);
- max[0] = mathMax(x0, x2, x);
- max[1] = mathMax(y0, y2, y);
- };
-
- /**
- * 从圆弧中计算出最小包围盒,写入`min`和`max`中
- * @method
- * @memberOf module:zrender/core/bbox
- * @param {number} x
- * @param {number} y
- * @param {number} rx
- * @param {number} ry
- * @param {number} startAngle
- * @param {number} endAngle
- * @param {number} anticlockwise
- * @param {Array.<number>} min
- * @param {Array.<number>} max
- */
- bbox.fromArc = function (
- x, y, rx, ry, startAngle, endAngle, anticlockwise, min, max
- ) {
- var vec2Min = vec2.min;
- var vec2Max = vec2.max;
-
- var diff = Math.abs(startAngle - endAngle);
-
-
- if (diff % PI2 < 1e-4 && diff > 1e-4) {
- // Is a circle
- min[0] = x - rx;
- min[1] = y - ry;
- max[0] = x + rx;
- max[1] = y + ry;
- return;
- }
-
- start[0] = mathCos(startAngle) * rx + x;
- start[1] = mathSin(startAngle) * ry + y;
-
- end[0] = mathCos(endAngle) * rx + x;
- end[1] = mathSin(endAngle) * ry + y;
-
- vec2Min(min, start, end);
- vec2Max(max, start, end);
-
- // Thresh to [0, Math.PI * 2]
- startAngle = startAngle % (PI2);
- if (startAngle < 0) {
- startAngle = startAngle + PI2;
- }
- endAngle = endAngle % (PI2);
- if (endAngle < 0) {
- endAngle = endAngle + PI2;
- }
-
- if (startAngle > endAngle && !anticlockwise) {
- endAngle += PI2;
- }
- else if (startAngle < endAngle && anticlockwise) {
- startAngle += PI2;
- }
- if (anticlockwise) {
- var tmp = endAngle;
- endAngle = startAngle;
- startAngle = tmp;
- }
-
- // var number = 0;
- // var step = (anticlockwise ? -Math.PI : Math.PI) / 2;
- for (var angle = 0; angle < endAngle; angle += Math.PI / 2) {
- if (angle > startAngle) {
- extremity[0] = mathCos(angle) * rx + x;
- extremity[1] = mathSin(angle) * ry + y;
-
- vec2Min(min, extremity, min);
- vec2Max(max, extremity, max);
- }
- }
- };
-
- module.exports = bbox;
-
-
-
-/***/ },
-/* 51 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var CMD = __webpack_require__(48).CMD;
- var line = __webpack_require__(52);
- var cubic = __webpack_require__(53);
- var quadratic = __webpack_require__(54);
- var arc = __webpack_require__(55);
- var normalizeRadian = __webpack_require__(56).normalizeRadian;
- var curve = __webpack_require__(49);
-
- var windingLine = __webpack_require__(57);
-
- var containStroke = line.containStroke;
-
- var PI2 = Math.PI * 2;
-
- var EPSILON = 1e-4;
-
- function isAroundEqual(a, b) {
- return Math.abs(a - b) < EPSILON;
- }
-
- // 临时数组
- var roots = [-1, -1, -1];
- var extrema = [-1, -1];
-
- function swapExtrema() {
- var tmp = extrema[0];
- extrema[0] = extrema[1];
- extrema[1] = tmp;
- }
-
- function windingCubic(x0, y0, x1, y1, x2, y2, x3, y3, x, y) {
- // Quick reject
- if (
- (y > y0 && y > y1 && y > y2 && y > y3)
- || (y < y0 && y < y1 && y < y2 && y < y3)
- ) {
- return 0;
- }
- var nRoots = curve.cubicRootAt(y0, y1, y2, y3, y, roots);
- if (nRoots === 0) {
- return 0;
- }
- else {
- var w = 0;
- var nExtrema = -1;
- var y0_, y1_;
- for (var i = 0; i < nRoots; i++) {
- var t = roots[i];
- var x_ = curve.cubicAt(x0, x1, x2, x3, t);
- if (x_ < x) { // Quick reject
- continue;
- }
- if (nExtrema < 0) {
- nExtrema = curve.cubicExtrema(y0, y1, y2, y3, extrema);
- if (extrema[1] < extrema[0] && nExtrema > 1) {
- swapExtrema();
- }
- y0_ = curve.cubicAt(y0, y1, y2, y3, extrema[0]);
- if (nExtrema > 1) {
- y1_ = curve.cubicAt(y0, y1, y2, y3, extrema[1]);
- }
- }
- if (nExtrema == 2) {
- // 分成三段单调函数
- if (t < extrema[0]) {
- w += y0_ < y0 ? 1 : -1;
- }
- else if (t < extrema[1]) {
- w += y1_ < y0_ ? 1 : -1;
- }
- else {
- w += y3 < y1_ ? 1 : -1;
- }
- }
- else {
- // 分成两段单调函数
- if (t < extrema[0]) {
- w += y0_ < y0 ? 1 : -1;
- }
- else {
- w += y3 < y0_ ? 1 : -1;
- }
- }
- }
- return w;
- }
- }
-
- function windingQuadratic(x0, y0, x1, y1, x2, y2, x, y) {
- // Quick reject
- if (
- (y > y0 && y > y1 && y > y2)
- || (y < y0 && y < y1 && y < y2)
- ) {
- return 0;
- }
- var nRoots = curve.quadraticRootAt(y0, y1, y2, y, roots);
- if (nRoots === 0) {
- return 0;
- }
- else {
- var t = curve.quadraticExtremum(y0, y1, y2);
- if (t >= 0 && t <= 1) {
- var w = 0;
- var y_ = curve.quadraticAt(y0, y1, y2, t);
- for (var i = 0; i < nRoots; i++) {
- var x_ = curve.quadraticAt(x0, x1, x2, roots[i]);
- if (x_ < x) { // Quick reject
- continue;
- }
- if (roots[i] < t) {
- w += y_ < y0 ? 1 : -1;
- }
- else {
- w += y2 < y_ ? 1 : -1;
- }
- }
- return w;
- }
- else {
- var x_ = curve.quadraticAt(x0, x1, x2, roots[0]);
- if (x_ < x) { // Quick reject
- return 0;
- }
- return y2 < y0 ? 1 : -1;
- }
- }
- }
-
- // TODO
- // Arc 旋转
- function windingArc(
- cx, cy, r, startAngle, endAngle, anticlockwise, x, y
- ) {
- y -= cy;
- if (y > r || y < -r) {
- return 0;
- }
- var tmp = Math.sqrt(r * r - y * y);
- roots[0] = -tmp;
- roots[1] = tmp;
-
- var diff = Math.abs(startAngle - endAngle);
- if (diff < 1e-4) {
- return 0;
- }
- if (diff % PI2 < 1e-4) {
- // Is a circle
- startAngle = 0;
- endAngle = PI2;
- var dir = anticlockwise ? 1 : -1;
- if (x >= roots[0] + cx && x <= roots[1] + cx) {
- return dir;
- } else {
- return 0;
- }
- }
-
- if (anticlockwise) {
- var tmp = startAngle;
- startAngle = normalizeRadian(endAngle);
- endAngle = normalizeRadian(tmp);
- }
- else {
- startAngle = normalizeRadian(startAngle);
- endAngle = normalizeRadian(endAngle);
- }
- if (startAngle > endAngle) {
- endAngle += PI2;
- }
-
- var w = 0;
- for (var i = 0; i < 2; i++) {
- var x_ = roots[i];
- if (x_ + cx > x) {
- var angle = Math.atan2(y, x_);
- var dir = anticlockwise ? 1 : -1;
- if (angle < 0) {
- angle = PI2 + angle;
- }
- if (
- (angle >= startAngle && angle <= endAngle)
- || (angle + PI2 >= startAngle && angle + PI2 <= endAngle)
- ) {
- if (angle > Math.PI / 2 && angle < Math.PI * 1.5) {
- dir = -dir;
- }
- w += dir;
- }
- }
- }
- return w;
- }
-
- function containPath(data, lineWidth, isStroke, x, y) {
- var w = 0;
- var xi = 0;
- var yi = 0;
- var x0 = 0;
- var y0 = 0;
-
- for (var i = 0; i < data.length;) {
- var cmd = data[i++];
- // Begin a new subpath
- if (cmd === CMD.M && i > 1) {
- // Close previous subpath
- if (!isStroke) {
- w += windingLine(xi, yi, x0, y0, x, y);
- }
- // 如果被任何一个 subpath 包含
- if (w !== 0) {
- return true;
- }
- }
-
- if (i == 1) {
- // 如果第一个命令是 L, C, Q
- // 则 previous point 同绘制命令的第一个 point
- //
- // 第一个命令为 Arc 的情况下会在后面特殊处理
- xi = data[i];
- yi = data[i + 1];
-
- x0 = xi;
- y0 = yi;
- }
-
- switch (cmd) {
- case CMD.M:
- // moveTo 命令重新创建一个新的 subpath, 并且更新新的起点
- // 在 closePath 的时候使用
- x0 = data[i++];
- y0 = data[i++];
- xi = x0;
- yi = y0;
- break;
- case CMD.L:
- if (isStroke) {
- if (containStroke(xi, yi, data[i], data[i + 1], lineWidth, x, y)) {
- return true;
- }
- }
- else {
- // NOTE 在第一个命令为 L, C, Q 的时候会计算出 NaN
- w += windingLine(xi, yi, data[i], data[i + 1], x, y) || 0;
- }
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.C:
- if (isStroke) {
- if (cubic.containStroke(xi, yi,
- data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
- lineWidth, x, y
- )) {
- return true;
- }
- }
- else {
- w += windingCubic(
- xi, yi,
- data[i++], data[i++], data[i++], data[i++], data[i], data[i + 1],
- x, y
- ) || 0;
- }
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.Q:
- if (isStroke) {
- if (quadratic.containStroke(xi, yi,
- data[i++], data[i++], data[i], data[i + 1],
- lineWidth, x, y
- )) {
- return true;
- }
- }
- else {
- w += windingQuadratic(
- xi, yi,
- data[i++], data[i++], data[i], data[i + 1],
- x, y
- ) || 0;
- }
- xi = data[i++];
- yi = data[i++];
- break;
- case CMD.A:
- // TODO Arc 判断的开销比较大
- var cx = data[i++];
- var cy = data[i++];
- var rx = data[i++];
- var ry = data[i++];
- var theta = data[i++];
- var dTheta = data[i++];
- // TODO Arc 旋转
- var psi = data[i++];
- var anticlockwise = 1 - data[i++];
- var x1 = Math.cos(theta) * rx + cx;
- var y1 = Math.sin(theta) * ry + cy;
- // 不是直接使用 arc 命令
- if (i > 1) {
- w += windingLine(xi, yi, x1, y1, x, y);
- }
- else {
- // 第一个命令起点还未定义
- x0 = x1;
- y0 = y1;
- }
- // zr 使用scale来模拟椭圆, 这里也对x做一定的缩放
- var _x = (x - cx) * ry / rx + cx;
- if (isStroke) {
- if (arc.containStroke(
- cx, cy, ry, theta, theta + dTheta, anticlockwise,
- lineWidth, _x, y
- )) {
- return true;
- }
- }
- else {
- w += windingArc(
- cx, cy, ry, theta, theta + dTheta, anticlockwise,
- _x, y
- );
- }
- xi = Math.cos(theta + dTheta) * rx + cx;
- yi = Math.sin(theta + dTheta) * ry + cy;
- break;
- case CMD.R:
- x0 = xi = data[i++];
- y0 = yi = data[i++];
- var width = data[i++];
- var height = data[i++];
- var x1 = x0 + width;
- var y1 = y0 + height;
- if (isStroke) {
- if (containStroke(x0, y0, x1, y0, lineWidth, x, y)
- || containStroke(x1, y0, x1, y1, lineWidth, x, y)
- || containStroke(x1, y1, x0, y1, lineWidth, x, y)
- || containStroke(x0, y1, x1, y1, lineWidth, x, y)
- ) {
- return true;
- }
- }
- else {
- // FIXME Clockwise ?
- w += windingLine(x1, y0, x1, y1, x, y);
- w += windingLine(x0, y1, x0, y0, x, y);
- }
- break;
- case CMD.Z:
- if (isStroke) {
- if (containStroke(
- xi, yi, x0, y0, lineWidth, x, y
- )) {
- return true;
- }
- }
- else {
- // Close a subpath
- w += windingLine(xi, yi, x0, y0, x, y);
- // 如果被任何一个 subpath 包含
- if (w !== 0) {
- return true;
- }
- }
- xi = x0;
- yi = y0;
- break;
- }
- }
- if (!isStroke && !isAroundEqual(yi, y0)) {
- w += windingLine(xi, yi, x0, y0, x, y) || 0;
- }
- return w !== 0;
- }
-
- module.exports = {
- contain: function (pathData, x, y) {
- return containPath(pathData, 0, false, x, y);
- },
-
- containStroke: function (pathData, lineWidth, x, y) {
- return containPath(pathData, lineWidth, true, x, y);
- }
- };
-
-
-/***/ },
-/* 52 */
-/***/ function(module, exports) {
-
-
- module.exports = {
- /**
- * 线段包含判断
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} lineWidth
- * @param {number} x
- * @param {number} y
- * @return {boolean}
- */
- containStroke: function (x0, y0, x1, y1, lineWidth, x, y) {
- if (lineWidth === 0) {
- return false;
- }
- var _l = lineWidth;
- var _a = 0;
- var _b = x0;
- // Quick reject
- if (
- (y > y0 + _l && y > y1 + _l)
- || (y < y0 - _l && y < y1 - _l)
- || (x > x0 + _l && x > x1 + _l)
- || (x < x0 - _l && x < x1 - _l)
- ) {
- return false;
- }
-
- if (x0 !== x1) {
- _a = (y0 - y1) / (x0 - x1);
- _b = (x0 * y1 - x1 * y0) / (x0 - x1) ;
- }
- else {
- return Math.abs(x - x0) <= _l / 2;
- }
- var tmp = _a * x - y + _b;
- var _s = tmp * tmp / (_a * _a + 1);
- return _s <= _l / 2 * _l / 2;
- }
- };
-
-
-/***/ },
-/* 53 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var curve = __webpack_require__(49);
-
- module.exports = {
- /**
- * 三次贝塞尔曲线描边包含判断
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} x3
- * @param {number} y3
- * @param {number} lineWidth
- * @param {number} x
- * @param {number} y
- * @return {boolean}
- */
- containStroke: function(x0, y0, x1, y1, x2, y2, x3, y3, lineWidth, x, y) {
- if (lineWidth === 0) {
- return false;
- }
- var _l = lineWidth;
- // Quick reject
- if (
- (y > y0 + _l && y > y1 + _l && y > y2 + _l && y > y3 + _l)
- || (y < y0 - _l && y < y1 - _l && y < y2 - _l && y < y3 - _l)
- || (x > x0 + _l && x > x1 + _l && x > x2 + _l && x > x3 + _l)
- || (x < x0 - _l && x < x1 - _l && x < x2 - _l && x < x3 - _l)
- ) {
- return false;
- }
- var d = curve.cubicProjectPoint(
- x0, y0, x1, y1, x2, y2, x3, y3,
- x, y, null
- );
- return d <= _l / 2;
- }
- };
-
-
-/***/ },
-/* 54 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var curve = __webpack_require__(49);
-
- module.exports = {
- /**
- * 二次贝塞尔曲线描边包含判断
- * @param {number} x0
- * @param {number} y0
- * @param {number} x1
- * @param {number} y1
- * @param {number} x2
- * @param {number} y2
- * @param {number} lineWidth
- * @param {number} x
- * @param {number} y
- * @return {boolean}
- */
- containStroke: function (x0, y0, x1, y1, x2, y2, lineWidth, x, y) {
- if (lineWidth === 0) {
- return false;
- }
- var _l = lineWidth;
- // Quick reject
- if (
- (y > y0 + _l && y > y1 + _l && y > y2 + _l)
- || (y < y0 - _l && y < y1 - _l && y < y2 - _l)
- || (x > x0 + _l && x > x1 + _l && x > x2 + _l)
- || (x < x0 - _l && x < x1 - _l && x < x2 - _l)
- ) {
- return false;
- }
- var d = curve.quadraticProjectPoint(
- x0, y0, x1, y1, x2, y2,
- x, y, null
- );
- return d <= _l / 2;
- }
- };
-
-
-/***/ },
-/* 55 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var normalizeRadian = __webpack_require__(56).normalizeRadian;
- var PI2 = Math.PI * 2;
-
- module.exports = {
- /**
- * 圆弧描边包含判断
- * @param {number} cx
- * @param {number} cy
- * @param {number} r
- * @param {number} startAngle
- * @param {number} endAngle
- * @param {boolean} anticlockwise
- * @param {number} lineWidth
- * @param {number} x
- * @param {number} y
- * @return {Boolean}
- */
- containStroke: function (
- cx, cy, r, startAngle, endAngle, anticlockwise,
- lineWidth, x, y
- ) {
-
- if (lineWidth === 0) {
- return false;
- }
- var _l = lineWidth;
-
- x -= cx;
- y -= cy;
- var d = Math.sqrt(x * x + y * y);
-
- if ((d - _l > r) || (d + _l < r)) {
- return false;
- }
- if (Math.abs(startAngle - endAngle) % PI2 < 1e-4) {
- // Is a circle
- return true;
- }
- if (anticlockwise) {
- var tmp = startAngle;
- startAngle = normalizeRadian(endAngle);
- endAngle = normalizeRadian(tmp);
- } else {
- startAngle = normalizeRadian(startAngle);
- endAngle = normalizeRadian(endAngle);
- }
- if (startAngle > endAngle) {
- endAngle += PI2;
- }
-
- var angle = Math.atan2(y, x);
- if (angle < 0) {
- angle += PI2;
- }
- return (angle >= startAngle && angle <= endAngle)
- || (angle + PI2 >= startAngle && angle + PI2 <= endAngle);
- }
- };
-
-
-/***/ },
-/* 56 */
-/***/ function(module, exports) {
-
-
-
- var PI2 = Math.PI * 2;
- module.exports = {
- normalizeRadian: function(angle) {
- angle %= PI2;
- if (angle < 0) {
- angle += PI2;
- }
- return angle;
- }
- };
-
-
-/***/ },
-/* 57 */
-/***/ function(module, exports) {
-
-
- module.exports = function windingLine(x0, y0, x1, y1, x, y) {
- if ((y > y0 && y > y1) || (y < y0 && y < y1)) {
- return 0;
- }
- if (y1 === y0) {
- return 0;
- }
- var dir = y1 < y0 ? 1 : -1;
- var t = (y - y0) / (y1 - y0);
- var x_ = t * (x1 - x0) + x0;
-
- return x_ > x ? dir : 0;
- };
-
-
-/***/ },
-/* 58 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var CMD = __webpack_require__(48).CMD;
- var vec2 = __webpack_require__(16);
- var v2ApplyTransform = vec2.applyTransform;
-
- var points = [[], [], []];
- var mathSqrt = Math.sqrt;
- var mathAtan2 = Math.atan2;
- function transformPath(path, m) {
- var data = path.data;
- var cmd;
- var nPoint;
- var i;
- var j;
- var k;
- var p;
-
- var M = CMD.M;
- var C = CMD.C;
- var L = CMD.L;
- var R = CMD.R;
- var A = CMD.A;
- var Q = CMD.Q;
-
- for (i = 0, j = 0; i < data.length;) {
- cmd = data[i++];
- j = i;
- nPoint = 0;
-
- switch (cmd) {
- case M:
- nPoint = 1;
- break;
- case L:
- nPoint = 1;
- break;
- case C:
- nPoint = 3;
- break;
- case Q:
- nPoint = 2;
- break;
- case A:
- var x = m[4];
- var y = m[5];
- var sx = mathSqrt(m[0] * m[0] + m[1] * m[1]);
- var sy = mathSqrt(m[2] * m[2] + m[3] * m[3]);
- var angle = mathAtan2(-m[1] / sy, m[0] / sx);
- // cx
- data[i++] += x;
- // cy
- data[i++] += y;
- // Scale rx and ry
- // FIXME Assume psi is 0 here
- data[i++] *= sx;
- data[i++] *= sy;
-
- // Start angle
- data[i++] += angle;
- // end angle
- data[i++] += angle;
- // FIXME psi
- i += 2;
- j = i;
- break;
- case R:
- // x0, y0
- p[0] = data[i++];
- p[1] = data[i++];
- v2ApplyTransform(p, p, m);
- data[j++] = p[0];
- data[j++] = p[1];
- // x1, y1
- p[0] += data[i++];
- p[1] += data[i++];
- v2ApplyTransform(p, p, m);
- data[j++] = p[0];
- data[j++] = p[1];
- }
-
- for (k = 0; k < nPoint; k++) {
- var p = points[k];
- p[0] = data[i++];
- p[1] = data[i++];
-
- v2ApplyTransform(p, p, m);
- // Write back
- data[j++] = p[0];
- data[j++] = p[1];
- }
- }
- }
-
- module.exports = transformPath;
-
-
-/***/ },
-/* 59 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Image element
- * @module zrender/graphic/Image
- */
-
-
-
- var Displayable = __webpack_require__(45);
- var BoundingRect = __webpack_require__(15);
- var zrUtil = __webpack_require__(3);
- var roundRectHelper = __webpack_require__(60);
-
- var LRU = __webpack_require__(61);
- var globalImageCache = new LRU(50);
- /**
- * @alias zrender/graphic/Image
- * @extends module:zrender/graphic/Displayable
- * @constructor
- * @param {Object} opts
- */
- function ZImage(opts) {
- Displayable.call(this, opts);
- }
-
- ZImage.prototype = {
-
- constructor: ZImage,
-
- type: 'image',
-
- brush: function (ctx) {
- var style = this.style;
- var src = style.image;
- var image;
- // style.image is a url string
- if (typeof src === 'string') {
- image = this._image;
- }
- // style.image is an HTMLImageElement or HTMLCanvasElement or Canvas
- else {
- image = src;
- }
- // FIXME Case create many images with src
- if (!image && src) {
- // Try get from global image cache
- var cachedImgObj = globalImageCache.get(src);
- if (!cachedImgObj) {
- // Create a new image
- image = new Image();
- image.onload = function () {
- image.onload = null;
- for (var i = 0; i < cachedImgObj.pending.length; i++) {
- cachedImgObj.pending[i].dirty();
- }
- };
- cachedImgObj = {
- image: image,
- pending: [this]
- };
- image.src = src;
- globalImageCache.put(src, cachedImgObj);
- this._image = image;
- return;
- }
- else {
- image = cachedImgObj.image;
- this._image = image;
- // Image is not complete finish, add to pending list
- if (!image.width || !image.height) {
- cachedImgObj.pending.push(this);
- return;
- }
- }
- }
-
- if (image) {
- // 图片已经加载完成
- // if (image.nodeName.toUpperCase() == 'IMG') {
- // if (!image.complete) {
- // return;
- // }
- // }
- // Else is canvas
-
- var width = style.width || image.width;
- var height = style.height || image.height;
- var x = style.x || 0;
- var y = style.y || 0;
- // 图片加载失败
- if (!image.width || !image.height) {
- return;
- }
-
- ctx.save();
-
- style.bind(ctx);
-
- // 设置transform
- this.setTransform(ctx);
-
- if (style.r) {
- // Border radius clipping
- // FIXME
- ctx.beginPath();
- roundRectHelper.buildPath(ctx, style);
- ctx.clip();
- }
-
- if (style.sWidth && style.sHeight) {
- var sx = style.sx || 0;
- var sy = style.sy || 0;
- ctx.drawImage(
- image,
- sx, sy, style.sWidth, style.sHeight,
- x, y, width, height
- );
- }
- else if (style.sx && style.sy) {
- var sx = style.sx;
- var sy = style.sy;
- var sWidth = width - sx;
- var sHeight = height - sy;
- ctx.drawImage(
- image,
- sx, sy, sWidth, sHeight,
- x, y, width, height
- );
- }
- else {
- ctx.drawImage(image, x, y, width, height);
- }
-
- // 如果没设置宽和高的话自动根据图片宽高设置
- if (style.width == null) {
- style.width = width;
- }
- if (style.height == null) {
- style.height = height;
- }
-
- // Draw rect text
- if (style.text != null) {
- this.drawRectText(ctx, this.getBoundingRect());
- }
-
- ctx.restore();
- }
- },
-
- getBoundingRect: function () {
- var style = this.style;
- if (! this._rect) {
- this._rect = new BoundingRect(
- style.x || 0, style.y || 0, style.width || 0, style.height || 0
- );
- }
- return this._rect;
- }
- };
-
- zrUtil.inherits(ZImage, Displayable);
-
- module.exports = ZImage;
-
-
-/***/ },
-/* 60 */
-/***/ function(module, exports) {
-
-
-
- module.exports = {
- buildPath: function (ctx, shape) {
- var x = shape.x;
- var y = shape.y;
- var width = shape.width;
- var height = shape.height;
- var r = shape.r;
- var r1;
- var r2;
- var r3;
- var r4;
-
- // Convert width and height to positive for better borderRadius
- if (width < 0) {
- x = x + width;
- width = -width;
- }
- if (height < 0) {
- y = y + height;
- height = -height;
- }
-
- if (typeof r === 'number') {
- r1 = r2 = r3 = r4 = r;
- }
- else if (r instanceof Array) {
- if (r.length === 1) {
- r1 = r2 = r3 = r4 = r[0];
- }
- else if (r.length === 2) {
- r1 = r3 = r[0];
- r2 = r4 = r[1];
- }
- else if (r.length === 3) {
- r1 = r[0];
- r2 = r4 = r[1];
- r3 = r[2];
- }
- else {
- r1 = r[0];
- r2 = r[1];
- r3 = r[2];
- r4 = r[3];
- }
- }
- else {
- r1 = r2 = r3 = r4 = 0;
- }
-
- var total;
- if (r1 + r2 > width) {
- total = r1 + r2;
- r1 *= width / total;
- r2 *= width / total;
- }
- if (r3 + r4 > width) {
- total = r3 + r4;
- r3 *= width / total;
- r4 *= width / total;
- }
- if (r2 + r3 > height) {
- total = r2 + r3;
- r2 *= height / total;
- r3 *= height / total;
- }
- if (r1 + r4 > height) {
- total = r1 + r4;
- r1 *= height / total;
- r4 *= height / total;
- }
- ctx.moveTo(x + r1, y);
- ctx.lineTo(x + width - r2, y);
- r2 !== 0 && ctx.quadraticCurveTo(
- x + width, y, x + width, y + r2
- );
- ctx.lineTo(x + width, y + height - r3);
- r3 !== 0 && ctx.quadraticCurveTo(
- x + width, y + height, x + width - r3, y + height
- );
- ctx.lineTo(x + r4, y + height);
- r4 !== 0 && ctx.quadraticCurveTo(
- x, y + height, x, y + height - r4
- );
- ctx.lineTo(x, y + r1);
- r1 !== 0 && ctx.quadraticCurveTo(x, y, x + r1, y);
- }
- };
-
-
-/***/ },
-/* 61 */
-/***/ function(module, exports) {
-
- // Simple LRU cache use doubly linked list
- // @module zrender/core/LRU
-
-
- /**
- * Simple double linked list. Compared with array, it has O(1) remove operation.
- * @constructor
- */
- var LinkedList = function() {
-
- /**
- * @type {module:zrender/core/LRU~Entry}
- */
- this.head = null;
-
- /**
- * @type {module:zrender/core/LRU~Entry}
- */
- this.tail = null;
-
- this._len = 0;
- };
-
- var linkedListProto = LinkedList.prototype;
- /**
- * Insert a new value at the tail
- * @param {} val
- * @return {module:zrender/core/LRU~Entry}
- */
- linkedListProto.insert = function(val) {
- var entry = new Entry(val);
- this.insertEntry(entry);
- return entry;
- };
-
- /**
- * Insert an entry at the tail
- * @param {module:zrender/core/LRU~Entry} entry
- */
- linkedListProto.insertEntry = function(entry) {
- if (!this.head) {
- this.head = this.tail = entry;
- }
- else {
- this.tail.next = entry;
- entry.prev = this.tail;
- this.tail = entry;
- }
- this._len++;
- };
-
- /**
- * Remove entry.
- * @param {module:zrender/core/LRU~Entry} entry
- */
- linkedListProto.remove = function(entry) {
- var prev = entry.prev;
- var next = entry.next;
- if (prev) {
- prev.next = next;
- }
- else {
- // Is head
- this.head = next;
- }
- if (next) {
- next.prev = prev;
- }
- else {
- // Is tail
- this.tail = prev;
- }
- entry.next = entry.prev = null;
- this._len--;
- };
-
- /**
- * @return {number}
- */
- linkedListProto.len = function() {
- return this._len;
- };
-
- /**
- * @constructor
- * @param {} val
- */
- var Entry = function(val) {
- /**
- * @type {}
- */
- this.value = val;
-
- /**
- * @type {module:zrender/core/LRU~Entry}
- */
- this.next;
-
- /**
- * @type {module:zrender/core/LRU~Entry}
- */
- this.prev;
- };
-
- /**
- * LRU Cache
- * @constructor
- * @alias module:zrender/core/LRU
- */
- var LRU = function(maxSize) {
-
- this._list = new LinkedList();
-
- this._map = {};
-
- this._maxSize = maxSize || 10;
- };
-
- var LRUProto = LRU.prototype;
-
- /**
- * @param {string} key
- * @param {} value
- */
- LRUProto.put = function(key, value) {
- var list = this._list;
- var map = this._map;
- if (map[key] == null) {
- var len = list.len();
- if (len >= this._maxSize && len > 0) {
- // Remove the least recently used
- var leastUsedEntry = list.head;
- list.remove(leastUsedEntry);
- delete map[leastUsedEntry.key];
- }
-
- var entry = list.insert(value);
- entry.key = key;
- map[key] = entry;
- }
- };
-
- /**
- * @param {string} key
- * @return {}
- */
- LRUProto.get = function(key) {
- var entry = this._map[key];
- var list = this._list;
- if (entry != null) {
- // Put the latest used entry in the tail
- if (entry !== list.tail) {
- list.remove(entry);
- list.insertEntry(entry);
- }
-
- return entry.value;
- }
- };
-
- /**
- * Clear the cache
- */
- LRUProto.clear = function() {
- this._list.clear();
- this._map = {};
- };
-
- module.exports = LRU;
-
-
-/***/ },
-/* 62 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Text element
- * @module zrender/graphic/Text
- *
- * TODO Wrapping
- */
-
-
-
- var Displayable = __webpack_require__(45);
- var zrUtil = __webpack_require__(3);
- var textContain = __webpack_require__(14);
-
- /**
- * @alias zrender/graphic/Text
- * @extends module:zrender/graphic/Displayable
- * @constructor
- * @param {Object} opts
- */
- var Text = function (opts) {
- Displayable.call(this, opts);
- };
-
- Text.prototype = {
-
- constructor: Text,
-
- type: 'text',
-
- brush: function (ctx) {
- var style = this.style;
- var x = style.x || 0;
- var y = style.y || 0;
- // Convert to string
- var text = style.text;
- var textFill = style.fill;
- var textStroke = style.stroke;
-
- // Convert to string
- text != null && (text += '');
-
- if (text) {
- ctx.save();
-
- this.style.bind(ctx);
- this.setTransform(ctx);
-
- textFill && (ctx.fillStyle = textFill);
- textStroke && (ctx.strokeStyle = textStroke);
-
- ctx.font = style.textFont || style.font;
- ctx.textAlign = style.textAlign;
-
- if (style.textVerticalAlign) {
- var rect = textContain.getBoundingRect(
- text, ctx.font, style.textAlign, 'top'
- );
- // Ignore textBaseline
- ctx.textBaseline = 'top';
- switch (style.textVerticalAlign) {
- case 'middle':
- y -= rect.height / 2;
- break;
- case 'bottom':
- y -= rect.height;
- break;
- // 'top'
- }
- }
- else {
- ctx.textBaseline = style.textBaseline;
- }
- var lineHeight = textContain.measureText('国', ctx.font).width;
-
- var textLines = text.split('\n');
- for (var i = 0; i < textLines.length; i++) {
- textFill && ctx.fillText(textLines[i], x, y);
- textStroke && ctx.strokeText(textLines[i], x, y);
- y += lineHeight;
- }
-
- ctx.restore();
- }
- },
-
- getBoundingRect: function () {
- if (!this._rect) {
- var style = this.style;
- var textVerticalAlign = style.textVerticalAlign;
- var rect = textContain.getBoundingRect(
- style.text + '', style.textFont || style.font, style.textAlign,
- textVerticalAlign ? 'top' : style.textBaseline
- );
- switch (textVerticalAlign) {
- case 'middle':
- rect.y -= rect.height / 2;
- break;
- case 'bottom':
- rect.y -= rect.height;
- break;
- }
- rect.x += style.x || 0;
- rect.y += style.y || 0;
- this._rect = rect;
- }
- return this._rect;
- }
- };
-
- zrUtil.inherits(Text, Displayable);
-
- module.exports = Text;
-
-
-/***/ },
-/* 63 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 圆形
- * @module zrender/shape/Circle
- */
-
-
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'circle',
-
- shape: {
- cx: 0,
- cy: 0,
- r: 0
- },
-
- buildPath : function (ctx, shape) {
- // Better stroking in ShapeBundle
- ctx.moveTo(shape.cx + shape.r, shape.cy);
- ctx.arc(shape.cx, shape.cy, shape.r, 0, Math.PI * 2, true);
- return;
- }
- });
-
-
-
-/***/ },
-/* 64 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 扇形
- * @module zrender/graphic/shape/Sector
- */
-
- // FIXME clockwise seems wrong
-
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'sector',
-
- shape: {
-
- cx: 0,
-
- cy: 0,
-
- r0: 0,
-
- r: 0,
-
- startAngle: 0,
-
- endAngle: Math.PI * 2,
-
- clockwise: true
- },
-
- buildPath: function (ctx, shape) {
-
- var x = shape.cx;
- var y = shape.cy;
- var r0 = Math.max(shape.r0 || 0, 0);
- var r = Math.max(shape.r, 0);
- var startAngle = shape.startAngle;
- var endAngle = shape.endAngle;
- var clockwise = shape.clockwise;
-
- var unitX = Math.cos(startAngle);
- var unitY = Math.sin(startAngle);
-
- ctx.moveTo(unitX * r0 + x, unitY * r0 + y);
-
- ctx.lineTo(unitX * r + x, unitY * r + y);
-
- ctx.arc(x, y, r, startAngle, endAngle, !clockwise);
-
- ctx.lineTo(
- Math.cos(endAngle) * r0 + x,
- Math.sin(endAngle) * r0 + y
- );
-
- if (r0 !== 0) {
- ctx.arc(x, y, r0, endAngle, startAngle, clockwise);
- }
-
- ctx.closePath();
- }
- });
-
-
-
-/***/ },
-/* 65 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 圆环
- * @module zrender/graphic/shape/Ring
- */
-
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'ring',
-
- shape: {
- cx: 0,
- cy: 0,
- r: 0,
- r0: 0
- },
-
- buildPath: function (ctx, shape) {
- var x = shape.cx;
- var y = shape.cy;
- var PI2 = Math.PI * 2;
- ctx.moveTo(x + shape.r, y);
- ctx.arc(x, y, shape.r, 0, PI2, false);
- ctx.moveTo(x + shape.r0, y);
- ctx.arc(x, y, shape.r0, 0, PI2, true);
- }
- });
-
-
-
-/***/ },
-/* 66 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 多边形
- * @module zrender/shape/Polygon
- */
-
-
- var polyHelper = __webpack_require__(67);
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'polygon',
-
- shape: {
- points: null,
-
- smooth: false,
-
- smoothConstraint: null
- },
-
- buildPath: function (ctx, shape) {
- polyHelper.buildPath(ctx, shape, true);
- }
- });
-
-
-/***/ },
-/* 67 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var smoothSpline = __webpack_require__(68);
- var smoothBezier = __webpack_require__(69);
-
- module.exports = {
- buildPath: function (ctx, shape, closePath) {
- var points = shape.points;
- var smooth = shape.smooth;
- if (points && points.length >= 2) {
- if (smooth && smooth !== 'spline') {
- var controlPoints = smoothBezier(
- points, smooth, closePath, shape.smoothConstraint
- );
-
- ctx.moveTo(points[0][0], points[0][1]);
- var len = points.length;
- for (var i = 0; i < (closePath ? len : len - 1); i++) {
- var cp1 = controlPoints[i * 2];
- var cp2 = controlPoints[i * 2 + 1];
- var p = points[(i + 1) % len];
- ctx.bezierCurveTo(
- cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]
- );
- }
- }
- else {
- if (smooth === 'spline') {
- points = smoothSpline(points, closePath);
- }
-
- ctx.moveTo(points[0][0], points[0][1]);
- for (var i = 1, l = points.length; i < l; i++) {
- ctx.lineTo(points[i][0], points[i][1]);
- }
- }
-
- closePath && ctx.closePath();
- }
- }
- };
-
-
-/***/ },
-/* 68 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Catmull-Rom spline 插值折线
- * @module zrender/shape/util/smoothSpline
- * @author pissang (https://www.github.com/pissang)
- * Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * errorrik (errorrik@gmail.com)
- */
-
- var vec2 = __webpack_require__(16);
-
- /**
- * @inner
- */
- function interpolate(p0, p1, p2, p3, t, t2, t3) {
- var v0 = (p2 - p0) * 0.5;
- var v1 = (p3 - p1) * 0.5;
- return (2 * (p1 - p2) + v0 + v1) * t3
- + (-3 * (p1 - p2) - 2 * v0 - v1) * t2
- + v0 * t + p1;
- }
-
- /**
- * @alias module:zrender/shape/util/smoothSpline
- * @param {Array} points 线段顶点数组
- * @param {boolean} isLoop
- * @return {Array}
- */
- module.exports = function (points, isLoop) {
- var len = points.length;
- var ret = [];
-
- var distance = 0;
- for (var i = 1; i < len; i++) {
- distance += vec2.distance(points[i - 1], points[i]);
- }
-
- var segs = distance / 2;
- segs = segs < len ? len : segs;
- for (var i = 0; i < segs; i++) {
- var pos = i / (segs - 1) * (isLoop ? len : len - 1);
- var idx = Math.floor(pos);
-
- var w = pos - idx;
-
- var p0;
- var p1 = points[idx % len];
- var p2;
- var p3;
- if (!isLoop) {
- p0 = points[idx === 0 ? idx : idx - 1];
- p2 = points[idx > len - 2 ? len - 1 : idx + 1];
- p3 = points[idx > len - 3 ? len - 1 : idx + 2];
- }
- else {
- p0 = points[(idx - 1 + len) % len];
- p2 = points[(idx + 1) % len];
- p3 = points[(idx + 2) % len];
- }
-
- var w2 = w * w;
- var w3 = w * w2;
-
- ret.push([
- interpolate(p0[0], p1[0], p2[0], p3[0], w, w2, w3),
- interpolate(p0[1], p1[1], p2[1], p3[1], w, w2, w3)
- ]);
- }
- return ret;
- };
-
-
-
-/***/ },
-/* 69 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 贝塞尔平滑曲线
- * @module zrender/shape/util/smoothBezier
- * @author pissang (https://www.github.com/pissang)
- * Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * errorrik (errorrik@gmail.com)
- */
-
-
- var vec2 = __webpack_require__(16);
- var v2Min = vec2.min;
- var v2Max = vec2.max;
- var v2Scale = vec2.scale;
- var v2Distance = vec2.distance;
- var v2Add = vec2.add;
-
- /**
- * 贝塞尔平滑曲线
- * @alias module:zrender/shape/util/smoothBezier
- * @param {Array} points 线段顶点数组
- * @param {number} smooth 平滑等级, 0-1
- * @param {boolean} isLoop
- * @param {Array} constraint 将计算出来的控制点约束在一个包围盒内
- * 比如 [[0, 0], [100, 100]], 这个包围盒会与
- * 整个折线的包围盒做一个并集用来约束控制点。
- * @param {Array} 计算出来的控制点数组
- */
- module.exports = function (points, smooth, isLoop, constraint) {
- var cps = [];
-
- var v = [];
- var v1 = [];
- var v2 = [];
- var prevPoint;
- var nextPoint;
-
- var min, max;
- if (constraint) {
- min = [Infinity, Infinity];
- max = [-Infinity, -Infinity];
- for (var i = 0, len = points.length; i < len; i++) {
- v2Min(min, min, points[i]);
- v2Max(max, max, points[i]);
- }
- // 与指定的包围盒做并集
- v2Min(min, min, constraint[0]);
- v2Max(max, max, constraint[1]);
- }
-
- for (var i = 0, len = points.length; i < len; i++) {
- var point = points[i];
-
- if (isLoop) {
- prevPoint = points[i ? i - 1 : len - 1];
- nextPoint = points[(i + 1) % len];
- }
- else {
- if (i === 0 || i === len - 1) {
- cps.push(vec2.clone(points[i]));
- continue;
- }
- else {
- prevPoint = points[i - 1];
- nextPoint = points[i + 1];
- }
- }
-
- vec2.sub(v, nextPoint, prevPoint);
-
- // use degree to scale the handle length
- v2Scale(v, v, smooth);
-
- var d0 = v2Distance(point, prevPoint);
- var d1 = v2Distance(point, nextPoint);
- var sum = d0 + d1;
- if (sum !== 0) {
- d0 /= sum;
- d1 /= sum;
- }
-
- v2Scale(v1, v, -d0);
- v2Scale(v2, v, d1);
- var cp0 = v2Add([], point, v1);
- var cp1 = v2Add([], point, v2);
- if (constraint) {
- v2Max(cp0, cp0, min);
- v2Min(cp0, cp0, max);
- v2Max(cp1, cp1, min);
- v2Min(cp1, cp1, max);
- }
- cps.push(cp0);
- cps.push(cp1);
- }
-
- if (isLoop) {
- cps.push(cps.shift());
- }
-
- return cps;
- };
-
-
-
-/***/ },
-/* 70 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module zrender/graphic/shape/Polyline
- */
-
-
- var polyHelper = __webpack_require__(67);
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'polyline',
-
- shape: {
- points: null,
-
- smooth: false,
-
- smoothConstraint: null
- },
-
- style: {
- stroke: '#000',
-
- fill: null
- },
-
- buildPath: function (ctx, shape) {
- polyHelper.buildPath(ctx, shape, false);
- }
- });
-
-
-/***/ },
-/* 71 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 矩形
- * @module zrender/graphic/shape/Rect
- */
-
-
- var roundRectHelper = __webpack_require__(60);
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'rect',
-
- shape: {
- // 左上、右上、右下、左下角的半径依次为r1、r2、r3、r4
- // r缩写为1 相当于 [1, 1, 1, 1]
- // r缩写为[1] 相当于 [1, 1, 1, 1]
- // r缩写为[1, 2] 相当于 [1, 2, 1, 2]
- // r缩写为[1, 2, 3] 相当于 [1, 2, 3, 2]
- r: 0,
-
- x: 0,
- y: 0,
- width: 0,
- height: 0
- },
-
- buildPath: function (ctx, shape) {
- var x = shape.x;
- var y = shape.y;
- var width = shape.width;
- var height = shape.height;
- if (!shape.r) {
- ctx.rect(x, y, width, height);
- }
- else {
- roundRectHelper.buildPath(ctx, shape);
- }
- ctx.closePath();
- return;
- }
- });
-
-
-
-/***/ },
-/* 72 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 直线
- * @module zrender/graphic/shape/Line
- */
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'line',
-
- shape: {
- // Start point
- x1: 0,
- y1: 0,
- // End point
- x2: 0,
- y2: 0,
-
- percent: 1
- },
-
- style: {
- stroke: '#000',
- fill: null
- },
-
- buildPath: function (ctx, shape) {
- var x1 = shape.x1;
- var y1 = shape.y1;
- var x2 = shape.x2;
- var y2 = shape.y2;
- var percent = shape.percent;
-
- if (percent === 0) {
- return;
- }
-
- ctx.moveTo(x1, y1);
-
- if (percent < 1) {
- x2 = x1 * (1 - percent) + x2 * percent;
- y2 = y1 * (1 - percent) + y2 * percent;
- }
- ctx.lineTo(x2, y2);
- },
-
- /**
- * Get point at percent
- * @param {number} percent
- * @return {Array.<number>}
- */
- pointAt: function (p) {
- var shape = this.shape;
- return [
- shape.x1 * (1 - p) + shape.x2 * p,
- shape.y1 * (1 - p) + shape.y2 * p
- ];
- }
- });
-
-
-
-/***/ },
-/* 73 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 贝塞尔曲线
- * @module zrender/shape/BezierCurve
- */
-
-
- var curveTool = __webpack_require__(49);
- var quadraticSubdivide = curveTool.quadraticSubdivide;
- var cubicSubdivide = curveTool.cubicSubdivide;
- var quadraticAt = curveTool.quadraticAt;
- var cubicAt = curveTool.cubicAt;
-
- var out = [];
- module.exports = __webpack_require__(44).extend({
-
- type: 'bezier-curve',
-
- shape: {
- x1: 0,
- y1: 0,
- x2: 0,
- y2: 0,
- cpx1: 0,
- cpy1: 0,
- // cpx2: 0,
- // cpy2: 0
-
- // Curve show percent, for animating
- percent: 1
- },
-
- style: {
- stroke: '#000',
- fill: null
- },
-
- buildPath: function (ctx, shape) {
- var x1 = shape.x1;
- var y1 = shape.y1;
- var x2 = shape.x2;
- var y2 = shape.y2;
- var cpx1 = shape.cpx1;
- var cpy1 = shape.cpy1;
- var cpx2 = shape.cpx2;
- var cpy2 = shape.cpy2;
- var percent = shape.percent;
- if (percent === 0) {
- return;
- }
-
- ctx.moveTo(x1, y1);
-
- if (cpx2 == null || cpy2 == null) {
- if (percent < 1) {
- quadraticSubdivide(
- x1, cpx1, x2, percent, out
- );
- cpx1 = out[1];
- x2 = out[2];
- quadraticSubdivide(
- y1, cpy1, y2, percent, out
- );
- cpy1 = out[1];
- y2 = out[2];
- }
-
- ctx.quadraticCurveTo(
- cpx1, cpy1,
- x2, y2
- );
- }
- else {
- if (percent < 1) {
- cubicSubdivide(
- x1, cpx1, cpx2, x2, percent, out
- );
- cpx1 = out[1];
- cpx2 = out[2];
- x2 = out[3];
- cubicSubdivide(
- y1, cpy1, cpy2, y2, percent, out
- );
- cpy1 = out[1];
- cpy2 = out[2];
- y2 = out[3];
- }
- ctx.bezierCurveTo(
- cpx1, cpy1,
- cpx2, cpy2,
- x2, y2
- );
- }
- },
-
- /**
- * Get point at percent
- * @param {number} percent
- * @return {Array.<number>}
- */
- pointAt: function (p) {
- var shape = this.shape;
- var cpx2 = shape.cpx2;
- var cpy2 = shape.cpy2;
- if (cpx2 === null || cpy2 === null) {
- return [
- quadraticAt(shape.x1, shape.cpx1, shape.x2, p),
- quadraticAt(shape.y1, shape.cpy1, shape.y2, p)
- ];
- }
- else {
- return [
- cubicAt(shape.x1, shape.cpx1, shape.cpx1, shape.x2, p),
- cubicAt(shape.y1, shape.cpy1, shape.cpy1, shape.y2, p)
- ];
- }
- }
- });
-
-
-
-/***/ },
-/* 74 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * 圆弧
- * @module zrender/graphic/shape/Arc
- */
-
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'arc',
-
- shape: {
-
- cx: 0,
-
- cy: 0,
-
- r: 0,
-
- startAngle: 0,
-
- endAngle: Math.PI * 2,
-
- clockwise: true
- },
-
- style: {
-
- stroke: '#000',
-
- fill: null
- },
-
- buildPath: function (ctx, shape) {
-
- var x = shape.cx;
- var y = shape.cy;
- var r = Math.max(shape.r, 0);
- var startAngle = shape.startAngle;
- var endAngle = shape.endAngle;
- var clockwise = shape.clockwise;
-
- var unitX = Math.cos(startAngle);
- var unitY = Math.sin(startAngle);
-
- ctx.moveTo(unitX * r + x, unitY * r + y);
- ctx.arc(x, y, r, startAngle, endAngle, !clockwise);
- }
- });
-
-
-/***/ },
-/* 75 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
-
- var Gradient = __webpack_require__(4);
-
- /**
- * x, y, x2, y2 are all percent from 0 to 1
- * @param {number} [x=0]
- * @param {number} [y=0]
- * @param {number} [x2=1]
- * @param {number} [y2=0]
- * @param {Array.<Object>} colorStops
- */
- var LinearGradient = function (x, y, x2, y2, colorStops) {
- this.x = x == null ? 0 : x;
-
- this.y = y == null ? 0 : y;
-
- this.x2 = x2 == null ? 1 : x2;
-
- this.y2 = y2 == null ? 0 : y2;
-
- Gradient.call(this, colorStops);
- };
-
- LinearGradient.prototype = {
-
- constructor: LinearGradient,
-
- type: 'linear',
-
- updateCanvasGradient: function (shape, ctx) {
- var rect = shape.getBoundingRect();
- // var size =
- var x = this.x * rect.width + rect.x;
- var x2 = this.x2 * rect.width + rect.x;
- var y = this.y * rect.height + rect.y;
- var y2 = this.y2 * rect.height + rect.y;
-
- var canvasGradient = ctx.createLinearGradient(x, y, x2, y2);
-
- var colorStops = this.colorStops;
- for (var i = 0; i < colorStops.length; i++) {
- canvasGradient.addColorStop(
- colorStops[i].offset, colorStops[i].color
- );
- }
-
- this.canvasGradient = canvasGradient;
- }
-
- };
-
- zrUtil.inherits(LinearGradient, Gradient);
-
- module.exports = LinearGradient;
-
-
-/***/ },
-/* 76 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
-
- var Gradient = __webpack_require__(4);
-
- /**
- * x, y, r are all percent from 0 to 1
- * @param {number} [x=0.5]
- * @param {number} [y=0.5]
- * @param {number} [r=0.5]
- * @param {Array.<Object>} [colorStops]
- */
- var RadialGradient = function (x, y, r, colorStops) {
- this.x = x == null ? 0.5 : x;
-
- this.y = y == null ? 0.5 : y;
-
- this.r = r == null ? 0.5 : r;
-
- Gradient.call(this, colorStops);
- };
-
- RadialGradient.prototype = {
-
- constructor: RadialGradient,
-
- type: 'radial',
-
- updateCanvasGradient: function (shape, ctx) {
- var rect = shape.getBoundingRect();
-
- var width = rect.width;
- var height = rect.height;
- var min = Math.min(width, height);
- // var max = Math.max(width, height);
-
- var x = this.x * width + rect.x;
- var y = this.y * height + rect.y;
- var r = this.r * min;
-
- var canvasGradient = ctx.createRadialGradient(x, y, 0, x, y, r);
-
- var colorStops = this.colorStops;
- for (var i = 0; i < colorStops.length; i++) {
- canvasGradient.addColorStop(
- colorStops[i].offset, colorStops[i].color
- );
- }
-
- this.canvasGradient = canvasGradient;
- }
- };
-
- zrUtil.inherits(RadialGradient, Gradient);
-
- module.exports = RadialGradient;
-
-
-/***/ },
-/* 77 */
-/***/ function(module, exports, __webpack_require__) {
-
- /*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */
- // Global defines
-
- var guid = __webpack_require__(31);
- var env = __webpack_require__(78);
-
- var Handler = __webpack_require__(79);
- var Storage = __webpack_require__(83);
- var Animation = __webpack_require__(84);
-
- var useVML = !env.canvasSupported;
-
- var painterCtors = {
- canvas: __webpack_require__(85)
- };
-
- var instances = {}; // ZRender实例map索引
-
- var zrender = {};
- /**
- * @type {string}
- */
- zrender.version = '3.0.6';
-
- /**
- * @param {HTMLElement} dom
- * @param {Object} opts
- * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg'
- * @param {number} [opts.devicePixelRatio]
- * @return {module:zrender/ZRender}
- */
- zrender.init = function(dom, opts) {
- var zr = new ZRender(guid(), dom, opts);
- instances[zr.id] = zr;
- return zr;
- };
-
- /**
- * Dispose zrender instance
- * @param {module:zrender/ZRender} zr
- */
- zrender.dispose = function (zr) {
- if (zr) {
- zr.dispose();
- }
- else {
- for (var key in instances) {
- instances[key].dispose();
- }
- instances = {};
- }
-
- return zrender;
- };
-
- /**
- * 获取zrender实例
- * @param {string} id ZRender对象索引
- * @return {module:zrender/ZRender}
- */
- zrender.getInstance = function (id) {
- return instances[id];
- };
-
- zrender.registerPainter = function (name, Ctor) {
- painterCtors[name] = Ctor;
- };
-
- function delInstance(id) {
- delete instances[id];
- }
-
- /**
- * @module zrender/ZRender
- */
- /**
- * @constructor
- * @alias module:zrender/ZRender
- * @param {string} id
- * @param {HTMLDomElement} dom
- * @param {Object} opts
- * @param {string} [opts.renderer='canvas'] 'canvas' or 'svg'
- * @param {number} [opts.devicePixelRatio]
- */
- var ZRender = function(id, dom, opts) {
-
- opts = opts || {};
-
- /**
- * @type {HTMLDomElement}
- */
- this.dom = dom;
-
- /**
- * @type {string}
- */
- this.id = id;
-
- var self = this;
- var storage = new Storage();
-
- var rendererType = opts.renderer;
- if (useVML) {
- if (!painterCtors.vml) {
- throw new Error('You need to require \'zrender/vml/vml\' to support IE8');
- }
- rendererType = 'vml';
- }
- else if (!rendererType || !painterCtors[rendererType]) {
- rendererType = 'canvas';
- }
- var painter = new painterCtors[rendererType](dom, storage, opts);
-
- this.storage = storage;
- this.painter = painter;
- if (!env.node) {
- this.handler = new Handler(painter.getViewportRoot(), storage, painter);
- }
-
- /**
- * @type {module:zrender/animation/Animation}
- */
- this.animation = new Animation({
- stage: {
- update: function () {
- if (self._needsRefresh) {
- self.refreshImmediately();
- }
- }
- }
- });
- this.animation.start();
-
- /**
- * @type {boolean}
- * @private
- */
- this._needsRefresh;
-
- // 修改 storage.delFromMap, 每次删除元素之前删除动画
- // FIXME 有点ugly
- var oldDelFromMap = storage.delFromMap;
- var oldAddToMap = storage.addToMap;
-
- storage.delFromMap = function (elId) {
- var el = storage.get(elId);
-
- oldDelFromMap.call(storage, elId);
-
- el && el.removeSelfFromZr(self);
- };
-
- storage.addToMap = function (el) {
- oldAddToMap.call(storage, el);
-
- el.addSelfToZr(self);
- };
- };
-
- ZRender.prototype = {
-
- constructor: ZRender,
- /**
- * 获取实例唯一标识
- * @return {string}
- */
- getId: function () {
- return this.id;
- },
-
- /**
- * 添加元素
- * @param {string|module:zrender/Element} el
- */
- add: function (el) {
- this.storage.addRoot(el);
- this._needsRefresh = true;
- },
-
- /**
- * 删除元素
- * @param {string|module:zrender/Element} el
- */
- remove: function (el) {
- this.storage.delRoot(el);
- this._needsRefresh = true;
- },
-
- /**
- * 修改指定zlevel的绘制配置项
- *
- * @param {string} zLevel
- * @param {Object} config 配置对象
- * @param {string} [config.clearColor=0] 每次清空画布的颜色
- * @param {string} [config.motionBlur=false] 是否开启动态模糊
- * @param {number} [config.lastFrameAlpha=0.7]
- * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显
- */
- configLayer: function (zLevel, config) {
- this.painter.configLayer(zLevel, config);
- this._needsRefresh = true;
- },
-
- /**
- * 视图更新
- */
- refreshImmediately: function () {
- // Clear needsRefresh ahead to avoid something wrong happens in refresh
- // Or it will cause zrender refreshes again and again.
- this._needsRefresh = false;
- this.painter.refresh();
- /**
- * Avoid trigger zr.refresh in Element#beforeUpdate hook
- */
- this._needsRefresh = false;
- },
-
- /**
- * 标记视图在浏览器下一帧需要绘制
- */
- refresh: function() {
- this._needsRefresh = true;
- },
-
- /**
- * 调整视图大小
- */
- resize: function() {
- this.painter.resize();
- this.handler && this.handler.resize();
- },
-
- /**
- * 停止所有动画
- */
- clearAnimation: function () {
- this.animation.clear();
- },
-
- /**
- * 获取视图宽度
- */
- getWidth: function() {
- return this.painter.getWidth();
- },
-
- /**
- * 获取视图高度
- */
- getHeight: function() {
- return this.painter.getHeight();
- },
-
- /**
- * 图像导出
- * @param {string} type
- * @param {string} [backgroundColor='#fff'] 背景色
- * @return {string} 图片的Base64 url
- */
- toDataURL: function(type, backgroundColor, args) {
- return this.painter.toDataURL(type, backgroundColor, args);
- },
-
- /**
- * 将常规shape转成image shape
- * @param {module:zrender/graphic/Path} e
- * @param {number} width
- * @param {number} height
- */
- pathToImage: function(e, width, height) {
- var id = guid();
- return this.painter.pathToImage(id, e, width, height);
- },
-
- /**
- * 设置默认的cursor style
- * @param {string} cursorStyle 例如 crosshair
- */
- setDefaultCursorStyle: function (cursorStyle) {
- this.handler.setDefaultCursorStyle(cursorStyle);
- },
-
- /**
- * 事件绑定
- *
- * @param {string} eventName 事件名称
- * @param {Function} eventHandler 响应函数
- * @param {Object} [context] 响应函数
- */
- on: function(eventName, eventHandler, context) {
- this.handler && this.handler.on(eventName, eventHandler, context);
- },
-
- /**
- * 事件解绑定,参数为空则解绑所有自定义事件
- *
- * @param {string} eventName 事件名称
- * @param {Function} eventHandler 响应函数
- */
- off: function(eventName, eventHandler) {
- this.handler && this.handler.off(eventName, eventHandler);
- },
-
- /**
- * 事件触发
- *
- * @param {string} eventName 事件名称,resize,hover,drag,etc
- * @param {event=} event event dom事件对象
- */
- trigger: function (eventName, event) {
- this.handler && this.handler.trigger(eventName, event);
- },
-
-
- /**
- * 清除当前ZRender下所有类图的数据和显示,clear后MVC和已绑定事件均还存在在,ZRender可用
- */
- clear: function () {
- this.storage.delRoot();
- this.painter.clear();
- },
-
- /**
- * 释放当前ZR实例(删除包括dom,数据、显示和事件绑定),dispose后ZR不可用
- */
- dispose: function () {
- this.animation.stop();
-
- this.clear();
- this.storage.dispose();
- this.painter.dispose();
- this.handler && this.handler.dispose();
-
- this.animation =
- this.storage =
- this.painter =
- this.handler = null;
-
- delInstance(this.id);
- }
- };
-
- module.exports = zrender;
-
-
-
-/***/ },
-/* 78 */
-/***/ function(module, exports) {
-
- /**
- * echarts设备环境识别
- *
- * @desc echarts基于Canvas,纯Javascript图表库,提供直观,生动,可交互,可个性化定制的数据统计图表。
- * @author firede[firede@firede.us]
- * @desc thanks zepto.
- */
-
- var env = {};
- if (typeof navigator === 'undefined') {
- // In node
- env = {
- browser: {},
- os: {},
- node: true,
- // Assume canvas is supported
- canvasSupported: true
- };
- }
- else {
- env = detect(navigator.userAgent);
- }
-
- module.exports = env;
-
- // Zepto.js
- // (c) 2010-2013 Thomas Fuchs
- // Zepto.js may be freely distributed under the MIT license.
-
- function detect(ua) {
- var os = {};
- var browser = {};
- var webkit = ua.match(/Web[kK]it[\/]{0,1}([\d.]+)/);
- var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/);
- var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
- var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
- var iphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/);
- var webos = ua.match(/(webOS|hpwOS)[\s\/]([\d.]+)/);
- var touchpad = webos && ua.match(/TouchPad/);
- var kindle = ua.match(/Kindle\/([\d.]+)/);
- var silk = ua.match(/Silk\/([\d._]+)/);
- var blackberry = ua.match(/(BlackBerry).*Version\/([\d.]+)/);
- var bb10 = ua.match(/(BB10).*Version\/([\d.]+)/);
- var rimtabletos = ua.match(/(RIM\sTablet\sOS)\s([\d.]+)/);
- var playbook = ua.match(/PlayBook/);
- var chrome = ua.match(/Chrome\/([\d.]+)/) || ua.match(/CriOS\/([\d.]+)/);
- var firefox = ua.match(/Firefox\/([\d.]+)/);
- var safari = webkit && ua.match(/Mobile\//) && !chrome;
- var webview = ua.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/) && !chrome;
- var ie = ua.match(/MSIE\s([\d.]+)/)
- // IE 11 Trident/7.0; rv:11.0
- || ua.match(/Trident\/.+?rv:(([\d.]+))/);
- var edge = ua.match(/Edge\/([\d.]+)/); // IE 12 and 12+
-
- // Todo: clean this up with a better OS/browser seperation:
- // - discern (more) between multiple browsers on android
- // - decide if kindle fire in silk mode is android or not
- // - Firefox on Android doesn't specify the Android version
- // - possibly devide in os, device and browser hashes
-
- if (browser.webkit = !!webkit) browser.version = webkit[1];
-
- if (android) os.android = true, os.version = android[2];
- if (iphone && !ipod) os.ios = os.iphone = true, os.version = iphone[2].replace(/_/g, '.');
- if (ipad) os.ios = os.ipad = true, os.version = ipad[2].replace(/_/g, '.');
- if (ipod) os.ios = os.ipod = true, os.version = ipod[3] ? ipod[3].replace(/_/g, '.') : null;
- if (webos) os.webos = true, os.version = webos[2];
- if (touchpad) os.touchpad = true;
- if (blackberry) os.blackberry = true, os.version = blackberry[2];
- if (bb10) os.bb10 = true, os.version = bb10[2];
- if (rimtabletos) os.rimtabletos = true, os.version = rimtabletos[2];
- if (playbook) browser.playbook = true;
- if (kindle) os.kindle = true, os.version = kindle[1];
- if (silk) browser.silk = true, browser.version = silk[1];
- if (!silk && os.android && ua.match(/Kindle Fire/)) browser.silk = true;
- if (chrome) browser.chrome = true, browser.version = chrome[1];
- if (firefox) browser.firefox = true, browser.version = firefox[1];
- if (ie) browser.ie = true, browser.version = ie[1];
- if (safari && (ua.match(/Safari/) || !!os.ios)) browser.safari = true;
- if (webview) browser.webview = true;
- if (ie) browser.ie = true, browser.version = ie[1];
- if (edge) browser.edge = true, browser.version = edge[1];
-
- os.tablet = !!(ipad || playbook || (android && !ua.match(/Mobile/)) ||
- (firefox && ua.match(/Tablet/)) || (ie && !ua.match(/Phone/) && ua.match(/Touch/)));
- os.phone = !!(!os.tablet && !os.ipod && (android || iphone || webos || blackberry || bb10 ||
- (chrome && ua.match(/Android/)) || (chrome && ua.match(/CriOS\/([\d.]+)/)) ||
- (firefox && ua.match(/Mobile/)) || (ie && ua.match(/Touch/))));
-
- return {
- browser: browser,
- os: os,
- node: false,
- // 原生canvas支持,改极端点了
- // canvasSupported : !(browser.ie && parseFloat(browser.version) < 9)
- canvasSupported : document.createElement('canvas').getContext ? true : false,
- // @see <http://stackoverflow.com/questions/4817029/whats-the-best-way-to-detect-a-touch-screen-device-using-javascript>
- // works on most browsers
- // IE10/11 does not support touch event, and MS Edge supports them but not by
- // default, so we dont check navigator.maxTouchPoints for them here.
- touchEventsSupported: 'ontouchstart' in window && !browser.ie && !browser.edge,
- // <http://caniuse.com/#search=pointer%20event>.
- pointerEventsSupported: 'onpointerdown' in window
- // Firefox supports pointer but not by default,
- // only MS browsers are reliable on pointer events currently.
- && (browser.edge || (browser.ie && browser.version >= 10))
- };
- }
-
-
-/***/ },
-/* 79 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Handler控制模块
- * @module zrender/Handler
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * errorrik (errorrik@gmail.com)
- * pissang (shenyi.914@gmail.com)
- */
-
-
- var env = __webpack_require__(78);
- var eventTool = __webpack_require__(80);
- var util = __webpack_require__(3);
- var Draggable = __webpack_require__(81);
- var GestureMgr = __webpack_require__(82);
-
- var Eventful = __webpack_require__(32);
-
- var mouseHandlerNames = [
- 'click', 'dblclick', 'mousewheel', 'mouseout'
- ];
- !usePointerEvent() && mouseHandlerNames.push(
- 'mouseup', 'mousedown', 'mousemove'
- );
-
- var touchHandlerNames = [
- 'touchstart', 'touchend', 'touchmove'
- ];
-
- var pointerHandlerNames = [
- 'pointerdown', 'pointerup', 'pointermove'
- ];
-
- var TOUCH_CLICK_DELAY = 300;
-
- // touch指尖错觉的尝试偏移量配置
- // var MOBILE_TOUCH_OFFSETS = [
- // { x: 10 },
- // { x: -20 },
- // { x: 10, y: 10 },
- // { y: -20 }
- // ];
-
- var addEventListener = eventTool.addEventListener;
- var removeEventListener = eventTool.removeEventListener;
- var normalizeEvent = eventTool.normalizeEvent;
-
- function makeEventPacket(eveType, target, event) {
- return {
- type: eveType,
- event: event,
- target: target,
- cancelBubble: false,
- offsetX: event.zrX,
- offsetY: event.zrY,
- gestureEvent: event.gestureEvent,
- pinchX: event.pinchX,
- pinchY: event.pinchY,
- pinchScale: event.pinchScale,
- wheelDelta: event.zrDelta
- };
- }
-
- var domHandlers = {
- /**
- * Mouse move handler
- * @inner
- * @param {Event} event
- */
- mousemove: function (event) {
- event = normalizeEvent(this.root, event);
-
- var x = event.zrX;
- var y = event.zrY;
-
- var hovered = this.findHover(x, y, null);
- var lastHovered = this._hovered;
-
- this._hovered = hovered;
-
- this.root.style.cursor = hovered ? hovered.cursor : this._defaultCursorStyle;
- // Mouse out on previous hovered element
- if (lastHovered && hovered !== lastHovered && lastHovered.__zr) {
- this._dispatchProxy(lastHovered, 'mouseout', event);
- }
-
- // Mouse moving on one element
- this._dispatchProxy(hovered, 'mousemove', event);
-
- // Mouse over on a new element
- if (hovered && hovered !== lastHovered) {
- this._dispatchProxy(hovered, 'mouseover', event);
- }
- },
-
- /**
- * Mouse out handler
- * @inner
- * @param {Event} event
- */
- mouseout: function (event) {
- event = normalizeEvent(this.root, event);
-
- var element = event.toElement || event.relatedTarget;
- if (element != this.root) {
- while (element && element.nodeType != 9) {
- // 忽略包含在root中的dom引起的mouseOut
- if (element === this.root) {
- return;
- }
-
- element = element.parentNode;
- }
- }
-
- this._dispatchProxy(this._hovered, 'mouseout', event);
-
- this.trigger('globalout', {
- event: event
- });
- },
-
- /**
- * Touch开始响应函数
- * @inner
- * @param {Event} event
- */
- touchstart: function (event) {
- // FIXME
- // 移动端可能需要default行为,例如静态图表时。
- // eventTool.stop(event);// 阻止浏览器默认事件,重要
- event = normalizeEvent(this.root, event);
-
- this._lastTouchMoment = new Date();
-
- processGesture(this, event, 'start');
-
- // 平板补充一次findHover
- // this._mobileFindFixed(event);
- // Trigger mousemove and mousedown
- domHandlers.mousemove.call(this, event);
-
- domHandlers.mousedown.call(this, event);
-
- setTouchTimer(this);
- },
-
- /**
- * Touch移动响应函数
- * @inner
- * @param {Event} event
- */
- touchmove: function (event) {
- // eventTool.stop(event);// 阻止浏览器默认事件,重要
- event = normalizeEvent(this.root, event);
-
- processGesture(this, event, 'change');
-
- // Mouse move should always be triggered no matter whether
- // there is gestrue event, because mouse move and pinch may
- // be used at the same time.
- domHandlers.mousemove.call(this, event);
-
- setTouchTimer(this);
- },
-
- /**
- * Touch结束响应函数
- * @inner
- * @param {Event} event
- */
- touchend: function (event) {
- // eventTool.stop(event);// 阻止浏览器默认事件,重要
- event = normalizeEvent(this.root, event);
-
- processGesture(this, event, 'end');
-
- domHandlers.mouseup.call(this, event);
-
- // click event should always be triggered no matter whether
- // there is gestrue event. System click can not be prevented.
- if (+new Date() - this._lastTouchMoment < TOUCH_CLICK_DELAY) {
- // this._mobileFindFixed(event);
- domHandlers.click.call(this, event);
- }
-
- setTouchTimer(this);
- }
- };
-
- // Common handlers
- util.each(['click', 'mousedown', 'mouseup', 'mousewheel', 'dblclick'], function (name) {
- domHandlers[name] = function (event) {
- event = normalizeEvent(this.root, event);
- // Find hover again to avoid click event is dispatched manually. Or click is triggered without mouseover
- var hovered = this.findHover(event.zrX, event.zrY, null);
- this._dispatchProxy(hovered, name, event);
- };
- });
-
- // Pointer event handlers
- // util.each(['pointerdown', 'pointermove', 'pointerup'], function (name) {
- // domHandlers[name] = function (event) {
- // var mouseName = name.replace('pointer', 'mouse');
- // domHandlers[mouseName].call(this, event);
- // };
- // });
-
- function processGesture(zrHandler, event, stage) {
- var gestureMgr = zrHandler._gestureMgr;
-
- stage === 'start' && gestureMgr.clear();
-
- var gestureInfo = gestureMgr.recognize(
- event,
- zrHandler.findHover(event.zrX, event.zrY, null)
- );
-
- stage === 'end' && gestureMgr.clear();
-
- if (gestureInfo) {
- // eventTool.stop(event);
- var type = gestureInfo.type;
- event.gestureEvent = type;
-
- zrHandler._dispatchProxy(gestureInfo.target, type, gestureInfo.event);
- }
- }
-
- /**
- * 为控制类实例初始化dom 事件处理函数
- *
- * @inner
- * @param {module:zrender/Handler} instance 控制类实例
- */
- function initDomHandler(instance) {
- var handlerNames = touchHandlerNames.concat(pointerHandlerNames);
- for (var i = 0; i < handlerNames.length; i++) {
- var name = handlerNames[i];
- instance._handlers[name] = util.bind(domHandlers[name], instance);
- }
-
- for (var i = 0; i < mouseHandlerNames.length; i++) {
- var name = mouseHandlerNames[i];
- instance._handlers[name] = makeMouseHandler(domHandlers[name], instance);
- }
-
- function makeMouseHandler(fn, instance) {
- return function () {
- if (instance._touching) {
- return;
- }
- return fn.apply(instance, arguments);
- };
- }
- }
-
- /**
- * @alias module:zrender/Handler
- * @constructor
- * @extends module:zrender/mixin/Eventful
- * @param {HTMLElement} root Main HTML element for painting.
- * @param {module:zrender/Storage} storage Storage instance.
- * @param {module:zrender/Painter} painter Painter instance.
- */
- var Handler = function(root, storage, painter) {
- Eventful.call(this);
-
- this.root = root;
- this.storage = storage;
- this.painter = painter;
-
- /**
- * @private
- * @type {boolean}
- */
- this._hovered;
-
- /**
- * @private
- * @type {Date}
- */
- this._lastTouchMoment;
-
- /**
- * @private
- * @type {number}
- */
- this._lastX;
-
- /**
- * @private
- * @type {number}
- */
- this._lastY;
-
- /**
- * @private
- * @type {string}
- */
- this._defaultCursorStyle = 'default';
-
- /**
- * @private
- * @type {module:zrender/core/GestureMgr}
- */
- this._gestureMgr = new GestureMgr();
-
- /**
- * @private
- * @type {Array.<Function>}
- */
- this._handlers = [];
-
- /**
- * @private
- * @type {boolean}
- */
- this._touching = false;
-
- /**
- * @private
- * @type {number}
- */
- this._touchTimer;
-
- initDomHandler(this);
-
- if (usePointerEvent()) {
- mountHandlers(pointerHandlerNames, this);
- }
- else if (useTouchEvent()) {
- mountHandlers(touchHandlerNames, this);
-
- // Handler of 'mouseout' event is needed in touch mode, which will be mounted below.
- // addEventListener(root, 'mouseout', this._mouseoutHandler);
- }
-
- // Considering some devices that both enable touch and mouse event (like MS Surface
- // and lenovo X240, @see #2350), we make mouse event be always listened, otherwise
- // mouse event can not be handle in those devices.
- mountHandlers(mouseHandlerNames, this);
-
- Draggable.call(this);
-
- function mountHandlers(handlerNames, instance) {
- util.each(handlerNames, function (name) {
- addEventListener(root, eventNameFix(name), instance._handlers[name]);
- }, instance);
- }
- };
-
- Handler.prototype = {
-
- constructor: Handler,
-
- /**
- * Resize
- */
- resize: function (event) {
- this._hovered = null;
- },
-
- /**
- * Dispatch event
- * @param {string} eventName
- * @param {event=} eventArgs
- */
- dispatch: function (eventName, eventArgs) {
- var handler = this._handlers[eventName];
- handler && handler.call(this, eventArgs);
- },
-
- /**
- * Dispose
- */
- dispose: function () {
- var root = this.root;
-
- var handlerNames = mouseHandlerNames.concat(touchHandlerNames);
-
- for (var i = 0; i < handlerNames.length; i++) {
- var name = handlerNames[i];
- removeEventListener(root, eventNameFix(name), this._handlers[name]);
- }
-
- this.root =
- this.storage =
- this.painter = null;
- },
-
- /**
- * 设置默认的cursor style
- * @param {string} cursorStyle 例如 crosshair
- */
- setDefaultCursorStyle: function (cursorStyle) {
- this._defaultCursorStyle = cursorStyle;
- },
-
- /**
- * 事件分发代理
- *
- * @private
- * @param {Object} targetEl 目标图形元素
- * @param {string} eventName 事件名称
- * @param {Object} event 事件对象
- */
- _dispatchProxy: function (targetEl, eventName, event) {
- var eventHandler = 'on' + eventName;
- var eventPacket = makeEventPacket(eventName, targetEl, event);
-
- var el = targetEl;
-
- while (el) {
- el[eventHandler]
- && (eventPacket.cancelBubble = el[eventHandler].call(el, eventPacket));
-
- el.trigger(eventName, eventPacket);
-
- el = el.parent;
-
- if (eventPacket.cancelBubble) {
- break;
- }
- }
-
- if (!eventPacket.cancelBubble) {
- // 冒泡到顶级 zrender 对象
- this.trigger(eventName, eventPacket);
- // 分发事件到用户自定义层
- // 用户有可能在全局 click 事件中 dispose,所以需要判断下 painter 是否存在
- this.painter && this.painter.eachOtherLayer(function (layer) {
- if (typeof(layer[eventHandler]) == 'function') {
- layer[eventHandler].call(layer, eventPacket);
- }
- if (layer.trigger) {
- layer.trigger(eventName, eventPacket);
- }
- });
- }
- },
-
- /**
- * @private
- * @param {number} x
- * @param {number} y
- * @param {module:zrender/graphic/Displayable} exclude
- * @method
- */
- findHover: function(x, y, exclude) {
- var list = this.storage.getDisplayList();
- for (var i = list.length - 1; i >= 0 ; i--) {
- if (!list[i].silent
- && list[i] !== exclude
- // getDisplayList may include ignored item in VML mode
- && !list[i].ignore
- && isHover(list[i], x, y)) {
- return list[i];
- }
- }
- }
- };
-
- function isHover(displayable, x, y) {
- if (displayable[displayable.rectHover ? 'rectContain' : 'contain'](x, y)) {
- var p = displayable.parent;
- while (p) {
- if (p.clipPath && !p.clipPath.contain(x, y)) {
- // Clipped by parents
- return false;
- }
- p = p.parent;
- }
- return true;
- }
-
- return false;
- }
-
- /**
- * Prevent mouse event from being dispatched after Touch Events action
- * @see <https://github.com/deltakosh/handjs/blob/master/src/hand.base.js>
- * 1. Mobile browsers dispatch mouse events 300ms after touchend.
- * 2. Chrome for Android dispatch mousedown for long-touch about 650ms
- * Result: Blocking Mouse Events for 700ms.
- */
- function setTouchTimer(instance) {
- instance._touching = true;
- clearTimeout(instance._touchTimer);
- instance._touchTimer = setTimeout(function () {
- instance._touching = false;
- }, 700);
- }
-
- /**
- * Althought MS Surface support screen touch, IE10/11 do not support
- * touch event and MS Edge supported them but not by default (but chrome
- * and firefox do). Thus we use Pointer event on MS browsers to handle touch.
- */
- function usePointerEvent() {
- // TODO
- // pointermove event dont trigger when using finger.
- // We may figger it out latter.
- return false;
- // return env.pointerEventsSupported
- // In no-touch device we dont use pointer evnets but just
- // use mouse event for avoiding problems.
- // && window.navigator.maxTouchPoints;
- }
-
- function useTouchEvent() {
- return env.touchEventsSupported;
- }
-
- function eventNameFix(name) {
- return (name === 'mousewheel' && env.browser.firefox) ? 'DOMMouseScroll' : name;
- }
-
- util.mixin(Handler, Eventful);
- util.mixin(Handler, Draggable);
-
- module.exports = Handler;
-
-
-/***/ },
-/* 80 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 事件辅助类
- * @module zrender/core/event
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- */
-
-
- var Eventful = __webpack_require__(32);
-
- var isDomLevel2 = (typeof window !== 'undefined') && !!window.addEventListener;
-
- function getBoundingClientRect(el) {
- // BlackBerry 5, iOS 3 (original iPhone) don't have getBoundingRect
- return el.getBoundingClientRect ? el.getBoundingClientRect() : { left: 0, top: 0};
- }
- /**
- * 如果存在第三方嵌入的一些dom触发的事件,或touch事件,需要转换一下事件坐标
- */
- function normalizeEvent(el, e) {
-
- e = e || window.event;
-
- if (e.zrX != null) {
- return e;
- }
-
- var eventType = e.type;
- var isTouch = eventType && eventType.indexOf('touch') >= 0;
-
- if (!isTouch) {
- var box = getBoundingClientRect(el);
- e.zrX = e.clientX - box.left;
- e.zrY = e.clientY - box.top;
- e.zrDelta = (e.wheelDelta) ? e.wheelDelta / 120 : -(e.detail || 0) / 3;
- }
- else {
- var touch = eventType != 'touchend'
- ? e.targetTouches[0]
- : e.changedTouches[0];
- if (touch) {
- var rBounding = getBoundingClientRect(el);
- // touch事件坐标是全屏的~
- e.zrX = touch.clientX - rBounding.left;
- e.zrY = touch.clientY - rBounding.top;
- }
- }
-
- return e;
- }
-
- function addEventListener(el, name, handler) {
- if (isDomLevel2) {
- el.addEventListener(name, handler);
- }
- else {
- el.attachEvent('on' + name, handler);
- }
- }
-
- function removeEventListener(el, name, handler) {
- if (isDomLevel2) {
- el.removeEventListener(name, handler);
- }
- else {
- el.detachEvent('on' + name, handler);
- }
- }
-
- /**
- * 停止冒泡和阻止默认行为
- * @memberOf module:zrender/core/event
- * @method
- * @param {Event} e : event对象
- */
- var stop = isDomLevel2
- ? function (e) {
- e.preventDefault();
- e.stopPropagation();
- e.cancelBubble = true;
- }
- : function (e) {
- e.returnValue = false;
- e.cancelBubble = true;
- };
-
- module.exports = {
- normalizeEvent: normalizeEvent,
- addEventListener: addEventListener,
- removeEventListener: removeEventListener,
-
- stop: stop,
- // 做向上兼容
- Dispatcher: Eventful
- };
-
-
-
-/***/ },
-/* 81 */
-/***/ function(module, exports) {
-
- // TODO Draggable for group
- // FIXME Draggable on element which has parent rotation or scale
-
- function Draggable() {
-
- this.on('mousedown', this._dragStart, this);
- this.on('mousemove', this._drag, this);
- this.on('mouseup', this._dragEnd, this);
- this.on('globalout', this._dragEnd, this);
- // this._dropTarget = null;
- // this._draggingTarget = null;
-
- // this._x = 0;
- // this._y = 0;
- }
-
- Draggable.prototype = {
-
- constructor: Draggable,
-
- _dragStart: function (e) {
- var draggingTarget = e.target;
- if (draggingTarget && draggingTarget.draggable) {
- this._draggingTarget = draggingTarget;
- draggingTarget.dragging = true;
- this._x = e.offsetX;
- this._y = e.offsetY;
-
- this._dispatchProxy(draggingTarget, 'dragstart', e.event);
- }
- },
-
- _drag: function (e) {
- var draggingTarget = this._draggingTarget;
- if (draggingTarget) {
-
- var x = e.offsetX;
- var y = e.offsetY;
-
- var dx = x - this._x;
- var dy = y - this._y;
- this._x = x;
- this._y = y;
-
- draggingTarget.drift(dx, dy, e);
- this._dispatchProxy(draggingTarget, 'drag', e.event);
-
- var dropTarget = this.findHover(x, y, draggingTarget);
- var lastDropTarget = this._dropTarget;
- this._dropTarget = dropTarget;
-
- if (draggingTarget !== dropTarget) {
- if (lastDropTarget && dropTarget !== lastDropTarget) {
- this._dispatchProxy(lastDropTarget, 'dragleave', e.event);
- }
- if (dropTarget && dropTarget !== lastDropTarget) {
- this._dispatchProxy(dropTarget, 'dragenter', e.event);
- }
- }
- }
- },
-
- _dragEnd: function (e) {
- var draggingTarget = this._draggingTarget;
-
- if (draggingTarget) {
- draggingTarget.dragging = false;
- }
-
- this._dispatchProxy(draggingTarget, 'dragend', e.event);
-
- if (this._dropTarget) {
- this._dispatchProxy(this._dropTarget, 'drop', e.event);
- }
-
- this._draggingTarget = null;
- this._dropTarget = null;
- }
-
- };
-
- module.exports = Draggable;
-
-
-/***/ },
-/* 82 */
-/***/ function(module, exports) {
-
- 'use strict';
- /**
- * Only implements needed gestures for mobile.
- */
-
-
- var GestureMgr = function () {
-
- /**
- * @private
- * @type {Array.<Object>}
- */
- this._track = [];
- };
-
- GestureMgr.prototype = {
-
- constructor: GestureMgr,
-
- recognize: function (event, target) {
- this._doTrack(event, target);
- return this._recognize(event);
- },
-
- clear: function () {
- this._track.length = 0;
- return this;
- },
-
- _doTrack: function (event, target) {
- var touches = event.touches;
-
- if (!touches) {
- return;
- }
-
- var trackItem = {
- points: [],
- touches: [],
- target: target,
- event: event
- };
-
- for (var i = 0, len = touches.length; i < len; i++) {
- var touch = touches[i];
- trackItem.points.push([touch.clientX, touch.clientY]);
- trackItem.touches.push(touch);
- }
-
- this._track.push(trackItem);
- },
-
- _recognize: function (event) {
- for (var eventName in recognizers) {
- if (recognizers.hasOwnProperty(eventName)) {
- var gestureInfo = recognizers[eventName](this._track, event);
- if (gestureInfo) {
- return gestureInfo;
- }
- }
- }
- }
- };
-
- function dist(pointPair) {
- var dx = pointPair[1][0] - pointPair[0][0];
- var dy = pointPair[1][1] - pointPair[0][1];
-
- return Math.sqrt(dx * dx + dy * dy);
- }
-
- function center(pointPair) {
- return [
- (pointPair[0][0] + pointPair[1][0]) / 2,
- (pointPair[0][1] + pointPair[1][1]) / 2
- ];
- }
-
- var recognizers = {
-
- pinch: function (track, event) {
- var trackLen = track.length;
-
- if (!trackLen) {
- return;
- }
-
- var pinchEnd = (track[trackLen - 1] || {}).points;
- var pinchPre = (track[trackLen - 2] || {}).points || pinchEnd;
-
- if (pinchPre
- && pinchPre.length > 1
- && pinchEnd
- && pinchEnd.length > 1
- ) {
- var pinchScale = dist(pinchEnd) / dist(pinchPre);
- !isFinite(pinchScale) && (pinchScale = 1);
-
- event.pinchScale = pinchScale;
-
- var pinchCenter = center(pinchEnd);
- event.pinchX = pinchCenter[0];
- event.pinchY = pinchCenter[1];
-
- return {
- type: 'pinch',
- target: track[0].target,
- event: event
- };
- }
- }
-
- // Only pinch currently.
- };
-
- module.exports = GestureMgr;
-
-
-
-/***/ },
-/* 83 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Storage内容仓库模块
- * @module zrender/Storage
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * @author errorrik (errorrik@gmail.com)
- * @author pissang (https://github.com/pissang/)
- */
-
-
- var util = __webpack_require__(3);
-
- var Group = __webpack_require__(29);
-
- function shapeCompareFunc(a, b) {
- if (a.zlevel === b.zlevel) {
- if (a.z === b.z) {
- if (a.z2 === b.z2) {
- return a.__renderidx - b.__renderidx;
- }
- return a.z2 - b.z2;
- }
- return a.z - b.z;
- }
- return a.zlevel - b.zlevel;
- }
- /**
- * 内容仓库 (M)
- * @alias module:zrender/Storage
- * @constructor
- */
- var Storage = function () {
- // 所有常规形状,id索引的map
- this._elements = {};
-
- this._roots = [];
-
- this._displayList = [];
-
- this._displayListLen = 0;
- };
-
- Storage.prototype = {
-
- constructor: Storage,
-
- /**
- * 返回所有图形的绘制队列
- * @param {boolean} [update=false] 是否在返回前更新该数组
- * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组, 在 update 为 true 的时候有效
- *
- * 详见{@link module:zrender/graphic/Displayable.prototype.updateDisplayList}
- * @return {Array.<module:zrender/graphic/Displayable>}
- */
- getDisplayList: function (update, includeIgnore) {
- includeIgnore = includeIgnore || false;
- if (update) {
- this.updateDisplayList(includeIgnore);
- }
- return this._displayList;
- },
-
- /**
- * 更新图形的绘制队列。
- * 每次绘制前都会调用,该方法会先深度优先遍历整个树,更新所有Group和Shape的变换并且把所有可见的Shape保存到数组中,
- * 最后根据绘制的优先级(zlevel > z > 插入顺序)排序得到绘制队列
- * @param {boolean} [includeIgnore=false] 是否包含 ignore 的数组
- */
- updateDisplayList: function (includeIgnore) {
- this._displayListLen = 0;
- var roots = this._roots;
- var displayList = this._displayList;
- for (var i = 0, len = roots.length; i < len; i++) {
- this._updateAndAddDisplayable(roots[i], null, includeIgnore);
- }
- displayList.length = this._displayListLen;
-
- for (var i = 0, len = displayList.length; i < len; i++) {
- displayList[i].__renderidx = i;
- }
-
- displayList.sort(shapeCompareFunc);
- },
-
- _updateAndAddDisplayable: function (el, clipPaths, includeIgnore) {
-
- if (el.ignore && !includeIgnore) {
- return;
- }
-
- el.beforeUpdate();
-
- el.update();
-
- el.afterUpdate();
-
- var clipPath = el.clipPath;
- if (clipPath) {
- // clipPath 的变换是基于 group 的变换
- clipPath.parent = el;
- clipPath.updateTransform();
-
- // FIXME 效率影响
- if (clipPaths) {
- clipPaths = clipPaths.slice();
- clipPaths.push(clipPath);
- }
- else {
- clipPaths = [clipPath];
- }
- }
-
- if (el.type == 'group') {
- var children = el._children;
-
- for (var i = 0; i < children.length; i++) {
- var child = children[i];
-
- // Force to mark as dirty if group is dirty
- // FIXME __dirtyPath ?
- child.__dirty = el.__dirty || child.__dirty;
-
- this._updateAndAddDisplayable(child, clipPaths, includeIgnore);
- }
-
- // Mark group clean here
- el.__dirty = false;
-
- }
- else {
- el.__clipPaths = clipPaths;
-
- this._displayList[this._displayListLen++] = el;
- }
- },
-
- /**
- * 添加图形(Shape)或者组(Group)到根节点
- * @param {module:zrender/Element} el
- */
- addRoot: function (el) {
- // Element has been added
- if (this._elements[el.id]) {
- return;
- }
-
- if (el instanceof Group) {
- el.addChildrenToStorage(this);
- }
-
- this.addToMap(el);
- this._roots.push(el);
- },
-
- /**
- * 删除指定的图形(Shape)或者组(Group)
- * @param {string|Array.<string>} [elId] 如果为空清空整个Storage
- */
- delRoot: function (elId) {
- if (elId == null) {
- // 不指定elId清空
- for (var i = 0; i < this._roots.length; i++) {
- var root = this._roots[i];
- if (root instanceof Group) {
- root.delChildrenFromStorage(this);
- }
- }
-
- this._elements = {};
- this._roots = [];
- this._displayList = [];
- this._displayListLen = 0;
-
- return;
- }
-
- if (elId instanceof Array) {
- for (var i = 0, l = elId.length; i < l; i++) {
- this.delRoot(elId[i]);
- }
- return;
- }
-
- var el;
- if (typeof(elId) == 'string') {
- el = this._elements[elId];
- }
- else {
- el = elId;
- }
-
- var idx = util.indexOf(this._roots, el);
- if (idx >= 0) {
- this.delFromMap(el.id);
- this._roots.splice(idx, 1);
- if (el instanceof Group) {
- el.delChildrenFromStorage(this);
- }
- }
- },
-
- addToMap: function (el) {
- if (el instanceof Group) {
- el.__storage = this;
- }
- el.dirty();
-
- this._elements[el.id] = el;
-
- return this;
- },
-
- get: function (elId) {
- return this._elements[elId];
- },
-
- delFromMap: function (elId) {
- var elements = this._elements;
- var el = elements[elId];
- if (el) {
- delete elements[elId];
- if (el instanceof Group) {
- el.__storage = null;
- }
- }
-
- return this;
- },
-
- /**
- * 清空并且释放Storage
- */
- dispose: function () {
- this._elements =
- this._renderList =
- this._roots = null;
- }
- };
-
- module.exports = Storage;
-
-
-
-/***/ },
-/* 84 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * 动画主类, 调度和管理所有动画控制器
- *
- * @module zrender/animation/Animation
- * @author pissang(https://github.com/pissang)
- */
- // TODO Additive animation
- // http://iosoteric.com/additive-animations-animatewithduration-in-ios-8/
- // https://developer.apple.com/videos/wwdc2014/#236
-
-
- var util = __webpack_require__(3);
- var Dispatcher = __webpack_require__(80).Dispatcher;
-
- var requestAnimationFrame = (typeof window !== 'undefined' &&
- (window.requestAnimationFrame
- || window.msRequestAnimationFrame
- || window.mozRequestAnimationFrame
- || window.webkitRequestAnimationFrame))
- || function (func) {
- setTimeout(func, 16);
- };
-
- var Animator = __webpack_require__(35);
- /**
- * @typedef {Object} IZRenderStage
- * @property {Function} update
- */
-
- /**
- * @alias module:zrender/animation/Animation
- * @constructor
- * @param {Object} [options]
- * @param {Function} [options.onframe]
- * @param {IZRenderStage} [options.stage]
- * @example
- * var animation = new Animation();
- * var obj = {
- * x: 100,
- * y: 100
- * };
- * animation.animate(node.position)
- * .when(1000, {
- * x: 500,
- * y: 500
- * })
- * .when(2000, {
- * x: 100,
- * y: 100
- * })
- * .start('spline');
- */
- var Animation = function (options) {
-
- options = options || {};
-
- this.stage = options.stage || {};
-
- this.onframe = options.onframe || function() {};
-
- // private properties
- this._clips = [];
-
- this._running = false;
-
- this._time = 0;
-
- Dispatcher.call(this);
- };
-
- Animation.prototype = {
-
- constructor: Animation,
- /**
- * 添加 clip
- * @param {module:zrender/animation/Clip} clip
- */
- addClip: function (clip) {
- this._clips.push(clip);
- },
- /**
- * 添加 animator
- * @param {module:zrender/animation/Animator} animator
- */
- addAnimator: function (animator) {
- animator.animation = this;
- var clips = animator.getClips();
- for (var i = 0; i < clips.length; i++) {
- this.addClip(clips[i]);
- }
- },
- /**
- * 删除动画片段
- * @param {module:zrender/animation/Clip} clip
- */
- removeClip: function(clip) {
- var idx = util.indexOf(this._clips, clip);
- if (idx >= 0) {
- this._clips.splice(idx, 1);
- }
- },
-
- /**
- * 删除动画片段
- * @param {module:zrender/animation/Animator} animator
- */
- removeAnimator: function (animator) {
- var clips = animator.getClips();
- for (var i = 0; i < clips.length; i++) {
- this.removeClip(clips[i]);
- }
- animator.animation = null;
- },
-
- _update: function() {
-
- var time = new Date().getTime();
- var delta = time - this._time;
- var clips = this._clips;
- var len = clips.length;
-
- var deferredEvents = [];
- var deferredClips = [];
- for (var i = 0; i < len; i++) {
- var clip = clips[i];
- var e = clip.step(time);
- // Throw out the events need to be called after
- // stage.update, like destroy
- if (e) {
- deferredEvents.push(e);
- deferredClips.push(clip);
- }
- }
-
- // Remove the finished clip
- for (var i = 0; i < len;) {
- if (clips[i]._needsRemove) {
- clips[i] = clips[len - 1];
- clips.pop();
- len--;
- }
- else {
- i++;
- }
- }
-
- len = deferredEvents.length;
- for (var i = 0; i < len; i++) {
- deferredClips[i].fire(deferredEvents[i]);
- }
-
- this._time = time;
-
- this.onframe(delta);
-
- this.trigger('frame', delta);
-
- if (this.stage.update) {
- this.stage.update();
- }
- },
- /**
- * 开始运行动画
- */
- start: function () {
- var self = this;
-
- this._running = true;
-
- function step() {
- if (self._running) {
-
- requestAnimationFrame(step);
-
- self._update();
- }
- }
-
- this._time = new Date().getTime();
- requestAnimationFrame(step);
- },
- /**
- * 停止运行动画
- */
- stop: function () {
- this._running = false;
- },
- /**
- * 清除所有动画片段
- */
- clear: function () {
- this._clips = [];
- },
- /**
- * 对一个目标创建一个animator对象,可以指定目标中的属性使用动画
- * @param {Object} target
- * @param {Object} options
- * @param {boolean} [options.loop=false] 是否循环播放动画
- * @param {Function} [options.getter=null]
- * 如果指定getter函数,会通过getter函数取属性值
- * @param {Function} [options.setter=null]
- * 如果指定setter函数,会通过setter函数设置属性值
- * @return {module:zrender/animation/Animation~Animator}
- */
- animate: function (target, options) {
- options = options || {};
- var animator = new Animator(
- target,
- options.loop,
- options.getter,
- options.setter
- );
-
- return animator;
- }
- };
-
- util.mixin(Animation, Dispatcher);
-
- module.exports = Animation;
-
-
-
-/***/ },
-/* 85 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Default canvas painter
- * @module zrender/Painter
- * @author Kener (@Kener-林峰, kener.linfeng@gmail.com)
- * errorrik (errorrik@gmail.com)
- * pissang (https://www.github.com/pissang)
- */
-
-
- var config = __webpack_require__(40);
- var util = __webpack_require__(3);
- var log = __webpack_require__(39);
- var BoundingRect = __webpack_require__(15);
-
- var Layer = __webpack_require__(86);
-
- function parseInt10(val) {
- return parseInt(val, 10);
- }
-
- function isLayerValid(layer) {
- if (!layer) {
- return false;
- }
-
- if (layer.isBuildin) {
- return true;
- }
-
- if (typeof(layer.resize) !== 'function'
- || typeof(layer.refresh) !== 'function'
- ) {
- return false;
- }
-
- return true;
- }
-
- function preProcessLayer(layer) {
- layer.__unusedCount++;
- }
-
- function postProcessLayer(layer) {
- layer.__dirty = false;
- if (layer.__unusedCount == 1) {
- layer.clear();
- }
- }
-
- var tmpRect = new BoundingRect(0, 0, 0, 0);
- var viewRect = new BoundingRect(0, 0, 0, 0);
- function isDisplayableCulled(el, width, height) {
- tmpRect.copy(el.getBoundingRect());
- if (el.transform) {
- tmpRect.applyTransform(el.transform);
- }
- viewRect.width = width;
- viewRect.height = height;
- return !tmpRect.intersect(viewRect);
- }
-
- function isClipPathChanged(clipPaths, prevClipPaths) {
- if (!clipPaths || !prevClipPaths || (clipPaths.length !== prevClipPaths.length)) {
- return true;
- }
- for (var i = 0; i < clipPaths.length; i++) {
- if (clipPaths[i] !== prevClipPaths[i]) {
- return true;
- }
- }
- }
-
- function doClip(clipPaths, ctx) {
- for (var i = 0; i < clipPaths.length; i++) {
- var clipPath = clipPaths[i];
- var m;
- if (clipPath.transform) {
- m = clipPath.transform;
- ctx.transform(
- m[0], m[1],
- m[2], m[3],
- m[4], m[5]
- );
- }
- var path = clipPath.path;
- path.beginPath(ctx);
- clipPath.buildPath(path, clipPath.shape);
- ctx.clip();
- // Transform back
- if (clipPath.transform) {
- m = clipPath.invTransform;
- ctx.transform(
- m[0], m[1],
- m[2], m[3],
- m[4], m[5]
- );
- }
- }
- }
-
- /**
- * @alias module:zrender/Painter
- * @constructor
- * @param {HTMLElement} root 绘图容器
- * @param {module:zrender/Storage} storage
- * @param {Ojbect} opts
- */
- var Painter = function (root, storage, opts) {
- var singleCanvas = !root.nodeName // In node ?
- || root.nodeName.toUpperCase() === 'CANVAS';
-
- opts = opts || {};
-
- /**
- * @type {number}
- */
- this.dpr = opts.devicePixelRatio || config.devicePixelRatio;
- /**
- * @type {boolean}
- * @private
- */
- this._singleCanvas = singleCanvas;
- /**
- * 绘图容器
- * @type {HTMLElement}
- */
- this.root = root;
-
- var rootStyle = root.style;
-
- // In node environment using node-canvas
- if (rootStyle) {
- rootStyle['-webkit-tap-highlight-color'] = 'transparent';
- rootStyle['-webkit-user-select'] = 'none';
- rootStyle['user-select'] = 'none';
- rootStyle['-webkit-touch-callout'] = 'none';
-
- root.innerHTML = '';
- }
-
- /**
- * @type {module:zrender/Storage}
- */
- this.storage = storage;
-
- if (!singleCanvas) {
- var width = this._getWidth();
- var height = this._getHeight();
- this._width = width;
- this._height = height;
-
- var domRoot = document.createElement('div');
- this._domRoot = domRoot;
- var domRootStyle = domRoot.style;
-
- // domRoot.onselectstart = returnFalse; // 避免页面选中的尴尬
- domRootStyle.position = 'relative';
- domRootStyle.overflow = 'hidden';
- domRootStyle.width = this._width + 'px';
- domRootStyle.height = this._height + 'px';
- root.appendChild(domRoot);
-
- /**
- * @type {Object.<key, module:zrender/Layer>}
- * @private
- */
- this._layers = {};
- /**
- * @type {Array.<number>}
- * @private
- */
- this._zlevelList = [];
- }
- else {
- // Use canvas width and height directly
- var width = root.width;
- var height = root.height;
- this._width = width;
- this._height = height;
-
- // Create layer if only one given canvas
- // Device pixel ratio is fixed to 1 because given canvas has its specified width and height
- var mainLayer = new Layer(root, this, 1);
- mainLayer.initContext();
- // FIXME Use canvas width and height
- // mainLayer.resize(width, height);
- this._layers = {
- 0: mainLayer
- };
- this._zlevelList = [0];
- }
-
- this._layerConfig = {};
-
- this.pathToImage = this._createPathToImage();
- };
-
- Painter.prototype = {
-
- constructor: Painter,
-
- /**
- * If painter use a single canvas
- * @return {boolean}
- */
- isSingleCanvas: function () {
- return this._singleCanvas;
- },
- /**
- * @return {HTMLDivElement}
- */
- getViewportRoot: function () {
- return this._singleCanvas ? this._layers[0].dom : this._domRoot;
- },
-
- /**
- * 刷新
- * @param {boolean} [paintAll=false] 强制绘制所有displayable
- */
- refresh: function (paintAll) {
- var list = this.storage.getDisplayList(true);
- var zlevelList = this._zlevelList;
-
- this._paintList(list, paintAll);
-
- // Paint custum layers
- for (var i = 0; i < zlevelList.length; i++) {
- var z = zlevelList[i];
- var layer = this._layers[z];
- if (!layer.isBuildin && layer.refresh) {
- layer.refresh();
- }
- }
-
- return this;
- },
-
- _paintList: function (list, paintAll) {
-
- if (paintAll == null) {
- paintAll = false;
- }
-
- this._updateLayerStatus(list);
-
- var currentLayer;
- var currentZLevel;
- var ctx;
-
- var viewWidth = this._width;
- var viewHeight = this._height;
-
- this.eachBuildinLayer(preProcessLayer);
-
- // var invTransform = [];
- var prevElClipPaths = null;
-
- for (var i = 0, l = list.length; i < l; i++) {
- var el = list[i];
- var elZLevel = this._singleCanvas ? 0 : el.zlevel;
- // Change draw layer
- if (currentZLevel !== elZLevel) {
- // Only 0 zlevel if only has one canvas
- currentZLevel = elZLevel;
- currentLayer = this.getLayer(currentZLevel);
-
- if (!currentLayer.isBuildin) {
- log(
- 'ZLevel ' + currentZLevel
- + ' has been used by unkown layer ' + currentLayer.id
- );
- }
-
- ctx = currentLayer.ctx;
-
- // Reset the count
- currentLayer.__unusedCount = 0;
-
- if (currentLayer.__dirty || paintAll) {
- currentLayer.clear();
- }
- }
-
- if (
- (currentLayer.__dirty || paintAll)
- // Ignore invisible element
- && !el.invisible
- // Ignore transparent element
- && el.style.opacity !== 0
- // Ignore scale 0 element, in some environment like node-canvas
- // Draw a scale 0 element can cause all following draw wrong
- && el.scale[0] && el.scale[1]
- // Ignore culled element
- && !(el.culling && isDisplayableCulled(el, viewWidth, viewHeight))
- ) {
- var clipPaths = el.__clipPaths;
-
- // Optimize when clipping on group with several elements
- if (isClipPathChanged(clipPaths, prevElClipPaths)) {
- // If has previous clipping state, restore from it
- if (prevElClipPaths) {
- ctx.restore();
- }
- // New clipping state
- if (clipPaths) {
- ctx.save();
- doClip(clipPaths, ctx);
- }
- prevElClipPaths = clipPaths;
- }
- el.beforeBrush && el.beforeBrush(ctx);
- el.brush(ctx, false);
- el.afterBrush && el.afterBrush(ctx);
- }
-
- el.__dirty = false;
- }
-
- // If still has clipping state
- if (prevElClipPaths) {
- ctx.restore();
- }
-
- this.eachBuildinLayer(postProcessLayer);
- },
-
- /**
- * 获取 zlevel 所在层,如果不存在则会创建一个新的层
- * @param {number} zlevel
- * @return {module:zrender/Layer}
- */
- getLayer: function (zlevel) {
- if (this._singleCanvas) {
- return this._layers[0];
- }
-
- var layer = this._layers[zlevel];
- if (!layer) {
- // Create a new layer
- layer = new Layer('zr_' + zlevel, this, this.dpr);
- layer.isBuildin = true;
-
- if (this._layerConfig[zlevel]) {
- util.merge(layer, this._layerConfig[zlevel], true);
- }
-
- this.insertLayer(zlevel, layer);
-
- // Context is created after dom inserted to document
- // Or excanvas will get 0px clientWidth and clientHeight
- layer.initContext();
- }
-
- return layer;
- },
-
- insertLayer: function (zlevel, layer) {
-
- var layersMap = this._layers;
- var zlevelList = this._zlevelList;
- var len = zlevelList.length;
- var prevLayer = null;
- var i = -1;
- var domRoot = this._domRoot;
-
- if (layersMap[zlevel]) {
- log('ZLevel ' + zlevel + ' has been used already');
- return;
- }
- // Check if is a valid layer
- if (!isLayerValid(layer)) {
- log('Layer of zlevel ' + zlevel + ' is not valid');
- return;
- }
-
- if (len > 0 && zlevel > zlevelList[0]) {
- for (i = 0; i < len - 1; i++) {
- if (
- zlevelList[i] < zlevel
- && zlevelList[i + 1] > zlevel
- ) {
- break;
- }
- }
- prevLayer = layersMap[zlevelList[i]];
- }
- zlevelList.splice(i + 1, 0, zlevel);
-
- if (prevLayer) {
- var prevDom = prevLayer.dom;
- if (prevDom.nextSibling) {
- domRoot.insertBefore(
- layer.dom,
- prevDom.nextSibling
- );
- }
- else {
- domRoot.appendChild(layer.dom);
- }
- }
- else {
- if (domRoot.firstChild) {
- domRoot.insertBefore(layer.dom, domRoot.firstChild);
- }
- else {
- domRoot.appendChild(layer.dom);
- }
- }
-
- layersMap[zlevel] = layer;
- },
-
- // Iterate each layer
- eachLayer: function (cb, context) {
- var zlevelList = this._zlevelList;
- var z;
- var i;
- for (i = 0; i < zlevelList.length; i++) {
- z = zlevelList[i];
- cb.call(context, this._layers[z], z);
- }
- },
-
- // Iterate each buildin layer
- eachBuildinLayer: function (cb, context) {
- var zlevelList = this._zlevelList;
- var layer;
- var z;
- var i;
- for (i = 0; i < zlevelList.length; i++) {
- z = zlevelList[i];
- layer = this._layers[z];
- if (layer.isBuildin) {
- cb.call(context, layer, z);
- }
- }
- },
-
- // Iterate each other layer except buildin layer
- eachOtherLayer: function (cb, context) {
- var zlevelList = this._zlevelList;
- var layer;
- var z;
- var i;
- for (i = 0; i < zlevelList.length; i++) {
- z = zlevelList[i];
- layer = this._layers[z];
- if (! layer.isBuildin) {
- cb.call(context, layer, z);
- }
- }
- },
-
- /**
- * 获取所有已创建的层
- * @param {Array.<module:zrender/Layer>} [prevLayer]
- */
- getLayers: function () {
- return this._layers;
- },
-
- _updateLayerStatus: function (list) {
-
- var layers = this._layers;
-
- var elCounts = {};
-
- this.eachBuildinLayer(function (layer, z) {
- elCounts[z] = layer.elCount;
- layer.elCount = 0;
- });
-
- for (var i = 0, l = list.length; i < l; i++) {
- var el = list[i];
- var zlevel = this._singleCanvas ? 0 : el.zlevel;
- var layer = layers[zlevel];
- if (layer) {
- layer.elCount++;
- // 已经被标记为需要刷新
- if (layer.__dirty) {
- continue;
- }
- layer.__dirty = el.__dirty;
- }
- }
-
- // 层中的元素数量有发生变化
- this.eachBuildinLayer(function (layer, z) {
- if (elCounts[z] !== layer.elCount) {
- layer.__dirty = true;
- }
- });
- },
-
- /**
- * 清除hover层外所有内容
- */
- clear: function () {
- this.eachBuildinLayer(this._clearLayer);
- return this;
- },
-
- _clearLayer: function (layer) {
- layer.clear();
- },
-
- /**
- * 修改指定zlevel的绘制参数
- *
- * @param {string} zlevel
- * @param {Object} config 配置对象
- * @param {string} [config.clearColor=0] 每次清空画布的颜色
- * @param {string} [config.motionBlur=false] 是否开启动态模糊
- * @param {number} [config.lastFrameAlpha=0.7]
- * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显
- */
- configLayer: function (zlevel, config) {
- if (config) {
- var layerConfig = this._layerConfig;
- if (!layerConfig[zlevel]) {
- layerConfig[zlevel] = config;
- }
- else {
- util.merge(layerConfig[zlevel], config, true);
- }
-
- var layer = this._layers[zlevel];
-
- if (layer) {
- util.merge(layer, layerConfig[zlevel], true);
- }
- }
- },
-
- /**
- * 删除指定层
- * @param {number} zlevel 层所在的zlevel
- */
- delLayer: function (zlevel) {
- var layers = this._layers;
- var zlevelList = this._zlevelList;
- var layer = layers[zlevel];
- if (!layer) {
- return;
- }
- layer.dom.parentNode.removeChild(layer.dom);
- delete layers[zlevel];
-
- zlevelList.splice(util.indexOf(zlevelList, zlevel), 1);
- },
-
- /**
- * 区域大小变化后重绘
- */
- resize: function (width, height) {
- var domRoot = this._domRoot;
- // FIXME Why ?
- domRoot.style.display = 'none';
-
- width = width || this._getWidth();
- height = height || this._getHeight();
-
- domRoot.style.display = '';
-
- // 优化没有实际改变的resize
- if (this._width != width || height != this._height) {
- domRoot.style.width = width + 'px';
- domRoot.style.height = height + 'px';
-
- for (var id in this._layers) {
- this._layers[id].resize(width, height);
- }
-
- this.refresh(true);
- }
-
- this._width = width;
- this._height = height;
-
- return this;
- },
-
- /**
- * 清除单独的一个层
- * @param {number} zlevel
- */
- clearLayer: function (zlevel) {
- var layer = this._layers[zlevel];
- if (layer) {
- layer.clear();
- }
- },
-
- /**
- * 释放
- */
- dispose: function () {
- this.root.innerHTML = '';
-
- this.root =
- this.storage =
-
- this._domRoot =
- this._layers = null;
- },
-
- /**
- * Get canvas which has all thing rendered
- * @param {Object} opts
- * @param {string} [opts.backgroundColor]
- */
- getRenderedCanvas: function (opts) {
- opts = opts || {};
- if (this._singleCanvas) {
- return this._layers[0].dom;
- }
-
- var imageLayer = new Layer('image', this, opts.pixelRatio || this.dpr);
- imageLayer.initContext();
-
- var ctx = imageLayer.ctx;
- imageLayer.clearColor = opts.backgroundColor;
- imageLayer.clear();
-
- var displayList = this.storage.getDisplayList(true);
-
- for (var i = 0; i < displayList.length; i++) {
- var el = displayList[i];
- if (!el.invisible) {
- el.beforeBrush && el.beforeBrush(ctx);
- // TODO Check image cross origin
- el.brush(ctx, false);
- el.afterBrush && el.afterBrush(ctx);
- }
- }
-
- return imageLayer.dom;
- },
- /**
- * 获取绘图区域宽度
- */
- getWidth: function () {
- return this._width;
- },
-
- /**
- * 获取绘图区域高度
- */
- getHeight: function () {
- return this._height;
- },
-
- _getWidth: function () {
- var root = this.root;
- var stl = document.defaultView.getComputedStyle(root);
-
- // FIXME Better way to get the width and height when element has not been append to the document
- return ((root.clientWidth || parseInt10(stl.width) || parseInt10(root.style.width))
- - (parseInt10(stl.paddingLeft) || 0)
- - (parseInt10(stl.paddingRight) || 0)) | 0;
- },
-
- _getHeight: function () {
- var root = this.root;
- var stl = document.defaultView.getComputedStyle(root);
-
- return ((root.clientHeight || parseInt10(stl.height) || parseInt10(root.style.height))
- - (parseInt10(stl.paddingTop) || 0)
- - (parseInt10(stl.paddingBottom) || 0)) | 0;
- },
-
- _pathToImage: function (id, path, width, height, dpr) {
- var canvas = document.createElement('canvas');
- var ctx = canvas.getContext('2d');
-
- canvas.width = width * dpr;
- canvas.height = height * dpr;
-
- ctx.clearRect(0, 0, width * dpr, height * dpr);
-
- var pathTransform = {
- position: path.position,
- rotation: path.rotation,
- scale: path.scale
- };
- path.position = [0, 0, 0];
- path.rotation = 0;
- path.scale = [1, 1];
- if (path) {
- path.brush(ctx);
- }
-
- var ImageShape = __webpack_require__(59);
- var imgShape = new ImageShape({
- id: id,
- style: {
- x: 0,
- y: 0,
- image: canvas
- }
- });
-
- if (pathTransform.position != null) {
- imgShape.position = path.position = pathTransform.position;
- }
-
- if (pathTransform.rotation != null) {
- imgShape.rotation = path.rotation = pathTransform.rotation;
- }
-
- if (pathTransform.scale != null) {
- imgShape.scale = path.scale = pathTransform.scale;
- }
-
- return imgShape;
- },
-
- _createPathToImage: function () {
- var me = this;
-
- return function (id, e, width, height) {
- return me._pathToImage(
- id, e, width, height, me.dpr
- );
- };
- }
- };
-
- module.exports = Painter;
-
-
-
-/***/ },
-/* 86 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module zrender/Layer
- * @author pissang(https://www.github.com/pissang)
- */
-
-
- var util = __webpack_require__(3);
- var config = __webpack_require__(40);
-
- function returnFalse() {
- return false;
- }
-
- /**
- * 创建dom
- *
- * @inner
- * @param {string} id dom id 待用
- * @param {string} type dom type,such as canvas, div etc.
- * @param {Painter} painter painter instance
- * @param {number} number
- */
- function createDom(id, type, painter, dpr) {
- var newDom = document.createElement(type);
- var width = painter.getWidth();
- var height = painter.getHeight();
-
- var newDomStyle = newDom.style;
- // 没append呢,请原谅我这样写,清晰~
- newDomStyle.position = 'absolute';
- newDomStyle.left = 0;
- newDomStyle.top = 0;
- newDomStyle.width = width + 'px';
- newDomStyle.height = height + 'px';
- newDom.width = width * dpr;
- newDom.height = height * dpr;
-
- // id不作为索引用,避免可能造成的重名,定义为私有属性
- newDom.setAttribute('data-zr-dom-id', id);
- return newDom;
- }
-
- /**
- * @alias module:zrender/Layer
- * @constructor
- * @extends module:zrender/mixin/Transformable
- * @param {string} id
- * @param {module:zrender/Painter} painter
- * @param {number} [dpr]
- */
- var Layer = function(id, painter, dpr) {
- var dom;
- dpr = dpr || config.devicePixelRatio;
- if (typeof id === 'string') {
- dom = createDom(id, 'canvas', painter, dpr);
- }
- // Not using isDom because in node it will return false
- else if (util.isObject(id)) {
- dom = id;
- id = dom.id;
- }
- this.id = id;
- this.dom = dom;
-
- var domStyle = dom.style;
- if (domStyle) { // Not in node
- dom.onselectstart = returnFalse; // 避免页面选中的尴尬
- domStyle['-webkit-user-select'] = 'none';
- domStyle['user-select'] = 'none';
- domStyle['-webkit-touch-callout'] = 'none';
- domStyle['-webkit-tap-highlight-color'] = 'rgba(0,0,0,0)';
- }
-
- this.domBack = null;
- this.ctxBack = null;
-
- this.painter = painter;
-
- this.config = null;
-
- // Configs
- /**
- * 每次清空画布的颜色
- * @type {string}
- * @default 0
- */
- this.clearColor = 0;
- /**
- * 是否开启动态模糊
- * @type {boolean}
- * @default false
- */
- this.motionBlur = false;
- /**
- * 在开启动态模糊的时候使用,与上一帧混合的alpha值,值越大尾迹越明显
- * @type {number}
- * @default 0.7
- */
- this.lastFrameAlpha = 0.7;
-
- /**
- * Layer dpr
- * @type {number}
- */
- this.dpr = dpr;
- };
-
- Layer.prototype = {
-
- constructor: Layer,
-
- elCount: 0,
-
- __dirty: true,
-
- initContext: function () {
- this.ctx = this.dom.getContext('2d');
-
- var dpr = this.dpr;
- if (dpr != 1) {
- this.ctx.scale(dpr, dpr);
- }
- },
-
- createBackBuffer: function () {
- var dpr = this.dpr;
-
- this.domBack = createDom('back-' + this.id, 'canvas', this.painter, dpr);
- this.ctxBack = this.domBack.getContext('2d');
-
- if (dpr != 1) {
- this.ctxBack.scale(dpr, dpr);
- }
- },
-
- /**
- * @param {number} width
- * @param {number} height
- */
- resize: function (width, height) {
- var dpr = this.dpr;
-
- var dom = this.dom;
- var domStyle = dom.style;
- var domBack = this.domBack;
-
- domStyle.width = width + 'px';
- domStyle.height = height + 'px';
-
- dom.width = width * dpr;
- dom.height = height * dpr;
-
- if (dpr != 1) {
- this.ctx.scale(dpr, dpr);
- }
-
- if (domBack) {
- domBack.width = width * dpr;
- domBack.height = height * dpr;
-
- if (dpr != 1) {
- this.ctxBack.scale(dpr, dpr);
- }
- }
- },
-
- /**
- * 清空该层画布
- * @param {boolean} clearAll Clear all with out motion blur
- */
- clear: function (clearAll) {
- var dom = this.dom;
- var ctx = this.ctx;
- var width = dom.width;
- var height = dom.height;
-
- var haveClearColor = this.clearColor;
- var haveMotionBLur = this.motionBlur && !clearAll;
- var lastFrameAlpha = this.lastFrameAlpha;
-
- var dpr = this.dpr;
-
- if (haveMotionBLur) {
- if (!this.domBack) {
- this.createBackBuffer();
- }
-
- this.ctxBack.globalCompositeOperation = 'copy';
- this.ctxBack.drawImage(
- dom, 0, 0,
- width / dpr,
- height / dpr
- );
- }
-
- ctx.clearRect(0, 0, width / dpr, height / dpr);
- if (haveClearColor) {
- ctx.save();
- ctx.fillStyle = this.clearColor;
- ctx.fillRect(0, 0, width / dpr, height / dpr);
- ctx.restore();
- }
-
- if (haveMotionBLur) {
- var domBack = this.domBack;
- ctx.save();
- ctx.globalAlpha = lastFrameAlpha;
- ctx.drawImage(domBack, 0, 0, width / dpr, height / dpr);
- ctx.restore();
- }
- }
- };
-
- module.exports = Layer;
-
-
-/***/ },
-/* 87 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
- var PI = Math.PI;
- /**
- * @param {module:echarts/ExtensionAPI} api
- * @param {Object} [opts]
- * @param {string} [opts.text]
- * @param {string} [opts.color]
- * @param {string} [opts.textColor]
- * @return {module:zrender/Element}
- */
- module.exports = function (api, opts) {
- opts = opts || {};
- zrUtil.defaults(opts, {
- text: 'loading',
- color: '#c23531',
- textColor: '#000',
- maskColor: 'rgba(255, 255, 255, 0.8)',
- zlevel: 0
- });
- var mask = new graphic.Rect({
- style: {
- fill: opts.maskColor
- },
- zlevel: opts.zlevel,
- z: 10000
- });
- var arc = new graphic.Arc({
- shape: {
- startAngle: -PI / 2,
- endAngle: -PI / 2 + 0.1,
- r: 10
- },
- style: {
- stroke: opts.color,
- lineCap: 'round',
- lineWidth: 5
- },
- zlevel: opts.zlevel,
- z: 10001
- });
- var labelRect = new graphic.Rect({
- style: {
- fill: 'none',
- text: opts.text,
- textPosition: 'right',
- textDistance: 10,
- textFill: opts.textColor
- },
- zlevel: opts.zlevel,
- z: 10001
- });
-
- arc.animateShape(true)
- .when(1000, {
- endAngle: PI * 3 / 2
- })
- .start('circularInOut');
- arc.animateShape(true)
- .when(1000, {
- startAngle: PI * 3 / 2
- })
- .delay(300)
- .start('circularInOut');
-
- var group = new graphic.Group();
- group.add(arc);
- group.add(labelRect);
- group.add(mask);
- // Inject resize
- group.resize = function () {
- var cx = api.getWidth() / 2;
- var cy = api.getHeight() / 2;
- arc.setShape({
- cx: cx,
- cy: cy
- });
- var r = arc.shape.r;
- labelRect.setShape({
- x: cx - r,
- y: cy - r,
- width: r * 2,
- height: r * 2
- });
-
- mask.setShape({
- x: 0,
- y: 0,
- width: api.getWidth(),
- height: api.getHeight()
- });
- };
- group.resize();
- return group;
- };
-
-
-/***/ },
-/* 88 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- var Gradient = __webpack_require__(4);
- module.exports = function (seriesType, styleType, ecModel) {
- function encodeColor(seriesModel) {
- var colorAccessPath = [styleType, 'normal', 'color'];
- var colorList = ecModel.get('color');
- var data = seriesModel.getData();
- var color = seriesModel.get(colorAccessPath) // Set in itemStyle
- || colorList[seriesModel.seriesIndex % colorList.length]; // Default color
-
- // FIXME Set color function or use the platte color
- data.setVisual('color', color);
-
- // Only visible series has each data be visual encoded
- if (!ecModel.isSeriesFiltered(seriesModel)) {
- if (typeof color === 'function' && !(color instanceof Gradient)) {
- data.each(function (idx) {
- data.setItemVisual(
- idx, 'color', color(seriesModel.getDataParams(idx))
- );
- });
- }
-
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- var color = itemModel.get(colorAccessPath, true);
- if (color != null) {
- data.setItemVisual(idx, 'color', color);
- }
- });
- }
- }
- seriesType ? ecModel.eachSeriesByType(seriesType, encodeColor)
- : ecModel.eachSeries(encodeColor);
- };
-
-
-/***/ },
-/* 89 */
-/***/ function(module, exports, __webpack_require__) {
-
- // Compatitable with 2.0
-
-
- var zrUtil = __webpack_require__(3);
- var compatStyle = __webpack_require__(90);
-
- function get(opt, path) {
- path = path.split(',');
- var obj = opt;
- for (var i = 0; i < path.length; i++) {
- obj = obj && obj[path[i]];
- if (obj == null) {
- break;
- }
- }
- return obj;
- }
-
- function set(opt, path, val, overwrite) {
- path = path.split(',');
- var obj = opt;
- var key;
- for (var i = 0; i < path.length - 1; i++) {
- key = path[i];
- if (obj[key] == null) {
- obj[key] = {};
- }
- obj = obj[key];
- }
- if (overwrite || obj[path[i]] == null) {
- obj[path[i]] = val;
- }
- }
-
- function compatLayoutProperties(option) {
- each(LAYOUT_PROPERTIES, function (prop) {
- if (prop[0] in option && !(prop[1] in option)) {
- option[prop[1]] = option[prop[0]];
- }
- });
- }
-
- var LAYOUT_PROPERTIES = [
- ['x', 'left'], ['y', 'top'], ['x2', 'right'], ['y2', 'bottom']
- ];
-
- var COMPATITABLE_COMPONENTS = [
- 'grid', 'geo', 'parallel', 'legend', 'toolbox', 'title', 'visualMap', 'dataZoom', 'timeline'
- ];
-
- var COMPATITABLE_SERIES = [
- 'bar', 'boxplot', 'candlestick', 'chord', 'effectScatter',
- 'funnel', 'gauge', 'lines', 'graph', 'heatmap', 'line', 'map', 'parallel',
- 'pie', 'radar', 'sankey', 'scatter', 'treemap'
- ];
-
- var each = zrUtil.each;
-
- module.exports = function (option) {
- each(option.series, function (seriesOpt) {
- if (!zrUtil.isObject(seriesOpt)) {
- return;
- }
-
- var seriesType = seriesOpt.type;
-
- compatStyle(seriesOpt);
-
- if (seriesType === 'pie' || seriesType === 'gauge') {
- if (seriesOpt.clockWise != null) {
- seriesOpt.clockwise = seriesOpt.clockWise;
- }
- }
- if (seriesType === 'gauge') {
- var pointerColor = get(seriesOpt, 'pointer.color');
- pointerColor != null
- && set(seriesOpt, 'itemStyle.normal.color', pointerColor);
- }
-
- for (var i = 0; i < COMPATITABLE_SERIES.length; i++) {
- if (COMPATITABLE_SERIES[i] === seriesOpt.type) {
- compatLayoutProperties(seriesOpt);
- break;
- }
- }
- });
-
- // dataRange has changed to visualMap
- if (option.dataRange) {
- option.visualMap = option.dataRange;
- }
-
- each(COMPATITABLE_COMPONENTS, function (componentName) {
- var options = option[componentName];
- if (options) {
- if (!zrUtil.isArray(options)) {
- options = [options];
- }
- each(options, function (option) {
- compatLayoutProperties(option);
- });
- }
- });
- };
-
-
-/***/ },
-/* 90 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var POSSIBLE_STYLES = [
- 'areaStyle', 'lineStyle', 'nodeStyle', 'linkStyle',
- 'chordStyle', 'label', 'labelLine'
- ];
-
- function compatItemStyle(opt) {
- var itemStyleOpt = opt && opt.itemStyle;
- if (itemStyleOpt) {
- zrUtil.each(POSSIBLE_STYLES, function (styleName) {
- var normalItemStyleOpt = itemStyleOpt.normal;
- var emphasisItemStyleOpt = itemStyleOpt.emphasis;
- if (normalItemStyleOpt && normalItemStyleOpt[styleName]) {
- opt[styleName] = opt[styleName] || {};
- if (!opt[styleName].normal) {
- opt[styleName].normal = normalItemStyleOpt[styleName];
- }
- else {
- zrUtil.merge(opt[styleName].normal, normalItemStyleOpt[styleName]);
- }
- normalItemStyleOpt[styleName] = null;
- }
- if (emphasisItemStyleOpt && emphasisItemStyleOpt[styleName]) {
- opt[styleName] = opt[styleName] || {};
- if (!opt[styleName].emphasis) {
- opt[styleName].emphasis = emphasisItemStyleOpt[styleName];
- }
- else {
- zrUtil.merge(opt[styleName].emphasis, emphasisItemStyleOpt[styleName]);
- }
- emphasisItemStyleOpt[styleName] = null;
- }
- });
- }
- }
-
- module.exports = function (seriesOpt) {
- if (!seriesOpt) {
- return;
- }
- compatItemStyle(seriesOpt);
- compatItemStyle(seriesOpt.markPoint);
- compatItemStyle(seriesOpt.markLine);
- var data = seriesOpt.data;
- if (data) {
- for (var i = 0; i < data.length; i++) {
- compatItemStyle(data[i]);
- }
- // mark point data
- var markPoint = seriesOpt.markPoint;
- if (markPoint && markPoint.data) {
- var mpData = markPoint.data;
- for (var i = 0; i < mpData.length; i++) {
- compatItemStyle(mpData[i]);
- }
- }
- // mark line data
- var markLine = seriesOpt.markLine;
- if (markLine && markLine.data) {
- var mlData = markLine.data;
- for (var i = 0; i < mlData.length; i++) {
- if (zrUtil.isArray(mlData[i])) {
- compatItemStyle(mlData[i][0]);
- compatItemStyle(mlData[i][1]);
- }
- else {
- compatItemStyle(mlData[i]);
- }
- }
- }
- }
- };
-
-
-/***/ },
-/* 91 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- __webpack_require__(92);
- __webpack_require__(97);
-
- echarts.registerVisualCoding('chart', zrUtil.curry(
- __webpack_require__(103), 'line', 'circle', 'line'
- ));
- echarts.registerLayout(zrUtil.curry(
- __webpack_require__(104), 'line'
- ));
-
- // Down sample after filter
- echarts.registerProcessor('statistic', zrUtil.curry(
- __webpack_require__(105), 'line'
- ));
-
- // In case developer forget to include grid component
- __webpack_require__(106);
-
-
-/***/ },
-/* 92 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var createListFromArray = __webpack_require__(93);
- var SeriesModel = __webpack_require__(27);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.line',
-
- dependencies: ['grid', 'polar'],
-
- getInitialData: function (option, ecModel) {
- return createListFromArray(option.data, this, ecModel);
- },
-
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
- coordinateSystem: 'cartesian2d',
- legendHoverLink: true,
-
- hoverAnimation: true,
- // stack: null
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- polarIndex: 0,
-
- // If clip the overflow value
- clipOverflow: true,
-
- label: {
- normal: {
- // show: false,
- position: 'top'
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // 'inside'|'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- }
- // emphasis: {
- // show: false,
- // position: 'top'
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // 'inside'|'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- // }
- },
- // itemStyle: {
- // normal: {
- // // color: 各异
- // },
- // emphasis: {
- // // color: 各异,
- // }
- // },
- lineStyle: {
- normal: {
- width: 2,
- type: 'solid'
- }
- },
- // areaStyle: {
- // },
- // smooth: false,
- // smoothMonotone: null,
- // 拐点图形类型
- symbol: 'emptyCircle',
- // 拐点图形大小
- symbolSize: 4,
- // 拐点图形旋转控制
- // symbolRotate: null,
-
- // 是否显示 symbol, 只有在 tooltip hover 的时候显示
- showSymbol: true,
- // 标志图形默认只有主轴显示(随主轴标签间隔隐藏策略)
- // showAllSymbol: false
- //
- // 大数据过滤,'average', 'max', 'min', 'sum'
- // sampling: 'none'
-
- animationEasing: 'linear'
- }
- });
-
-
-/***/ },
-/* 93 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var List = __webpack_require__(94);
- var completeDimensions = __webpack_require__(96);
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var CoordinateSystem = __webpack_require__(25);
- var getDataItemValue = modelUtil.getDataItemValue;
- var converDataValue = modelUtil.converDataValue;
-
- function firstDataNotNull(data) {
- var i = 0;
- while (i < data.length && data[i] == null) {
- i++;
- }
- return data[i];
- }
- function ifNeedCompleteOrdinalData(data) {
- var sampleItem = firstDataNotNull(data);
- return sampleItem != null
- && !zrUtil.isArray(getDataItemValue(sampleItem));
- }
-
- /**
- * Helper function to create a list from option data
- */
- function createListFromArray(data, seriesModel, ecModel) {
- // If data is undefined
- data = data || [];
-
- var coordSysName = seriesModel.get('coordinateSystem');
- var creator = creators[coordSysName];
- var registeredCoordSys = CoordinateSystem.get(coordSysName);
- // FIXME
- var result = creator && creator(data, seriesModel, ecModel);
- var dimensions = result && result.dimensions;
- if (!dimensions) {
- // Get dimensions from registered coordinate system
- dimensions = (registeredCoordSys && registeredCoordSys.dimensions) || ['x', 'y'];
- dimensions = completeDimensions(dimensions, data, dimensions.concat(['value']));
- }
- var categoryAxisModel = result && result.categoryAxisModel;
-
- var categoryDimIndex = dimensions[0].type === 'ordinal'
- ? 0 : (dimensions[1].type === 'ordinal' ? 1 : -1);
-
- var list = new List(dimensions, seriesModel);
-
- var nameList = createNameList(result, data);
-
- var dimValueGetter = (categoryAxisModel && ifNeedCompleteOrdinalData(data))
- ? function (itemOpt, dimName, dataIndex, dimIndex) {
- // Use dataIndex as ordinal value in categoryAxis
- return dimIndex === categoryDimIndex
- ? dataIndex
- : converDataValue(getDataItemValue(itemOpt), dimensions[dimIndex]);
- }
- : function (itemOpt, dimName, dataIndex, dimIndex) {
- var val = getDataItemValue(itemOpt);
- return converDataValue(val && val[dimIndex], dimensions[dimIndex]);
- };
-
- list.initData(data, nameList, dimValueGetter);
-
- return list;
- }
-
- function isStackable(axisType) {
- return axisType !== 'category' && axisType !== 'time';
- }
-
- function getDimTypeByAxis(axisType) {
- return axisType === 'category'
- ? 'ordinal'
- : axisType === 'time'
- ? 'time'
- : 'float';
- }
-
- /**
- * Creaters for each coord system.
- * @return {Object} {dimensions, categoryAxisModel};
- */
- var creators = {
-
- cartesian2d: function (data, seriesModel, ecModel) {
- var xAxisModel = ecModel.getComponent('xAxis', seriesModel.get('xAxisIndex'));
- var yAxisModel = ecModel.getComponent('yAxis', seriesModel.get('yAxisIndex'));
- var xAxisType = xAxisModel.get('type');
- var yAxisType = yAxisModel.get('type');
-
- var dimensions = [
- {
- name: 'x',
- type: getDimTypeByAxis(xAxisType),
- stackable: isStackable(xAxisType)
- },
- {
- name: 'y',
- // If two category axes
- type: getDimTypeByAxis(yAxisType),
- stackable: isStackable(yAxisType)
- }
- ];
-
- var isXAxisCateogry = xAxisType === 'category';
-
- completeDimensions(dimensions, data, ['x', 'y', 'z']);
-
- return {
- dimensions: dimensions,
- categoryIndex: isXAxisCateogry ? 0 : 1,
- categoryAxisModel: isXAxisCateogry
- ? xAxisModel
- : (yAxisType === 'category' ? yAxisModel : null)
- };
- },
-
- polar: function (data, seriesModel, ecModel) {
- var polarIndex = seriesModel.get('polarIndex') || 0;
-
- var axisFinder = function (axisModel) {
- return axisModel.get('polarIndex') === polarIndex;
- };
-
- var angleAxisModel = ecModel.findComponents({
- mainType: 'angleAxis', filter: axisFinder
- })[0];
- var radiusAxisModel = ecModel.findComponents({
- mainType: 'radiusAxis', filter: axisFinder
- })[0];
-
- var radiusAxisType = radiusAxisModel.get('type');
- var angleAxisType = angleAxisModel.get('type');
-
- var dimensions = [
- {
- name: 'radius',
- type: getDimTypeByAxis(radiusAxisType),
- stackable: isStackable(radiusAxisType)
- },
- {
- name: 'angle',
- type: getDimTypeByAxis(angleAxisType),
- stackable: isStackable(angleAxisType)
- }
- ];
- var isAngleAxisCateogry = angleAxisType === 'category';
-
- completeDimensions(dimensions, data, ['radius', 'angle', 'value']);
-
- return {
- dimensions: dimensions,
- categoryIndex: isAngleAxisCateogry ? 1 : 0,
- categoryAxisModel: isAngleAxisCateogry
- ? angleAxisModel
- : (radiusAxisType === 'category' ? radiusAxisModel : null)
- };
- },
-
- geo: function (data, seriesModel, ecModel) {
- // TODO Region
- // 多个散点图系列在同一个地区的时候
- return {
- dimensions: completeDimensions([
- {name: 'lng'},
- {name: 'lat'}
- ], data, ['lng', 'lat', 'value'])
- };
- }
- };
-
- function createNameList(result, data) {
- var nameList = [];
-
- if (result && result.categoryAxisModel) {
- // FIXME Two category axis
- var categories = result.categoryAxisModel.getCategories();
- if (categories) {
- var dataLen = data.length;
- // Ordered data is given explicitly like
- // [[3, 0.2], [1, 0.3], [2, 0.15]]
- // or given scatter data,
- // pick the category
- if (zrUtil.isArray(data[0]) && data[0].length > 1) {
- nameList = [];
- for (var i = 0; i < dataLen; i++) {
- nameList[i] = categories[data[i][result.categoryIndex || 0]];
- }
- }
- else {
- nameList = categories.slice(0);
- }
- }
- }
-
- return nameList;
- }
-
- module.exports = createListFromArray;
-
-
-
-/***/ },
-/* 94 */
-/***/ function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(global) {/**
- * List for data storage
- * @module echarts/data/List
- */
-
-
- var UNDEFINED = 'undefined';
- var globalObj = typeof window === 'undefined' ? global : window;
- var Float64Array = typeof globalObj.Float64Array === UNDEFINED
- ? Array : globalObj.Float64Array;
- var Int32Array = typeof globalObj.Int32Array === UNDEFINED
- ? Array : globalObj.Int32Array;
-
- var dataCtors = {
- 'float': Float64Array,
- 'int': Int32Array,
- // Ordinal data type can be string or int
- 'ordinal': Array,
- 'number': Array,
- 'time': Array
- };
-
- var Model = __webpack_require__(8);
- var DataDiffer = __webpack_require__(95);
-
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var isObject = zrUtil.isObject;
-
- var IMMUTABLE_PROPERTIES = [
- 'stackedOn', '_nameList', '_idList', '_rawData'
- ];
-
- var transferImmuProperties = function (a, b, wrappedMethod) {
- zrUtil.each(IMMUTABLE_PROPERTIES.concat(wrappedMethod || []), function (propName) {
- if (b.hasOwnProperty(propName)) {
- a[propName] = b[propName];
- }
- });
- };
-
- /**
- * @constructor
- * @alias module:echarts/data/List
- *
- * @param {Array.<string>} dimensions
- * Dimensions should be concrete names like x, y, z, lng, lat, angle, radius
- * @param {module:echarts/model/Model} hostModel
- */
- var List = function (dimensions, hostModel) {
-
- dimensions = dimensions || ['x', 'y'];
-
- var dimensionInfos = {};
- var dimensionNames = [];
- for (var i = 0; i < dimensions.length; i++) {
- var dimensionName;
- var dimensionInfo = {};
- if (typeof dimensions[i] === 'string') {
- dimensionName = dimensions[i];
- dimensionInfo = {
- name: dimensionName,
- stackable: false,
- // Type can be 'float', 'int', 'number'
- // Default is number, Precision of float may not enough
- type: 'number'
- };
- }
- else {
- dimensionInfo = dimensions[i];
- dimensionName = dimensionInfo.name;
- dimensionInfo.type = dimensionInfo.type || 'number';
- }
- dimensionNames.push(dimensionName);
- dimensionInfos[dimensionName] = dimensionInfo;
- }
- /**
- * @readOnly
- * @type {Array.<string>}
- */
- this.dimensions = dimensionNames;
-
- /**
- * Infomation of each data dimension, like data type.
- * @type {Object}
- */
- this._dimensionInfos = dimensionInfos;
-
- /**
- * @type {module:echarts/model/Model}
- */
- this.hostModel = hostModel;
-
- /**
- * Indices stores the indices of data subset after filtered.
- * This data subset will be used in chart.
- * @type {Array.<number>}
- * @readOnly
- */
- this.indices = [];
-
- /**
- * Data storage
- * @type {Object.<key, TypedArray|Array>}
- * @private
- */
- this._storage = {};
-
- /**
- * @type {Array.<string>}
- */
- this._nameList = [];
- /**
- * @type {Array.<string>}
- */
- this._idList = [];
- /**
- * Models of data option is stored sparse for optimizing memory cost
- * @type {Array.<module:echarts/model/Model>}
- * @private
- */
- this._optionModels = [];
-
- /**
- * @param {module:echarts/data/List}
- */
- this.stackedOn = null;
-
- /**
- * Global visual properties after visual coding
- * @type {Object}
- * @private
- */
- this._visual = {};
-
- /**
- * Globel layout properties.
- * @type {Object}
- * @private
- */
- this._layout = {};
-
- /**
- * Item visual properties after visual coding
- * @type {Array.<Object>}
- * @private
- */
- this._itemVisuals = [];
-
- /**
- * Item layout properties after layout
- * @type {Array.<Object>}
- * @private
- */
- this._itemLayouts = [];
-
- /**
- * Graphic elemnents
- * @type {Array.<module:zrender/Element>}
- * @private
- */
- this._graphicEls = [];
-
- /**
- * @type {Array.<Array|Object>}
- * @private
- */
- this._rawData;
-
- /**
- * @type {Object}
- * @private
- */
- this._extent;
- };
-
- var listProto = List.prototype;
-
- listProto.type = 'list';
-
- /**
- * Get dimension name
- * @param {string|number} dim
- * Dimension can be concrete names like x, y, z, lng, lat, angle, radius
- * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
- */
- listProto.getDimension = function (dim) {
- if (!isNaN(dim)) {
- dim = this.dimensions[dim] || dim;
- }
- return dim;
- };
- /**
- * Get type and stackable info of particular dimension
- * @param {string|number} dim
- * Dimension can be concrete names like x, y, z, lng, lat, angle, radius
- * Or a ordinal number. For example getDimensionInfo(0) will return 'x' or 'lng' or 'radius'
- */
- listProto.getDimensionInfo = function (dim) {
- return zrUtil.clone(this._dimensionInfos[this.getDimension(dim)]);
- };
-
- /**
- * Initialize from data
- * @param {Array.<Object|number|Array>} data
- * @param {Array.<string>} [nameList]
- * @param {Function} [dimValueGetter] (dataItem, dimName, dataIndex, dimIndex) => number
- */
- listProto.initData = function (data, nameList, dimValueGetter) {
- data = data || [];
-
- this._rawData = data;
-
- // Clear
- var storage = this._storage = {};
- var indices = this.indices = [];
-
- var dimensions = this.dimensions;
- var size = data.length;
- var dimensionInfoMap = this._dimensionInfos;
-
- var idList = [];
- var nameRepeatCount = {};
-
- nameList = nameList || [];
-
- // Init storage
- for (var i = 0; i < dimensions.length; i++) {
- var dimInfo = dimensionInfoMap[dimensions[i]];
- var DataCtor = dataCtors[dimInfo.type];
- storage[dimensions[i]] = new DataCtor(size);
- }
-
- // Default dim value getter
- dimValueGetter = dimValueGetter || function (dataItem, dimName, dataIndex, dimIndex) {
- var value = modelUtil.getDataItemValue(dataItem);
- return modelUtil.converDataValue(
- zrUtil.isArray(value)
- ? value[dimIndex]
- // If value is a single number or something else not array.
- : value,
- dimensionInfoMap[dimName]
- );
- };
-
- for (var idx = 0; idx < data.length; idx++) {
- var dataItem = data[idx];
- // Each data item is value
- // [1, 2]
- // 2
- // Bar chart, line chart which uses category axis
- // only gives the 'y' value. 'x' value is the indices of cateogry
- // Use a tempValue to normalize the value to be a (x, y) value
-
- // Store the data by dimensions
- for (var k = 0; k < dimensions.length; k++) {
- var dim = dimensions[k];
- var dimStorage = storage[dim];
- // PENDING NULL is empty or zero
- dimStorage[idx] = dimValueGetter(dataItem, dim, idx, k);
- }
-
- indices.push(idx);
- }
-
- // Use the name in option and create id
- for (var i = 0; i < data.length; i++) {
- var id = '';
- if (!nameList[i]) {
- nameList[i] = data[i].name;
- // Try using the id in option
- id = data[i].id;
- }
- var name = nameList[i] || '';
- if (!id && name) {
- // Use name as id and add counter to avoid same name
- nameRepeatCount[name] = nameRepeatCount[name] || 0;
- id = name;
- if (nameRepeatCount[name] > 0) {
- id += '__ec__' + nameRepeatCount[name];
- }
- nameRepeatCount[name]++;
- }
- id && (idList[i] = id);
- }
-
- this._nameList = nameList;
- this._idList = idList;
- };
-
- /**
- * @return {number}
- */
- listProto.count = function () {
- return this.indices.length;
- };
-
- /**
- * Get value. Return NaN if idx is out of range.
- * @param {string} dim Dim must be concrete name.
- * @param {number} idx
- * @param {boolean} stack
- * @return {number}
- */
- listProto.get = function (dim, idx, stack) {
- var storage = this._storage;
- var dataIndex = this.indices[idx];
-
- // If value not exists
- if (dataIndex == null) {
- return NaN;
- }
-
- var value = storage[dim] && storage[dim][dataIndex];
- // FIXME ordinal data type is not stackable
- if (stack) {
- var dimensionInfo = this._dimensionInfos[dim];
- if (dimensionInfo && dimensionInfo.stackable) {
- var stackedOn = this.stackedOn;
- while (stackedOn) {
- // Get no stacked data of stacked on
- var stackedValue = stackedOn.get(dim, idx);
- // Considering positive stack, negative stack and empty data
- if ((value >= 0 && stackedValue > 0) // Positive stack
- || (value <= 0 && stackedValue < 0) // Negative stack
- ) {
- value += stackedValue;
- }
- stackedOn = stackedOn.stackedOn;
- }
- }
- }
- return value;
- };
-
- /**
- * Get value for multi dimensions.
- * @param {Array.<string>} [dimensions] If ignored, using all dimensions.
- * @param {number} idx
- * @param {boolean} stack
- * @return {number}
- */
- listProto.getValues = function (dimensions, idx, stack) {
- var values = [];
-
- if (!zrUtil.isArray(dimensions)) {
- stack = idx;
- idx = dimensions;
- dimensions = this.dimensions;
- }
-
- for (var i = 0, len = dimensions.length; i < len; i++) {
- values.push(this.get(dimensions[i], idx, stack));
- }
-
- return values;
- };
-
- /**
- * If value is NaN. Inlcuding '-'
- * @param {string} dim
- * @param {number} idx
- * @return {number}
- */
- listProto.hasValue = function (idx) {
- var dimensions = this.dimensions;
- var dimensionInfos = this._dimensionInfos;
- for (var i = 0, len = dimensions.length; i < len; i++) {
- if (
- // Ordinal type can be string or number
- dimensionInfos[dimensions[i]].type !== 'ordinal'
- && isNaN(this.get(dimensions[i], idx))
- ) {
- return false;
- }
- }
- return true;
- };
-
- /**
- * Get extent of data in one dimension
- * @param {string} dim
- * @param {boolean} stack
- */
- listProto.getDataExtent = function (dim, stack) {
- var dimData = this._storage[dim];
- var dimInfo = this.getDimensionInfo(dim);
- stack = (dimInfo && dimInfo.stackable) && stack;
- var dimExtent = (this._extent || (this._extent = {}))[dim + (!!stack)];
- var value;
- if (dimExtent) {
- return dimExtent;
- }
- // var dimInfo = this._dimensionInfos[dim];
- if (dimData) {
- var min = Infinity;
- var max = -Infinity;
- // var isOrdinal = dimInfo.type === 'ordinal';
- for (var i = 0, len = this.count(); i < len; i++) {
- value = this.get(dim, i, stack);
- // FIXME
- // if (isOrdinal && typeof value === 'string') {
- // value = zrUtil.indexOf(dimData, value);
- // console.log(value);
- // }
- value < min && (min = value);
- value > max && (max = value);
- }
- return (this._extent[dim + stack] = [min, max]);
- }
- else {
- return [Infinity, -Infinity];
- }
- };
-
- /**
- * Get sum of data in one dimension
- * @param {string} dim
- * @param {boolean} stack
- */
- listProto.getSum = function (dim, stack) {
- var dimData = this._storage[dim];
- var sum = 0;
- if (dimData) {
- for (var i = 0, len = this.count(); i < len; i++) {
- var value = this.get(dim, i, stack);
- if (!isNaN(value)) {
- sum += value;
- }
- }
- }
- return sum;
- };
-
- /**
- * Retreive the index with given value
- * @param {number} idx
- * @param {number} value
- * @return {number}
- */
- // FIXME Precision of float value
- listProto.indexOf = function (dim, value) {
- var storage = this._storage;
- var dimData = storage[dim];
- var indices = this.indices;
-
- if (dimData) {
- for (var i = 0, len = indices.length; i < len; i++) {
- var rawIndex = indices[i];
- if (dimData[rawIndex] === value) {
- return i;
- }
- }
- }
- return -1;
- };
-
- /**
- * Retreive the index with given name
- * @param {number} idx
- * @param {number} name
- * @return {number}
- */
- listProto.indexOfName = function (name) {
- var indices = this.indices;
- var nameList = this._nameList;
-
- for (var i = 0, len = indices.length; i < len; i++) {
- var rawIndex = indices[i];
- if (nameList[rawIndex] === name) {
- return i;
- }
- }
-
- return -1;
- };
-
- /**
- * Retreive the index of nearest value
- * @param {string>} dim
- * @param {number} value
- * @param {boolean} stack If given value is after stacked
- * @return {number}
- */
- listProto.indexOfNearest = function (dim, value, stack) {
- var storage = this._storage;
- var dimData = storage[dim];
-
- if (dimData) {
- var minDist = Number.MAX_VALUE;
- var nearestIdx = -1;
- for (var i = 0, len = this.count(); i < len; i++) {
- var diff = value - this.get(dim, i, stack);
- var dist = Math.abs(diff);
- if (dist < minDist
- // For the case of two data are same on xAxis, which has sequence data.
- // Show the nearest index
- // https://github.com/ecomfe/echarts/issues/2869
- || (dist === minDist && diff > 0)
- ) {
- minDist = dist;
- nearestIdx = i;
- }
- }
- return nearestIdx;
- }
- return -1;
- };
-
- /**
- * Get raw data index
- * @param {number} idx
- * @return {number}
- */
- listProto.getRawIndex = function (idx) {
- var rawIdx = this.indices[idx];
- return rawIdx == null ? -1 : rawIdx;
- };
-
- /**
- * @param {number} idx
- * @param {boolean} [notDefaultIdx=false]
- * @return {string}
- */
- listProto.getName = function (idx) {
- return this._nameList[this.indices[idx]] || '';
- };
-
- /**
- * @param {number} idx
- * @param {boolean} [notDefaultIdx=false]
- * @return {string}
- */
- listProto.getId = function (idx) {
- return this._idList[this.indices[idx]] || (this.getRawIndex(idx) + '');
- };
-
-
- function normalizeDimensions(dimensions) {
- if (!zrUtil.isArray(dimensions)) {
- dimensions = [dimensions];
- }
- return dimensions;
- }
-
- /**
- * Data iteration
- * @param {string|Array.<string>}
- * @param {Function} cb
- * @param {boolean} [stack=false]
- * @param {*} [context=this]
- *
- * @example
- * list.each('x', function (x, idx) {});
- * list.each(['x', 'y'], function (x, y, idx) {});
- * list.each(function (idx) {})
- */
- listProto.each = function (dimensions, cb, stack, context) {
- if (typeof dimensions === 'function') {
- context = stack;
- stack = cb;
- cb = dimensions;
- dimensions = [];
- }
-
- dimensions = zrUtil.map(
- normalizeDimensions(dimensions), this.getDimension, this
- );
-
- var value = [];
- var dimSize = dimensions.length;
- var indices = this.indices;
-
- context = context || this;
-
- for (var i = 0; i < indices.length; i++) {
- if (dimSize === 0) {
- cb.call(context, i);
- }
- // Simple optimization
- else if (dimSize === 1) {
- cb.call(context, this.get(dimensions[0], i, stack), i);
- }
- else {
- for (var k = 0; k < dimSize; k++) {
- value[k] = this.get(dimensions[k], i, stack);
- }
- // Index
- value[k] = i;
- cb.apply(context, value);
- }
- }
- };
-
- /**
- * Data filter
- * @param {string|Array.<string>}
- * @param {Function} cb
- * @param {boolean} [stack=false]
- * @param {*} [context=this]
- */
- listProto.filterSelf = function (dimensions, cb, stack, context) {
- if (typeof dimensions === 'function') {
- context = stack;
- stack = cb;
- cb = dimensions;
- dimensions = [];
- }
-
- dimensions = zrUtil.map(
- normalizeDimensions(dimensions), this.getDimension, this
- );
-
- var newIndices = [];
- var value = [];
- var dimSize = dimensions.length;
- var indices = this.indices;
-
- context = context || this;
-
- for (var i = 0; i < indices.length; i++) {
- var keep;
- // Simple optimization
- if (dimSize === 1) {
- keep = cb.call(
- context, this.get(dimensions[0], i, stack), i
- );
- }
- else {
- for (var k = 0; k < dimSize; k++) {
- value[k] = this.get(dimensions[k], i, stack);
- }
- value[k] = i;
- keep = cb.apply(context, value);
- }
- if (keep) {
- newIndices.push(indices[i]);
- }
- }
-
- this.indices = newIndices;
-
- // Reset data extent
- this._extent = {};
-
- return this;
- };
-
- /**
- * Data mapping to a plain array
- * @param {string|Array.<string>} [dimensions]
- * @param {Function} cb
- * @param {boolean} [stack=false]
- * @param {*} [context=this]
- * @return {Array}
- */
- listProto.mapArray = function (dimensions, cb, stack, context) {
- if (typeof dimensions === 'function') {
- context = stack;
- stack = cb;
- cb = dimensions;
- dimensions = [];
- }
-
- var result = [];
- this.each(dimensions, function () {
- result.push(cb && cb.apply(this, arguments));
- }, stack, context);
- return result;
- };
-
- function cloneListForMapAndSample(original, excludeDimensions) {
- var allDimensions = original.dimensions;
- var list = new List(
- zrUtil.map(allDimensions, original.getDimensionInfo, original),
- original.hostModel
- );
- // FIXME If needs stackedOn, value may already been stacked
- transferImmuProperties(list, original, original._wrappedMethods);
-
- var storage = list._storage = {};
- var originalStorage = original._storage;
- // Init storage
- for (var i = 0; i < allDimensions.length; i++) {
- var dim = allDimensions[i];
- var dimStore = originalStorage[dim];
- if (zrUtil.indexOf(excludeDimensions, dim) >= 0) {
- storage[dim] = new dimStore.constructor(
- originalStorage[dim].length
- );
- }
- else {
- // Direct reference for other dimensions
- storage[dim] = originalStorage[dim];
- }
- }
- return list;
- }
-
- /**
- * Data mapping to a new List with given dimensions
- * @param {string|Array.<string>} dimensions
- * @param {Function} cb
- * @param {boolean} [stack=false]
- * @param {*} [context=this]
- * @return {Array}
- */
- listProto.map = function (dimensions, cb, stack, context) {
- dimensions = zrUtil.map(
- normalizeDimensions(dimensions), this.getDimension, this
- );
-
- var list = cloneListForMapAndSample(this, dimensions);
- // Following properties are all immutable.
- // So we can reference to the same value
- var indices = list.indices = this.indices;
-
- var storage = list._storage;
-
- var tmpRetValue = [];
- this.each(dimensions, function () {
- var idx = arguments[arguments.length - 1];
- var retValue = cb && cb.apply(this, arguments);
- if (retValue != null) {
- // a number
- if (typeof retValue === 'number') {
- tmpRetValue[0] = retValue;
- retValue = tmpRetValue;
- }
- for (var i = 0; i < retValue.length; i++) {
- var dim = dimensions[i];
- var dimStore = storage[dim];
- var rawIdx = indices[idx];
- if (dimStore) {
- dimStore[rawIdx] = retValue[i];
- }
- }
- }
- }, stack, context);
-
- return list;
- };
-
- /**
- * Large data down sampling on given dimension
- * @param {string} dimension
- * @param {number} rate
- * @param {Function} sampleValue
- * @param {Function} sampleIndex Sample index for name and id
- */
- listProto.downSample = function (dimension, rate, sampleValue, sampleIndex) {
- var list = cloneListForMapAndSample(this, [dimension]);
- var storage = this._storage;
- var targetStorage = list._storage;
-
- var originalIndices = this.indices;
- var indices = list.indices = [];
-
- var frameValues = [];
- var frameIndices = [];
- var frameSize = Math.floor(1 / rate);
-
- var dimStore = targetStorage[dimension];
- var len = this.count();
- // Copy data from original data
- for (var i = 0; i < storage[dimension].length; i++) {
- targetStorage[dimension][i] = storage[dimension][i];
- }
- for (var i = 0; i < len; i += frameSize) {
- // Last frame
- if (frameSize > len - i) {
- frameSize = len - i;
- frameValues.length = frameSize;
- }
- for (var k = 0; k < frameSize; k++) {
- var idx = originalIndices[i + k];
- frameValues[k] = dimStore[idx];
- frameIndices[k] = idx;
- }
- var value = sampleValue(frameValues);
- var idx = frameIndices[sampleIndex(frameValues, value) || 0];
- // Only write value on the filtered data
- dimStore[idx] = value;
- indices.push(idx);
- }
- return list;
- };
-
- /**
- * Get model of one data item.
- *
- * @param {number} idx
- */
- // FIXME Model proxy ?
- listProto.getItemModel = function (idx) {
- var hostModel = this.hostModel;
- idx = this.indices[idx];
- return new Model(this._rawData[idx], hostModel, hostModel.ecModel);
- };
-
- /**
- * Create a data differ
- * @param {module:echarts/data/List} otherList
- * @return {module:echarts/data/DataDiffer}
- */
- listProto.diff = function (otherList) {
- var idList = this._idList;
- var otherIdList = otherList && otherList._idList;
- return new DataDiffer(
- otherList ? otherList.indices : [], this.indices, function (idx) {
- return otherIdList[idx] || (idx + '');
- }, function (idx) {
- return idList[idx] || (idx + '');
- }
- );
- };
- /**
- * Get visual property.
- * @param {string} key
- */
- listProto.getVisual = function (key) {
- var visual = this._visual;
- return visual && visual[key];
- };
-
- /**
- * Set visual property
- * @param {string|Object} key
- * @param {*} [value]
- *
- * @example
- * setVisual('color', color);
- * setVisual({
- * 'color': color
- * });
- */
- listProto.setVisual = function (key, val) {
- if (isObject(key)) {
- for (var name in key) {
- if (key.hasOwnProperty(name)) {
- this.setVisual(name, key[name]);
- }
- }
- return;
- }
- this._visual = this._visual || {};
- this._visual[key] = val;
- };
-
- /**
- * Set layout property.
- * @param {string} key
- * @param {*} [val]
- */
- listProto.setLayout = function (key, val) {
- if (isObject(key)) {
- for (var name in key) {
- if (key.hasOwnProperty(name)) {
- this.setLayout(name, key[name]);
- }
- }
- return;
- }
- this._layout[key] = val;
- };
-
- /**
- * Get layout property.
- * @param {string} key.
- * @return {*}
- */
- listProto.getLayout = function (key) {
- return this._layout[key];
- };
-
- /**
- * Get layout of single data item
- * @param {number} idx
- */
- listProto.getItemLayout = function (idx) {
- return this._itemLayouts[idx];
- },
-
- /**
- * Set layout of single data item
- * @param {number} idx
- * @param {Object} layout
- * @param {boolean=} [merge=false]
- */
- listProto.setItemLayout = function (idx, layout, merge) {
- this._itemLayouts[idx] = merge
- ? zrUtil.extend(this._itemLayouts[idx] || {}, layout)
- : layout;
- },
-
- /**
- * Get visual property of single data item
- * @param {number} idx
- * @param {string} key
- * @param {boolean} ignoreParent
- */
- listProto.getItemVisual = function (idx, key, ignoreParent) {
- var itemVisual = this._itemVisuals[idx];
- var val = itemVisual && itemVisual[key];
- if (val == null && !ignoreParent) {
- // Use global visual property
- return this.getVisual(key);
- }
- return val;
- },
-
- /**
- * Set visual property of single data item
- *
- * @param {number} idx
- * @param {string|Object} key
- * @param {*} [value]
- *
- * @example
- * setItemVisual(0, 'color', color);
- * setItemVisual(0, {
- * 'color': color
- * });
- */
- listProto.setItemVisual = function (idx, key, value) {
- var itemVisual = this._itemVisuals[idx] || {};
- this._itemVisuals[idx] = itemVisual;
-
- if (isObject(key)) {
- for (var name in key) {
- if (key.hasOwnProperty(name)) {
- itemVisual[name] = key[name];
- }
- }
- return;
- }
- itemVisual[key] = value;
- };
-
- var setItemDataAndSeriesIndex = function (child) {
- child.seriesIndex = this.seriesIndex;
- child.dataIndex = this.dataIndex;
- };
- /**
- * Set graphic element relative to data. It can be set as null
- * @param {number} idx
- * @param {module:zrender/Element} [el]
- */
- listProto.setItemGraphicEl = function (idx, el) {
- var hostModel = this.hostModel;
-
- if (el) {
- // Add data index and series index for indexing the data by element
- // Useful in tooltip
- el.dataIndex = idx;
- el.seriesIndex = hostModel && hostModel.seriesIndex;
- if (el.type === 'group') {
- el.traverse(setItemDataAndSeriesIndex, el);
- }
- }
-
- this._graphicEls[idx] = el;
- };
-
- /**
- * @param {number} idx
- * @return {module:zrender/Element}
- */
- listProto.getItemGraphicEl = function (idx) {
- return this._graphicEls[idx];
- };
-
- /**
- * @param {Function} cb
- * @param {*} context
- */
- listProto.eachItemGraphicEl = function (cb, context) {
- zrUtil.each(this._graphicEls, function (el, idx) {
- if (el) {
- cb && cb.call(context, el, idx);
- }
- });
- };
-
- /**
- * Shallow clone a new list except visual and layout properties, and graph elements.
- * New list only change the indices.
- */
- listProto.cloneShallow = function () {
- var dimensionInfoList = zrUtil.map(this.dimensions, this.getDimensionInfo, this);
- var list = new List(dimensionInfoList, this.hostModel);
-
- // FIXME
- list._storage = this._storage;
-
- transferImmuProperties(list, this, this._wrappedMethods);
-
- list.indices = this.indices.slice();
-
- return list;
- };
-
- /**
- * Wrap some method to add more feature
- * @param {string} methodName
- * @param {Function} injectFunction
- */
- listProto.wrapMethod = function (methodName, injectFunction) {
- var originalMethod = this[methodName];
- if (typeof originalMethod !== 'function') {
- return;
- }
- this._wrappedMethods = this._wrappedMethods || [];
- this._wrappedMethods.push(methodName);
- this[methodName] = function () {
- var res = originalMethod.apply(this, arguments);
- return injectFunction.call(this, res);
- };
- };
-
- module.exports = List;
-
- /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))
-
-/***/ },
-/* 95 */
-/***/ function(module, exports) {
-
- 'use strict';
-
-
- function defaultKeyGetter(item) {
- return item;
- }
-
- function DataDiffer(oldArr, newArr, oldKeyGetter, newKeyGetter) {
- this._old = oldArr;
- this._new = newArr;
-
- this._oldKeyGetter = oldKeyGetter || defaultKeyGetter;
- this._newKeyGetter = newKeyGetter || defaultKeyGetter;
- }
-
- DataDiffer.prototype = {
-
- constructor: DataDiffer,
-
- /**
- * Callback function when add a data
- */
- add: function (func) {
- this._add = func;
- return this;
- },
-
- /**
- * Callback function when update a data
- */
- update: function (func) {
- this._update = func;
- return this;
- },
-
- /**
- * Callback function when remove a data
- */
- remove: function (func) {
- this._remove = func;
- return this;
- },
-
- execute: function () {
- var oldArr = this._old;
- var newArr = this._new;
- var oldKeyGetter = this._oldKeyGetter;
- var newKeyGetter = this._newKeyGetter;
-
- var oldDataIndexMap = {};
- var newDataIndexMap = {};
- var i;
-
- initIndexMap(oldArr, oldDataIndexMap, oldKeyGetter);
- initIndexMap(newArr, newDataIndexMap, newKeyGetter);
-
- // Travel by inverted order to make sure order consistency
- // when duplicate keys exists (consider newDataIndex.pop() below).
- // For performance consideration, these code below do not look neat.
- for (i = 0; i < oldArr.length; i++) {
- var key = oldKeyGetter(oldArr[i]);
- var idx = newDataIndexMap[key];
-
- // idx can never be empty array here. see 'set null' logic below.
- if (idx != null) {
- // Consider there is duplicate key (for example, use dataItem.name as key).
- // We should make sure every item in newArr and oldArr can be visited.
- var len = idx.length;
- if (len) {
- len === 1 && (newDataIndexMap[key] = null);
- idx = idx.unshift();
- }
- else {
- newDataIndexMap[key] = null;
- }
- this._update && this._update(idx, i);
- }
- else {
- this._remove && this._remove(i);
- }
- }
-
- for (var key in newDataIndexMap) {
- if (newDataIndexMap.hasOwnProperty(key)) {
- var idx = newDataIndexMap[key];
- if (idx == null) {
- continue;
- }
- // idx can never be empty array here. see 'set null' logic above.
- if (!idx.length) {
- this._add && this._add(idx);
- }
- else {
- for (var i = 0, len = idx.length; i < len; i++) {
- this._add && this._add(idx[i]);
- }
- }
- }
- }
- }
- };
-
- function initIndexMap(arr, map, keyGetter) {
- for (var i = 0; i < arr.length; i++) {
- var key = keyGetter(arr[i]);
- var existence = map[key];
- if (existence == null) {
- map[key] = i;
- }
- else {
- if (!existence.length) {
- map[key] = existence = [existence];
- }
- existence.push(i);
- }
- }
- }
-
- module.exports = DataDiffer;
-
-
-/***/ },
-/* 96 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Complete dimensions by data (guess dimension).
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- /**
- * Complete the dimensions array guessed from the data structure.
- * @param {Array.<string>} dimensions Necessary dimensions, like ['x', 'y']
- * @param {Array} data Data list. [[1, 2, 3], [2, 3, 4]]
- * @param {Array.<string>} defaultNames Default names to fill not necessary dimensions, like ['value']
- * @param {string} extraPrefix Prefix of name when filling the left dimensions.
- * @return {Array.<string>}
- */
- function completeDimensions(dimensions, data, defaultNames, extraPrefix) {
- if (!data) {
- return dimensions;
- }
-
- var value0 = retrieveValue(data[0]);
- var dimSize = zrUtil.isArray(value0) && value0.length || 1;
-
- defaultNames = defaultNames || [];
- extraPrefix = extraPrefix || 'extra';
- for (var i = 0; i < dimSize; i++) {
- if (!dimensions[i]) {
- var name = defaultNames[i] || (extraPrefix + (i - defaultNames.length));
- dimensions[i] = guessOrdinal(data, i)
- ? {type: 'ordinal', name: name}
- : name;
- }
- }
-
- return dimensions;
- }
-
- // The rule should not be complex, otherwise user might not
- // be able to known where the data is wrong.
- function guessOrdinal(data, dimIndex) {
- for (var i = 0, len = data.length; i < len; i++) {
- var value = retrieveValue(data[i]);
-
- if (!zrUtil.isArray(value)) {
- return false;
- }
-
- var value = value[dimIndex];
- if (value != null && isFinite(value)) {
- return false;
- }
- else if (zrUtil.isString(value) && value !== '-') {
- return true;
- }
- }
- return false;
- }
-
- function retrieveValue(o) {
- return zrUtil.isArray(o) ? o : zrUtil.isObject(o) ? o.value: o;
- }
-
- module.exports = completeDimensions;
-
-
-
-/***/ },
-/* 97 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var SymbolDraw = __webpack_require__(98);
- var Symbol = __webpack_require__(99);
- var lineAnimationDiff = __webpack_require__(101);
- var graphic = __webpack_require__(42);
-
- var polyHelper = __webpack_require__(102);
-
- var ChartView = __webpack_require__(41);
-
- function isPointsSame(points1, points2) {
- if (points1.length !== points2.length) {
- return;
- }
- for (var i = 0; i < points1.length; i++) {
- var p1 = points1[i];
- var p2 = points2[i];
- if (p1[0] !== p2[0] || p1[1] !== p2[1]) {
- return;
- }
- }
- return true;
- }
-
- function getSmooth(smooth) {
- return typeof (smooth) === 'number' ? smooth : (smooth ? 0.3 : 0);
- }
-
- function getAxisExtentWithGap(axis) {
- var extent = axis.getGlobalExtent();
- if (axis.onBand) {
- // Remove extra 1px to avoid line miter in clipped edge
- var halfBandWidth = axis.getBandWidth() / 2 - 1;
- var dir = extent[1] > extent[0] ? 1 : -1;
- extent[0] += dir * halfBandWidth;
- extent[1] -= dir * halfBandWidth;
- }
- return extent;
- }
-
- function sign(val) {
- return val >= 0 ? 1 : -1;
- }
- /**
- * @param {module:echarts/coord/cartesian/Cartesian2D|module:echarts/coord/polar/Polar} coordSys
- * @param {module:echarts/data/List} data
- * @param {Array.<Array.<number>>} points
- * @private
- */
- function getStackedOnPoints(coordSys, data) {
- var baseAxis = coordSys.getBaseAxis();
- var valueAxis = coordSys.getOtherAxis(baseAxis);
- var valueStart = baseAxis.onZero
- ? 0 : valueAxis.scale.getExtent()[0];
-
- var valueDim = valueAxis.dim;
-
- var baseDataOffset = valueDim === 'x' || valueDim === 'radius' ? 1 : 0;
-
- return data.mapArray([valueDim], function (val, idx) {
- var stackedOnSameSign;
- var stackedOn = data.stackedOn;
- // Find first stacked value with same sign
- while (stackedOn &&
- sign(stackedOn.get(valueDim, idx)) === sign(val)
- ) {
- stackedOnSameSign = stackedOn;
- break;
- }
- var stackedData = [];
- stackedData[baseDataOffset] = data.get(baseAxis.dim, idx);
- stackedData[1 - baseDataOffset] = stackedOnSameSign
- ? stackedOnSameSign.get(valueDim, idx, true) : valueStart;
-
- return coordSys.dataToPoint(stackedData);
- }, true);
- }
-
- function queryDataIndex(data, payload) {
- if (payload.dataIndex != null) {
- return payload.dataIndex;
- }
- else if (payload.name != null) {
- return data.indexOfName(payload.name);
- }
- }
-
- function createGridClipShape(cartesian, hasAnimation, seriesModel) {
- var xExtent = getAxisExtentWithGap(cartesian.getAxis('x'));
- var yExtent = getAxisExtentWithGap(cartesian.getAxis('y'));
- var isHorizontal = cartesian.getBaseAxis().isHorizontal();
-
- var x = xExtent[0];
- var y = yExtent[0];
- var width = xExtent[1] - x;
- var height = yExtent[1] - y;
- // Expand clip shape to avoid line value exceeds axis
- if (!seriesModel.get('clipOverflow')) {
- if (isHorizontal) {
- y -= height;
- height *= 3;
- }
- else {
- x -= width;
- width *= 3;
- }
- }
- var clipPath = new graphic.Rect({
- shape: {
- x: x,
- y: y,
- width: width,
- height: height
- }
- });
-
- if (hasAnimation) {
- clipPath.shape[isHorizontal ? 'width' : 'height'] = 0;
- graphic.initProps(clipPath, {
- shape: {
- width: width,
- height: height
- }
- }, seriesModel);
- }
-
- return clipPath;
- }
-
- function createPolarClipShape(polar, hasAnimation, seriesModel) {
- var angleAxis = polar.getAngleAxis();
- var radiusAxis = polar.getRadiusAxis();
-
- var radiusExtent = radiusAxis.getExtent();
- var angleExtent = angleAxis.getExtent();
-
- var RADIAN = Math.PI / 180;
-
- var clipPath = new graphic.Sector({
- shape: {
- cx: polar.cx,
- cy: polar.cy,
- r0: radiusExtent[0],
- r: radiusExtent[1],
- startAngle: -angleExtent[0] * RADIAN,
- endAngle: -angleExtent[1] * RADIAN,
- clockwise: angleAxis.inverse
- }
- });
-
- if (hasAnimation) {
- clipPath.shape.endAngle = -angleExtent[0] * RADIAN;
- graphic.initProps(clipPath, {
- shape: {
- endAngle: -angleExtent[1] * RADIAN
- }
- }, seriesModel);
- }
-
- return clipPath;
- }
-
- function createClipShape(coordSys, hasAnimation, seriesModel) {
- return coordSys.type === 'polar'
- ? createPolarClipShape(coordSys, hasAnimation, seriesModel)
- : createGridClipShape(coordSys, hasAnimation, seriesModel);
- }
-
- module.exports = ChartView.extend({
-
- type: 'line',
-
- init: function () {
- var lineGroup = new graphic.Group();
-
- var symbolDraw = new SymbolDraw();
- this.group.add(symbolDraw.group);
-
- this._symbolDraw = symbolDraw;
- this._lineGroup = lineGroup;
- },
-
- render: function (seriesModel, ecModel, api) {
- var coordSys = seriesModel.coordinateSystem;
- var group = this.group;
- var data = seriesModel.getData();
- var lineStyleModel = seriesModel.getModel('lineStyle.normal');
- var areaStyleModel = seriesModel.getModel('areaStyle.normal');
-
- var points = data.mapArray(data.getItemLayout, true);
-
- var isCoordSysPolar = coordSys.type === 'polar';
- var prevCoordSys = this._coordSys;
-
- var symbolDraw = this._symbolDraw;
- var polyline = this._polyline;
- var polygon = this._polygon;
-
- var lineGroup = this._lineGroup;
-
- var hasAnimation = seriesModel.get('animation');
-
- var isAreaChart = !areaStyleModel.isEmpty();
- var stackedOnPoints = getStackedOnPoints(coordSys, data);
-
- var showSymbol = seriesModel.get('showSymbol');
-
- var isSymbolIgnore = showSymbol && !isCoordSysPolar && !seriesModel.get('showAllSymbol')
- && this._getSymbolIgnoreFunc(data, coordSys);
-
- // Remove temporary symbols
- var oldData = this._data;
- oldData && oldData.eachItemGraphicEl(function (el, idx) {
- if (el.__temp) {
- group.remove(el);
- oldData.setItemGraphicEl(idx, null);
- }
- });
-
- // Remove previous created symbols if showSymbol changed to false
- if (!showSymbol) {
- symbolDraw.remove();
- }
-
- group.add(lineGroup);
-
- // Initialization animation or coordinate system changed
- if (
- !(polyline && prevCoordSys.type === coordSys.type)
- ) {
- showSymbol && symbolDraw.updateData(data, isSymbolIgnore);
-
- polyline = this._newPolyline(points, coordSys, hasAnimation);
- if (isAreaChart) {
- polygon = this._newPolygon(
- points, stackedOnPoints,
- coordSys, hasAnimation
- );
- }
- lineGroup.setClipPath(createClipShape(coordSys, true, seriesModel));
- }
- else {
- if (isAreaChart && !polygon) {
- // If areaStyle is added
- polygon = this._newPolygon(
- points, stackedOnPoints,
- coordSys, hasAnimation
- );
- }
- else if (polygon && !isAreaChart) {
- // If areaStyle is removed
- lineGroup.remove(polygon);
- polygon = this._polygon = null;
- }
-
- // Update clipPath
- lineGroup.setClipPath(createClipShape(coordSys, false, seriesModel));
-
- // Always update, or it is wrong in the case turning on legend
- // because points are not changed
- showSymbol && symbolDraw.updateData(data, isSymbolIgnore);
-
- // Stop symbol animation and sync with line points
- // FIXME performance?
- data.eachItemGraphicEl(function (el) {
- el.stopAnimation(true);
- });
-
- // In the case data zoom triggerred refreshing frequently
- // Data may not change if line has a category axis. So it should animate nothing
- if (!isPointsSame(this._stackedOnPoints, stackedOnPoints)
- || !isPointsSame(this._points, points)
- ) {
- if (hasAnimation) {
- this._updateAnimation(
- data, stackedOnPoints, coordSys, api
- );
- }
- else {
- polyline.setShape({
- points: points
- });
- polygon && polygon.setShape({
- points: points,
- stackedOnPoints: stackedOnPoints
- });
- }
- }
- }
-
- polyline.setStyle(zrUtil.defaults(
- // Use color in lineStyle first
- lineStyleModel.getLineStyle(),
- {
- stroke: data.getVisual('color'),
- lineJoin: 'bevel'
- }
- ));
-
- var smooth = seriesModel.get('smooth');
- smooth = getSmooth(seriesModel.get('smooth'));
- polyline.setShape({
- smooth: smooth,
- smoothMonotone: seriesModel.get('smoothMonotone')
- });
-
- if (polygon) {
- var stackedOn = data.stackedOn;
- var stackedOnSmooth = 0;
-
- polygon.style.opacity = 0.7;
- polygon.setStyle(zrUtil.defaults(
- areaStyleModel.getAreaStyle(),
- {
- fill: data.getVisual('color'),
- lineJoin: 'bevel'
- }
- ));
-
- if (stackedOn) {
- var stackedOnSeries = stackedOn.hostModel;
- stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));
- }
-
- polygon.setShape({
- smooth: smooth,
- stackedOnSmooth: stackedOnSmooth,
- smoothMonotone: seriesModel.get('smoothMonotone')
- });
- }
-
- this._data = data;
- // Save the coordinate system for transition animation when data changed
- this._coordSys = coordSys;
- this._stackedOnPoints = stackedOnPoints;
- this._points = points;
- },
-
- highlight: function (seriesModel, ecModel, api, payload) {
- var data = seriesModel.getData();
- var dataIndex = queryDataIndex(data, payload);
-
- if (dataIndex != null && dataIndex >= 0) {
- var symbol = data.getItemGraphicEl(dataIndex);
- if (!symbol) {
- // Create a temporary symbol if it is not exists
- var pt = data.getItemLayout(dataIndex);
- symbol = new Symbol(data, dataIndex, api);
- symbol.position = pt;
- symbol.setZ(
- seriesModel.get('zlevel'),
- seriesModel.get('z')
- );
- symbol.ignore = isNaN(pt[0]) || isNaN(pt[1]);
- symbol.__temp = true;
- data.setItemGraphicEl(dataIndex, symbol);
-
- // Stop scale animation
- symbol.stopSymbolAnimation(true);
-
- this.group.add(symbol);
- }
- symbol.highlight();
- }
- else {
- // Highlight whole series
- ChartView.prototype.highlight.call(
- this, seriesModel, ecModel, api, payload
- );
- }
- },
-
- downplay: function (seriesModel, ecModel, api, payload) {
- var data = seriesModel.getData();
- var dataIndex = queryDataIndex(data, payload);
- if (dataIndex != null && dataIndex >= 0) {
- var symbol = data.getItemGraphicEl(dataIndex);
- if (symbol) {
- if (symbol.__temp) {
- data.setItemGraphicEl(dataIndex, null);
- this.group.remove(symbol);
- }
- else {
- symbol.downplay();
- }
- }
- }
- else {
- // Downplay whole series
- ChartView.prototype.downplay.call(
- this, seriesModel, ecModel, api, payload
- );
- }
- },
-
- /**
- * @param {module:zrender/container/Group} group
- * @param {Array.<Array.<number>>} points
- * @private
- */
- _newPolyline: function (points) {
- var polyline = this._polyline;
- // Remove previous created polyline
- if (polyline) {
- this._lineGroup.remove(polyline);
- }
-
- polyline = new polyHelper.Polyline({
- shape: {
- points: points
- },
- silent: true,
- z2: 10
- });
-
- this._lineGroup.add(polyline);
-
- this._polyline = polyline;
-
- return polyline;
- },
-
- /**
- * @param {module:zrender/container/Group} group
- * @param {Array.<Array.<number>>} stackedOnPoints
- * @param {Array.<Array.<number>>} points
- * @private
- */
- _newPolygon: function (points, stackedOnPoints) {
- var polygon = this._polygon;
- // Remove previous created polygon
- if (polygon) {
- this._lineGroup.remove(polygon);
- }
-
- polygon = new polyHelper.Polygon({
- shape: {
- points: points,
- stackedOnPoints: stackedOnPoints
- },
- silent: true
- });
-
- this._lineGroup.add(polygon);
-
- this._polygon = polygon;
- return polygon;
- },
- /**
- * @private
- */
- _getSymbolIgnoreFunc: function (data, coordSys) {
- var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
- // `getLabelInterval` is provided by echarts/component/axis
- if (categoryAxis && categoryAxis.isLabelIgnored) {
- return zrUtil.bind(categoryAxis.isLabelIgnored, categoryAxis);
- }
- },
-
- /**
- * @private
- */
- // FIXME Two value axis
- _updateAnimation: function (data, stackedOnPoints, coordSys, api) {
- var polyline = this._polyline;
- var polygon = this._polygon;
- var seriesModel = data.hostModel;
-
- var diff = lineAnimationDiff(
- this._data, data,
- this._stackedOnPoints, stackedOnPoints,
- this._coordSys, coordSys
- );
- polyline.shape.points = diff.current;
-
- graphic.updateProps(polyline, {
- shape: {
- points: diff.next
- }
- }, seriesModel);
-
- if (polygon) {
- polygon.setShape({
- points: diff.current,
- stackedOnPoints: diff.stackedOnCurrent
- });
- graphic.updateProps(polygon, {
- shape: {
- points: diff.next,
- stackedOnPoints: diff.stackedOnNext
- }
- }, seriesModel);
- }
-
- var updatedDataInfo = [];
- var diffStatus = diff.status;
-
- for (var i = 0; i < diffStatus.length; i++) {
- var cmd = diffStatus[i].cmd;
- if (cmd === '=') {
- var el = data.getItemGraphicEl(diffStatus[i].idx1);
- if (el) {
- updatedDataInfo.push({
- el: el,
- ptIdx: i // Index of points
- });
- }
- }
- }
-
- if (polyline.animators && polyline.animators.length) {
- polyline.animators[0].during(function () {
- for (var i = 0; i < updatedDataInfo.length; i++) {
- var el = updatedDataInfo[i].el;
- el.attr('position', polyline.shape.points[updatedDataInfo[i].ptIdx]);
- }
- });
- }
- },
-
- remove: function (ecModel) {
- var group = this.group;
- var oldData = this._data;
- this._lineGroup.removeAll();
- this._symbolDraw.remove(true);
- // Remove temporary created elements when highlighting
- oldData && oldData.eachItemGraphicEl(function (el, idx) {
- if (el.__temp) {
- group.remove(el);
- oldData.setItemGraphicEl(idx, null);
- }
- });
-
- this._polyline =
- this._polygon =
- this._coordSys =
- this._points =
- this._stackedOnPoints =
- this._data = null;
- }
- });
-
-
-/***/ },
-/* 98 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/SymbolDraw
- */
-
-
- var graphic = __webpack_require__(42);
- var Symbol = __webpack_require__(99);
-
- /**
- * @constructor
- * @alias module:echarts/chart/helper/SymbolDraw
- * @param {module:zrender/graphic/Group} [symbolCtor]
- */
- function SymbolDraw(symbolCtor) {
- this.group = new graphic.Group();
-
- this._symbolCtor = symbolCtor || Symbol;
- }
-
- var symbolDrawProto = SymbolDraw.prototype;
-
- function symbolNeedsDraw(data, idx, isIgnore) {
- var point = data.getItemLayout(idx);
- return point && !isNaN(point[0]) && !isNaN(point[1]) && !(isIgnore && isIgnore(idx))
- && data.getItemVisual(idx, 'symbol') !== 'none';
- }
- /**
- * Update symbols draw by new data
- * @param {module:echarts/data/List} data
- * @param {Array.<boolean>} [isIgnore]
- */
- symbolDrawProto.updateData = function (data, isIgnore) {
- var group = this.group;
- var seriesModel = data.hostModel;
- var oldData = this._data;
-
- var SymbolCtor = this._symbolCtor;
-
- data.diff(oldData)
- .add(function (newIdx) {
- var point = data.getItemLayout(newIdx);
- if (symbolNeedsDraw(data, newIdx, isIgnore)) {
- var symbolEl = new SymbolCtor(data, newIdx);
- symbolEl.attr('position', point);
- data.setItemGraphicEl(newIdx, symbolEl);
- group.add(symbolEl);
- }
- })
- .update(function (newIdx, oldIdx) {
- var symbolEl = oldData.getItemGraphicEl(oldIdx);
- var point = data.getItemLayout(newIdx);
- if (!symbolNeedsDraw(data, newIdx, isIgnore)) {
- group.remove(symbolEl);
- return;
- }
- if (!symbolEl) {
- symbolEl = new SymbolCtor(data, newIdx);
- symbolEl.attr('position', point);
- }
- else {
- symbolEl.updateData(data, newIdx);
- graphic.updateProps(symbolEl, {
- position: point
- }, seriesModel);
- }
-
- // Add back
- group.add(symbolEl);
-
- data.setItemGraphicEl(newIdx, symbolEl);
- })
- .remove(function (oldIdx) {
- var el = oldData.getItemGraphicEl(oldIdx);
- el && el.fadeOut(function () {
- group.remove(el);
- });
- })
- .execute();
-
- this._data = data;
- };
-
- symbolDrawProto.updateLayout = function () {
- var data = this._data;
- if (data) {
- // Not use animation
- data.eachItemGraphicEl(function (el, idx) {
- el.attr('position', data.getItemLayout(idx));
- });
- }
- };
-
- symbolDrawProto.remove = function (enableAnimation) {
- var group = this.group;
- var data = this._data;
- if (data) {
- if (enableAnimation) {
- data.eachItemGraphicEl(function (el) {
- el.fadeOut(function () {
- group.remove(el);
- });
- });
- }
- else {
- group.removeAll();
- }
- }
- };
-
- module.exports = SymbolDraw;
-
-
-/***/ },
-/* 99 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/Symbol
- */
-
-
- var zrUtil = __webpack_require__(3);
- var symbolUtil = __webpack_require__(100);
- var graphic = __webpack_require__(42);
- var numberUtil = __webpack_require__(7);
-
- function normalizeSymbolSize(symbolSize) {
- if (!zrUtil.isArray(symbolSize)) {
- symbolSize = [+symbolSize, +symbolSize];
- }
- return symbolSize;
- }
-
- /**
- * @constructor
- * @alias {module:echarts/chart/helper/Symbol}
- * @param {module:echarts/data/List} data
- * @param {number} idx
- * @extends {module:zrender/graphic/Group}
- */
- function Symbol(data, idx) {
- graphic.Group.call(this);
-
- this.updateData(data, idx);
- }
-
- var symbolProto = Symbol.prototype;
-
- function driftSymbol(dx, dy) {
- this.parent.drift(dx, dy);
- }
-
- symbolProto._createSymbol = function (symbolType, data, idx) {
- // Remove paths created before
- this.removeAll();
-
- var seriesModel = data.hostModel;
- var color = data.getItemVisual(idx, 'color');
-
- var symbolPath = symbolUtil.createSymbol(
- symbolType, -0.5, -0.5, 1, 1, color
- );
-
- symbolPath.attr({
- style: {
- strokeNoScale: true
- },
- z2: 100,
- culling: true,
- scale: [0, 0]
- });
- // Rewrite drift method
- symbolPath.drift = driftSymbol;
-
- var size = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
-
- graphic.initProps(symbolPath, {
- scale: size
- }, seriesModel);
-
- this._symbolType = symbolType;
-
- this.add(symbolPath);
- };
-
- /**
- * Stop animation
- * @param {boolean} toLastFrame
- */
- symbolProto.stopSymbolAnimation = function (toLastFrame) {
- this.childAt(0).stopAnimation(toLastFrame);
- };
-
- /**
- * Get scale(aka, current symbol size).
- * Including the change caused by animation
- * @param {Array.<number>} toLastFrame
- */
- symbolProto.getScale = function () {
- return this.childAt(0).scale;
- };
-
- /**
- * Highlight symbol
- */
- symbolProto.highlight = function () {
- this.childAt(0).trigger('emphasis');
- };
-
- /**
- * Downplay symbol
- */
- symbolProto.downplay = function () {
- this.childAt(0).trigger('normal');
- };
-
- /**
- * @param {number} zlevel
- * @param {number} z
- */
- symbolProto.setZ = function (zlevel, z) {
- var symbolPath = this.childAt(0);
- symbolPath.zlevel = zlevel;
- symbolPath.z = z;
- };
-
- symbolProto.setDraggable = function (draggable) {
- var symbolPath = this.childAt(0);
- symbolPath.draggable = draggable;
- symbolPath.cursor = draggable ? 'move' : 'pointer';
- };
- /**
- * Update symbol properties
- * @param {module:echarts/data/List} data
- * @param {number} idx
- */
- symbolProto.updateData = function (data, idx) {
- var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
- var seriesModel = data.hostModel;
- var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
- if (symbolType !== this._symbolType) {
- this._createSymbol(symbolType, data, idx);
- }
- else {
- var symbolPath = this.childAt(0);
- graphic.updateProps(symbolPath, {
- scale: symbolSize
- }, seriesModel);
- }
- this._updateCommon(data, idx, symbolSize);
-
- this._seriesModel = seriesModel;
- };
-
- // Update common properties
- var normalStyleAccessPath = ['itemStyle', 'normal'];
- var emphasisStyleAccessPath = ['itemStyle', 'emphasis'];
- var normalLabelAccessPath = ['label', 'normal'];
- var emphasisLabelAccessPath = ['label', 'emphasis'];
-
- symbolProto._updateCommon = function (data, idx, symbolSize) {
- var symbolPath = this.childAt(0);
- var seriesModel = data.hostModel;
- var itemModel = data.getItemModel(idx);
- var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath);
- var color = data.getItemVisual(idx, 'color');
-
- var hoverStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle();
-
- symbolPath.rotation = itemModel.getShallow('symbolRotate') * Math.PI / 180 || 0;
-
- var symbolOffset = itemModel.getShallow('symbolOffset');
- if (symbolOffset) {
- var pos = symbolPath.position;
- pos[0] = numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);
- pos[1] = numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);
- }
-
- symbolPath.setColor(color);
-
- zrUtil.extend(
- symbolPath.style,
- // Color must be excluded.
- // Because symbol provide setColor individually to set fill and stroke
- normalItemStyleModel.getItemStyle(['color'])
- );
-
- var labelModel = itemModel.getModel(normalLabelAccessPath);
- var hoverLabelModel = itemModel.getModel(emphasisLabelAccessPath);
-
- var elStyle = symbolPath.style;
-
- // Get last value dim
- var dimensions = data.dimensions.slice();
- var valueDim = dimensions.pop();
- var dataType;
- while (
- ((dataType = data.getDimensionInfo(valueDim).type) === 'ordinal')
- || (dataType === 'time')
- ) {
- valueDim = dimensions.pop();
- }
-
- if (labelModel.get('show')) {
- graphic.setText(elStyle, labelModel, color);
- elStyle.text = zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'normal'),
- data.get(valueDim, idx)
- );
- }
- else {
- elStyle.text = '';
- }
-
- if (hoverLabelModel.getShallow('show')) {
- graphic.setText(hoverStyle, hoverLabelModel, color);
- hoverStyle.text = zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'emphasis'),
- data.get(valueDim, idx)
- );
- }
- else {
- hoverStyle.text = '';
- }
-
- var size = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
-
- symbolPath.off('mouseover')
- .off('mouseout')
- .off('emphasis')
- .off('normal');
-
- graphic.setHoverStyle(symbolPath, hoverStyle);
-
- if (itemModel.getShallow('hoverAnimation')) {
- var onEmphasis = function() {
- var ratio = size[1] / size[0];
- this.animateTo({
- scale: [
- Math.max(size[0] * 1.1, size[0] + 3),
- Math.max(size[1] * 1.1, size[1] + 3 * ratio)
- ]
- }, 400, 'elasticOut');
- };
- var onNormal = function() {
- this.animateTo({
- scale: size
- }, 400, 'elasticOut');
- };
- symbolPath.on('mouseover', onEmphasis)
- .on('mouseout', onNormal)
- .on('emphasis', onEmphasis)
- .on('normal', onNormal);
- }
- };
-
- symbolProto.fadeOut = function (cb) {
- var symbolPath = this.childAt(0);
- // Not show text when animating
- symbolPath.style.text = '';
- graphic.updateProps(symbolPath, {
- scale: [0, 0]
- }, this._seriesModel, cb);
- };
-
- zrUtil.inherits(Symbol, graphic.Group);
-
- module.exports = Symbol;
-
-
-/***/ },
-/* 100 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- // Symbol factory
-
-
- var graphic = __webpack_require__(42);
- var BoundingRect = __webpack_require__(15);
-
- /**
- * Triangle shape
- * @inner
- */
- var Triangle = graphic.extendShape({
- type: 'triangle',
- shape: {
- cx: 0,
- cy: 0,
- width: 0,
- height: 0
- },
- buildPath: function (path, shape) {
- var cx = shape.cx;
- var cy = shape.cy;
- var width = shape.width / 2;
- var height = shape.height / 2;
- path.moveTo(cx, cy - height);
- path.lineTo(cx + width, cy + height);
- path.lineTo(cx - width, cy + height);
- path.closePath();
- }
- });
- /**
- * Diamond shape
- * @inner
- */
- var Diamond = graphic.extendShape({
- type: 'diamond',
- shape: {
- cx: 0,
- cy: 0,
- width: 0,
- height: 0
- },
- buildPath: function (path, shape) {
- var cx = shape.cx;
- var cy = shape.cy;
- var width = shape.width / 2;
- var height = shape.height / 2;
- path.moveTo(cx, cy - height);
- path.lineTo(cx + width, cy);
- path.lineTo(cx, cy + height);
- path.lineTo(cx - width, cy);
- path.closePath();
- }
- });
-
- /**
- * Pin shape
- * @inner
- */
- var Pin = graphic.extendShape({
- type: 'pin',
- shape: {
- // x, y on the cusp
- x: 0,
- y: 0,
- width: 0,
- height: 0
- },
-
- buildPath: function (path, shape) {
- var x = shape.x;
- var y = shape.y;
- var w = shape.width / 5 * 3;
- // Height must be larger than width
- var h = Math.max(w, shape.height);
- var r = w / 2;
-
- // Dist on y with tangent point and circle center
- var dy = r * r / (h - r);
- var cy = y - h + r + dy;
- var angle = Math.asin(dy / r);
- // Dist on x with tangent point and circle center
- var dx = Math.cos(angle) * r;
-
- var tanX = Math.sin(angle);
- var tanY = Math.cos(angle);
-
- path.arc(
- x, cy, r,
- Math.PI - angle,
- Math.PI * 2 + angle
- );
-
- var cpLen = r * 0.6;
- var cpLen2 = r * 0.7;
- path.bezierCurveTo(
- x + dx - tanX * cpLen, cy + dy + tanY * cpLen,
- x, y - cpLen2,
- x, y
- );
- path.bezierCurveTo(
- x, y - cpLen2,
- x - dx + tanX * cpLen, cy + dy + tanY * cpLen,
- x - dx, cy + dy
- );
- path.closePath();
- }
- });
-
- /**
- * Arrow shape
- * @inner
- */
- var Arrow = graphic.extendShape({
-
- type: 'arrow',
-
- shape: {
- x: 0,
- y: 0,
- width: 0,
- height: 0
- },
-
- buildPath: function (ctx, shape) {
- var height = shape.height;
- var width = shape.width;
- var x = shape.x;
- var y = shape.y;
- var dx = width / 3 * 2;
- ctx.moveTo(x, y);
- ctx.lineTo(x + dx, y + height);
- ctx.lineTo(x, y + height / 4 * 3);
- ctx.lineTo(x - dx, y + height);
- ctx.lineTo(x, y);
- ctx.closePath();
- }
- });
-
- /**
- * Map of path contructors
- * @type {Object.<string, module:zrender/graphic/Path>}
- */
- var symbolCtors = {
- line: graphic.Line,
-
- rect: graphic.Rect,
-
- roundRect: graphic.Rect,
-
- square: graphic.Rect,
-
- circle: graphic.Circle,
-
- diamond: Diamond,
-
- pin: Pin,
-
- arrow: Arrow,
-
- triangle: Triangle
- };
-
- var symbolShapeMakers = {
-
- line: function (x, y, w, h, shape) {
- // FIXME
- shape.x1 = x;
- shape.y1 = y + h / 2;
- shape.x2 = x + w;
- shape.y2 = y + h / 2;
- },
-
- rect: function (x, y, w, h, shape) {
- shape.x = x;
- shape.y = y;
- shape.width = w;
- shape.height = h;
- },
-
- roundRect: function (x, y, w, h, shape) {
- shape.x = x;
- shape.y = y;
- shape.width = w;
- shape.height = h;
- shape.r = Math.min(w, h) / 4;
- },
-
- square: function (x, y, w, h, shape) {
- var size = Math.min(w, h);
- shape.x = x;
- shape.y = y;
- shape.width = size;
- shape.height = size;
- },
-
- circle: function (x, y, w, h, shape) {
- // Put circle in the center of square
- shape.cx = x + w / 2;
- shape.cy = y + h / 2;
- shape.r = Math.min(w, h) / 2;
- },
-
- diamond: function (x, y, w, h, shape) {
- shape.cx = x + w / 2;
- shape.cy = y + h / 2;
- shape.width = w;
- shape.height = h;
- },
-
- pin: function (x, y, w, h, shape) {
- shape.x = x + w / 2;
- shape.y = y + h / 2;
- shape.width = w;
- shape.height = h;
- },
-
- arrow: function (x, y, w, h, shape) {
- shape.x = x + w / 2;
- shape.y = y + h / 2;
- shape.width = w;
- shape.height = h;
- },
-
- triangle: function (x, y, w, h, shape) {
- shape.cx = x + w / 2;
- shape.cy = y + h / 2;
- shape.width = w;
- shape.height = h;
- }
- };
-
- var symbolBuildProxies = {};
- for (var name in symbolCtors) {
- symbolBuildProxies[name] = new symbolCtors[name]();
- }
-
- var Symbol = graphic.extendShape({
-
- type: 'symbol',
-
- shape: {
- symbolType: '',
- x: 0,
- y: 0,
- width: 0,
- height: 0
- },
-
- beforeBrush: function () {
- var style = this.style;
- var shape = this.shape;
- // FIXME
- if (shape.symbolType === 'pin' && style.textPosition === 'inside') {
- style.textPosition = ['50%', '40%'];
- style.textAlign = 'center';
- style.textVerticalAlign = 'middle';
- }
- },
-
- buildPath: function (ctx, shape) {
- var symbolType = shape.symbolType;
- var proxySymbol = symbolBuildProxies[symbolType];
- if (shape.symbolType !== 'none') {
- if (!proxySymbol) {
- // Default rect
- symbolType = 'rect';
- proxySymbol = symbolBuildProxies[symbolType];
- }
- symbolShapeMakers[symbolType](
- shape.x, shape.y, shape.width, shape.height, proxySymbol.shape
- );
- proxySymbol.buildPath(ctx, proxySymbol.shape);
- }
- }
- });
-
- // Provide setColor helper method to avoid determine if set the fill or stroke outside
- var symbolPathSetColor = function (color) {
- if (this.type !== 'image') {
- var symbolStyle = this.style;
- var symbolShape = this.shape;
- if (symbolShape && symbolShape.symbolType === 'line') {
- symbolStyle.stroke = color;
- }
- else if (this.__isEmptyBrush) {
- symbolStyle.stroke = color;
- symbolStyle.fill = '#fff';
- }
- else {
- // FIXME 判断图形默认是填充还是描边,使用 onlyStroke ?
- symbolStyle.fill && (symbolStyle.fill = color);
- symbolStyle.stroke && (symbolStyle.stroke = color);
- }
- this.dirty();
- }
- };
-
- var symbolUtil = {
- /**
- * Create a symbol element with given symbol configuration: shape, x, y, width, height, color
- * @param {string} symbolType
- * @param {number} x
- * @param {number} y
- * @param {number} w
- * @param {number} h
- * @param {string} color
- */
- createSymbol: function (symbolType, x, y, w, h, color) {
- var isEmpty = symbolType.indexOf('empty') === 0;
- if (isEmpty) {
- symbolType = symbolType.substr(5, 1).toLowerCase() + symbolType.substr(6);
- }
- var symbolPath;
-
- if (symbolType.indexOf('image://') === 0) {
- symbolPath = new graphic.Image({
- style: {
- image: symbolType.slice(8),
- x: x,
- y: y,
- width: w,
- height: h
- }
- });
- }
- else if (symbolType.indexOf('path://') === 0) {
- symbolPath = graphic.makePath(symbolType.slice(7), {}, new BoundingRect(x, y, w, h));
- }
- else {
- symbolPath = new Symbol({
- shape: {
- symbolType: symbolType,
- x: x,
- y: y,
- width: w,
- height: h
- }
- });
- }
-
- symbolPath.__isEmptyBrush = isEmpty;
-
- symbolPath.setColor = symbolPathSetColor;
-
- symbolPath.setColor(color);
-
- return symbolPath;
- }
- };
-
- module.exports = symbolUtil;
-
-
-/***/ },
-/* 101 */
-/***/ function(module, exports) {
-
-
-
- // var arrayDiff = require('zrender/lib/core/arrayDiff');
- // 'zrender/core/arrayDiff' has been used before, but it did
- // not do well in performance when roam with fixed dataZoom window.
-
- function sign(val) {
- return val >= 0 ? 1 : -1;
- }
-
- function getStackedOnPoint(coordSys, data, idx) {
- var baseAxis = coordSys.getBaseAxis();
- var valueAxis = coordSys.getOtherAxis(baseAxis);
- var valueStart = baseAxis.onZero
- ? 0 : valueAxis.scale.getExtent()[0];
-
- var valueDim = valueAxis.dim;
- var baseDataOffset = valueDim === 'x' || valueDim === 'radius' ? 1 : 0;
-
- var stackedOnSameSign;
- var stackedOn = data.stackedOn;
- var val = data.get(valueDim, idx);
- // Find first stacked value with same sign
- while (stackedOn &&
- sign(stackedOn.get(valueDim, idx)) === sign(val)
- ) {
- stackedOnSameSign = stackedOn;
- break;
- }
- var stackedData = [];
- stackedData[baseDataOffset] = data.get(baseAxis.dim, idx);
- stackedData[1 - baseDataOffset] = stackedOnSameSign
- ? stackedOnSameSign.get(valueDim, idx, true) : valueStart;
-
- return coordSys.dataToPoint(stackedData);
- }
-
- // function convertToIntId(newIdList, oldIdList) {
- // // Generate int id instead of string id.
- // // Compare string maybe slow in score function of arrDiff
-
- // // Assume id in idList are all unique
- // var idIndicesMap = {};
- // var idx = 0;
- // for (var i = 0; i < newIdList.length; i++) {
- // idIndicesMap[newIdList[i]] = idx;
- // newIdList[i] = idx++;
- // }
- // for (var i = 0; i < oldIdList.length; i++) {
- // var oldId = oldIdList[i];
- // // Same with newIdList
- // if (idIndicesMap[oldId]) {
- // oldIdList[i] = idIndicesMap[oldId];
- // }
- // else {
- // oldIdList[i] = idx++;
- // }
- // }
- // }
-
- function diffData(oldData, newData) {
- var diffResult = [];
-
- newData.diff(oldData)
- .add(function (idx) {
- diffResult.push({cmd: '+', idx: idx});
- })
- .update(function (newIdx, oldIdx) {
- diffResult.push({cmd: '=', idx: oldIdx, idx1: newIdx});
- })
- .remove(function (idx) {
- diffResult.push({cmd: '-', idx: idx});
- })
- .execute();
-
- return diffResult;
- }
-
- module.exports = function (
- oldData, newData,
- oldStackedOnPoints, newStackedOnPoints,
- oldCoordSys, newCoordSys
- ) {
- var diff = diffData(oldData, newData);
-
- // var newIdList = newData.mapArray(newData.getId);
- // var oldIdList = oldData.mapArray(oldData.getId);
-
- // convertToIntId(newIdList, oldIdList);
-
- // // FIXME One data ?
- // diff = arrayDiff(oldIdList, newIdList);
-
- var currPoints = [];
- var nextPoints = [];
- // Points for stacking base line
- var currStackedPoints = [];
- var nextStackedPoints = [];
-
- var status = [];
- var sortedIndices = [];
- var rawIndices = [];
- var dims = newCoordSys.dimensions;
- for (var i = 0; i < diff.length; i++) {
- var diffItem = diff[i];
- var pointAdded = true;
-
- // FIXME, animation is not so perfect when dataZoom window moves fast
- // Which is in case remvoing or add more than one data in the tail or head
- switch (diffItem.cmd) {
- case '=':
- var currentPt = oldData.getItemLayout(diffItem.idx);
- var nextPt = newData.getItemLayout(diffItem.idx1);
- // If previous data is NaN, use next point directly
- if (isNaN(currentPt[0]) || isNaN(currentPt[1])) {
- currentPt = nextPt.slice();
- }
- currPoints.push(currentPt);
- nextPoints.push(nextPt);
-
- currStackedPoints.push(oldStackedOnPoints[diffItem.idx]);
- nextStackedPoints.push(newStackedOnPoints[diffItem.idx1]);
-
- rawIndices.push(newData.getRawIndex(diffItem.idx1));
- break;
- case '+':
- var idx = diffItem.idx;
- currPoints.push(
- oldCoordSys.dataToPoint([
- newData.get(dims[0], idx, true), newData.get(dims[1], idx, true)
- ])
- );
-
- nextPoints.push(newData.getItemLayout(idx).slice());
-
- currStackedPoints.push(
- getStackedOnPoint(oldCoordSys, newData, idx)
- );
- nextStackedPoints.push(newStackedOnPoints[idx]);
-
- rawIndices.push(newData.getRawIndex(idx));
- break;
- case '-':
- var idx = diffItem.idx;
- var rawIndex = oldData.getRawIndex(idx);
- // Data is replaced. In the case of dynamic data queue
- // FIXME FIXME FIXME
- if (rawIndex !== idx) {
- currPoints.push(oldData.getItemLayout(idx));
- nextPoints.push(newCoordSys.dataToPoint([
- oldData.get(dims[0], idx, true), oldData.get(dims[1], idx, true)
- ]));
-
- currStackedPoints.push(oldStackedOnPoints[idx]);
- nextStackedPoints.push(
- getStackedOnPoint(
- newCoordSys, oldData, idx
- )
- );
-
- rawIndices.push(rawIndex);
- }
- else {
- pointAdded = false;
- }
- }
-
- // Original indices
- if (pointAdded) {
- status.push(diffItem);
- sortedIndices.push(sortedIndices.length);
- }
- }
-
- // Diff result may be crossed if all items are changed
- // Sort by data index
- sortedIndices.sort(function (a, b) {
- return rawIndices[a] - rawIndices[b];
- });
-
- var sortedCurrPoints = [];
- var sortedNextPoints = [];
-
- var sortedCurrStackedPoints = [];
- var sortedNextStackedPoints = [];
-
- var sortedStatus = [];
- for (var i = 0; i < sortedIndices.length; i++) {
- var idx = sortedIndices[i];
- sortedCurrPoints[i] = currPoints[idx];
- sortedNextPoints[i] = nextPoints[idx];
-
- sortedCurrStackedPoints[i] = currStackedPoints[idx];
- sortedNextStackedPoints[i] = nextStackedPoints[idx];
-
- sortedStatus[i] = status[idx];
- }
-
- return {
- current: sortedCurrPoints,
- next: sortedNextPoints,
-
- stackedOnCurrent: sortedCurrStackedPoints,
- stackedOnNext: sortedNextStackedPoints,
-
- status: sortedStatus
- };
- };
-
-
-/***/ },
-/* 102 */
-/***/ function(module, exports, __webpack_require__) {
-
- // Poly path support NaN point
-
-
- var Path = __webpack_require__(44);
- var vec2 = __webpack_require__(16);
-
- var vec2Min = vec2.min;
- var vec2Max = vec2.max;
-
- var scaleAndAdd = vec2.scaleAndAdd;
- var v2Copy = vec2.copy;
-
- // Temporary variable
- var v = [];
- var cp0 = [];
- var cp1 = [];
-
- function drawSegment(
- ctx, points, start, stop, len,
- dir, smoothMin, smoothMax, smooth, smoothMonotone
- ) {
- var idx = start;
- for (var k = 0; k < len; k++) {
- var p = points[idx];
- if (idx >= stop || idx < 0 || isNaN(p[0]) || isNaN(p[1])) {
- break;
- }
-
- if (idx === start) {
- ctx[dir > 0 ? 'moveTo' : 'lineTo'](p[0], p[1]);
- v2Copy(cp0, p);
- }
- else {
- if (smooth > 0) {
- var prevIdx = idx - dir;
- var nextIdx = idx + dir;
-
- var ratioNextSeg = 0.5;
- var prevP = points[prevIdx];
- var nextP = points[nextIdx];
- // Last point
- if ((dir > 0 && (idx === len - 1 || isNaN(nextP[0]) || isNaN(nextP[1])))
- || (dir <= 0 && (idx === 0 || isNaN(nextP[0]) || isNaN(nextP[1])))
- ) {
- v2Copy(cp1, p);
- }
- else {
- // If next data is null
- if (isNaN(nextP[0]) || isNaN(nextP[1])) {
- nextP = p;
- }
-
- vec2.sub(v, nextP, prevP);
-
- var lenPrevSeg;
- var lenNextSeg;
- if (smoothMonotone === 'x' || smoothMonotone === 'y') {
- var dim = smoothMonotone === 'x' ? 0 : 1;
- lenPrevSeg = Math.abs(p[dim] - prevP[dim]);
- lenNextSeg = Math.abs(p[dim] - nextP[dim]);
- }
- else {
- lenPrevSeg = vec2.dist(p, prevP);
- lenNextSeg = vec2.dist(p, nextP);
- }
-
- // Use ratio of seg length
- ratioNextSeg = lenNextSeg / (lenNextSeg + lenPrevSeg);
-
- scaleAndAdd(cp1, p, v, -smooth * (1 - ratioNextSeg));
- }
- // Smooth constraint
- vec2Min(cp0, cp0, smoothMax);
- vec2Max(cp0, cp0, smoothMin);
- vec2Min(cp1, cp1, smoothMax);
- vec2Max(cp1, cp1, smoothMin);
-
- ctx.bezierCurveTo(
- cp0[0], cp0[1],
- cp1[0], cp1[1],
- p[0], p[1]
- );
- // cp0 of next segment
- scaleAndAdd(cp0, p, v, smooth * ratioNextSeg);
- }
- else {
- ctx.lineTo(p[0], p[1]);
- }
- }
-
- idx += dir;
- }
-
- return k;
- }
-
- function getBoundingBox(points, smoothConstraint) {
- var ptMin = [Infinity, Infinity];
- var ptMax = [-Infinity, -Infinity];
- if (smoothConstraint) {
- for (var i = 0; i < points.length; i++) {
- var pt = points[i];
- if (pt[0] < ptMin[0]) { ptMin[0] = pt[0]; }
- if (pt[1] < ptMin[1]) { ptMin[1] = pt[1]; }
- if (pt[0] > ptMax[0]) { ptMax[0] = pt[0]; }
- if (pt[1] > ptMax[1]) { ptMax[1] = pt[1]; }
- }
- }
- return {
- min: smoothConstraint ? ptMin : ptMax,
- max: smoothConstraint ? ptMax : ptMin
- };
- }
-
- module.exports = {
-
- Polyline: Path.extend({
-
- type: 'ec-polyline',
-
- shape: {
- points: [],
-
- smooth: 0,
-
- smoothConstraint: true,
-
- smoothMonotone: null
- },
-
- style: {
- fill: null,
-
- stroke: '#000'
- },
-
- buildPath: function (ctx, shape) {
- var points = shape.points;
-
- var i = 0;
- var len = points.length;
-
- var result = getBoundingBox(points, shape.smoothConstraint);
-
- while (i < len) {
- i += drawSegment(
- ctx, points, i, len, len,
- 1, result.min, result.max, shape.smooth,
- shape.smoothMonotone
- ) + 1;
- }
- }
- }),
-
- Polygon: Path.extend({
-
- type: 'ec-polygon',
-
- shape: {
- points: [],
-
- // Offset between stacked base points and points
- stackedOnPoints: [],
-
- smooth: 0,
-
- stackedOnSmooth: 0,
-
- smoothConstraint: true,
-
- smoothMonotone: null
- },
-
- buildPath: function (ctx, shape) {
- var points = shape.points;
- var stackedOnPoints = shape.stackedOnPoints;
-
- var i = 0;
- var len = points.length;
- var smoothMonotone = shape.smoothMonotone;
- var bbox = getBoundingBox(points, shape.smoothConstraint);
- var stackedOnBBox = getBoundingBox(stackedOnPoints, shape.smoothConstraint);
- while (i < len) {
- var k = drawSegment(
- ctx, points, i, len, len,
- 1, bbox.min, bbox.max, shape.smooth,
- smoothMonotone
- );
- drawSegment(
- ctx, stackedOnPoints, i + k - 1, len, k,
- -1, stackedOnBBox.min, stackedOnBBox.max, shape.stackedOnSmooth,
- smoothMonotone
- );
- i += k + 1;
-
- ctx.closePath();
- }
- }
- })
- };
-
-
-/***/ },
-/* 103 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (seriesType, defaultSymbolType, legendSymbol, ecModel, api) {
-
- // Encoding visual for all series include which is filtered for legend drawing
- ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {
- var data = seriesModel.getData();
-
- var symbolType = seriesModel.get('symbol') || defaultSymbolType;
- var symbolSize = seriesModel.get('symbolSize');
-
- data.setVisual({
- legendSymbol: legendSymbol || symbolType,
- symbol: symbolType,
- symbolSize: symbolSize
- });
-
- // Only visible series has each data be visual encoded
- if (!ecModel.isSeriesFiltered(seriesModel)) {
- if (typeof symbolSize === 'function') {
- data.each(function (idx) {
- var rawValue = seriesModel.getRawValue(idx);
- // FIXME
- var params = seriesModel.getDataParams(idx);
- data.setItemVisual(idx, 'symbolSize', symbolSize(rawValue, params));
- });
- }
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- var itemSymbolType = itemModel.get('symbol', true);
- var itemSymbolSize = itemModel.get('symbolSize', true);
- // If has item symbol
- if (itemSymbolType != null) {
- data.setItemVisual(idx, 'symbol', itemSymbolType);
- }
- if (itemSymbolSize != null) {
- // PENDING Transform symbolSize ?
- data.setItemVisual(idx, 'symbolSize', itemSymbolSize);
- }
- });
- }
- });
- };
-
-
-/***/ },
-/* 104 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (seriesType, ecModel, api) {
- ecModel.eachSeriesByType(seriesType, function (seriesModel) {
- var data = seriesModel.getData();
- var coordSys = seriesModel.coordinateSystem;
-
- var dims = coordSys.dimensions;
- data.each(dims, function (x, y, idx) {
- var point;
- if (!isNaN(x) && !isNaN(y)) {
- point = coordSys.dataToPoint([x, y]);
- }
- else {
- // Also {Array.<number>}, not undefined to avoid if...else... statement
- point = [NaN, NaN];
- }
-
- data.setItemLayout(idx, point);
- }, true);
- });
- };
-
-
-/***/ },
-/* 105 */
-/***/ function(module, exports) {
-
-
- var samplers = {
- average: function (frame) {
- var sum = 0;
- var count = 0;
- for (var i = 0; i < frame.length; i++) {
- if (!isNaN(frame[i])) {
- sum += frame[i];
- count++;
- }
- }
- // Return NaN if count is 0
- return count === 0 ? NaN : sum / count;
- },
- sum: function (frame) {
- var sum = 0;
- for (var i = 0; i < frame.length; i++) {
- // Ignore NaN
- sum += frame[i] || 0;
- }
- return sum;
- },
- max: function (frame) {
- var max = -Infinity;
- for (var i = 0; i < frame.length; i++) {
- frame[i] > max && (max = frame[i]);
- }
- return max;
- },
- min: function (frame) {
- var min = Infinity;
- for (var i = 0; i < frame.length; i++) {
- frame[i] < min && (min = frame[i]);
- }
- return min;
- }
- };
-
- var indexSampler = function (frame, value) {
- return Math.round(frame.length / 2);
- };
- module.exports = function (seriesType, ecModel, api) {
- ecModel.eachSeriesByType(seriesType, function (seriesModel) {
- var data = seriesModel.getData();
- var sampling = seriesModel.get('sampling');
- var coordSys = seriesModel.coordinateSystem;
- // Only cartesian2d support down sampling
- if (coordSys.type === 'cartesian2d' && sampling) {
- var baseAxis = coordSys.getBaseAxis();
- var valueAxis = coordSys.getOtherAxis(baseAxis);
- var extent = baseAxis.getExtent();
- // Coordinste system has been resized
- var size = extent[1] - extent[0];
- var rate = Math.round(data.count() / size);
- if (rate > 1) {
- var sampler;
- if (typeof sampling === 'string') {
- sampler = samplers[sampling];
- }
- else if (typeof sampling === 'function') {
- sampler = sampling;
- }
- if (sampler) {
- data = data.downSample(
- valueAxis.dim, 1 / rate, sampler, indexSampler
- );
- seriesModel.setData(data);
- }
- }
- }
- }, this);
- };
-
-
-/***/ },
-/* 106 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
-
- __webpack_require__(107);
-
- __webpack_require__(124);
-
- // Grid view
- __webpack_require__(1).extendComponentView({
-
- type: 'grid',
-
- render: function (gridModel, ecModel) {
- this.group.removeAll();
- if (gridModel.get('show')) {
- this.group.add(new graphic.Rect({
- shape:gridModel.coordinateSystem.getRect(),
- style: zrUtil.defaults({
- fill: gridModel.get('backgroundColor')
- }, gridModel.getItemStyle()),
- silent: true
- }));
- }
- }
- });
-
-
-/***/ },
-/* 107 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Grid is a region which contains at most 4 cartesian systems
- *
- * TODO Default cartesian
- */
- var factory = exports;
-
- var layout = __webpack_require__(21);
- var axisHelper = __webpack_require__(108);
-
- var zrUtil = __webpack_require__(3);
- var Cartesian2D = __webpack_require__(114);
- var Axis2D = __webpack_require__(116);
-
- var each = zrUtil.each;
-
- var ifAxisCrossZero = axisHelper.ifAxisCrossZero;
- var niceScaleExtent = axisHelper.niceScaleExtent;
-
- // 依赖 GridModel, AxisModel 做预处理
- __webpack_require__(119);
-
- /**
- * Check if the axis is used in the specified grid
- * @inner
- */
- function isAxisUsedInTheGrid(axisModel, gridModel, ecModel) {
- return ecModel.getComponent('grid', axisModel.get('gridIndex')) === gridModel;
- }
-
- function getLabelUnionRect(axis) {
- var axisModel = axis.model;
- var labels = axisModel.getFormattedLabels();
- var rect;
- var step = 1;
- var labelCount = labels.length;
- if (labelCount > 40) {
- // Simple optimization for large amount of labels
- step = Math.ceil(labelCount / 40);
- }
- for (var i = 0; i < labelCount; i += step) {
- if (!axis.isLabelIgnored(i)) {
- var singleRect = axisModel.getTextRect(labels[i]);
- // FIXME consider label rotate
- rect ? rect.union(singleRect) : (rect = singleRect);
- }
- }
- return rect;
- }
-
- function Grid(gridModel, ecModel, api) {
- /**
- * @type {Object.<string, module:echarts/coord/cartesian/Cartesian2D>}
- * @private
- */
- this._coordsMap = {};
-
- /**
- * @type {Array.<module:echarts/coord/cartesian/Cartesian>}
- * @private
- */
- this._coordsList = [];
-
- /**
- * @type {Object.<string, module:echarts/coord/cartesian/Axis2D>}
- * @private
- */
- this._axesMap = {};
-
- /**
- * @type {Array.<module:echarts/coord/cartesian/Axis2D>}
- * @private
- */
- this._axesList = [];
-
- this._initCartesian(gridModel, ecModel, api);
-
- this._model = gridModel;
- }
-
- var gridProto = Grid.prototype;
-
- gridProto.type = 'grid';
-
- gridProto.getRect = function () {
- return this._rect;
- };
-
- gridProto.update = function (ecModel, api) {
-
- var axesMap = this._axesMap;
-
- this._updateScale(ecModel, this._model);
-
- function ifAxisCanNotOnZero(otherAxisDim) {
- var axes = axesMap[otherAxisDim];
- for (var idx in axes) {
- var axis = axes[idx];
- if (axis && (axis.type === 'category' || !ifAxisCrossZero(axis))) {
- return true;
- }
- }
- return false;
- }
-
- each(axesMap.x, function (xAxis) {
- niceScaleExtent(xAxis, xAxis.model);
- });
- each(axesMap.y, function (yAxis) {
- niceScaleExtent(yAxis, yAxis.model);
- });
- // Fix configuration
- each(axesMap.x, function (xAxis) {
- // onZero can not be enabled in these two situations
- // 1. When any other axis is a category axis
- // 2. When any other axis not across 0 point
- if (ifAxisCanNotOnZero('y')) {
- xAxis.onZero = false;
- }
- });
- each(axesMap.y, function (yAxis) {
- if (ifAxisCanNotOnZero('x')) {
- yAxis.onZero = false;
- }
- });
-
- // Resize again if containLabel is enabled
- // FIXME It may cause getting wrong grid size in data processing stage
- this.resize(this._model, api);
- };
-
- /**
- * Resize the grid
- * @param {module:echarts/coord/cartesian/GridModel} gridModel
- * @param {module:echarts/ExtensionAPI} api
- */
- gridProto.resize = function (gridModel, api) {
-
- var gridRect = layout.getLayoutRect(
- gridModel.getBoxLayoutParams(), {
- width: api.getWidth(),
- height: api.getHeight()
- });
-
- this._rect = gridRect;
-
- var axesList = this._axesList;
-
- adjustAxes();
-
- // Minus label size
- if (gridModel.get('containLabel')) {
- each(axesList, function (axis) {
- if (!axis.model.get('axisLabel.inside')) {
- var labelUnionRect = getLabelUnionRect(axis);
- if (labelUnionRect) {
- var dim = axis.isHorizontal() ? 'height' : 'width';
- var margin = axis.model.get('axisLabel.margin');
- gridRect[dim] -= labelUnionRect[dim] + margin;
- if (axis.position === 'top') {
- gridRect.y += labelUnionRect.height + margin;
- }
- else if (axis.position === 'left') {
- gridRect.x += labelUnionRect.width + margin;
- }
- }
- }
- });
-
- adjustAxes();
- }
-
- function adjustAxes() {
- each(axesList, function (axis) {
- var isHorizontal = axis.isHorizontal();
- var extent = isHorizontal ? [0, gridRect.width] : [0, gridRect.height];
- var idx = axis.inverse ? 1 : 0;
- axis.setExtent(extent[idx], extent[1 - idx]);
- updateAxisTransfrom(axis, isHorizontal ? gridRect.x : gridRect.y);
- });
- }
- };
-
- /**
- * @param {string} axisType
- * @param {ndumber} [axisIndex]
- */
- gridProto.getAxis = function (axisType, axisIndex) {
- var axesMapOnDim = this._axesMap[axisType];
- if (axesMapOnDim != null) {
- if (axisIndex == null) {
- // Find first axis
- for (var name in axesMapOnDim) {
- return axesMapOnDim[name];
- }
- }
- return axesMapOnDim[axisIndex];
- }
- };
-
- gridProto.getCartesian = function (xAxisIndex, yAxisIndex) {
- var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
- return this._coordsMap[key];
- };
-
- /**
- * Initialize cartesian coordinate systems
- * @private
- */
- gridProto._initCartesian = function (gridModel, ecModel, api) {
- var axisPositionUsed = {
- left: false,
- right: false,
- top: false,
- bottom: false
- };
-
- var axesMap = {
- x: {},
- y: {}
- };
- var axesCount = {
- x: 0,
- y: 0
- };
-
- /// Create axis
- ecModel.eachComponent('xAxis', createAxisCreator('x'), this);
- ecModel.eachComponent('yAxis', createAxisCreator('y'), this);
-
- if (!axesCount.x || !axesCount.y) {
- // Roll back when there no either x or y axis
- this._axesMap = {};
- this._axesList = [];
- return;
- }
-
- this._axesMap = axesMap;
-
- /// Create cartesian2d
- each(axesMap.x, function (xAxis, xAxisIndex) {
- each(axesMap.y, function (yAxis, yAxisIndex) {
- var key = 'x' + xAxisIndex + 'y' + yAxisIndex;
- var cartesian = new Cartesian2D(key);
-
- cartesian.grid = this;
-
- this._coordsMap[key] = cartesian;
- this._coordsList.push(cartesian);
-
- cartesian.addAxis(xAxis);
- cartesian.addAxis(yAxis);
- }, this);
- }, this);
-
- function createAxisCreator(axisType) {
- return function (axisModel, idx) {
- if (!isAxisUsedInTheGrid(axisModel, gridModel, ecModel)) {
- return;
- }
-
- var axisPosition = axisModel.get('position');
- if (axisType === 'x') {
- // Fix position
- if (axisPosition !== 'top' && axisPosition !== 'bottom') {
- // Default bottom of X
- axisPosition = 'bottom';
- }
- if (axisPositionUsed[axisPosition]) {
- axisPosition = axisPosition === 'top' ? 'bottom' : 'top';
- }
- }
- else {
- // Fix position
- if (axisPosition !== 'left' && axisPosition !== 'right') {
- // Default left of Y
- axisPosition = 'left';
- }
- if (axisPositionUsed[axisPosition]) {
- axisPosition = axisPosition === 'left' ? 'right' : 'left';
- }
- }
- axisPositionUsed[axisPosition] = true;
-
- var axis = new Axis2D(
- axisType, axisHelper.createScaleByModel(axisModel),
- [0, 0],
- axisModel.get('type'),
- axisPosition
- );
-
- var isCategory = axis.type === 'category';
- axis.onBand = isCategory && axisModel.get('boundaryGap');
- axis.inverse = axisModel.get('inverse');
-
- axis.onZero = axisModel.get('axisLine.onZero');
-
- // Inject axis into axisModel
- axisModel.axis = axis;
-
- // Inject axisModel into axis
- axis.model = axisModel;
-
- // Index of axis, can be used as key
- axis.index = idx;
-
- this._axesList.push(axis);
-
- axesMap[axisType][idx] = axis;
- axesCount[axisType]++;
- };
- }
- };
-
- /**
- * Update cartesian properties from series
- * @param {module:echarts/model/Option} option
- * @private
- */
- gridProto._updateScale = function (ecModel, gridModel) {
- // Reset scale
- zrUtil.each(this._axesList, function (axis) {
- axis.scale.setExtent(Infinity, -Infinity);
- });
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.get('coordinateSystem') === 'cartesian2d') {
- var xAxisIndex = seriesModel.get('xAxisIndex');
- var yAxisIndex = seriesModel.get('yAxisIndex');
-
- var xAxisModel = ecModel.getComponent('xAxis', xAxisIndex);
- var yAxisModel = ecModel.getComponent('yAxis', yAxisIndex);
-
- if (!isAxisUsedInTheGrid(xAxisModel, gridModel, ecModel)
- || !isAxisUsedInTheGrid(yAxisModel, gridModel, ecModel)
- ) {
- return;
- }
-
- var cartesian = this.getCartesian(xAxisIndex, yAxisIndex);
- var data = seriesModel.getData();
- var xAxis = cartesian.getAxis('x');
- var yAxis = cartesian.getAxis('y');
-
- if (data.type === 'list') {
- unionExtent(data, xAxis, seriesModel);
- unionExtent(data, yAxis, seriesModel);
- }
- }
- }, this);
-
- function unionExtent(data, axis, seriesModel) {
- each(seriesModel.coordDimToDataDim(axis.dim), function (dim) {
- axis.scale.unionExtent(data.getDataExtent(
- dim, axis.scale.type !== 'ordinal'
- ));
- });
- }
- };
-
- /**
- * @inner
- */
- function updateAxisTransfrom(axis, coordBase) {
- var axisExtent = axis.getExtent();
- var axisExtentSum = axisExtent[0] + axisExtent[1];
-
- // Fast transform
- axis.toGlobalCoord = axis.dim === 'x'
- ? function (coord) {
- return coord + coordBase;
- }
- : function (coord) {
- return axisExtentSum - coord + coordBase;
- };
- axis.toLocalCoord = axis.dim === 'x'
- ? function (coord) {
- return coord - coordBase;
- }
- : function (coord) {
- return axisExtentSum - coord + coordBase;
- };
- }
-
- Grid.create = function (ecModel, api) {
- var grids = [];
- ecModel.eachComponent('grid', function (gridModel, idx) {
- var grid = new Grid(gridModel, ecModel, api);
- grid.name = 'grid_' + idx;
- grid.resize(gridModel, api);
-
- gridModel.coordinateSystem = grid;
-
- grids.push(grid);
- });
-
- // Inject the coordinateSystems into seriesModel
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.get('coordinateSystem') !== 'cartesian2d') {
- return;
- }
- var xAxisIndex = seriesModel.get('xAxisIndex');
- // TODO Validate
- var xAxisModel = ecModel.getComponent('xAxis', xAxisIndex);
- var grid = grids[xAxisModel.get('gridIndex')];
- seriesModel.coordinateSystem = grid.getCartesian(
- xAxisIndex, seriesModel.get('yAxisIndex')
- );
- });
-
- return grids;
- };
-
- // For deciding which dimensions to use when creating list data
- Grid.dimensions = Cartesian2D.prototype.dimensions;
-
- __webpack_require__(25).register('cartesian2d', Grid);
-
- module.exports = Grid;
-
-
-/***/ },
-/* 108 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var OrdinalScale = __webpack_require__(109);
- var IntervalScale = __webpack_require__(111);
- __webpack_require__(112);
- __webpack_require__(113);
- var Scale = __webpack_require__(110);
-
- var numberUtil = __webpack_require__(7);
- var zrUtil = __webpack_require__(3);
- var textContain = __webpack_require__(14);
- var axisHelper = {};
-
- /**
- * Get axis scale extent before niced.
- */
- axisHelper.getScaleExtent = function (axis, model) {
- var scale = axis.scale;
- var originalExtent = scale.getExtent();
- var span = originalExtent[1] - originalExtent[0];
- if (scale.type === 'ordinal') {
- // If series has no data, scale extent may be wrong
- if (!isFinite(span)) {
- return [0, 0];
- }
- else {
- return originalExtent;
- }
- }
- var min = model.getMin ? model.getMin() : model.get('min');
- var max = model.getMax ? model.getMax() : model.get('max');
- var crossZero = model.getNeedCrossZero
- ? model.getNeedCrossZero() : !model.get('scale');
- var boundaryGap = model.get('boundaryGap');
- if (!zrUtil.isArray(boundaryGap)) {
- boundaryGap = [boundaryGap || 0, boundaryGap || 0];
- }
- boundaryGap[0] = numberUtil.parsePercent(boundaryGap[0], 1);
- boundaryGap[1] = numberUtil.parsePercent(boundaryGap[1], 1);
- var fixMin = true;
- var fixMax = true;
- // Add boundary gap
- if (min == null) {
- min = originalExtent[0] - boundaryGap[0] * span;
- fixMin = false;
- }
- if (max == null) {
- max = originalExtent[1] + boundaryGap[1] * span;
- fixMax = false;
- }
- // TODO Only one data
- if (min === 'dataMin') {
- min = originalExtent[0];
- }
- if (max === 'dataMax') {
- max = originalExtent[1];
- }
- // Evaluate if axis needs cross zero
- if (crossZero) {
- // Axis is over zero and min is not set
- if (min > 0 && max > 0 && !fixMin) {
- min = 0;
- }
- // Axis is under zero and max is not set
- if (min < 0 && max < 0 && !fixMax) {
- max = 0;
- }
- }
- return [min, max];
- };
-
- axisHelper.niceScaleExtent = function (axis, model) {
- var scale = axis.scale;
- var extent = axisHelper.getScaleExtent(axis, model);
- var fixMin = (model.getMin ? model.getMin() : model.get('min')) != null;
- var fixMax = (model.getMax ? model.getMax() : model.get('max')) != null;
- scale.setExtent(extent[0], extent[1]);
- scale.niceExtent(model.get('splitNumber'), fixMin, fixMax);
-
- // If some one specified the min, max. And the default calculated interval
- // is not good enough. He can specify the interval. It is often appeared
- // in angle axis with angle 0 - 360. Interval calculated in interval scale is hard
- // to be 60.
- // FIXME
- var interval = model.get('interval');
- if (interval != null) {
- scale.setInterval && scale.setInterval(interval);
- }
- };
-
- /**
- * @param {module:echarts/model/Model} model
- * @param {string} [axisType] Default retrieve from model.type
- * @return {module:echarts/scale/*}
- */
- axisHelper.createScaleByModel = function(model, axisType) {
- axisType = axisType || model.get('type');
- if (axisType) {
- switch (axisType) {
- // Buildin scale
- case 'category':
- return new OrdinalScale(
- model.getCategories(), [Infinity, -Infinity]
- );
- case 'value':
- return new IntervalScale();
- // Extended scale, like time and log
- default:
- return (Scale.getClass(axisType) || IntervalScale).create(model);
- }
- }
- };
-
- /**
- * Check if the axis corss 0
- */
- axisHelper.ifAxisCrossZero = function (axis) {
- var dataExtent = axis.scale.getExtent();
- var min = dataExtent[0];
- var max = dataExtent[1];
- return !((min > 0 && max > 0) || (min < 0 && max < 0));
- };
-
- /**
- * @param {Array.<number>} tickCoords In axis self coordinate.
- * @param {Array.<string>} labels
- * @param {string} font
- * @param {boolean} isAxisHorizontal
- * @return {number}
- */
- axisHelper.getAxisLabelInterval = function (tickCoords, labels, font, isAxisHorizontal) {
- // FIXME
- // 不同角的axis和label,不只是horizontal和vertical.
-
- var textSpaceTakenRect;
- var autoLabelInterval = 0;
- var accumulatedLabelInterval = 0;
-
- var step = 1;
- if (labels.length > 40) {
- // Simple optimization for large amount of labels
- step = Math.round(labels.length / 40);
- }
- for (var i = 0; i < tickCoords.length; i += step) {
- var tickCoord = tickCoords[i];
- var rect = textContain.getBoundingRect(
- labels[i], font, 'center', 'top'
- );
- rect[isAxisHorizontal ? 'x' : 'y'] += tickCoord;
- rect[isAxisHorizontal ? 'width' : 'height'] *= 1.5;
- if (!textSpaceTakenRect) {
- textSpaceTakenRect = rect.clone();
- }
- // There is no space for current label;
- else if (textSpaceTakenRect.intersect(rect)) {
- accumulatedLabelInterval++;
- autoLabelInterval = Math.max(autoLabelInterval, accumulatedLabelInterval);
- }
- else {
- textSpaceTakenRect.union(rect);
- // Reset
- accumulatedLabelInterval = 0;
- }
- }
- if (autoLabelInterval === 0 && step > 1) {
- return step;
- }
- return autoLabelInterval * step;
- };
-
- /**
- * @param {Object} axis
- * @param {Function} labelFormatter
- * @return {Array.<string>}
- */
- axisHelper.getFormattedLabels = function (axis, labelFormatter) {
- var scale = axis.scale;
- var labels = scale.getTicksLabels();
- var ticks = scale.getTicks();
- if (typeof labelFormatter === 'string') {
- labelFormatter = (function (tpl) {
- return function (val) {
- return tpl.replace('{value}', val);
- };
- })(labelFormatter);
- return zrUtil.map(labels, labelFormatter);
- }
- else if (typeof labelFormatter === 'function') {
- return zrUtil.map(ticks, function (tick, idx) {
- return labelFormatter(
- axis.type === 'category' ? scale.getLabel(tick) : tick,
- idx
- );
- }, this);
- }
- else {
- return labels;
- }
- };
-
- module.exports = axisHelper;
-
-
-/***/ },
-/* 109 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Linear continuous scale
- * @module echarts/coord/scale/Ordinal
- *
- * http://en.wikipedia.org/wiki/Level_of_measurement
- */
-
- // FIXME only one data
-
-
- var zrUtil = __webpack_require__(3);
- var Scale = __webpack_require__(110);
-
- var scaleProto = Scale.prototype;
-
- var OrdinalScale = Scale.extend({
-
- type: 'ordinal',
-
- init: function (data, extent) {
- this._data = data;
- this._extent = extent || [0, data.length - 1];
- },
-
- parse: function (val) {
- return typeof val === 'string'
- ? zrUtil.indexOf(this._data, val)
- // val might be float.
- : Math.round(val);
- },
-
- contain: function (rank) {
- rank = this.parse(rank);
- return scaleProto.contain.call(this, rank)
- && this._data[rank] != null;
- },
-
- /**
- * Normalize given rank or name to linear [0, 1]
- * @param {number|string} [val]
- * @return {number}
- */
- normalize: function (val) {
- return scaleProto.normalize.call(this, this.parse(val));
- },
-
- scale: function (val) {
- return Math.round(scaleProto.scale.call(this, val));
- },
-
- /**
- * @return {Array}
- */
- getTicks: function () {
- var ticks = [];
- var extent = this._extent;
- var rank = extent[0];
-
- while (rank <= extent[1]) {
- ticks.push(rank);
- rank++;
- }
-
- return ticks;
- },
-
- /**
- * Get item on rank n
- * @param {number} n
- * @return {string}
- */
- getLabel: function (n) {
- return this._data[n];
- },
-
- /**
- * @return {number}
- */
- count: function () {
- return this._extent[1] - this._extent[0] + 1;
- },
-
- niceTicks: zrUtil.noop,
- niceExtent: zrUtil.noop
- });
-
- /**
- * @return {module:echarts/scale/Time}
- */
- OrdinalScale.create = function () {
- return new OrdinalScale();
- };
-
- module.exports = OrdinalScale;
-
-
-/***/ },
-/* 110 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * // Scale class management
- * @module echarts/scale/Scale
- */
-
-
- var clazzUtil = __webpack_require__(9);
-
- function Scale() {
- /**
- * Extent
- * @type {Array.<number>}
- * @protected
- */
- this._extent = [Infinity, -Infinity];
-
- /**
- * Step is calculated in adjustExtent
- * @type {Array.<number>}
- * @protected
- */
- this._interval = 0;
-
- this.init && this.init.apply(this, arguments);
- }
-
- var scaleProto = Scale.prototype;
-
- /**
- * Parse input val to valid inner number.
- * @param {*} val
- * @return {number}
- */
- scaleProto.parse = function (val) {
- // Notice: This would be a trap here, If the implementation
- // of this method depends on extent, and this method is used
- // before extent set (like in dataZoom), it would be wrong.
- // Nevertheless, parse does not depend on extent generally.
- return val;
- };
-
- scaleProto.contain = function (val) {
- var extent = this._extent;
- return val >= extent[0] && val <= extent[1];
- };
-
- /**
- * Normalize value to linear [0, 1], return 0.5 if extent span is 0
- * @param {number} val
- * @return {number}
- */
- scaleProto.normalize = function (val) {
- var extent = this._extent;
- if (extent[1] === extent[0]) {
- return 0.5;
- }
- return (val - extent[0]) / (extent[1] - extent[0]);
- };
-
- /**
- * Scale normalized value
- * @param {number} val
- * @return {number}
- */
- scaleProto.scale = function (val) {
- var extent = this._extent;
- return val * (extent[1] - extent[0]) + extent[0];
- };
-
- /**
- * Set extent from data
- * @param {Array.<number>} other
- */
- scaleProto.unionExtent = function (other) {
- var extent = this._extent;
- other[0] < extent[0] && (extent[0] = other[0]);
- other[1] > extent[1] && (extent[1] = other[1]);
- // not setExtent because in log axis it may transformed to power
- // this.setExtent(extent[0], extent[1]);
- };
-
- /**
- * Get extent
- * @return {Array.<number>}
- */
- scaleProto.getExtent = function () {
- return this._extent.slice();
- };
-
- /**
- * Set extent
- * @param {number} start
- * @param {number} end
- */
- scaleProto.setExtent = function (start, end) {
- var thisExtent = this._extent;
- if (!isNaN(start)) {
- thisExtent[0] = start;
- }
- if (!isNaN(end)) {
- thisExtent[1] = end;
- }
- };
-
- /**
- * @return {Array.<string>}
- */
- scaleProto.getTicksLabels = function () {
- var labels = [];
- var ticks = this.getTicks();
- for (var i = 0; i < ticks.length; i++) {
- labels.push(this.getLabel(ticks[i]));
- }
- return labels;
- };
-
- clazzUtil.enableClassExtend(Scale);
- clazzUtil.enableClassManagement(Scale, {
- registerWhenExtend: true
- });
-
- module.exports = Scale;
-
-
-/***/ },
-/* 111 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Interval scale
- * @module echarts/scale/Interval
- */
-
-
-
- var numberUtil = __webpack_require__(7);
- var formatUtil = __webpack_require__(6);
- var Scale = __webpack_require__(110);
-
- var mathFloor = Math.floor;
- var mathCeil = Math.ceil;
- /**
- * @alias module:echarts/coord/scale/Interval
- * @constructor
- */
- var IntervalScale = Scale.extend({
-
- type: 'interval',
-
- _interval: 0,
-
- setExtent: function (start, end) {
- var thisExtent = this._extent;
- //start,end may be a Number like '25',so...
- if (!isNaN(start)) {
- thisExtent[0] = parseFloat(start);
- }
- if (!isNaN(end)) {
- thisExtent[1] = parseFloat(end);
- }
- },
-
- unionExtent: function (other) {
- var extent = this._extent;
- other[0] < extent[0] && (extent[0] = other[0]);
- other[1] > extent[1] && (extent[1] = other[1]);
-
- // unionExtent may called by it's sub classes
- IntervalScale.prototype.setExtent.call(this, extent[0], extent[1]);
- },
- /**
- * Get interval
- */
- getInterval: function () {
- if (!this._interval) {
- this.niceTicks();
- }
- return this._interval;
- },
-
- /**
- * Set interval
- */
- setInterval: function (interval) {
- this._interval = interval;
- // Dropped auto calculated niceExtent and use user setted extent
- // We assume user wan't to set both interval, min, max to get a better result
- this._niceExtent = this._extent.slice();
- },
-
- /**
- * @return {Array.<number>}
- */
- getTicks: function () {
- if (!this._interval) {
- this.niceTicks();
- }
- var interval = this._interval;
- var extent = this._extent;
- var ticks = [];
-
- // Consider this case: using dataZoom toolbox, zoom and zoom.
- var safeLimit = 10000;
-
- if (interval) {
- var niceExtent = this._niceExtent;
- if (extent[0] < niceExtent[0]) {
- ticks.push(extent[0]);
- }
- var tick = niceExtent[0];
- while (tick <= niceExtent[1]) {
- ticks.push(tick);
- // Avoid rounding error
- tick = numberUtil.round(tick + interval);
- if (ticks.length > safeLimit) {
- return [];
- }
- }
- if (extent[1] > niceExtent[1]) {
- ticks.push(extent[1]);
- }
- }
-
- return ticks;
- },
-
- /**
- * @return {Array.<string>}
- */
- getTicksLabels: function () {
- var labels = [];
- var ticks = this.getTicks();
- for (var i = 0; i < ticks.length; i++) {
- labels.push(this.getLabel(ticks[i]));
- }
- return labels;
- },
-
- /**
- * @param {number} n
- * @return {number}
- */
- getLabel: function (data) {
- return formatUtil.addCommas(data);
- },
-
- /**
- * Update interval and extent of intervals for nice ticks
- *
- * @param {number} [splitNumber = 5] Desired number of ticks
- */
- niceTicks: function (splitNumber) {
- splitNumber = splitNumber || 5;
- var extent = this._extent;
- var span = extent[1] - extent[0];
- if (!isFinite(span)) {
- return;
- }
- // User may set axis min 0 and data are all negative
- // FIXME If it needs to reverse ?
- if (span < 0) {
- span = -span;
- extent.reverse();
- }
-
- // From "Nice Numbers for Graph Labels" of Graphic Gems
- // var niceSpan = numberUtil.nice(span, false);
- var step = numberUtil.nice(span / splitNumber, true);
-
- // Niced extent inside original extent
- var niceExtent = [
- numberUtil.round(mathCeil(extent[0] / step) * step),
- numberUtil.round(mathFloor(extent[1] / step) * step)
- ];
-
- this._interval = step;
- this._niceExtent = niceExtent;
- },
-
- /**
- * Nice extent.
- * @param {number} [splitNumber = 5] Given approx tick number
- * @param {boolean} [fixMin=false]
- * @param {boolean} [fixMax=false]
- */
- niceExtent: function (splitNumber, fixMin, fixMax) {
- var extent = this._extent;
- // If extent start and end are same, expand them
- if (extent[0] === extent[1]) {
- if (extent[0] !== 0) {
- // Expand extent
- var expandSize = extent[0] / 2;
- extent[0] -= expandSize;
- extent[1] += expandSize;
- }
- else {
- extent[1] = 1;
- }
- }
- var span = extent[1] - extent[0];
- // If there are no data and extent are [Infinity, -Infinity]
- if (!isFinite(span)) {
- extent[0] = 0;
- extent[1] = 1;
- }
-
- this.niceTicks(splitNumber);
-
- // var extent = this._extent;
- var interval = this._interval;
-
- if (!fixMin) {
- extent[0] = numberUtil.round(mathFloor(extent[0] / interval) * interval);
- }
- if (!fixMax) {
- extent[1] = numberUtil.round(mathCeil(extent[1] / interval) * interval);
- }
- }
- });
-
- /**
- * @return {module:echarts/scale/Time}
- */
- IntervalScale.create = function () {
- return new IntervalScale();
- };
-
- module.exports = IntervalScale;
-
-
-
-/***/ },
-/* 112 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Interval scale
- * @module echarts/coord/scale/Time
- */
-
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var formatUtil = __webpack_require__(6);
-
- var IntervalScale = __webpack_require__(111);
-
- var intervalScaleProto = IntervalScale.prototype;
-
- var mathCeil = Math.ceil;
- var mathFloor = Math.floor;
- var ONE_DAY = 3600000 * 24;
-
- // FIXME 公用?
- var bisect = function (a, x, lo, hi) {
- while (lo < hi) {
- var mid = lo + hi >>> 1;
- if (a[mid][2] < x) {
- lo = mid + 1;
- }
- else {
- hi = mid;
- }
- }
- return lo;
- };
-
- /**
- * @alias module:echarts/coord/scale/Time
- * @constructor
- */
- var TimeScale = IntervalScale.extend({
- type: 'time',
-
- // Overwrite
- getLabel: function (val) {
- var stepLvl = this._stepLvl;
-
- var date = new Date(val);
-
- return formatUtil.formatTime(stepLvl[0], date);
- },
-
- // Overwrite
- niceExtent: function (approxTickNum, fixMin, fixMax) {
- var extent = this._extent;
- // If extent start and end are same, expand them
- if (extent[0] === extent[1]) {
- // Expand extent
- extent[0] -= ONE_DAY;
- extent[1] += ONE_DAY;
- }
- // If there are no data and extent are [Infinity, -Infinity]
- if (extent[1] === -Infinity && extent[0] === Infinity) {
- var d = new Date();
- extent[1] = new Date(d.getFullYear(), d.getMonth(), d.getDate());
- extent[0] = extent[1] - ONE_DAY;
- }
-
- this.niceTicks(approxTickNum, fixMin, fixMax);
-
- // var extent = this._extent;
- var interval = this._interval;
-
- if (!fixMin) {
- extent[0] = numberUtil.round(mathFloor(extent[0] / interval) * interval);
- }
- if (!fixMax) {
- extent[1] = numberUtil.round(mathCeil(extent[1] / interval) * interval);
- }
- },
-
- // Overwrite
- niceTicks: function (approxTickNum) {
- approxTickNum = approxTickNum || 10;
-
- var extent = this._extent;
- var span = extent[1] - extent[0];
- var approxInterval = span / approxTickNum;
- var scaleLevelsLen = scaleLevels.length;
- var idx = bisect(scaleLevels, approxInterval, 0, scaleLevelsLen);
-
- var level = scaleLevels[Math.min(idx, scaleLevelsLen - 1)];
- var interval = level[2];
- // Same with interval scale if span is much larger than 1 year
- if (level[0] === 'year') {
- var yearSpan = span / interval;
-
- // From "Nice Numbers for Graph Labels" of Graphic Gems
- // var niceYearSpan = numberUtil.nice(yearSpan, false);
- var yearStep = numberUtil.nice(yearSpan / approxTickNum, true);
-
- interval *= yearStep;
- }
-
- var niceExtent = [
- mathCeil(extent[0] / interval) * interval,
- mathFloor(extent[1] / interval) * interval
- ];
-
- this._stepLvl = level;
- // Interval will be used in getTicks
- this._interval = interval;
- this._niceExtent = niceExtent;
- },
-
- parse: function (val) {
- // val might be float.
- return +numberUtil.parseDate(val);
- }
- });
-
- zrUtil.each(['contain', 'normalize'], function (methodName) {
- TimeScale.prototype[methodName] = function (val) {
- return intervalScaleProto[methodName].call(this, this.parse(val));
- };
- });
-
- // Steps from d3
- var scaleLevels = [
- // Format step interval
- ['hh:mm:ss', 1, 1000], // 1s
- ['hh:mm:ss', 5, 1000 * 5], // 5s
- ['hh:mm:ss', 10, 1000 * 10], // 10s
- ['hh:mm:ss', 15, 1000 * 15], // 15s
- ['hh:mm:ss', 30, 1000 * 30], // 30s
- ['hh:mm\nMM-dd',1, 60000], // 1m
- ['hh:mm\nMM-dd',5, 60000 * 5], // 5m
- ['hh:mm\nMM-dd',10, 60000 * 10], // 10m
- ['hh:mm\nMM-dd',15, 60000 * 15], // 15m
- ['hh:mm\nMM-dd',30, 60000 * 30], // 30m
- ['hh:mm\nMM-dd',1, 3600000], // 1h
- ['hh:mm\nMM-dd',2, 3600000 * 2], // 2h
- ['hh:mm\nMM-dd',6, 3600000 * 6], // 6h
- ['hh:mm\nMM-dd',12, 3600000 * 12], // 12h
- ['MM-dd\nyyyy', 1, ONE_DAY], // 1d
- ['week', 7, ONE_DAY * 7], // 7d
- ['month', 1, ONE_DAY * 31], // 1M
- ['quarter', 3, ONE_DAY * 380 / 4], // 3M
- ['half-year', 6, ONE_DAY * 380 / 2], // 6M
- ['year', 1, ONE_DAY * 380] // 1Y
- ];
-
- /**
- * @return {module:echarts/scale/Time}
- */
- TimeScale.create = function () {
- return new TimeScale();
- };
-
- module.exports = TimeScale;
-
-
-/***/ },
-/* 113 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Log scale
- * @module echarts/scale/Log
- */
-
-
- var zrUtil = __webpack_require__(3);
- var Scale = __webpack_require__(110);
- var numberUtil = __webpack_require__(7);
-
- // Use some method of IntervalScale
- var IntervalScale = __webpack_require__(111);
-
- var scaleProto = Scale.prototype;
- var intervalScaleProto = IntervalScale.prototype;
-
- var mathFloor = Math.floor;
- var mathCeil = Math.ceil;
- var mathPow = Math.pow;
-
- var LOG_BASE = 10;
- var mathLog = Math.log;
-
- var LogScale = Scale.extend({
-
- type: 'log',
-
- /**
- * @return {Array.<number>}
- */
- getTicks: function () {
- return zrUtil.map(intervalScaleProto.getTicks.call(this), function (val) {
- return numberUtil.round(mathPow(LOG_BASE, val));
- });
- },
-
- /**
- * @param {number} val
- * @return {string}
- */
- getLabel: intervalScaleProto.getLabel,
-
- /**
- * @param {number} val
- * @return {number}
- */
- scale: function (val) {
- val = scaleProto.scale.call(this, val);
- return mathPow(LOG_BASE, val);
- },
-
- /**
- * @param {number} start
- * @param {number} end
- */
- setExtent: function (start, end) {
- start = mathLog(start) / mathLog(LOG_BASE);
- end = mathLog(end) / mathLog(LOG_BASE);
- intervalScaleProto.setExtent.call(this, start, end);
- },
-
- /**
- * @return {number} end
- */
- getExtent: function () {
- var extent = scaleProto.getExtent.call(this);
- extent[0] = mathPow(LOG_BASE, extent[0]);
- extent[1] = mathPow(LOG_BASE, extent[1]);
- return extent;
- },
-
- /**
- * @param {Array.<number>} extent
- */
- unionExtent: function (extent) {
- extent[0] = mathLog(extent[0]) / mathLog(LOG_BASE);
- extent[1] = mathLog(extent[1]) / mathLog(LOG_BASE);
- scaleProto.unionExtent.call(this, extent);
- },
-
- /**
- * Update interval and extent of intervals for nice ticks
- * @param {number} [approxTickNum = 10] Given approx tick number
- */
- niceTicks: function (approxTickNum) {
- approxTickNum = approxTickNum || 10;
- var extent = this._extent;
- var span = extent[1] - extent[0];
- if (span === Infinity || span <= 0) {
- return;
- }
-
- var interval = mathPow(10, mathFloor(mathLog(span / approxTickNum) / Math.LN10));
- var err = approxTickNum / span * interval;
-
- // Filter ticks to get closer to the desired count.
- if (err <= 0.5) {
- interval *= 10;
- }
- var niceExtent = [
- numberUtil.round(mathCeil(extent[0] / interval) * interval),
- numberUtil.round(mathFloor(extent[1] / interval) * interval)
- ];
-
- this._interval = interval;
- this._niceExtent = niceExtent;
- },
-
- /**
- * Nice extent.
- * @param {number} [approxTickNum = 10] Given approx tick number
- * @param {boolean} [fixMin=false]
- * @param {boolean} [fixMax=false]
- */
- niceExtent: intervalScaleProto.niceExtent
- });
-
- zrUtil.each(['contain', 'normalize'], function (methodName) {
- LogScale.prototype[methodName] = function (val) {
- val = mathLog(val) / mathLog(LOG_BASE);
- return scaleProto[methodName].call(this, val);
- };
- });
-
- LogScale.create = function () {
- return new LogScale();
- };
-
- module.exports = LogScale;
-
-
-/***/ },
-/* 114 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var Cartesian = __webpack_require__(115);
-
- function Cartesian2D(name) {
-
- Cartesian.call(this, name);
- }
-
- Cartesian2D.prototype = {
-
- constructor: Cartesian2D,
-
- type: 'cartesian2d',
-
- /**
- * @type {Array.<string>}
- * @readOnly
- */
- dimensions: ['x', 'y'],
-
- /**
- * Base axis will be used on stacking.
- *
- * @return {module:echarts/coord/cartesian/Axis2D}
- */
- getBaseAxis: function () {
- return this.getAxesByScale('ordinal')[0]
- || this.getAxesByScale('time')[0]
- || this.getAxis('x');
- },
-
- /**
- * If contain point
- * @param {Array.<number>} point
- * @return {boolean}
- */
- containPoint: function (point) {
- var axisX = this.getAxis('x');
- var axisY = this.getAxis('y');
- return axisX.contain(axisX.toLocalCoord(point[0]))
- && axisY.contain(axisY.toLocalCoord(point[1]));
- },
-
- /**
- * If contain data
- * @param {Array.<number>} data
- * @return {boolean}
- */
- containData: function (data) {
- return this.getAxis('x').containData(data[0])
- && this.getAxis('y').containData(data[1]);
- },
-
- /**
- * Convert series data to an array of points
- * @param {module:echarts/data/List} data
- * @param {boolean} stack
- * @return {Array}
- * Return array of points. For example:
- * `[[10, 10], [20, 20], [30, 30]]`
- */
- dataToPoints: function (data, stack) {
- return data.mapArray(['x', 'y'], function (x, y) {
- return this.dataToPoint([x, y]);
- }, stack, this);
- },
-
- /**
- * @param {Array.<number>} data
- * @param {boolean} [clamp=false]
- * @return {Array.<number>}
- */
- dataToPoint: function (data, clamp) {
- var xAxis = this.getAxis('x');
- var yAxis = this.getAxis('y');
- return [
- xAxis.toGlobalCoord(xAxis.dataToCoord(data[0], clamp)),
- yAxis.toGlobalCoord(yAxis.dataToCoord(data[1], clamp))
- ];
- },
-
- /**
- * @param {Array.<number>} point
- * @param {boolean} [clamp=false]
- * @return {Array.<number>}
- */
- pointToData: function (point, clamp) {
- var xAxis = this.getAxis('x');
- var yAxis = this.getAxis('y');
- return [
- xAxis.coordToData(xAxis.toLocalCoord(point[0]), clamp),
- yAxis.coordToData(yAxis.toLocalCoord(point[1]), clamp)
- ];
- },
-
- /**
- * Get other axis
- * @param {module:echarts/coord/cartesian/Axis2D} axis
- */
- getOtherAxis: function (axis) {
- return this.getAxis(axis.dim === 'x' ? 'y' : 'x');
- }
- };
-
- zrUtil.inherits(Cartesian2D, Cartesian);
-
- module.exports = Cartesian2D;
-
-
-/***/ },
-/* 115 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Cartesian coordinate system
- * @module echarts/coord/Cartesian
- *
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- function dimAxisMapper(dim) {
- return this._axes[dim];
- }
-
- /**
- * @alias module:echarts/coord/Cartesian
- * @constructor
- */
- var Cartesian = function (name) {
- this._axes = {};
-
- this._dimList = [];
-
- /**
- * @type {string}
- */
- this.name = name || '';
- };
-
- Cartesian.prototype = {
-
- constructor: Cartesian,
-
- type: 'cartesian',
-
- /**
- * Get axis
- * @param {number|string} dim
- * @return {module:echarts/coord/Cartesian~Axis}
- */
- getAxis: function (dim) {
- return this._axes[dim];
- },
-
- /**
- * Get axes list
- * @return {Array.<module:echarts/coord/Cartesian~Axis>}
- */
- getAxes: function () {
- return zrUtil.map(this._dimList, dimAxisMapper, this);
- },
-
- /**
- * Get axes list by given scale type
- */
- getAxesByScale: function (scaleType) {
- scaleType = scaleType.toLowerCase();
- return zrUtil.filter(
- this.getAxes(),
- function (axis) {
- return axis.scale.type === scaleType;
- }
- );
- },
-
- /**
- * Add axis
- * @param {module:echarts/coord/Cartesian.Axis}
- */
- addAxis: function (axis) {
- var dim = axis.dim;
-
- this._axes[dim] = axis;
-
- this._dimList.push(dim);
- },
-
- /**
- * Convert data to coord in nd space
- * @param {Array.<number>|Object.<string, number>} val
- * @return {Array.<number>|Object.<string, number>}
- */
- dataToCoord: function (val) {
- return this._dataCoordConvert(val, 'dataToCoord');
- },
-
- /**
- * Convert coord in nd space to data
- * @param {Array.<number>|Object.<string, number>} val
- * @return {Array.<number>|Object.<string, number>}
- */
- coordToData: function (val) {
- return this._dataCoordConvert(val, 'coordToData');
- },
-
- _dataCoordConvert: function (input, method) {
- var dimList = this._dimList;
-
- var output = input instanceof Array ? [] : {};
-
- for (var i = 0; i < dimList.length; i++) {
- var dim = dimList[i];
- var axis = this._axes[dim];
-
- output[dim] = axis[method](input[dim]);
- }
-
- return output;
- }
- };
-
- module.exports = Cartesian;
-
-
-/***/ },
-/* 116 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
- var axisLabelInterval = __webpack_require__(118);
-
- /**
- * Extend axis 2d
- * @constructor module:echarts/coord/cartesian/Axis2D
- * @extends {module:echarts/coord/cartesian/Axis}
- * @param {string} dim
- * @param {*} scale
- * @param {Array.<number>} coordExtent
- * @param {string} axisType
- * @param {string} position
- */
- var Axis2D = function (dim, scale, coordExtent, axisType, position) {
- Axis.call(this, dim, scale, coordExtent);
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = axisType || 'value';
-
- /**
- * Axis position
- * - 'top'
- * - 'bottom'
- * - 'left'
- * - 'right'
- */
- this.position = position || 'bottom';
- };
-
- Axis2D.prototype = {
-
- constructor: Axis2D,
-
- /**
- * Index of axis, can be used as key
- */
- index: 0,
- /**
- * If axis is on the zero position of the other axis
- * @type {boolean}
- */
- onZero: false,
-
- /**
- * Axis model
- * @param {module:echarts/coord/cartesian/AxisModel}
- */
- model: null,
-
- isHorizontal: function () {
- var position = this.position;
- return position === 'top' || position === 'bottom';
- },
-
- getGlobalExtent: function () {
- var ret = this.getExtent();
- ret[0] = this.toGlobalCoord(ret[0]);
- ret[1] = this.toGlobalCoord(ret[1]);
- return ret;
- },
-
- /**
- * @return {number}
- */
- getLabelInterval: function () {
- var labelInterval = this._labelInterval;
- if (!labelInterval) {
- labelInterval = this._labelInterval = axisLabelInterval(this);
- }
- return labelInterval;
- },
-
- /**
- * If label is ignored.
- * Automatically used when axis is category and label can not be all shown
- * @param {number} idx
- * @return {boolean}
- */
- isLabelIgnored: function (idx) {
- if (this.type === 'category') {
- var labelInterval = this.getLabelInterval();
- return ((typeof labelInterval === 'function')
- && !labelInterval(idx, this.scale.getLabel(idx)))
- || idx % (labelInterval + 1);
- }
- },
-
- /**
- * Transform global coord to local coord,
- * i.e. var localCoord = axis.toLocalCoord(80);
- * designate by module:echarts/coord/cartesian/Grid.
- * @type {Function}
- */
- toLocalCoord: null,
-
- /**
- * Transform global coord to local coord,
- * i.e. var globalCoord = axis.toLocalCoord(40);
- * designate by module:echarts/coord/cartesian/Grid.
- * @type {Function}
- */
- toGlobalCoord: null
-
- };
- zrUtil.inherits(Axis2D, Axis);
-
- module.exports = Axis2D;
-
-
-/***/ },
-/* 117 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var numberUtil = __webpack_require__(7);
- var linearMap = numberUtil.linearMap;
- var zrUtil = __webpack_require__(3);
-
- function fixExtentWithBands(extent, nTick) {
- var size = extent[1] - extent[0];
- var len = nTick;
- var margin = size / len / 2;
- extent[0] += margin;
- extent[1] -= margin;
- }
-
- var normalizedExtent = [0, 1];
- /**
- * @name module:echarts/coord/CartesianAxis
- * @constructor
- */
- var Axis = function (dim, scale, extent) {
-
- /**
- * Axis dimension. Such as 'x', 'y', 'z', 'angle', 'radius'
- * @type {string}
- */
- this.dim = dim;
-
- /**
- * Axis scale
- * @type {module:echarts/coord/scale/*}
- */
- this.scale = scale;
-
- /**
- * @type {Array.<number>}
- * @private
- */
- this._extent = extent || [0, 0];
-
- /**
- * @type {boolean}
- */
- this.inverse = false;
-
- /**
- * Usually true when axis has a ordinal scale
- * @type {boolean}
- */
- this.onBand = false;
- };
-
- Axis.prototype = {
-
- constructor: Axis,
-
- /**
- * If axis extent contain given coord
- * @param {number} coord
- * @return {boolean}
- */
- contain: function (coord) {
- var extent = this._extent;
- var min = Math.min(extent[0], extent[1]);
- var max = Math.max(extent[0], extent[1]);
- return coord >= min && coord <= max;
- },
-
- /**
- * If axis extent contain given data
- * @param {number} data
- * @return {boolean}
- */
- containData: function (data) {
- return this.contain(this.dataToCoord(data));
- },
-
- /**
- * Get coord extent.
- * @return {Array.<number>}
- */
- getExtent: function () {
- var ret = this._extent.slice();
- return ret;
- },
-
- /**
- * Get precision used for formatting
- * @param {Array.<number>} [dataExtent]
- * @return {number}
- */
- getPixelPrecision: function (dataExtent) {
- return numberUtil.getPixelPrecision(
- dataExtent || this.scale.getExtent(),
- this._extent
- );
- },
-
- /**
- * Set coord extent
- * @param {number} start
- * @param {number} end
- */
- setExtent: function (start, end) {
- var extent = this._extent;
- extent[0] = start;
- extent[1] = end;
- },
-
- /**
- * Convert data to coord. Data is the rank if it has a ordinal scale
- * @param {number} data
- * @param {boolean} clamp
- * @return {number}
- */
- dataToCoord: function (data, clamp) {
- var extent = this._extent;
- var scale = this.scale;
- data = scale.normalize(data);
-
- if (this.onBand && scale.type === 'ordinal') {
- extent = extent.slice();
- fixExtentWithBands(extent, scale.count());
- }
-
- return linearMap(data, normalizedExtent, extent, clamp);
- },
-
- /**
- * Convert coord to data. Data is the rank if it has a ordinal scale
- * @param {number} coord
- * @param {boolean} clamp
- * @return {number}
- */
- coordToData: function (coord, clamp) {
- var extent = this._extent;
- var scale = this.scale;
-
- if (this.onBand && scale.type === 'ordinal') {
- extent = extent.slice();
- fixExtentWithBands(extent, scale.count());
- }
-
- var t = linearMap(coord, extent, normalizedExtent, clamp);
-
- return this.scale.scale(t);
- },
- /**
- * @return {Array.<number>}
- */
- getTicksCoords: function () {
- if (this.onBand) {
- var bands = this.getBands();
- var coords = [];
- for (var i = 0; i < bands.length; i++) {
- coords.push(bands[i][0]);
- }
- if (bands[i - 1]) {
- coords.push(bands[i - 1][1]);
- }
- return coords;
- }
- else {
- return zrUtil.map(this.scale.getTicks(), this.dataToCoord, this);
- }
- },
-
- /**
- * Coords of labels are on the ticks or on the middle of bands
- * @return {Array.<number>}
- */
- getLabelsCoords: function () {
- if (this.onBand) {
- var bands = this.getBands();
- var coords = [];
- var band;
- for (var i = 0; i < bands.length; i++) {
- band = bands[i];
- coords.push((band[0] + band[1]) / 2);
- }
- return coords;
- }
- else {
- return zrUtil.map(this.scale.getTicks(), this.dataToCoord, this);
- }
- },
-
- /**
- * Get bands.
- *
- * If axis has labels [1, 2, 3, 4]. Bands on the axis are
- * |---1---|---2---|---3---|---4---|.
- *
- * @return {Array}
- */
- // FIXME Situation when labels is on ticks
- getBands: function () {
- var extent = this.getExtent();
- var bands = [];
- var len = this.scale.count();
- var start = extent[0];
- var end = extent[1];
- var span = end - start;
-
- for (var i = 0; i < len; i++) {
- bands.push([
- span * i / len + start,
- span * (i + 1) / len + start
- ]);
- }
- return bands;
- },
-
- /**
- * Get width of band
- * @return {number}
- */
- getBandWidth: function () {
- var axisExtent = this._extent;
- var dataExtent = this.scale.getExtent();
-
- var len = dataExtent[1] - dataExtent[0] + (this.onBand ? 1 : 0);
- // Fix #2728, avoid NaN when only one data.
- len === 0 && (len = 1);
-
- var size = Math.abs(axisExtent[1] - axisExtent[0]);
-
- return Math.abs(size) / len;
- }
- };
-
- module.exports = Axis;
-
-
-/***/ },
-/* 118 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Helper function for axisLabelInterval calculation
- */
-
-
-
- var zrUtil = __webpack_require__(3);
- var axisHelper = __webpack_require__(108);
-
- module.exports = function (axis) {
- var axisModel = axis.model;
- var labelModel = axisModel.getModel('axisLabel');
- var labelInterval = labelModel.get('interval');
- if (!(axis.type === 'category' && labelInterval === 'auto')) {
- return labelInterval === 'auto' ? 0 : labelInterval;
- }
-
- return axisHelper.getAxisLabelInterval(
- zrUtil.map(axis.scale.getTicks(), axis.dataToCoord, axis),
- axisModel.getFormattedLabels(),
- labelModel.getModel('textStyle').getFont(),
- axis.isHorizontal()
- );
- };
-
-
-/***/ },
-/* 119 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- // Grid 是在有直角坐标系的时候必须要存在的
- // 所以这里也要被 Cartesian2D 依赖
-
-
- __webpack_require__(120);
- var ComponentModel = __webpack_require__(19);
-
- module.exports = ComponentModel.extend({
-
- type: 'grid',
-
- dependencies: ['xAxis', 'yAxis'],
-
- layoutMode: 'box',
-
- /**
- * @type {module:echarts/coord/cartesian/Grid}
- */
- coordinateSystem: null,
-
- defaultOption: {
- show: false,
- zlevel: 0,
- z: 0,
- left: '10%',
- top: 60,
- right: '10%',
- bottom: 60,
- // If grid size contain label
- containLabel: false,
- // width: {totalWidth} - left - right,
- // height: {totalHeight} - top - bottom,
- backgroundColor: 'rgba(0,0,0,0)',
- borderWidth: 1,
- borderColor: '#ccc'
- }
- });
-
-
-/***/ },
-/* 120 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var ComponentModel = __webpack_require__(19);
- var zrUtil = __webpack_require__(3);
- var axisModelCreator = __webpack_require__(121);
-
- var AxisModel = ComponentModel.extend({
-
- type: 'cartesian2dAxis',
-
- /**
- * @type {module:echarts/coord/cartesian/Axis2D}
- */
- axis: null,
-
- /**
- * @override
- */
- init: function () {
- AxisModel.superApply(this, 'init', arguments);
- this._resetRange();
- },
-
- /**
- * @override
- */
- mergeOption: function () {
- AxisModel.superApply(this, 'mergeOption', arguments);
- this._resetRange();
- },
-
- /**
- * @override
- */
- restoreData: function () {
- AxisModel.superApply(this, 'restoreData', arguments);
- this._resetRange();
- },
-
- /**
- * @public
- * @param {number} rangeStart
- * @param {number} rangeEnd
- */
- setRange: function (rangeStart, rangeEnd) {
- this.option.rangeStart = rangeStart;
- this.option.rangeEnd = rangeEnd;
- },
-
- /**
- * @public
- * @return {Array.<number|string|Date>}
- */
- getMin: function () {
- var option = this.option;
- return option.rangeStart != null ? option.rangeStart : option.min;
- },
-
- /**
- * @public
- * @return {Array.<number|string|Date>}
- */
- getMax: function () {
- var option = this.option;
- return option.rangeEnd != null ? option.rangeEnd : option.max;
- },
-
- /**
- * @public
- * @return {boolean}
- */
- getNeedCrossZero: function () {
- var option = this.option;
- return (option.rangeStart != null || option.rangeEnd != null)
- ? false : !option.scale;
- },
-
- /**
- * @private
- */
- _resetRange: function () {
- // rangeStart and rangeEnd is readonly.
- this.option.rangeStart = this.option.rangeEnd = null;
- }
-
- });
-
- function getAxisType(axisDim, option) {
- // Default axis with data is category axis
- return option.type || (option.data ? 'category' : 'value');
- }
-
- zrUtil.merge(AxisModel.prototype, __webpack_require__(123));
-
- var extraOption = {
- gridIndex: 0
- };
-
- axisModelCreator('x', AxisModel, getAxisType, extraOption);
- axisModelCreator('y', AxisModel, getAxisType, extraOption);
-
- module.exports = AxisModel;
-
-
-/***/ },
-/* 121 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var axisDefault = __webpack_require__(122);
- var zrUtil = __webpack_require__(3);
- var ComponentModel = __webpack_require__(19);
- var layout = __webpack_require__(21);
-
- // FIXME axisType is fixed ?
- var AXIS_TYPES = ['value', 'category', 'time', 'log'];
-
- /**
- * Generate sub axis model class
- * @param {string} axisName 'x' 'y' 'radius' 'angle' 'parallel'
- * @param {module:echarts/model/Component} BaseAxisModelClass
- * @param {Function} axisTypeDefaulter
- * @param {Object} [extraDefaultOption]
- */
- module.exports = function (axisName, BaseAxisModelClass, axisTypeDefaulter, extraDefaultOption) {
-
- zrUtil.each(AXIS_TYPES, function (axisType) {
-
- BaseAxisModelClass.extend({
-
- type: axisName + 'Axis.' + axisType,
-
- mergeDefaultAndTheme: function (option, ecModel) {
- var layoutMode = this.layoutMode;
- var inputPositionParams = layoutMode
- ? layout.getLayoutParams(option) : {};
-
- var themeModel = ecModel.getTheme();
- zrUtil.merge(option, themeModel.get(axisType + 'Axis'));
- zrUtil.merge(option, this.getDefaultOption());
-
- option.type = axisTypeDefaulter(axisName, option);
-
- if (layoutMode) {
- layout.mergeLayoutParam(option, inputPositionParams, layoutMode);
- }
- },
-
- defaultOption: zrUtil.mergeAll(
- [
- {},
- axisDefault[axisType + 'Axis'],
- extraDefaultOption
- ],
- true
- )
- });
- });
-
- ComponentModel.registerSubTypeDefaulter(
- axisName + 'Axis',
- zrUtil.curry(axisTypeDefaulter, axisName)
- );
- };
-
-
-/***/ },
-/* 122 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var defaultOption = {
- show: true,
- zlevel: 0, // 一级层叠
- z: 0, // 二级层叠
- // 反向坐标轴
- inverse: false,
- // 坐标轴名字,默认为空
- name: '',
- // 坐标轴名字位置,支持'start' | 'middle' | 'end'
- nameLocation: 'end',
- // 坐标轴文字样式,默认取全局样式
- nameTextStyle: {},
- // 文字与轴线距离
- nameGap: 15,
- // 坐标轴线
- axisLine: {
- // 默认显示,属性show控制显示与否
- show: true,
- onZero: true,
- // 属性lineStyle控制线条样式
- lineStyle: {
- color: '#333',
- width: 1,
- type: 'solid'
- }
- },
- // 坐标轴小标记
- axisTick: {
- // 属性show控制显示与否,默认显示
- show: true,
- // 控制小标记是否在grid里
- inside: false,
- // 属性length控制线长
- length: 5,
- // 属性lineStyle控制线条样式
- lineStyle: {
- color: '#333',
- width: 1
- }
- },
- // 坐标轴文本标签,详见axis.axisLabel
- axisLabel: {
- show: true,
- // 控制文本标签是否在grid里
- inside: false,
- rotate: 0,
- margin: 8,
- // formatter: null,
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- textStyle: {
- color: '#333',
- fontSize: 12
- }
- },
- // 分隔线
- splitLine: {
- // 默认显示,属性show控制显示与否
- show: true,
- // 属性lineStyle(详见lineStyle)控制线条样式
- lineStyle: {
- color: ['#ccc'],
- width: 1,
- type: 'solid'
- }
- },
- // 分隔区域
- splitArea: {
- // 默认不显示,属性show控制显示与否
- show: false,
- // 属性areaStyle(详见areaStyle)控制区域样式
- areaStyle: {
- color: ['rgba(250,250,250,0.3)','rgba(200,200,200,0.3)']
- }
- }
- };
-
- var categoryAxis = zrUtil.merge({
- // 类目起始和结束两端空白策略
- boundaryGap: true,
- // 坐标轴小标记
- axisTick: {
- interval: 'auto'
- },
- // 坐标轴文本标签,详见axis.axisLabel
- axisLabel: {
- interval: 'auto'
- }
- }, defaultOption);
-
- var valueAxis = zrUtil.defaults({
- // 数值起始和结束两端空白策略
- boundaryGap: [0, 0],
- // 最小值, 设置成 'dataMin' 则从数据中计算最小值
- // min: null,
- // 最大值,设置成 'dataMax' 则从数据中计算最大值
- // max: null,
- // Readonly prop, specifies start value of the range when using data zoom.
- // rangeStart: null
- // Readonly prop, specifies end value of the range when using data zoom.
- // rangeEnd: null
- // 脱离0值比例,放大聚焦到最终_min,_max区间
- // scale: false,
- // 分割段数,默认为5
- splitNumber: 5
- }, defaultOption);
-
- // FIXME
- var timeAxis = zrUtil.defaults({
- scale: true,
- min: 'dataMin',
- max: 'dataMax'
- }, valueAxis);
- var logAxis = zrUtil.defaults({}, valueAxis);
- logAxis.scale = true;
-
- module.exports = {
- categoryAxis: categoryAxis,
- valueAxis: valueAxis,
- timeAxis: timeAxis,
- logAxis: logAxis
- };
-
-
-/***/ },
-/* 123 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var axisHelper = __webpack_require__(108);
-
- function getName(obj) {
- if (zrUtil.isObject(obj) && obj.value != null) {
- return obj.value;
- }
- else {
- return obj;
- }
- }
- /**
- * Get categories
- */
- function getCategories() {
- return this.get('type') === 'category'
- && zrUtil.map(this.get('data'), getName);
- }
-
- /**
- * Format labels
- * @return {Array.<string>}
- */
- function getFormattedLabels() {
- return axisHelper.getFormattedLabels(
- this.axis,
- this.get('axisLabel.formatter')
- );
- }
-
- module.exports = {
-
- getFormattedLabels: getFormattedLabels,
-
- getCategories: getCategories
- };
-
-
-/***/ },
-/* 124 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- // TODO boundaryGap
-
-
- __webpack_require__(120);
-
- __webpack_require__(125);
-
-
-/***/ },
-/* 125 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var AxisBuilder = __webpack_require__(126);
- var ifIgnoreOnTick = AxisBuilder.ifIgnoreOnTick;
- var getInterval = AxisBuilder.getInterval;
-
- var axisBuilderAttrs = [
- 'axisLine', 'axisLabel', 'axisTick', 'axisName'
- ];
- var selfBuilderAttrs = [
- 'splitLine', 'splitArea'
- ];
-
- var AxisView = __webpack_require__(1).extendComponentView({
-
- type: 'axis',
-
- render: function (axisModel, ecModel) {
-
- this.group.removeAll();
-
- if (!axisModel.get('show')) {
- return;
- }
-
- var gridModel = ecModel.getComponent('grid', axisModel.get('gridIndex'));
-
- var layout = layoutAxis(gridModel, axisModel);
-
- var axisBuilder = new AxisBuilder(axisModel, layout);
-
- zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);
-
- this.group.add(axisBuilder.getGroup());
-
- zrUtil.each(selfBuilderAttrs, function (name) {
- if (axisModel.get(name +'.show')) {
- this['_' + name](axisModel, gridModel, layout.labelInterval);
- }
- }, this);
- },
-
- /**
- * @param {module:echarts/coord/cartesian/AxisModel} axisModel
- * @param {module:echarts/coord/cartesian/GridModel} gridModel
- * @param {number|Function} labelInterval
- * @private
- */
- _splitLine: function (axisModel, gridModel, labelInterval) {
- var axis = axisModel.axis;
-
- var splitLineModel = axisModel.getModel('splitLine');
- var lineStyleModel = splitLineModel.getModel('lineStyle');
- var lineWidth = lineStyleModel.get('width');
- var lineColors = lineStyleModel.get('color');
-
- var lineInterval = getInterval(splitLineModel, labelInterval);
-
- lineColors = zrUtil.isArray(lineColors) ? lineColors : [lineColors];
-
- var gridRect = gridModel.coordinateSystem.getRect();
- var isHorizontal = axis.isHorizontal();
-
- var splitLines = [];
- var lineCount = 0;
-
- var ticksCoords = axis.getTicksCoords();
-
- var p1 = [];
- var p2 = [];
- for (var i = 0; i < ticksCoords.length; i++) {
- if (ifIgnoreOnTick(axis, i, lineInterval)) {
- continue;
- }
-
- var tickCoord = axis.toGlobalCoord(ticksCoords[i]);
-
- if (isHorizontal) {
- p1[0] = tickCoord;
- p1[1] = gridRect.y;
- p2[0] = tickCoord;
- p2[1] = gridRect.y + gridRect.height;
- }
- else {
- p1[0] = gridRect.x;
- p1[1] = tickCoord;
- p2[0] = gridRect.x + gridRect.width;
- p2[1] = tickCoord;
- }
-
- var colorIndex = (lineCount++) % lineColors.length;
- splitLines[colorIndex] = splitLines[colorIndex] || [];
- splitLines[colorIndex].push(new graphic.Line(graphic.subPixelOptimizeLine({
- shape: {
- x1: p1[0],
- y1: p1[1],
- x2: p2[0],
- y2: p2[1]
- },
- style: {
- lineWidth: lineWidth
- },
- silent: true
- })));
- }
-
- // Simple optimization
- // Batching the lines if color are the same
- var lineStyle = lineStyleModel.getLineStyle();
- for (var i = 0; i < splitLines.length; i++) {
- this.group.add(graphic.mergePath(splitLines[i], {
- style: zrUtil.defaults({
- stroke: lineColors[i % lineColors.length]
- }, lineStyle),
- silent: true
- }));
- }
- },
-
- /**
- * @param {module:echarts/coord/cartesian/AxisModel} axisModel
- * @param {module:echarts/coord/cartesian/GridModel} gridModel
- * @param {number|Function} labelInterval
- * @private
- */
- _splitArea: function (axisModel, gridModel, labelInterval) {
- var axis = axisModel.axis;
-
- var splitAreaModel = axisModel.getModel('splitArea');
- var areaStyleModel = splitAreaModel.getModel('areaStyle');
- var areaColors = areaStyleModel.get('color');
-
- var gridRect = gridModel.coordinateSystem.getRect();
- var ticksCoords = axis.getTicksCoords();
-
- var prevX = axis.toGlobalCoord(ticksCoords[0]);
- var prevY = axis.toGlobalCoord(ticksCoords[0]);
-
- var splitAreaRects = [];
- var count = 0;
-
- var areaInterval = getInterval(splitAreaModel, labelInterval);
-
- areaColors = zrUtil.isArray(areaColors) ? areaColors : [areaColors];
-
- for (var i = 1; i < ticksCoords.length; i++) {
- if (ifIgnoreOnTick(axis, i, areaInterval)) {
- continue;
- }
-
- var tickCoord = axis.toGlobalCoord(ticksCoords[i]);
-
- var x;
- var y;
- var width;
- var height;
- if (axis.isHorizontal()) {
- x = prevX;
- y = gridRect.y;
- width = tickCoord - x;
- height = gridRect.height;
- }
- else {
- x = gridRect.x;
- y = prevY;
- width = gridRect.width;
- height = tickCoord - y;
- }
-
- var colorIndex = (count++) % areaColors.length;
- splitAreaRects[colorIndex] = splitAreaRects[colorIndex] || [];
- splitAreaRects[colorIndex].push(new graphic.Rect({
- shape: {
- x: x,
- y: y,
- width: width,
- height: height
- },
- silent: true
- }));
-
- prevX = x + width;
- prevY = y + height;
- }
-
- // Simple optimization
- // Batching the rects if color are the same
- var areaStyle = areaStyleModel.getAreaStyle();
- for (var i = 0; i < splitAreaRects.length; i++) {
- this.group.add(graphic.mergePath(splitAreaRects[i], {
- style: zrUtil.defaults({
- fill: areaColors[i % areaColors.length]
- }, areaStyle),
- silent: true
- }));
- }
- }
- });
-
- AxisView.extend({
- type: 'xAxis'
- });
- AxisView.extend({
- type: 'yAxis'
- });
-
- /**
- * @inner
- */
- function layoutAxis(gridModel, axisModel) {
- var grid = gridModel.coordinateSystem;
- var axis = axisModel.axis;
- var layout = {};
-
- var rawAxisPosition = axis.position;
- var axisPosition = axis.onZero ? 'onZero' : rawAxisPosition;
- var axisDim = axis.dim;
-
- // [left, right, top, bottom]
- var rect = grid.getRect();
- var rectBound = [rect.x, rect.x + rect.width, rect.y, rect.y + rect.height];
-
- var posMap = {
- x: {top: rectBound[2], bottom: rectBound[3]},
- y: {left: rectBound[0], right: rectBound[1]}
- };
- posMap.x.onZero = Math.max(Math.min(getZero('y'), posMap.x.bottom), posMap.x.top);
- posMap.y.onZero = Math.max(Math.min(getZero('x'), posMap.y.right), posMap.y.left);
-
- function getZero(dim, val) {
- var theAxis = grid.getAxis(dim);
- return theAxis.toGlobalCoord(theAxis.dataToCoord(0));
- }
-
- // Axis position
- layout.position = [
- axisDim === 'y' ? posMap.y[axisPosition] : rectBound[0],
- axisDim === 'x' ? posMap.x[axisPosition] : rectBound[3]
- ];
-
- // Axis rotation
- var r = {x: 0, y: 1};
- layout.rotation = Math.PI / 2 * r[axisDim];
-
- // Tick and label direction, x y is axisDim
- var dirMap = {top: -1, bottom: 1, left: -1, right: 1};
-
- layout.labelDirection = layout.tickDirection = layout.nameDirection = dirMap[rawAxisPosition];
- if (axis.onZero) {
- layout.labelOffset = posMap[axisDim][rawAxisPosition] - posMap[axisDim].onZero;
- }
-
- if (axisModel.getModel('axisTick').get('inside')) {
- layout.tickDirection = -layout.tickDirection;
- }
- if (axisModel.getModel('axisLabel').get('inside')) {
- layout.labelDirection = -layout.labelDirection;
- }
-
- // Special label rotation
- var labelRotation = axisModel.getModel('axisLabel').get('rotate');
- layout.labelRotation = axisPosition === 'top' ? -labelRotation : labelRotation;
-
- // label interval when auto mode.
- layout.labelInterval = axis.getLabelInterval();
-
- // Over splitLine and splitArea
- layout.z2 = 1;
-
- return layout;
- }
-
-
-/***/ },
-/* 126 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var Model = __webpack_require__(8);
- var numberUtil = __webpack_require__(7);
- var remRadian = numberUtil.remRadian;
- var isRadianAroundZero = numberUtil.isRadianAroundZero;
-
- var PI = Math.PI;
-
- /**
- * A final axis is translated and rotated from a "standard axis".
- * So opt.position and opt.rotation is required.
- *
- * A standard axis is and axis from [0, 0] to [0, axisExtent[1]],
- * for example: (0, 0) ------------> (0, 50)
- *
- * nameDirection or tickDirection or labelDirection is 1 means tick
- * or label is below the standard axis, whereas is -1 means above
- * the standard axis. labelOffset means offset between label and axis,
- * which is useful when 'onZero', where axisLabel is in the grid and
- * label in outside grid.
- *
- * Tips: like always,
- * positive rotation represents anticlockwise, and negative rotation
- * represents clockwise.
- * The direction of position coordinate is the same as the direction
- * of screen coordinate.
- *
- * Do not need to consider axis 'inverse', which is auto processed by
- * axis extent.
- *
- * @param {module:zrender/container/Group} group
- * @param {Object} axisModel
- * @param {Object} opt Standard axis parameters.
- * @param {Array.<number>} opt.position [x, y]
- * @param {number} opt.rotation by radian
- * @param {number} [opt.nameDirection=1] 1 or -1 Used when nameLocation is 'middle'.
- * @param {number} [opt.tickDirection=1] 1 or -1
- * @param {number} [opt.labelDirection=1] 1 or -1
- * @param {number} [opt.labelOffset=0] Usefull when onZero.
- * @param {string} [opt.axisName] default get from axisModel.
- * @param {number} [opt.labelRotation] by degree, default get from axisModel.
- * @param {number} [opt.labelInterval] Default label interval when label
- * interval from model is null or 'auto'.
- * @param {number} [opt.strokeContainThreshold] Default label interval when label
- * @param {number} [opt.silent=true]
- */
- var AxisBuilder = function (axisModel, opt) {
-
- /**
- * @readOnly
- */
- this.opt = opt;
-
- /**
- * @readOnly
- */
- this.axisModel = axisModel;
-
- // Default value
- zrUtil.defaults(
- opt,
- {
- labelOffset: 0,
- nameDirection: 1,
- tickDirection: 1,
- labelDirection: 1,
- silent: true
- }
- );
-
- /**
- * @readOnly
- */
- this.group = new graphic.Group({
- position: opt.position.slice(),
- rotation: opt.rotation
- });
- };
-
- AxisBuilder.prototype = {
-
- constructor: AxisBuilder,
-
- hasBuilder: function (name) {
- return !!builders[name];
- },
-
- add: function (name) {
- builders[name].call(this);
- },
-
- getGroup: function () {
- return this.group;
- }
-
- };
-
- var builders = {
-
- /**
- * @private
- */
- axisLine: function () {
- var opt = this.opt;
- var axisModel = this.axisModel;
-
- if (!axisModel.get('axisLine.show')) {
- return;
- }
-
- var extent = this.axisModel.axis.getExtent();
-
- this.group.add(new graphic.Line({
- shape: {
- x1: extent[0],
- y1: 0,
- x2: extent[1],
- y2: 0
- },
- style: zrUtil.extend(
- {lineCap: 'round'},
- axisModel.getModel('axisLine.lineStyle').getLineStyle()
- ),
- strokeContainThreshold: opt.strokeContainThreshold,
- silent: !!opt.silent,
- z2: 1
- }));
- },
-
- /**
- * @private
- */
- axisTick: function () {
- var axisModel = this.axisModel;
-
- if (!axisModel.get('axisTick.show')) {
- return;
- }
-
- var axis = axisModel.axis;
- var tickModel = axisModel.getModel('axisTick');
- var opt = this.opt;
-
- var lineStyleModel = tickModel.getModel('lineStyle');
- var tickLen = tickModel.get('length');
- var tickInterval = getInterval(tickModel, opt.labelInterval);
- var ticksCoords = axis.getTicksCoords();
- var tickLines = [];
-
- for (var i = 0; i < ticksCoords.length; i++) {
- // Only ordinal scale support tick interval
- if (ifIgnoreOnTick(axis, i, tickInterval)) {
- continue;
- }
-
- var tickCoord = ticksCoords[i];
-
- // Tick line
- tickLines.push(new graphic.Line(graphic.subPixelOptimizeLine({
- shape: {
- x1: tickCoord,
- y1: 0,
- x2: tickCoord,
- y2: opt.tickDirection * tickLen
- },
- style: {
- lineWidth: lineStyleModel.get('width')
- },
- silent: true
- })));
- }
-
- this.group.add(graphic.mergePath(tickLines, {
- style: lineStyleModel.getLineStyle(),
- z2: 2,
- silent: true
- }));
- },
-
- /**
- * @param {module:echarts/coord/cartesian/AxisModel} axisModel
- * @param {module:echarts/coord/cartesian/GridModel} gridModel
- * @private
- */
- axisLabel: function () {
- var axisModel = this.axisModel;
-
- if (!axisModel.get('axisLabel.show')) {
- return;
- }
-
- var opt = this.opt;
- var axis = axisModel.axis;
- var labelModel = axisModel.getModel('axisLabel');
- var textStyleModel = labelModel.getModel('textStyle');
- var labelMargin = labelModel.get('margin');
- var ticks = axis.scale.getTicks();
- var labels = axisModel.getFormattedLabels();
-
- // Special label rotate.
- var labelRotation = opt.labelRotation;
- if (labelRotation == null) {
- labelRotation = labelModel.get('rotate') || 0;
- }
- // To radian.
- labelRotation = labelRotation * PI / 180;
-
- var labelLayout = innerTextLayout(opt, labelRotation, opt.labelDirection);
- var categoryData = axisModel.get('data');
-
- var textEls = [];
- for (var i = 0; i < ticks.length; i++) {
- if (ifIgnoreOnTick(axis, i, opt.labelInterval)) {
- continue;
- }
-
- var itemTextStyleModel = textStyleModel;
- if (categoryData && categoryData[i] && categoryData[i].textStyle) {
- itemTextStyleModel = new Model(
- categoryData[i].textStyle, textStyleModel, axisModel.ecModel
- );
- }
-
- var tickCoord = axis.dataToCoord(ticks[i]);
- var pos = [
- tickCoord,
- opt.labelOffset + opt.labelDirection * labelMargin
- ];
-
- var textEl = new graphic.Text({
- style: {
- text: labels[i],
- textAlign: itemTextStyleModel.get('align', true) || labelLayout.textAlign,
- textVerticalAlign: itemTextStyleModel.get('baseline', true) || labelLayout.verticalAlign,
- textFont: itemTextStyleModel.getFont(),
- fill: itemTextStyleModel.getTextColor()
- },
- position: pos,
- rotation: labelLayout.rotation,
- silent: true,
- z2: 10
- });
- textEls.push(textEl);
- this.group.add(textEl);
- }
-
- function isTwoLabelOverlapped(current, next) {
- var firstRect = current && current.getBoundingRect().clone();
- var nextRect = next && next.getBoundingRect().clone();
- if (firstRect && nextRect) {
- firstRect.applyTransform(current.getLocalTransform());
- nextRect.applyTransform(next.getLocalTransform());
- return firstRect.intersect(nextRect);
- }
- }
- if (axis.type !== 'category') {
- // If min or max are user set, we need to check
- // If the tick on min(max) are overlap on their neighbour tick
- // If they are overlapped, we need to hide the min(max) tick label
- if (axisModel.getMin ? axisModel.getMin() : axisModel.get('min')) {
- var firstLabel = textEls[0];
- var nextLabel = textEls[1];
- if (isTwoLabelOverlapped(firstLabel, nextLabel)) {
- firstLabel.ignore = true;
- }
- }
- if (axisModel.getMax ? axisModel.getMax() : axisModel.get('max')) {
- var lastLabel = textEls[textEls.length - 1];
- var prevLabel = textEls[textEls.length - 2];
- if (isTwoLabelOverlapped(prevLabel, lastLabel)) {
- lastLabel.ignore = true;
- }
- }
- }
- },
-
- /**
- * @private
- */
- axisName: function () {
- var opt = this.opt;
- var axisModel = this.axisModel;
-
- var name = this.opt.axisName;
- // If name is '', do not get name from axisMode.
- if (name == null) {
- name = axisModel.get('name');
- }
-
- if (!name) {
- return;
- }
-
- var nameLocation = axisModel.get('nameLocation');
- var nameDirection = opt.nameDirection;
- var textStyleModel = axisModel.getModel('nameTextStyle');
- var gap = axisModel.get('nameGap') || 0;
-
- var extent = this.axisModel.axis.getExtent();
- var gapSignal = extent[0] > extent[1] ? -1 : 1;
- var pos = [
- nameLocation === 'start'
- ? extent[0] - gapSignal * gap
- : nameLocation === 'end'
- ? extent[1] + gapSignal * gap
- : (extent[0] + extent[1]) / 2, // 'middle'
- // Reuse labelOffset.
- nameLocation === 'middle' ? opt.labelOffset + nameDirection * gap : 0
- ];
-
- var labelLayout;
-
- if (nameLocation === 'middle') {
- labelLayout = innerTextLayout(opt, opt.rotation, nameDirection);
- }
- else {
- labelLayout = endTextLayout(opt, nameLocation, extent);
- }
-
- this.group.add(new graphic.Text({
- style: {
- text: name,
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor()
- || axisModel.get('axisLine.lineStyle.color'),
- textAlign: labelLayout.textAlign,
- textVerticalAlign: labelLayout.verticalAlign
- },
- position: pos,
- rotation: labelLayout.rotation,
- silent: true,
- z2: 1
- }));
- }
-
- };
-
- /**
- * @inner
- */
- function innerTextLayout(opt, textRotation, direction) {
- var rotationDiff = remRadian(textRotation - opt.rotation);
- var textAlign;
- var verticalAlign;
-
- if (isRadianAroundZero(rotationDiff)) { // Label is parallel with axis line.
- verticalAlign = direction > 0 ? 'top' : 'bottom';
- textAlign = 'center';
- }
- else if (isRadianAroundZero(rotationDiff - PI)) { // Label is inverse parallel with axis line.
- verticalAlign = direction > 0 ? 'bottom' : 'top';
- textAlign = 'center';
- }
- else {
- verticalAlign = 'middle';
-
- if (rotationDiff > 0 && rotationDiff < PI) {
- textAlign = direction > 0 ? 'right' : 'left';
- }
- else {
- textAlign = direction > 0 ? 'left' : 'right';
- }
- }
-
- return {
- rotation: rotationDiff,
- textAlign: textAlign,
- verticalAlign: verticalAlign
- };
- }
-
- /**
- * @inner
- */
- function endTextLayout(opt, textPosition, extent) {
- var rotationDiff = remRadian(-opt.rotation);
- var textAlign;
- var verticalAlign;
- var inverse = extent[0] > extent[1];
- var onLeft = (textPosition === 'start' && !inverse)
- || (textPosition !== 'start' && inverse);
-
- if (isRadianAroundZero(rotationDiff - PI / 2)) {
- verticalAlign = onLeft ? 'bottom' : 'top';
- textAlign = 'center';
- }
- else if (isRadianAroundZero(rotationDiff - PI * 1.5)) {
- verticalAlign = onLeft ? 'top' : 'bottom';
- textAlign = 'center';
- }
- else {
- verticalAlign = 'middle';
- if (rotationDiff < PI * 1.5 && rotationDiff > PI / 2) {
- textAlign = onLeft ? 'left' : 'right';
- }
- else {
- textAlign = onLeft ? 'right' : 'left';
- }
- }
-
- return {
- rotation: rotationDiff,
- textAlign: textAlign,
- verticalAlign: verticalAlign
- };
- }
-
- /**
- * @static
- */
- var ifIgnoreOnTick = AxisBuilder.ifIgnoreOnTick = function (axis, i, interval) {
- var rawTick;
- var scale = axis.scale;
- return scale.type === 'ordinal'
- && (
- typeof interval === 'function'
- ? (
- rawTick = scale.getTicks()[i],
- !interval(rawTick, scale.getLabel(rawTick))
- )
- : i % (interval + 1)
- );
- };
-
- /**
- * @static
- */
- var getInterval = AxisBuilder.getInterval = function (model, labelInterval) {
- var interval = model.get('interval');
- if (interval == null || interval == 'auto') {
- interval = labelInterval;
- }
- return interval;
- };
-
- module.exports = AxisBuilder;
-
-
-
-/***/ },
-/* 127 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- __webpack_require__(107);
-
- __webpack_require__(128);
- __webpack_require__(129);
-
- var barLayoutGrid = __webpack_require__(131);
- var echarts = __webpack_require__(1);
-
- echarts.registerLayout(zrUtil.curry(barLayoutGrid, 'bar'));
- // Visual coding for legend
- echarts.registerVisualCoding('chart', function (ecModel) {
- ecModel.eachSeriesByType('bar', function (seriesModel) {
- var data = seriesModel.getData();
- data.setVisual('legendSymbol', 'roundRect');
- });
- });
-
- // In case developer forget to include grid component
- __webpack_require__(106);
-
-
-/***/ },
-/* 128 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var SeriesModel = __webpack_require__(27);
- var createListFromArray = __webpack_require__(93);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.bar',
-
- dependencies: ['grid', 'polar'],
-
- getInitialData: function (option, ecModel) {
- return createListFromArray(option.data, this, ecModel);
- },
-
- getMarkerPosition: function (value) {
- var coordSys = this.coordinateSystem;
- if (coordSys) {
- var pt = coordSys.dataToPoint(value);
- var data = this.getData();
- var offset = data.getLayout('offset');
- var size = data.getLayout('size');
- var offsetIndex = coordSys.getBaseAxis().isHorizontal() ? 0 : 1;
- pt[offsetIndex] += offset + size / 2;
- return pt;
- }
- return [NaN, NaN];
- },
-
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
- coordinateSystem: 'cartesian2d',
- legendHoverLink: true,
- // stack: null
-
- // Cartesian coordinate system
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- // 最小高度改为0
- barMinHeight: 0,
-
- // barMaxWidth: null,
- // 默认自适应
- // barWidth: null,
- // 柱间距离,默认为柱形宽度的30%,可设固定值
- // barGap: '30%',
- // 类目间柱形距离,默认为类目间距的20%,可设固定值
- // barCategoryGap: '20%',
- // label: {
- // normal: {
- // show: false
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
-
- // // 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // // 'inside' | 'insideleft' | 'insideTop' | 'insideRight' | 'insideBottom' |
- // // 'outside' |'left' | 'right'|'top'|'bottom'
- // position:
-
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- // }
- // },
- itemStyle: {
- normal: {
- // color: '各异',
- // 柱条边线
- barBorderColor: '#fff',
- // 柱条边线线宽,单位px,默认为1
- barBorderWidth: 0
- },
- emphasis: {
- // color: '各异',
- // 柱条边线
- barBorderColor: '#fff',
- // 柱条边线线宽,单位px,默认为1
- barBorderWidth: 0
- }
- }
- }
- });
-
-
-/***/ },
-/* 129 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
-
- zrUtil.extend(__webpack_require__(8).prototype, __webpack_require__(130));
-
- function fixLayoutWithLineWidth(layout, lineWidth) {
- var signX = layout.width > 0 ? 1 : -1;
- var signY = layout.height > 0 ? 1 : -1;
- // In case width or height are too small.
- lineWidth = Math.min(lineWidth, Math.abs(layout.width), Math.abs(layout.height));
- layout.x += signX * lineWidth / 2;
- layout.y += signY * lineWidth / 2;
- layout.width -= signX * lineWidth;
- layout.height -= signY * lineWidth;
- }
-
- module.exports = __webpack_require__(1).extendChartView({
-
- type: 'bar',
-
- render: function (seriesModel, ecModel, api) {
- var coordinateSystemType = seriesModel.get('coordinateSystem');
-
- if (coordinateSystemType === 'cartesian2d') {
- this._renderOnCartesian(seriesModel, ecModel, api);
- }
-
- return this.group;
- },
-
- _renderOnCartesian: function (seriesModel, ecModel, api) {
- var group = this.group;
- var data = seriesModel.getData();
- var oldData = this._data;
-
- var cartesian = seriesModel.coordinateSystem;
- var baseAxis = cartesian.getBaseAxis();
- var isHorizontal = baseAxis.isHorizontal();
-
- var enableAnimation = seriesModel.get('animation');
-
- var barBorderWidthQuery = ['itemStyle', 'normal', 'barBorderWidth'];
-
- function createRect(dataIndex, isUpdate) {
- var layout = data.getItemLayout(dataIndex);
- var lineWidth = data.getItemModel(dataIndex).get(barBorderWidthQuery) || 0;
- fixLayoutWithLineWidth(layout, lineWidth);
-
- var rect = new graphic.Rect({
- shape: zrUtil.extend({}, layout)
- });
- // Animation
- if (enableAnimation) {
- var rectShape = rect.shape;
- var animateProperty = isHorizontal ? 'height' : 'width';
- var animateTarget = {};
- rectShape[animateProperty] = 0;
- animateTarget[animateProperty] = layout[animateProperty];
- graphic[isUpdate? 'updateProps' : 'initProps'](rect, {
- shape: animateTarget
- }, seriesModel);
- }
- return rect;
- }
- data.diff(oldData)
- .add(function (dataIndex) {
- // 空数据
- if (!data.hasValue(dataIndex)) {
- return;
- }
-
- var rect = createRect(dataIndex);
-
- data.setItemGraphicEl(dataIndex, rect);
-
- group.add(rect);
-
- })
- .update(function (newIndex, oldIndex) {
- var rect = oldData.getItemGraphicEl(oldIndex);
- // 空数据
- if (!data.hasValue(newIndex)) {
- group.remove(rect);
- return;
- }
- if (!rect) {
- rect = createRect(newIndex, true);
- }
-
- var layout = data.getItemLayout(newIndex);
- var lineWidth = data.getItemModel(newIndex).get(barBorderWidthQuery) || 0;
- fixLayoutWithLineWidth(layout, lineWidth);
-
- graphic.updateProps(rect, {
- shape: layout
- }, seriesModel);
-
- data.setItemGraphicEl(newIndex, rect);
-
- // Add back
- group.add(rect);
- })
- .remove(function (idx) {
- var rect = oldData.getItemGraphicEl(idx);
- if (rect) {
- // Not show text when animating
- rect.style.text = '';
- graphic.updateProps(rect, {
- shape: {
- width: 0
- }
- }, seriesModel, function () {
- group.remove(rect);
- });
- }
- })
- .execute();
-
- this._updateStyle(seriesModel, data, isHorizontal);
-
- this._data = data;
- },
-
- _updateStyle: function (seriesModel, data, isHorizontal) {
- function setLabel(style, model, color, labelText, labelPositionOutside) {
- graphic.setText(style, model, color);
- style.text = labelText;
- if (style.textPosition === 'outside') {
- style.textPosition = labelPositionOutside;
- }
- }
-
- data.eachItemGraphicEl(function (rect, idx) {
- var itemModel = data.getItemModel(idx);
- var color = data.getItemVisual(idx, 'color');
- var layout = data.getItemLayout(idx);
- var itemStyleModel = itemModel.getModel('itemStyle.normal');
-
- var hoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
-
- rect.setShape('r', itemStyleModel.get('barBorderRadius') || 0);
-
- rect.setStyle(zrUtil.defaults(
- {
- fill: color
- },
- itemStyleModel.getBarItemStyle()
- ));
-
- var labelPositionOutside = isHorizontal
- ? (layout.height > 0 ? 'bottom' : 'top')
- : (layout.width > 0 ? 'left' : 'right');
-
- var labelModel = itemModel.getModel('label.normal');
- var hoverLabelModel = itemModel.getModel('label.emphasis');
- var rectStyle = rect.style;
- if (labelModel.get('show')) {
- setLabel(
- rectStyle, labelModel, color,
- zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'normal'),
- seriesModel.getRawValue(idx)
- ),
- labelPositionOutside
- );
- }
- else {
- rectStyle.text = '';
- }
- if (hoverLabelModel.get('show')) {
- setLabel(
- hoverStyle, hoverLabelModel, color,
- zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'emphasis'),
- seriesModel.getRawValue(idx)
- ),
- labelPositionOutside
- );
- }
- else {
- hoverStyle.text = '';
- }
- graphic.setHoverStyle(rect, hoverStyle);
- });
- },
-
- remove: function (ecModel, api) {
- var group = this.group;
- if (ecModel.get('animation')) {
- if (this._data) {
- this._data.eachItemGraphicEl(function (el) {
- // Not show text when animating
- el.style.text = '';
- graphic.updateProps(el, {
- shape: {
- width: 0
- }
- }, ecModel, function () {
- group.remove(el);
- });
- });
- }
- }
- else {
- group.removeAll();
- }
- }
- });
-
-
-/***/ },
-/* 130 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- module.exports = {
- getBarItemStyle: __webpack_require__(11)(
- [
- ['fill', 'color'],
- ['stroke', 'barBorderColor'],
- ['lineWidth', 'barBorderWidth'],
- ['opacity'],
- ['shadowBlur'],
- ['shadowOffsetX'],
- ['shadowOffsetY'],
- ['shadowColor']
- ]
- )
- };
-
-
-/***/ },
-/* 131 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var parsePercent = numberUtil.parsePercent;
-
- function getSeriesStackId(seriesModel) {
- return seriesModel.get('stack') || '__ec_stack_' + seriesModel.seriesIndex;
- }
-
- function calBarWidthAndOffset(barSeries, api) {
- // Columns info on each category axis. Key is cartesian name
- var columnsMap = {};
-
- zrUtil.each(barSeries, function (seriesModel, idx) {
- var cartesian = seriesModel.coordinateSystem;
-
- var baseAxis = cartesian.getBaseAxis();
-
- var columnsOnAxis = columnsMap[baseAxis.index] || {
- remainedWidth: baseAxis.getBandWidth(),
- autoWidthCount: 0,
- categoryGap: '20%',
- gap: '30%',
- axis: baseAxis,
- stacks: {}
- };
- var stacks = columnsOnAxis.stacks;
- columnsMap[baseAxis.index] = columnsOnAxis;
-
- var stackId = getSeriesStackId(seriesModel);
-
- if (!stacks[stackId]) {
- columnsOnAxis.autoWidthCount++;
- }
- stacks[stackId] = stacks[stackId] || {
- width: 0,
- maxWidth: 0
- };
-
- var barWidth = seriesModel.get('barWidth');
- var barMaxWidth = seriesModel.get('barMaxWidth');
- var barGap = seriesModel.get('barGap');
- var barCategoryGap = seriesModel.get('barCategoryGap');
- // TODO
- if (barWidth && ! stacks[stackId].width) {
- barWidth = Math.min(columnsOnAxis.remainedWidth, barWidth);
- stacks[stackId].width = barWidth;
- columnsOnAxis.remainedWidth -= barWidth;
- }
-
- barMaxWidth && (stacks[stackId].maxWidth = barMaxWidth);
- (barGap != null) && (columnsOnAxis.gap = barGap);
- (barCategoryGap != null) && (columnsOnAxis.categoryGap = barCategoryGap);
- });
-
- var result = {};
-
- zrUtil.each(columnsMap, function (columnsOnAxis, coordSysName) {
-
- result[coordSysName] = {};
-
- var stacks = columnsOnAxis.stacks;
- var baseAxis = columnsOnAxis.axis;
- var bandWidth = baseAxis.getBandWidth();
- var categoryGap = parsePercent(columnsOnAxis.categoryGap, bandWidth);
- var barGapPercent = parsePercent(columnsOnAxis.gap, 1);
-
- var remainedWidth = columnsOnAxis.remainedWidth;
- var autoWidthCount = columnsOnAxis.autoWidthCount;
- var autoWidth = (remainedWidth - categoryGap)
- / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
- autoWidth = Math.max(autoWidth, 0);
-
- // Find if any auto calculated bar exceeded maxBarWidth
- zrUtil.each(stacks, function (column, stack) {
- var maxWidth = column.maxWidth;
- if (!column.width && maxWidth && maxWidth < autoWidth) {
- maxWidth = Math.min(maxWidth, remainedWidth);
- remainedWidth -= maxWidth;
- column.width = maxWidth;
- autoWidthCount--;
- }
- });
-
- // Recalculate width again
- autoWidth = (remainedWidth - categoryGap)
- / (autoWidthCount + (autoWidthCount - 1) * barGapPercent);
- autoWidth = Math.max(autoWidth, 0);
-
- var widthSum = 0;
- var lastColumn;
- zrUtil.each(stacks, function (column, idx) {
- if (!column.width) {
- column.width = autoWidth;
- }
- lastColumn = column;
- widthSum += column.width * (1 + barGapPercent);
- });
- if (lastColumn) {
- widthSum -= lastColumn.width * barGapPercent;
- }
-
- var offset = -widthSum / 2;
- zrUtil.each(stacks, function (column, stackId) {
- result[coordSysName][stackId] = result[coordSysName][stackId] || {
- offset: offset,
- width: column.width
- };
-
- offset += column.width * (1 + barGapPercent);
- });
- });
-
- return result;
- }
-
- /**
- * @param {string} seriesType
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- */
- function barLayoutGrid(seriesType, ecModel, api) {
-
- var barWidthAndOffset = calBarWidthAndOffset(
- zrUtil.filter(
- ecModel.getSeriesByType(seriesType),
- function (seriesModel) {
- return !ecModel.isSeriesFiltered(seriesModel)
- && seriesModel.coordinateSystem
- && seriesModel.coordinateSystem.type === 'cartesian2d';
- }
- )
- );
-
- var lastStackCoords = {};
-
- ecModel.eachSeriesByType(seriesType, function (seriesModel) {
-
- var data = seriesModel.getData();
- var cartesian = seriesModel.coordinateSystem;
- var baseAxis = cartesian.getBaseAxis();
-
- var stackId = getSeriesStackId(seriesModel);
- var columnLayoutInfo = barWidthAndOffset[baseAxis.index][stackId];
- var columnOffset = columnLayoutInfo.offset;
- var columnWidth = columnLayoutInfo.width;
- var valueAxis = cartesian.getOtherAxis(baseAxis);
-
- var barMinHeight = seriesModel.get('barMinHeight') || 0;
-
- var valueAxisStart = baseAxis.onZero
- ? valueAxis.toGlobalCoord(valueAxis.dataToCoord(0))
- : valueAxis.getGlobalExtent()[0];
-
- var coords = cartesian.dataToPoints(data, true);
- lastStackCoords[stackId] = lastStackCoords[stackId] || [];
-
- data.setLayout({
- offset: columnOffset,
- size: columnWidth
- });
- data.each(valueAxis.dim, function (value, idx) {
- // 空数据
- if (isNaN(value)) {
- return;
- }
- if (!lastStackCoords[stackId][idx]) {
- lastStackCoords[stackId][idx] = {
- // Positive stack
- p: valueAxisStart,
- // Negative stack
- n: valueAxisStart
- };
- }
- var sign = value >= 0 ? 'p' : 'n';
- var coord = coords[idx];
- var lastCoord = lastStackCoords[stackId][idx][sign];
- var x, y, width, height;
- if (valueAxis.isHorizontal()) {
- x = lastCoord;
- y = coord[1] + columnOffset;
- width = coord[0] - lastCoord;
- height = columnWidth;
-
- if (Math.abs(width) < barMinHeight) {
- width = (width < 0 ? -1 : 1) * barMinHeight;
- }
- lastStackCoords[stackId][idx][sign] += width;
- }
- else {
- x = coord[0] + columnOffset;
- y = lastCoord;
- width = columnWidth;
- height = coord[1] - lastCoord;
- if (Math.abs(height) < barMinHeight) {
- // Include zero to has a positive bar
- height = (height <= 0 ? -1 : 1) * barMinHeight;
- }
- lastStackCoords[stackId][idx][sign] += height;
- }
-
- data.setItemLayout(idx, {
- x: x,
- y: y,
- width: width,
- height: height
- });
- }, true);
-
- }, this);
- }
-
- module.exports = barLayoutGrid;
-
-
-/***/ },
-/* 132 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- __webpack_require__(133);
- __webpack_require__(135);
-
- __webpack_require__(136)('pie', [{
- type: 'pieToggleSelect',
- event: 'pieselectchanged',
- method: 'toggleSelected'
- }, {
- type: 'pieSelect',
- event: 'pieselected',
- method: 'select'
- }, {
- type: 'pieUnSelect',
- event: 'pieunselected',
- method: 'unSelect'
- }]);
-
- echarts.registerVisualCoding(
- 'chart', zrUtil.curry(__webpack_require__(137), 'pie')
- );
-
- echarts.registerLayout(zrUtil.curry(
- __webpack_require__(138), 'pie'
- ));
-
- echarts.registerProcessor(
- 'filter', zrUtil.curry(__webpack_require__(140), 'pie')
- );
-
-
-/***/ },
-/* 133 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var List = __webpack_require__(94);
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var completeDimensions = __webpack_require__(96);
-
- var dataSelectableMixin = __webpack_require__(134);
-
- var PieSeries = __webpack_require__(1).extendSeriesModel({
-
- type: 'series.pie',
-
- // Overwrite
- init: function (option) {
- PieSeries.superApply(this, 'init', arguments);
-
- // Enable legend selection for each data item
- // Use a function instead of direct access because data reference may changed
- this.legendDataProvider = function () {
- return this._dataBeforeProcessed;
- };
-
- this.updateSelectedMap();
-
- this._defaultLabelLine(option);
- },
-
- // Overwrite
- mergeOption: function (newOption) {
- PieSeries.superCall(this, 'mergeOption', newOption);
- this.updateSelectedMap();
- },
-
- getInitialData: function (option, ecModel) {
- var dimensions = completeDimensions(['value'], option.data);
- var list = new List(dimensions, this);
- list.initData(option.data);
- return list;
- },
-
- // Overwrite
- getDataParams: function (dataIndex) {
- var data = this._data;
- var params = PieSeries.superCall(this, 'getDataParams', dataIndex);
- var sum = data.getSum('value');
- // FIXME toFixed?
- //
- // Percent is 0 if sum is 0
- params.percent = !sum ? 0 : +(data.get('value', dataIndex) / sum * 100).toFixed(2);
-
- params.$vars.push('percent');
- return params;
- },
-
- _defaultLabelLine: function (option) {
- // Extend labelLine emphasis
- modelUtil.defaultEmphasis(option.labelLine, ['show']);
-
- var labelLineNormalOpt = option.labelLine.normal;
- var labelLineEmphasisOpt = option.labelLine.emphasis;
- // Not show label line if `label.normal.show = false`
- labelLineNormalOpt.show = labelLineNormalOpt.show
- && option.label.normal.show;
- labelLineEmphasisOpt.show = labelLineEmphasisOpt.show
- && option.label.emphasis.show;
- },
-
- defaultOption: {
- zlevel: 0,
- z: 2,
- legendHoverLink: true,
-
- hoverAnimation: true,
- // 默认全局居中
- center: ['50%', '50%'],
- radius: [0, '75%'],
- // 默认顺时针
- clockwise: true,
- startAngle: 90,
- // 最小角度改为0
- minAngle: 0,
- // 选中是扇区偏移量
- selectedOffset: 10,
-
- // If use strategy to avoid label overlapping
- avoidLabelOverlap: true,
- // 选择模式,默认关闭,可选single,multiple
- // selectedMode: false,
- // 南丁格尔玫瑰图模式,'radius'(半径) | 'area'(面积)
- // roseType: null,
-
- label: {
- normal: {
- // If rotate around circle
- rotate: false,
- show: true,
- // 'outer', 'inside', 'center'
- position: 'outer'
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- // distance: 当position为inner时有效,为label位置到圆心的距离与圆半径(环状图为内外半径和)的比例系数
- },
- emphasis: {}
- },
- // Enabled when label.normal.position is 'outer'
- labelLine: {
- normal: {
- show: true,
- // 引导线两段中的第一段长度
- length: 15,
- // 引导线两段中的第二段长度
- length2: 15,
- smooth: false,
- lineStyle: {
- // color: 各异,
- width: 1,
- type: 'solid'
- }
- }
- },
- itemStyle: {
- normal: {
- // color: 各异,
- borderColor: 'rgba(0,0,0,0)',
- borderWidth: 1
- },
- emphasis: {
- // color: 各异,
- borderColor: 'rgba(0,0,0,0)',
- borderWidth: 1
- }
- },
-
- animationEasing: 'cubicOut',
-
- data: []
- }
- });
-
- zrUtil.mixin(PieSeries, dataSelectableMixin);
-
- module.exports = PieSeries;
-
-
-/***/ },
-/* 134 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Data selectable mixin for chart series.
- * To eanble data select, option of series must have `selectedMode`.
- * And each data item will use `selected` to toggle itself selected status
- *
- * @module echarts/chart/helper/DataSelectable
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = {
-
- updateSelectedMap: function () {
- var option = this.option;
- this._dataOptMap = zrUtil.reduce(option.data, function (dataOptMap, dataOpt) {
- dataOptMap[dataOpt.name] = dataOpt;
- return dataOptMap;
- }, {});
- },
- /**
- * @param {string} name
- */
- // PENGING If selectedMode is null ?
- select: function (name) {
- var dataOptMap = this._dataOptMap;
- var dataOpt = dataOptMap[name];
- var selectedMode = this.get('selectedMode');
- if (selectedMode === 'single') {
- zrUtil.each(dataOptMap, function (dataOpt) {
- dataOpt.selected = false;
- });
- }
- dataOpt && (dataOpt.selected = true);
- },
-
- /**
- * @param {string} name
- */
- unSelect: function (name) {
- var dataOpt = this._dataOptMap[name];
- // var selectedMode = this.get('selectedMode');
- // selectedMode !== 'single' && dataOpt && (dataOpt.selected = false);
- dataOpt && (dataOpt.selected = false);
- },
-
- /**
- * @param {string} name
- */
- toggleSelected: function (name) {
- var dataOpt = this._dataOptMap[name];
- if (dataOpt != null) {
- this[dataOpt.selected ? 'unSelect' : 'select'](name);
- return dataOpt.selected;
- }
- },
-
- /**
- * @param {string} name
- */
- isSelected: function (name) {
- var dataOpt = this._dataOptMap[name];
- return dataOpt && dataOpt.selected;
- }
- };
-
-
-/***/ },
-/* 135 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
-
- /**
- * @param {module:echarts/model/Series} seriesModel
- * @param {boolean} hasAnimation
- * @inner
- */
- function updateDataSelected(uid, seriesModel, hasAnimation, api) {
- var data = seriesModel.getData();
- var dataIndex = this.dataIndex;
- var name = data.getName(dataIndex);
- var selectedOffset = seriesModel.get('selectedOffset');
-
- api.dispatchAction({
- type: 'pieToggleSelect',
- from: uid,
- name: name,
- seriesId: seriesModel.id
- });
-
- data.each(function (idx) {
- toggleItemSelected(
- data.getItemGraphicEl(idx),
- data.getItemLayout(idx),
- seriesModel.isSelected(data.getName(idx)),
- selectedOffset,
- hasAnimation
- );
- });
- }
-
- /**
- * @param {module:zrender/graphic/Sector} el
- * @param {Object} layout
- * @param {boolean} isSelected
- * @param {number} selectedOffset
- * @param {boolean} hasAnimation
- * @inner
- */
- function toggleItemSelected(el, layout, isSelected, selectedOffset, hasAnimation) {
- var midAngle = (layout.startAngle + layout.endAngle) / 2;
-
- var dx = Math.cos(midAngle);
- var dy = Math.sin(midAngle);
-
- var offset = isSelected ? selectedOffset : 0;
- var position = [dx * offset, dy * offset];
-
- hasAnimation
- // animateTo will stop revious animation like update transition
- ? el.animate()
- .when(200, {
- position: position
- })
- .start('bounceOut')
- : el.attr('position', position);
- }
-
- /**
- * Piece of pie including Sector, Label, LabelLine
- * @constructor
- * @extends {module:zrender/graphic/Group}
- */
- function PiePiece(data, idx) {
-
- graphic.Group.call(this);
-
- var sector = new graphic.Sector({
- z2: 2
- });
- var polyline = new graphic.Polyline();
- var text = new graphic.Text();
- this.add(sector);
- this.add(polyline);
- this.add(text);
-
- this.updateData(data, idx, true);
-
- // Hover to change label and labelLine
- function onEmphasis() {
- polyline.ignore = polyline.hoverIgnore;
- text.ignore = text.hoverIgnore;
- }
- function onNormal() {
- polyline.ignore = polyline.normalIgnore;
- text.ignore = text.normalIgnore;
- }
- this.on('emphasis', onEmphasis)
- .on('normal', onNormal)
- .on('mouseover', onEmphasis)
- .on('mouseout', onNormal);
- }
-
- var piePieceProto = PiePiece.prototype;
-
- function getLabelStyle(data, idx, state, labelModel, labelPosition) {
- var textStyleModel = labelModel.getModel('textStyle');
- var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';
- return {
- fill: textStyleModel.getTextColor()
- || (isLabelInside ? '#fff' : data.getItemVisual(idx, 'color')),
- textFont: textStyleModel.getFont(),
- text: zrUtil.retrieve(
- data.hostModel.getFormattedLabel(idx, state), data.getName(idx)
- )
- };
- }
-
- piePieceProto.updateData = function (data, idx, firstCreate) {
-
- var sector = this.childAt(0);
-
- var seriesModel = data.hostModel;
- var itemModel = data.getItemModel(idx);
- var layout = data.getItemLayout(idx);
- var sectorShape = zrUtil.extend({}, layout);
- sectorShape.label = null;
- if (firstCreate) {
- sector.setShape(sectorShape);
- sector.shape.endAngle = layout.startAngle;
- graphic.updateProps(sector, {
- shape: {
- endAngle: layout.endAngle
- }
- }, seriesModel);
- }
- else {
- graphic.updateProps(sector, {
- shape: sectorShape
- }, seriesModel);
- }
-
- // Update common style
- var itemStyleModel = itemModel.getModel('itemStyle');
- var visualColor = data.getItemVisual(idx, 'color');
-
- sector.setStyle(
- zrUtil.defaults(
- {
- fill: visualColor
- },
- itemStyleModel.getModel('normal').getItemStyle()
- )
- );
- sector.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle();
-
- // Toggle selected
- toggleItemSelected(
- this,
- data.getItemLayout(idx),
- itemModel.get('selected'),
- seriesModel.get('selectedOffset'),
- seriesModel.get('animation')
- );
-
- function onEmphasis() {
- // Sector may has animation of updating data. Force to move to the last frame
- // Or it may stopped on the wrong shape
- sector.stopAnimation(true);
- sector.animateTo({
- shape: {
- r: layout.r + 10
- }
- }, 300, 'elasticOut');
- }
- function onNormal() {
- sector.stopAnimation(true);
- sector.animateTo({
- shape: {
- r: layout.r
- }
- }, 300, 'elasticOut');
- }
- sector.off('mouseover').off('mouseout').off('emphasis').off('normal');
- if (itemModel.get('hoverAnimation')) {
- sector
- .on('mouseover', onEmphasis)
- .on('mouseout', onNormal)
- .on('emphasis', onEmphasis)
- .on('normal', onNormal);
- }
-
- this._updateLabel(data, idx);
-
- graphic.setHoverStyle(this);
- };
-
- piePieceProto._updateLabel = function (data, idx) {
-
- var labelLine = this.childAt(1);
- var labelText = this.childAt(2);
-
- var seriesModel = data.hostModel;
- var itemModel = data.getItemModel(idx);
- var layout = data.getItemLayout(idx);
- var labelLayout = layout.label;
- var visualColor = data.getItemVisual(idx, 'color');
-
- graphic.updateProps(labelLine, {
- shape: {
- points: labelLayout.linePoints || [
- [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y], [labelLayout.x, labelLayout.y]
- ]
- }
- }, seriesModel);
-
- graphic.updateProps(labelText, {
- style: {
- x: labelLayout.x,
- y: labelLayout.y
- }
- }, seriesModel);
- labelText.attr({
- style: {
- textVerticalAlign: labelLayout.verticalAlign,
- textAlign: labelLayout.textAlign,
- textFont: labelLayout.font
- },
- rotation: labelLayout.rotation,
- origin: [labelLayout.x, labelLayout.y],
- z2: 10
- });
-
- var labelModel = itemModel.getModel('label.normal');
- var labelHoverModel = itemModel.getModel('label.emphasis');
- var labelLineModel = itemModel.getModel('labelLine.normal');
- var labelLineHoverModel = itemModel.getModel('labelLine.emphasis');
- var labelPosition = labelModel.get('position') || labelHoverModel.get('position');
-
- labelText.setStyle(getLabelStyle(data, idx, 'normal', labelModel, labelPosition));
-
- labelText.ignore = labelText.normalIgnore = !labelModel.get('show');
- labelText.hoverIgnore = !labelHoverModel.get('show');
-
- labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show');
- labelLine.hoverIgnore = !labelLineHoverModel.get('show');
-
- // Default use item visual color
- labelLine.setStyle({
- stroke: visualColor
- });
- labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle());
-
- labelText.hoverStyle = getLabelStyle(data, idx, 'emphasis', labelHoverModel, labelPosition);
- labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle();
-
- var smooth = labelLineModel.get('smooth');
- if (smooth && smooth === true) {
- smooth = 0.4;
- }
- labelLine.setShape({
- smooth: smooth
- });
- };
-
- zrUtil.inherits(PiePiece, graphic.Group);
-
-
- // Pie view
- var Pie = __webpack_require__(41).extend({
-
- type: 'pie',
-
- init: function () {
- var sectorGroup = new graphic.Group();
- this._sectorGroup = sectorGroup;
- },
-
- render: function (seriesModel, ecModel, api, payload) {
- if (payload && (payload.from === this.uid)) {
- return;
- }
-
- var data = seriesModel.getData();
- var oldData = this._data;
- var group = this.group;
-
- var hasAnimation = ecModel.get('animation');
- var isFirstRender = !oldData;
-
- var onSectorClick = zrUtil.curry(
- updateDataSelected, this.uid, seriesModel, hasAnimation, api
- );
-
- var selectedMode = seriesModel.get('selectedMode');
-
- data.diff(oldData)
- .add(function (idx) {
- var piePiece = new PiePiece(data, idx);
- if (isFirstRender) {
- piePiece.eachChild(function (child) {
- child.stopAnimation(true);
- });
- }
-
- selectedMode && piePiece.on('click', onSectorClick);
-
- data.setItemGraphicEl(idx, piePiece);
-
- group.add(piePiece);
- })
- .update(function (newIdx, oldIdx) {
- var piePiece = oldData.getItemGraphicEl(oldIdx);
-
- piePiece.updateData(data, newIdx);
-
- piePiece.off('click');
- selectedMode && piePiece.on('click', onSectorClick);
- group.add(piePiece);
- data.setItemGraphicEl(newIdx, piePiece);
- })
- .remove(function (idx) {
- var piePiece = oldData.getItemGraphicEl(idx);
- group.remove(piePiece);
- })
- .execute();
-
- if (hasAnimation && isFirstRender && data.count() > 0) {
- var shape = data.getItemLayout(0);
- var r = Math.max(api.getWidth(), api.getHeight()) / 2;
-
- var removeClipPath = zrUtil.bind(group.removeClipPath, group);
- group.setClipPath(this._createClipPath(
- shape.cx, shape.cy, r, shape.startAngle, shape.clockwise, removeClipPath, seriesModel
- ));
- }
-
- this._data = data;
- },
-
- _createClipPath: function (
- cx, cy, r, startAngle, clockwise, cb, seriesModel
- ) {
- var clipPath = new graphic.Sector({
- shape: {
- cx: cx,
- cy: cy,
- r0: 0,
- r: r,
- startAngle: startAngle,
- endAngle: startAngle,
- clockwise: clockwise
- }
- });
-
- graphic.initProps(clipPath, {
- shape: {
- endAngle: startAngle + (clockwise ? 1 : -1) * Math.PI * 2
- }
- }, seriesModel, cb);
-
- return clipPath;
- }
- });
-
- module.exports = Pie;
-
-
-/***/ },
-/* 136 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- var echarts = __webpack_require__(1);
- var zrUtil = __webpack_require__(3);
- module.exports = function (seriesType, actionInfos) {
- zrUtil.each(actionInfos, function (actionInfo) {
- actionInfo.update = 'updateView';
- /**
- * @payload
- * @property {string} seriesName
- * @property {string} name
- */
- echarts.registerAction(actionInfo, function (payload, ecModel) {
- var selected = {};
- ecModel.eachComponent(
- {mainType: 'series', subType: seriesType, query: payload},
- function (seriesModel) {
- if (seriesModel[actionInfo.method]) {
- seriesModel[actionInfo.method](payload.name);
- }
- var data = seriesModel.getData();
- // Create selected map
- data.each(function (idx) {
- var name = data.getName(idx);
- selected[name] = seriesModel.isSelected(name) || false;
- });
- }
- );
- return {
- name: payload.name,
- selected: selected
- };
- });
- });
- };
-
-
-/***/ },
-/* 137 */
-/***/ function(module, exports) {
-
- // Pick color from palette for each data item
-
-
- module.exports = function (seriesType, ecModel) {
- var globalColorList = ecModel.get('color');
- var offset = 0;
- ecModel.eachRawSeriesByType(seriesType, function (seriesModel) {
- var colorList = seriesModel.get('color', true);
- var dataAll = seriesModel.getRawData();
- if (!ecModel.isSeriesFiltered(seriesModel)) {
- var data = seriesModel.getData();
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- var rawIdx = data.getRawIndex(idx);
- // If series.itemStyle.normal.color is a function. itemVisual may be encoded
- var singleDataColor = data.getItemVisual(idx, 'color', true);
- if (!singleDataColor) {
- var paletteColor = colorList ? colorList[rawIdx % colorList.length]
- : globalColorList[(rawIdx + offset) % globalColorList.length];
- var color = itemModel.get('itemStyle.normal.color') || paletteColor;
- // Legend may use the visual info in data before processed
- dataAll.setItemVisual(rawIdx, 'color', color);
- data.setItemVisual(idx, 'color', color);
- }
- else {
- // Set data all color for legend
- dataAll.setItemVisual(rawIdx, 'color', singleDataColor);
- }
- });
- }
- offset += dataAll.count();
- });
- };
-
-
-/***/ },
-/* 138 */
-/***/ function(module, exports, __webpack_require__) {
-
- // TODO minAngle
-
-
-
- var numberUtil = __webpack_require__(7);
- var parsePercent = numberUtil.parsePercent;
- var labelLayout = __webpack_require__(139);
- var zrUtil = __webpack_require__(3);
-
- var PI2 = Math.PI * 2;
- var RADIAN = Math.PI / 180;
-
- module.exports = function (seriesType, ecModel, api) {
- ecModel.eachSeriesByType(seriesType, function (seriesModel) {
- var center = seriesModel.get('center');
- var radius = seriesModel.get('radius');
-
- if (!zrUtil.isArray(radius)) {
- radius = [0, radius];
- }
- if (!zrUtil.isArray(center)) {
- center = [center, center];
- }
-
- var width = api.getWidth();
- var height = api.getHeight();
- var size = Math.min(width, height);
- var cx = parsePercent(center[0], width);
- var cy = parsePercent(center[1], height);
- var r0 = parsePercent(radius[0], size / 2);
- var r = parsePercent(radius[1], size / 2);
-
- var data = seriesModel.getData();
-
- var startAngle = -seriesModel.get('startAngle') * RADIAN;
-
- var minAngle = seriesModel.get('minAngle') * RADIAN;
-
- var sum = data.getSum('value');
- // Sum may be 0
- var unitRadian = Math.PI / (sum || data.count()) * 2;
-
- var clockwise = seriesModel.get('clockwise');
-
- var roseType = seriesModel.get('roseType');
-
- // [0...max]
- var extent = data.getDataExtent('value');
- extent[0] = 0;
-
- // In the case some sector angle is smaller than minAngle
- var restAngle = PI2;
- var valueSumLargerThanMinAngle = 0;
-
- var currentAngle = startAngle;
-
- var dir = clockwise ? 1 : -1;
- data.each('value', function (value, idx) {
- var angle;
- // FIXME 兼容 2.0 但是 roseType 是 area 的时候才是这样?
- if (roseType !== 'area') {
- angle = sum === 0 ? unitRadian : (value * unitRadian);
- }
- else {
- angle = PI2 / (data.count() || 1);
- }
-
- if (angle < minAngle) {
- angle = minAngle;
- restAngle -= minAngle;
- }
- else {
- valueSumLargerThanMinAngle += value;
- }
-
- var endAngle = currentAngle + dir * angle;
- data.setItemLayout(idx, {
- angle: angle,
- startAngle: currentAngle,
- endAngle: endAngle,
- clockwise: clockwise,
- cx: cx,
- cy: cy,
- r0: r0,
- r: roseType
- ? numberUtil.linearMap(value, extent, [r0, r])
- : r
- });
-
- currentAngle = endAngle;
- }, true);
-
- // Some sector is constrained by minAngle
- // Rest sectors needs recalculate angle
- if (restAngle < PI2) {
- // Average the angle if rest angle is not enough after all angles is
- // Constrained by minAngle
- if (restAngle <= 1e-3) {
- var angle = PI2 / data.count();
- data.each(function (idx) {
- var layout = data.getItemLayout(idx);
- layout.startAngle = startAngle + dir * idx * angle;
- layout.endAngle = startAngle + dir * (idx + 1) * angle;
- });
- }
- else {
- unitRadian = restAngle / valueSumLargerThanMinAngle;
- currentAngle = startAngle;
- data.each('value', function (value, idx) {
- var layout = data.getItemLayout(idx);
- var angle = layout.angle === minAngle
- ? minAngle : value * unitRadian;
- layout.startAngle = currentAngle;
- layout.endAngle = currentAngle + dir * angle;
- currentAngle += angle;
- });
- }
- }
-
- labelLayout(seriesModel, r, width, height);
- });
- };
-
-
-/***/ },
-/* 139 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- // FIXME emphasis label position is not same with normal label position
-
-
- var textContain = __webpack_require__(14);
-
- function adjustSingleSide(list, cx, cy, r, dir, viewWidth, viewHeight) {
- list.sort(function (a, b) {
- return a.y - b.y;
- });
-
- // 压
- function shiftDown(start, end, delta, dir) {
- for (var j = start; j < end; j++) {
- list[j].y += delta;
- if (j > start
- && j + 1 < end
- && list[j + 1].y > list[j].y + list[j].height
- ) {
- shiftUp(j, delta / 2);
- return;
- }
- }
-
- shiftUp(end - 1, delta / 2);
- }
-
- // 弹
- function shiftUp(end, delta) {
- for (var j = end; j >= 0; j--) {
- list[j].y -= delta;
- if (j > 0
- && list[j].y > list[j - 1].y + list[j - 1].height
- ) {
- break;
- }
- }
- }
-
- function changeX(list, isDownList, cx, cy, r, dir) {
- var lastDeltaX = dir > 0
- ? isDownList // 右侧
- ? Number.MAX_VALUE // 下
- : 0 // 上
- : isDownList // 左侧
- ? Number.MAX_VALUE // 下
- : 0; // 上
-
- for (var i = 0, l = list.length; i < l; i++) {
- // Not change x for center label
- if (list[i].position === 'center') {
- continue;
- }
- var deltaY = Math.abs(list[i].y - cy);
- var length = list[i].len;
- var length2 = list[i].len2;
- var deltaX = (deltaY < r + length)
- ? Math.sqrt(
- (r + length + length2) * (r + length + length2)
- - deltaY * deltaY
- )
- : Math.abs(list[i].x - cx);
- if (isDownList && deltaX >= lastDeltaX) {
- // 右下,左下
- deltaX = lastDeltaX - 10;
- }
- if (!isDownList && deltaX <= lastDeltaX) {
- // 右上,左上
- deltaX = lastDeltaX + 10;
- }
-
- list[i].x = cx + deltaX * dir;
- lastDeltaX = deltaX;
- }
- }
-
- var lastY = 0;
- var delta;
- var len = list.length;
- var upList = [];
- var downList = [];
- for (var i = 0; i < len; i++) {
- delta = list[i].y - lastY;
- if (delta < 0) {
- shiftDown(i, len, -delta, dir);
- }
- lastY = list[i].y + list[i].height;
- }
- if (viewHeight - lastY < 0) {
- shiftUp(len - 1, lastY - viewHeight);
- }
- for (var i = 0; i < len; i++) {
- if (list[i].y >= cy) {
- downList.push(list[i]);
- }
- else {
- upList.push(list[i]);
- }
- }
- changeX(upList, false, cx, cy, r, dir);
- changeX(downList, true, cx, cy, r, dir);
- }
-
- function avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight) {
- var leftList = [];
- var rightList = [];
- for (var i = 0; i < labelLayoutList.length; i++) {
- if (labelLayoutList[i].x < cx) {
- leftList.push(labelLayoutList[i]);
- }
- else {
- rightList.push(labelLayoutList[i]);
- }
- }
-
- adjustSingleSide(rightList, cx, cy, r, 1, viewWidth, viewHeight);
- adjustSingleSide(leftList, cx, cy, r, -1, viewWidth, viewHeight);
-
- for (var i = 0; i < labelLayoutList.length; i++) {
- var linePoints = labelLayoutList[i].linePoints;
- if (linePoints) {
- var dist = linePoints[1][0] - linePoints[2][0];
- if (labelLayoutList[i].x < cx) {
- linePoints[2][0] = labelLayoutList[i].x + 3;
- }
- else {
- linePoints[2][0] = labelLayoutList[i].x - 3;
- }
- linePoints[1][1] = linePoints[2][1] = labelLayoutList[i].y;
- linePoints[1][0] = linePoints[2][0] + dist;
- }
- }
- }
-
- module.exports = function (seriesModel, r, viewWidth, viewHeight) {
- var data = seriesModel.getData();
- var labelLayoutList = [];
- var cx;
- var cy;
- var hasLabelRotate = false;
-
- data.each(function (idx) {
- var layout = data.getItemLayout(idx);
-
- var itemModel = data.getItemModel(idx);
- var labelModel = itemModel.getModel('label.normal');
- // Use position in normal or emphasis
- var labelPosition = labelModel.get('position') || itemModel.get('label.emphasis.position');
-
- var labelLineModel = itemModel.getModel('labelLine.normal');
- var labelLineLen = labelLineModel.get('length');
- var labelLineLen2 = labelLineModel.get('length2');
-
- var midAngle = (layout.startAngle + layout.endAngle) / 2;
- var dx = Math.cos(midAngle);
- var dy = Math.sin(midAngle);
-
- var textX;
- var textY;
- var linePoints;
- var textAlign;
-
- cx = layout.cx;
- cy = layout.cy;
-
- var isLabelInside = labelPosition === 'inside' || labelPosition === 'inner';
- if (labelPosition === 'center') {
- textX = layout.cx;
- textY = layout.cy;
- textAlign = 'center';
- }
- else {
- var x1 = (isLabelInside ? layout.r / 2 * dx : layout.r * dx) + cx;
- var y1 = (isLabelInside ? layout.r / 2 * dy : layout.r * dy) + cy;
-
- textX = x1 + dx * 3;
- textY = y1 + dy * 3;
-
- if (!isLabelInside) {
- // For roseType
- var x2 = x1 + dx * (labelLineLen + r - layout.r);
- var y2 = y1 + dy * (labelLineLen + r - layout.r);
- var x3 = x2 + ((dx < 0 ? -1 : 1) * labelLineLen2);
- var y3 = y2;
-
- textX = x3 + (dx < 0 ? -5 : 5);
- textY = y3;
- linePoints = [[x1, y1], [x2, y2], [x3, y3]];
- }
-
- textAlign = isLabelInside ? 'center' : (dx > 0 ? 'left' : 'right');
- }
- var font = labelModel.getModel('textStyle').getFont();
-
- var labelRotate = labelModel.get('rotate')
- ? (dx < 0 ? -midAngle + Math.PI : -midAngle) : 0;
- var text = seriesModel.getFormattedLabel(idx, 'normal')
- || data.getName(idx);
- var textRect = textContain.getBoundingRect(
- text, font, textAlign, 'top'
- );
- hasLabelRotate = !!labelRotate;
- layout.label = {
- x: textX,
- y: textY,
- position: labelPosition,
- height: textRect.height,
- len: labelLineLen,
- len2: labelLineLen2,
- linePoints: linePoints,
- textAlign: textAlign,
- verticalAlign: 'middle',
- font: font,
- rotation: labelRotate
- };
-
- // Not layout the inside label
- if (!isLabelInside) {
- labelLayoutList.push(layout.label);
- }
- });
- if (!hasLabelRotate && seriesModel.get('avoidLabelOverlap')) {
- avoidOverlap(labelLayoutList, cx, cy, r, viewWidth, viewHeight);
- }
- };
-
-
-/***/ },
-/* 140 */
-/***/ function(module, exports) {
-
-
- module.exports = function (seriesType, ecModel) {
- var legendModels = ecModel.findComponents({
- mainType: 'legend'
- });
- if (!legendModels || !legendModels.length) {
- return;
- }
- ecModel.eachSeriesByType(seriesType, function (series) {
- var data = series.getData();
- data.filterSelf(function (idx) {
- var name = data.getName(idx);
- // If in any legend component the status is not selected.
- for (var i = 0; i < legendModels.length; i++) {
- if (!legendModels[i].isSelected(name)) {
- return false;
- }
- }
- return true;
- }, this);
- }, this);
- };
-
-
-/***/ },
-/* 141 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- __webpack_require__(142);
- __webpack_require__(143);
-
- echarts.registerVisualCoding('chart', zrUtil.curry(
- __webpack_require__(103), 'scatter', 'circle', null
- ));
- echarts.registerLayout(zrUtil.curry(
- __webpack_require__(104), 'scatter'
- ));
-
- // In case developer forget to include grid component
- __webpack_require__(106);
-
-
-/***/ },
-/* 142 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var createListFromArray = __webpack_require__(93);
- var SeriesModel = __webpack_require__(27);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.scatter',
-
- dependencies: ['grid', 'polar'],
-
- getInitialData: function (option, ecModel) {
- var list = createListFromArray(option.data, this, ecModel);
- return list;
- },
-
- defaultOption: {
- coordinateSystem: 'cartesian2d',
- zlevel: 0,
- z: 2,
- legendHoverLink: true,
-
- hoverAnimation: true,
- // Cartesian coordinate system
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- // Polar coordinate system
- polarIndex: 0,
-
- // Geo coordinate system
- geoIndex: 0,
-
- // symbol: null, // 图形类型
- symbolSize: 10, // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
- // symbolRotate: null, // 图形旋转控制
-
- large: false,
- // Available when large is true
- largeThreshold: 2000,
-
- // label: {
- // normal: {
- // show: false
- // distance: 5,
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // 'inside'|'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- // }
- // },
- itemStyle: {
- normal: {
- opacity: 0.8
- // color: 各异
- }
- }
- }
- });
-
-
-/***/ },
-/* 143 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var SymbolDraw = __webpack_require__(98);
- var LargeSymbolDraw = __webpack_require__(144);
-
- __webpack_require__(1).extendChartView({
-
- type: 'scatter',
-
- init: function () {
- this._normalSymbolDraw = new SymbolDraw();
- this._largeSymbolDraw = new LargeSymbolDraw();
- },
-
- render: function (seriesModel, ecModel, api) {
- var data = seriesModel.getData();
- var largeSymbolDraw = this._largeSymbolDraw;
- var normalSymbolDraw = this._normalSymbolDraw;
- var group = this.group;
-
- var symbolDraw = seriesModel.get('large') && data.count() > seriesModel.get('largeThreshold')
- ? largeSymbolDraw : normalSymbolDraw;
-
- this._symbolDraw = symbolDraw;
- symbolDraw.updateData(data);
- group.add(symbolDraw.group);
-
- group.remove(
- symbolDraw === largeSymbolDraw
- ? normalSymbolDraw.group : largeSymbolDraw.group
- );
- },
-
- updateLayout: function (seriesModel) {
- this._symbolDraw.updateLayout(seriesModel);
- },
-
- remove: function (ecModel, api) {
- this._symbolDraw && this._symbolDraw.remove(api, true);
- }
- });
-
-
-/***/ },
-/* 144 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var symbolUtil = __webpack_require__(100);
- var zrUtil = __webpack_require__(3);
-
- var LargeSymbolPath = graphic.extendShape({
- shape: {
- points: null,
- sizes: null
- },
-
- symbolProxy: null,
-
- buildPath: function (path, shape) {
- var points = shape.points;
- var sizes = shape.sizes;
-
- var symbolProxy = this.symbolProxy;
- var symbolProxyShape = symbolProxy.shape;
- for (var i = 0; i < points.length; i++) {
- var pt = points[i];
- var size = sizes[i];
- if (size[0] < 4) {
- // Optimize for small symbol
- path.rect(
- pt[0] - size[0] / 2, pt[1] - size[1] / 2,
- size[0], size[1]
- );
- }
- else {
- symbolProxyShape.x = pt[0] - size[0] / 2;
- symbolProxyShape.y = pt[1] - size[1] / 2;
- symbolProxyShape.width = size[0];
- symbolProxyShape.height = size[1];
-
- symbolProxy.buildPath(path, symbolProxyShape);
- }
- }
- }
- });
-
- function LargeSymbolDraw() {
- this.group = new graphic.Group();
-
- this._symbolEl = new LargeSymbolPath({
- silent: true
- });
- }
-
- var largeSymbolProto = LargeSymbolDraw.prototype;
-
- /**
- * Update symbols draw by new data
- * @param {module:echarts/data/List} data
- */
- largeSymbolProto.updateData = function (data) {
- this.group.removeAll();
-
- var symbolEl = this._symbolEl;
-
- var seriesModel = data.hostModel;
-
- symbolEl.setShape({
- points: data.mapArray(data.getItemLayout),
- sizes: data.mapArray(
- function (idx) {
- var size = data.getItemVisual(idx, 'symbolSize');
- if (!zrUtil.isArray(size)) {
- size = [size, size];
- }
- return size;
- }
- )
- });
-
- // Create symbolProxy to build path for each data
- symbolEl.symbolProxy = symbolUtil.createSymbol(
- data.getVisual('symbol'), 0, 0, 0, 0
- );
- // Use symbolProxy setColor method
- symbolEl.setColor = symbolEl.symbolProxy.setColor;
-
- symbolEl.setStyle(
- seriesModel.getModel('itemStyle.normal').getItemStyle(['color'])
- );
-
- var visualColor = data.getVisual('color');
- if (visualColor) {
- symbolEl.setColor(visualColor);
- }
-
- // Add back
- this.group.add(this._symbolEl);
- };
-
- largeSymbolProto.updateLayout = function (seriesModel) {
- var data = seriesModel.getData();
- this._symbolEl.setShape({
- points: data.mapArray(data.getItemLayout)
- });
- };
-
- largeSymbolProto.remove = function () {
- this.group.removeAll();
- };
-
- module.exports = LargeSymbolDraw;
-
-
-/***/ },
-/* 145 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- // Must use radar component
- __webpack_require__(146);
-
- __webpack_require__(151);
- __webpack_require__(152);
-
- echarts.registerVisualCoding(
- 'chart', zrUtil.curry(__webpack_require__(137), 'radar')
- );
- echarts.registerVisualCoding('chart', zrUtil.curry(
- __webpack_require__(103), 'radar', 'circle', null
- ));
- echarts.registerLayout(__webpack_require__(153));
-
- echarts.registerProcessor(
- 'filter', zrUtil.curry(__webpack_require__(140), 'radar')
- );
-
- echarts.registerPreprocessor(__webpack_require__(154));
-
-
-/***/ },
-/* 146 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(147);
- __webpack_require__(149);
-
- __webpack_require__(150);
-
-
-/***/ },
-/* 147 */
-/***/ function(module, exports, __webpack_require__) {
-
- // TODO clockwise
-
-
- var zrUtil = __webpack_require__(3);
- var IndicatorAxis = __webpack_require__(148);
- var IntervalScale = __webpack_require__(111);
- var numberUtil = __webpack_require__(7);
- var axisHelper = __webpack_require__(108);
-
- function Radar(radarModel, ecModel, api) {
-
- this._model = radarModel;
- /**
- * Radar dimensions
- * @type {Array.<string>}
- */
- this.dimensions = [];
-
- this._indicatorAxes = zrUtil.map(radarModel.getIndicatorModels(), function (indicatorModel, idx) {
- var dim = 'indicator_' + idx;
- var indicatorAxis = new IndicatorAxis(dim, new IntervalScale());
- indicatorAxis.name = indicatorModel.get('name');
- // Inject model and axis
- indicatorAxis.model = indicatorModel;
- indicatorModel.axis = indicatorAxis;
- this.dimensions.push(dim);
- return indicatorAxis;
- }, this);
-
- this.resize(radarModel, api);
-
- /**
- * @type {number}
- * @readOnly
- */
- this.cx;
- /**
- * @type {number}
- * @readOnly
- */
- this.cy;
- /**
- * @type {number}
- * @readOnly
- */
- this.r;
- /**
- * @type {number}
- * @readOnly
- */
- this.startAngle;
- }
-
- Radar.prototype.getIndicatorAxes = function () {
- return this._indicatorAxes;
- };
-
- Radar.prototype.dataToPoint = function (value, indicatorIndex) {
- var indicatorAxis = this._indicatorAxes[indicatorIndex];
-
- return this.coordToPoint(indicatorAxis.dataToCoord(value), indicatorIndex);
- };
-
- Radar.prototype.coordToPoint = function (coord, indicatorIndex) {
- var indicatorAxis = this._indicatorAxes[indicatorIndex];
- var angle = indicatorAxis.angle;
- var x = this.cx + coord * Math.cos(angle);
- var y = this.cy - coord * Math.sin(angle);
- return [x, y];
- };
-
- Radar.prototype.pointToData = function (pt) {
- var dx = pt[0] - this.cx;
- var dy = pt[1] - this.cy;
- var radius = Math.sqrt(dx * dx + dy * dy);
- dx /= radius;
- dy /= radius;
-
- var radian = Math.atan2(-dy, dx);
-
- // Find the closest angle
- // FIXME index can calculated directly
- var minRadianDiff = Infinity;
- var closestAxis;
- var closestAxisIdx = -1;
- for (var i = 0; i < this._indicatorAxes.length; i++) {
- var indicatorAxis = this._indicatorAxes[i];
- var diff = Math.abs(radian - indicatorAxis.angle);
- if (diff < minRadianDiff) {
- closestAxis = indicatorAxis;
- closestAxisIdx = i;
- minRadianDiff = diff;
- }
- }
-
- return [closestAxisIdx, +(closestAxis && closestAxis.coodToData(radius))];
- };
-
- Radar.prototype.resize = function (radarModel, api) {
- var center = radarModel.get('center');
- var viewWidth = api.getWidth();
- var viewHeight = api.getHeight();
- var viewSize = Math.min(viewWidth, viewHeight) / 2;
- this.cx = numberUtil.parsePercent(center[0], viewWidth);
- this.cy = numberUtil.parsePercent(center[1], viewHeight);
-
- this.startAngle = radarModel.get('startAngle') * Math.PI / 180;
-
- this.r = numberUtil.parsePercent(radarModel.get('radius'), viewSize);
-
- zrUtil.each(this._indicatorAxes, function (indicatorAxis, idx) {
- indicatorAxis.setExtent(0, this.r);
- var angle = (this.startAngle + idx * Math.PI * 2 / this._indicatorAxes.length);
- // Normalize to [-PI, PI]
- angle = Math.atan2(Math.sin(angle), Math.cos(angle));
- indicatorAxis.angle = angle;
- }, this);
- };
-
- Radar.prototype.update = function (ecModel, api) {
- var indicatorAxes = this._indicatorAxes;
- var radarModel = this._model;
- zrUtil.each(indicatorAxes, function (indicatorAxis) {
- indicatorAxis.scale.setExtent(Infinity, -Infinity);
- });
- ecModel.eachSeriesByType('radar', function (radarSeries, idx) {
- if (radarSeries.get('coordinateSystem') !== 'radar'
- || ecModel.getComponent('radar', radarSeries.get('radarIndex')) !== radarModel
- ) {
- return;
- }
- var data = radarSeries.getData();
- zrUtil.each(indicatorAxes, function (indicatorAxis) {
- indicatorAxis.scale.unionExtent(data.getDataExtent(indicatorAxis.dim));
- });
- }, this);
-
- var splitNumber = radarModel.get('splitNumber');
-
- function increaseInterval(interval) {
- var exp10 = Math.pow(10, Math.floor(Math.log(interval) / Math.LN10));
- // Increase interval
- var f = interval / exp10;
- if (f === 2) {
- f = 5;
- }
- else { // f is 2 or 5
- f *= 2;
- }
- return f * exp10;
- }
- // Force all the axis fixing the maxSplitNumber.
- zrUtil.each(indicatorAxes, function (indicatorAxis, idx) {
- var rawExtent = axisHelper.getScaleExtent(indicatorAxis, indicatorAxis.model);
- axisHelper.niceScaleExtent(indicatorAxis, indicatorAxis.model);
-
- var axisModel = indicatorAxis.model;
- var scale = indicatorAxis.scale;
- var fixedMin = axisModel.get('min');
- var fixedMax = axisModel.get('max');
- var interval = scale.getInterval();
-
- if (fixedMin != null && fixedMax != null) {
- // User set min, max, divide to get new interval
- // FIXME precision
- scale.setInterval(
- (fixedMax - fixedMin) / splitNumber
- );
- }
- else if (fixedMin != null) {
- var max;
- // User set min, expand extent on the other side
- do {
- max = fixedMin + interval * splitNumber;
- scale.setExtent(+fixedMin, max);
- // Interval must been set after extent
- // FIXME
- scale.setInterval(interval);
-
- interval = increaseInterval(interval);
- } while (max < rawExtent[1] && isFinite(max) && isFinite(rawExtent[1]));
- }
- else if (fixedMax != null) {
- var min;
- // User set min, expand extent on the other side
- do {
- min = fixedMax - interval * splitNumber;
- scale.setExtent(min, +fixedMax);
- scale.setInterval(interval);
- interval = increaseInterval(interval);
- } while (min > rawExtent[0] && isFinite(min) && isFinite(rawExtent[0]));
- }
- else {
- var nicedSplitNumber = scale.getTicks().length - 1;
- if (nicedSplitNumber > splitNumber) {
- interval = increaseInterval(interval);
- }
- // PENDING
- var center = Math.round((rawExtent[0] + rawExtent[1]) / 2 / interval) * interval;
- var halfSplitNumber = Math.round(splitNumber / 2);
- scale.setExtent(
- numberUtil.round(center - halfSplitNumber * interval),
- numberUtil.round(center + (splitNumber - halfSplitNumber) * interval)
- );
- scale.setInterval(interval);
- }
- });
- };
-
- /**
- * Radar dimensions is based on the data
- * @type {Array}
- */
- Radar.dimensions = [];
-
- Radar.create = function (ecModel, api) {
- var radarList = [];
- ecModel.eachComponent('radar', function (radarModel) {
- var radar = new Radar(radarModel, ecModel, api);
- radarList.push(radar);
- radarModel.coordinateSystem = radar;
- });
- ecModel.eachSeriesByType('radar', function (radarSeries) {
- if (radarSeries.get('coordinateSystem') === 'radar') {
- // Inject coordinate system
- radarSeries.coordinateSystem = radarList[radarSeries.get('radarIndex') || 0];
- }
- });
- return radarList;
- };
-
- __webpack_require__(25).register('radar', Radar);
- module.exports = Radar;
-
-
-/***/ },
-/* 148 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
-
- function IndicatorAxis(dim, scale, radiusExtent) {
- Axis.call(this, dim, scale, radiusExtent);
-
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = 'value';
-
- this.angle = 0;
-
- /**
- * Indicator name
- * @type {string}
- */
- this.name = '';
- /**
- * @type {module:echarts/model/Model}
- */
- this.model;
- }
-
- zrUtil.inherits(IndicatorAxis, Axis);
-
- module.exports = IndicatorAxis;
-
-
-/***/ },
-/* 149 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
-
- var axisDefault = __webpack_require__(122);
- var valueAxisDefault = axisDefault.valueAxis;
- var Model = __webpack_require__(8);
- var zrUtil = __webpack_require__(3);
-
- var axisModelCommonMixin = __webpack_require__(123);
-
- function defaultsShow(opt, show) {
- return zrUtil.defaults({
- show: show
- }, opt);
- }
-
- var RadarModel = __webpack_require__(1).extendComponentModel({
-
- type: 'radar',
-
- optionUpdated: function () {
- var boundaryGap = this.get('boundaryGap');
- var splitNumber = this.get('splitNumber');
- var scale = this.get('scale');
- var axisLine = this.get('axisLine');
- var axisTick = this.get('axisTick');
- var axisLabel = this.get('axisLabel');
- var nameTextStyle = this.get('name.textStyle');
- var showName = this.get('name.show');
- var nameFormatter = this.get('name.formatter');
- var nameGap = this.get('nameGap');
- var indicatorModels = zrUtil.map(this.get('indicator') || [], function (indicatorOpt) {
- // PENDING
- if (indicatorOpt.max != null && indicatorOpt.max > 0) {
- indicatorOpt.min = 0;
- }
- else if (indicatorOpt.min != null && indicatorOpt.min < 0) {
- indicatorOpt.max = 0;
- }
- // Use same configuration
- indicatorOpt = zrUtil.merge(zrUtil.clone(indicatorOpt), {
- boundaryGap: boundaryGap,
- splitNumber: splitNumber,
- scale: scale,
- axisLine: axisLine,
- axisTick: axisTick,
- axisLabel: axisLabel,
- // Competitable with 2 and use text
- name: indicatorOpt.text,
- nameLocation: 'end',
- nameGap: nameGap,
- // min: 0,
- nameTextStyle: nameTextStyle
- }, false);
- if (!showName) {
- indicatorOpt.name = '';
- }
- if (typeof nameFormatter === 'string') {
- indicatorOpt.name = nameFormatter.replace('{value}', indicatorOpt.name);
- }
- else if (typeof nameFormatter === 'function') {
- indicatorOpt.name = nameFormatter(
- indicatorOpt.name, indicatorOpt
- );
- }
- return zrUtil.extend(
- new Model(indicatorOpt, null, this.ecModel),
- axisModelCommonMixin
- );
- }, this);
- this.getIndicatorModels = function () {
- return indicatorModels;
- };
- },
-
- defaultOption: {
-
- zlevel: 0,
-
- z: 0,
-
- center: ['50%', '50%'],
-
- radius: '75%',
-
- startAngle: 90,
-
- name: {
- show: true
- // formatter: null
- // textStyle: {}
- },
-
- boundaryGap: [0, 0],
-
- splitNumber: 5,
-
- nameGap: 15,
-
- scale: false,
-
- // Polygon or circle
- shape: 'polygon',
-
- axisLine: zrUtil.merge(
- {
- lineStyle: {
- color: '#bbb'
- }
- },
- valueAxisDefault.axisLine
- ),
- axisLabel: defaultsShow(valueAxisDefault.axisLabel, false),
- axisTick: defaultsShow(valueAxisDefault.axisTick, false),
- splitLine: defaultsShow(valueAxisDefault.splitLine, true),
- splitArea: defaultsShow(valueAxisDefault.splitArea, true),
-
- // {text, min, max}
- indicator: []
- }
- });
-
- module.exports = RadarModel;
-
-
-/***/ },
-/* 150 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var AxisBuilder = __webpack_require__(126);
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
-
- var axisBuilderAttrs = [
- 'axisLine', 'axisLabel', 'axisTick', 'axisName'
- ];
-
- module.exports = __webpack_require__(1).extendComponentView({
-
- type: 'radar',
-
- render: function (radarModel, ecModel, api) {
- var group = this.group;
- group.removeAll();
-
- this._buildAxes(radarModel);
- this._buildSplitLineAndArea(radarModel);
- },
-
- _buildAxes: function (radarModel) {
- var radar = radarModel.coordinateSystem;
- var indicatorAxes = radar.getIndicatorAxes();
- var axisBuilders = zrUtil.map(indicatorAxes, function (indicatorAxis) {
- var axisBuilder = new AxisBuilder(indicatorAxis.model, {
- position: [radar.cx, radar.cy],
- rotation: indicatorAxis.angle,
- labelDirection: -1,
- tickDirection: -1,
- nameDirection: 1
- });
- return axisBuilder;
- });
-
- zrUtil.each(axisBuilders, function (axisBuilder) {
- zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);
- this.group.add(axisBuilder.getGroup());
- }, this);
- },
-
- _buildSplitLineAndArea: function (radarModel) {
- var radar = radarModel.coordinateSystem;
- var splitNumber = radarModel.get('splitNumber');
- var indicatorAxes = radar.getIndicatorAxes();
- if (!indicatorAxes.length) {
- return;
- }
- var shape = radarModel.get('shape');
- var splitLineModel = radarModel.getModel('splitLine');
- var splitAreaModel = radarModel.getModel('splitArea');
- var lineStyleModel = splitLineModel.getModel('lineStyle');
- var areaStyleModel = splitAreaModel.getModel('areaStyle');
-
- var showSplitLine = splitLineModel.get('show');
- var showSplitArea = splitAreaModel.get('show');
- var splitLineColors = lineStyleModel.get('color');
- var splitAreaColors = areaStyleModel.get('color');
-
- splitLineColors = zrUtil.isArray(splitLineColors) ? splitLineColors : [splitLineColors];
- splitAreaColors = zrUtil.isArray(splitAreaColors) ? splitAreaColors : [splitAreaColors];
-
- var splitLines = [];
- var splitAreas = [];
-
- function getColorIndex(areaOrLine, areaOrLineColorList, idx) {
- var colorIndex = idx % areaOrLineColorList.length;
- areaOrLine[colorIndex] = areaOrLine[colorIndex] || [];
- return colorIndex;
- }
-
- if (shape === 'circle') {
- var ticksRadius = indicatorAxes[0].getTicksCoords();
- var cx = radar.cx;
- var cy = radar.cy;
- for (var i = 0; i < ticksRadius.length; i++) {
- if (showSplitLine) {
- var colorIndex = getColorIndex(splitLines, splitLineColors, i);
- splitLines[colorIndex].push(new graphic.Circle({
- shape: {
- cx: cx,
- cy: cy,
- r: ticksRadius[i]
- }
- }));
- }
- if (showSplitArea && i < ticksRadius.length - 1) {
- var colorIndex = getColorIndex(splitAreas, splitAreaColors, i);
- splitAreas[colorIndex].push(new graphic.Ring({
- shape: {
- cx: cx,
- cy: cy,
- r0: ticksRadius[i],
- r: ticksRadius[i + 1]
- }
- }));
- }
- }
- }
- // Polyyon
- else {
- var axesTicksPoints = zrUtil.map(indicatorAxes, function (indicatorAxis, idx) {
- var ticksCoords = indicatorAxis.getTicksCoords();
- return zrUtil.map(ticksCoords, function (tickCoord) {
- return radar.coordToPoint(tickCoord, idx);
- });
- });
-
- var prevPoints = [];
- for (var i = 0; i <= splitNumber; i++) {
- var points = [];
- for (var j = 0; j < indicatorAxes.length; j++) {
- points.push(axesTicksPoints[j][i]);
- }
- // Close
- points.push(points[0].slice());
- if (showSplitLine) {
- var colorIndex = getColorIndex(splitLines, splitLineColors, i);
- splitLines[colorIndex].push(new graphic.Polyline({
- shape: {
- points: points
- }
- }));
- }
- if (showSplitArea && prevPoints) {
- var colorIndex = getColorIndex(splitAreas, splitAreaColors, i - 1);
- splitAreas[colorIndex].push(new graphic.Polygon({
- shape: {
- points: points.concat(prevPoints)
- }
- }));
- }
- prevPoints = points.slice().reverse();
- }
- }
-
- var lineStyle = lineStyleModel.getLineStyle();
- var areaStyle = areaStyleModel.getAreaStyle();
- // Add splitArea before splitLine
- zrUtil.each(splitAreas, function (splitAreas, idx) {
- this.group.add(graphic.mergePath(
- splitAreas, {
- style: zrUtil.defaults({
- stroke: 'none',
- fill: splitAreaColors[idx % splitAreaColors.length]
- }, areaStyle),
- silent: true
- }
- ));
- }, this);
-
- zrUtil.each(splitLines, function (splitLines, idx) {
- this.group.add(graphic.mergePath(
- splitLines, {
- style: zrUtil.defaults({
- fill: 'none',
- stroke: splitLineColors[idx % splitLineColors.length]
- }, lineStyle),
- silent: true
- }
- ));
- }, this);
-
- }
- });
-
-
-/***/ },
-/* 151 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var SeriesModel = __webpack_require__(27);
- var List = __webpack_require__(94);
- var completeDimensions = __webpack_require__(96);
- var zrUtil = __webpack_require__(3);
- var formatUtil = __webpack_require__(6);
-
- var RadarSeries = SeriesModel.extend({
-
- type: 'series.radar',
-
- dependencies: ['radar'],
-
-
- // Overwrite
- init: function (option) {
- RadarSeries.superApply(this, 'init', arguments);
-
- // Enable legend selection for each data item
- // Use a function instead of direct access because data reference may changed
- this.legendDataProvider = function () {
- return this._dataBeforeProcessed;
- };
- },
-
- getInitialData: function (option, ecModel) {
- var data = option.data || [];
- var dimensions = completeDimensions(
- [], data, [], 'indicator_'
- );
- var list = new List(dimensions, this);
- list.initData(data);
- return list;
- },
-
- formatTooltip: function (dataIndex) {
- var value = this.getRawValue(dataIndex);
- var coordSys = this.coordinateSystem;
- var indicatorAxes = coordSys.getIndicatorAxes();
- return this._data.getName(dataIndex) + '<br />'
- + zrUtil.map(indicatorAxes, function (axis, idx) {
- return axis.name + ' : ' + value[idx];
- }).join('<br />');
- },
-
- getFormattedLabel: function (dataIndex, status, formatter, indicatorIndex) {
- status = status || 'normal';
- var data = this.getData();
- var itemModel = data.getItemModel(dataIndex);
-
- var params = this.getDataParams(dataIndex);
- if (formatter == null) {
- formatter = itemModel.get(['label', status, 'formatter']);
- }
- // Get value of specified indicator
- params.value = params.value[indicatorIndex || 0];
- if (typeof formatter === 'function') {
- params.status = status;
- return formatter(params);
- }
- else if (typeof formatter === 'string') {
- return formatUtil.formatTpl(formatter, params);
- }
- },
-
- defaultOption: {
- zlevel: 0,
- z: 2,
- coordinateSystem: 'radar',
- legendHoverLink: true,
- radarIndex: 0,
- lineStyle: {
- normal: {
- width: 2,
- type: 'solid'
- }
- },
- label: {
- normal: {
- position: 'top'
- }
- },
- // areaStyle: {
- // },
- // itemStyle: {}
- symbol: 'emptyCircle',
- symbolSize: 4
- // symbolRotate: null
- }
- });
-
- module.exports = RadarSeries;
-
-
-/***/ },
-/* 152 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
- var symbolUtil = __webpack_require__(100);
-
- function normalizeSymbolSize(symbolSize) {
- if (!zrUtil.isArray(symbolSize)) {
- symbolSize = [+symbolSize, +symbolSize];
- }
- return symbolSize;
- }
- module.exports = __webpack_require__(1).extendChartView({
- type: 'radar',
-
- render: function (seriesModel, ecModel, api) {
- var polar = seriesModel.coordinateSystem;
- var group = this.group;
-
- var data = seriesModel.getData();
- var oldData = this._data;
-
- function createSymbol(data, idx) {
- var symbolType = data.getItemVisual(idx, 'symbol') || 'circle';
- var color = data.getItemVisual(idx, 'color');
- if (symbolType === 'none') {
- return;
- }
- var symbolPath = symbolUtil.createSymbol(
- symbolType, -0.5, -0.5, 1, 1, color
- );
- symbolPath.attr({
- style: {
- strokeNoScale: true
- },
- z2: 100,
- scale: normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'))
- });
- return symbolPath;
- }
-
- function updateSymbols(oldPoints, newPoints, symbolGroup, data, idx, isInit) {
- // Simply rerender all
- symbolGroup.removeAll();
- for (var i = 0; i < newPoints.length - 1; i++) {
- var symbolPath = createSymbol(data, idx);
- if (symbolPath) {
- symbolPath.__dimIdx = i;
- if (oldPoints[i]) {
- symbolPath.attr('position', oldPoints[i]);
- graphic[isInit ? 'initProps' : 'updateProps'](
- symbolPath, {
- position: newPoints[i]
- }, seriesModel
- );
- }
- else {
- symbolPath.attr('position', newPoints[i]);
- }
- symbolGroup.add(symbolPath);
- }
- }
- }
-
- function getInitialPoints(points) {
- return zrUtil.map(points, function (pt) {
- return [polar.cx, polar.cy];
- });
- }
- data.diff(oldData)
- .add(function (idx) {
- var points = data.getItemLayout(idx);
- if (!points) {
- return;
- }
- var polygon = new graphic.Polygon();
- var polyline = new graphic.Polyline();
- var target = {
- shape: {
- points: points
- }
- };
- polygon.shape.points = getInitialPoints(points);
- polyline.shape.points = getInitialPoints(points);
- graphic.initProps(polygon, target, seriesModel);
- graphic.initProps(polyline, target, seriesModel);
-
- var itemGroup = new graphic.Group();
- var symbolGroup = new graphic.Group();
- itemGroup.add(polyline);
- itemGroup.add(polygon);
- itemGroup.add(symbolGroup);
-
- updateSymbols(
- polyline.shape.points, points, symbolGroup, data, idx, true
- );
-
- data.setItemGraphicEl(idx, itemGroup);
- })
- .update(function (newIdx, oldIdx) {
- var itemGroup = oldData.getItemGraphicEl(oldIdx);
- var polyline = itemGroup.childAt(0);
- var polygon = itemGroup.childAt(1);
- var symbolGroup = itemGroup.childAt(2);
- var target = {
- shape: {
- points: data.getItemLayout(newIdx)
- }
- };
- if (!target.shape.points) {
- return;
- }
- updateSymbols(
- polyline.shape.points, target.shape.points, symbolGroup, data, newIdx, false
- );
-
- graphic.updateProps(polyline, target, seriesModel);
- graphic.updateProps(polygon, target, seriesModel);
-
- data.setItemGraphicEl(newIdx, itemGroup);
- })
- .remove(function (idx) {
- group.remove(oldData.getItemGraphicEl(idx));
- })
- .execute();
-
- data.eachItemGraphicEl(function (itemGroup, idx) {
- var itemModel = data.getItemModel(idx);
- var polyline = itemGroup.childAt(0);
- var polygon = itemGroup.childAt(1);
- var symbolGroup = itemGroup.childAt(2);
- var color = data.getItemVisual(idx, 'color');
-
- group.add(itemGroup);
-
- polyline.setStyle(
- zrUtil.extend(
- itemModel.getModel('lineStyle.normal').getLineStyle(),
- {
- stroke: color
- }
- )
- );
- polyline.hoverStyle = itemModel.getModel('lineStyle.emphasis').getLineStyle();
-
- var areaStyleModel = itemModel.getModel('areaStyle.normal');
- var hoverAreaStyleModel = itemModel.getModel('areaStyle.emphasis');
- var polygonIgnore = areaStyleModel.isEmpty() && areaStyleModel.parentModel.isEmpty();
- var hoverPolygonIgnore = hoverAreaStyleModel.isEmpty() && hoverAreaStyleModel.parentModel.isEmpty();
-
- hoverPolygonIgnore = hoverPolygonIgnore && polygonIgnore;
- polygon.ignore = polygonIgnore;
-
- polygon.setStyle(
- zrUtil.defaults(
- areaStyleModel.getAreaStyle(),
- {
- fill: color,
- opacity: 0.7
- }
- )
- );
- polygon.hoverStyle = hoverAreaStyleModel.getAreaStyle();
-
- var itemStyle = itemModel.getModel('itemStyle.normal').getItemStyle(['color']);
- var itemHoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();
- var labelModel = itemModel.getModel('label.normal');
- var labelHoverModel = itemModel.getModel('label.emphasis');
- symbolGroup.eachChild(function (symbolPath) {
- symbolPath.setStyle(itemStyle);
- symbolPath.hoverStyle = zrUtil.clone(itemHoverStyle);
-
- var defaultText = data.get(data.dimensions[symbolPath.__dimIdx], idx);
- graphic.setText(symbolPath.style, labelModel, color);
- symbolPath.setStyle({
- text: labelModel.get('show') ? zrUtil.retrieve(
- seriesModel.getFormattedLabel(
- idx, 'normal', null, symbolPath.__dimIdx
- ),
- defaultText
- ) : ''
- });
-
- graphic.setText(symbolPath.hoverStyle, labelHoverModel, color);
- symbolPath.hoverStyle.text = labelHoverModel.get('show') ? zrUtil.retrieve(
- seriesModel.getFormattedLabel(
- idx, 'emphasis', null, symbolPath.__dimIdx
- ),
- defaultText
- ) : '';
- });
-
- function onEmphasis() {
- polygon.attr('ignore', hoverPolygonIgnore);
- }
-
- function onNormal() {
- polygon.attr('ignore', polygonIgnore);
- }
-
- itemGroup.off('mouseover').off('mouseout').off('normal').off('emphasis');
- itemGroup.on('emphasis', onEmphasis)
- .on('mouseover', onEmphasis)
- .on('normal', onNormal)
- .on('mouseout', onNormal);
-
- graphic.setHoverStyle(itemGroup);
- });
-
- this._data = data;
- },
-
- remove: function () {
- this.group.removeAll();
- this._data = null;
- }
- });
-
-
-/***/ },
-/* 153 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (ecModel, api) {
- ecModel.eachSeriesByType('radar', function (seriesModel) {
- var data = seriesModel.getData();
- var points = [];
- var coordSys = seriesModel.coordinateSystem;
- if (!coordSys) {
- return;
- }
-
- function pointsConverter(val, idx) {
- points[idx] = points[idx] || [];
- points[idx][i] = coordSys.dataToPoint(val, i);
- }
- for (var i = 0; i < coordSys.getIndicatorAxes().length; i++) {
- var dim = data.dimensions[i];
- data.each(dim, pointsConverter);
- }
-
- data.each(function (idx) {
- // Close polygon
- points[idx][0] && points[idx].push(points[idx][0].slice());
- data.setItemLayout(idx, points[idx]);
- });
- });
- };
-
-
-/***/ },
-/* 154 */
-/***/ function(module, exports, __webpack_require__) {
-
- // Backward compat for radar chart in 2
-
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (option) {
- var polarOptArr = option.polar;
- if (polarOptArr) {
- if (!zrUtil.isArray(polarOptArr)) {
- polarOptArr = [polarOptArr];
- }
- var polarNotRadar = [];
- zrUtil.each(polarOptArr, function (polarOpt, idx) {
- if (polarOpt.indicator) {
- if (polarOpt.type && !polarOpt.shape) {
- polarOpt.shape = polarOpt.type;
- }
- option.radar = option.radar || [];
- if (!zrUtil.isArray(option.radar)) {
- option.radar = [option.radar];
- }
- option.radar.push(polarOpt);
- }
- else {
- polarNotRadar.push(polarOpt);
- }
- });
- option.polar = polarNotRadar;
- }
- zrUtil.each(option.series, function (seriesOpt) {
- if (seriesOpt.type === 'radar' && seriesOpt.polarIndex) {
- seriesOpt.radarIndex = seriesOpt.polarIndex;
- }
- });
- };
-
-
-/***/ },
-/* 155 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(156);
-
- __webpack_require__(157);
-
- __webpack_require__(161);
-
- __webpack_require__(163);
-
- echarts.registerLayout(__webpack_require__(173));
-
- echarts.registerVisualCoding('chart', __webpack_require__(174));
-
- echarts.registerProcessor('statistic', __webpack_require__(175));
-
- echarts.registerPreprocessor(__webpack_require__(176));
-
- __webpack_require__(136)('map', [{
- type: 'mapToggleSelect',
- event: 'mapselectchanged',
- method: 'toggleSelected'
- }, {
- type: 'mapSelect',
- event: 'mapselected',
- method: 'select'
- }, {
- type: 'mapUnSelect',
- event: 'mapunselected',
- method: 'unSelect'
- }]);
-
-
-/***/ },
-/* 156 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var List = __webpack_require__(94);
- var echarts = __webpack_require__(1);
- var SeriesModel = __webpack_require__(27);
- var zrUtil = __webpack_require__(3);
- var completeDimensions = __webpack_require__(96);
-
- var formatUtil = __webpack_require__(6);
- var encodeHTML = formatUtil.encodeHTML;
- var addCommas = formatUtil.addCommas;
-
- var dataSelectableMixin = __webpack_require__(134);
-
- function fillData(dataOpt, geoJson) {
- var dataNameMap = {};
- var features = geoJson.features;
- for (var i = 0; i < dataOpt.length; i++) {
- dataNameMap[dataOpt[i].name] = dataOpt[i];
- }
-
- for (var i = 0; i < features.length; i++) {
- var name = features[i].properties.name;
- if (!dataNameMap[name]) {
- dataOpt.push({
- value: NaN,
- name: name
- });
- }
- }
- return dataOpt;
- }
-
- var MapSeries = SeriesModel.extend({
-
- type: 'series.map',
-
- /**
- * Only first map series of same mapType will drawMap
- * @type {boolean}
- */
- needsDrawMap: false,
-
- /**
- * Group of all map series with same mapType
- * @type {boolean}
- */
- seriesGroup: [],
-
- init: function (option) {
-
- option = this._fillOption(option);
- this.option = option;
-
- MapSeries.superApply(this, 'init', arguments);
-
- this.updateSelectedMap();
- },
-
- getInitialData: function (option) {
- var dimensions = completeDimensions(['value'], option.data || []);
-
- var list = new List(dimensions, this);
-
- list.initData(option.data);
-
- return list;
- },
-
- mergeOption: function (newOption) {
- newOption = this._fillOption(newOption);
-
- MapSeries.superCall(this, 'mergeOption', newOption);
-
- this.updateSelectedMap();
- },
-
- _fillOption: function (option) {
- // Shallow clone
- option = zrUtil.extend({}, option);
-
- var map = echarts.getMap(option.mapType);
- var geoJson = map && map.geoJson;
- geoJson && option.data
- && (option.data = fillData(option.data, geoJson));
-
- return option;
- },
-
- /**
- * @param {number} zoom
- */
- setRoamZoom: function (zoom) {
- var roamDetail = this.option.roamDetail;
- roamDetail && (roamDetail.zoom = zoom);
- },
-
- /**
- * @param {number} x
- * @param {number} y
- */
- setRoamPan: function (x, y) {
- var roamDetail = this.option.roamDetail;
- if (roamDetail) {
- roamDetail.x = x;
- roamDetail.y = y;
- }
- },
-
- getRawValue: function (dataIndex) {
- // Use value stored in data instead because it is calculated from multiple series
- // FIXME Provide all value of multiple series ?
- return this._data.get('value', dataIndex);
- },
-
- /**
- * Map tooltip formatter
- *
- * @param {number} dataIndex
- */
- formatTooltip: function (dataIndex) {
- var data = this._data;
- var formattedValue = addCommas(this.getRawValue(dataIndex));
- var name = data.getName(dataIndex);
-
- var seriesGroup = this.seriesGroup;
- var seriesNames = [];
- for (var i = 0; i < seriesGroup.length; i++) {
- if (!isNaN(seriesGroup[i].getRawValue(dataIndex))) {
- seriesNames.push(
- encodeHTML(seriesGroup[i].name)
- );
- }
- }
-
- return seriesNames.join(', ') + '<br />'
- + name + ' : ' + formattedValue;
- },
-
- defaultOption: {
- // 一级层叠
- zlevel: 0,
- // 二级层叠
- z: 2,
- coordinateSystem: 'geo',
- // 各省的 map 暂时都用中文
- map: 'china',
-
- // 'center' | 'left' | 'right' | 'x%' | {number}
- left: 'center',
- // 'center' | 'top' | 'bottom' | 'x%' | {number}
- top: 'center',
- // right
- // bottom
- // width:
- // height // 自适应
-
- // 数值合并方式,默认加和,可选为:
- // 'sum' | 'average' | 'max' | 'min'
- // mapValueCalculation: 'sum',
- // 地图数值计算结果小数精度
- // mapValuePrecision: 0,
- // 显示图例颜色标识(系列标识的小圆点),图例开启时有效
- showLegendSymbol: true,
- // 选择模式,默认关闭,可选single,multiple
- // selectedMode: false,
- dataRangeHoverLink: true,
- // 是否开启缩放及漫游模式
- // roam: false,
-
- // 在 roam 开启的时候使用
- roamDetail: {
- x: 0,
- y: 0,
- zoom: 1
- },
-
- scaleLimit: null,
-
- label: {
- normal: {
- show: false,
- textStyle: {
- color: '#000'
- }
- },
- emphasis: {
- show: false,
- textStyle: {
- color: '#000'
- }
- }
- },
- // scaleLimit: null,
- itemStyle: {
- normal: {
- // color: 各异,
- borderWidth: 0.5,
- borderColor: '#444',
- areaColor: '#eee'
- },
- // 也是选中样式
- emphasis: {
- areaColor: 'rgba(255,215, 0, 0.8)'
- }
- }
- }
- });
-
- zrUtil.mixin(MapSeries, dataSelectableMixin);
-
- module.exports = MapSeries;
-
-
-/***/ },
-/* 157 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- // var zrUtil = require('zrender/lib/core/util');
- var graphic = __webpack_require__(42);
-
- var MapDraw = __webpack_require__(158);
-
- __webpack_require__(1).extendChartView({
-
- type: 'map',
-
- render: function (mapModel, ecModel, api, payload) {
- // Not render if it is an toggleSelect action from self
- if (payload && payload.type === 'mapToggleSelect'
- && payload.from === this.uid
- ) {
- return;
- }
-
- var group = this.group;
- group.removeAll();
- // Not update map if it is an roam action from self
- if (!(payload && payload.type === 'geoRoam'
- && payload.component === 'series'
- && payload.name === mapModel.name)) {
-
- if (mapModel.needsDrawMap) {
- var mapDraw = this._mapDraw || new MapDraw(api, true);
- group.add(mapDraw.group);
-
- mapDraw.draw(mapModel, ecModel, api, this);
-
- this._mapDraw = mapDraw;
- }
- else {
- // Remove drawed map
- this._mapDraw && this._mapDraw.remove();
- this._mapDraw = null;
- }
- }
- else {
- var mapDraw = this._mapDraw;
- mapDraw && group.add(mapDraw.group);
- }
-
- mapModel.get('showLegendSymbol') && ecModel.getComponent('legend')
- && this._renderSymbols(mapModel, ecModel, api);
- },
-
- remove: function () {
- this._mapDraw && this._mapDraw.remove();
- this._mapDraw = null;
- this.group.removeAll();
- },
-
- _renderSymbols: function (mapModel, ecModel, api) {
- var data = mapModel.getData();
- var group = this.group;
-
- data.each('value', function (value, idx) {
- if (isNaN(value)) {
- return;
- }
-
- var layout = data.getItemLayout(idx);
-
- if (!layout || !layout.point) {
- // Not exists in map
- return;
- }
-
- var point = layout.point;
- var offset = layout.offset;
-
- var circle = new graphic.Circle({
- style: {
- fill: data.getVisual('color')
- },
- shape: {
- cx: point[0] + offset * 9,
- cy: point[1],
- r: 3
- },
- silent: true,
- z2: 10
- });
-
- // First data on the same region
- if (!offset) {
- var labelText = data.getName(idx);
-
- var itemModel = data.getItemModel(idx);
- var labelModel = itemModel.getModel('label.normal');
- var hoverLabelModel = itemModel.getModel('label.emphasis');
-
- var textStyleModel = labelModel.getModel('textStyle');
- var hoverTextStyleModel = hoverLabelModel.getModel('textStyle');
-
- var polygonGroups = data.getItemGraphicEl(idx);
- circle.setStyle({
- textPosition: 'bottom'
- });
-
- var onEmphasis = function () {
- circle.setStyle({
- text: hoverLabelModel.get('show') ? labelText : '',
- textFill: hoverTextStyleModel.getTextColor(),
- textFont: hoverTextStyleModel.getFont()
- });
- };
-
- var onNormal = function () {
- circle.setStyle({
- text: labelModel.get('show') ? labelText : '',
- textFill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont()
- });
- };
-
- polygonGroups.on('mouseover', onEmphasis)
- .on('mouseout', onNormal)
- .on('emphasis', onEmphasis)
- .on('normal', onNormal);
-
- onNormal();
- }
-
- group.add(circle);
- });
- }
- });
-
-
-/***/ },
-/* 158 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/component/helper/MapDraw
- */
-
-
- var RoamController = __webpack_require__(159);
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
-
- function getFixedItemStyle(model, scale) {
- var itemStyle = model.getItemStyle();
- var areaColor = model.get('areaColor');
- if (areaColor) {
- itemStyle.fill = areaColor;
- }
-
- return itemStyle;
- }
-
- function updateMapSelectHandler(mapOrGeoModel, data, group, api, fromView) {
- group.off('click');
- mapOrGeoModel.get('selectedMode')
- && group.on('click', function (e) {
- var dataIndex = e.target.dataIndex;
- if (dataIndex != null) {
- var name = data.getName(dataIndex);
-
- api.dispatchAction({
- type: 'mapToggleSelect',
- seriesIndex: mapOrGeoModel.seriesIndex,
- name: name,
- from: fromView.uid
- });
-
- updateMapSelected(mapOrGeoModel, data, api);
- }
- });
- }
-
- function updateMapSelected(mapOrGeoModel, data) {
- data.eachItemGraphicEl(function (el, idx) {
- var name = data.getName(idx);
- el.trigger(mapOrGeoModel.isSelected(name) ? 'emphasis' : 'normal');
- });
- }
-
- /**
- * @alias module:echarts/component/helper/MapDraw
- * @param {module:echarts/ExtensionAPI} api
- * @param {boolean} updateGroup
- */
- function MapDraw(api, updateGroup) {
-
- var group = new graphic.Group();
-
- /**
- * @type {module:echarts/component/helper/RoamController}
- * @private
- */
- this._controller = new RoamController(
- api.getZr(), updateGroup ? group : null, null
- );
-
- /**
- * @type {module:zrender/container/Group}
- * @readOnly
- */
- this.group = group;
-
- /**
- * @type {boolean}
- * @private
- */
- this._updateGroup = updateGroup;
- }
-
- MapDraw.prototype = {
-
- constructor: MapDraw,
-
- draw: function (mapOrGeoModel, ecModel, api, fromView) {
-
- // geoModel has no data
- var data = mapOrGeoModel.getData && mapOrGeoModel.getData();
-
- var geo = mapOrGeoModel.coordinateSystem;
-
- var group = this.group;
- group.removeAll();
-
- var scale = geo.scale;
- group.position = geo.position.slice();
- group.scale = scale.slice();
-
- var itemStyleModel;
- var hoverItemStyleModel;
- var itemStyle;
- var hoverItemStyle;
-
- var labelModel;
- var hoverLabelModel;
-
- var itemStyleAccessPath = ['itemStyle', 'normal'];
- var hoverItemStyleAccessPath = ['itemStyle', 'emphasis'];
- var labelAccessPath = ['label', 'normal'];
- var hoverLabelAccessPath = ['label', 'emphasis'];
- if (!data) {
- itemStyleModel = mapOrGeoModel.getModel(itemStyleAccessPath);
- hoverItemStyleModel = mapOrGeoModel.getModel(hoverItemStyleAccessPath);
-
- itemStyle = getFixedItemStyle(itemStyleModel, scale);
- hoverItemStyle = getFixedItemStyle(hoverItemStyleModel, scale);
-
- labelModel = mapOrGeoModel.getModel(labelAccessPath);
- hoverLabelModel = mapOrGeoModel.getModel(hoverLabelAccessPath);
- }
-
- zrUtil.each(geo.regions, function (region) {
-
- var regionGroup = new graphic.Group();
- var dataIdx;
- // Use the itemStyle in data if has data
- if (data) {
- // FIXME If dataIdx < 0
- dataIdx = data.indexOfName(region.name);
- var itemModel = data.getItemModel(dataIdx);
-
- // Only visual color of each item will be used. It can be encoded by dataRange
- // But visual color of series is used in symbol drawing
- //
- // Visual color for each series is for the symbol draw
- var visualColor = data.getItemVisual(dataIdx, 'color', true);
-
- itemStyleModel = itemModel.getModel(itemStyleAccessPath);
- hoverItemStyleModel = itemModel.getModel(hoverItemStyleAccessPath);
-
- itemStyle = getFixedItemStyle(itemStyleModel, scale);
- hoverItemStyle = getFixedItemStyle(hoverItemStyleModel, scale);
-
- labelModel = itemModel.getModel(labelAccessPath);
- hoverLabelModel = itemModel.getModel(hoverLabelAccessPath);
-
- if (visualColor) {
- itemStyle.fill = visualColor;
- }
- }
- var textStyleModel = labelModel.getModel('textStyle');
- var hoverTextStyleModel = hoverLabelModel.getModel('textStyle');
-
- zrUtil.each(region.contours, function (contour) {
-
- var polygon = new graphic.Polygon({
- shape: {
- points: contour
- },
- style: {
- strokeNoScale: true
- },
- culling: true
- });
-
- polygon.setStyle(itemStyle);
-
- regionGroup.add(polygon);
- });
-
- // Label
- var showLabel = labelModel.get('show');
- var hoverShowLabel = hoverLabelModel.get('show');
-
- var isDataNaN = data && isNaN(data.get('value', dataIdx));
- var itemLayout = data && data.getItemLayout(dataIdx);
- // In the following cases label will be drawn
- // 1. In map series and data value is NaN
- // 2. In geo component
- // 4. Region has no series legendSymbol, which will be add a showLabel flag in mapSymbolLayout
- if (
- (!data || isDataNaN && (showLabel || hoverShowLabel))
- || (itemLayout && itemLayout.showLabel)
- ) {
- var query = data ? dataIdx : region.name;
- var formattedStr = mapOrGeoModel.getFormattedLabel(query, 'normal');
- var hoverFormattedStr = mapOrGeoModel.getFormattedLabel(query, 'emphasis');
- var text = new graphic.Text({
- style: {
- text: showLabel ? (formattedStr || region.name) : '',
- fill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont(),
- textAlign: 'center',
- textVerticalAlign: 'middle'
- },
- hoverStyle: {
- text: hoverShowLabel ? (hoverFormattedStr || region.name) : '',
- fill: hoverTextStyleModel.getTextColor(),
- textFont: hoverTextStyleModel.getFont()
- },
- position: region.center.slice(),
- scale: [1 / scale[0], 1 / scale[1]],
- z2: 10,
- silent: true
- });
-
- regionGroup.add(text);
- }
-
- // setItemGraphicEl, setHoverStyle after all polygons and labels
- // are added to the rigionGroup
- data && data.setItemGraphicEl(dataIdx, regionGroup);
-
- graphic.setHoverStyle(regionGroup, hoverItemStyle);
-
- group.add(regionGroup);
- });
-
- this._updateController(mapOrGeoModel, ecModel, api);
-
- data && updateMapSelectHandler(mapOrGeoModel, data, group, api, fromView);
-
- data && updateMapSelected(mapOrGeoModel, data);
- },
-
- remove: function () {
- this.group.removeAll();
- this._controller.dispose();
- },
-
- _updateController: function (mapOrGeoModel, ecModel, api) {
- var geo = mapOrGeoModel.coordinateSystem;
- var controller = this._controller;
- controller.zoomLimit = mapOrGeoModel.get('scaleLimit');
- // Update zoom from model
- controller.zoom = mapOrGeoModel.get('roamDetail.zoom');
- // roamType is will be set default true if it is null
- controller.enable(mapOrGeoModel.get('roam') || false);
- // FIXME mainType, subType 作为 component 的属性?
- var mainType = mapOrGeoModel.type.split('.')[0];
- controller.off('pan')
- .on('pan', function (dx, dy) {
- api.dispatchAction({
- type: 'geoRoam',
- component: mainType,
- name: mapOrGeoModel.name,
- dx: dx,
- dy: dy
- });
- });
- controller.off('zoom')
- .on('zoom', function (zoom, mouseX, mouseY) {
- api.dispatchAction({
- type: 'geoRoam',
- component: mainType,
- name: mapOrGeoModel.name,
- zoom: zoom,
- originX: mouseX,
- originY: mouseY
- });
-
- if (this._updateGroup) {
- var group = this.group;
- var scale = group.scale;
- group.traverse(function (el) {
- if (el.type === 'text') {
- el.attr('scale', [1 / scale[0], 1 / scale[1]]);
- }
- });
- }
- }, this);
-
- controller.rect = geo.getViewRect();
- }
- };
-
- module.exports = MapDraw;
-
-
-/***/ },
-/* 159 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/component/helper/RoamController
- */
-
-
-
- var Eventful = __webpack_require__(32);
- var zrUtil = __webpack_require__(3);
- var eventTool = __webpack_require__(80);
- var interactionMutex = __webpack_require__(160);
-
- function mousedown(e) {
- if (e.target && e.target.draggable) {
- return;
- }
-
- var x = e.offsetX;
- var y = e.offsetY;
- var rect = this.rect;
- if (rect && rect.contain(x, y)) {
- this._x = x;
- this._y = y;
- this._dragging = true;
- }
- }
-
- function mousemove(e) {
- if (!this._dragging) {
- return;
- }
-
- eventTool.stop(e.event);
-
- if (e.gestureEvent !== 'pinch') {
-
- if (interactionMutex.isTaken('globalPan', this._zr)) {
- return;
- }
-
- var x = e.offsetX;
- var y = e.offsetY;
-
- var dx = x - this._x;
- var dy = y - this._y;
-
- this._x = x;
- this._y = y;
-
- var target = this.target;
-
- if (target) {
- var pos = target.position;
- pos[0] += dx;
- pos[1] += dy;
- target.dirty();
- }
-
- eventTool.stop(e.event);
- this.trigger('pan', dx, dy);
- }
- }
-
- function mouseup(e) {
- this._dragging = false;
- }
-
- function mousewheel(e) {
- eventTool.stop(e.event);
- // Convenience:
- // Mac and VM Windows on Mac: scroll up: zoom out.
- // Windows: scroll up: zoom in.
- var zoomDelta = e.wheelDelta > 0 ? 1.1 : 1 / 1.1;
- zoom.call(this, e, zoomDelta, e.offsetX, e.offsetY);
- }
-
- function pinch(e) {
- if (interactionMutex.isTaken('globalPan', this._zr)) {
- return;
- }
-
- eventTool.stop(e.event);
- var zoomDelta = e.pinchScale > 1 ? 1.1 : 1 / 1.1;
- zoom.call(this, e, zoomDelta, e.pinchX, e.pinchY);
- }
-
- function zoom(e, zoomDelta, zoomX, zoomY) {
- var rect = this.rect;
-
- if (rect && rect.contain(zoomX, zoomY)) {
-
- var target = this.target;
- var zoomLimit = this.zoomLimit;
-
- if (target) {
- var pos = target.position;
- var scale = target.scale;
-
- var newZoom = this.zoom = this.zoom || 1;
- newZoom *= zoomDelta;
- if (zoomLimit) {
- newZoom = Math.max(
- Math.min(zoomLimit.max, newZoom),
- zoomLimit.min
- );
- }
- var zoomScale = newZoom / this.zoom;
- this.zoom = newZoom;
- // Keep the mouse center when scaling
- pos[0] -= (zoomX - pos[0]) * (zoomScale - 1);
- pos[1] -= (zoomY - pos[1]) * (zoomScale - 1);
- scale[0] *= zoomScale;
- scale[1] *= zoomScale;
-
- target.dirty();
- }
-
- this.trigger('zoom', zoomDelta, zoomX, zoomY);
- }
- }
-
- /**
- * @alias module:echarts/component/helper/RoamController
- * @constructor
- * @mixin {module:zrender/mixin/Eventful}
- *
- * @param {module:zrender/zrender~ZRender} zr
- * @param {module:zrender/Element} target
- * @param {module:zrender/core/BoundingRect} rect
- */
- function RoamController(zr, target, rect) {
-
- /**
- * @type {module:zrender/Element}
- */
- this.target = target;
-
- /**
- * @type {module:zrender/core/BoundingRect}
- */
- this.rect = rect;
-
- /**
- * { min: 1, max: 2 }
- * @type {Object}
- */
- this.zoomLimit;
-
- /**
- * @type {number}
- */
- this.zoom;
- /**
- * @type {module:zrender}
- */
- this._zr = zr;
-
- // Avoid two roamController bind the same handler
- var bind = zrUtil.bind;
- var mousedownHandler = bind(mousedown, this);
- var mousemoveHandler = bind(mousemove, this);
- var mouseupHandler = bind(mouseup, this);
- var mousewheelHandler = bind(mousewheel, this);
- var pinchHandler = bind(pinch, this);
-
- Eventful.call(this);
-
- /**
- * Notice: only enable needed types. For example, if 'zoom'
- * is not needed, 'zoom' should not be enabled, otherwise
- * default mousewheel behaviour (scroll page) will be disabled.
- *
- * @param {boolean|string} [controlType=true] Specify the control type,
- * which can be null/undefined or true/false
- * or 'pan/move' or 'zoom'/'scale'
- */
- this.enable = function (controlType) {
- // Disable previous first
- this.disable();
-
- if (controlType == null) {
- controlType = true;
- }
-
- if (controlType === true || (controlType === 'move' || controlType === 'pan')) {
- zr.on('mousedown', mousedownHandler);
- zr.on('mousemove', mousemoveHandler);
- zr.on('mouseup', mouseupHandler);
- }
- if (controlType === true || (controlType === 'scale' || controlType === 'zoom')) {
- zr.on('mousewheel', mousewheelHandler);
- zr.on('pinch', pinchHandler);
- }
- };
-
- this.disable = function () {
- zr.off('mousedown', mousedownHandler);
- zr.off('mousemove', mousemoveHandler);
- zr.off('mouseup', mouseupHandler);
- zr.off('mousewheel', mousewheelHandler);
- zr.off('pinch', pinchHandler);
- };
-
- this.dispose = this.disable;
-
- this.isDragging = function () {
- return this._dragging;
- };
-
- this.isPinching = function () {
- return this._pinching;
- };
- }
-
- zrUtil.mixin(RoamController, Eventful);
-
- module.exports = RoamController;
-
-
-/***/ },
-/* 160 */
-/***/ function(module, exports) {
-
-
-
- var ATTR = '\0_ec_interaction_mutex';
-
- var interactionMutex = {
-
- take: function (key, zr) {
- getStore(zr)[key] = true;
- },
-
- release: function (key, zr) {
- getStore(zr)[key] = false;
- },
-
- isTaken: function (key, zr) {
- return !!getStore(zr)[key];
- }
- };
-
- function getStore(zr) {
- return zr[ATTR] || (zr[ATTR] = {});
- }
-
- module.exports = interactionMutex;
-
-
-/***/ },
-/* 161 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var roamHelper = __webpack_require__(162);
-
- var echarts = __webpack_require__(1);
- var actionInfo = {
- type: 'geoRoam',
- event: 'geoRoam',
- update: 'updateLayout'
- };
-
- /**
- * @payload
- * @property {string} [component=series]
- * @property {string} name Component name
- * @property {number} [dx]
- * @property {number} [dy]
- * @property {number} [zoom]
- * @property {number} [originX]
- * @property {number} [originY]
- */
- echarts.registerAction(actionInfo, function (payload, ecModel) {
- var componentType = payload.component || 'series';
-
- ecModel.eachComponent(componentType, function (componentModel) {
- if (componentModel.name === payload.name) {
- var geo = componentModel.coordinateSystem;
- if (geo.type !== 'geo') {
- return;
- }
-
- var roamDetailModel = componentModel.getModel('roamDetail');
- var res = roamHelper.calcPanAndZoom(
- roamDetailModel, payload, componentModel.get('scaleLimit')
- );
-
- componentModel.setRoamPan
- && componentModel.setRoamPan(res.x, res.y);
-
- componentModel.setRoamZoom
- && componentModel.setRoamZoom(res.zoom);
-
- geo && geo.setPan(res.x, res.y);
- geo && geo.setZoom(res.zoom);
-
- // All map series with same `map` use the same geo coordinate system
- // So the roamDetail must be in sync. Include the series not selected by legend
- if (componentType === 'series') {
- zrUtil.each(componentModel.seriesGroup, function (seriesModel) {
- seriesModel.setRoamPan(res.x, res.y);
- seriesModel.setRoamZoom(res.zoom);
- });
- }
- }
- });
- });
-
-
-/***/ },
-/* 162 */
-/***/ function(module, exports) {
-
-
-
- var roamHelper = {};
-
- /**
- * Calculate pan and zoom which from roamDetail model
- * @param {module:echarts/model/Model} roamDetailModel
- * @param {Object} payload
- * @param {Object} [zoomLimit]
- */
- roamHelper.calcPanAndZoom = function (
- roamDetailModel, payload, zoomLimit
- ) {
- var dx = payload.dx;
- var dy = payload.dy;
- var zoom = payload.zoom;
-
- var panX = roamDetailModel.get('x') || 0;
- var panY = roamDetailModel.get('y') || 0;
-
- var previousZoom = roamDetailModel.get('zoom') || 1;
-
- if (dx != null && dy != null) {
- panX += dx;
- panY += dy;
- }
- if (zoom != null) {
- if (zoomLimit) {
- zoom = Math.max(
- Math.min(previousZoom * zoom, zoomLimit.max),
- zoomLimit.min
- ) / previousZoom;
- }
- var fixX = (payload.originX - panX) * (zoom - 1);
- var fixY = (payload.originY - panY) * (zoom - 1);
-
- panX -= fixX;
- panY -= fixY;
- }
-
- return {
- x: panX,
- y: panY,
- zoom: (zoom || 1) * previousZoom
- };
- };
-
- module.exports = roamHelper;
-
-
-/***/ },
-/* 163 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(164);
-
- var Geo = __webpack_require__(165);
-
- var layout = __webpack_require__(21);
- var zrUtil = __webpack_require__(3);
-
- var mapDataStores = {};
-
- /**
- * Resize method bound to the geo
- * @param {module:echarts/coord/geo/GeoModel|module:echarts/chart/map/MapModel} geoModel
- * @param {module:echarts/ExtensionAPI} api
- */
- function resizeGeo (geoModel, api) {
- var rect = this.getBoundingRect();
-
- var boxLayoutOption = geoModel.getBoxLayoutParams();
- // 0.75 rate
- boxLayoutOption.aspect = rect.width / rect.height * 0.75;
-
- var viewRect = layout.getLayoutRect(boxLayoutOption, {
- width: api.getWidth(),
- height: api.getHeight()
- });
-
- this.setViewRect(viewRect.x, viewRect.y, viewRect.width, viewRect.height);
-
- var roamDetailModel = geoModel.getModel('roamDetail');
-
- var panX = roamDetailModel.get('x') || 0;
- var panY = roamDetailModel.get('y') || 0;
- var zoom = roamDetailModel.get('zoom') || 1;
-
- this.setPan(panX, panY);
- this.setZoom(zoom);
- }
-
- /**
- * @param {module:echarts/coord/Geo} geo
- * @param {module:echarts/model/Model} model
- * @inner
- */
- function setGeoCoords(geo, model) {
- zrUtil.each(model.get('geoCoord'), function (geoCoord, name) {
- geo.addGeoCoord(name, geoCoord);
- });
- }
-
- function mapNotExistsError(name) {
- console.error('Map ' + name + ' not exists');
- }
-
- var geoCreator = {
-
- // For deciding which dimensions to use when creating list data
- dimensions: Geo.prototype.dimensions,
-
- create: function (ecModel, api) {
- var geoList = [];
-
- // FIXME Create each time may be slow
- ecModel.eachComponent('geo', function (geoModel, idx) {
- var name = geoModel.get('map');
- var mapData = mapDataStores[name];
- if (!mapData) {
- mapNotExistsError(name);
- }
- var geo = new Geo(
- name + idx, name,
- mapData && mapData.geoJson, mapData && mapData.specialAreas,
- geoModel.get('nameMap')
- );
- geo.zoomLimit = geoModel.get('scaleLimit');
- geoList.push(geo);
-
- setGeoCoords(geo, geoModel);
-
- geoModel.coordinateSystem = geo;
- geo.model = geoModel;
-
- // Inject resize method
- geo.resize = resizeGeo;
-
- geo.resize(geoModel, api);
- });
-
- ecModel.eachSeries(function (seriesModel) {
- var coordSys = seriesModel.get('coordinateSystem');
- if (coordSys === 'geo') {
- var geoIndex = seriesModel.get('geoIndex') || 0;
- seriesModel.coordinateSystem = geoList[geoIndex];
- }
- });
-
- // If has map series
- var mapModelGroupBySeries = {};
-
- ecModel.eachSeriesByType('map', function (seriesModel) {
- var mapType = seriesModel.get('map');
-
- mapModelGroupBySeries[mapType] = mapModelGroupBySeries[mapType] || [];
-
- mapModelGroupBySeries[mapType].push(seriesModel);
- });
-
- zrUtil.each(mapModelGroupBySeries, function (mapSeries, mapType) {
- var mapData = mapDataStores[mapType];
- if (!mapData) {
- mapNotExistsError(name);
- }
-
- var nameMapList = zrUtil.map(mapSeries, function (singleMapSeries) {
- return singleMapSeries.get('nameMap');
- });
- var geo = new Geo(
- mapType, mapType,
- mapData && mapData.geoJson, mapData && mapData.specialAreas,
- zrUtil.mergeAll(nameMapList)
- );
- geo.zoomLimit = zrUtil.retrieve.apply(null, zrUtil.map(mapSeries, function (singleMapSeries) {
- return singleMapSeries.get('scaleLimit');
- }));
- geoList.push(geo);
-
- // Inject resize method
- geo.resize = resizeGeo;
-
- geo.resize(mapSeries[0], api);
-
- zrUtil.each(mapSeries, function (singleMapSeries) {
- singleMapSeries.coordinateSystem = geo;
-
- setGeoCoords(geo, singleMapSeries);
- });
- });
-
- return geoList;
- },
-
- /**
- * @param {string} mapName
- * @param {Object|string} geoJson
- * @param {Object} [specialAreas]
- *
- * @example
- * $.get('USA.json', function (geoJson) {
- * echarts.registerMap('USA', geoJson);
- * // Or
- * echarts.registerMap('USA', {
- * geoJson: geoJson,
- * specialAreas: {}
- * })
- * });
- */
- registerMap: function (mapName, geoJson, specialAreas) {
- if (geoJson.geoJson && !geoJson.features) {
- specialAreas = geoJson.specialAreas;
- geoJson = geoJson.geoJson;
- }
- if (typeof geoJson === 'string') {
- geoJson = (typeof JSON !== 'undefined' && JSON.parse)
- ? JSON.parse(geoJson) : (new Function('return (' + geoJson + ');'))();
- }
- mapDataStores[mapName] = {
- geoJson: geoJson,
- specialAreas: specialAreas
- };
- },
-
- /**
- * @param {string} mapName
- * @return {Object}
- */
- getMap: function (mapName) {
- return mapDataStores[mapName];
- }
- };
-
- // Inject methods into echarts
- var echarts = __webpack_require__(1);
-
- echarts.registerMap = geoCreator.registerMap;
-
- echarts.getMap = geoCreator.getMap;
-
- // TODO
- echarts.loadMap = function () {};
-
- echarts.registerCoordinateSystem('geo', geoCreator);
-
-
-/***/ },
-/* 164 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- var modelUtil = __webpack_require__(5);
- var ComponentModel = __webpack_require__(19);
-
- ComponentModel.extend({
-
- type: 'geo',
-
- /**
- * @type {module:echarts/coord/geo/Geo}
- */
- coordinateSystem: null,
-
- init: function (option) {
- ComponentModel.prototype.init.apply(this, arguments);
-
- // Default label emphasis `position` and `show`
- modelUtil.defaultEmphasis(
- option.label, ['position', 'show', 'textStyle', 'distance', 'formatter']
- );
- },
-
- defaultOption: {
-
- zlevel: 0,
-
- z: 0,
-
- show: true,
-
- left: 'center',
-
- top: 'center',
-
- // 自适应
- // width:,
- // height:,
- // right
- // bottom
-
- // Map type
- map: '',
-
- // 在 roam 开启的时候使用
- roamDetail: {
- x: 0,
- y: 0,
- zoom: 1
- },
-
- scaleLimit: null,
-
- label: {
- normal: {
- show: false,
- textStyle: {
- color: '#000'
- }
- },
- emphasis: {
- show: true,
- textStyle: {
- color: 'rgb(100,0,0)'
- }
- }
- },
-
- itemStyle: {
- normal: {
- // color: 各异,
- borderWidth: 0.5,
- borderColor: '#444',
- color: '#eee'
- },
- emphasis: { // 也是选中样式
- color: 'rgba(255,215,0,0.8)'
- }
- }
- },
-
- /**
- * Format label
- * @param {string} name Region name
- * @param {string} [status='normal'] 'normal' or 'emphasis'
- * @return {string}
- */
- getFormattedLabel: function (name, status) {
- var formatter = this.get('label.' + status + '.formatter');
- var params = {
- name: name
- };
- if (typeof formatter === 'function') {
- params.status = status;
- return formatter(params);
- }
- else if (typeof formatter === 'string') {
- return formatter.replace('{a}', params.seriesName);
- }
- },
-
- setRoamZoom: function (zoom) {
- var roamDetail = this.option.roamDetail;
- roamDetail && (roamDetail.zoom = zoom);
- },
-
- setRoamPan: function (x, y) {
- var roamDetail = this.option.roamDetail;
- if (roamDetail) {
- roamDetail.x = x;
- roamDetail.y = y;
- }
- }
- });
-
-
-/***/ },
-/* 165 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var parseGeoJson = __webpack_require__(166);
-
- var zrUtil = __webpack_require__(3);
-
- var BoundingRect = __webpack_require__(15);
-
- var View = __webpack_require__(169);
-
-
- // Geo fix functions
- var geoFixFuncs = [
- __webpack_require__(170),
- __webpack_require__(171),
- __webpack_require__(172)
- ];
-
- /**
- * [Geo description]
- * @param {string} name Geo name
- * @param {string} map Map type
- * @param {Object} geoJson
- * @param {Object} [specialAreas]
- * Specify the positioned areas by left, top, width, height
- * @param {Object.<string, string>} [nameMap]
- * Specify name alias
- */
- function Geo(name, map, geoJson, specialAreas, nameMap) {
-
- View.call(this, name);
-
- /**
- * Map type
- * @type {string}
- */
- this.map = map;
-
- this._nameCoordMap = {};
-
- this.loadGeoJson(geoJson, specialAreas, nameMap);
- }
-
- Geo.prototype = {
-
- constructor: Geo,
-
- type: 'geo',
-
- /**
- * @param {Array.<string>}
- * @readOnly
- */
- dimensions: ['lng', 'lat'],
-
- /**
- * @param {Object} geoJson
- * @param {Object} [specialAreas]
- * Specify the positioned areas by left, top, width, height
- * @param {Object.<string, string>} [nameMap]
- * Specify name alias
- */
- loadGeoJson: function (geoJson, specialAreas, nameMap) {
- // https://jsperf.com/try-catch-performance-overhead
- try {
- this.regions = geoJson ? parseGeoJson(geoJson) : [];
- }
- catch (e) {
- throw 'Invalid geoJson format\n' + e;
- }
- specialAreas = specialAreas || {};
- nameMap = nameMap || {};
- var regions = this.regions;
- var regionsMap = {};
- for (var i = 0; i < regions.length; i++) {
- var regionName = regions[i].name;
- // Try use the alias in nameMap
- regionName = nameMap[regionName] || regionName;
- regions[i].name = regionName;
-
- regionsMap[regionName] = regions[i];
- // Add geoJson
- this.addGeoCoord(regionName, regions[i].center);
-
- // Some area like Alaska in USA map needs to be tansformed
- // to look better
- var specialArea = specialAreas[regionName];
- if (specialArea) {
- regions[i].transformTo(
- specialArea.left, specialArea.top, specialArea.width, specialArea.height
- );
- }
- }
-
- this._regionsMap = regionsMap;
-
- this._rect = null;
-
- zrUtil.each(geoFixFuncs, function (fixFunc) {
- fixFunc(this);
- }, this);
- },
-
- // Overwrite
- transformTo: function (x, y, width, height) {
- var rect = this.getBoundingRect();
-
- rect = rect.clone();
- // Longitute is inverted
- rect.y = -rect.y - rect.height;
-
- var viewTransform = this._viewTransform;
-
- viewTransform.transform = rect.calculateTransform(
- new BoundingRect(x, y, width, height)
- );
-
- viewTransform.decomposeTransform();
-
- var scale = viewTransform.scale;
- scale[1] = -scale[1];
-
- viewTransform.updateTransform();
-
- this._updateTransform();
- },
-
- /**
- * @param {string} name
- * @return {module:echarts/coord/geo/Region}
- */
- getRegion: function (name) {
- return this._regionsMap[name];
- },
-
- /**
- * Add geoCoord for indexing by name
- * @param {string} name
- * @param {Array.<number>} geoCoord
- */
- addGeoCoord: function (name, geoCoord) {
- this._nameCoordMap[name] = geoCoord;
- },
-
- /**
- * Get geoCoord by name
- * @param {string} name
- * @return {Array.<number>}
- */
- getGeoCoord: function (name) {
- return this._nameCoordMap[name];
- },
-
- // Overwrite
- getBoundingRect: function () {
- if (this._rect) {
- return this._rect;
- }
- var rect;
-
- var regions = this.regions;
- for (var i = 0; i < regions.length; i++) {
- var regionRect = regions[i].getBoundingRect();
- rect = rect || regionRect.clone();
- rect.union(regionRect);
- }
- // FIXME Always return new ?
- return (this._rect = rect || new BoundingRect(0, 0, 0, 0));
- },
-
- /**
- * Convert series data to a list of points
- * @param {module:echarts/data/List} data
- * @param {boolean} stack
- * @return {Array}
- * Return list of points. For example:
- * `[[10, 10], [20, 20], [30, 30]]`
- */
- dataToPoints: function (data) {
- var item = [];
- return data.mapArray(['lng', 'lat'], function (lon, lat) {
- item[0] = lon;
- item[1] = lat;
- return this.dataToPoint(item);
- }, this);
- },
-
- // Overwrite
- /**
- * @param {string|Array.<number>} data
- * @return {Array.<number>}
- */
- dataToPoint: function (data) {
- if (typeof data === 'string') {
- // Map area name to geoCoord
- data = this.getGeoCoord(data);
- }
- if (data) {
- return View.prototype.dataToPoint.call(this, data);
- }
- }
- };
-
- zrUtil.mixin(Geo, View);
-
- module.exports = Geo;
-
-
-/***/ },
-/* 166 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Parse and decode geo json
- * @module echarts/coord/geo/parseGeoJson
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- var Region = __webpack_require__(167);
-
- function decode(json) {
- if (!json.UTF8Encoding) {
- return json;
- }
- var features = json.features;
-
- for (var f = 0; f < features.length; f++) {
- var feature = features[f];
- var geometry = feature.geometry;
- var coordinates = geometry.coordinates;
- var encodeOffsets = geometry.encodeOffsets;
-
- for (var c = 0; c < coordinates.length; c++) {
- var coordinate = coordinates[c];
-
- if (geometry.type === 'Polygon') {
- coordinates[c] = decodePolygon(
- coordinate,
- encodeOffsets[c]
- );
- }
- else if (geometry.type === 'MultiPolygon') {
- for (var c2 = 0; c2 < coordinate.length; c2++) {
- var polygon = coordinate[c2];
- coordinate[c2] = decodePolygon(
- polygon,
- encodeOffsets[c][c2]
- );
- }
- }
- }
- }
- // Has been decoded
- json.UTF8Encoding = false;
- return json;
- }
-
- function decodePolygon(coordinate, encodeOffsets) {
- var result = [];
- var prevX = encodeOffsets[0];
- var prevY = encodeOffsets[1];
-
- for (var i = 0; i < coordinate.length; i += 2) {
- var x = coordinate.charCodeAt(i) - 64;
- var y = coordinate.charCodeAt(i + 1) - 64;
- // ZigZag decoding
- x = (x >> 1) ^ (-(x & 1));
- y = (y >> 1) ^ (-(y & 1));
- // Delta deocding
- x += prevX;
- y += prevY;
-
- prevX = x;
- prevY = y;
- // Dequantize
- result.push([x / 1024, y / 1024]);
- }
-
- return result;
- }
-
- /**
- * @inner
- */
- function flattern2D(array) {
- var ret = [];
- for (var i = 0; i < array.length; i++) {
- for (var k = 0; k < array[i].length; k++) {
- ret.push(array[i][k]);
- }
- }
- return ret;
- }
-
- /**
- * @alias module:echarts/coord/geo/parseGeoJson
- * @param {Object} geoJson
- * @return {module:zrender/container/Group}
- */
- module.exports = function (geoJson) {
-
- decode(geoJson);
-
- return zrUtil.map(zrUtil.filter(geoJson.features, function (featureObj) {
- // Output of mapshaper may have geometry null
- return featureObj.geometry && featureObj.properties;
- }), function (featureObj) {
- var properties = featureObj.properties;
- var geometry = featureObj.geometry;
-
- var coordinates = geometry.coordinates;
-
- if (geometry.type === 'MultiPolygon') {
- coordinates = flattern2D(coordinates);
- }
-
- return new Region(
- properties.name,
- coordinates,
- properties.cp
- );
- });
- };
-
-
-/***/ },
-/* 167 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/coord/geo/Region
- */
-
-
- var polygonContain = __webpack_require__(168);
-
- var BoundingRect = __webpack_require__(15);
-
- var bbox = __webpack_require__(50);
- var vec2 = __webpack_require__(16);
-
- /**
- * @param {string} name
- * @param {Array} contours
- * @param {Array.<number>} cp
- */
- function Region(name, contours, cp) {
-
- /**
- * @type {string}
- * @readOnly
- */
- this.name = name;
-
- /**
- * @type {Array.<Array>}
- * @readOnly
- */
- this.contours = contours;
-
- if (!cp) {
- var rect = this.getBoundingRect();
- cp = [
- rect.x + rect.width / 2,
- rect.y + rect.height / 2
- ];
- }
- else {
- cp = [cp[0], cp[1]];
- }
- /**
- * @type {Array.<number>}
- */
- this.center = cp;
- }
-
- Region.prototype = {
-
- constructor: Region,
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- getBoundingRect: function () {
- var rect = this._rect;
- if (rect) {
- return rect;
- }
-
- var MAX_NUMBER = Number.MAX_VALUE;
- var min = [MAX_NUMBER, MAX_NUMBER];
- var max = [-MAX_NUMBER, -MAX_NUMBER];
- var min2 = [];
- var max2 = [];
- var contours = this.contours;
- for (var i = 0; i < contours.length; i++) {
- bbox.fromPoints(contours[i], min2, max2);
- vec2.min(min, min, min2);
- vec2.max(max, max, max2);
- }
- // No data
- if (i === 0) {
- min[0] = min[1] = max[0] = max[1] = 0;
- }
-
- return (this._rect = new BoundingRect(
- min[0], min[1], max[0] - min[0], max[1] - min[1]
- ));
- },
-
- /**
- * @param {<Array.<number>} coord
- * @return {boolean}
- */
- contain: function (coord) {
- var rect = this.getBoundingRect();
- var contours = this.contours;
- if (rect.contain(coord[0], coord[1])) {
- for (var i = 0, len = contours.length; i < len; i++) {
- if (polygonContain.contain(contours[i], coord[0], coord[1])) {
- return true;
- }
- }
- }
- return false;
- },
-
- transformTo: function (x, y, width, height) {
- var rect = this.getBoundingRect();
- var aspect = rect.width / rect.height;
- if (!width) {
- width = aspect * height;
- }
- else if (!height) {
- height = width / aspect ;
- }
- var target = new BoundingRect(x, y, width, height);
- var transform = rect.calculateTransform(target);
- var contours = this.contours;
- for (var i = 0; i < contours.length; i++) {
- for (var p = 0; p < contours[i].length; p++) {
- vec2.applyTransform(contours[i][p], contours[i][p], transform);
- }
- }
- rect = this._rect;
- rect.copy(target);
- // Update center
- this.center = [
- rect.x + rect.width / 2,
- rect.y + rect.height / 2
- ];
- }
- };
-
- module.exports = Region;
-
-
-/***/ },
-/* 168 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var windingLine = __webpack_require__(57);
-
- var EPSILON = 1e-8;
-
- function isAroundEqual(a, b) {
- return Math.abs(a - b) < EPSILON;
- }
-
- function contain(points, x, y) {
- var w = 0;
- var p = points[0];
-
- if (!p) {
- return false;
- }
-
- for (var i = 1; i < points.length; i++) {
- var p2 = points[i];
- w += windingLine(p[0], p[1], p2[0], p2[1], x, y);
- p = p2;
- }
-
- // Close polygon
- var p0 = points[0];
- if (!isAroundEqual(p[0], p0[0]) || !isAroundEqual(p[1], p0[1])) {
- w += windingLine(p[0], p[1], p0[0], p0[1], x, y);
- }
-
- return w !== 0;
- }
-
-
- module.exports = {
- contain: contain
- };
-
-
-/***/ },
-/* 169 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Simple view coordinate system
- * Mapping given x, y to transformd view x, y
- */
-
-
- var vector = __webpack_require__(16);
- var matrix = __webpack_require__(17);
-
- var Transformable = __webpack_require__(33);
- var zrUtil = __webpack_require__(3);
-
- var BoundingRect = __webpack_require__(15);
-
- var v2ApplyTransform = vector.applyTransform;
-
- // Dummy transform node
- function TransformDummy() {
- Transformable.call(this);
- }
- zrUtil.mixin(TransformDummy, Transformable);
-
- function View(name) {
- /**
- * @type {string}
- */
- this.name = name;
-
- /**
- * @type {Array.<number>}
- */
- this.zoomLimit;
-
- Transformable.call(this);
-
- this._roamTransform = new TransformDummy();
-
- this._viewTransform = new TransformDummy();
- }
-
- View.prototype = {
-
- constructor: View,
-
- type: 'view',
-
- /**
- * @param {Array.<string>}
- * @readOnly
- */
- dimensions: ['x', 'y'],
-
- /**
- * Set bounding rect
- * @param {number} x
- * @param {number} y
- * @param {number} width
- * @param {number} height
- */
-
- // PENDING to getRect
- setBoundingRect: function (x, y, width, height) {
- this._rect = new BoundingRect(x, y, width, height);
- return this._rect;
- },
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- // PENDING to getRect
- getBoundingRect: function () {
- return this._rect;
- },
-
- /**
- * @param {number} x
- * @param {number} y
- * @param {number} width
- * @param {number} height
- */
- setViewRect: function (x, y, width, height) {
- this.transformTo(x, y, width, height);
- this._viewRect = new BoundingRect(x, y, width, height);
- },
-
- /**
- * Transformed to particular position and size
- * @param {number} x
- * @param {number} y
- * @param {number} width
- * @param {number} height
- */
- transformTo: function (x, y, width, height) {
- var rect = this.getBoundingRect();
- var viewTransform = this._viewTransform;
-
- viewTransform.transform = rect.calculateTransform(
- new BoundingRect(x, y, width, height)
- );
-
- viewTransform.decomposeTransform();
-
- this._updateTransform();
- },
-
- /**
- * @param {number} x
- * @param {number} y
- */
- setPan: function (x, y) {
-
- this._roamTransform.position = [x, y];
-
- this._updateTransform();
- },
-
- /**
- * @param {number} zoom
- */
- setZoom: function (zoom) {
- var zoomLimit = this.zoomLimit;
- if (zoomLimit) {
- zoom = Math.max(
- Math.min(zoom, zoomLimit.max), zoomLimit.min
- );
- }
-
- this._roamTransform.scale = [zoom, zoom];
-
- this._updateTransform();
- },
-
- /**
- * @return {Array.<number}
- */
- getRoamTransform: function () {
- return this._roamTransform.transform;
- },
-
- /**
- * Update transform from roam and mapLocation
- * @private
- */
- _updateTransform: function () {
- var roamTransform = this._roamTransform;
- var viewTransform = this._viewTransform;
- // var scale = this.scale;
-
- viewTransform.parent = roamTransform;
- roamTransform.updateTransform();
- viewTransform.updateTransform();
-
- viewTransform.transform
- && matrix.copy(this.transform || (this.transform = []), viewTransform.transform);
-
- this.decomposeTransform();
- },
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- getViewRect: function () {
- return this._viewRect;
- },
-
- /**
- * Convert a single (lon, lat) data item to (x, y) point.
- * @param {Array.<number>} data
- * @return {Array.<number>}
- */
- dataToPoint: function (data) {
- var transform = this.transform;
- return transform
- ? v2ApplyTransform([], data, transform)
- : [data[0], data[1]];
- },
-
- /**
- * Convert a (x, y) point to (lon, lat) data
- * @param {Array.<number>} point
- * @return {Array.<number>}
- */
- pointToData: function (point) {
- var invTransform = this.invTransform;
- return invTransform
- ? v2ApplyTransform([], point, invTransform)
- : [point[0], point[1]];
- }
-
- /**
- * @return {number}
- */
- // getScalarScale: function () {
- // // Use determinant square root of transform to mutiply scalar
- // var m = this.transform;
- // var det = Math.sqrt(Math.abs(m[0] * m[3] - m[2] * m[1]));
- // return det;
- // }
- };
-
- zrUtil.mixin(View, Transformable);
-
- module.exports = View;
-
-
-/***/ },
-/* 170 */
-/***/ function(module, exports, __webpack_require__) {
-
- // Fix for 南海诸岛
-
-
- var Region = __webpack_require__(167);
-
- var geoCoord = [126, 25];
-
- var points = [
- [[0,3.5],[7,11.2],[15,11.9],[30,7],[42,0.7],[52,0.7],
- [56,7.7],[59,0.7],[64,0.7],[64,0],[5,0],[0,3.5]],
- [[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],
- [[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],
- [[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],
- [[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],
- [[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],
- [[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],
- [[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],
- [[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],
- [[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],
- [[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],
- [[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],
- [1,92.4],[1,3.5],[0,3.5]]
- ];
- for (var i = 0; i < points.length; i++) {
- for (var k = 0; k < points[i].length; k++) {
- points[i][k][0] /= 10.5;
- points[i][k][1] /= -10.5 / 0.75;
-
- points[i][k][0] += geoCoord[0];
- points[i][k][1] += geoCoord[1];
- }
- }
- module.exports = function (geo) {
- if (geo.map === 'china') {
- geo.regions.push(new Region(
- '南海诸岛', points, geoCoord
- ));
- }
- };
-
-
-/***/ },
-/* 171 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var coordsOffsetMap = {
- '南海诸岛' : [32, 80],
- // 全国
- '广东': [0, -10],
- '香港': [10, 5],
- '澳门': [-10, 10],
- //'北京': [-10, 0],
- '天津': [5, 5]
- };
-
- module.exports = function (geo) {
- zrUtil.each(geo.regions, function (region) {
- var coordFix = coordsOffsetMap[region.name];
- if (coordFix) {
- var cp = region.center;
- cp[0] += coordFix[0] / 10.5;
- cp[1] += -coordFix[1] / (10.5 / 0.75);
- }
- });
- };
-
-
-/***/ },
-/* 172 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var geoCoordMap = {
- 'Russia': [100, 60],
- 'United States of America': [-99, 38]
- };
-
- module.exports = function (geo) {
- zrUtil.each(geo.regions, function (region) {
- var geoCoord = geoCoordMap[region.name];
- if (geoCoord) {
- var cp = region.center;
- cp[0] = geoCoord[0];
- cp[1] = geoCoord[1];
- }
- });
- };
-
-
-/***/ },
-/* 173 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (ecModel) {
-
- var processedMapType = {};
-
- ecModel.eachSeriesByType('map', function (mapSeries) {
- var mapType = mapSeries.get('mapType');
- if (processedMapType[mapType]) {
- return;
- }
-
- var mapSymbolOffsets = {};
-
- zrUtil.each(mapSeries.seriesGroup, function (subMapSeries) {
- var geo = subMapSeries.coordinateSystem;
- var data = subMapSeries.getData();
- if (subMapSeries.get('showLegendSymbol') && ecModel.getComponent('legend')) {
- data.each('value', function (value, idx) {
- var name = data.getName(idx);
- var region = geo.getRegion(name);
-
- // No region or no value
- // In MapSeries data regions will be filled with NaN
- // If they are not in the series.data array.
- // So here must validate if value is NaN
- if (!region || isNaN(value)) {
- return;
- }
-
- var offset = mapSymbolOffsets[name] || 0;
-
- var point = geo.dataToPoint(region.center);
-
- mapSymbolOffsets[name] = offset + 1;
-
- data.setItemLayout(idx, {
- point: point,
- offset: offset
- });
- });
- }
- });
-
- // Show label of those region not has legendSymbol(which is offset 0)
- var data = mapSeries.getData();
- data.each(function (idx) {
- var name = data.getName(idx);
- var layout = data.getItemLayout(idx) || {};
- layout.showLabel = !mapSymbolOffsets[name];
- data.setItemLayout(idx, layout);
- });
-
- processedMapType[mapType] = true;
- });
- };
-
-
-/***/ },
-/* 174 */
-/***/ function(module, exports) {
-
-
- module.exports = function (ecModel) {
- ecModel.eachSeriesByType('map', function (seriesModel) {
- var colorList = seriesModel.get('color');
- var itemStyleModel = seriesModel.getModel('itemStyle.normal');
-
- var areaColor = itemStyleModel.get('areaColor');
- var color = itemStyleModel.get('color')
- || colorList[seriesModel.seriesIndex % colorList.length];
-
- seriesModel.getData().setVisual({
- 'areaColor': areaColor,
- 'color': color
- });
- });
- };
-
-
-/***/ },
-/* 175 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- // FIXME 公用?
- /**
- * @param {Array.<module:echarts/data/List>} datas
- * @param {string} statisticsType 'average' 'sum'
- * @inner
- */
- function dataStatistics(datas, statisticsType) {
- var dataNameMap = {};
- var dims = ['value'];
-
- for (var i = 0; i < datas.length; i++) {
- datas[i].each(dims, function (value, idx) {
- var name = datas[i].getName(idx);
- dataNameMap[name] = dataNameMap[name] || [];
- if (!isNaN(value)) {
- dataNameMap[name].push(value);
- }
- });
- }
-
- return datas[0].map(dims, function (value, idx) {
- var name = datas[0].getName(idx);
- var sum = 0;
- var min = Infinity;
- var max = -Infinity;
- var len = dataNameMap[name].length;
- for (var i = 0; i < len; i++) {
- min = Math.min(min, dataNameMap[name][i]);
- max = Math.max(max, dataNameMap[name][i]);
- sum += dataNameMap[name][i];
- }
- var result;
- if (statisticsType === 'min') {
- result = min;
- }
- else if (statisticsType === 'max') {
- result = max;
- }
- else if (statisticsType === 'average') {
- result = sum / len;
- }
- else {
- result = sum;
- }
- return len === 0 ? NaN : result;
- });
- }
-
- module.exports = function (ecModel) {
- var seriesGroupByMapType = {};
- ecModel.eachSeriesByType('map', function (seriesModel) {
- var mapType = seriesModel.get('map');
- seriesGroupByMapType[mapType] = seriesGroupByMapType[mapType] || [];
- seriesGroupByMapType[mapType].push(seriesModel);
- });
-
- zrUtil.each(seriesGroupByMapType, function (seriesList, mapType) {
- var data = dataStatistics(
- zrUtil.map(seriesList, function (seriesModel) {
- return seriesModel.getData();
- }),
- seriesList[0].get('mapValueCalculation')
- );
-
- seriesList[0].seriesGroup = [];
-
- seriesList[0].setData(data);
-
- // FIXME Put where?
- for (var i = 0; i < seriesList.length; i++) {
- seriesList[i].seriesGroup = seriesList;
- seriesList[i].needsDrawMap = i === 0;
- }
- });
- };
-
-
-/***/ },
-/* 176 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var geoProps = [
- 'x', 'y', 'x2', 'y2', 'width', 'height', 'map', 'roam', 'roamDetail', 'label', 'itemStyle'
- ];
-
- var geoCoordsMap = {};
-
- function createGeoFromMap(mapSeriesOpt) {
- var geoOpt = {};
- zrUtil.each(geoProps, function (propName) {
- if (mapSeriesOpt[propName] != null) {
- geoOpt[propName] = mapSeriesOpt[propName];
- }
- });
- return geoOpt;
- }
- module.exports = function (option) {
- // Save geoCoord
- var mapSeries = [];
- zrUtil.each(option.series, function (seriesOpt) {
- if (seriesOpt.type === 'map') {
- mapSeries.push(seriesOpt);
- }
- zrUtil.extend(geoCoordsMap, seriesOpt.geoCoord);
- });
-
- var newCreatedGeoOptMap = {};
- zrUtil.each(mapSeries, function (seriesOpt) {
- seriesOpt.map = seriesOpt.map || seriesOpt.mapType;
- // Put x, y, width, height, x2, y2 in the top level
- zrUtil.defaults(seriesOpt, seriesOpt.mapLocation);
- if (seriesOpt.markPoint) {
- var markPoint = seriesOpt.markPoint;
- // Convert name or geoCoord in markPoint to lng and lat
- // For example
- // { name: 'xxx', value: 10} Or
- // { geoCoord: [lng, lat], value: 10} to
- // { name: 'xxx', value: [lng, lat, 10]}
- markPoint.data = zrUtil.map(markPoint.data, function (dataOpt) {
- if (!zrUtil.isArray(dataOpt.value)) {
- var geoCoord;
- if (dataOpt.geoCoord) {
- geoCoord = dataOpt.geoCoord;
- }
- else if (dataOpt.name) {
- geoCoord = geoCoordsMap[dataOpt.name];
- }
- var newValue = geoCoord ? [geoCoord[0], geoCoord[1]] : [NaN, NaN];
- if (dataOpt.value != null) {
- newValue.push(dataOpt.value);
- }
- dataOpt.value = newValue;
- }
- return dataOpt;
- });
- // Convert map series which only has markPoint without data to scatter series
- // FIXME
- if (!(seriesOpt.data && seriesOpt.data.length)) {
- if (!option.geo) {
- option.geo = [];
- }
-
- // Use same geo if multiple map series has same map type
- var geoOpt = newCreatedGeoOptMap[seriesOpt.map];
- if (!geoOpt) {
- geoOpt = newCreatedGeoOptMap[seriesOpt.map] = createGeoFromMap(seriesOpt);
- option.geo.push(geoOpt);
- }
-
- var scatterSeries = seriesOpt.markPoint;
- scatterSeries.type = option.effect && option.effect.show ? 'effectScatter' : 'scatter';
- scatterSeries.coordinateSystem = 'geo';
- scatterSeries.geoIndex = zrUtil.indexOf(option.geo, geoOpt);
- scatterSeries.name = seriesOpt.name;
-
- option.series.splice(zrUtil.indexOf(option.series, seriesOpt), 1, scatterSeries);
- }
- }
- });
- };
-
-
-/***/ },
-/* 177 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(178);
- __webpack_require__(182);
- __webpack_require__(185);
-
- echarts.registerVisualCoding('chart', __webpack_require__(186));
-
- echarts.registerLayout(__webpack_require__(188));
-
-
-/***/ },
-/* 178 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var SeriesModel = __webpack_require__(27);
- var Tree = __webpack_require__(179);
- var zrUtil = __webpack_require__(3);
- var Model = __webpack_require__(8);
- var formatUtil = __webpack_require__(6);
- var helper = __webpack_require__(181);
- var encodeHTML = formatUtil.encodeHTML;
- var addCommas = formatUtil.addCommas;
-
-
- module.exports = SeriesModel.extend({
-
- type: 'series.treemap',
-
- dependencies: ['grid', 'polar'],
-
- /**
- * @type {module:echarts/data/Tree~Node}
- */
- _viewRoot: null,
-
- defaultOption: {
- // center: ['50%', '50%'], // not supported in ec3.
- // size: ['80%', '80%'], // deprecated, compatible with ec2.
- left: 'center',
- top: 'middle',
- right: null,
- bottom: null,
- width: '80%',
- height: '80%',
- sort: true, // Can be null or false or true
- // (order by desc default, asc not supported yet (strange effect))
- clipWindow: 'origin', // Size of clipped window when zooming. 'origin' or 'fullscreen'
- squareRatio: 0.5 * (1 + Math.sqrt(5)), // golden ratio
- leafDepth: null, // Nodes on depth from root are regarded as leaves.
- // Count from zero (zero represents only view root).
- visualDimension: 0, // Can be 0, 1, 2, 3.
- zoomToNodeRatio: 0.32 * 0.32, // Be effective when using zoomToNode. Specify the proportion of the
- // target node area in the view area.
- roam: true, // true, false, 'scale' or 'zoom', 'move'.
- nodeClick: 'zoomToNode', // Leaf node click behaviour: 'zoomToNode', 'link', false.
- // If leafDepth is set and clicking a node which has children but
- // be on left depth, the behaviour would be changing root. Otherwise
- // use behavious defined above.
- animation: true,
- animationDurationUpdate: 900,
- animationEasing: 'quinticInOut',
- breadcrumb: {
- show: true,
- height: 22,
- left: 'center',
- top: 'bottom',
- // right
- // bottom
- emptyItemWidth: 25, // Width of empty node.
- itemStyle: {
- normal: {
- color: 'rgba(0,0,0,0.7)', //'#5793f3',
- borderColor: 'rgba(255,255,255,0.7)',
- borderWidth: 1,
- shadowColor: 'rgba(150,150,150,1)',
- shadowBlur: 3,
- shadowOffsetX: 0,
- shadowOffsetY: 0,
- textStyle: {
- color: '#fff'
- }
- },
- emphasis: {
- textStyle: {}
- }
- }
- },
- label: {
- normal: {
- show: true,
- position: ['50%', '50%'], // Can be 5, '5%' or position stirng like 'insideTopLeft', ...
- textStyle: {
- align: 'center',
- baseline: 'middle',
- color: '#fff',
- ellipsis: true
- }
- }
- },
- itemStyle: {
- normal: {
- color: null, // Can be 'none' if not necessary.
- colorAlpha: null, // Can be 'none' if not necessary.
- colorSaturation: null, // Can be 'none' if not necessary.
- borderWidth: 0,
- gapWidth: 0,
- borderColor: '#fff',
- borderColorSaturation: null // If specified, borderColor will be ineffective, and the
- // border color is evaluated by color of current node and
- // borderColorSaturation.
- },
- emphasis: {
-
- }
- },
- color: 'none', // Array. Specify color list of each level.
- // level[0].color would be global color list.
- colorAlpha: null, // Array. Specify color alpha range of each level, like [0.2, 0.8]
- colorSaturation: null, // Array. Specify color saturation of each level, like [0.2, 0.5]
- colorMappingBy: 'index', // 'value' or 'index' or 'id'.
- visibleMin: 10, // If area less than this threshold (unit: pixel^2), node will not
- // be rendered. Only works when sort is 'asc' or 'desc'.
- childrenVisibleMin: null, // If area of a node less than this threshold (unit: pixel^2),
- // grandchildren will not show.
- // Why grandchildren? If not grandchildren but children,
- // some siblings show children and some not,
- // the appearance may be mess and not consistent,
- levels: [] // Each item: {
- // visibleMin, itemStyle, visualDimension, label
- // }
- // data: {
- // value: [],
- // children: [],
- // link: 'http://xxx.xxx.xxx',
- // target: 'blank' or 'self'
- // }
- },
-
- /**
- * @override
- */
- getInitialData: function (option, ecModel) {
- var data = option.data || [];
- var rootName = option.name;
- rootName == null && (rootName = option.name);
-
- // Create a virtual root.
- var root = {name: rootName, children: option.data};
- var value0 = (data[0] || {}).value;
-
- completeTreeValue(root, zrUtil.isArray(value0) ? value0.length : -1);
-
- // FIXME
- // sereis.mergeOption 的 getInitData是否放在merge后,从而能直接获取merege后的结果而非手动判断。
- var levels = option.levels || [];
-
- levels = option.levels = setDefault(levels, ecModel);
-
- // Make sure always a new tree is created when setOption,
- // in TreemapView, we check whether oldTree === newTree
- // to choose mappings approach among old shapes and new shapes.
- return Tree.createTree(root, this, levels).data;
- },
-
- optionUpdated: function () {
- this.resetViewRoot();
- },
-
- /**
- * @override
- * @param {number} dataIndex
- * @param {boolean} [mutipleSeries=false]
- */
- formatTooltip: function (dataIndex) {
- var data = this.getData();
- var value = this.getRawValue(dataIndex);
- var formattedValue = zrUtil.isArray(value)
- ? addCommas(value[0]) : addCommas(value);
- var name = data.getName(dataIndex);
-
- return encodeHTML(name) + ': ' + formattedValue;
- },
-
- /**
- * Add tree path to tooltip param
- *
- * @override
- * @param {number} dataIndex
- * @return {Object}
- */
- getDataParams: function (dataIndex) {
- var params = SeriesModel.prototype.getDataParams.apply(this, arguments);
-
- var data = this.getData();
- var node = data.tree.getNodeByDataIndex(dataIndex);
- var treePathInfo = params.treePathInfo = [];
-
- while (node) {
- var nodeDataIndex = node.dataIndex;
- treePathInfo.push({
- name: node.name,
- dataIndex: nodeDataIndex,
- value: this.getRawValue(nodeDataIndex)
- });
- node = node.parentNode;
- }
-
- treePathInfo.reverse();
-
- return params;
- },
-
- /**
- * @public
- * @param {Object} layoutInfo {
- * x: containerGroup x
- * y: containerGroup y
- * width: containerGroup width
- * height: containerGroup height
- * }
- */
- setLayoutInfo: function (layoutInfo) {
- /**
- * @readOnly
- * @type {Object}
- */
- this.layoutInfo = this.layoutInfo || {};
- zrUtil.extend(this.layoutInfo, layoutInfo);
- },
-
- /**
- * @param {string} id
- * @return {number} index
- */
- mapIdToIndex: function (id) {
- // A feature is implemented:
- // index is monotone increasing with the sequence of
- // input id at the first time.
- // This feature can make sure that each data item and its
- // mapped color have the same index between data list and
- // color list at the beginning, which is useful for user
- // to adjust data-color mapping.
-
- /**
- * @private
- * @type {Object}
- */
- var idIndexMap = this._idIndexMap;
-
- if (!idIndexMap) {
- idIndexMap = this._idIndexMap = {};
- /**
- * @private
- * @type {number}
- */
- this._idIndexMapCount = 0;
- }
-
- var index = idIndexMap[id];
- if (index == null) {
- idIndexMap[id] = index = this._idIndexMapCount++;
- }
-
- return index;
- },
-
- getViewRoot: function () {
- return this._viewRoot;
- },
-
- /**
- * @param {module:echarts/data/Tree~Node} [viewRoot]
- * @return {string} direction 'drilldown' or 'rollup'
- */
- resetViewRoot: function (viewRoot) {
- viewRoot
- ? (this._viewRoot = viewRoot)
- : (viewRoot = this._viewRoot);
-
- var root = this.getData().tree.root;
-
- if (!viewRoot
- || (viewRoot !== root && !root.contains(viewRoot))
- ) {
- this._viewRoot = root;
- }
- }
- });
-
- /**
- * @param {Object} dataNode
- */
- function completeTreeValue(dataNode, arrValueLength) {
- // Postorder travel tree.
- // If value of none-leaf node is not set,
- // calculate it by suming up the value of all children.
- var sum = 0;
-
- zrUtil.each(dataNode.children, function (child) {
-
- completeTreeValue(child, arrValueLength);
-
- var childValue = child.value;
- zrUtil.isArray(childValue) && (childValue = childValue[0]);
-
- sum += childValue;
- });
-
- var thisValue = dataNode.value;
-
- if (arrValueLength >= 0) {
- if (!zrUtil.isArray(thisValue)) {
- dataNode.value = new Array(arrValueLength);
- }
- else {
- thisValue = thisValue[0];
- }
- }
-
- if (thisValue == null || isNaN(thisValue)) {
- thisValue = sum;
- }
- // Value should not less than 0.
- if (thisValue < 0) {
- thisValue = 0;
- }
-
- arrValueLength >= 0
- ? (dataNode.value[0] = thisValue)
- : (dataNode.value = thisValue);
- }
-
- /**
- * set default to level configuration
- */
- function setDefault(levels, ecModel) {
- var globalColorList = ecModel.get('color');
-
- if (!globalColorList) {
- return;
- }
-
- levels = levels || [];
- var hasColorDefine;
- zrUtil.each(levels, function (levelDefine) {
- var model = new Model(levelDefine);
- var modelColor = model.get('color');
- if (model.get('itemStyle.normal.color')
- || (modelColor && modelColor !== 'none')
- ) {
- hasColorDefine = true;
- }
- });
-
- if (!hasColorDefine) {
- var level0 = levels[0] || (levels[0] = {});
- level0.color = globalColorList.slice();
- }
-
- return levels;
- }
-
-
-
-/***/ },
-/* 179 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Tree data structure
- *
- * @module echarts/data/Tree
- */
-
-
- var zrUtil = __webpack_require__(3);
- var Model = __webpack_require__(8);
- var List = __webpack_require__(94);
- var linkListHelper = __webpack_require__(180);
- var completeDimensions = __webpack_require__(96);
-
- /**
- * @constructor module:echarts/data/Tree~TreeNode
- * @param {string} name
- * @param {number} [dataIndex=-1]
- * @param {module:echarts/data/Tree} hostTree
- */
- var TreeNode = function (name, dataIndex, hostTree) {
- /**
- * @type {string}
- */
- this.name = name || '';
-
- /**
- * Depth of node
- *
- * @type {number}
- * @readOnly
- */
- this.depth = 0;
-
- /**
- * Height of the subtree rooted at this node.
- * @type {number}
- * @readOnly
- */
- this.height = 0;
-
- /**
- * @type {module:echarts/data/Tree~TreeNode}
- * @readOnly
- */
- this.parentNode = null;
-
- /**
- * Reference to list item.
- * Do not persistent dataIndex outside,
- * besause it may be changed by list.
- * If dataIndex -1,
- * this node is logical deleted (filtered) in list.
- *
- * @type {Object}
- * @readOnly
- */
- this.dataIndex = dataIndex == null ? -1 : dataIndex;
-
- /**
- * @type {Array.<module:echarts/data/Tree~TreeNode>}
- * @readOnly
- */
- this.children = [];
-
- /**
- * @type {Array.<module:echarts/data/Tree~TreeNode>}
- * @pubilc
- */
- this.viewChildren = [];
-
- /**
- * @type {moduel:echarts/data/Tree}
- * @readOnly
- */
- this.hostTree = hostTree;
- };
-
- TreeNode.prototype = {
-
- constructor: TreeNode,
-
- /**
- * The node is removed.
- * @return {boolean} is removed.
- */
- isRemoved: function () {
- return this.dataIndex < 0;
- },
-
- /**
- * Travel this subtree (include this node).
- * Usage:
- * node.eachNode(function () { ... }); // preorder
- * node.eachNode('preorder', function () { ... }); // preorder
- * node.eachNode('postorder', function () { ... }); // postorder
- * node.eachNode(
- * {order: 'postorder', attr: 'viewChildren'},
- * function () { ... }
- * ); // postorder
- *
- * @param {(Object|string)} options If string, means order.
- * @param {string=} options.order 'preorder' or 'postorder'
- * @param {string=} options.attr 'children' or 'viewChildren'
- * @param {Function} cb If in preorder and return false,
- * its subtree will not be visited.
- * @param {Object} [context]
- */
- eachNode: function (options, cb, context) {
- if (typeof options === 'function') {
- context = cb;
- cb = options;
- options = null;
- }
-
- options = options || {};
- if (zrUtil.isString(options)) {
- options = {order: options};
- }
-
- var order = options.order || 'preorder';
- var children = this[options.attr || 'children'];
-
- var suppressVisitSub;
- order === 'preorder' && (suppressVisitSub = cb.call(context, this));
-
- for (var i = 0; !suppressVisitSub && i < children.length; i++) {
- children[i].eachNode(options, cb, context);
- }
-
- order === 'postorder' && cb.call(context, this);
- },
-
- /**
- * Update depth and height of this subtree.
- *
- * @param {number} depth
- */
- updateDepthAndHeight: function (depth) {
- var height = 0;
- this.depth = depth;
- for (var i = 0; i < this.children.length; i++) {
- var child = this.children[i];
- child.updateDepthAndHeight(depth + 1);
- if (child.height > height) {
- height = child.height;
- }
- }
- this.height = height + 1;
- },
-
- /**
- * @param {string} id
- * @return {module:echarts/data/Tree~TreeNode}
- */
- getNodeById: function (id) {
- if (this.getId() === id) {
- return this;
- }
- for (var i = 0, children = this.children, len = children.length; i < len; i++) {
- var res = children[i].getNodeById(id);
- if (res) {
- return res;
- }
- }
- },
-
- /**
- * @param {module:echarts/data/Tree~TreeNode} node
- * @return {boolean}
- */
- contains: function (node) {
- if (node === this) {
- return true;
- }
- for (var i = 0, children = this.children, len = children.length; i < len; i++) {
- var res = children[i].contains(node);
- if (res) {
- return res;
- }
- }
- },
-
- /**
- * @param {boolean} includeSelf Default false.
- * @return {Array.<module:echarts/data/Tree~TreeNode>} order: [root, child, grandchild, ...]
- */
- getAncestors: function (includeSelf) {
- var ancestors = [];
- var node = includeSelf ? this : this.parentNode;
- while (node) {
- ancestors.push(node);
- node = node.parentNode;
- }
- ancestors.reverse();
- return ancestors;
- },
-
- /**
- * @param {string|Array=} [dimension='value'] Default 'value'. can be 0, 1, 2, 3
- * @return {number} Value.
- */
- getValue: function (dimension) {
- var data = this.hostTree.data;
- return data.get(data.getDimension(dimension || 'value'), this.dataIndex);
- },
-
- /**
- * @param {Object} layout
- * @param {boolean=} [merge=false]
- */
- setLayout: function (layout, merge) {
- this.dataIndex >= 0
- && this.hostTree.data.setItemLayout(this.dataIndex, layout, merge);
- },
-
- /**
- * @return {Object} layout
- */
- getLayout: function () {
- return this.hostTree.data.getItemLayout(this.dataIndex);
- },
-
- /**
- * @param {string} path
- * @return {module:echarts/model/Model}
- */
- getModel: function (path) {
- if (this.dataIndex < 0) {
- return;
- }
- var hostTree = this.hostTree;
- var itemModel = hostTree.data.getItemModel(this.dataIndex);
- var levelModel = this.getLevelModel();
-
- return itemModel.getModel(path, (levelModel || hostTree.hostModel).getModel(path));
- },
-
- /**
- * @return {module:echarts/model/Model}
- */
- getLevelModel: function () {
- return (this.hostTree.levelModels || [])[this.depth];
- },
-
- /**
- * @example
- * setItemVisual('color', color);
- * setItemVisual({
- * 'color': color
- * });
- */
- setVisual: function (key, value) {
- this.dataIndex >= 0
- && this.hostTree.data.setItemVisual(this.dataIndex, key, value);
- },
-
- /**
- * @public
- */
- getVisual: function (key, ignoreParent) {
- return this.hostTree.data.getItemVisual(this.dataIndex, key, ignoreParent);
- },
-
- /**
- * @public
- * @return {number}
- */
- getRawIndex: function () {
- return this.hostTree.data.getRawIndex(this.dataIndex);
- },
-
- /**
- * @public
- * @return {string}
- */
- getId: function () {
- return this.hostTree.data.getId(this.dataIndex);
- }
- };
-
- /**
- * @constructor
- * @alias module:echarts/data/Tree
- * @param {module:echarts/model/Model} hostModel
- * @param {Array.<Object>} levelOptions
- */
- function Tree(hostModel, levelOptions) {
- /**
- * @type {module:echarts/data/Tree~TreeNode}
- * @readOnly
- */
- this.root;
-
- /**
- * @type {module:echarts/data/List}
- * @readOnly
- */
- this.data;
-
- /**
- * Index of each item is the same as the raw index of coresponding list item.
- * @private
- * @type {Array.<module:echarts/data/Tree~TreeNode}
- */
- this._nodes = [];
-
- /**
- * @private
- * @readOnly
- * @type {module:echarts/model/Model}
- */
- this.hostModel = hostModel;
-
- /**
- * @private
- * @readOnly
- * @type {Array.<module:echarts/model/Model}
- */
- this.levelModels = zrUtil.map(levelOptions || [], function (levelDefine) {
- return new Model(levelDefine, hostModel, hostModel.ecModel);
- });
- }
-
- Tree.prototype = {
-
- constructor: Tree,
-
- type: 'tree',
-
- /**
- * Travel this subtree (include this node).
- * Usage:
- * node.eachNode(function () { ... }); // preorder
- * node.eachNode('preorder', function () { ... }); // preorder
- * node.eachNode('postorder', function () { ... }); // postorder
- * node.eachNode(
- * {order: 'postorder', attr: 'viewChildren'},
- * function () { ... }
- * ); // postorder
- *
- * @param {(Object|string)} options If string, means order.
- * @param {string=} options.order 'preorder' or 'postorder'
- * @param {string=} options.attr 'children' or 'viewChildren'
- * @param {Function} cb
- * @param {Object} [context]
- */
- eachNode: function(options, cb, context) {
- this.root.eachNode(options, cb, context);
- },
-
- /**
- * @param {number} dataIndex
- * @return {module:echarts/data/Tree~TreeNode}
- */
- getNodeByDataIndex: function (dataIndex) {
- var rawIndex = this.data.getRawIndex(dataIndex);
- return this._nodes[rawIndex];
- },
-
- /**
- * @param {string} name
- * @return {module:echarts/data/Tree~TreeNode}
- */
- getNodeByName: function (name) {
- return this.root.getNodeByName(name);
- },
-
- /**
- * Update item available by list,
- * when list has been performed options like 'filterSelf' or 'map'.
- */
- update: function () {
- var data = this.data;
- var nodes = this._nodes;
-
- for (var i = 0, len = nodes.length; i < len; i++) {
- nodes[i].dataIndex = -1;
- }
-
- for (var i = 0, len = data.count(); i < len; i++) {
- nodes[data.getRawIndex(i)].dataIndex = i;
- }
- }
- };
-
- /**
- * data node format:
- * {
- * name: ...
- * value: ...
- * children: [
- * {
- * name: ...
- * value: ...
- * children: ...
- * },
- * ...
- * ]
- * }
- *
- * @static
- * @param {Objec} dataRoot Root node.
- * @param {module:echarts/model/Model} hostModel
- * @param {Array.<Object>} levelOptions
- * @return module:echarts/data/Tree
- */
- Tree.createTree = function (dataRoot, hostModel, levelOptions) {
-
- var tree = new Tree(hostModel, levelOptions);
- var listData = [];
-
- buildHierarchy(dataRoot);
-
- function buildHierarchy(dataNode, parentNode) {
- listData.push(dataNode);
-
- var node = new TreeNode(dataNode.name, listData.length - 1, tree);
- parentNode
- ? addChild(node, parentNode)
- : (tree.root = node);
-
- var children = dataNode.children;
- if (children) {
- for (var i = 0; i < children.length; i++) {
- buildHierarchy(children[i], node);
- }
- }
- }
-
- tree.root.updateDepthAndHeight(0);
-
- var dimensions = completeDimensions([{name: 'value'}], listData);
- var list = new List(dimensions, hostModel);
- list.initData(listData);
-
- linkListHelper.linkToTree(list, tree);
-
- return tree;
- };
-
- /**
- * It is needed to consider the mess of 'list', 'hostModel' when creating a TreeNote,
- * so this function is not ready and not necessary to be public.
- *
- * @param {(module:echarts/data/Tree~TreeNode|Object)} child
- */
- function addChild(child, node) {
- var children = node.children;
- if (child.parentNode === node) {
- return;
- }
-
- children.push(child);
- child.parentNode = node;
-
- node.hostTree._nodes.push(child);
- }
-
- module.exports = Tree;
-
-
-/***/ },
-/* 180 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Link list to graph or tree
- */
-
-
- var zrUtil = __webpack_require__(3);
- var arraySlice = Array.prototype.slice;
-
- // Caution:
- // In most case, only one of the list and its shallow clones (see list.cloneShallow)
- // can be active in echarts process. Considering heap memory consumption,
- // we do not clone tree or graph, but share them among list and its shallow clones.
- // But in some rare case, we have to keep old list (like do animation in chart). So
- // please take care that both the old list and the new list share the same tree/graph.
-
- function linkList(list, target, targetType) {
- zrUtil.each(listProxyMethods, function (method, methodName) {
- var originMethod = list[methodName];
- list[methodName] = zrUtil.curry(method, originMethod, target, targetType);
- });
-
- list[targetType] = target;
- target.data = list;
-
- return list;
- }
-
- var listProxyMethods = {
- cloneShallow: function (originMethod, target, targetType) {
- var newList = originMethod.apply(this, arraySlice.call(arguments, 3));
- return linkList(newList, target, targetType);
- },
- map: function (originMethod, target, targetType) {
- var newList = originMethod.apply(this, arraySlice.call(arguments, 3));
- return linkList(newList, target, targetType);
- },
- filterSelf: function (originMethod, target, targetType) {
- var result = originMethod.apply(this, arraySlice.call(arguments, 3));
- target.update();
- return result;
- }
- };
-
- module.exports = {
- linkToGraph: function (list, graph) {
- linkList(list, graph, 'graph');
- },
-
- linkToTree: function (list, tree) {
- linkList(list, tree, 'tree');
- }
- };
-
-
-/***/ },
-/* 181 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- var helper = {
-
- retrieveTargetInfo: function (payload, seriesModel) {
- if (payload
- && (
- payload.type === 'treemapZoomToNode'
- || payload.type === 'treemapRootToNode'
- )
- ) {
- var root = seriesModel.getData().tree.root;
- var targetNode = payload.targetNode;
- if (targetNode && root.contains(targetNode)) {
- return {node: targetNode};
- }
-
- var targetNodeId = payload.targetNodeId;
- if (targetNodeId != null && (targetNode = root.getNodeById(targetNodeId))) {
- return {node: targetNode};
- }
- }
- },
-
- getPathToRoot: function (node) {
- var path = [];
- while (node) {
- path.push(node);
- node = node.parentNode;
- }
- return path.reverse();
- },
-
- aboveViewRoot: function (viewRoot, node) {
- var viewPath = helper.getPathToRoot(viewRoot);
- return helper.aboveViewRootByViewPath(viewPath, node);
- },
-
- // viewPath should obtained from getPathToRoot(viewRoot)
- aboveViewRootByViewPath: function (viewPath, node) {
- var index = zrUtil.indexOf(viewPath, node);
- // The last one is viewRoot
- return index >= 0 && index !== viewPath.length - 1;
- }
-
- };
-
- module.exports = helper;
-
-
-/***/ },
-/* 182 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var DataDiffer = __webpack_require__(95);
- var helper = __webpack_require__(181);
- var Breadcrumb = __webpack_require__(183);
- var RoamController = __webpack_require__(159);
- var BoundingRect = __webpack_require__(15);
- var matrix = __webpack_require__(17);
- var animationUtil = __webpack_require__(184);
- var bind = zrUtil.bind;
- var Group = graphic.Group;
- var Rect = graphic.Rect;
- var each = zrUtil.each;
-
- var DRAG_THRESHOLD = 3;
-
- module.exports = __webpack_require__(1).extendChartView({
-
- type: 'treemap',
-
- /**
- * @override
- */
- init: function (o, api) {
-
- /**
- * @private
- * @type {module:zrender/container/Group}
- */
- this._containerGroup;
-
- /**
- * @private
- * @type {Object.<string, Array.<module:zrender/container/Group>>}
- */
- this._storage = createStorage();
-
- /**
- * @private
- * @type {module:echarts/data/Tree}
- */
- this._oldTree;
-
- /**
- * @private
- * @type {module:echarts/chart/treemap/Breadcrumb}
- */
- this._breadcrumb;
-
- /**
- * @private
- * @type {module:echarts/component/helper/RoamController}
- */
- this._controller;
-
- /**
- * 'ready', 'animating'
- * @private
- */
- this._state = 'ready';
-
- /**
- * @private
- * @type {boolean}
- */
- this._mayClick;
- },
-
- /**
- * @override
- */
- render: function (seriesModel, ecModel, api, payload) {
-
- var models = ecModel.findComponents({
- mainType: 'series', subType: 'treemap', query: payload
- });
- if (zrUtil.indexOf(models, seriesModel) < 0) {
- return;
- }
-
- this.seriesModel = seriesModel;
- this.api = api;
- this.ecModel = ecModel;
-
- var targetInfo = helper.retrieveTargetInfo(payload, seriesModel);
- var payloadType = payload && payload.type;
- var layoutInfo = seriesModel.layoutInfo;
- var isInit = !this._oldTree;
- var thisStorage = this._storage;
-
- // Mark new root when action is treemapRootToNode.
- var reRoot = (payloadType === 'treemapRootToNode' && targetInfo && thisStorage)
- ? {
- rootNodeGroup: thisStorage.nodeGroup[targetInfo.node.getRawIndex()],
- direction: payload.direction
- }
- : null;
-
- var containerGroup = this._giveContainerGroup(layoutInfo);
-
- var renderResult = this._doRender(containerGroup, seriesModel, reRoot);
-
- (
- !isInit && (
- !payloadType
- || payloadType === 'treemapZoomToNode'
- || payloadType === 'treemapRootToNode'
- )
- )
- ? this._doAnimation(containerGroup, renderResult, seriesModel, reRoot)
- : renderResult.renderFinally();
-
- this._resetController(api);
-
- this._renderBreadcrumb(seriesModel, api, targetInfo);
- },
-
- /**
- * @private
- */
- _giveContainerGroup: function (layoutInfo) {
- var containerGroup = this._containerGroup;
- if (!containerGroup) {
- // FIXME
- // 加一层containerGroup是为了clip,但是现在clip功能并没有实现。
- containerGroup = this._containerGroup = new Group();
- this._initEvents(containerGroup);
- this.group.add(containerGroup);
- }
- containerGroup.position = [layoutInfo.x, layoutInfo.y];
-
- return containerGroup;
- },
-
- /**
- * @private
- */
- _doRender: function (containerGroup, seriesModel, reRoot) {
- var thisTree = seriesModel.getData().tree;
- var oldTree = this._oldTree;
-
- // Clear last shape records.
- var lastsForAnimation = createStorage();
- var thisStorage = createStorage();
- var oldStorage = this._storage;
- var willInvisibleEls = [];
- var willVisibleEls = [];
- var willDeleteEls = [];
- var renderNode = bind(
- this._renderNode, this,
- thisStorage, oldStorage, reRoot,
- lastsForAnimation, willInvisibleEls, willVisibleEls
- );
- var viewRoot = seriesModel.getViewRoot();
- var viewPath = helper.getPathToRoot(viewRoot);
-
- // Notice: when thisTree and oldTree are the same tree (see list.cloneShadow),
- // the oldTree is actually losted, so we can not find all of the old graphic
- // elements from tree. So we use this stragegy: make element storage, move
- // from old storage to new storage, clear old storage.
-
- dualTravel(
- thisTree.root ? [thisTree.root] : [],
- (oldTree && oldTree.root) ? [oldTree.root] : [],
- containerGroup,
- thisTree === oldTree || !oldTree,
- 0
- );
-
- // Process all removing.
- var willDeleteEls = clearStorage(oldStorage);
-
- this._oldTree = thisTree;
- this._storage = thisStorage;
-
- return {
- lastsForAnimation: lastsForAnimation,
- willDeleteEls: willDeleteEls,
- renderFinally: renderFinally
- };
-
- function dualTravel(thisViewChildren, oldViewChildren, parentGroup, sameTree, viewPathIndex) {
- // When 'render' is triggered by action,
- // 'this' and 'old' may be the same tree,
- // we use rawIndex in that case.
- if (sameTree) {
- oldViewChildren = thisViewChildren;
- each(thisViewChildren, function (child, index) {
- !child.isRemoved() && processNode(index, index);
- });
- }
- // Diff hierarchically (diff only in each subtree, but not whole).
- // because, consistency of view is important.
- else {
- (new DataDiffer(oldViewChildren, thisViewChildren, getKey, getKey))
- .add(processNode)
- .update(processNode)
- .remove(zrUtil.curry(processNode, null))
- .execute();
- }
-
- function getKey(node) {
- // Identify by name or raw index.
- return node.getId();
- }
-
- function processNode(newIndex, oldIndex) {
- var thisNode = newIndex != null ? thisViewChildren[newIndex] : null;
- var oldNode = oldIndex != null ? oldViewChildren[oldIndex] : null;
-
- // Whether under viewRoot.
- if (!thisNode
- || isNaN(viewPathIndex)
- || (viewPathIndex < viewPath.length && viewPath[viewPathIndex] !== thisNode)
- ) {
- // Deleting nodes will be performed finally. This method just find
- // element from old storage, or create new element, set them to new
- // storage, and set styles.
- return;
- }
-
- var group = renderNode(thisNode, oldNode, parentGroup);
-
- group && dualTravel(
- thisNode && thisNode.viewChildren || [],
- oldNode && oldNode.viewChildren || [],
- group,
- sameTree,
- viewPathIndex + 1
- );
- }
- }
-
- function clearStorage(storage) {
- var willDeleteEls = createStorage();
- storage && each(storage, function (store, storageName) {
- var delEls = willDeleteEls[storageName];
- each(store, function (el) {
- el && (delEls.push(el), el.__tmWillDelete = storageName);
- });
- });
- return willDeleteEls;
- }
-
- function renderFinally() {
- each(willDeleteEls, function (els) {
- each(els, function (el) {
- el.parent && el.parent.remove(el);
- });
- });
- // Theoritically there is no intersection between willInvisibleEls
- // and willVisibleEls have, but we set visible after for robustness.
- each(willInvisibleEls, function (el) {
- el.invisible = true;
- // Setting invisible is for optimizing, so no need to set dirty,
- // just mark as invisible.
- el.dirty();
- });
- each(willVisibleEls, function (el) {
- el.invisible = false;
- el.__tmWillVisible = false;
- el.dirty();
- });
- }
- },
-
- /**
- * @private
- */
- _renderNode: function (
- thisStorage, oldStorage, reRoot,
- lastsForAnimation, willInvisibleEls, willVisibleEls,
- thisNode, oldNode, parentGroup
- ) {
- var thisRawIndex = thisNode && thisNode.getRawIndex();
- var oldRawIndex = oldNode && oldNode.getRawIndex();
-
- var layout = thisNode.getLayout();
- var thisWidth = layout.width;
- var thisHeight = layout.height;
- var invisible = layout.invisible;
-
- // Node group
- var group = giveGraphic('nodeGroup', Group);
- if (!group) {
- return;
- }
- parentGroup.add(group);
- group.position = [layout.x, layout.y];
- group.__tmNodeWidth = thisWidth;
- group.__tmNodeHeight = thisHeight;
-
- // Background
- var bg = giveGraphic('background', Rect, 0);
- if (bg) {
- bg.setShape({x: 0, y: 0, width: thisWidth, height: thisHeight});
- updateStyle(bg, {fill: thisNode.getVisual('borderColor', true)});
- group.add(bg);
- }
-
- var thisViewChildren = thisNode.viewChildren;
-
- // No children, render content.
- if (!thisViewChildren || !thisViewChildren.length) {
- var borderWidth = layout.borderWidth;
- var content = giveGraphic('content', Rect, 3);
- if (content) {
- var contentWidth = Math.max(thisWidth - 2 * borderWidth, 0);
- var contentHeight = Math.max(thisHeight - 2 * borderWidth, 0);
- var labelModel = thisNode.getModel('label.normal');
- var textStyleModel = thisNode.getModel('label.normal.textStyle');
- var hoverStyle = thisNode.getModel('itemStyle.emphasis').getItemStyle();
- var text = thisNode.getModel().get('name');
- var textRect = textStyleModel.getTextRect(text);
- var showLabel = labelModel.get('show');
-
- if (!showLabel || textRect.height > contentHeight) {
- text = '';
- }
- else if (textRect.width > contentWidth) {
- text = textStyleModel.get('ellipsis')
- ? textStyleModel.ellipsis(text, contentWidth) : '';
- }
-
- graphic.setHoverStyle(content, hoverStyle);
-
- // For tooltip.
- content.dataIndex = thisNode.dataIndex;
- content.seriesIndex = this.seriesModel.seriesIndex;
-
- content.culling = true;
- content.setShape({
- x: borderWidth,
- y: borderWidth,
- width: contentWidth,
- height: contentHeight
- });
-
- updateStyle(content, {
- fill: thisNode.getVisual('color', true),
- text: text,
- textPosition: labelModel.get('position'),
- textFill: textStyleModel.getTextColor(),
- textAlign: textStyleModel.get('align'),
- textVerticalAlign: textStyleModel.get('baseline'),
- textFont: textStyleModel.getFont()
- });
- group.add(content);
- }
- }
-
- return group;
-
- function giveGraphic(storageName, Ctor, z) {
- var element = oldRawIndex != null && oldStorage[storageName][oldRawIndex];
- var lasts = lastsForAnimation[storageName];
-
- if (element) {
- // Remove from oldStorage
- oldStorage[storageName][oldRawIndex] = null;
- prepareAnimationWhenHasOld(lasts, element, storageName);
- }
- // If invisible and no old element, do not create new element (for optimizing).
- else if (!invisible) {
- element = new Ctor({z: z});
- prepareAnimationWhenNoOld(lasts, element, storageName);
- }
-
- // Set to thisStorage
- return (thisStorage[storageName][thisRawIndex] = element);
- }
-
- function prepareAnimationWhenHasOld(lasts, element, storageName) {
- var lastCfg = lasts[thisRawIndex] = {};
- lastCfg.old = storageName === 'nodeGroup'
- ? element.position.slice()
- : zrUtil.extend({}, element.shape);
- }
-
- // If a element is new, we need to find the animation start point carefully,
- // otherwise it will looks strange when 'zoomToNode'.
- function prepareAnimationWhenNoOld(lasts, element, storageName) {
- // New background do not animate but delay show.
- if (storageName === 'background') {
- element.invisible = true;
- element.__tmWillVisible = true;
- willVisibleEls.push(element);
- }
- else {
- var lastCfg = lasts[thisRawIndex] = {};
- var parentNode = thisNode.parentNode;
-
- if (parentNode && (!reRoot || reRoot.direction === 'drilldown')) {
- var parentOldX = 0;
- var parentOldY = 0;
- // For convenience, get old bounding rect from background.
- var parentOldBg = lastsForAnimation.background[parentNode.getRawIndex()];
-
- if (parentOldBg && parentOldBg.old) {
- parentOldX = parentOldBg.old.width / 2; // Devided by 2 for reRoot effect.
- parentOldY = parentOldBg.old.height / 2;
- }
- // When no parent old shape found, its parent is new too,
- // so we can just use {x:0, y:0}.
- lastCfg.old = storageName === 'nodeGroup'
- ? [parentOldX, parentOldY]
- : {x: parentOldX, y: parentOldY, width: 0, height: 0};
- }
-
- // Fade in, user can be aware that these nodes are new.
- lastCfg.fadein = storageName !== 'nodeGroup';
- }
- }
-
- function updateStyle(element, style) {
- if (!invisible) {
- // If invisible, do not set visual, otherwise the element will
- // change immediately before animation. We think it is OK to
- // remain its origin color when moving out of the view window.
- element.setStyle(style);
- if (!element.__tmWillVisible) {
- element.invisible = false;
- }
- }
- else {
- // Delay invisible setting utill animation finished,
- // avoid element vanish suddenly before animation.
- !element.invisible && willInvisibleEls.push(element);
- }
- }
- },
-
- /**
- * @private
- */
- _doAnimation: function (containerGroup, renderResult, seriesModel, reRoot) {
- if (!seriesModel.get('animation')) {
- return;
- }
-
- var duration = seriesModel.get('animationDurationUpdate');
- var easing = seriesModel.get('animationEasing');
- var animationWrap = animationUtil.createWrap();
-
- // Make delete animations.
- each(renderResult.willDeleteEls, function (store, storageName) {
- each(store, function (el, rawIndex) {
- var storageName;
-
- if (el.invisible || !(storageName = el.__tmWillDelete)) {
- return;
- }
-
- var parent = el.parent; // Always has parent, and parent is nodeGroup.
- var target;
-
- if (reRoot && reRoot.direction === 'drilldown') {
- if (parent === reRoot.rootNodeGroup) {
- // Only 'content' will enter this branch, but not nodeGroup.
- target = {
- shape: {
- x: 0, y: 0,
- width: parent.__tmNodeWidth, height: parent.__tmNodeHeight
- }
- };
- el.z = 2;
- }
- else {
- target = {style: {opacity: 0}};
- el.z = 1;
- }
- }
- else {
- var targetX = 0;
- var targetY = 0;
-
- if (!parent.__tmWillDelete) {
- // Let node animate to right-bottom corner, cooperating with fadeout,
- // which is appropriate for user understanding.
- // Divided by 2 for reRoot rollup effect.
- targetX = parent.__tmNodeWidth / 2;
- targetY = parent.__tmNodeHeight / 2;
- }
- target = storageName === 'nodeGroup'
- ? {position: [targetX, targetY], style: {opacity: 0}}
- : {
- shape: {x: targetX, y: targetY, width: 0, height: 0},
- style: {opacity: 0}
- };
- }
-
- target && animationWrap.add(el, target, duration, easing);
- });
- });
-
- // Make other animations
- each(this._storage, function (store, storageName) {
- each(store, function (el, rawIndex) {
- var last = renderResult.lastsForAnimation[storageName][rawIndex];
- var target = {};
-
- if (!last) {
- return;
- }
-
- if (storageName === 'nodeGroup') {
- if (last.old) {
- target.position = el.position.slice();
- el.position = last.old;
- }
- }
- else {
- if (last.old) {
- target.shape = zrUtil.extend({}, el.shape);
- el.setShape(last.old);
- }
-
- if (last.fadein) {
- el.setStyle('opacity', 0);
- target.style = {opacity: 1};
- }
- // When animation is stopped for succedent animation starting,
- // el.style.opacity might not be 1
- else if (el.style.opacity !== 1) {
- target.style = {opacity: 1};
- }
- }
- animationWrap.add(el, target, duration, easing);
- });
- }, this);
-
- this._state = 'animating';
-
- animationWrap
- .done(bind(function () {
- this._state = 'ready';
- renderResult.renderFinally();
- }, this))
- .start();
- },
-
- /**
- * @private
- */
- _resetController: function (api) {
- var controller = this._controller;
-
- // Init controller.
- if (!controller) {
- controller = this._controller = new RoamController(api.getZr());
- controller.enable(this.seriesModel.get('roam'));
- controller.on('pan', bind(this._onPan, this));
- controller.on('zoom', bind(this._onZoom, this));
- }
-
- controller.rect = new BoundingRect(0, 0, api.getWidth(), api.getHeight());
- },
-
- /**
- * @private
- */
- _clearController: function () {
- var controller = this._controller;
- if (controller) {
- controller.off('pan').off('zoom');
- controller = null;
- }
- },
-
- /**
- * @private
- */
- _onPan: function (dx, dy) {
- this._mayClick = false;
-
- if (this._state !== 'animating'
- && (Math.abs(dx) > DRAG_THRESHOLD || Math.abs(dy) > DRAG_THRESHOLD)
- ) {
- // These param must not be cached.
- var viewRoot = this.seriesModel.getViewRoot();
-
- if (!viewRoot) {
- return;
- }
-
- var rootLayout = viewRoot.getLayout();
-
- if (!rootLayout) {
- return;
- }
-
- this.api.dispatchAction({
- type: 'treemapMove',
- from: this.uid,
- seriesId: this.seriesModel.id,
- rootRect: {
- x: rootLayout.x + dx, y: rootLayout.y + dy,
- width: rootLayout.width, height: rootLayout.height
- }
- });
- }
- },
-
- /**
- * @private
- */
- _onZoom: function (scale, mouseX, mouseY) {
- this._mayClick = false;
-
- if (this._state !== 'animating') {
- // These param must not be cached.
- var viewRoot = this.seriesModel.getViewRoot();
-
- if (!viewRoot) {
- return;
- }
-
- var rootLayout = viewRoot.getLayout();
-
- if (!rootLayout) {
- return;
- }
-
- var rect = new BoundingRect(
- rootLayout.x, rootLayout.y, rootLayout.width, rootLayout.height
- );
- var layoutInfo = this.seriesModel.layoutInfo;
-
- // Transform mouse coord from global to containerGroup.
- mouseX -= layoutInfo.x;
- mouseY -= layoutInfo.y;
-
- // Scale root bounding rect.
- var m = matrix.create();
- matrix.translate(m, m, [-mouseX, -mouseY]);
- matrix.scale(m, m, [scale, scale]);
- matrix.translate(m, m, [mouseX, mouseY]);
-
- rect.applyTransform(m);
-
- this.api.dispatchAction({
- type: 'treemapRender',
- from: this.uid,
- seriesId: this.seriesModel.id,
- rootRect: {
- x: rect.x, y: rect.y,
- width: rect.width, height: rect.height
- }
- });
- }
- },
-
- /**
- * @private
- */
- _initEvents: function (containerGroup) {
- // FIXME
- // 不用click以及silent的原因是,animate时视图设置silent true来避免click生效,
- // 但是animate中,按下鼠标,animate结束后(silent设回为false)松开鼠标,
- // 还是会触发click,期望是不触发。
-
- // Mousedown occurs when drag start, and mouseup occurs when drag end,
- // click event should not be triggered in that case.
-
- containerGroup.on('mousedown', function (e) {
- this._state === 'ready' && (this._mayClick = true);
- }, this);
- containerGroup.on('mouseup', function (e) {
- if (this._mayClick) {
- this._mayClick = false;
- this._state === 'ready' && onClick.call(this, e);
- }
- }, this);
-
- function onClick(e) {
- var nodeClick = this.seriesModel.get('nodeClick', true);
-
- if (!nodeClick) {
- return;
- }
-
- var targetInfo = this.findTarget(e.offsetX, e.offsetY);
-
- if (!targetInfo) {
- return;
- }
-
- var node = targetInfo.node;
- if (node.getLayout().isLeafRoot) {
- this._rootToNode(targetInfo);
- }
- else {
- if (nodeClick === 'zoomToNode') {
- this._zoomToNode(targetInfo);
- }
- else if (nodeClick === 'link') {
- var itemModel = node.hostTree.data.getItemModel(node.dataIndex);
- var link = itemModel.get('link', true);
- var linkTarget = itemModel.get('target', true) || 'blank';
- link && window.open(link, linkTarget);
- }
- }
- }
- },
-
- /**
- * @private
- */
- _renderBreadcrumb: function (seriesModel, api, targetInfo) {
- if (!targetInfo) {
- // Find breadcrumb tail on center of containerGroup.
- targetInfo = this.findTarget(api.getWidth() / 2, api.getHeight() / 2);
-
- if (!targetInfo) {
- targetInfo = {node: seriesModel.getData().tree.root};
- }
- }
-
- (this._breadcrumb || (this._breadcrumb = new Breadcrumb(this.group, bind(onSelect, this))))
- .render(seriesModel, api, targetInfo.node);
-
- function onSelect(node) {
- if (this._state !== 'animating') {
- helper.aboveViewRoot(seriesModel.getViewRoot(), node)
- ? this._rootToNode({node: node})
- : this._zoomToNode({node: node});
- }
- }
- },
-
- /**
- * @override
- */
- remove: function () {
- this._clearController();
- this._containerGroup && this._containerGroup.removeAll();
- this._storage = createStorage();
- this._state = 'ready';
- this._breadcrumb && this._breadcrumb.remove();
- },
-
- dispose: function () {
- this._clearController();
- },
-
- /**
- * @private
- */
- _zoomToNode: function (targetInfo) {
- this.api.dispatchAction({
- type: 'treemapZoomToNode',
- from: this.uid,
- seriesId: this.seriesModel.id,
- targetNode: targetInfo.node
- });
- },
-
- /**
- * @private
- */
- _rootToNode: function (targetInfo) {
- this.api.dispatchAction({
- type: 'treemapRootToNode',
- from: this.uid,
- seriesId: this.seriesModel.id,
- targetNode: targetInfo.node
- });
- },
-
- /**
- * @public
- * @param {number} x Global coord x.
- * @param {number} y Global coord y.
- * @return {Object} info If not found, return undefined;
- * @return {number} info.node Target node.
- * @return {number} info.offsetX x refer to target node.
- * @return {number} info.offsetY y refer to target node.
- */
- findTarget: function (x, y) {
- var targetInfo;
- var viewRoot = this.seriesModel.getViewRoot();
-
- viewRoot.eachNode({attr: 'viewChildren', order: 'preorder'}, function (node) {
- var bgEl = this._storage.background[node.getRawIndex()];
- // If invisible, there might be no element.
- if (bgEl) {
- var point = bgEl.transformCoordToLocal(x, y);
- var shape = bgEl.shape;
-
- // For performance consideration, dont use 'getBoundingRect'.
- if (shape.x <= point[0]
- && point[0] <= shape.x + shape.width
- && shape.y <= point[1]
- && point[1] <= shape.y + shape.height
- ) {
- targetInfo = {node: node, offsetX: point[0], offsetY: point[1]};
- }
- else {
- return false; // Suppress visit subtree.
- }
- }
- }, this);
-
- return targetInfo;
- }
-
- });
-
- function createStorage() {
- return {nodeGroup: [], background: [], content: []};
- }
-
-
-
-/***/ },
-/* 183 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var layout = __webpack_require__(21);
- var zrUtil = __webpack_require__(3);
-
- var TEXT_PADDING = 8;
- var ITEM_GAP = 8;
- var ARRAY_LENGTH = 5;
-
- function Breadcrumb(containerGroup, onSelect) {
- /**
- * @private
- * @type {module:zrender/container/Group}
- */
- this.group = new graphic.Group();
-
- containerGroup.add(this.group);
-
- /**
- * @private
- * @type {Function}
- */
- this._onSelect = onSelect || zrUtil.noop;
- }
-
- Breadcrumb.prototype = {
-
- constructor: Breadcrumb,
-
- render: function (seriesModel, api, targetNode) {
- var model = seriesModel.getModel('breadcrumb');
- var thisGroup = this.group;
-
- thisGroup.removeAll();
-
- if (!model.get('show') || !targetNode) {
- return;
- }
-
- var normalStyleModel = model.getModel('itemStyle.normal');
- // var emphasisStyleModel = model.getModel('itemStyle.emphasis');
- var textStyleModel = normalStyleModel.getModel('textStyle');
-
- var layoutParam = {
- pos: {
- left: model.get('left'),
- right: model.get('right'),
- top: model.get('top'),
- bottom: model.get('bottom')
- },
- box: {
- width: api.getWidth(),
- height: api.getHeight()
- },
- emptyItemWidth: model.get('emptyItemWidth'),
- totalWidth: 0,
- renderList: []
- };
-
- this._prepare(
- model, targetNode, layoutParam, textStyleModel
- );
- this._renderContent(
- model, targetNode, layoutParam, normalStyleModel, textStyleModel
- );
-
- layout.positionGroup(thisGroup, layoutParam.pos, layoutParam.box);
- },
-
- /**
- * Prepare render list and total width
- * @private
- */
- _prepare: function (model, targetNode, layoutParam, textStyleModel) {
- for (var node = targetNode; node; node = node.parentNode) {
- var text = node.getModel().get('name');
- var textRect = textStyleModel.getTextRect(text);
- var itemWidth = Math.max(
- textRect.width + TEXT_PADDING * 2,
- layoutParam.emptyItemWidth
- );
- layoutParam.totalWidth += itemWidth + ITEM_GAP;
- layoutParam.renderList.push({node: node, text: text, width: itemWidth});
- }
- },
-
- /**
- * @private
- */
- _renderContent: function (
- model, targetNode, layoutParam, normalStyleModel, textStyleModel
- ) {
- // Start rendering.
- var lastX = 0;
- var emptyItemWidth = layoutParam.emptyItemWidth;
- var height = model.get('height');
- var availableSize = layout.getAvailableSize(layoutParam.pos, layoutParam.box);
- var totalWidth = layoutParam.totalWidth;
- var renderList = layoutParam.renderList;
-
- for (var i = renderList.length - 1; i >= 0; i--) {
- var item = renderList[i];
- var itemWidth = item.width;
- var text = item.text;
-
- // Hdie text and shorten width if necessary.
- if (totalWidth > availableSize.width) {
- totalWidth -= itemWidth - emptyItemWidth;
- itemWidth = emptyItemWidth;
- text = '';
- }
-
- this.group.add(new graphic.Polygon({
- shape: {
- points: makeItemPoints(
- lastX, 0, itemWidth, height,
- i === renderList.length - 1, i === 0
- )
- },
- style: zrUtil.defaults(
- normalStyleModel.getItemStyle(),
- {
- lineJoin: 'bevel',
- text: text,
- textFill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont()
- }
- ),
- z: 10,
- onclick: zrUtil.bind(this._onSelect, this, item.node)
- }));
-
- lastX += itemWidth + ITEM_GAP;
- }
- },
-
- /**
- * @override
- */
- remove: function () {
- this.group.removeAll();
- }
- };
-
- function makeItemPoints(x, y, itemWidth, itemHeight, head, tail) {
- var points = [
- [head ? x : x - ARRAY_LENGTH, y],
- [x + itemWidth, y],
- [x + itemWidth, y + itemHeight],
- [head ? x : x - ARRAY_LENGTH, y + itemHeight]
- ];
- !tail && points.splice(2, 0, [x + itemWidth + ARRAY_LENGTH, y + itemHeight / 2]);
- !head && points.push([x, y + itemHeight / 2]);
- return points;
- }
-
- module.exports = Breadcrumb;
-
-
-/***/ },
-/* 184 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- /**
- * @param {number} [time=500] Time in ms
- * @param {string} [easing='linear']
- * @param {number} [delay=0]
- * @param {Function} [callback]
- *
- * @example
- * // Animate position
- * animation
- * .createWrap()
- * .add(el1, {position: [10, 10]})
- * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)
- * .done(function () { // done })
- * .start('cubicOut');
- */
- function createWrap() {
-
- var storage = [];
- var elExistsMap = {};
- var doneCallback;
-
- return {
-
- /**
- * Caution: a el can only be added once, otherwise 'done'
- * might not be called. This method checks this (by el.id),
- * suppresses adding and returns false when existing el found.
- *
- * @param {modele:zrender/Element} el
- * @param {Object} target
- * @param {number} [time=500]
- * @param {number} [delay=0]
- * @param {string} [easing='linear']
- * @return {boolean} Whether adding succeeded.
- *
- * @example
- * add(el, target, time, delay, easing);
- * add(el, target, time, easing);
- * add(el, target, time);
- * add(el, target);
- */
- add: function (el, target, time, delay, easing) {
- if (zrUtil.isString(delay)) {
- easing = delay;
- delay = 0;
- }
-
- if (elExistsMap[el.id]) {
- return false;
- }
- elExistsMap[el.id] = 1;
-
- storage.push(
- {el: el, target: target, time: time, delay: delay, easing: easing}
- );
-
- return true;
- },
-
- /**
- * Only execute when animation finished. Will not execute when any
- * of 'stop' or 'stopAnimation' called.
- *
- * @param {Function} callback
- */
- done: function (callback) {
- doneCallback = callback;
- return this;
- },
-
- /**
- * Will stop exist animation firstly.
- */
- start: function () {
- var count = storage.length;
-
- for (var i = 0, len = storage.length; i < len; i++) {
- var item = storage[i];
- item.el.animateTo(item.target, item.time, item.delay, item.easing, done);
- }
-
- return this;
-
- function done() {
- count--;
- if (!count) {
- storage.length = 0;
- elExistsMap = {};
- doneCallback && doneCallback();
- }
- }
- }
- };
- }
-
- module.exports = {createWrap: createWrap};
-
-
-/***/ },
-/* 185 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Treemap action
- */
-
-
- var echarts = __webpack_require__(1);
- var helper = __webpack_require__(181);
-
- var noop = function () {};
-
- var actionTypes = [
- 'treemapZoomToNode',
- 'treemapRender',
- 'treemapMove'
- ];
-
- for (var i = 0; i < actionTypes.length; i++) {
- echarts.registerAction({type: actionTypes[i], update: 'updateView'}, noop);
- }
-
- echarts.registerAction(
- {type: 'treemapRootToNode', update: 'updateView'},
- function (payload, ecModel) {
- ecModel.eachComponent(
- {mainType: 'series', subType: 'treemap', query: payload},
- function (model, index) {
- var targetInfo = helper.retrieveTargetInfo(payload, model);
-
- if (targetInfo) {
- var originViewRoot = model.getViewRoot();
- if (originViewRoot) {
- payload.direction = helper.aboveViewRoot(originViewRoot, targetInfo.node)
- ? 'rollup' : 'drilldown';
- }
- model.resetViewRoot(targetInfo.node);
- }
- }
- );
- }
- );
-
-
-
-/***/ },
-/* 186 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var VisualMapping = __webpack_require__(187);
- var zrColor = __webpack_require__(38);
- var zrUtil = __webpack_require__(3);
- var isArray = zrUtil.isArray;
-
- var ITEM_STYLE_NORMAL = 'itemStyle.normal';
-
- module.exports = function (ecModel, payload) {
-
- var condition = {mainType: 'series', subType: 'treemap', query: payload};
- ecModel.eachComponent(condition, function (seriesModel) {
-
- var tree = seriesModel.getData().tree;
- var root = tree.root;
- var seriesItemStyleModel = seriesModel.getModel(ITEM_STYLE_NORMAL);
-
- if (root.isRemoved()) {
- return;
- }
-
- var levelItemStyles = zrUtil.map(tree.levelModels, function (levelModel) {
- return levelModel ? levelModel.get(ITEM_STYLE_NORMAL) : null;
- });
-
- travelTree(
- root,
- {},
- levelItemStyles,
- seriesItemStyleModel,
- seriesModel.getViewRoot().getAncestors(),
- seriesModel
- );
- });
- };
-
- function travelTree(
- node, designatedVisual, levelItemStyles, seriesItemStyleModel,
- viewRootAncestors, seriesModel
- ) {
- var nodeModel = node.getModel();
- var nodeLayout = node.getLayout();
-
- // Optimize
- if (nodeLayout.invisible) {
- return;
- }
-
- var nodeItemStyleModel = node.getModel(ITEM_STYLE_NORMAL);
- var levelItemStyle = levelItemStyles[node.depth];
- var visuals = buildVisuals(
- nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel
- );
-
- // calculate border color
- var borderColor = nodeItemStyleModel.get('borderColor');
- var borderColorSaturation = nodeItemStyleModel.get('borderColorSaturation');
- var thisNodeColor;
- if (borderColorSaturation != null) {
- // For performance, do not always execute 'calculateColor'.
- thisNodeColor = calculateColor(visuals, node);
- borderColor = calculateBorderColor(borderColorSaturation, thisNodeColor);
- }
- node.setVisual('borderColor', borderColor);
-
- var viewChildren = node.viewChildren;
- if (!viewChildren || !viewChildren.length) {
- thisNodeColor = calculateColor(visuals, node);
- // Apply visual to this node.
- node.setVisual('color', thisNodeColor);
- }
- else {
- var mapping = buildVisualMapping(
- node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren
- );
- // Designate visual to children.
- zrUtil.each(viewChildren, function (child, index) {
- // If higher than viewRoot, only ancestors of viewRoot is needed to visit.
- if (child.depth >= viewRootAncestors.length
- || child === viewRootAncestors[child.depth]
- ) {
- var childVisual = mapVisual(
- nodeModel, visuals, child, index, mapping, seriesModel
- );
- travelTree(
- child, childVisual, levelItemStyles, seriesItemStyleModel,
- viewRootAncestors, seriesModel
- );
- }
- });
- }
- }
-
- function buildVisuals(
- nodeItemStyleModel, designatedVisual, levelItemStyle, seriesItemStyleModel
- ) {
- var visuals = zrUtil.extend({}, designatedVisual);
-
- zrUtil.each(['color', 'colorAlpha', 'colorSaturation'], function (visualName) {
- // Priority: thisNode > thisLevel > parentNodeDesignated > seriesModel
- var val = nodeItemStyleModel.get(visualName, true); // Ignore parent
- val == null && levelItemStyle && (val = levelItemStyle[visualName]);
- val == null && (val = designatedVisual[visualName]);
- val == null && (val = seriesItemStyleModel.get(visualName));
-
- val != null && (visuals[visualName] = val);
- });
-
- return visuals;
- }
-
- function calculateColor(visuals) {
- var color = getValueVisualDefine(visuals, 'color');
-
- if (color) {
- var colorAlpha = getValueVisualDefine(visuals, 'colorAlpha');
- var colorSaturation = getValueVisualDefine(visuals, 'colorSaturation');
- if (colorSaturation) {
- color = zrColor.modifyHSL(color, null, null, colorSaturation);
- }
- if (colorAlpha) {
- color = zrColor.modifyAlpha(color, colorAlpha);
- }
-
- return color;
- }
- }
-
- function calculateBorderColor(borderColorSaturation, thisNodeColor) {
- return thisNodeColor != null
- ? zrColor.modifyHSL(thisNodeColor, null, null, borderColorSaturation)
- : null;
- }
-
- function getValueVisualDefine(visuals, name) {
- var value = visuals[name];
- if (value != null && value !== 'none') {
- return value;
- }
- }
-
- function buildVisualMapping(
- node, nodeModel, nodeLayout, nodeItemStyleModel, visuals, viewChildren
- ) {
- if (!viewChildren || !viewChildren.length) {
- return;
- }
-
- var rangeVisual = getRangeVisual(nodeModel, 'color')
- || (
- visuals.color != null
- && visuals.color !== 'none'
- && (
- getRangeVisual(nodeModel, 'colorAlpha')
- || getRangeVisual(nodeModel, 'colorSaturation')
- )
- );
-
- if (!rangeVisual) {
- return;
- }
-
- var colorMappingBy = nodeModel.get('colorMappingBy');
- var opt = {
- type: rangeVisual.name,
- dataExtent: nodeLayout.dataExtent,
- visual: rangeVisual.range
- };
- if (opt.type === 'color'
- && (colorMappingBy === 'index' || colorMappingBy === 'id')
- ) {
- opt.mappingMethod = 'category';
- opt.loop = true;
- // categories is ordinal, so do not set opt.categories.
- }
- else {
- opt.mappingMethod = 'linear';
- }
-
- var mapping = new VisualMapping(opt);
- mapping.__drColorMappingBy = colorMappingBy;
-
- return mapping;
- }
-
- // Notice: If we dont have the attribute 'colorRange', but only use
- // attribute 'color' to represent both concepts of 'colorRange' and 'color',
- // (It means 'colorRange' when 'color' is Array, means 'color' when not array),
- // this problem will be encountered:
- // If a level-1 node dont have children, and its siblings has children,
- // and colorRange is set on level-1, then the node can not be colored.
- // So we separate 'colorRange' and 'color' to different attributes.
- function getRangeVisual(nodeModel, name) {
- // 'colorRange', 'colorARange', 'colorSRange'.
- // If not exsits on this node, fetch from levels and series.
- var range = nodeModel.get(name);
- return (isArray(range) && range.length) ? {name: name, range: range} : null;
- }
-
- function mapVisual(nodeModel, visuals, child, index, mapping, seriesModel) {
- var childVisuals = zrUtil.extend({}, visuals);
-
- if (mapping) {
- var mappingType = mapping.type;
- var colorMappingBy = mappingType === 'color' && mapping.__drColorMappingBy;
- var value =
- colorMappingBy === 'index'
- ? index
- : colorMappingBy === 'id'
- ? seriesModel.mapIdToIndex(child.getId())
- : child.getValue(nodeModel.get('visualDimension'));
-
- childVisuals[mappingType] = mapping.mapValueToVisual(value);
- }
-
- return childVisuals;
- }
-
-
-
-/***/ },
-/* 187 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Visual mapping.
- */
-
-
- var zrUtil = __webpack_require__(3);
- var zrColor = __webpack_require__(38);
- var linearMap = __webpack_require__(7).linearMap;
- var each = zrUtil.each;
- var isObject = zrUtil.isObject;
-
- var CATEGORY_DEFAULT_VISUAL_INDEX = -1;
-
- function linearMapArray(val, domain, range, clamp) {
- if (zrUtil.isArray(val)) {
- return zrUtil.map(val, function (v) {
- return linearMap(v, domain, range, clamp);
- });
- }
- return linearMap(val, domain, range, clamp);
- }
- /**
- * @param {Object} option
- * @param {string} [option.type] See visualHandlers.
- * @param {string} [option.mappingMethod] 'linear' or 'piecewise' or 'category'
- * @param {Array.<number>=} [option.dataExtent] [minExtent, maxExtent],
- * required when mappingMethod is 'linear'
- * @param {Array.<Object>=} [option.pieceList] [
- * {value: someValue},
- * {interval: [min1, max1], visual: {...}},
- * {interval: [min2, max2]}
- * ],
- * required when mappingMethod is 'piecewise'.
- * Visual for only each piece can be specified.
- * @param {Array.<string|Object>=} [option.categories] ['cate1', 'cate2']
- * required when mappingMethod is 'category'.
- * If no option.categories, it represents
- * categories is [0, 1, 2, ...].
- * @param {boolean} [option.loop=false] Whether loop mapping when mappingMethod is 'category'.
- * @param {(Array|Object|*)} [option.visual] Visual data.
- * when mappingMethod is 'category',
- * visual data can be array or object
- * (like: {cate1: '#222', none: '#fff'})
- * or primary types (which represents
- * defualt category visual), otherwise visual
- * can only be array.
- *
- */
- var VisualMapping = function (option) {
- var mappingMethod = option.mappingMethod;
- var visualType = option.type;
-
- /**
- * @readOnly
- * @type {string}
- */
- this.type = visualType;
-
- /**
- * @readOnly
- * @type {string}
- */
- this.mappingMethod = mappingMethod;
-
- /**
- * @readOnly
- * @type {Object}
- */
- var thisOption = this.option = zrUtil.clone(option);
-
- /**
- * @private
- * @type {Function}
- */
- this._normalizeData = normalizers[mappingMethod];
-
- /**
- * @private
- * @type {Function}
- */
- this._getSpecifiedVisual = zrUtil.bind(
- specifiedVisualGetters[mappingMethod], this, visualType
- );
-
- zrUtil.extend(this, visualHandlers[visualType]);
-
- if (mappingMethod === 'piecewise') {
- preprocessForPiecewise(thisOption);
- }
- if (mappingMethod === 'category') {
- preprocessForCategory(thisOption);
- }
- };
-
- VisualMapping.prototype = {
-
- constructor: VisualMapping,
-
- applyVisual: null,
-
- isValueActive: null,
-
- mapValueToVisual: null,
-
- getNormalizer: function () {
- return zrUtil.bind(this._normalizeData, this);
- }
- };
-
- var visualHandlers = VisualMapping.visualHandlers = {
-
- color: {
-
- applyVisual: defaultApplyColor,
-
- /**
- * Create a mapper function
- * @return {Function}
- */
- getColorMapper: function () {
- var visual = isCategory(this)
- ? this.option.visual
- : zrUtil.map(this.option.visual, zrColor.parse);
- return zrUtil.bind(
- isCategory(this)
- ? function (value, isNormalized) {
- !isNormalized && (value = this._normalizeData(value));
- return getVisualForCategory(this, visual, value);
- }
- : function (value, isNormalized, out) {
- // If output rgb array
- // which will be much faster and useful in pixel manipulation
- var returnRGBArray = !!out;
- !isNormalized && (value = this._normalizeData(value));
- out = zrColor.fastMapToColor(value, visual, out);
- return returnRGBArray ? out : zrUtil.stringify(out, 'rgba');
- }, this);
- },
-
- // value:
- // (1) {number}
- // (2) {Array.<number>} Represents a interval, for colorStops.
- // Return type:
- // (1) {string} color value like '#444'
- // (2) {Array.<Object>} colorStops,
- // like [{color: '#fff', offset: 0}, {color: '#444', offset: 1}]
- // where offset is between 0 and 1.
- mapValueToVisual: function (value) {
- var visual = this.option.visual;
-
- if (zrUtil.isArray(value)) {
- value = [
- this._normalizeData(value[0]),
- this._normalizeData(value[1])
- ];
-
- // For creating gradient color list.
- return zrColor.mapIntervalToColor(value, visual);
- }
- else {
- var normalized = this._normalizeData(value);
- var result = this._getSpecifiedVisual(value);
-
- if (result == null) {
- result = isCategory(this)
- ? getVisualForCategory(this, visual, normalized)
- : zrColor.mapToColor(normalized, visual);
- }
-
- return result;
- }
- }
- },
-
- colorHue: makePartialColorVisualHandler(function (color, value) {
- return zrColor.modifyHSL(color, value);
- }),
-
- colorSaturation: makePartialColorVisualHandler(function (color, value) {
- return zrColor.modifyHSL(color, null, value);
- }),
-
- colorLightness: makePartialColorVisualHandler(function (color, value) {
- return zrColor.modifyHSL(color, null, null, value);
- }),
-
- colorAlpha: makePartialColorVisualHandler(function (color, value) {
- return zrColor.modifyAlpha(color, value);
- }),
-
- symbol: {
- applyVisual: function (value, getter, setter) {
- var symbolCfg = this.mapValueToVisual(value);
- if (zrUtil.isString(symbolCfg)) {
- setter('symbol', symbolCfg);
- }
- else if (isObject(symbolCfg)) {
- for (var name in symbolCfg) {
- if (symbolCfg.hasOwnProperty(name)) {
- setter(name, symbolCfg[name]);
- }
- }
- }
- },
-
- mapValueToVisual: function (value) {
- var normalized = this._normalizeData(value);
- var result = this._getSpecifiedVisual(value);
- var visual = this.option.visual;
-
- if (result == null) {
- result = isCategory(this)
- ? getVisualForCategory(this, visual, normalized)
- : (arrayGetByNormalizedValue(visual, normalized) || {});
- }
-
- return result;
- }
- },
-
- symbolSize: {
- applyVisual: function (value, getter, setter) {
- setter('symbolSize', this.mapValueToVisual(value));
- },
-
- mapValueToVisual: function (value) {
- var normalized = this._normalizeData(value);
- var result = this._getSpecifiedVisual(value);
- var visual = this.option.visual;
-
- if (result == null) {
- result = isCategory(this)
- ? getVisualForCategory(this, visual, normalized)
- : linearMapArray(normalized, [0, 1], visual, true);
- }
- return result;
- }
- }
- };
-
- function preprocessForPiecewise(thisOption) {
- var pieceList = thisOption.pieceList;
- thisOption.hasSpecialVisual = false;
-
- zrUtil.each(pieceList, function (piece, index) {
- piece.originIndex = index;
- if (piece.visual) {
- thisOption.hasSpecialVisual = true;
- }
- });
- }
-
- function preprocessForCategory(thisOption) {
- // Hash categories.
- var categories = thisOption.categories;
- var visual = thisOption.visual;
- var isVisualArray = zrUtil.isArray(visual);
-
- if (!categories) {
- if (!isVisualArray) {
- // visual should be array when no categories.
- throw new Error();
- }
- else {
- return;
- }
- }
-
- var categoryMap = thisOption.categoryMap = {};
- each(categories, function (cate, index) {
- categoryMap[cate] = index;
- });
-
- // Process visual map input.
- if (!isVisualArray) {
- var visualArr = [];
-
- if (zrUtil.isObject(visual)) {
- each(visual, function (v, cate) {
- var index = categoryMap[cate];
- visualArr[index != null ? index : CATEGORY_DEFAULT_VISUAL_INDEX] = v;
- });
- }
- else { // Is primary type, represents default visual.
- visualArr[CATEGORY_DEFAULT_VISUAL_INDEX] = visual;
- }
-
- visual = thisOption.visual = visualArr;
- }
-
- // Remove categories that has no visual,
- // then we can mapping them to CATEGORY_DEFAULT_VISUAL_INDEX.
- for (var i = categories.length - 1; i >= 0; i--) {
- if (visual[i] == null) {
- delete categoryMap[categories[i]];
- categories.pop();
- }
- }
- }
-
- function makePartialColorVisualHandler(applyValue) {
- return {
-
- applyVisual: function (value, getter, setter) {
- // color can be {string} or {Array.<Object>} (for gradient color stops)
- var color = getter('color');
- var isArrayValue = zrUtil.isArray(value);
- value = isArrayValue
- ? [this.mapValueToVisual(value[0]), this.mapValueToVisual(value[1])]
- : this.mapValueToVisual(value);
-
- if (zrUtil.isArray(color)) {
- for (var i = 0, len = color.length; i < len; i++) {
- color[i].color = applyValue(
- color[i].color, isArrayValue ? value[i] : value
- );
- }
- }
- else {
- // Must not be array value
- setter('color', applyValue(color, value));
- }
- },
-
- mapValueToVisual: function (value) {
- var normalized = this._normalizeData(value);
- var result = this._getSpecifiedVisual(value);
- var visual = this.option.visual;
-
- if (result == null) {
- result = isCategory(this)
- ? getVisualForCategory(this, visual, normalized)
- : linearMapArray(normalized, [0, 1], visual, true);
- }
- return result;
- }
- };
- }
-
- function arrayGetByNormalizedValue(arr, normalized) {
- return arr[
- Math.round(linearMapArray(normalized, [0, 1], [0, arr.length - 1], true))
- ];
- }
-
- function defaultApplyColor(value, getter, setter) {
- setter('color', this.mapValueToVisual(value));
- }
-
- function getVisualForCategory(me, visual, normalized) {
- return visual[
- (me.option.loop && normalized !== CATEGORY_DEFAULT_VISUAL_INDEX)
- ? normalized % visual.length
- : normalized
- ];
- }
-
- function isCategory(me) {
- return me.option.mappingMethod === 'category';
- }
-
-
- var normalizers = {
-
- linear: function (value) {
- return linearMapArray(value, this.option.dataExtent, [0, 1], true);
- },
-
- piecewise: function (value) {
- var pieceList = this.option.pieceList;
- var pieceIndex = VisualMapping.findPieceIndex(value, pieceList);
- if (pieceIndex != null) {
- return linearMapArray(pieceIndex, [0, pieceList.length - 1], [0, 1], true);
- }
- },
-
- category: function (value) {
- var index = this.option.categories
- ? this.option.categoryMap[value]
- : value; // ordinal
- return index == null ? CATEGORY_DEFAULT_VISUAL_INDEX : index;
- }
- };
-
-
- // FIXME
- // refactor
- var specifiedVisualGetters = {
-
- // Linear do not support this feature.
- linear: zrUtil.noop,
-
- piecewise: function (visualType, value) {
- var thisOption = this.option;
- var pieceList = thisOption.pieceList;
- if (thisOption.hasSpecialVisual) {
- var pieceIndex = VisualMapping.findPieceIndex(value, pieceList);
- var piece = pieceList[pieceIndex];
- if (piece && piece.visual) {
- return piece.visual[visualType];
- }
- }
- },
-
- // Category do not need to support this feature.
- // Visual can be set in visualMap.inRange or
- // visualMap.outOfRange directly.
- category: zrUtil.noop
- };
-
- /**
- * @public
- */
- VisualMapping.addVisualHandler = function (name, handler) {
- visualHandlers[name] = handler;
- };
-
- /**
- * @public
- */
- VisualMapping.isValidType = function (visualType) {
- return visualHandlers.hasOwnProperty(visualType);
- };
-
- /**
- * Convinent method.
- * Visual can be Object or Array or primary type.
- *
- * @public
- */
- VisualMapping.eachVisual = function (visual, callback, context) {
- if (zrUtil.isObject(visual)) {
- zrUtil.each(visual, callback, context);
- }
- else {
- callback.call(context, visual);
- }
- };
-
- VisualMapping.mapVisual = function (visual, callback, context) {
- var isPrimary;
- var newVisual = zrUtil.isArray(visual)
- ? []
- : zrUtil.isObject(visual)
- ? {}
- : (isPrimary = true, null);
-
- VisualMapping.eachVisual(visual, function (v, key) {
- var newVal = callback.call(context, v, key);
- isPrimary ? (newVisual = newVal) : (newVisual[key] = newVal);
- });
- return newVisual;
- };
-
- /**
- * 'color', 'colorSaturation', 'colorAlpha', ... are in the same visualCluster named 'color'.
- * Other visuals are in the cluster named as the same as theirselves.
- *
- * @public
- * @param {string} visualType
- * @param {string} visualCluster
- * @return {boolean}
- */
- VisualMapping.isInVisualCluster = function (visualType, visualCluster) {
- return visualCluster === 'color'
- ? !!(visualType && visualType.indexOf(visualCluster) === 0)
- : visualType === visualCluster;
- };
-
- /**
- * @public
- * @param {Object} obj
- * @return {Oject} new object containers visual values.
- * If no visuals, return null.
- */
- VisualMapping.retrieveVisuals = function (obj) {
- var ret = {};
- var hasVisual;
-
- obj && each(visualHandlers, function (h, visualType) {
- if (obj.hasOwnProperty(visualType)) {
- ret[visualType] = obj[visualType];
- hasVisual = true;
- }
- });
-
- return hasVisual ? ret : null;
- };
-
- /**
- * Give order to visual types, considering colorSaturation, colorAlpha depends on color.
- *
- * @public
- * @param {(Object|Array)} visualTypes If Object, like: {color: ..., colorSaturation: ...}
- * IF Array, like: ['color', 'symbol', 'colorSaturation']
- * @return {Array.<string>} Sorted visual types.
- */
- VisualMapping.prepareVisualTypes = function (visualTypes) {
- if (isObject(visualTypes)) {
- var types = [];
- each(visualTypes, function (item, type) {
- types.push(type);
- });
- visualTypes = types;
- }
- else if (zrUtil.isArray(visualTypes)) {
- visualTypes = visualTypes.slice();
- }
- else {
- return [];
- }
-
- visualTypes.sort(function (type1, type2) {
- // color should be front of colorSaturation, colorAlpha, ...
- // symbol and symbolSize do not matter.
- return (type2 === 'color' && type1 !== 'color' && type1.indexOf('color') === 0)
- ? 1 : -1;
- });
-
- return visualTypes;
- };
-
- /**
- * @public {Array.<Object>} [{value: ..., interval: [min, max]}, ...]
- * @return {number} index
- */
- VisualMapping.findPieceIndex = function (value, pieceList) {
- // value has high priority.
- for (var i = 0, len = pieceList.length; i < len; i++) {
- var piece = pieceList[i];
- if (piece.value != null && piece.value === value) {
- return i;
- }
- }
-
- for (var i = 0, len = pieceList.length; i < len; i++) {
- var piece = pieceList[i];
- var interval = piece.interval;
- if (interval) {
- if (interval[0] === -Infinity) {
- if (value < interval[1]) {
- return i;
- }
- }
- else if (interval[1] === Infinity) {
- if (interval[0] < value) {
- return i;
- }
- }
- else if (
- piece.interval[0] <= value
- && value <= piece.interval[1]
- ) {
- return i;
- }
- }
- }
- };
-
- module.exports = VisualMapping;
-
-
-
-
-/***/ },
-/* 188 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var mathMax = Math.max;
- var mathMin = Math.min;
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var layout = __webpack_require__(21);
- var helper = __webpack_require__(181);
- var parsePercent = numberUtil.parsePercent;
- var retrieveValue = zrUtil.retrieve;
- var BoundingRect = __webpack_require__(15);
- var helper = __webpack_require__(181);
-
- /**
- * @public
- */
- function update(ecModel, api, payload) {
- // Layout result in each node:
- // {x, y, width, height, area, borderWidth}
- var condition = {mainType: 'series', subType: 'treemap', query: payload};
- ecModel.eachComponent(condition, function (seriesModel) {
-
- var ecWidth = api.getWidth();
- var ecHeight = api.getHeight();
- var seriesOption = seriesModel.option;
-
- var size = seriesOption.size || []; // Compatible with ec2.
- var containerWidth = parsePercent(
- retrieveValue(seriesOption.width, size[0]),
- ecWidth
- );
- var containerHeight = parsePercent(
- retrieveValue(seriesOption.height, size[1]),
- ecHeight
- );
-
- var layoutInfo = layout.getLayoutRect(
- seriesModel.getBoxLayoutParams(),
- {
- width: api.getWidth(),
- height: api.getHeight()
- }
- );
-
- // Fetch payload info.
- var payloadType = payload && payload.type;
- var targetInfo = helper.retrieveTargetInfo(payload, seriesModel);
- var rootRect = (payloadType === 'treemapRender' || payloadType === 'treemapMove')
- ? payload.rootRect : null;
- var viewRoot = seriesModel.getViewRoot();
-
- if (payloadType !== 'treemapMove') {
- var rootSize = payloadType === 'treemapZoomToNode'
- ? estimateRootSize(
- seriesModel, targetInfo, viewRoot, containerWidth, containerHeight
- )
- : rootRect
- ? [rootRect.width, rootRect.height]
- : [containerWidth, containerHeight];
-
- var sort = seriesOption.sort;
- if (sort && sort !== 'asc' && sort !== 'desc') {
- sort = 'desc';
- }
- var options = {
- squareRatio: seriesOption.squareRatio,
- sort: sort,
- leafDepth: seriesOption.leafDepth
- };
-
- viewRoot.setLayout({
- x: 0, y: 0,
- width: rootSize[0], height: rootSize[1],
- area: rootSize[0] * rootSize[1]
- });
-
- squarify(viewRoot, options, false, 0);
- }
-
- // Set root position
- viewRoot.setLayout(
- calculateRootPosition(layoutInfo, rootRect, targetInfo),
- true
- );
-
- seriesModel.setLayoutInfo(layoutInfo);
-
- // Optimize
- // FIXME
- // 现在没有clip功能,暂时取ec高宽。
- prunning(
- seriesModel.getData().tree.root,
- // Transform to base element coordinate system.
- new BoundingRect(-layoutInfo.x, -layoutInfo.y, ecWidth, ecHeight),
- helper.getPathToRoot(viewRoot)
- );
-
- });
- }
-
- /**
- * Layout treemap with squarify algorithm.
- * @see https://graphics.ethz.ch/teaching/scivis_common/Literature/squarifiedTreeMaps.pdf
- * @see https://github.com/mbostock/d3/blob/master/src/layout/treemap.js
- *
- * @protected
- * @param {module:echarts/data/Tree~TreeNode} node
- * @param {Object} options
- * @param {string} options.sort 'asc' or 'desc'
- * @param {number} options.squareRatio
- * @param {boolean} hideChildren
- * @param {number} depth
- */
- function squarify(node, options, hideChildren, depth) {
- var width;
- var height;
-
- if (node.isRemoved()) {
- return;
- }
-
- var thisLayout = node.getLayout();
- width = thisLayout.width;
- height = thisLayout.height;
-
- // Considering border and gap
- var itemStyleModel = node.getModel('itemStyle.normal');
- var borderWidth = itemStyleModel.get('borderWidth');
- var halfGapWidth = itemStyleModel.get('gapWidth') / 2;
- var layoutOffset = borderWidth - halfGapWidth;
- var nodeModel = node.getModel();
-
- node.setLayout({borderWidth: borderWidth}, true);
-
- width = mathMax(width - 2 * layoutOffset, 0);
- height = mathMax(height - 2 * layoutOffset, 0);
-
- var totalArea = width * height;
- var viewChildren = initChildren(
- node, nodeModel, totalArea, options, hideChildren, depth
- );
-
- if (!viewChildren.length) {
- return;
- }
-
- var rect = {x: layoutOffset, y: layoutOffset, width: width, height: height};
- var rowFixedLength = mathMin(width, height);
- var best = Infinity; // the best row score so far
- var row = [];
- row.area = 0;
-
- for (var i = 0, len = viewChildren.length; i < len;) {
- var child = viewChildren[i];
-
- row.push(child);
- row.area += child.getLayout().area;
- var score = worst(row, rowFixedLength, options.squareRatio);
-
- // continue with this orientation
- if (score <= best) {
- i++;
- best = score;
- }
- // abort, and try a different orientation
- else {
- row.area -= row.pop().getLayout().area;
- position(row, rowFixedLength, rect, halfGapWidth, false);
- rowFixedLength = mathMin(rect.width, rect.height);
- row.length = row.area = 0;
- best = Infinity;
- }
- }
-
- if (row.length) {
- position(row, rowFixedLength, rect, halfGapWidth, true);
- }
-
- if (!hideChildren) {
- var childrenVisibleMin = nodeModel.get('childrenVisibleMin');
- if (childrenVisibleMin != null && totalArea < childrenVisibleMin) {
- hideChildren = true;
- }
- }
-
- for (var i = 0, len = viewChildren.length; i < len; i++) {
- squarify(viewChildren[i], options, hideChildren, depth + 1);
- }
- }
-
- /**
- * Set area to each child, and calculate data extent for visual coding.
- */
- function initChildren(node, nodeModel, totalArea, options, hideChildren, depth) {
- var viewChildren = node.children || [];
- var orderBy = options.sort;
- orderBy !== 'asc' && orderBy !== 'desc' && (orderBy = null);
-
- var overLeafDepth = options.leafDepth != null && options.leafDepth <= depth;
-
- // leafDepth has higher priority.
- if (hideChildren && !overLeafDepth) {
- return (node.viewChildren = []);
- }
-
- // Sort children, order by desc.
- viewChildren = zrUtil.filter(viewChildren, function (child) {
- return !child.isRemoved();
- });
-
- sort(viewChildren, orderBy);
-
- var info = statistic(nodeModel, viewChildren, orderBy);
-
- if (info.sum === 0) {
- return (node.viewChildren = []);
- }
-
- info.sum = filterByThreshold(nodeModel, totalArea, info.sum, orderBy, viewChildren);
-
- if (info.sum === 0) {
- return (node.viewChildren = []);
- }
-
- // Set area to each child.
- for (var i = 0, len = viewChildren.length; i < len; i++) {
- var area = viewChildren[i].getValue() / info.sum * totalArea;
- // Do not use setLayout({...}, true), because it is needed to clear last layout.
- viewChildren[i].setLayout({area: area});
- }
-
- if (overLeafDepth) {
- viewChildren.length && node.setLayout({isLeafRoot: true}, true);
- viewChildren.length = 0;
- }
-
- node.viewChildren = viewChildren;
- node.setLayout({dataExtent: info.dataExtent}, true);
-
- return viewChildren;
- }
-
- /**
- * Consider 'visibleMin'. Modify viewChildren and get new sum.
- */
- function filterByThreshold(nodeModel, totalArea, sum, orderBy, orderedChildren) {
-
- // visibleMin is not supported yet when no option.sort.
- if (!orderBy) {
- return sum;
- }
-
- var visibleMin = nodeModel.get('visibleMin');
- var len = orderedChildren.length;
- var deletePoint = len;
-
- // Always travel from little value to big value.
- for (var i = len - 1; i >= 0; i--) {
- var value = orderedChildren[
- orderBy === 'asc' ? len - i - 1 : i
- ].getValue();
-
- if (value / sum * totalArea < visibleMin) {
- deletePoint = i;
- sum -= value;
- }
- }
-
- orderBy === 'asc'
- ? orderedChildren.splice(0, len - deletePoint)
- : orderedChildren.splice(deletePoint, len - deletePoint);
-
- return sum;
- }
-
- /**
- * Sort
- */
- function sort(viewChildren, orderBy) {
- if (orderBy) {
- viewChildren.sort(function (a, b) {
- return orderBy === 'asc'
- ? a.getValue() - b.getValue() : b.getValue() - a.getValue();
- });
- }
- return viewChildren;
- }
-
- /**
- * Statistic
- */
- function statistic(nodeModel, children, orderBy) {
- // Calculate sum.
- var sum = 0;
- for (var i = 0, len = children.length; i < len; i++) {
- sum += children[i].getValue();
- }
-
- // Statistic data extent for latter visual coding.
- // Notice: data extent should be calculate based on raw children
- // but not filtered view children, otherwise visual mapping will not
- // be stable when zoom (where children is filtered by visibleMin).
-
- var dimension = nodeModel.get('visualDimension');
- var dataExtent;
-
- // The same as area dimension.
- if (!children || !children.length) {
- dataExtent = [NaN, NaN];
- }
- else if (dimension === 'value' && orderBy) {
- dataExtent = [
- children[children.length - 1].getValue(),
- children[0].getValue()
- ];
- orderBy === 'asc' && dataExtent.reverse();
- }
- // Other dimension.
- else {
- var dataExtent = [Infinity, -Infinity];
- zrUtil.each(children, function (child) {
- var value = child.getValue(dimension);
- value < dataExtent[0] && (dataExtent[0] = value);
- value > dataExtent[1] && (dataExtent[1] = value);
- });
- }
-
- return {sum: sum, dataExtent: dataExtent};
- }
-
- /**
- * Computes the score for the specified row,
- * as the worst aspect ratio.
- */
- function worst(row, rowFixedLength, ratio) {
- var areaMax = 0;
- var areaMin = Infinity;
-
- for (var i = 0, area, len = row.length; i < len; i++) {
- area = row[i].getLayout().area;
- if (area) {
- area < areaMin && (areaMin = area);
- area > areaMax && (areaMax = area);
- }
- }
-
- var squareArea = row.area * row.area;
- var f = rowFixedLength * rowFixedLength * ratio;
-
- return squareArea
- ? mathMax(
- (f * areaMax) / squareArea,
- squareArea / (f * areaMin)
- )
- : Infinity;
- }
-
- /**
- * Positions the specified row of nodes. Modifies `rect`.
- */
- function position(row, rowFixedLength, rect, halfGapWidth, flush) {
- // When rowFixedLength === rect.width,
- // it is horizontal subdivision,
- // rowFixedLength is the width of the subdivision,
- // rowOtherLength is the height of the subdivision,
- // and nodes will be positioned from left to right.
-
- // wh[idx0WhenH] means: when horizontal,
- // wh[idx0WhenH] => wh[0] => 'width'.
- // xy[idx1WhenH] => xy[1] => 'y'.
- var idx0WhenH = rowFixedLength === rect.width ? 0 : 1;
- var idx1WhenH = 1 - idx0WhenH;
- var xy = ['x', 'y'];
- var wh = ['width', 'height'];
-
- var last = rect[xy[idx0WhenH]];
- var rowOtherLength = rowFixedLength
- ? row.area / rowFixedLength : 0;
-
- if (flush || rowOtherLength > rect[wh[idx1WhenH]]) {
- rowOtherLength = rect[wh[idx1WhenH]]; // over+underflow
- }
- for (var i = 0, rowLen = row.length; i < rowLen; i++) {
- var node = row[i];
- var nodeLayout = {};
- var step = rowOtherLength
- ? node.getLayout().area / rowOtherLength : 0;
-
- var wh1 = nodeLayout[wh[idx1WhenH]] = mathMax(rowOtherLength - 2 * halfGapWidth, 0);
-
- // We use Math.max/min to avoid negative width/height when considering gap width.
- var remain = rect[xy[idx0WhenH]] + rect[wh[idx0WhenH]] - last;
- var modWH = (i === rowLen - 1 || remain < step) ? remain : step;
- var wh0 = nodeLayout[wh[idx0WhenH]] = mathMax(modWH - 2 * halfGapWidth, 0);
-
- nodeLayout[xy[idx1WhenH]] = rect[xy[idx1WhenH]] + mathMin(halfGapWidth, wh1 / 2);
- nodeLayout[xy[idx0WhenH]] = last + mathMin(halfGapWidth, wh0 / 2);
-
- last += modWH;
- node.setLayout(nodeLayout, true);
- }
-
- rect[xy[idx1WhenH]] += rowOtherLength;
- rect[wh[idx1WhenH]] -= rowOtherLength;
- }
-
- // Return [containerWidth, containerHeight] as defualt.
- function estimateRootSize(seriesModel, targetInfo, viewRoot, containerWidth, containerHeight) {
- // If targetInfo.node exists, we zoom to the node,
- // so estimate whold width and heigth by target node.
- var currNode = (targetInfo || {}).node;
- var defaultSize = [containerWidth, containerHeight];
-
- if (!currNode || currNode === viewRoot) {
- return defaultSize;
- }
-
- var parent;
- var viewArea = containerWidth * containerHeight;
- var area = viewArea * seriesModel.option.zoomToNodeRatio;
-
- while (parent = currNode.parentNode) { // jshint ignore:line
- var sum = 0;
- var siblings = parent.children;
-
- for (var i = 0, len = siblings.length; i < len; i++) {
- sum += siblings[i].getValue();
- }
- var currNodeValue = currNode.getValue();
- if (currNodeValue === 0) {
- return defaultSize;
- }
- area *= sum / currNodeValue;
-
- var borderWidth = parent.getModel('itemStyle.normal').get('borderWidth');
-
- if (isFinite(borderWidth)) {
- // Considering border, suppose aspect ratio is 1.
- area += 4 * borderWidth * borderWidth + 4 * borderWidth * Math.pow(area, 0.5);
- }
-
- area > numberUtil.MAX_SAFE_INTEGER && (area = numberUtil.MAX_SAFE_INTEGER);
-
- currNode = parent;
- }
-
- area < viewArea && (area = viewArea);
- var scale = Math.pow(area / viewArea, 0.5);
-
- return [containerWidth * scale, containerHeight * scale];
- }
-
- // Root postion base on coord of containerGroup
- function calculateRootPosition(layoutInfo, rootRect, targetInfo) {
- if (rootRect) {
- return {x: rootRect.x, y: rootRect.y};
- }
-
- var defaultPosition = {x: 0, y: 0};
- if (!targetInfo) {
- return defaultPosition;
- }
-
- // If targetInfo is fetched by 'retrieveTargetInfo',
- // old tree and new tree are the same tree,
- // so the node still exists and we can visit it.
-
- var targetNode = targetInfo.node;
- var layout = targetNode.getLayout();
-
- if (!layout) {
- return defaultPosition;
- }
-
- // Transform coord from local to container.
- var targetCenter = [layout.width / 2, layout.height / 2];
- var node = targetNode;
- while (node) {
- var nodeLayout = node.getLayout();
- targetCenter[0] += nodeLayout.x;
- targetCenter[1] += nodeLayout.y;
- node = node.parentNode;
- }
-
- return {
- x: layoutInfo.width / 2 - targetCenter[0],
- y: layoutInfo.height / 2 - targetCenter[1]
- };
- }
-
- // Mark invisible nodes for prunning when visual coding and rendering.
- // Prunning depends on layout and root position, so we have to do it after them.
- function prunning(node, clipRect, viewPath) {
- var nodeLayout = node.getLayout();
-
- node.setLayout({
- invisible: nodeLayout
- ? !clipRect.intersect(nodeLayout)
- : !helper.aboveViewRootByViewPath(viewPath, node)
- }, true);
-
- var viewChildren = node.viewChildren || [];
- for (var i = 0, len = viewChildren.length; i < len; i++) {
- // Transform to child coordinate.
- var childClipRect = new BoundingRect(
- clipRect.x - nodeLayout.x,
- clipRect.y - nodeLayout.y,
- clipRect.width,
- clipRect.height
- );
- prunning(viewChildren[i], childClipRect, viewPath);
- }
- }
-
- module.exports = update;
-
-
-/***/ },
-/* 189 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
- var zrUtil = __webpack_require__(3);
-
- __webpack_require__(190);
- __webpack_require__(193);
-
- __webpack_require__(197);
-
- echarts.registerProcessor('filter', __webpack_require__(198));
-
- echarts.registerVisualCoding('chart', zrUtil.curry(
- __webpack_require__(103), 'graph', 'circle', null
- ));
- echarts.registerVisualCoding('chart', __webpack_require__(199));
-
- echarts.registerLayout(__webpack_require__(200));
- echarts.registerLayout(__webpack_require__(202));
- echarts.registerLayout(__webpack_require__(204));
-
- // Graph view coordinate system
- echarts.registerCoordinateSystem('graphView', {
- create: __webpack_require__(206)
- });
-
-
-/***/ },
-/* 190 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var List = __webpack_require__(94);
- var zrUtil = __webpack_require__(3);
-
- var createGraphFromNodeEdge = __webpack_require__(191);
-
- var GraphSeries = __webpack_require__(1).extendSeriesModel({
-
- type: 'series.graph',
-
- init: function (option) {
- GraphSeries.superApply(this, 'init', arguments);
-
- // Provide data for legend select
- this.legendDataProvider = function () {
- return this._categoriesData;
- };
-
- this._updateCategoriesData();
- },
-
- mergeOption: function (option) {
- GraphSeries.superApply(this, 'mergeOption', arguments);
-
- this._updateCategoriesData();
- },
-
- getInitialData: function (option, ecModel) {
- var edges = option.edges || option.links;
- var nodes = option.data || option.nodes;
- if (nodes && edges) {
- var graph = createGraphFromNodeEdge(nodes, edges, this, true);
- var list = graph.data;
- var self = this;
- // Overwrite list.getItemModel to
- list.wrapMethod('getItemModel', function (model) {
- var categoriesModels = self._categoriesModels;
- var categoryIdx = model.getShallow('category');
- var categoryModel = categoriesModels[categoryIdx];
- if (categoryModel) {
- categoryModel.parentModel = model.parentModel;
- model.parentModel = categoryModel;
- }
- return model;
- });
- return list;
- }
- },
-
- restoreData: function () {
- GraphSeries.superApply(this, 'restoreData', arguments);
- this.getGraph().restoreData();
- },
-
- /**
- * @return {module:echarts/data/Graph}
- */
- getGraph: function () {
- return this.getData().graph;
- },
-
- /**
- * @return {module:echarts/data/List}
- */
- getEdgeData: function () {
- return this.getGraph().edgeData;
- },
-
- /**
- * @return {module:echarts/data/List}
- */
- getCategoriesData: function () {
- return this._categoriesData;
- },
-
- _updateCategoriesData: function () {
- var categories = zrUtil.map(this.option.categories || [], function (category) {
- // Data must has value
- return category.value != null ? category : zrUtil.extend({
- value: 0
- }, category);
- });
- var categoriesData = new List(['value'], this);
- categoriesData.initData(categories);
-
- this._categoriesData = categoriesData;
-
- this._categoriesModels = categoriesData.mapArray(function (idx) {
- return categoriesData.getItemModel(idx, true);
- });
- },
-
- /**
- * @param {number} zoom
- */
- setRoamZoom: function (zoom) {
- var roamDetail = this.option.roamDetail;
- roamDetail && (roamDetail.zoom = zoom);
- },
-
- /**
- * @param {number} x
- * @param {number} y
- */
- setRoamPan: function (x, y) {
- var roamDetail = this.option.roamDetail;
- if (roamDetail) {
- roamDetail.x = x;
- roamDetail.y = y;
- }
- },
-
- defaultOption: {
- zlevel: 0,
- z: 2,
-
- color: ['#61a0a8', '#d14a61', '#fd9c35', '#675bba', '#fec42c',
- '#dd4444', '#fd9c35', '#cd4870'],
-
- coordinateSystem: 'view',
-
- legendHoverLink: true,
-
- hoverAnimation: true,
-
- layout: null,
-
- // Configuration of force
- force: {
- initLayout: null,
- repulsion: 50,
- gravity: 0.1,
- edgeLength: 30,
-
- layoutAnimation: true
- },
-
- left: 'center',
- top: 'center',
- // right: null,
- // bottom: null,
- // width: '80%',
- // height: '80%',
-
- symbol: 'circle',
- symbolSize: 10,
-
- draggable: false,
-
- roam: false,
- roamDetail: {
- x: 0,
- y: 0,
- zoom: 1
- },
-
- // Symbol size scale ratio in roam
- nodeScaleRatio: 0.6,
-
- // Line width scale ratio in roam
- // edgeScaleRatio: 0.1,
-
- // categories: [],
-
- // data: []
- // Or
- // nodes: []
- //
- // links: []
- // Or
- // edges: []
-
- label: {
- normal: {
- show: false
- },
- emphasis: {
- show: true
- }
- },
-
- itemStyle: {
- normal: {},
- emphasis: {}
- },
-
- lineStyle: {
- normal: {
- color: '#aaa',
- width: 1,
- curveness: 0,
- opacity: 0.5
- },
- emphasis: {}
- }
- }
- });
-
- module.exports = GraphSeries;
-
-
-/***/ },
-/* 191 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var List = __webpack_require__(94);
- var Graph = __webpack_require__(192);
- var linkList = __webpack_require__(180);
- var completeDimensions = __webpack_require__(96);
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (nodes, edges, hostModel, directed) {
- var graph = new Graph(directed);
- for (var i = 0; i < nodes.length; i++) {
- graph.addNode(zrUtil.retrieve(
- // Id, name, dataIndex
- nodes[i].id, nodes[i].name, i
- ), i);
- }
-
- var linkNameList = [];
- var validEdges = [];
- for (var i = 0; i < edges.length; i++) {
- var link = edges[i];
- // addEdge may fail when source or target not exists
- if (graph.addEdge(link.source, link.target, i)) {
- validEdges.push(link);
- linkNameList.push(zrUtil.retrieve(link.id, link.source + ' - ' + link.target));
- }
- }
-
- // FIXME
- var dimensionNames = completeDimensions(['value'], nodes);
-
- var nodeData = new List(dimensionNames, hostModel);
- var edgeData = new List(['value'], hostModel);
-
- nodeData.initData(nodes);
- edgeData.initData(validEdges, linkNameList);
-
- graph.setEdgeData(edgeData);
-
- linkList.linkToGraph(nodeData, graph);
- // Update dataIndex of nodes and edges because invalid edge may be removed
- graph.update();
-
- return graph;
- };
-
-
-/***/ },
-/* 192 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * Graph data structure
- *
- * @module echarts/data/Graph
- * @author Yi Shen(https://www.github.com/pissang)
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- /**
- * @alias module:echarts/data/Graph
- * @constructor
- * @param {boolean} directed
- */
- var Graph = function(directed) {
- /**
- * 是否是有向图
- * @type {boolean}
- * @private
- */
- this._directed = directed || false;
-
- /**
- * @type {Array.<module:echarts/data/Graph.Node>}
- * @readOnly
- */
- this.nodes = [];
-
- /**
- * @type {Array.<module:echarts/data/Graph.Edge>}
- * @readOnly
- */
- this.edges = [];
-
- /**
- * @type {Object.<string, module:echarts/data/Graph.Node>}
- * @private
- */
- this._nodesMap = {};
- /**
- * @type {Object.<string, module:echarts/data/Graph.Edge>}
- * @private
- */
- this._edgesMap = {};
-
- /**
- * @type {module:echarts/data/List}
- * @readOnly
- */
- this.data;
-
- /**
- * @type {module:echarts/data/List}
- * @readOnly
- */
- this.edgeData;
- };
-
- var graphProto = Graph.prototype;
- /**
- * @type {string}
- */
- graphProto.type = 'graph';
-
- /**
- * If is directed graph
- * @return {boolean}
- */
- graphProto.isDirected = function () {
- return this._directed;
- };
-
- /**
- * Add a new node
- * @param {string} id
- * @param {number} [dataIndex]
- */
- graphProto.addNode = function (id, dataIndex) {
- var nodesMap = this._nodesMap;
-
- if (nodesMap[id]) {
- return;
- }
-
- var node = new Node(id, dataIndex);
- node.hostGraph = this;
-
- this.nodes.push(node);
-
- nodesMap[id] = node;
- return node;
- };
-
- /**
- * Get node by data index
- * @param {number} dataIndex
- * @return {module:echarts/data/Graph~Node}
- */
- graphProto.getNodeByIndex = function (dataIndex) {
- var rawIdx = this.data.getRawIndex(dataIndex);
- return this.nodes[rawIdx];
- };
- /**
- * Get node by id
- * @param {string} id
- * @return {module:echarts/data/Graph.Node}
- */
- graphProto.getNodeById = function (id) {
- return this._nodesMap[id];
- };
-
- /**
- * Add a new edge
- * @param {string|module:echarts/data/Graph.Node} n1
- * @param {string|module:echarts/data/Graph.Node} n2
- * @param {number} [dataIndex=-1]
- * @return {module:echarts/data/Graph.Edge}
- */
- graphProto.addEdge = function (n1, n2, dataIndex) {
- var nodesMap = this._nodesMap;
- var edgesMap = this._edgesMap;
-
- if (!(n1 instanceof Node)) {
- n1 = nodesMap[n1];
- }
- if (!(n2 instanceof Node)) {
- n2 = nodesMap[n2];
- }
- if (!n1 || !n2) {
- return;
- }
-
- var key = n1.id + '-' + n2.id;
- // PENDING
- if (edgesMap[key]) {
- return;
- }
-
- var edge = new Edge(n1, n2, dataIndex);
- edge.hostGraph = this;
-
- if (this._directed) {
- n1.outEdges.push(edge);
- n2.inEdges.push(edge);
- }
- n1.edges.push(edge);
- if (n1 !== n2) {
- n2.edges.push(edge);
- }
-
- this.edges.push(edge);
- edgesMap[key] = edge;
-
- return edge;
- };
-
- /**
- * Get edge by data index
- * @param {number} dataIndex
- * @return {module:echarts/data/Graph~Node}
- */
- graphProto.getEdgeByIndex = function (dataIndex) {
- var rawIdx = this.edgeData.getRawIndex(dataIndex);
- return this.edges[rawIdx];
- };
- /**
- * Get edge by two linked nodes
- * @param {module:echarts/data/Graph.Node|string} n1
- * @param {module:echarts/data/Graph.Node|string} n2
- * @return {module:echarts/data/Graph.Edge}
- */
- graphProto.getEdge = function (n1, n2) {
- if (n1 instanceof Node) {
- n1 = n1.id;
- }
- if (n2 instanceof Node) {
- n2 = n2.id;
- }
-
- var edgesMap = this._edgesMap;
-
- if (this._directed) {
- return edgesMap[n1 + '-' + n2];
- } else {
- return edgesMap[n1 + '-' + n2]
- || edgesMap[n2 + '-' + n1];
- }
- };
-
- /**
- * Iterate all nodes
- * @param {Function} cb
- * @param {*} [context]
- */
- graphProto.eachNode = function (cb, context) {
- var nodes = this.nodes;
- var len = nodes.length;
- for (var i = 0; i < len; i++) {
- if (nodes[i].dataIndex >= 0) {
- cb.call(context, nodes[i], i);
- }
- }
- };
-
- /**
- * Iterate all edges
- * @param {Function} cb
- * @param {*} [context]
- */
- graphProto.eachEdge = function (cb, context) {
- var edges = this.edges;
- var len = edges.length;
- for (var i = 0; i < len; i++) {
- if (edges[i].dataIndex >= 0
- && edges[i].node1.dataIndex >= 0
- && edges[i].node2.dataIndex >= 0
- ) {
- cb.call(context, edges[i], i);
- }
- }
- };
-
- /**
- * Breadth first traverse
- * @param {Function} cb
- * @param {module:echarts/data/Graph.Node} startNode
- * @param {string} [direction='none'] 'none'|'in'|'out'
- * @param {*} [context]
- */
- graphProto.breadthFirstTraverse = function (
- cb, startNode, direction, context
- ) {
- if (!(startNode instanceof Node)) {
- startNode = this._nodesMap[startNode];
- }
- if (!startNode) {
- return;
- }
-
- var edgeType = direction === 'out'
- ? 'outEdges' : (direction === 'in' ? 'inEdges' : 'edges');
-
- for (var i = 0; i < this.nodes.length; i++) {
- this.nodes[i].__visited = false;
- }
-
- if (cb.call(context, startNode, null)) {
- return;
- }
-
- var queue = [startNode];
- while (queue.length) {
- var currentNode = queue.shift();
- var edges = currentNode[edgeType];
-
- for (var i = 0; i < edges.length; i++) {
- var e = edges[i];
- var otherNode = e.node1 === currentNode
- ? e.node2 : e.node1;
- if (!otherNode.__visited) {
- if (cb.call(otherNode, otherNode, currentNode)) {
- // Stop traversing
- return;
- }
- queue.push(otherNode);
- otherNode.__visited = true;
- }
- }
- }
- };
-
- // TODO
- // graphProto.depthFirstTraverse = function (
- // cb, startNode, direction, context
- // ) {
-
- // };
-
- // Filter update
- graphProto.update = function () {
- var data = this.data;
- var edgeData = this.edgeData;
- var nodes = this.nodes;
- var edges = this.edges;
-
- for (var i = 0, len = nodes.length; i < len; i++) {
- nodes[i].dataIndex = -1;
- }
- for (var i = 0, len = data.count(); i < len; i++) {
- nodes[data.getRawIndex(i)].dataIndex = i;
- }
-
- edgeData.filterSelf(function (idx) {
- var edge = edges[edgeData.getRawIndex(idx)];
- return edge.node1.dataIndex >= 0 && edge.node2.dataIndex >= 0;
- });
-
- // Update edge
- for (var i = 0, len = edges.length; i < len; i++) {
- edges[i].dataIndex = -1;
- }
- for (var i = 0, len = edgeData.count(); i < len; i++) {
- edges[edgeData.getRawIndex(i)].dataIndex = i;
- }
- };
-
- /**
- * Set edge data
- * @param {module:echarts/data/List} edgeData
- */
- graphProto.setEdgeData = function (edgeData) {
- this.edgeData = edgeData;
- this._edgeDataSaved = edgeData.cloneShallow();
- };
-
- graphProto.restoreData = function () {
- this.edgeData = this._edgeDataSaved.cloneShallow();
- };
-
- /**
- * @return {module:echarts/data/Graph}
- */
- graphProto.clone = function () {
- var graph = new Graph(this._directed);
- var nodes = this.nodes;
- var edges = this.edges;
- for (var i = 0; i < nodes.length; i++) {
- graph.addNode(nodes[i].id, nodes[i].dataIndex);
- }
- for (var i = 0; i < edges.length; i++) {
- var e = edges[i];
- graph.addEdge(e.node1.id, e.node2.id, e.dataIndex);
- }
- return graph;
- };
-
-
- /**
- * @alias module:echarts/data/Graph.Node
- */
- function Node(id, dataIndex) {
- /**
- * @type {string}
- */
- this.id = id == null ? '' : id;
-
- /**
- * @type {Array.<module:echarts/data/Graph.Edge>}
- */
- this.inEdges = [];
- /**
- * @type {Array.<module:echarts/data/Graph.Edge>}
- */
- this.outEdges = [];
- /**
- * @type {Array.<module:echarts/data/Graph.Edge>}
- */
- this.edges = [];
- /**
- * @type {module:echarts/data/Graph}
- */
- this.hostGraph;
-
- /**
- * @type {number}
- */
- this.dataIndex = dataIndex == null ? -1 : dataIndex;
- }
-
- Node.prototype = {
-
- constructor: Node,
-
- /**
- * @return {number}
- */
- degree: function () {
- return this.edges.length;
- },
-
- /**
- * @return {number}
- */
- inDegree: function () {
- return this.inEdges.length;
- },
-
- /**
- * @return {number}
- */
- outDegree: function () {
- return this.outEdges.length;
- },
-
- /**
- * @param {string} [path]
- * @return {module:echarts/model/Model}
- */
- getModel: function (path) {
- if (this.dataIndex < 0) {
- return;
- }
- var graph = this.hostGraph;
- var itemModel = graph.data.getItemModel(this.dataIndex);
-
- return itemModel.getModel(path);
- }
- };
-
- /**
- * 图边
- * @alias module:echarts/data/Graph.Edge
- * @param {module:echarts/data/Graph.Node} n1
- * @param {module:echarts/data/Graph.Node} n2
- * @param {number} [dataIndex=-1]
- */
- function Edge(n1, n2, dataIndex) {
-
- /**
- * 节点1,如果是有向图则为源节点
- * @type {module:echarts/data/Graph.Node}
- */
- this.node1 = n1;
-
- /**
- * 节点2,如果是有向图则为目标节点
- * @type {module:echarts/data/Graph.Node}
- */
- this.node2 = n2;
-
- this.dataIndex = dataIndex == null ? -1 : dataIndex;
- }
-
- /**
- * @param {string} [path]
- * @return {module:echarts/model/Model}
- */
- Edge.prototype.getModel = function (path) {
- if (this.dataIndex < 0) {
- return;
- }
- var graph = this.hostGraph;
- var itemModel = graph.edgeData.getItemModel(this.dataIndex);
-
- return itemModel.getModel(path);
- };
-
- var createGraphDataProxyMixin = function (hostName, dataName) {
- return {
- /**
- * @param {string=} [dimension='value'] Default 'value'. can be 'a', 'b', 'c', 'd', 'e'.
- * @return {number}
- */
- getValue: function (dimension) {
- var data = this[hostName][dataName];
- return data.get(data.getDimension(dimension || 'value'), this.dataIndex);
- },
-
- /**
- * @param {Object|string} key
- * @param {*} [value]
- */
- setVisual: function (key, value) {
- this.dataIndex >= 0
- && this[hostName][dataName].setItemVisual(this.dataIndex, key, value);
- },
-
- /**
- * @param {string} key
- * @return {boolean}
- */
- getVisual: function (key, ignoreParent) {
- return this[hostName][dataName].getItemVisual(this.dataIndex, key, ignoreParent);
- },
-
- /**
- * @param {Object} layout
- * @return {boolean} [merge=false]
- */
- setLayout: function (layout, merge) {
- this.dataIndex >= 0
- && this[hostName][dataName].setItemLayout(this.dataIndex, layout, merge);
- },
-
- /**
- * @return {Object}
- */
- getLayout: function () {
- return this[hostName][dataName].getItemLayout(this.dataIndex);
- },
-
- /**
- * @return {module:zrender/Element}
- */
- getGraphicEl: function () {
- return this[hostName][dataName].getItemGraphicEl(this.dataIndex);
- },
-
- /**
- * @return {number}
- */
- getRawIndex: function () {
- return this[hostName][dataName].getRawIndex(this.dataIndex);
- }
- };
- };
-
- zrUtil.mixin(Node, createGraphDataProxyMixin('hostGraph', 'data'));
- zrUtil.mixin(Edge, createGraphDataProxyMixin('hostGraph', 'edgeData'));
-
- Graph.Node = Node;
- Graph.Edge = Edge;
-
- module.exports = Graph;
-
-
-/***/ },
-/* 193 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
-
- var SymbolDraw = __webpack_require__(98);
- var LineDraw = __webpack_require__(194);
- var RoamController = __webpack_require__(159);
-
- var modelUtil = __webpack_require__(5);
- var graphic = __webpack_require__(42);
-
- __webpack_require__(1).extendChartView({
-
- type: 'graph',
-
- init: function (ecModel, api) {
- var symbolDraw = new SymbolDraw();
- var lineDraw = new LineDraw();
- var group = this.group;
-
- var controller = new RoamController(api.getZr(), group);
-
- group.add(symbolDraw.group);
- group.add(lineDraw.group);
-
- this._symbolDraw = symbolDraw;
- this._lineDraw = lineDraw;
- this._controller = controller;
-
- this._firstRender = true;
- },
-
- render: function (seriesModel, ecModel, api) {
- var coordSys = seriesModel.coordinateSystem;
- // Only support view and geo coordinate system
- if (coordSys.type !== 'geo' && coordSys.type !== 'view') {
- return;
- }
-
- var data = seriesModel.getData();
- this._model = seriesModel;
-
- var symbolDraw = this._symbolDraw;
- var lineDraw = this._lineDraw;
-
- symbolDraw.updateData(data);
-
- var edgeData = data.graph.edgeData;
- var rawOption = seriesModel.option;
- var formatModel = modelUtil.createDataFormatModel(
- seriesModel, edgeData, rawOption.edges || rawOption.links
- );
- formatModel.formatTooltip = function (dataIndex) {
- var params = this.getDataParams(dataIndex);
- var edge = data.graph.getEdgeByIndex(dataIndex);
- var sourceName = data.getName(edge.node1.dataIndex);
- var targetName = data.getName(edge.node2.dataIndex);
- var html = sourceName + ' > ' + targetName;
- if (params.value) {
- html += ' : ' + params.value;
- }
- return html;
- };
-
- lineDraw.updateData(edgeData, null, null);
- edgeData.eachItemGraphicEl(function (el) {
- el.traverse(function (child) {
- child.dataModel = formatModel;
- });
- });
-
- // Save the original lineWidth
- // data.graph.eachEdge(function (edge) {
- // edge.__lineWidth = edge.getModel('lineStyle.normal').get('width');
- // });
-
- var group = this.group;
- var groupNewProp = {
- position: coordSys.position,
- scale: coordSys.scale
- };
- if (this._firstRender) {
- group.attr(groupNewProp);
- }
- else {
- graphic.updateProps(group, groupNewProp, seriesModel);
- }
-
- this._nodeScaleRatio = seriesModel.get('nodeScaleRatio');
- // this._edgeScaleRatio = seriesModel.get('edgeScaleRatio');
-
- this._updateNodeAndLinkScale();
-
- this._updateController(seriesModel, coordSys, api);
-
- clearTimeout(this._layoutTimeout);
- var forceLayout = seriesModel.forceLayout;
- var layoutAnimation = seriesModel.get('force.layoutAnimation');
- if (forceLayout) {
- this._startForceLayoutIteration(forceLayout, layoutAnimation);
- }
- // Update draggable
- data.eachItemGraphicEl(function (el, idx) {
- var draggable = data.getItemModel(idx).get('draggable');
- if (draggable && forceLayout) {
- el.on('drag', function () {
- forceLayout.warmUp();
- !this._layouting
- && this._startForceLayoutIteration(forceLayout, layoutAnimation);
- forceLayout.setFixed(idx);
- // Write position back to layout
- data.setItemLayout(idx, el.position);
- }, this).on('dragend', function () {
- forceLayout.setUnfixed(idx);
- }, this);
- }
- else {
- el.off('drag');
- }
- el.setDraggable(draggable);
- }, this);
-
- this._firstRender = false;
- },
-
- _startForceLayoutIteration: function (forceLayout, layoutAnimation) {
- var self = this;
- (function step() {
- forceLayout.step(function (stopped) {
- self.updateLayout();
- (self._layouting = !stopped) && (
- layoutAnimation
- ? (self._layoutTimeout = setTimeout(step, 16))
- : step()
- );
- });
- })();
- },
-
- _updateController: function (seriesModel, coordSys, api) {
- var controller = this._controller;
- controller.rect = coordSys.getViewRect();
-
- controller.enable(seriesModel.get('roam'));
-
- controller
- .off('pan')
- .off('zoom')
- .on('pan', function (dx, dy) {
- api.dispatchAction({
- seriesId: seriesModel.id,
- type: 'graphRoam',
- dx: dx,
- dy: dy
- });
- })
- .on('zoom', function (zoom, mouseX, mouseY) {
- api.dispatchAction({
- seriesId: seriesModel.id,
- type: 'graphRoam',
- zoom: zoom,
- originX: mouseX,
- originY: mouseY
- });
- })
- .on('zoom', this._updateNodeAndLinkScale, this);
- },
-
- _updateNodeAndLinkScale: function () {
- var seriesModel = this._model;
- var data = seriesModel.getData();
-
- var group = this.group;
- var nodeScaleRatio = this._nodeScaleRatio;
- // var edgeScaleRatio = this._edgeScaleRatio;
-
- // Assume scale aspect is 1
- var groupScale = group.scale[0];
-
- var nodeScale = (groupScale - 1) * nodeScaleRatio + 1;
- // var edgeScale = (groupScale - 1) * edgeScaleRatio + 1;
- var invScale = [
- nodeScale / groupScale,
- nodeScale / groupScale
- ];
-
- data.eachItemGraphicEl(function (el, idx) {
- el.attr('scale', invScale);
- });
- // data.graph.eachEdge(function (edge) {
- // var lineGroup = edge.getGraphicEl();
- // // FIXME
- // lineGroup.childOfName('line').setStyle(
- // 'lineWidth',
- // edge.__lineWidth * edgeScale / groupScale
- // );
- // });
- },
-
- updateLayout: function (seriesModel, ecModel) {
- this._symbolDraw.updateLayout();
- this._lineDraw.updateLayout();
- },
-
- remove: function (ecModel, api) {
- this._symbolDraw && this._symbolDraw.remove();
- this._lineDraw && this._lineDraw.remove();
- }
- });
-
-
-/***/ },
-/* 194 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/LineDraw
- */
-
-
- var graphic = __webpack_require__(42);
- var LineGroup = __webpack_require__(195);
-
- /**
- * @alias module:echarts/component/marker/LineDraw
- * @constructor
- */
- function LineDraw(ctor) {
- this._ctor = ctor || LineGroup;
- this.group = new graphic.Group();
- }
-
- var lineDrawProto = LineDraw.prototype;
-
- /**
- * @param {module:echarts/data/List} lineData
- * @param {module:echarts/data/List} [fromData]
- * @param {module:echarts/data/List} [toData]
- */
- lineDrawProto.updateData = function (lineData, fromData, toData) {
-
- var oldLineData = this._lineData;
- var group = this.group;
- var LineCtor = this._ctor;
-
- lineData.diff(oldLineData)
- .add(function (idx) {
- var lineGroup = new LineCtor(lineData, fromData, toData, idx);
-
- lineData.setItemGraphicEl(idx, lineGroup);
-
- group.add(lineGroup);
- })
- .update(function (newIdx, oldIdx) {
- var lineGroup = oldLineData.getItemGraphicEl(oldIdx);
- lineGroup.updateData(lineData, fromData, toData, newIdx);
-
- lineData.setItemGraphicEl(newIdx, lineGroup);
-
- group.add(lineGroup);
- })
- .remove(function (idx) {
- group.remove(oldLineData.getItemGraphicEl(idx));
- })
- .execute();
-
- this._lineData = lineData;
- this._fromData = fromData;
- this._toData = toData;
- };
-
- lineDrawProto.updateLayout = function () {
- var lineData = this._lineData;
- lineData.eachItemGraphicEl(function (el, idx) {
- el.updateLayout(lineData, this._fromData, this._toData, idx);
- }, this);
- };
-
- lineDrawProto.remove = function () {
- this.group.removeAll();
- };
-
- module.exports = LineDraw;
-
-
-/***/ },
-/* 195 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/Line
- */
-
-
- var symbolUtil = __webpack_require__(100);
- var vector = __webpack_require__(16);
- var LinePath = __webpack_require__(196);
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
-
- /**
- * @inner
- */
- function createSymbol(name, data, idx) {
- var color = data.getItemVisual(idx, 'color');
- var symbolType = data.getItemVisual(idx, 'symbol');
- var symbolSize = data.getItemVisual(idx, 'symbolSize');
-
- if (symbolType === 'none') {
- return;
- }
-
- if (!zrUtil.isArray(symbolSize)) {
- symbolSize = [symbolSize, symbolSize];
- }
- var symbolPath = symbolUtil.createSymbol(
- symbolType, -symbolSize[0] / 2, -symbolSize[1] / 2,
- symbolSize[0], symbolSize[1], color
- );
- symbolPath.name = name;
-
- return symbolPath;
- }
-
- function createLine(points) {
- var line = new LinePath({
- name: 'line',
- style: {
- strokeNoScale: true
- }
- });
- setLinePoints(line.shape, points);
- return line;
- }
-
- function setLinePoints(targetShape, points) {
- var p1 = points[0];
- var p2 = points[1];
- var cp1 = points[2];
- targetShape.x1 = p1[0];
- targetShape.y1 = p1[1];
- targetShape.x2 = p2[0];
- targetShape.y2 = p2[1];
- targetShape.percent = 1;
-
- if (cp1) {
- targetShape.cpx1 = cp1[0];
- targetShape.cpy1 = cp1[1];
- }
- }
-
- function isSymbolArrow(symbol) {
- return symbol.type === 'symbol' && symbol.shape.symbolType === 'arrow';
- }
-
- function updateSymbolBeforeLineUpdate () {
- var lineGroup = this;
- var line = lineGroup.childOfName('line');
- // If line not changed
- if (!this.__dirty && !line.__dirty) {
- return;
- }
- var symbolFrom = lineGroup.childOfName('fromSymbol');
- var symbolTo = lineGroup.childOfName('toSymbol');
- var label = lineGroup.childOfName('label');
- var fromPos = line.pointAt(0);
- var toPos = line.pointAt(line.shape.percent);
-
- var d = vector.sub([], toPos, fromPos);
- vector.normalize(d, d);
-
- if (symbolFrom) {
- symbolFrom.attr('position', fromPos);
- // Rotate the arrow
- // FIXME Hard coded ?
- if (isSymbolArrow(symbolFrom)) {
- symbolFrom.attr('rotation', tangentRotation(toPos, fromPos));
- }
- }
- if (symbolTo) {
- symbolTo.attr('position', toPos);
- if (isSymbolArrow(symbolTo)) {
- symbolTo.attr('rotation', tangentRotation(fromPos, toPos));
- }
- }
-
- label.attr('position', toPos);
-
- var textPosition;
- var textAlign;
- var textVerticalAlign;
- // End
- if (label.__position === 'end') {
- textPosition = [d[0] * 5 + toPos[0], d[1] * 5 + toPos[1]];
- textAlign = d[0] > 0.8 ? 'left' : (d[0] < -0.8 ? 'right' : 'center');
- textVerticalAlign = d[1] > 0.8 ? 'top' : (d[1] < -0.8 ? 'bottom' : 'middle');
- }
- // Start
- else {
- textPosition = [-d[0] * 5 + fromPos[0], -d[1] * 5 + fromPos[1]];
- textAlign = d[0] > 0.8 ? 'right' : (d[0] < -0.8 ? 'left' : 'center');
- textVerticalAlign = d[1] > 0.8 ? 'bottom' : (d[1] < -0.8 ? 'top' : 'middle');
- }
- label.attr({
- style: {
- // Use the user specified text align and baseline first
- textVerticalAlign: label.__verticalAlign || textVerticalAlign,
- textAlign: label.__textAlign || textAlign
- },
- position: textPosition
- });
- }
-
- function tangentRotation(p1, p2) {
- return -Math.PI / 2 - Math.atan2(
- p2[1] - p1[1], p2[0] - p1[0]
- );
- }
-
- /**
- * @constructor
- * @extends {module:zrender/graphic/Group}
- * @alias {module:echarts/chart/helper/Line}
- */
- function Line(lineData, fromData, toData, idx) {
- graphic.Group.call(this);
-
- this._createLine(lineData, fromData, toData, idx);
- }
-
- var lineProto = Line.prototype;
-
- // Update symbol position and rotation
- lineProto.beforeUpdate = updateSymbolBeforeLineUpdate;
-
- lineProto._createLine = function (lineData, fromData, toData, idx) {
- var seriesModel = lineData.hostModel;
- var linePoints = lineData.getItemLayout(idx);
-
- var line = createLine(linePoints);
- line.shape.percent = 0;
- graphic.initProps(line, {
- shape: {
- percent: 1
- }
- }, seriesModel);
-
- this.add(line);
-
- var label = new graphic.Text({
- name: 'label'
- });
- this.add(label);
-
- if (fromData) {
- var symbolFrom = createSymbol('fromSymbol', fromData, idx);
- // symbols must added after line to make sure
- // it will be updated after line#update.
- // Or symbol position and rotation update in line#beforeUpdate will be one frame slow
- this.add(symbolFrom);
-
- this._fromSymbolType = fromData.getItemVisual(idx, 'symbol');
- }
- if (toData) {
- var symbolTo = createSymbol('toSymbol', toData, idx);
- this.add(symbolTo);
-
- this._toSymbolType = toData.getItemVisual(idx, 'symbol');
- }
-
- this._updateCommonStl(lineData, fromData, toData, idx);
- };
-
- lineProto.updateData = function (lineData, fromData, toData, idx) {
- var seriesModel = lineData.hostModel;
-
- var line = this.childOfName('line');
- var linePoints = lineData.getItemLayout(idx);
- var target = {
- shape: {}
- };
- setLinePoints(target.shape, linePoints);
- graphic.updateProps(line, target, seriesModel);
-
- // Symbol changed
- if (fromData) {
- var fromSymbolType = fromData.getItemVisual(idx, 'symbol');
- if (this._fromSymbolType !== fromSymbolType) {
- var symbolFrom = createSymbol('fromSymbol', fromData, idx);
- this.remove(this.childOfName('fromSymbol'));
- this.add(symbolFrom);
- }
- this._fromSymbolType = fromSymbolType;
- }
- if (toData) {
- var toSymbolType = toData.getItemVisual(idx, 'symbol');
- // Symbol changed
- if (toSymbolType !== this._toSymbolType) {
- var symbolTo = createSymbol('toSymbol', toData, idx);
- this.remove(this.childOfName('toSymbol'));
- this.add(symbolTo);
- }
- this._toSymbolType = toSymbolType;
- }
-
- this._updateCommonStl(lineData, fromData, toData, idx);
- };
-
- lineProto._updateCommonStl = function (lineData, fromData, toData, idx) {
- var seriesModel = lineData.hostModel;
-
- var line = this.childOfName('line');
- var itemModel = lineData.getItemModel(idx);
-
- var labelModel = itemModel.getModel('label.normal');
- var textStyleModel = labelModel.getModel('textStyle');
- var labelHoverModel = itemModel.getModel('label.emphasis');
- var textStyleHoverModel = labelHoverModel.getModel('textStyle');
-
- var defaultText = numberUtil.round(seriesModel.getRawValue(idx));
- if (isNaN(defaultText)) {
- // Use name
- defaultText = lineData.getName(idx);
- }
- line.setStyle(zrUtil.extend(
- {
- stroke: lineData.getItemVisual(idx, 'color')
- },
- itemModel.getModel('lineStyle.normal').getLineStyle()
- ));
-
- var label = this.childOfName('label');
- label.setStyle({
- text: labelModel.get('show')
- ? zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'normal'),
- defaultText
- )
- : '',
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor() || lineData.getItemVisual(idx, 'color')
- });
- label.hoverStyle = {
- text: labelHoverModel.get('show')
- ? zrUtil.retrieve(
- seriesModel.getFormattedLabel(idx, 'emphasis'),
- defaultText
- )
- : '',
- textFont: textStyleHoverModel.getFont(),
- fill: textStyleHoverModel.getTextColor()
- };
- label.__textAlign = textStyleModel.get('align');
- label.__verticalAlign = textStyleModel.get('baseline');
- label.__position = labelModel.get('position');
-
- graphic.setHoverStyle(
- this, itemModel.getModel('lineStyle.emphasis').getLineStyle()
- );
- };
-
- lineProto.updateLayout = function (lineData, fromData, toData, idx) {
- var points = lineData.getItemLayout(idx);
- var linePath = this.childOfName('line');
- setLinePoints(linePath.shape, points);
- linePath.dirty(true);
- // var fromEl = fromData && fromData.getItemGraphicEl(idx);
- // var toEl = toData && toData.getItemGraphicEl(idx);
- // fromEl && fromEl.attr('position', points[0]);
- // toEl && toEl.attr('position', points[1]);
- };
-
- zrUtil.inherits(Line, graphic.Group);
-
- module.exports = Line;
-
-
-/***/ },
-/* 196 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Line path for bezier and straight line draw
- */
-
- var graphic = __webpack_require__(42);
-
- var straightLineProto = graphic.Line.prototype;
- var bezierCurveProto = graphic.BezierCurve.prototype;
-
- module.exports = graphic.extendShape({
-
- type: 'ec-line',
-
- style: {
- stroke: '#000',
- fill: null
- },
-
- shape: {
- x1: 0,
- y1: 0,
- x2: 0,
- y2: 0,
- percent: 1,
- cpx1: null,
- cpy1: null
- },
-
- buildPath: function (ctx, shape) {
- (shape.cpx1 == null || shape.cpy1 == null
- ? straightLineProto : bezierCurveProto).buildPath(ctx, shape);
- },
-
- pointAt: function (t) {
- var shape = this.shape;
- return shape.cpx1 == null || shape.cpy1 == null
- ? straightLineProto.pointAt.call(this, t)
- : bezierCurveProto.pointAt.call(this, t);
- }
- });
-
-
-/***/ },
-/* 197 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
- var roamHelper = __webpack_require__(162);
-
- var actionInfo = {
- type: 'graphRoam',
- event: 'graphRoam',
- update: 'none'
- };
-
- /**
- * @payload
- * @property {string} name Series name
- * @property {number} [dx]
- * @property {number} [dy]
- * @property {number} [zoom]
- * @property {number} [originX]
- * @property {number} [originY]
- */
-
- echarts.registerAction(actionInfo, function (payload, ecModel) {
- ecModel.eachComponent({mainType: 'series', query: payload}, function (seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
-
- var roamDetailModel = seriesModel.getModel('roamDetail');
- var res = roamHelper.calcPanAndZoom(roamDetailModel, payload);
-
- seriesModel.setRoamPan
- && seriesModel.setRoamPan(res.x, res.y);
-
- seriesModel.setRoamZoom
- && seriesModel.setRoamZoom(res.zoom);
-
- coordSys && coordSys.setPan(res.x, res.y);
- coordSys && coordSys.setZoom(res.zoom);
- });
- });
-
-
-/***/ },
-/* 198 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (ecModel) {
- var legendModels = ecModel.findComponents({
- mainType: 'legend'
- });
- if (!legendModels || !legendModels.length) {
- return;
- }
- ecModel.eachSeriesByType('graph', function (graphSeries) {
- var categoriesData = graphSeries.getCategoriesData();
- var graph = graphSeries.getGraph();
- var data = graph.data;
-
- var categoryNames = categoriesData.mapArray(categoriesData.getName);
-
- data.filterSelf(function (idx) {
- var model = data.getItemModel(idx);
- var category = model.getShallow('category');
- if (category != null) {
- if (typeof category === 'number') {
- category = categoryNames[category];
- }
- // If in any legend component the status is not selected.
- for (var i = 0; i < legendModels.length; i++) {
- if (!legendModels[i].isSelected(category)) {
- return false;
- }
- }
- }
- return true;
- });
- }, this);
- };
-
-
-/***/ },
-/* 199 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (ecModel) {
- ecModel.eachSeriesByType('graph', function (seriesModel) {
- var colorList = seriesModel.get('color');
- var categoriesData = seriesModel.getCategoriesData();
- var data = seriesModel.getData();
-
- var categoryNameIdxMap = {};
-
- categoriesData.each(function (idx) {
- categoryNameIdxMap[categoriesData.getName(idx)] = idx;
-
- var itemModel = categoriesData.getItemModel(idx);
- var rawIdx = categoriesData.getRawIndex(idx);
- var color = itemModel.get('itemStyle.normal.color')
- || colorList[rawIdx % colorList.length];
- categoriesData.setItemVisual(idx, 'color', color);
- });
-
- // Assign category color to visual
- if (categoriesData.count()) {
- data.each(function (idx) {
- var model = data.getItemModel(idx);
- var category = model.getShallow('category');
- if (category != null) {
- if (typeof category === 'string') {
- category = categoryNameIdxMap[category];
- }
- data.setItemVisual(
- idx, 'color',
- categoriesData.getItemVisual(category, 'color')
- );
- }
- });
- }
- });
- };
-
-
-/***/ },
-/* 200 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var simpleLayoutHelper = __webpack_require__(201);
- module.exports = function (ecModel, api) {
- ecModel.eachSeriesByType('graph', function (seriesModel) {
- var layout = seriesModel.get('layout');
- if (!layout || layout === 'none') {
- simpleLayoutHelper(seriesModel);
- }
- });
- };
-
-
-/***/ },
-/* 201 */
-/***/ function(module, exports) {
-
-
- module.exports = function (seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
- if (coordSys && coordSys.type !== 'view') {
- return;
- }
- var graph = seriesModel.getGraph();
-
- graph.eachNode(function (node) {
- var model = node.getModel();
- node.setLayout([+model.get('x'), +model.get('y')]);
- });
-
- graph.eachEdge(function (edge) {
- var curveness = edge.getModel().get('lineStyle.normal.curveness') || 0;
- var p1 = edge.node1.getLayout();
- var p2 = edge.node2.getLayout();
- var cp1;
- if (curveness > 0) {
- cp1 = [
- (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness,
- (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness
- ];
- }
- edge.setLayout([p1, p2, cp1]);
- });
- };
-
-
-/***/ },
-/* 202 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- var circularLayoutHelper = __webpack_require__(203);
- module.exports = function (ecModel, api) {
- ecModel.eachSeriesByType('graph', function (seriesModel) {
- if (seriesModel.get('layout') === 'circular') {
- circularLayoutHelper(seriesModel);
- }
- });
- };
-
-
-/***/ },
-/* 203 */
-/***/ function(module, exports) {
-
-
- module.exports = function (seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
- if (coordSys && coordSys.type !== 'view') {
- return;
- }
-
- var rect = coordSys.getBoundingRect();
-
- var nodeData = seriesModel.getData();
- var graph = nodeData.graph;
-
- var angle = 0;
- var sum = nodeData.getSum('value');
- var unitAngle = Math.PI * 2 / (sum || nodeData.count());
-
- var cx = rect.width / 2 + rect.x;
- var cy = rect.height / 2 + rect.y;
-
- var r = Math.min(rect.width, rect.height) / 2;
-
- graph.eachNode(function (node) {
- var value = node.getValue('value');
-
- angle += unitAngle * (sum ? value : 2) / 2;
-
- node.setLayout([
- r * Math.cos(angle) + cx,
- r * Math.sin(angle) + cy
- ]);
-
- angle += unitAngle * (sum ? value : 2) / 2;
- });
-
- graph.eachEdge(function (edge) {
- var curveness = edge.getModel().get('lineStyle.normal.curveness') || 0;
- var p1 = edge.node1.getLayout();
- var p2 = edge.node2.getLayout();
- var cp1;
- if (curveness > 0) {
- cp1 = [cx, cy];
- }
- edge.setLayout([p1, p2, cp1]);
- });
- };
-
-
-/***/ },
-/* 204 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var forceHelper = __webpack_require__(205);
- var numberUtil = __webpack_require__(7);
- var simpleLayoutHelper = __webpack_require__(201);
- var circularLayoutHelper = __webpack_require__(203);
- var vec2 = __webpack_require__(16);
-
- module.exports = function (ecModel, api) {
- ecModel.eachSeriesByType('graph', function (graphSeries) {
- if (graphSeries.get('layout') === 'force') {
- var preservedPoints = graphSeries.preservedPoints || {};
- var graph = graphSeries.getGraph();
- var nodeData = graph.data;
- var edgeData = graph.edgeData;
- var forceModel = graphSeries.getModel('force');
- var initLayout = forceModel.get('initLayout');
- if (graphSeries.preservedPoints) {
- nodeData.each(function (idx) {
- var id = nodeData.getId(idx);
- nodeData.setItemLayout(idx, preservedPoints[id] || [NaN, NaN]);
- });
- }
- else if (!initLayout || initLayout === 'none') {
- simpleLayoutHelper(graphSeries);
- }
- else if (initLayout === 'circular') {
- circularLayoutHelper(graphSeries);
- }
-
- var nodeDataExtent = nodeData.getDataExtent('value');
- // var edgeDataExtent = edgeData.getDataExtent('value');
- var repulsion = forceModel.get('repulsion');
- var edgeLength = forceModel.get('edgeLength');
- var nodes = nodeData.mapArray('value', function (value, idx) {
- var point = nodeData.getItemLayout(idx);
- // var w = numberUtil.linearMap(value, nodeDataExtent, [0, 50]);
- var rep = numberUtil.linearMap(value, nodeDataExtent, [0, repulsion]) || (repulsion / 2);
- return {
- w: rep,
- rep: rep,
- p: (!point || isNaN(point[0]) || isNaN(point[1])) ? null : point
- };
- });
- var edges = edgeData.mapArray('value', function (value, idx) {
- var edge = graph.getEdgeByIndex(idx);
- // var w = numberUtil.linearMap(value, edgeDataExtent, [0, 100]);
- return {
- n1: nodes[edge.node1.dataIndex],
- n2: nodes[edge.node2.dataIndex],
- d: edgeLength,
- curveness: edge.getModel().get('lineStyle.normal.curveness') || 0
- };
- });
-
- var coordSys = graphSeries.coordinateSystem;
- var rect = coordSys.getBoundingRect();
- var forceInstance = forceHelper(nodes, edges, {
- rect: rect,
- gravity: forceModel.get('gravity')
- });
- var oldStep = forceInstance.step;
- forceInstance.step = function (cb) {
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i].fixed) {
- // Write back to layout instance
- vec2.copy(nodes[i].p, graph.getNodeByIndex(i).getLayout());
- }
- }
- oldStep(function (nodes, edges, stopped) {
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (!nodes[i].fixed) {
- graph.getNodeByIndex(i).setLayout(nodes[i].p);
- }
- preservedPoints[nodeData.getId(i)] = nodes[i].p;
- }
- for (var i = 0, l = edges.length; i < l; i++) {
- var e = edges[i];
- var p1 = e.n1.p;
- var p2 = e.n2.p;
- var points = [p1, p2];
- if (e.curveness > 0) {
- points.push([
- (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * e.curveness,
- (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * e.curveness
- ]);
- }
- graph.getEdgeByIndex(i).setLayout(points);
- }
- // Update layout
-
- cb && cb(stopped);
- });
- };
- graphSeries.forceLayout = forceInstance;
- graphSeries.preservedPoints = preservedPoints;
-
- // Step to get the layout
- forceInstance.step();
- }
- else {
- // Remove prev injected forceLayout instance
- graphSeries.forceLayout = null;
- }
- });
- };
-
-
-/***/ },
-/* 205 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var vec2 = __webpack_require__(16);
- var scaleAndAdd = vec2.scaleAndAdd;
-
- // function adjacentNode(n, e) {
- // return e.n1 === n ? e.n2 : e.n1;
- // }
-
- module.exports = function (nodes, edges, opts) {
- var rect = opts.rect;
- var width = rect.width;
- var height = rect.height;
- var center = [rect.x + width / 2, rect.y + height / 2];
- // var scale = opts.scale || 1;
- var gravity = opts.gravity == null ? 0.1 : opts.gravity;
-
- // for (var i = 0; i < edges.length; i++) {
- // var e = edges[i];
- // var n1 = e.n1;
- // var n2 = e.n2;
- // n1.edges = n1.edges || [];
- // n2.edges = n2.edges || [];
- // n1.edges.push(e);
- // n2.edges.push(e);
- // }
- // Init position
- for (var i = 0; i < nodes.length; i++) {
- var n = nodes[i];
- if (!n.p) {
- // Use the position from first adjecent node with defined position
- // Or use a random position
- // From d3
- // if (n.edges) {
- // var j = -1;
- // while (++j < n.edges.length) {
- // var e = n.edges[j];
- // var other = adjacentNode(n, e);
- // if (other.p) {
- // n.p = vec2.clone(other.p);
- // break;
- // }
- // }
- // }
- // if (!n.p) {
- n.p = vec2.create(
- width * (Math.random() - 0.5) + center[0],
- height * (Math.random() - 0.5) + center[1]
- );
- // }
- }
- n.pp = vec2.clone(n.p);
- n.edges = null;
- }
-
- // Formula in 'Graph Drawing by Force-directed Placement'
- // var k = scale * Math.sqrt(width * height / nodes.length);
- // var k2 = k * k;
-
- var friction = 0.6;
-
- return {
- warmUp: function () {
- friction = 0.5;
- },
-
- setFixed: function (idx) {
- nodes[idx].fixed = true;
- },
-
- setUnfixed: function (idx) {
- nodes[idx].fixed = false;
- },
-
- step: function (cb) {
- var v12 = [];
- var nLen = nodes.length;
- for (var i = 0; i < edges.length; i++) {
- var e = edges[i];
- var n1 = e.n1;
- var n2 = e.n2;
-
- vec2.sub(v12, n2.p, n1.p);
- var d = vec2.len(v12) - e.d;
- var w = n2.w / (n1.w + n2.w);
- vec2.normalize(v12, v12);
-
- !n1.fixed && scaleAndAdd(n1.p, n1.p, v12, w * d * friction);
- !n2.fixed && scaleAndAdd(n2.p, n2.p, v12, -(1 - w) * d * friction);
- }
- // Gravity
- for (var i = 0; i < nLen; i++) {
- var n = nodes[i];
- if (!n.fixed) {
- vec2.sub(v12, center, n.p);
- // var d = vec2.len(v12);
- // vec2.scale(v12, v12, 1 / d);
- // var gravityFactor = gravity;
- vec2.scaleAndAdd(n.p, n.p, v12, gravity * friction);
- }
- }
-
- // Repulsive
- // PENDING
- for (var i = 0; i < nLen; i++) {
- var n1 = nodes[i];
- for (var j = i + 1; j < nLen; j++) {
- var n2 = nodes[j];
- vec2.sub(v12, n2.p, n1.p);
- var d = vec2.len(v12);
- if (d === 0) {
- // Random repulse
- vec2.set(v12, Math.random() - 0.5, Math.random() - 0.5);
- d = 1;
- }
- var repFact = (n1.rep + n2.rep) / d / d;
- !n1.fixed && scaleAndAdd(n1.pp, n1.pp, v12, repFact);
- !n2.fixed && scaleAndAdd(n2.pp, n2.pp, v12, -repFact);
- }
- }
- var v = [];
- for (var i = 0; i < nLen; i++) {
- var n = nodes[i];
- if (!n.fixed) {
- vec2.sub(v, n.p, n.pp);
- vec2.scaleAndAdd(n.p, n.p, v, friction);
- vec2.copy(n.pp, n.p);
- }
- }
-
- friction = friction * 0.992;
-
- cb && cb(nodes, edges, friction < 0.01);
- }
- };
- };
-
-
-/***/ },
-/* 206 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- // FIXME Where to create the simple view coordinate system
- var View = __webpack_require__(169);
- var layout = __webpack_require__(21);
- var bbox = __webpack_require__(50);
-
- function getViewRect(seriesModel, api, aspect) {
- var option = seriesModel.getBoxLayoutParams();
- option.aspect = aspect;
- return layout.getLayoutRect(option, {
- width: api.getWidth(),
- height: api.getHeight()
- });
- }
-
- module.exports = function (ecModel, api) {
- var viewList = [];
- ecModel.eachSeriesByType('graph', function (seriesModel) {
- var coordSysType = seriesModel.get('coordinateSystem');
- if (!coordSysType || coordSysType === 'view') {
- var viewCoordSys = new View();
- viewList.push(viewCoordSys);
-
- var data = seriesModel.getData();
- var positions = data.mapArray(function (idx) {
- var itemModel = data.getItemModel(idx);
- return [+itemModel.get('x'), +itemModel.get('y')];
- });
-
- var min = [];
- var max = [];
-
- bbox.fromPoints(positions, min, max);
-
- // FIXME If get view rect after data processed?
- var viewRect = getViewRect(
- seriesModel, api, (max[0] - min[0]) / (max[1] - min[1]) || 1
- );
- // Position may be NaN, use view rect instead
- if (isNaN(min[0]) || isNaN(min[1])) {
- min = [viewRect.x, viewRect.y];
- max = [viewRect.x + viewRect.width, viewRect.y + viewRect.height];
- }
-
- var bbWidth = max[0] - min[0];
- var bbHeight = max[1] - min[1];
-
- var viewWidth = viewRect.width;
- var viewHeight = viewRect.height;
-
- viewCoordSys = seriesModel.coordinateSystem = new View();
-
- viewCoordSys.setBoundingRect(
- min[0], min[1], bbWidth, bbHeight
- );
- viewCoordSys.setViewRect(
- viewRect.x, viewRect.y, viewWidth, viewHeight
- );
-
- // Update roam info
- var roamDetailModel = seriesModel.getModel('roamDetail');
- viewCoordSys.setPan(roamDetailModel.get('x') || 0, roamDetailModel.get('y') || 0);
- viewCoordSys.setZoom(roamDetailModel.get('zoom') || 1);
- }
- });
- return viewList;
- };
-
-
-/***/ },
-/* 207 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- __webpack_require__(208);
- __webpack_require__(209);
-
-
-/***/ },
-/* 208 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var List = __webpack_require__(94);
- var SeriesModel = __webpack_require__(27);
- var zrUtil = __webpack_require__(3);
-
- var GaugeSeries = SeriesModel.extend({
-
- type: 'series.gauge',
-
- getInitialData: function (option, ecModel) {
- var list = new List(['value'], this);
- var dataOpt = option.data || [];
- if (!zrUtil.isArray(dataOpt)) {
- dataOpt = [dataOpt];
- }
- // Only use the first data item
- list.initData(dataOpt);
- return list;
- },
-
- defaultOption: {
- zlevel: 0,
- z: 2,
- // 默认全局居中
- center: ['50%', '50%'],
- legendHoverLink: true,
- radius: '75%',
- startAngle: 225,
- endAngle: -45,
- clockwise: true,
- // 最小值
- min: 0,
- // 最大值
- max: 100,
- // 分割段数,默认为10
- splitNumber: 10,
- // 坐标轴线
- axisLine: {
- // 默认显示,属性show控制显示与否
- show: true,
- lineStyle: { // 属性lineStyle控制线条样式
- color: [[0.2, '#91c7ae'], [0.8, '#63869e'], [1, '#c23531']],
- width: 30
- }
- },
- // 分隔线
- splitLine: {
- // 默认显示,属性show控制显示与否
- show: true,
- // 属性length控制线长
- length: 30,
- // 属性lineStyle(详见lineStyle)控制线条样式
- lineStyle: {
- color: '#eee',
- width: 2,
- type: 'solid'
- }
- },
- // 坐标轴小标记
- axisTick: {
- // 属性show控制显示与否,默认不显示
- show: true,
- // 每份split细分多少段
- splitNumber: 5,
- // 属性length控制线长
- length: 8,
- // 属性lineStyle控制线条样式
- lineStyle: {
- color: '#eee',
- width: 1,
- type: 'solid'
- }
- },
- axisLabel: {
- show: true,
- // formatter: null,
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- color: 'auto'
- }
- },
- pointer: {
- show: true,
- length: '80%',
- width: 8
- },
- itemStyle: {
- normal: {
- color: 'auto'
- }
- },
- title: {
- show: true,
- // x, y,单位px
- offsetCenter: [0, '-40%'],
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- textStyle: {
- color: '#333',
- fontSize: 15
- }
- },
- detail: {
- show: true,
- backgroundColor: 'rgba(0,0,0,0)',
- borderWidth: 0,
- borderColor: '#ccc',
- width: 100,
- height: 40,
- // x, y,单位px
- offsetCenter: [0, '40%'],
- // formatter: null,
- // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- textStyle: {
- color: 'auto',
- fontSize: 30
- }
- }
- }
- });
-
- module.exports = GaugeSeries;
-
-
-/***/ },
-/* 209 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var PointerPath = __webpack_require__(210);
-
- var graphic = __webpack_require__(42);
- var numberUtil = __webpack_require__(7);
- var parsePercent = numberUtil.parsePercent;
-
- function parsePosition(seriesModel, api) {
- var center = seriesModel.get('center');
- var width = api.getWidth();
- var height = api.getHeight();
- var size = Math.min(width, height);
- var cx = parsePercent(center[0], api.getWidth());
- var cy = parsePercent(center[1], api.getHeight());
- var r = parsePercent(seriesModel.get('radius'), size / 2);
-
- return {
- cx: cx,
- cy: cy,
- r: r
- };
- }
-
- function formatLabel(label, labelFormatter) {
- if (labelFormatter) {
- if (typeof labelFormatter === 'string') {
- label = labelFormatter.replace('{value}', label);
- }
- else if (typeof labelFormatter === 'function') {
- label = labelFormatter(label);
- }
- }
-
- return label;
- }
-
- var PI2 = Math.PI * 2;
-
- var GaugeView = __webpack_require__(41).extend({
-
- type: 'gauge',
-
- render: function (seriesModel, ecModel, api) {
-
- this.group.removeAll();
-
- var colorList = seriesModel.get('axisLine.lineStyle.color');
- var posInfo = parsePosition(seriesModel, api);
-
- this._renderMain(
- seriesModel, ecModel, api, colorList, posInfo
- );
- },
-
- _renderMain: function (seriesModel, ecModel, api, colorList, posInfo) {
- var group = this.group;
-
- var axisLineModel = seriesModel.getModel('axisLine');
- var lineStyleModel = axisLineModel.getModel('lineStyle');
-
- var clockwise = seriesModel.get('clockwise');
- var startAngle = -seriesModel.get('startAngle') / 180 * Math.PI;
- var endAngle = -seriesModel.get('endAngle') / 180 * Math.PI;
-
- var angleRangeSpan = (endAngle - startAngle) % PI2;
-
- var prevEndAngle = startAngle;
- var axisLineWidth = lineStyleModel.get('width');
-
- for (var i = 0; i < colorList.length; i++) {
- var endAngle = startAngle + angleRangeSpan * colorList[i][0];
- var sector = new graphic.Sector({
- shape: {
- startAngle: prevEndAngle,
- endAngle: endAngle,
- cx: posInfo.cx,
- cy: posInfo.cy,
- clockwise: clockwise,
- r0: posInfo.r - axisLineWidth,
- r: posInfo.r
- },
- silent: true
- });
-
- sector.setStyle({
- fill: colorList[i][1]
- });
-
- sector.setStyle(lineStyleModel.getLineStyle(
- // Because we use sector to simulate arc
- // so the properties for stroking are useless
- ['color', 'borderWidth', 'borderColor']
- ));
-
- group.add(sector);
-
- prevEndAngle = endAngle;
- }
-
- var getColor = function (percent) {
- // Less than 0
- if (percent <= 0) {
- return colorList[0][1];
- }
- for (var i = 0; i < colorList.length; i++) {
- if (colorList[i][0] >= percent
- && (i === 0 ? 0 : colorList[i - 1][0]) < percent
- ) {
- return colorList[i][1];
- }
- }
- // More than 1
- return colorList[i - 1][1];
- };
-
- if (!clockwise) {
- var tmp = startAngle;
- startAngle = endAngle;
- endAngle = tmp;
- }
-
- this._renderTicks(
- seriesModel, ecModel, api, getColor, posInfo,
- startAngle, endAngle, clockwise
- );
-
- this._renderPointer(
- seriesModel, ecModel, api, getColor, posInfo,
- startAngle, endAngle, clockwise
- );
-
- this._renderTitle(
- seriesModel, ecModel, api, getColor, posInfo
- );
- this._renderDetail(
- seriesModel, ecModel, api, getColor, posInfo
- );
- },
-
- _renderTicks: function (
- seriesModel, ecModel, api, getColor, posInfo,
- startAngle, endAngle, clockwise
- ) {
- var group = this.group;
- var cx = posInfo.cx;
- var cy = posInfo.cy;
- var r = posInfo.r;
-
- var minVal = seriesModel.get('min');
- var maxVal = seriesModel.get('max');
-
- var splitLineModel = seriesModel.getModel('splitLine');
- var tickModel = seriesModel.getModel('axisTick');
- var labelModel = seriesModel.getModel('axisLabel');
-
- var splitNumber = seriesModel.get('splitNumber');
- var subSplitNumber = tickModel.get('splitNumber');
-
- var splitLineLen = parsePercent(
- splitLineModel.get('length'), r
- );
- var tickLen = parsePercent(
- tickModel.get('length'), r
- );
-
- var angle = startAngle;
- var step = (endAngle - startAngle) / splitNumber;
- var subStep = step / subSplitNumber;
-
- var splitLineStyle = splitLineModel.getModel('lineStyle').getLineStyle();
- var tickLineStyle = tickModel.getModel('lineStyle').getLineStyle();
- var textStyleModel = labelModel.getModel('textStyle');
-
- for (var i = 0; i <= splitNumber; i++) {
- var unitX = Math.cos(angle);
- var unitY = Math.sin(angle);
- // Split line
- if (splitLineModel.get('show')) {
- var splitLine = new graphic.Line({
- shape: {
- x1: unitX * r + cx,
- y1: unitY * r + cy,
- x2: unitX * (r - splitLineLen) + cx,
- y2: unitY * (r - splitLineLen) + cy
- },
- style: splitLineStyle,
- silent: true
- });
- if (splitLineStyle.stroke === 'auto') {
- splitLine.setStyle({
- stroke: getColor(i / splitNumber)
- });
- }
-
- group.add(splitLine);
- }
-
- // Label
- if (labelModel.get('show')) {
- var label = formatLabel(
- numberUtil.round(i / splitNumber * (maxVal - minVal) + minVal),
- labelModel.get('formatter')
- );
-
- var text = new graphic.Text({
- style: {
- text: label,
- x: unitX * (r - splitLineLen - 5) + cx,
- y: unitY * (r - splitLineLen - 5) + cy,
- fill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont(),
- textVerticalAlign: unitY < -0.4 ? 'top' : (unitY > 0.4 ? 'bottom' : 'middle'),
- textAlign: unitX < -0.4 ? 'left' : (unitX > 0.4 ? 'right' : 'center')
- },
- silent: true
- });
- if (text.style.fill === 'auto') {
- text.setStyle({
- fill: getColor(i / splitNumber)
- });
- }
-
- group.add(text);
- }
-
- // Axis tick
- if (tickModel.get('show') && i !== splitNumber) {
- for (var j = 0; j <= subSplitNumber; j++) {
- var unitX = Math.cos(angle);
- var unitY = Math.sin(angle);
- var tickLine = new graphic.Line({
- shape: {
- x1: unitX * r + cx,
- y1: unitY * r + cy,
- x2: unitX * (r - tickLen) + cx,
- y2: unitY * (r - tickLen) + cy
- },
- silent: true,
- style: tickLineStyle
- });
-
- if (tickLineStyle.stroke === 'auto') {
- tickLine.setStyle({
- stroke: getColor((i + j / subSplitNumber) / splitNumber)
- });
- }
-
- group.add(tickLine);
- angle += subStep;
- }
- angle -= subStep;
- }
- else {
- angle += step;
- }
- }
- },
-
- _renderPointer: function (
- seriesModel, ecModel, api, getColor, posInfo,
- startAngle, endAngle, clockwise
- ) {
- var linearMap = numberUtil.linearMap;
- var valueExtent = [+seriesModel.get('min'), +seriesModel.get('max')];
- var angleExtent = [startAngle, endAngle];
-
- if (!clockwise) {
- angleExtent = angleExtent.reverse();
- }
-
- var data = seriesModel.getData();
- var oldData = this._data;
-
- var group = this.group;
-
- data.diff(oldData)
- .add(function (idx) {
- var pointer = new PointerPath({
- shape: {
- angle: startAngle
- }
- });
-
- graphic.updateProps(pointer, {
- shape: {
- angle: linearMap(data.get('value', idx), valueExtent, angleExtent)
- }
- }, seriesModel);
-
- group.add(pointer);
- data.setItemGraphicEl(idx, pointer);
- })
- .update(function (newIdx, oldIdx) {
- var pointer = oldData.getItemGraphicEl(oldIdx);
-
- graphic.updateProps(pointer, {
- shape: {
- angle: linearMap(data.get('value', newIdx), valueExtent, angleExtent)
- }
- }, seriesModel);
-
- group.add(pointer);
- data.setItemGraphicEl(newIdx, pointer);
- })
- .remove(function (idx) {
- var pointer = oldData.getItemGraphicEl(idx);
- group.remove(pointer);
- })
- .execute();
-
- data.eachItemGraphicEl(function (pointer, idx) {
- var itemModel = data.getItemModel(idx);
- var pointerModel = itemModel.getModel('pointer');
-
- pointer.attr({
- shape: {
- x: posInfo.cx,
- y: posInfo.cy,
- width: parsePercent(
- pointerModel.get('width'), posInfo.r
- ),
- r: parsePercent(pointerModel.get('length'), posInfo.r)
- },
- style: itemModel.getModel('itemStyle.normal').getItemStyle()
- });
-
- if (pointer.style.fill === 'auto') {
- pointer.setStyle('fill', getColor(
- (data.get('value', idx) - valueExtent[0]) / (valueExtent[1] - valueExtent[0])
- ));
- }
-
- graphic.setHoverStyle(
- pointer, itemModel.getModel('itemStyle.emphasis').getItemStyle()
- );
- });
-
- this._data = data;
- },
-
- _renderTitle: function (
- seriesModel, ecModel, api, getColor, posInfo
- ) {
- var titleModel = seriesModel.getModel('title');
- if (titleModel.get('show')) {
- var textStyleModel = titleModel.getModel('textStyle');
- var offsetCenter = titleModel.get('offsetCenter');
- var x = posInfo.cx + parsePercent(offsetCenter[0], posInfo.r);
- var y = posInfo.cy + parsePercent(offsetCenter[1], posInfo.r);
- var text = new graphic.Text({
- style: {
- x: x,
- y: y,
- // FIXME First data name ?
- text: seriesModel.getData().getName(0),
- fill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont(),
- textAlign: 'center',
- textVerticalAlign: 'middle'
- }
- });
- this.group.add(text);
- }
- },
-
- _renderDetail: function (
- seriesModel, ecModel, api, getColor, posInfo
- ) {
- var detailModel = seriesModel.getModel('detail');
- var minVal = seriesModel.get('min');
- var maxVal = seriesModel.get('max');
- if (detailModel.get('show')) {
- var textStyleModel = detailModel.getModel('textStyle');
- var offsetCenter = detailModel.get('offsetCenter');
- var x = posInfo.cx + parsePercent(offsetCenter[0], posInfo.r);
- var y = posInfo.cy + parsePercent(offsetCenter[1], posInfo.r);
- var width = parsePercent(detailModel.get('width'), posInfo.r);
- var height = parsePercent(detailModel.get('height'), posInfo.r);
- var value = seriesModel.getData().get('value', 0);
- var rect = new graphic.Rect({
- shape: {
- x: x - width / 2,
- y: y - height / 2,
- width: width,
- height: height
- },
- style: {
- text: formatLabel(
- // FIXME First data name ?
- value, detailModel.get('formatter')
- ),
- fill: detailModel.get('backgroundColor'),
- textFill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont()
- }
- });
- if (rect.style.textFill === 'auto') {
- rect.setStyle('textFill', getColor((value - minVal) / (maxVal - minVal)));
- }
- rect.setStyle(detailModel.getItemStyle(['color']));
- this.group.add(rect);
- }
- }
- });
-
- module.exports = GaugeView;
-
-
-/***/ },
-/* 210 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- module.exports = __webpack_require__(44).extend({
-
- type: 'echartsGaugePointer',
-
- shape: {
- angle: 0,
-
- width: 10,
-
- r: 10,
-
- x: 0,
-
- y: 0
- },
-
- buildPath: function (ctx, shape) {
- var mathCos = Math.cos;
- var mathSin = Math.sin;
-
- var r = shape.r;
- var width = shape.width;
- var angle = shape.angle;
- var x = shape.x - mathCos(angle) * width * (width >= r / 3 ? 1 : 2);
- var y = shape.y - mathSin(angle) * width * (width >= r / 3 ? 1 : 2);
-
- angle = shape.angle - Math.PI / 2;
- ctx.moveTo(x, y);
- ctx.lineTo(
- shape.x + mathCos(angle) * width,
- shape.y + mathSin(angle) * width
- );
- ctx.lineTo(
- shape.x + mathCos(shape.angle) * r,
- shape.y + mathSin(shape.angle) * r
- );
- ctx.lineTo(
- shape.x - mathCos(angle) * width,
- shape.y - mathSin(angle) * width
- );
- ctx.lineTo(x, y);
- return;
- }
- });
-
-
-/***/ },
-/* 211 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- __webpack_require__(212);
- __webpack_require__(213);
-
- echarts.registerVisualCoding(
- 'chart', zrUtil.curry(__webpack_require__(137), 'funnel')
- );
- echarts.registerLayout(__webpack_require__(214));
-
- echarts.registerProcessor(
- 'filter', zrUtil.curry(__webpack_require__(140), 'funnel')
- );
-
-
-/***/ },
-/* 212 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var List = __webpack_require__(94);
- var modelUtil = __webpack_require__(5);
- var completeDimensions = __webpack_require__(96);
-
- var FunnelSeries = __webpack_require__(1).extendSeriesModel({
-
- type: 'series.funnel',
-
- init: function (option) {
- FunnelSeries.superApply(this, 'init', arguments);
-
- // Enable legend selection for each data item
- // Use a function instead of direct access because data reference may changed
- this.legendDataProvider = function () {
- return this._dataBeforeProcessed;
- };
- // Extend labelLine emphasis
- this._defaultLabelLine(option);
- },
-
- getInitialData: function (option, ecModel) {
- var dimensions = completeDimensions(['value'], option.data);
- var list = new List(dimensions, this);
- list.initData(option.data);
- return list;
- },
-
- _defaultLabelLine: function (option) {
- // Extend labelLine emphasis
- modelUtil.defaultEmphasis(option.labelLine, ['show']);
-
- var labelLineNormalOpt = option.labelLine.normal;
- var labelLineEmphasisOpt = option.labelLine.emphasis;
- // Not show label line if `label.normal.show = false`
- labelLineNormalOpt.show = labelLineNormalOpt.show
- && option.label.normal.show;
- labelLineEmphasisOpt.show = labelLineEmphasisOpt.show
- && option.label.emphasis.show;
- },
-
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
- legendHoverLink: true,
- left: 80,
- top: 60,
- right: 80,
- bottom: 60,
- // width: {totalWidth} - left - right,
- // height: {totalHeight} - top - bottom,
-
- // 默认取数据最小最大值
- // min: 0,
- // max: 100,
- minSize: '0%',
- maxSize: '100%',
- sort: 'descending', // 'ascending', 'descending'
- gap: 0,
- funnelAlign: 'center',
- label: {
- normal: {
- show: true,
- position: 'outer'
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- },
- emphasis: {
- show: true
- }
- },
- labelLine: {
- normal: {
- show: true,
- length: 20,
- lineStyle: {
- // color: 各异,
- width: 1,
- type: 'solid'
- }
- },
- emphasis: {}
- },
- itemStyle: {
- normal: {
- // color: 各异,
- borderColor: '#fff',
- borderWidth: 1
- },
- emphasis: {
- // color: 各异,
- }
- }
- }
- });
-
- module.exports = FunnelSeries;
-
-
-/***/ },
-/* 213 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
-
- /**
- * Piece of pie including Sector, Label, LabelLine
- * @constructor
- * @extends {module:zrender/graphic/Group}
- */
- function FunnelPiece(data, idx) {
-
- graphic.Group.call(this);
-
- var polygon = new graphic.Polygon();
- var labelLine = new graphic.Polyline();
- var text = new graphic.Text();
- this.add(polygon);
- this.add(labelLine);
- this.add(text);
-
- this.updateData(data, idx, true);
-
- // Hover to change label and labelLine
- function onEmphasis() {
- labelLine.ignore = labelLine.hoverIgnore;
- text.ignore = text.hoverIgnore;
- }
- function onNormal() {
- labelLine.ignore = labelLine.normalIgnore;
- text.ignore = text.normalIgnore;
- }
- this.on('emphasis', onEmphasis)
- .on('normal', onNormal)
- .on('mouseover', onEmphasis)
- .on('mouseout', onNormal);
- }
-
- var funnelPieceProto = FunnelPiece.prototype;
-
- function getLabelStyle(data, idx, state, labelModel) {
- var textStyleModel = labelModel.getModel('textStyle');
- var position = labelModel.get('position');
- var isLabelInside = position === 'inside' || position === 'inner' || position === 'center';
- return {
- fill: textStyleModel.getTextColor()
- || (isLabelInside ? '#fff' : data.getItemVisual(idx, 'color')),
- textFont: textStyleModel.getFont(),
- text: zrUtil.retrieve(
- data.hostModel.getFormattedLabel(idx, state),
- data.getName(idx)
- )
- };
- }
-
- var opacityAccessPath = ['itemStyle', 'normal', 'opacity'];
- funnelPieceProto.updateData = function (data, idx, firstCreate) {
-
- var polygon = this.childAt(0);
-
- var seriesModel = data.hostModel;
- var itemModel = data.getItemModel(idx);
- var layout = data.getItemLayout(idx);
- var opacity = data.getItemModel(idx).get(opacityAccessPath);
- opacity = opacity == null ? 1 : opacity;
- if (firstCreate) {
- polygon.setShape({
- points: layout.points
- });
- polygon.setStyle({ opacity : 0 });
- graphic.updateProps(polygon, {
- style: {
- opacity: opacity
- }
- }, seriesModel);
- }
- else {
- graphic.initProps(polygon, {
- shape: {
- points: layout.points
- }
- }, seriesModel);
- }
-
- // Update common style
- var itemStyleModel = itemModel.getModel('itemStyle');
- var visualColor = data.getItemVisual(idx, 'color');
-
- polygon.setStyle(
- zrUtil.defaults(
- {
- fill: visualColor
- },
- itemStyleModel.getModel('normal').getItemStyle()
- )
- );
- polygon.hoverStyle = itemStyleModel.getModel('emphasis').getItemStyle();
-
- this._updateLabel(data, idx);
-
- graphic.setHoverStyle(this);
- };
-
- funnelPieceProto._updateLabel = function (data, idx) {
-
- var labelLine = this.childAt(1);
- var labelText = this.childAt(2);
-
- var seriesModel = data.hostModel;
- var itemModel = data.getItemModel(idx);
- var layout = data.getItemLayout(idx);
- var labelLayout = layout.label;
- var visualColor = data.getItemVisual(idx, 'color');
-
- graphic.updateProps(labelLine, {
- shape: {
- points: labelLayout.linePoints || labelLayout.linePoints
- }
- }, seriesModel);
-
- graphic.updateProps(labelText, {
- style: {
- x: labelLayout.x,
- y: labelLayout.y
- }
- }, seriesModel);
- labelText.attr({
- style: {
- textAlign: labelLayout.textAlign,
- textVerticalAlign: labelLayout.verticalAlign,
- textFont: labelLayout.font
- },
- rotation: labelLayout.rotation,
- origin: [labelLayout.x, labelLayout.y],
- z2: 10
- });
-
- var labelModel = itemModel.getModel('label.normal');
- var labelHoverModel = itemModel.getModel('label.emphasis');
- var labelLineModel = itemModel.getModel('labelLine.normal');
- var labelLineHoverModel = itemModel.getModel('labelLine.emphasis');
-
- labelText.setStyle(getLabelStyle(data, idx, 'normal', labelModel));
-
- labelText.ignore = labelText.normalIgnore = !labelModel.get('show');
- labelText.hoverIgnore = !labelHoverModel.get('show');
-
- labelLine.ignore = labelLine.normalIgnore = !labelLineModel.get('show');
- labelLine.hoverIgnore = !labelLineHoverModel.get('show');
-
- // Default use item visual color
- labelLine.setStyle({
- stroke: visualColor
- });
- labelLine.setStyle(labelLineModel.getModel('lineStyle').getLineStyle());
-
- labelText.hoverStyle = getLabelStyle(data, idx, 'emphasis', labelHoverModel);
- labelLine.hoverStyle = labelLineHoverModel.getModel('lineStyle').getLineStyle();
- };
-
- zrUtil.inherits(FunnelPiece, graphic.Group);
-
-
- var Funnel = __webpack_require__(41).extend({
-
- type: 'funnel',
-
- render: function (seriesModel, ecModel, api) {
- var data = seriesModel.getData();
- var oldData = this._data;
-
- var group = this.group;
-
- data.diff(oldData)
- .add(function (idx) {
- var funnelPiece = new FunnelPiece(data, idx);
-
- data.setItemGraphicEl(idx, funnelPiece);
-
- group.add(funnelPiece);
- })
- .update(function (newIdx, oldIdx) {
- var piePiece = oldData.getItemGraphicEl(oldIdx);
-
- piePiece.updateData(data, newIdx);
-
- group.add(piePiece);
- data.setItemGraphicEl(newIdx, piePiece);
- })
- .remove(function (idx) {
- var piePiece = oldData.getItemGraphicEl(idx);
- group.remove(piePiece);
- })
- .execute();
-
- this._data = data;
- },
-
- remove: function () {
- this.group.removeAll();
- this._data = null;
- }
- });
-
- module.exports = Funnel;
-
-
-/***/ },
-/* 214 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var layout = __webpack_require__(21);
- var number = __webpack_require__(7);
-
- var parsePercent = number.parsePercent;
-
- function getViewRect(seriesModel, api) {
- return layout.getLayoutRect(
- seriesModel.getBoxLayoutParams(), {
- width: api.getWidth(),
- height: api.getHeight()
- }
- );
- }
-
- function getSortedIndices(data, sort) {
- var valueArr = data.mapArray('value', function (val) {
- return val;
- });
- var indices = [];
- var isAscending = sort === 'ascending';
- for (var i = 0, len = data.count(); i < len; i++) {
- indices[i] = i;
- }
- indices.sort(function (a, b) {
- return isAscending ? valueArr[a] - valueArr[b] : valueArr[b] - valueArr[a];
- });
- return indices;
- }
-
- function labelLayout (data) {
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- var labelModel = itemModel.getModel('label.normal');
- var labelPosition = labelModel.get('position');
-
- var labelLineModel = itemModel.getModel('labelLine.normal');
-
- var layout = data.getItemLayout(idx);
- var points = layout.points;
-
- var isLabelInside = labelPosition === 'inner'
- || labelPosition === 'inside' || labelPosition === 'center';
-
- var textAlign;
- var textX;
- var textY;
- var linePoints;
-
- if (isLabelInside) {
- textX = (points[0][0] + points[1][0] + points[2][0] + points[3][0]) / 4;
- textY = (points[0][1] + points[1][1] + points[2][1] + points[3][1]) / 4;
- textAlign = 'center';
- linePoints = [
- [textX, textY], [textX, textY]
- ];
- }
- else {
- var x1;
- var y1;
- var x2;
- var labelLineLen = labelLineModel.get('length');
- if (labelPosition === 'left') {
- // Left side
- x1 = (points[3][0] + points[0][0]) / 2;
- y1 = (points[3][1] + points[0][1]) / 2;
- x2 = x1 - labelLineLen;
- textX = x2 - 5;
- textAlign = 'right';
- }
- else {
- // Right side
- x1 = (points[1][0] + points[2][0]) / 2;
- y1 = (points[1][1] + points[2][1]) / 2;
- x2 = x1 + labelLineLen;
- textX = x2 + 5;
- textAlign = 'left';
- }
- var y2 = y1;
-
- linePoints = [[x1, y1], [x2, y2]];
- textY = y2;
- }
-
- layout.label = {
- linePoints: linePoints,
- x: textX,
- y: textY,
- verticalAlign: 'middle',
- textAlign: textAlign,
- inside: isLabelInside
- };
- });
- }
-
- module.exports = function (ecModel, api) {
- ecModel.eachSeriesByType('funnel', function (seriesModel) {
- var data = seriesModel.getData();
- var sort = seriesModel.get('sort');
- var viewRect = getViewRect(seriesModel, api);
- var indices = getSortedIndices(data, sort);
-
- var sizeExtent = [
- parsePercent(seriesModel.get('minSize'), viewRect.width),
- parsePercent(seriesModel.get('maxSize'), viewRect.width)
- ];
- var dataExtent = data.getDataExtent('value');
- var min = seriesModel.get('min');
- var max = seriesModel.get('max');
- if (min == null) {
- min = Math.min(dataExtent[0], 0);
- }
- if (max == null) {
- max = dataExtent[1];
- }
-
- var funnelAlign = seriesModel.get('funnelAlign');
- var gap = seriesModel.get('gap');
- var itemHeight = (viewRect.height - gap * (data.count() - 1)) / data.count();
-
- var y = viewRect.y;
-
- var getLinePoints = function (idx, offY) {
- // End point index is data.count() and we assign it 0
- var val = data.get('value', idx) || 0;
- var itemWidth = number.linearMap(val, [min, max], sizeExtent, true);
- var x0;
- switch (funnelAlign) {
- case 'left':
- x0 = viewRect.x;
- break;
- case 'center':
- x0 = viewRect.x + (viewRect.width - itemWidth) / 2;
- break;
- case 'right':
- x0 = viewRect.x + viewRect.width - itemWidth;
- break;
- }
- return [
- [x0, offY],
- [x0 + itemWidth, offY]
- ];
- };
-
- if (sort === 'ascending') {
- // From bottom to top
- itemHeight = -itemHeight;
- gap = -gap;
- y += viewRect.height;
- indices = indices.reverse();
- }
-
- for (var i = 0; i < indices.length; i++) {
- var idx = indices[i];
- var nextIdx = indices[i + 1];
- var start = getLinePoints(idx, y);
- var end = getLinePoints(nextIdx, y + itemHeight);
-
- y += itemHeight + gap;
-
- data.setItemLayout(idx, {
- points: start.concat(end.slice().reverse())
- });
- }
-
- labelLayout(data);
- });
- };
-
-
-/***/ },
-/* 215 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(216);
-
- __webpack_require__(227);
- __webpack_require__(228);
-
- echarts.registerVisualCoding('chart', __webpack_require__(229));
-
-
-
-/***/ },
-/* 216 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(217);
- __webpack_require__(220);
- __webpack_require__(222);
-
- var echarts = __webpack_require__(1);
-
- // Parallel view
- echarts.extendComponentView({
- type: 'parallel'
- });
-
- echarts.registerPreprocessor(
- __webpack_require__(226)
- );
-
-
-
-/***/ },
-/* 217 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Parallel coordinate system creater.
- */
-
-
- var Parallel = __webpack_require__(218);
-
- function create(ecModel, api) {
- var coordSysList = [];
-
- ecModel.eachComponent('parallel', function (parallelModel, idx) {
- var coordSys = new Parallel(parallelModel, ecModel, api);
-
- coordSys.name = 'parallel_' + idx;
- coordSys.resize(parallelModel, api);
-
- parallelModel.coordinateSystem = coordSys;
- coordSys.model = parallelModel;
-
- coordSysList.push(coordSys);
- });
-
- // Inject the coordinateSystems into seriesModel
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.get('coordinateSystem') === 'parallel') {
- var parallelIndex = seriesModel.get('parallelIndex');
- seriesModel.coordinateSystem = coordSysList[parallelIndex];
- }
- });
-
- return coordSysList;
- }
-
- __webpack_require__(25).register('parallel', {create: create});
-
-
-
-/***/ },
-/* 218 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Parallel Coordinates
- * <https://en.wikipedia.org/wiki/Parallel_coordinates>
- */
-
-
- var layout = __webpack_require__(21);
- var axisHelper = __webpack_require__(108);
- var zrUtil = __webpack_require__(3);
- var ParallelAxis = __webpack_require__(219);
- var matrix = __webpack_require__(17);
- var vector = __webpack_require__(16);
-
- var each = zrUtil.each;
-
- var PI = Math.PI;
-
- function Parallel(parallelModel, ecModel, api) {
-
- /**
- * key: dimension
- * @type {Object.<string, module:echarts/coord/parallel/Axis>}
- * @private
- */
- this._axesMap = {};
-
- /**
- * key: dimension
- * value: {position: [], rotation, }
- * @type {Object.<string, Object>}
- * @private
- */
- this._axesLayout = {};
-
- /**
- * Always follow axis order.
- * @type {Array.<string>}
- * @readOnly
- */
- this.dimensions = parallelModel.dimensions;
-
- /**
- * @type {module:zrender/core/BoundingRect}
- */
- this._rect;
-
- /**
- * @type {module:echarts/coord/parallel/ParallelModel}
- */
- this._model = parallelModel;
-
- this._init(parallelModel, ecModel, api);
- }
-
- Parallel.prototype = {
-
- type: 'parallel',
-
- constructor: Parallel,
-
- /**
- * Initialize cartesian coordinate systems
- * @private
- */
- _init: function (parallelModel, ecModel, api) {
-
- var dimensions = parallelModel.dimensions;
- var parallelAxisIndex = parallelModel.parallelAxisIndex;
-
- each(dimensions, function (dim, idx) {
-
- var axisIndex = parallelAxisIndex[idx];
- var axisModel = ecModel.getComponent('parallelAxis', axisIndex);
-
- var axis = this._axesMap[dim] = new ParallelAxis(
- dim,
- axisHelper.createScaleByModel(axisModel),
- [0, 0],
- axisModel.get('type'),
- axisIndex
- );
-
- var isCategory = axis.type === 'category';
- axis.onBand = isCategory && axisModel.get('boundaryGap');
- axis.inverse = axisModel.get('inverse');
-
- // Inject axis into axisModel
- axisModel.axis = axis;
-
- // Inject axisModel into axis
- axis.model = axisModel;
- }, this);
- },
-
- /**
- * Update axis scale after data processed
- * @param {module:echarts/model/Global} ecModel
- * @param {module:echarts/ExtensionAPI} api
- */
- update: function (ecModel, api) {
- this._updateAxesFromSeries(this._model, ecModel);
- },
-
- /**
- * Update properties from series
- * @private
- */
- _updateAxesFromSeries: function (parallelModel, ecModel) {
- ecModel.eachSeries(function (seriesModel) {
-
- if (!parallelModel.contains(seriesModel, ecModel)) {
- return;
- }
-
- var data = seriesModel.getData();
-
- each(this.dimensions, function (dim) {
- var axis = this._axesMap[dim];
- axis.scale.unionExtent(data.getDataExtent(dim));
- axisHelper.niceScaleExtent(axis, axis.model);
- }, this);
- }, this);
- },
-
- /**
- * Resize the parallel coordinate system.
- * @param {module:echarts/coord/parallel/ParallelModel} parallelModel
- * @param {module:echarts/ExtensionAPI} api
- */
- resize: function (parallelModel, api) {
- this._rect = layout.getLayoutRect(
- parallelModel.getBoxLayoutParams(),
- {
- width: api.getWidth(),
- height: api.getHeight()
- }
- );
-
- this._layoutAxes(parallelModel);
- },
-
- /**
- * @return {module:zrender/core/BoundingRect}
- */
- getRect: function () {
- return this._rect;
- },
-
- /**
- * @private
- */
- _layoutAxes: function (parallelModel) {
- var rect = this._rect;
- var layout = parallelModel.get('layout');
- var axes = this._axesMap;
- var dimensions = this.dimensions;
-
- var size = [rect.width, rect.height];
- var sizeIdx = layout === 'horizontal' ? 0 : 1;
- var layoutLength = size[sizeIdx];
- var axisLength = size[1 - sizeIdx];
- var axisExtent = [0, axisLength];
-
- each(axes, function (axis) {
- var idx = axis.inverse ? 1 : 0;
- axis.setExtent(axisExtent[idx], axisExtent[1 - idx]);
- });
-
- each(dimensions, function (dim, idx) {
- var pos = layoutLength * idx / (dimensions.length - 1);
-
- var positionTable = {
- horizontal: {
- x: pos,
- y: axisLength
- },
- vertical: {
- x: 0,
- y: pos
- }
- };
- var rotationTable = {
- horizontal: PI / 2,
- vertical: 0
- };
-
- var position = [
- positionTable[layout].x + rect.x,
- positionTable[layout].y + rect.y
- ];
-
- var rotation = rotationTable[layout];
- var transform = matrix.create();
- matrix.rotate(transform, transform, rotation);
- matrix.translate(transform, transform, position);
-
- // TODO
- // tick等排布信息。
-
- // TODO
- // 根据axis order 更新 dimensions顺序。
-
- this._axesLayout[dim] = {
- position: position,
- rotation: rotation,
- transform: transform,
- tickDirection: 1,
- labelDirection: 1
- };
- }, this);
- },
-
- /**
- * Get axis by dim.
- * @param {string} dim
- * @return {module:echarts/coord/parallel/ParallelAxis} [description]
- */
- getAxis: function (dim) {
- return this._axesMap[dim];
- },
-
- /**
- * Convert a dim value of a single item of series data to Point.
- * @param {*} value
- * @param {string} dim
- * @return {Array}
- */
- dataToPoint: function (value, dim) {
- return this.axisCoordToPoint(
- this._axesMap[dim].dataToCoord(value),
- dim
- );
- },
-
- /**
- * @param {module:echarts/data/List} data
- * @param {Functio} cb param: {string} activeState 'active' or 'inactive' or 'normal'
- * {number} dataIndex
- * @param {Object} context
- */
- eachActiveState: function (data, callback, context) {
- var dimensions = this.dimensions;
- var axesMap = this._axesMap;
- var hasActiveSet = false;
-
- for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
- if (axesMap[dimensions[j]].model.getActiveState() !== 'normal') {
- hasActiveSet = true;
- }
- }
-
- for (var i = 0, len = data.count(); i < len; i++) {
- var values = data.getValues(dimensions, i);
- var activeState;
-
- if (!hasActiveSet) {
- activeState = 'normal';
- }
- else {
- activeState = 'active';
- for (var j = 0, lenj = dimensions.length; j < lenj; j++) {
- var dimName = dimensions[j];
- var state = axesMap[dimName].model.getActiveState(values[j], j);
-
- if (state === 'inactive') {
- activeState = 'inactive';
- break;
- }
- }
- }
-
- callback.call(context, activeState, i);
- }
- },
-
- /**
- * Convert coords of each axis to Point.
- * Return point. For example: [10, 20]
- * @param {Array.<number>} coords
- * @param {string} dim
- * @return {Array.<number>}
- */
- axisCoordToPoint: function (coord, dim) {
- var axisLayout = this._axesLayout[dim];
- var point = [coord, 0];
- vector.applyTransform(point, point, axisLayout.transform);
- return point;
- },
-
- /**
- * Get axis layout.
- */
- getAxisLayout: function (dim) {
- return zrUtil.clone(this._axesLayout[dim]);
- }
-
- };
-
- module.exports = Parallel;
-
-
-/***/ },
-/* 219 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
-
- /**
- * @constructor module:echarts/coord/parallel/ParallelAxis
- * @extends {module:echarts/coord/Axis}
- * @param {string} dim
- * @param {*} scale
- * @param {Array.<number>} coordExtent
- * @param {string} axisType
- */
- var ParallelAxis = function (dim, scale, coordExtent, axisType, axisIndex) {
-
- Axis.call(this, dim, scale, coordExtent);
-
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = axisType || 'value';
-
- /**
- * @type {number}
- * @readOnly
- */
- this.axisIndex = axisIndex;
- };
-
- ParallelAxis.prototype = {
-
- constructor: ParallelAxis,
-
- /**
- * Axis model
- * @param {module:echarts/coord/parallel/AxisModel}
- */
- model: null
-
- };
-
- zrUtil.inherits(ParallelAxis, Axis);
-
- module.exports = ParallelAxis;
-
-
-/***/ },
-/* 220 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var Component = __webpack_require__(19);
-
- __webpack_require__(221);
-
- Component.extend({
-
- type: 'parallel',
-
- dependencies: ['parallelAxis'],
-
- /**
- * @type {module:echarts/coord/parallel/Parallel}
- */
- coordinateSystem: null,
-
- /**
- * Each item like: 'dim0', 'dim1', 'dim2', ...
- * @type {Array.<string>}
- * @readOnly
- */
- dimensions: null,
-
- /**
- * Coresponding to dimensions.
- * @type {Array.<number>}
- * @readOnly
- */
- parallelAxisIndex: null,
-
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 0, // 二级层叠
- left: 80,
- top: 60,
- right: 80,
- bottom: 60,
- // width: {totalWidth} - left - right,
- // height: {totalHeight} - top - bottom,
-
- layout: 'horizontal', // 'horizontal' or 'vertical'
-
- parallelAxisDefault: null
- },
-
- /**
- * @override
- */
- init: function () {
- Component.prototype.init.apply(this, arguments);
-
- this.mergeOption({});
- },
-
- /**
- * @override
- */
- mergeOption: function (newOption) {
- var thisOption = this.option;
-
- newOption && zrUtil.merge(thisOption, newOption, true);
-
- this._initDimensions();
- },
-
- /**
- * Whether series or axis is in this coordinate system.
- * @param {module:echarts/model/Series|module:echarts/coord/parallel/AxisModel} model
- * @param {module:echarts/model/Global} ecModel
- */
- contains: function (model, ecModel) {
- var parallelIndex = model.get('parallelIndex');
- return parallelIndex != null
- && ecModel.getComponent('parallel', parallelIndex) === this;
- },
-
- /**
- * @private
- */
- _initDimensions: function () {
- var dimensions = this.dimensions = [];
- var parallelAxisIndex = this.parallelAxisIndex = [];
-
- var axisModels = zrUtil.filter(this.dependentModels.parallelAxis, function (axisModel) {
- // Can not use this.contains here, because
- // initialization has not been completed yet.
- return axisModel.get('parallelIndex') === this.componentIndex;
- });
-
- zrUtil.each(axisModels, function (axisModel) {
- dimensions.push('dim' + axisModel.get('dim'));
- parallelAxisIndex.push(axisModel.componentIndex);
- });
- }
-
- });
-
-
-
-/***/ },
-/* 221 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var ComponentModel = __webpack_require__(19);
- var zrUtil = __webpack_require__(3);
- var makeStyleMapper = __webpack_require__(11);
- var axisModelCreator = __webpack_require__(121);
- var numberUtil = __webpack_require__(7);
-
- var AxisModel = ComponentModel.extend({
-
- type: 'baseParallelAxis',
-
- /**
- * @type {module:echarts/coord/parallel/Axis}
- */
- axis: null,
-
- /**
- * @type {Array.<Array.<number>}
- * @readOnly
- */
- activeIntervals: [],
-
- /**
- * @return {Object}
- */
- getAreaSelectStyle: function () {
- return makeStyleMapper(
- [
- ['fill', 'color'],
- ['lineWidth', 'borderWidth'],
- ['stroke', 'borderColor'],
- ['width', 'width'],
- ['opacity', 'opacity']
- ]
- ).call(this.getModel('areaSelectStyle'));
- },
-
- /**
- * The code of this feature is put on AxisModel but not ParallelAxis,
- * because axisModel can be alive after echarts updating but instance of
- * ParallelAxis having been disposed. this._activeInterval should be kept
- * when action dispatched (i.e. legend click).
- *
- * @param {Array.<Array<number>>} intervals interval.length === 0
- * means set all active.
- * @public
- */
- setActiveIntervals: function (intervals) {
- var activeIntervals = this.activeIntervals = zrUtil.clone(intervals);
-
- // Normalize
- if (activeIntervals) {
- for (var i = activeIntervals.length - 1; i >= 0; i--) {
- numberUtil.asc(activeIntervals[i]);
- }
- }
- },
-
- /**
- * @param {number|string} [value] When attempting to detect 'no activeIntervals set',
- * value can not be input.
- * @return {string} 'normal': no activeIntervals set,
- * 'active',
- * 'inactive'.
- * @public
- */
- getActiveState: function (value) {
- var activeIntervals = this.activeIntervals;
-
- if (!activeIntervals.length) {
- return 'normal';
- }
-
- if (value == null) {
- return 'inactive';
- }
-
- for (var i = 0, len = activeIntervals.length; i < len; i++) {
- if (activeIntervals[i][0] <= value && value <= activeIntervals[i][1]) {
- return 'active';
- }
- }
- return 'inactive';
- }
-
- });
-
- var defaultOption = {
-
- type: 'value',
-
- /**
- * @type {Array.<number>}
- */
- dim: null, // 0, 1, 2, ...
-
- parallelIndex: null,
-
- areaSelectStyle: {
- width: 20,
- borderWidth: 1,
- borderColor: 'rgba(160,197,232)',
- color: 'rgba(160,197,232)',
- opacity: 0.3
- },
-
- z: 10
- };
-
- zrUtil.merge(AxisModel.prototype, __webpack_require__(123));
-
- function getAxisType(axisName, option) {
- return option.type || (option.data ? 'category' : 'value');
- }
-
- axisModelCreator('parallel', AxisModel, getAxisType, defaultOption);
-
- module.exports = AxisModel;
-
-
-/***/ },
-/* 222 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(217);
- __webpack_require__(223);
- __webpack_require__(224);
-
-
-
-/***/ },
-/* 223 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- var actionInfo = {
- type: 'axisAreaSelect',
- event: 'axisAreaSelected',
- update: 'updateVisual'
- };
-
- /**
- * @payload
- * @property {string} parallelAxisId
- * @property {Array.<Array.<number>>} intervals
- */
- echarts.registerAction(actionInfo, function (payload, ecModel) {
- ecModel.eachComponent(
- {mainType: 'parallelAxis', query: payload},
- function (parallelAxisModel) {
- parallelAxisModel.axis.model.setActiveIntervals(payload.intervals);
- }
- );
-
- });
-
-
-/***/ },
-/* 224 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var AxisBuilder = __webpack_require__(126);
- var SelectController = __webpack_require__(225);
-
- var elementList = ['axisLine', 'axisLabel', 'axisTick', 'axisName'];
-
- var AxisView = __webpack_require__(1).extendComponentView({
-
- type: 'parallelAxis',
-
- /**
- * @type {module:echarts/component/helper/SelectController}
- */
- _selectController: null,
-
- /**
- * @override
- */
- render: function (axisModel, ecModel, api, payload) {
- if (fromAxisAreaSelect(axisModel, ecModel, payload)) {
- return;
- }
-
- this.axisModel = axisModel;
- this.api = api;
-
- this.group.removeAll();
-
- if (!axisModel.get('show')) {
- return;
- }
-
- var coordSys = ecModel.getComponent(
- 'parallel', axisModel.get('parallelIndex')
- ).coordinateSystem;
-
- var areaSelectStyle = axisModel.getAreaSelectStyle();
- var areaWidth = areaSelectStyle.width;
-
- var axisLayout = coordSys.getAxisLayout(axisModel.axis.dim);
- var builderOpt = zrUtil.extend(
- {
- strokeContainThreshold: areaWidth,
- // lineWidth === 0 or no value.
- silent: !(areaWidth > 0) // jshint ignore:line
- },
- axisLayout
- );
-
- var axisBuilder = new AxisBuilder(axisModel, builderOpt);
-
- zrUtil.each(elementList, axisBuilder.add, axisBuilder);
-
- var axisGroup = axisBuilder.getGroup();
-
- this.group.add(axisGroup);
-
- this._buildSelectController(
- axisGroup, areaSelectStyle, axisModel, api
- );
- },
-
- _buildSelectController: function (axisGroup, areaSelectStyle, axisModel, api) {
-
- var axis = axisModel.axis;
- var selectController = this._selectController;
-
- if (!selectController) {
- selectController = this._selectController = new SelectController(
- 'line',
- api.getZr(),
- areaSelectStyle
- );
-
- selectController.on('selected', zrUtil.bind(this._onSelected, this));
- }
-
- selectController.enable(axisGroup);
-
- // After filtering, axis may change, select area needs to be update.
- var ranges = zrUtil.map(axisModel.activeIntervals, function (interval) {
- return [
- axis.dataToCoord(interval[0], true),
- axis.dataToCoord(interval[1], true)
- ];
- });
- selectController.update(ranges);
- },
-
- _onSelected: function (ranges) {
- // Do not cache these object, because the mey be changed.
- var axisModel = this.axisModel;
- var axis = axisModel.axis;
-
- var intervals = zrUtil.map(ranges, function (range) {
- return [
- axis.coordToData(range[0], true),
- axis.coordToData(range[1], true)
- ];
- });
- this.api.dispatchAction({
- type: 'axisAreaSelect',
- parallelAxisId: axisModel.id,
- intervals: intervals
- });
- },
-
- /**
- * @override
- */
- remove: function () {
- this._selectController && this._selectController.disable();
- },
-
- /**
- * @override
- */
- dispose: function () {
- if (this._selectController) {
- this._selectController.dispose();
- this._selectController = null;
- }
- }
- });
-
- function fromAxisAreaSelect(axisModel, ecModel, payload) {
- return payload
- && payload.type === 'axisAreaSelect'
- && ecModel.findComponents(
- {mainType: 'parallelAxis', query: payload}
- )[0] === axisModel;
- }
-
- module.exports = AxisView;
-
-
-/***/ },
-/* 225 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Box selection tool.
- *
- * @module echarts/component/helper/SelectController
- */
-
-
-
- var Eventful = __webpack_require__(32);
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var bind = zrUtil.bind;
- var each = zrUtil.each;
- var mathMin = Math.min;
- var mathMax = Math.max;
- var mathPow = Math.pow;
-
- var COVER_Z = 10000;
- var UNSELECT_THRESHOLD = 2;
- var EVENTS = ['mousedown', 'mousemove', 'mouseup'];
-
- /**
- * @alias module:echarts/component/helper/SelectController
- * @constructor
- * @mixin {module:zrender/mixin/Eventful}
- *
- * @param {string} type 'line', 'rect'
- * @param {module:zrender/zrender~ZRender} zr
- * @param {Object} [opt]
- * @param {number} [opt.width]
- * @param {number} [opt.lineWidth]
- * @param {string} [opt.stroke]
- * @param {string} [opt.fill]
- */
- function SelectController(type, zr, opt) {
-
- Eventful.call(this);
-
- /**
- * @type {string}
- * @readOnly
- */
- this.type = type;
-
- /**
- * @type {module:zrender/zrender~ZRender}
- */
- this.zr = zr;
-
- /**
- * @type {Object}
- * @readOnly
- */
- this.opt = zrUtil.clone(opt);
-
- /**
- * @type {module:zrender/container/Group}
- * @readOnly
- */
- this.group = new graphic.Group();
-
- /**
- * @type {module:zrender/core/BoundingRect}
- */
- this._containerRect = null;
-
- /**
- * @type {Array.<nubmer>}
- * @private
- */
- this._track = [];
-
- /**
- * @type {boolean}
- */
- this._dragging;
-
- /**
- * @type {module:zrender/Element}
- * @private
- */
- this._cover;
-
- /**
- * @type {boolean}
- * @private
- */
- this._disabled = true;
-
- /**
- * @type {Object}
- * @private
- */
- this._handlers = {
- mousedown: bind(mousedown, this),
- mousemove: bind(mousemove, this),
- mouseup: bind(mouseup, this)
- };
-
- each(EVENTS, function (eventName) {
- this.zr.on(eventName, this._handlers[eventName]);
- }, this);
- }
-
- SelectController.prototype = {
-
- constructor: SelectController,
-
- /**
- * @param {module:zrender/mixin/Transformable} container
- * @param {module:zrender/core/BoundingRect|boolean} [rect] If not specified,
- * use container.getBoundingRect().
- * If false, do not use containerRect.
- */
- enable: function (container, rect) {
-
- this._disabled = false;
-
- // Remove from old container.
- removeGroup.call(this);
-
- // boundingRect will change when dragging, so we have
- // to keep initial boundingRect.
- this._containerRect = rect !== false
- ? (rect || container.getBoundingRect()) : null;
-
- // Add to new container.
- container.add(this.group);
- },
-
- /**
- * Update cover location.
- * @param {Array.<number>|Object} ranges If null/undefined, remove cover.
- */
- update: function (ranges) {
- // TODO
- // Only support one interval yet.
- renderCover.call(this, ranges && zrUtil.clone(ranges));
- },
-
- disable: function () {
- this._disabled = true;
-
- removeGroup.call(this);
- },
-
- dispose: function () {
- this.disable();
-
- each(EVENTS, function (eventName) {
- this.zr.off(eventName, this._handlers[eventName]);
- }, this);
- }
- };
-
-
- zrUtil.mixin(SelectController, Eventful);
-
- function updateZ(group) {
- group.traverse(function (el) {
- el.z = COVER_Z;
- });
- }
-
- function isInContainer(x, y) {
- var localPos = this.group.transformCoordToLocal(x, y);
- return !this._containerRect
- || this._containerRect.contain(localPos[0], localPos[1]);
- }
-
- function preventDefault(e) {
- var rawE = e.event;
- rawE.preventDefault && rawE.preventDefault();
- }
-
- function mousedown(e) {
- if (this._disabled || (e.target && e.target.draggable)) {
- return;
- }
-
- preventDefault(e);
-
- var x = e.offsetX;
- var y = e.offsetY;
-
- if (isInContainer.call(this, x, y)) {
- this._dragging = true;
- this._track = [[x, y]];
- }
- }
-
- function mousemove(e) {
- if (!this._dragging || this._disabled) {
- return;
- }
-
- preventDefault(e);
-
- updateViewByCursor.call(this, e);
- }
-
- function mouseup(e) {
- if (!this._dragging || this._disabled) {
- return;
- }
-
- preventDefault(e);
-
- updateViewByCursor.call(this, e, true);
-
- this._dragging = false;
- this._track = [];
- }
-
- function updateViewByCursor(e, isEnd) {
- var x = e.offsetX;
- var y = e.offsetY;
-
- if (isInContainer.call(this, x, y)) {
- this._track.push([x, y]);
-
- // Create or update cover.
- var ranges = shouldShowCover.call(this)
- ? coverRenderers[this.type].getRanges.call(this)
- // Remove cover.
- : [];
-
- renderCover.call(this, ranges);
-
- this.trigger('selected', zrUtil.clone(ranges));
-
- if (isEnd) {
- this.trigger('selectEnd', zrUtil.clone(ranges));
- }
- }
- }
-
- function shouldShowCover() {
- var track = this._track;
-
- if (!track.length) {
- return false;
- }
-
- var p2 = track[track.length - 1];
- var p1 = track[0];
- var dx = p2[0] - p1[0];
- var dy = p2[1] - p1[1];
- var dist = mathPow(dx * dx + dy * dy, 0.5);
-
- return dist > UNSELECT_THRESHOLD;
- }
-
- function renderCover(ranges) {
- var coverRenderer = coverRenderers[this.type];
-
- if (ranges && ranges.length) {
- if (!this._cover) {
- this._cover = coverRenderer.create.call(this);
- this.group.add(this._cover);
- }
- coverRenderer.update.call(this, ranges);
- }
- else {
- this.group.remove(this._cover);
- this._cover = null;
- }
-
- updateZ(this.group);
- }
-
- function removeGroup() {
- // container may 'removeAll' outside.
- var group = this.group;
- var container = group.parent;
- if (container) {
- container.remove(group);
- }
- }
-
- function createRectCover() {
- var opt = this.opt;
- return new graphic.Rect({
- // FIXME
- // customize style.
- style: {
- stroke: opt.stroke,
- fill: opt.fill,
- lineWidth: opt.lineWidth,
- opacity: opt.opacity
- }
- });
- }
-
- function getLocalTrack() {
- return zrUtil.map(this._track, function (point) {
- return this.group.transformCoordToLocal(point[0], point[1]);
- }, this);
- }
-
- function getLocalTrackEnds() {
- var localTrack = getLocalTrack.call(this);
- var tail = localTrack.length - 1;
- tail < 0 && (tail = 0);
- return [localTrack[0], localTrack[tail]];
- }
-
- /**
- * key: this.type
- * @type {Object}
- */
- var coverRenderers = {
-
- line: {
-
- create: createRectCover,
-
- getRanges: function () {
- var ends = getLocalTrackEnds.call(this);
- var min = mathMin(ends[0][0], ends[1][0]);
- var max = mathMax(ends[0][0], ends[1][0]);
-
- return [[min, max]];
- },
-
- update: function (ranges) {
- var range = ranges[0];
- var width = this.opt.width;
- this._cover.setShape({
- x: range[0],
- y: -width / 2,
- width: range[1] - range[0],
- height: width
- });
- }
- },
-
- rect: {
-
- create: createRectCover,
-
- getRanges: function () {
- var ends = getLocalTrackEnds.call(this);
-
- var min = [
- mathMin(ends[1][0], ends[0][0]),
- mathMin(ends[1][1], ends[0][1])
- ];
- var max = [
- mathMax(ends[1][0], ends[0][0]),
- mathMax(ends[1][1], ends[0][1])
- ];
-
- return [[
- [min[0], max[0]], // x range
- [min[1], max[1]] // y range
- ]];
- },
-
- update: function (ranges) {
- var range = ranges[0];
- this._cover.setShape({
- x: range[0][0],
- y: range[1][0],
- width: range[0][1] - range[0][0],
- height: range[1][1] - range[1][0]
- });
- }
- }
- };
-
- module.exports = SelectController;
-
-
-/***/ },
-/* 226 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
-
- module.exports = function (option) {
- createParallelIfNeeded(option);
- mergeAxisOptionFromParallel(option);
- };
-
- /**
- * Create a parallel coordinate if not exists.
- * @inner
- */
- function createParallelIfNeeded(option) {
- if (option.parallel) {
- return;
- }
-
- var hasParallelSeries = false;
-
- zrUtil.each(option.series, function (seriesOpt) {
- if (seriesOpt && seriesOpt.type === 'parallel') {
- hasParallelSeries = true;
- }
- });
-
- if (hasParallelSeries) {
- option.parallel = [{}];
- }
- }
-
- /**
- * Merge aixs definition from parallel option (if exists) to axis option.
- * @inner
- */
- function mergeAxisOptionFromParallel(option) {
- var axes = modelUtil.normalizeToArray(option.parallelAxis);
-
- zrUtil.each(axes, function (axisOption) {
- if (!zrUtil.isObject(axisOption)) {
- return;
- }
-
- var parallelIndex = axisOption.parallelIndex || 0;
- var parallelOption = modelUtil.normalizeToArray(option.parallel)[parallelIndex];
-
- if (parallelOption && parallelOption.parallelAxisDefault) {
- zrUtil.merge(axisOption, parallelOption.parallelAxisDefault, false);
- }
- });
- }
-
-
-
-/***/ },
-/* 227 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var List = __webpack_require__(94);
- var zrUtil = __webpack_require__(3);
- var SeriesModel = __webpack_require__(27);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.parallel',
-
- dependencies: ['parallel'],
-
- getInitialData: function (option, ecModel) {
- var parallelModel = ecModel.getComponent(
- 'parallel', this.get('parallelIndex')
- );
- var dimensions = parallelModel.dimensions;
- var parallelAxisIndices = parallelModel.parallelAxisIndex;
-
- var rawData = option.data;
-
- var dimensionsInfo = zrUtil.map(dimensions, function (dim, index) {
- var axisModel = ecModel.getComponent(
- 'parallelAxis', parallelAxisIndices[index]
- );
- if (axisModel.get('type') === 'category') {
- translateCategoryValue(axisModel, dim, rawData);
- return {name: dim, type: 'ordinal'};
- }
- else {
- return dim;
- }
- });
-
- var list = new List(dimensionsInfo, this);
- list.initData(rawData);
-
- return list;
- },
-
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
-
- coordinateSystem: 'parallel',
- parallelIndex: 0,
-
- // FIXME 尚无用
- label: {
- normal: {
- show: false
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // 'inside'|'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- },
- emphasis: {
- show: false
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
- // 'inside'|'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- }
- },
-
- inactiveOpacity: 0.05,
- activeOpacity: 1,
-
- lineStyle: {
- normal: {
- width: 2,
- opacity: 0.45,
- type: 'solid'
- }
- },
- // smooth: false
-
- animationEasing: 'linear'
- }
- });
-
- function translateCategoryValue(axisModel, dim, rawData) {
- var axisData = axisModel.get('data');
- var numberDim = +dim.replace('dim', '');
-
- if (axisData && axisData.length) {
- zrUtil.each(rawData, function (dataItem) {
- if (!dataItem) {
- return;
- }
- var index = zrUtil.indexOf(axisData, dataItem[numberDim]);
- dataItem[numberDim] = index >= 0 ? index : NaN;
- });
- }
- // FIXME
- // 如果没有设置axis data, 应自动算出,或者提示。
- }
-
-
-/***/ },
-/* 228 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
-
- var ParallelView = __webpack_require__(41).extend({
-
- type: 'parallel',
-
- init: function () {
-
- /**
- * @type {module:zrender/container/Group}
- * @private
- */
- this._dataGroup = new graphic.Group();
-
- this.group.add(this._dataGroup);
- /**
- * @type {module:echarts/data/List}
- */
- this._data;
- },
-
- /**
- * @override
- */
- render: function (seriesModel, ecModel, api, payload) {
-
- var dataGroup = this._dataGroup;
- var data = seriesModel.getData();
- var oldData = this._data;
- var coordSys = seriesModel.coordinateSystem;
- var dimensions = coordSys.dimensions;
-
- data.diff(oldData)
- .add(add)
- .update(update)
- .remove(remove)
- .execute();
-
- // Update style
- data.eachItemGraphicEl(function (elGroup, idx) {
- var itemModel = data.getItemModel(idx);
- var lineStyleModel = itemModel.getModel('lineStyle.normal');
- elGroup.eachChild(function (child) {
- child.setStyle(zrUtil.extend(
- lineStyleModel.getLineStyle(),
- {
- stroke: data.getItemVisual(idx, 'color'),
- opacity: data.getItemVisual(idx, 'opacity')
- }
- ));
- });
- });
-
- // First create
- if (!this._data) {
- dataGroup.setClipPath(createGridClipShape(
- coordSys, seriesModel, function () {
- dataGroup.removeClipPath();
- }
- ));
- }
-
- this._data = data;
-
- function add(newDataIndex) {
- var values = data.getValues(dimensions, newDataIndex);
- var elGroup = new graphic.Group();
- dataGroup.add(elGroup);
-
- eachAxisPair(
- values, dimensions, coordSys,
- function (pointPair, pairIndex) {
- // FIXME
- // init animation
- if (pointPair) {
- elGroup.add(createEl(pointPair));
- }
- }
- );
-
- data.setItemGraphicEl(newDataIndex, elGroup);
- }
-
- function update(newDataIndex, oldDataIndex) {
- var values = data.getValues(dimensions, newDataIndex);
- var elGroup = oldData.getItemGraphicEl(oldDataIndex);
- var newEls = [];
- var elGroupIndex = 0;
-
- eachAxisPair(
- values, dimensions, coordSys,
- function (pointPair, pairIndex) {
- var el = elGroup.childAt(elGroupIndex++);
-
- if (pointPair && !el) {
- newEls.push(createEl(pointPair));
- }
- else if (pointPair) {
- graphic.updateProps(el, {
- shape: {
- points: pointPair
- }
- }, seriesModel);
- }
- }
- );
-
- // Remove redundent els
- for (var i = elGroup.childCount() - 1; i >= elGroupIndex; i--) {
- elGroup.remove(elGroup.childAt(i));
- }
-
- // Add new els
- for (var i = 0, len = newEls.length; i < len; i++) {
- elGroup.add(newEls[i]);
- }
-
- data.setItemGraphicEl(newDataIndex, elGroup);
- }
-
- function remove(oldDataIndex) {
- var elGroup = oldData.getItemGraphicEl(oldDataIndex);
- dataGroup.remove(elGroup);
- }
- },
-
- /**
- * @override
- */
- remove: function () {
- this._dataGroup && this._dataGroup.removeAll();
- this._data = null;
- }
- });
-
- function createGridClipShape(coordSys, seriesModel, cb) {
- var parallelModel = coordSys.model;
- var rect = coordSys.getRect();
- var rectEl = new graphic.Rect({
- shape: {
- x: rect.x,
- y: rect.y,
- width: rect.width,
- height: rect.height
- }
- });
- var dim = parallelModel.get('layout') === 'horizontal' ? 'width' : 'height';
- rectEl.setShape(dim, 0);
- graphic.initProps(rectEl, {
- shape: {
- width: rect.width,
- height: rect.height
- }
- }, seriesModel, cb);
- return rectEl;
- }
-
- function eachAxisPair(values, dimensions, coordSys, cb) {
- for (var i = 0, len = dimensions.length - 1; i < len; i++) {
- var dimA = dimensions[i];
- var dimB = dimensions[i + 1];
- var valueA = values[i];
- var valueB = values[i + 1];
-
- cb(
- (isEmptyValue(valueA, coordSys.getAxis(dimA).type)
- || isEmptyValue(valueB, coordSys.getAxis(dimB).type)
- )
- ? null
- : [
- coordSys.dataToPoint(valueA, dimA),
- coordSys.dataToPoint(valueB, dimB)
- ],
- i
- );
- }
- }
-
- function createEl(pointPair) {
- return new graphic.Polyline({
- shape: {points: pointPair},
- silent: true
- });
- }
-
-
- // FIXME
- // 公用方法?
- function isEmptyValue(val, axisType) {
- return axisType === 'category'
- ? val == null
- : (val == null || isNaN(val)); // axisType === 'value'
- }
-
- module.exports = ParallelView;
-
-
-/***/ },
-/* 229 */
-/***/ function(module, exports) {
-
-
-
- /**
- * @payload
- * @property {string} parallelAxisId
- * @property {Array.<number>} extent
- */
- module.exports = function (ecModel, payload) {
-
- ecModel.eachSeriesByType('parallel', function (seriesModel) {
-
- var itemStyleModel = seriesModel.getModel('itemStyle.normal');
- var globalColors = ecModel.get('color');
-
- var color = itemStyleModel.get('color')
- || globalColors[seriesModel.seriesIndex % globalColors.length];
- var inactiveOpacity = seriesModel.get('inactiveOpacity');
- var activeOpacity = seriesModel.get('activeOpacity');
- var lineStyle = seriesModel.getModel('lineStyle.normal').getLineStyle();
-
- var coordSys = seriesModel.coordinateSystem;
- var data = seriesModel.getData();
-
- var opacityMap = {
- normal: lineStyle.opacity,
- active: activeOpacity,
- inactive: inactiveOpacity
- };
-
- coordSys.eachActiveState(data, function (activeState, dataIndex) {
- data.setItemVisual(dataIndex, 'opacity', opacityMap[activeState]);
- });
-
- data.setVisual('color', color);
- });
- };
-
-
-/***/ },
-/* 230 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(231);
- __webpack_require__(232);
- echarts.registerLayout(__webpack_require__(233));
- echarts.registerVisualCoding('chart', __webpack_require__(235));
-
-
-/***/ },
-/* 231 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var SeriesModel = __webpack_require__(27);
- var createGraphFromNodeEdge = __webpack_require__(191);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.sankey',
-
- layoutInfo: null,
-
- getInitialData: function (option, ecModel) {
- var links = option.edges || option.links;
- var nodes = option.data || option.nodes;
- if (nodes && links) {
- var graph = createGraphFromNodeEdge(nodes, links, this, true);
- return graph.data;
- }
- },
-
- /**
- * @return {module:echarts/data/Graph}
- */
- getGraph: function () {
- return this.getData().graph;
- },
-
- /**
- * return {module:echarts/data/List}
- */
- getEdgeData: function() {
- return this.getGraph().edgeData;
- },
-
- defaultOption: {
- zlevel: 0,
- z: 2,
-
- coordinateSystem: 'view',
-
- layout : null,
-
- // the position of the whole view
- left: '5%',
- top: '5%',
- right: '20%',
- bottom: '5%',
-
- // the dx of the node
- nodeWidth: 20,
-
- // the distance between two nodes
- nodeGap: 8,
-
- // the number of iterations to change the position of the node
- layoutIterations: 32,
-
- label: {
- normal: {
- show: true,
- position: 'right',
- textStyle: {
- color: '#000',
- fontSize: 12
- }
- },
- emphasis: {
- show: true
- }
- },
-
- itemStyle: {
- normal: {
- borderWidth: 1,
- borderColor: '#aaa'
- }
- },
-
- lineStyle: {
- normal: {
- color: '#314656',
- opacity: 0.2,
- curveness: 0.5
- },
- emphasis: {
- opacity: 0.6
- }
- },
-
-
- // colorEncoded node
-
- color: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b','#ffffbf',
- '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],
-
- animationEasing: 'linear',
-
- animationDuration: 1000
- }
-
- });
-
-
-
-/***/ },
-/* 232 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var modelUtil = __webpack_require__(5);
- var zrUtil = __webpack_require__(3);
-
- var SankeyShape = graphic.extendShape({
- shape: {
- x1: 0, y1: 0,
- x2: 0, y2: 0,
- cpx1: 0, cpy1: 0,
- cpx2: 0, cpy2: 0,
-
- extent: 0
- },
-
- buildPath: function (ctx, shape) {
- var halfExtent = shape.extent / 2;
- ctx.moveTo(shape.x1, shape.y1 - halfExtent);
- ctx.bezierCurveTo(
- shape.cpx1, shape.cpy1 - halfExtent,
- shape.cpx2, shape.cpy2 - halfExtent,
- shape.x2, shape.y2 - halfExtent
- );
- ctx.lineTo(shape.x2, shape.y2 + halfExtent);
- ctx.bezierCurveTo(
- shape.cpx2, shape.cpy2 + halfExtent,
- shape.cpx1, shape.cpy1 + halfExtent,
- shape.x1, shape.y1 + halfExtent
- );
- ctx.closePath();
- }
- });
-
- module.exports = __webpack_require__(1).extendChartView({
-
- type: 'sankey',
-
- /**
- * @private
- * @type {module:echarts/chart/sankey/SankeySeries}
- */
- _model: null,
-
- render: function(seriesModel, ecModel, api) {
- var graph = seriesModel.getGraph();
- var group = this.group;
- var layoutInfo = seriesModel.layoutInfo;
-
- this._model = seriesModel;
-
- group.removeAll();
-
- group.position = [layoutInfo.x, layoutInfo.y];
-
- var edgeData = graph.edgeData;
- var rawOption = seriesModel.option;
- var formatModel = modelUtil.createDataFormatModel(
- seriesModel, edgeData, rawOption.edges || rawOption.links
- );
-
- formatModel.formatTooltip = function (dataIndex) {
- var params = this.getDataParams(dataIndex);
- var rawDataOpt = params.data;
- var html = rawDataOpt.source + ' -- ' + rawDataOpt.target;
- if (params.value) {
- html += ':' + params.value;
- }
- return html;
- };
-
- // generate a rect for each node
- graph.eachNode(function (node) {
- var layout = node.getLayout();
- var itemModel = node.getModel();
- var labelModel = itemModel.getModel('label.normal');
- var textStyleModel = labelModel.getModel('textStyle');
- var labelHoverModel = itemModel.getModel('label.emphasis');
- var textStyleHoverModel = labelHoverModel.getModel('textStyle');
-
- var rect = new graphic.Rect({
- shape: {
- x: layout.x,
- y: layout.y,
- width: node.getLayout().dx,
- height: node.getLayout().dy
- },
- style: {
- // Get formatted label in label.normal option. Use node id if it is not specified
- text: labelModel.get('show')
- ? seriesModel.getFormattedLabel(node.dataIndex, 'normal') || node.id
- // Use empty string to hide the label
- : '',
- textFont: textStyleModel.getFont(),
- textFill: textStyleModel.getTextColor(),
- textPosition: labelModel.get('position')
- }
- });
-
- rect.setStyle(zrUtil.defaults(
- {
- fill: node.getVisual('color')
- },
- itemModel.getModel('itemStyle.normal').getItemStyle()
- ));
-
- graphic.setHoverStyle(rect, zrUtil.extend(
- node.getModel('itemStyle.emphasis'),
- {
- text: labelHoverModel.get('show')
- ? seriesModel.getFormattedLabel(node.dataIndex, 'emphasis') || node.id
- : '',
- textFont: textStyleHoverModel.getFont(),
- textFill: textStyleHoverModel.getTextColor(),
- textPosition: labelHoverModel.get('position')
- }
- ));
-
- group.add(rect);
- });
-
- // generate a bezire Curve for each edge
- graph.eachEdge(function (edge) {
- var curve = new SankeyShape();
-
- curve.dataIndex = edge.dataIndex;
- curve.dataModel = formatModel;
-
- var lineStyleModel = edge.getModel('lineStyle.normal');
- var curvature = lineStyleModel.get('curveness');
- var n1Layout = edge.node1.getLayout();
- var n2Layout = edge.node2.getLayout();
- var edgeLayout = edge.getLayout();
-
- curve.shape.extent = Math.max(1, edgeLayout.dy);
-
- var x1 = n1Layout.x + n1Layout.dx;
- var y1 = n1Layout.y + edgeLayout.sy + edgeLayout.dy / 2;
- var x2 = n2Layout.x;
- var y2 = n2Layout.y + edgeLayout.ty + edgeLayout.dy /2;
- var cpx1 = x1 * (1 - curvature) + x2 * curvature;
- var cpy1 = y1;
- var cpx2 = x1 * curvature + x2 * (1 - curvature);
- var cpy2 = y2;
-
- curve.setShape({
- x1: x1,
- y1: y1,
- x2: x2,
- y2: y2,
- cpx1: cpx1,
- cpy1: cpy1,
- cpx2: cpx2,
- cpy2: cpy2
- });
-
- curve.setStyle(lineStyleModel.getItemStyle());
- graphic.setHoverStyle(curve, edge.getModel('lineStyle.emphasis').getItemStyle());
-
- group.add(curve);
-
- });
- if (!this._data) {
- group.setClipPath(createGridClipShape(group.getBoundingRect(), seriesModel, function () {
- group.removeClipPath();
- }));
- }
- this._data = seriesModel.getData();
- }
- });
-
- //add animation to the view
- function createGridClipShape(rect, seriesModel, cb) {
- var rectEl = new graphic.Rect({
- shape: {
- x: rect.x - 10,
- y: rect.y - 10,
- width: 0,
- height: rect.height + 20
- }
- });
- graphic.initProps(rectEl, {
- shape: {
- width: rect.width + 20,
- height: rect.height + 20
- }
- }, seriesModel, cb);
-
- return rectEl;
- }
-
-
-/***/ },
-/* 233 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var layout = __webpack_require__(21);
- var nest = __webpack_require__(234);
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (ecModel, api) {
-
- ecModel.eachSeriesByType('sankey', function (seriesModel) {
-
- var nodeWidth = seriesModel.get('nodeWidth');
- var nodeGap = seriesModel.get('nodeGap');
-
- var layoutInfo = getViewRect(seriesModel, api);
-
- seriesModel.layoutInfo = layoutInfo;
-
- var width = layoutInfo.width;
- var height = layoutInfo.height;
-
- var graph = seriesModel.getGraph();
-
- var nodes = graph.nodes;
- var edges = graph.edges;
-
- computeNodeValues(nodes);
-
- var filteredNodes = nodes.filter(function (node) {
- return node.getLayout().value === 0;
- });
-
- var iterations = filteredNodes.length !== 0
- ? 0 : seriesModel.get('layoutIterations');
-
- layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations);
- });
- };
-
- /**
- * get the layout position of the whole view.
- */
- function getViewRect(seriesModel, api) {
- return layout.getLayoutRect(
- seriesModel.getBoxLayoutParams(), {
- width: api.getWidth(),
- height: api.getHeight()
- }
- );
- }
-
- function layoutSankey(nodes, edges, nodeWidth, nodeGap, width, height, iterations) {
- computeNodeBreadths(nodes, nodeWidth, width);
- computeNodeDepths(nodes, edges, height, nodeGap, iterations);
- computeEdgeDepths(nodes);
- }
-
- /**
- * compute the value of each node by summing the associated edge's value.
- * @param {module:echarts/data/Graph~Node} nodes
- */
- function computeNodeValues(nodes) {
- zrUtil.each(nodes, function (node) {
- var value1 = sum(node.outEdges, getEdgeValue);
- var value2 = sum(node.inEdges, getEdgeValue);
- var value = Math.max(value1, value2);
- node.setLayout({value: value}, true);
- });
- }
-
- /**
- * compute the x-position for each node.
- * @param {module:echarts/data/Graph~Node} nodes
- * @param {number} nodeWidth
- * @param {number} width
- */
- function computeNodeBreadths(nodes, nodeWidth, width) {
- var remainNodes = nodes;
- var nextNode = null;
- var x = 0;
- var kx = 0;
-
- while (remainNodes.length) {
- nextNode = [];
-
- for (var i = 0, len = remainNodes.length; i < len; i++) {
- var node = remainNodes[i];
- node.setLayout({x: x}, true);
- node.setLayout({dx: nodeWidth}, true);
-
- for (var j = 0, lenj = node.outEdges.length; j < lenj; j++) {
- nextNode.push(node.outEdges[j].node2);
- }
- }
- remainNodes = nextNode;
- ++x;
- }
-
- moveSinksRight(nodes, x);
- kx = (width - nodeWidth) / (x - 1);
-
- scaleNodeBreadths(nodes, kx);
- }
-
- /**
- * all the node without outEgdes are assigned maximum breadth and
- * be aligned in the last column.
- * @param {module:echarts/data/Graph~Node} nodes
- * @param {number} x
- */
- function moveSinksRight(nodes, x) {
- zrUtil.each(nodes, function (node) {
- if(!node.outEdges.length) {
- node.setLayout({x: x-1}, true);
- }
- });
- }
-
- /**
- * scale node x-position to the width.
- * @param {module:echarts/data/Graph~Node} nodes
- * @param {number} kx
- */
- function scaleNodeBreadths(nodes, kx) {
- zrUtil.each(nodes, function(node) {
- var nodeX = node.getLayout().x * kx;
- node.setLayout({x: nodeX}, true);
- });
- }
-
- /**
- * using Gauss-Seidel iterations method to compute the node depth(y-position).
- * @param {module:echarts/data/Graph~Node} nodes
- * @param {module:echarts/data/Graph~Edge} edges
- * @param {number} height
- * @param {numbber} nodeGap
- * @param {number} iterations
- */
- function computeNodeDepths(nodes, edges, height, nodeGap, iterations) {
- var nodesByBreadth = nest()
- .key(function (d) {
- return d.getLayout().x;
- })
- .sortKeys(ascending)
- .entries(nodes)
- .map(function (d) {
- return d.values;
- });
-
- initializeNodeDepth(nodes, nodesByBreadth, edges, height, nodeGap);
- resolveCollisions(nodesByBreadth, nodeGap, height);
-
- for (var alpha = 1; iterations > 0; iterations--) {
- alpha *= 0.99;
- relaxRightToLeft(nodesByBreadth, alpha);
- resolveCollisions(nodesByBreadth, nodeGap, height);
- relaxLeftToRight(nodesByBreadth, alpha);
- resolveCollisions(nodesByBreadth, nodeGap, height);
- }
- }
-
- /**
- * compute the original y-position for each node.
- * @param {module:echarts/data/Graph~Node} nodes
- * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
- * @param {module:echarts/data/Graph~Edge} edges
- * @param {number} height
- * @param {number} nodeGap
- */
- function initializeNodeDepth(nodes, nodesByBreadth, edges, height, nodeGap) {
- var kyArray = [];
- zrUtil.each(nodesByBreadth, function (nodes) {
- var n = nodes.length;
- var sum = 0;
- zrUtil.each(nodes, function (node) {
- sum += node.getLayout().value;
- });
- var ky = (height - (n-1) * nodeGap) / sum;
- kyArray.push(ky);
- });
- kyArray.sort(function (a, b) {
- return a - b;
- });
- var ky0 = kyArray[0];
-
- zrUtil.each(nodesByBreadth, function (nodes) {
- zrUtil.each(nodes, function (node, i) {
- node.setLayout({y: i}, true);
- var nodeDy = node.getLayout().value * ky0;
- node.setLayout({dy: nodeDy}, true);
- });
- });
-
- zrUtil.each(edges, function (edge) {
- var edgeDy = +edge.getValue() * ky0;
- edge.setLayout({dy: edgeDy}, true);
- });
- }
-
- /**
- * resolve the collision of initialized depth.
- * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
- * @param {number} nodeGap
- * @param {number} height
- */
- function resolveCollisions(nodesByBreadth, nodeGap, height) {
- zrUtil.each(nodesByBreadth, function (nodes) {
- var node;
- var dy;
- var y0 = 0;
- var n = nodes.length;
- var i;
-
- nodes.sort(ascendingDepth);
-
- for (i = 0; i < n; i++) {
- node = nodes[i];
- dy = y0 - node.getLayout().y;
- if(dy > 0) {
- var nodeY = node.getLayout().y + dy;
- node.setLayout({y: nodeY}, true);
- }
- y0 = node.getLayout().y + node.getLayout().dy + nodeGap;
- }
-
- // if the bottommost node goes outside the biunds, push it back up
- dy = y0 - nodeGap - height;
- if (dy > 0) {
- var nodeY = node.getLayout().y -dy;
- node.setLayout({y: nodeY}, true);
- y0 = node.getLayout().y;
- for (i = n - 2; i >= 0; --i) {
- node = nodes[i];
- dy = node.getLayout().y + node.getLayout().dy + nodeGap - y0;
- if (dy > 0) {
- nodeY = node.getLayout().y - dy;
- node.setLayout({y: nodeY}, true);
- }
- y0 = node.getLayout().y;
- }
- }
- });
- }
-
- /**
- * change the y-position of the nodes, except most the right side nodes.
- * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
- * @param {number} alpha
- */
- function relaxRightToLeft(nodesByBreadth, alpha) {
- zrUtil.each(nodesByBreadth.slice().reverse(), function (nodes) {
- zrUtil.each(nodes, function (node) {
- if (node.outEdges.length) {
- var y = sum(node.outEdges, weightedTarget) / sum(node.outEdges, getEdgeValue);
- var nodeY = node.getLayout().y + (y - center(node)) * alpha;
- node.setLayout({y: nodeY}, true);
- }
- });
- });
- }
-
- function weightedTarget(edge) {
- return center(edge.node2) * edge.getValue();
- }
-
- /**
- * change the y-position of the nodes, except most the left side nodes.
- * @param {Array.<Array.<module:echarts/data/Graph~Node>>} nodesByBreadth
- * @param {number} alpha
- */
- function relaxLeftToRight(nodesByBreadth, alpha) {
- zrUtil.each(nodesByBreadth, function (nodes) {
- zrUtil.each(nodes, function (node) {
- if (node.inEdges.length) {
- var y = sum(node.inEdges, weightedSource) / sum(node.inEdges, getEdgeValue);
- var nodeY = node.getLayout().y + (y - center(node)) * alpha;
- node.setLayout({y: nodeY}, true);
- }
- });
- });
- }
-
- function weightedSource(edge) {
- return center(edge.node1) * edge.getValue();
- }
-
- /**
- * compute the depth(y-position) of each edge.
- * @param {module:echarts/data/Graph~Node} nodes
- */
- function computeEdgeDepths(nodes) {
- zrUtil.each(nodes, function (node) {
- node.outEdges.sort(ascendingTargetDepth);
- node.inEdges.sort(ascendingSourceDepth);
- });
- zrUtil.each(nodes, function (node) {
- var sy = 0;
- var ty = 0;
- zrUtil.each(node.outEdges, function (edge) {
- edge.setLayout({sy: sy}, true);
- sy += edge.getLayout().dy;
- });
- zrUtil.each(node.inEdges, function (edge) {
- edge.setLayout({ty: ty}, true);
- ty += edge.getLayout().dy;
- });
- });
- }
-
- function ascendingTargetDepth(a, b) {
- return a.node2.getLayout().y - b.node2.getLayout().y;
- }
-
- function ascendingSourceDepth(a, b) {
- return a.node1.getLayout().y - b.node1.getLayout().y;
- }
-
- function sum(array, f) {
- var s = 0;
- var n = array.length;
- var a;
- var i = -1;
- if (arguments.length === 1) {
- while (++i < n) {
- a = +array[i];
- if (!isNaN(a)) {
- s += a;
- }
- }
- }
- else {
- while (++i < n) {
- a = +f.call(array, array[i], i);
- if(!isNaN(a)) {
- s += a;
- }
- }
- }
- return s;
- }
-
- function center(node) {
- return node.getLayout().y + node.getLayout().dy / 2;
- }
-
- function ascendingDepth(a, b) {
- return a.getLayout().y - b.getLayout().y;
- }
-
- function ascending(a, b) {
- return a < b ? -1 : a > b ? 1 : a == b ? 0 : NaN;
- }
-
- function getEdgeValue(edge) {
- return edge.getValue();
- }
-
-
-
-/***/ },
-/* 234 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- /**
- * nest helper used to group by the array.
- * can specified the keys and sort the keys.
- */
- function nest() {
-
- var keysFunction = [];
- var sortKeysFunction = [];
-
- /**
- * map an Array into the mapObject.
- * @param {Array} array
- * @param {number} depth
- */
- function map(array, depth) {
- if (depth >= keysFunction.length) {
- return array;
- }
- var i = -1;
- var n = array.length;
- var keyFunction = keysFunction[depth++];
- var mapObject = {};
- var valuesByKey = {};
-
- while (++i < n) {
- var keyValue = keyFunction(array[i]);
- var values = valuesByKey[keyValue];
-
- if (values) {
- values.push(array[i]);
- }
- else {
- valuesByKey[keyValue] = [array[i]];
- }
- }
-
- zrUtil.each(valuesByKey, function (value, key) {
- mapObject[key] = map(value, depth);
- });
-
- return mapObject;
- }
-
- /**
- * transform the Map Object to multidimensional Array
- * @param {Object} map
- * @param {number} depth
- */
- function entriesMap(mapObject, depth) {
- if (depth >= keysFunction.length) {
- return mapObject;
- }
- var array = [];
- var sortKeyFunction = sortKeysFunction[depth++];
-
- zrUtil.each(mapObject, function (value, key) {
- array.push({
- key: key, values: entriesMap(value, depth)
- });
- });
-
- if (sortKeyFunction) {
- return array.sort(function (a, b) {
- return sortKeyFunction(a.key, b.key);
- });
- }
- else {
- return array;
- }
- }
-
- return {
- /**
- * specified the key to groupby the arrays.
- * users can specified one more keys.
- * @param {Function} d
- */
- key: function (d) {
- keysFunction.push(d);
- return this;
- },
-
- /**
- * specified the comparator to sort the keys
- * @param {Function} order
- */
- sortKeys: function (order) {
- sortKeysFunction[keysFunction.length - 1] = order;
- return this;
- },
-
- /**
- * the array to be grouped by.
- * @param {Array} array
- */
- entries: function (array) {
- return entriesMap(map(array, 0), 0);
- }
- };
- }
- module.exports = nest;
-
-
-/***/ },
-/* 235 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var VisualMapping = __webpack_require__(187);
-
- module.exports = function (ecModel, payload) {
- ecModel.eachSeriesByType('sankey', function (seriesModel) {
- var graph = seriesModel.getGraph();
- var nodes = graph.nodes;
-
- nodes.sort(function (a, b) {
- return a.getLayout().value - b.getLayout().value;
- });
-
- var minValue = nodes[0].getLayout().value;
- var maxValue = nodes[nodes.length - 1].getLayout().value;
-
- nodes.forEach(function (node) {
- var mapping = new VisualMapping({
- type: 'color',
- mappingMethod: 'linear',
- dataExtent: [minValue, maxValue],
- visual: seriesModel.get('color')
- });
-
- var mapValueToColor = mapping.mapValueToVisual(node.getLayout().value);
- node.setVisual('color', mapValueToColor);
- });
-
- }) ;
- };
-
-
-/***/ },
-/* 236 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(237);
- __webpack_require__(240);
-
- echarts.registerVisualCoding('chart', __webpack_require__(241));
- echarts.registerLayout(__webpack_require__(242));
-
-
-
-/***/ },
-/* 237 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var SeriesModel = __webpack_require__(27);
- var whiskerBoxCommon = __webpack_require__(238);
-
- var BoxplotSeries = SeriesModel.extend({
-
- type: 'series.boxplot',
-
- dependencies: ['xAxis', 'yAxis', 'grid'],
-
- // TODO
- // box width represents group size, so dimension should have 'size'.
-
- /**
- * @see <https://en.wikipedia.org/wiki/Box_plot>
- * The meanings of 'min' and 'max' depend on user,
- * and echarts do not need to know it.
- * @readOnly
- */
- valueDimensions: ['min', 'Q1', 'median', 'Q3', 'max'],
-
- /**
- * @type {Array.<string>}
- * @readOnly
- */
- dimensions: null,
-
- /**
- * @override
- */
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
- coordinateSystem: 'cartesian2d',
- legendHoverLink: true,
-
- hoverAnimation: true,
-
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- layout: null, // 'horizontal' or 'vertical'
- boxWidth: [7, 50], // [min, max] can be percent of band width.
-
- itemStyle: {
- normal: {
- color: '#fff',
- borderWidth: 1
- },
- emphasis: {
- borderWidth: 2,
- shadowBlur: 5,
- shadowOffsetX: 2,
- shadowOffsetY: 2,
- shadowColor: 'rgba(0,0,0,0.4)'
- }
- },
-
- animationEasing: 'elasticOut',
- animationDuration: 800
- }
- });
-
- zrUtil.mixin(BoxplotSeries, whiskerBoxCommon.seriesModelMixin, true);
-
- module.exports = BoxplotSeries;
-
-
-
-/***/ },
-/* 238 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var List = __webpack_require__(94);
- var completeDimensions = __webpack_require__(96);
- var WhiskerBoxDraw = __webpack_require__(239);
- var zrUtil = __webpack_require__(3);
-
- function getItemValue(item) {
- return item.value == null ? item : item.value;
- }
-
- var seriesModelMixin = {
-
- /**
- * @private
- * @type {string}
- */
- _baseAxisDim: null,
-
- /**
- * @override
- */
- getInitialData: function (option, ecModel) {
- // When both types of xAxis and yAxis are 'value', layout is
- // needed to be specified by user. Otherwise, layout can be
- // judged by which axis is category.
-
- var categories;
-
- var xAxisModel = ecModel.getComponent('xAxis', this.get('xAxisIndex'));
- var yAxisModel = ecModel.getComponent('yAxis', this.get('yAxisIndex'));
- var xAxisType = xAxisModel.get('type');
- var yAxisType = yAxisModel.get('type');
- var addOrdinal;
-
- // FIXME
- // 考虑时间轴
-
- if (xAxisType === 'category') {
- option.layout = 'horizontal';
- categories = xAxisModel.getCategories();
- addOrdinal = true;
- }
- else if (yAxisType === 'category') {
- option.layout = 'vertical';
- categories = yAxisModel.getCategories();
- addOrdinal = true;
- }
- else {
- option.layout = option.layout || 'horizontal';
- }
-
- this._baseAxisDim = option.layout === 'horizontal' ? 'x' : 'y';
-
- var data = option.data;
- var dimensions = this.dimensions = ['base'].concat(this.valueDimensions);
- completeDimensions(dimensions, data);
-
- var list = new List(dimensions, this);
- list.initData(data, categories ? categories.slice() : null, function (dataItem, dimName, idx, dimIdx) {
- var value = getItemValue(dataItem);
- return addOrdinal ? (dimName === 'base' ? idx : value[dimIdx - 1]) : value[dimIdx];
- });
-
- return list;
- },
-
- /**
- * Used by Gird.
- * @param {string} axisDim 'x' or 'y'
- * @return {Array.<string>} dimensions on the axis.
- */
- coordDimToDataDim: function (axisDim) {
- var dims = this.valueDimensions.slice();
- var baseDim = ['base'];
- var map = {
- horizontal: {x: baseDim, y: dims},
- vertical: {x: dims, y: baseDim}
- };
- return map[this.get('layout')][axisDim];
- },
-
- /**
- * @override
- * @param {string|number} dataDim
- * @return {string} coord dimension
- */
- dataDimToCoordDim: function (dataDim) {
- var dim;
-
- zrUtil.each(['x', 'y'], function (coordDim, index) {
- var dataDims = this.coordDimToDataDim(coordDim);
- if (zrUtil.indexOf(dataDims, dataDim) >= 0) {
- dim = coordDim;
- }
- }, this);
-
- return dim;
- },
-
- /**
- * If horizontal, base axis is x, otherwise y.
- * @override
- */
- getBaseAxis: function () {
- var dim = this._baseAxisDim;
- return this.ecModel.getComponent(dim + 'Axis', this.get(dim + 'AxisIndex')).axis;
- }
- };
-
- var viewMixin = {
-
- init: function () {
- /**
- * Old data.
- * @private
- * @type {module:echarts/chart/helper/WhiskerBoxDraw}
- */
- var whiskerBoxDraw = this._whiskerBoxDraw = new WhiskerBoxDraw(
- this.getStyleUpdater()
- );
- this.group.add(whiskerBoxDraw.group);
- },
-
- render: function (seriesModel, ecModel, api) {
- this._whiskerBoxDraw.updateData(seriesModel.getData());
- },
-
- remove: function (ecModel) {
- this._whiskerBoxDraw.remove();
- }
- };
-
- module.exports = {
- seriesModelMixin: seriesModelMixin,
- viewMixin: viewMixin
- };
-
-
-/***/ },
-/* 239 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/Symbol
- */
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var Path = __webpack_require__(44);
-
- var WhiskerPath = Path.extend({
-
- type: 'whiskerInBox',
-
- shape: {},
-
- buildPath: function (ctx, shape) {
- for (var i in shape) {
- if (i.indexOf('ends') === 0) {
- var pts = shape[i];
- ctx.moveTo(pts[0][0], pts[0][1]);
- ctx.lineTo(pts[1][0], pts[1][1]);
- }
- }
- }
- });
-
- /**
- * @constructor
- * @alias {module:echarts/chart/helper/WhiskerBox}
- * @param {module:echarts/data/List} data
- * @param {number} idx
- * @param {Function} styleUpdater
- * @param {boolean} isInit
- * @extends {module:zrender/graphic/Group}
- */
- function WhiskerBox(data, idx, styleUpdater, isInit) {
- graphic.Group.call(this);
-
- /**
- * @type {number}
- * @readOnly
- */
- this.bodyIndex;
-
- /**
- * @type {number}
- * @readOnly
- */
- this.whiskerIndex;
-
- /**
- * @type {Function}
- */
- this.styleUpdater = styleUpdater;
-
- this._createContent(data, idx, isInit);
-
- this.updateData(data, idx, isInit);
-
- /**
- * Last series model.
- * @type {module:echarts/model/Series}
- */
- this._seriesModel;
- }
-
- var whiskerBoxProto = WhiskerBox.prototype;
-
- whiskerBoxProto._createContent = function (data, idx, isInit) {
- var itemLayout = data.getItemLayout(idx);
- var constDim = itemLayout.chartLayout === 'horizontal' ? 1 : 0;
- var count = 0;
-
- // Whisker element.
- this.add(new graphic.Polygon({
- shape: {
- points: isInit
- ? transInit(itemLayout.bodyEnds, constDim, itemLayout)
- : itemLayout.bodyEnds
- },
- style: {strokeNoScale: true},
- z2: 100
- }));
- this.bodyIndex = count++;
-
- // Box element.
- var whiskerEnds = zrUtil.map(itemLayout.whiskerEnds, function (ends) {
- return isInit ? transInit(ends, constDim, itemLayout) : ends;
- });
- this.add(new WhiskerPath({
- shape: makeWhiskerEndsShape(whiskerEnds),
- style: {strokeNoScale: true},
- z2: 100
- }));
- this.whiskerIndex = count++;
- };
-
- function transInit(points, dim, itemLayout) {
- return zrUtil.map(points, function (point) {
- point = point.slice();
- point[dim] = itemLayout.initBaseline;
- return point;
- });
- }
-
- function makeWhiskerEndsShape(whiskerEnds) {
- // zr animation only support 2-dim array.
- var shape = {};
- zrUtil.each(whiskerEnds, function (ends, i) {
- shape['ends' + i] = ends;
- });
- return shape;
- }
-
- /**
- * Update symbol properties
- * @param {module:echarts/data/List} data
- * @param {number} idx
- */
- whiskerBoxProto.updateData = function (data, idx, isInit) {
- var seriesModel = this._seriesModel = data.hostModel;
- var itemLayout = data.getItemLayout(idx);
- var updateMethod = graphic[isInit ? 'initProps' : 'updateProps'];
- // this.childAt(this.bodyIndex).stopAnimation(true);
- // this.childAt(this.whiskerIndex).stopAnimation(true);
- updateMethod(
- this.childAt(this.bodyIndex),
- {shape: {points: itemLayout.bodyEnds}},
- seriesModel
- );
- updateMethod(
- this.childAt(this.whiskerIndex),
- {shape: makeWhiskerEndsShape(itemLayout.whiskerEnds)},
- seriesModel
- );
-
- this.styleUpdater.call(null, this, data, idx);
- };
-
- zrUtil.inherits(WhiskerBox, graphic.Group);
-
-
- /**
- * @constructor
- * @alias module:echarts/chart/helper/WhiskerBoxDraw
- */
- function WhiskerBoxDraw(styleUpdater) {
- this.group = new graphic.Group();
- this.styleUpdater = styleUpdater;
- }
-
- var whiskerBoxDrawProto = WhiskerBoxDraw.prototype;
-
- /**
- * Update symbols draw by new data
- * @param {module:echarts/data/List} data
- */
- whiskerBoxDrawProto.updateData = function (data) {
- var group = this.group;
- var oldData = this._data;
- var styleUpdater = this.styleUpdater;
-
- data.diff(oldData)
- .add(function (newIdx) {
- if (data.hasValue(newIdx)) {
- var symbolEl = new WhiskerBox(data, newIdx, styleUpdater, true);
- data.setItemGraphicEl(newIdx, symbolEl);
- group.add(symbolEl);
- }
- })
- .update(function (newIdx, oldIdx) {
- var symbolEl = oldData.getItemGraphicEl(oldIdx);
-
- // Empty data
- if (!data.hasValue(newIdx)) {
- group.remove(symbolEl);
- return;
- }
-
- if (!symbolEl) {
- symbolEl = new WhiskerBox(data, newIdx, styleUpdater);
- }
- else {
- symbolEl.updateData(data, newIdx);
- }
-
- // Add back
- group.add(symbolEl);
-
- data.setItemGraphicEl(newIdx, symbolEl);
- })
- .remove(function (oldIdx) {
- var el = oldData.getItemGraphicEl(oldIdx);
- el && group.remove(el);
- })
- .execute();
-
- this._data = data;
- };
-
- /**
- * Remove symbols.
- * @param {module:echarts/data/List} data
- */
- whiskerBoxDrawProto.remove = function () {
- var group = this.group;
- var data = this._data;
- this._data = null;
- data && data.eachItemGraphicEl(function (el) {
- el && group.remove(el);
- });
- };
-
- module.exports = WhiskerBoxDraw;
-
-
-/***/ },
-/* 240 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var ChartView = __webpack_require__(41);
- var graphic = __webpack_require__(42);
- var whiskerBoxCommon = __webpack_require__(238);
-
- var BoxplotView = ChartView.extend({
-
- type: 'boxplot',
-
- getStyleUpdater: function () {
- return updateStyle;
- }
- });
-
- zrUtil.mixin(BoxplotView, whiskerBoxCommon.viewMixin, true);
-
- // Update common properties
- var normalStyleAccessPath = ['itemStyle', 'normal'];
- var emphasisStyleAccessPath = ['itemStyle', 'emphasis'];
-
- function updateStyle(itemGroup, data, idx) {
- var itemModel = data.getItemModel(idx);
- var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath);
- var borderColor = data.getItemVisual(idx, 'color');
-
- // Exclude borderColor.
- var itemStyle = normalItemStyleModel.getItemStyle(['borderColor']);
-
- var whiskerEl = itemGroup.childAt(itemGroup.whiskerIndex);
- whiskerEl.style.set(itemStyle);
- whiskerEl.style.stroke = borderColor;
- whiskerEl.dirty();
-
- var bodyEl = itemGroup.childAt(itemGroup.bodyIndex);
- bodyEl.style.set(itemStyle);
- bodyEl.style.stroke = borderColor;
- bodyEl.dirty();
-
- var hoverStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle();
- graphic.setHoverStyle(itemGroup, hoverStyle);
- }
-
- module.exports = BoxplotView;
-
-
-
-/***/ },
-/* 241 */
-/***/ function(module, exports) {
-
-
-
- var borderColorQuery = ['itemStyle', 'normal', 'borderColor'];
-
- module.exports = function (ecModel, api) {
-
- var globalColors = ecModel.get('color');
-
- ecModel.eachRawSeriesByType('boxplot', function (seriesModel) {
-
- var defaulColor = globalColors[seriesModel.seriesIndex % globalColors.length];
- var data = seriesModel.getData();
-
- data.setVisual({
- legendSymbol: 'roundRect',
- // Use name 'color' but not 'borderColor' for legend usage and
- // visual coding from other component like dataRange.
- color: seriesModel.get(borderColorQuery) || defaulColor
- });
-
- // Only visible series has each data be visual encoded
- if (!ecModel.isSeriesFiltered(seriesModel)) {
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- data.setItemVisual(
- idx,
- {color: itemModel.get(borderColorQuery, true)}
- );
- });
- }
- });
-
- };
-
-
-/***/ },
-/* 242 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var parsePercent = numberUtil.parsePercent;
- var each = zrUtil.each;
-
- module.exports = function (ecModel, api) {
-
- var groupResult = groupSeriesByAxis(ecModel);
-
- each(groupResult, function (groupItem) {
- var seriesModels = groupItem.seriesModels;
-
- if (!seriesModels.length) {
- return;
- }
-
- calculateBase(groupItem);
-
- each(seriesModels, function (seriesModel, idx) {
- layoutSingleSeries(
- seriesModel,
- groupItem.boxOffsetList[idx],
- groupItem.boxWidthList[idx]
- );
- });
- });
- };
-
- /**
- * Group series by axis.
- */
- function groupSeriesByAxis(ecModel) {
- var result = [];
- var axisList = [];
-
- ecModel.eachSeriesByType('boxplot', function (seriesModel) {
- var baseAxis = seriesModel.getBaseAxis();
- var idx = zrUtil.indexOf(axisList, baseAxis);
-
- if (idx < 0) {
- idx = axisList.length;
- axisList[idx] = baseAxis;
- result[idx] = {axis: baseAxis, seriesModels: []};
- }
-
- result[idx].seriesModels.push(seriesModel);
- });
-
- return result;
- }
-
- /**
- * Calculate offset and box width for each series.
- */
- function calculateBase(groupItem) {
- var extent;
- var baseAxis = groupItem.axis;
- var seriesModels = groupItem.seriesModels;
- var seriesCount = seriesModels.length;
-
- var boxWidthList = groupItem.boxWidthList = [];
- var boxOffsetList = groupItem.boxOffsetList = [];
- var boundList = [];
-
- var bandWidth;
- if (baseAxis.type === 'category') {
- bandWidth = baseAxis.getBandWidth();
- }
- else {
- var maxDataCount = 0;
- each(seriesModels, function (seriesModel) {
- maxDataCount = Math.max(maxDataCount, seriesModel.getData().count());
- });
- extent = baseAxis.getExtent(),
- Math.abs(extent[1] - extent[0]) / maxDataCount;
- }
-
- each(seriesModels, function (seriesModel) {
- var boxWidthBound = seriesModel.get('boxWidth');
- if (!zrUtil.isArray(boxWidthBound)) {
- boxWidthBound = [boxWidthBound, boxWidthBound];
- }
- boundList.push([
- parsePercent(boxWidthBound[0], bandWidth) || 0,
- parsePercent(boxWidthBound[1], bandWidth) || 0
- ]);
- });
-
- var availableWidth = bandWidth * 0.8 - 2;
- var boxGap = availableWidth / seriesCount * 0.3;
- var boxWidth = (availableWidth - boxGap * (seriesCount - 1)) / seriesCount;
- var base = boxWidth / 2 - availableWidth / 2;
-
- each(seriesModels, function (seriesModel, idx) {
- boxOffsetList.push(base);
- base += boxGap + boxWidth;
-
- boxWidthList.push(
- Math.min(Math.max(boxWidth, boundList[idx][0]), boundList[idx][1])
- );
- });
- }
-
- /**
- * Calculate points location for each series.
- */
- function layoutSingleSeries(seriesModel, offset, boxWidth) {
- var coordSys = seriesModel.coordinateSystem;
- var data = seriesModel.getData();
- var dimensions = seriesModel.dimensions;
- var chartLayout = seriesModel.get('layout');
- var halfWidth = boxWidth / 2;
-
- data.each(dimensions, function () {
- var args = arguments;
- var dimLen = dimensions.length;
- var axisDimVal = args[0];
- var idx = args[dimLen];
- var variableDim = chartLayout === 'horizontal' ? 0 : 1;
- var constDim = 1 - variableDim;
-
- var median = getPoint(args[3]);
- var end1 = getPoint(args[1]);
- var end5 = getPoint(args[5]);
- var whiskerEnds = [
- [end1, getPoint(args[2])],
- [end5, getPoint(args[4])]
- ];
- layEndLine(end1);
- layEndLine(end5);
- layEndLine(median);
-
- var bodyEnds = [];
- addBodyEnd(whiskerEnds[0][1], 0);
- addBodyEnd(whiskerEnds[1][1], 1);
-
- data.setItemLayout(idx, {
- chartLayout: chartLayout,
- initBaseline: median[constDim],
- median: median,
- bodyEnds: bodyEnds,
- whiskerEnds: whiskerEnds
- });
-
- function getPoint(val) {
- var p = [];
- p[variableDim] = axisDimVal;
- p[constDim] = val;
- var point;
- if (isNaN(axisDimVal) || isNaN(val)) {
- point = [NaN, NaN];
- }
- else {
- point = coordSys.dataToPoint(p);
- point[variableDim] += offset;
- }
- return point;
- }
-
- function addBodyEnd(point, start) {
- var point1 = point.slice();
- var point2 = point.slice();
- point1[variableDim] += halfWidth;
- point2[variableDim] -= halfWidth;
- start
- ? bodyEnds.push(point1, point2)
- : bodyEnds.push(point2, point1);
- }
-
- function layEndLine(endCenter) {
- var line = [endCenter.slice(), endCenter.slice()];
- line[0][variableDim] -= halfWidth;
- line[1][variableDim] += halfWidth;
- whiskerEnds.push(line);
- }
- });
- }
-
-
-
-/***/ },
-/* 243 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
-
- __webpack_require__(244);
- __webpack_require__(245);
-
- echarts.registerPreprocessor(
- __webpack_require__(246)
- );
-
- echarts.registerVisualCoding('chart', __webpack_require__(247));
- echarts.registerLayout(__webpack_require__(248));
-
-
-
-/***/ },
-/* 244 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var SeriesModel = __webpack_require__(27);
- var whiskerBoxCommon = __webpack_require__(238);
- var formatUtil = __webpack_require__(6);
- var encodeHTML = formatUtil.encodeHTML;
- var addCommas = formatUtil.addCommas;
-
- var CandlestickSeries = SeriesModel.extend({
-
- type: 'series.candlestick',
-
- dependencies: ['xAxis', 'yAxis', 'grid'],
-
- /**
- * @readOnly
- */
- valueDimensions: ['open', 'close', 'lowest', 'highest'],
-
- /**
- * @type {Array.<string>}
- * @readOnly
- */
- dimensions: null,
-
- /**
- * @override
- */
- defaultOption: {
- zlevel: 0, // 一级层叠
- z: 2, // 二级层叠
- coordinateSystem: 'cartesian2d',
- legendHoverLink: true,
-
- hoverAnimation: true,
-
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- layout: null, // 'horizontal' or 'vertical'
-
- itemStyle: {
- normal: {
- color: '#c23531', // 阳线 positive
- color0: '#314656', // 阴线 negative '#c23531', '#314656'
- borderWidth: 1,
- // FIXME
- // ec2中使用的是lineStyle.color 和 lineStyle.color0
- borderColor: '#c23531',
- borderColor0: '#314656'
- },
- emphasis: {
- borderWidth: 2
- }
- },
-
- animationUpdate: false,
- animationEasing: 'linear',
- animationDuration: 300
- },
-
- /**
- * Get dimension for shadow in dataZoom
- * @return {string} dimension name
- */
- getShadowDim: function () {
- return 'open';
- },
-
- /**
- * @override
- */
- formatTooltip: function (dataIndex, mutipleSeries) {
- // It rearly use mutiple candlestick series in one cartesian,
- // so only consider one series in this default tooltip.
- var valueHTMLArr = zrUtil.map(this.valueDimensions, function (dim) {
- return dim + ': ' + addCommas(this._data.get(dim, dataIndex));
- }, this);
-
- return encodeHTML(this.name) + '<br />' + valueHTMLArr.join('<br />');
- }
-
- });
-
- zrUtil.mixin(CandlestickSeries, whiskerBoxCommon.seriesModelMixin, true);
-
- module.exports = CandlestickSeries;
-
-
-
-/***/ },
-/* 245 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var ChartView = __webpack_require__(41);
- var graphic = __webpack_require__(42);
- var whiskerBoxCommon = __webpack_require__(238);
-
- var CandlestickView = ChartView.extend({
-
- type: 'candlestick',
-
- getStyleUpdater: function () {
- return updateStyle;
- }
-
- });
-
- zrUtil.mixin(CandlestickView, whiskerBoxCommon.viewMixin, true);
-
- // Update common properties
- var normalStyleAccessPath = ['itemStyle', 'normal'];
- var emphasisStyleAccessPath = ['itemStyle', 'emphasis'];
-
- function updateStyle(itemGroup, data, idx) {
- var itemModel = data.getItemModel(idx);
- var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath);
- var color = data.getItemVisual(idx, 'color');
- var borderColor = data.getItemVisual(idx, 'borderColor');
-
- // Color must be excluded.
- // Because symbol provide setColor individually to set fill and stroke
- var itemStyle = normalItemStyleModel.getItemStyle(
- ['color', 'color0', 'borderColor', 'borderColor0']
- );
-
- var whiskerEl = itemGroup.childAt(itemGroup.whiskerIndex);
- whiskerEl.style.set(itemStyle);
- whiskerEl.style.stroke = borderColor;
- whiskerEl.dirty();
-
- var bodyEl = itemGroup.childAt(itemGroup.bodyIndex);
- bodyEl.style.set(itemStyle);
- bodyEl.style.fill = color;
- bodyEl.style.stroke = borderColor;
- bodyEl.dirty();
-
- var hoverStyle = itemModel.getModel(emphasisStyleAccessPath).getItemStyle();
- graphic.setHoverStyle(itemGroup, hoverStyle);
- }
-
-
- module.exports = CandlestickView;
-
-
-
-/***/ },
-/* 246 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (option) {
- if (!option || !zrUtil.isArray(option.series)) {
- return;
- }
-
- // Translate 'k' to 'candlestick'.
- zrUtil.each(option.series, function (seriesItem) {
- if (zrUtil.isObject(seriesItem) && seriesItem.type === 'k') {
- seriesItem.type = 'candlestick';
- }
- });
- };
-
-
-
-/***/ },
-/* 247 */
-/***/ function(module, exports) {
-
-
-
- var positiveBorderColorQuery = ['itemStyle', 'normal', 'borderColor'];
- var negativeBorderColorQuery = ['itemStyle', 'normal', 'borderColor0'];
- var positiveColorQuery = ['itemStyle', 'normal', 'color'];
- var negativeColorQuery = ['itemStyle', 'normal', 'color0'];
-
- module.exports = function (ecModel, api) {
-
- ecModel.eachRawSeriesByType('candlestick', function (seriesModel) {
-
- var data = seriesModel.getData();
-
- data.setVisual({
- legendSymbol: 'roundRect'
- });
-
- // Only visible series has each data be visual encoded
- if (!ecModel.isSeriesFiltered(seriesModel)) {
- data.each(function (idx) {
- var itemModel = data.getItemModel(idx);
- var sign = data.getItemLayout(idx).sign;
-
- data.setItemVisual(
- idx,
- {
- color: itemModel.get(
- sign > 0 ? positiveColorQuery : negativeColorQuery
- ),
- borderColor: itemModel.get(
- sign > 0 ? positiveBorderColorQuery : negativeBorderColorQuery
- )
- }
- );
- });
- }
- });
-
- };
-
-
-/***/ },
-/* 248 */
-/***/ function(module, exports) {
-
-
-
- var CANDLE_MIN_WIDTH = 2;
- var CANDLE_MIN_NICE_WIDTH = 5;
- var GPA_MIN = 4;
-
- module.exports = function (ecModel, api) {
-
- ecModel.eachSeriesByType('candlestick', function (seriesModel) {
-
- var coordSys = seriesModel.coordinateSystem;
- var data = seriesModel.getData();
- var dimensions = seriesModel.dimensions;
- var chartLayout = seriesModel.get('layout');
-
- var candleWidth = calculateCandleWidth(seriesModel, data);
-
- data.each(dimensions, function () {
- var args = arguments;
- var dimLen = dimensions.length;
- var axisDimVal = args[0];
- var idx = args[dimLen];
- var variableDim = chartLayout === 'horizontal' ? 0 : 1;
- var constDim = 1 - variableDim;
-
- var openVal = args[1];
- var closeVal = args[2];
- var lowestVal = args[3];
- var highestVal = args[4];
-
- var ocLow = Math.min(openVal, closeVal);
- var ocHigh = Math.max(openVal, closeVal);
-
- var ocLowPoint = getPoint(ocLow);
- var ocHighPoint = getPoint(ocHigh);
- var lowestPoint = getPoint(lowestVal);
- var highestPoint = getPoint(highestVal);
-
- var whiskerEnds = [
- [highestPoint, ocHighPoint],
- [lowestPoint, ocLowPoint]
- ];
-
- var bodyEnds = [];
- addBodyEnd(ocHighPoint, 0);
- addBodyEnd(ocLowPoint, 1);
-
- data.setItemLayout(idx, {
- chartLayout: chartLayout,
- sign: openVal > closeVal ? -1 : openVal < closeVal ? 1 : 0,
- initBaseline: openVal > closeVal
- ? ocHighPoint[constDim] : ocLowPoint[constDim], // open point.
- bodyEnds: bodyEnds,
- whiskerEnds: whiskerEnds
- });
-
- function getPoint(val) {
- var p = [];
- p[variableDim] = axisDimVal;
- p[constDim] = val;
- return (isNaN(axisDimVal) || isNaN(val))
- ? [NaN, NaN]
- : coordSys.dataToPoint(p);
- }
-
- function addBodyEnd(point, start) {
- var point1 = point.slice();
- var point2 = point.slice();
- point1[variableDim] += candleWidth / 2;
- point2[variableDim] -= candleWidth / 2;
- start
- ? bodyEnds.push(point1, point2)
- : bodyEnds.push(point2, point1);
- }
-
- }, true);
- });
- };
-
- function calculateCandleWidth(seriesModel, data) {
- var baseAxis = seriesModel.getBaseAxis();
- var extent;
-
- var bandWidth = baseAxis.type === 'category'
- ? baseAxis.getBandWidth()
- : (
- extent = baseAxis.getExtent(),
- Math.abs(extent[1] - extent[0]) / data.count()
- );
-
- // Half band width is perfect when space is enouph, otherwise
- // try not to be smaller than CANDLE_MIN_NICE_WIDTH (and only
- // gap is compressed), otherwise ensure not to be smaller than
- // CANDLE_MIN_WIDTH in spite of overlap.
-
- return bandWidth / 2 - 2 > CANDLE_MIN_NICE_WIDTH // "- 2" is minus border width
- ? bandWidth / 2 - 2
- : bandWidth - CANDLE_MIN_NICE_WIDTH > GPA_MIN
- ? CANDLE_MIN_NICE_WIDTH
- : Math.max(bandWidth - GPA_MIN, CANDLE_MIN_WIDTH);
- }
-
-
-
-/***/ },
-/* 249 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
-
- __webpack_require__(250);
- __webpack_require__(251);
-
- echarts.registerVisualCoding('chart', zrUtil.curry(
- __webpack_require__(103), 'effectScatter', 'circle', null
- ));
- echarts.registerLayout(zrUtil.curry(
- __webpack_require__(104), 'effectScatter'
- ));
-
-
-/***/ },
-/* 250 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var createListFromArray = __webpack_require__(93);
- var SeriesModel = __webpack_require__(27);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.effectScatter',
-
- dependencies: ['grid', 'polar'],
-
- getInitialData: function (option, ecModel) {
- var list = createListFromArray(option.data, this, ecModel);
- return list;
- },
-
- defaultOption: {
- coordinateSystem: 'cartesian2d',
- zlevel: 0,
- z: 2,
- legendHoverLink: true,
-
- effectType: 'ripple',
-
- // When to show the effect, option: 'render'|'emphasis'
- showEffectOn: 'render',
-
- // Ripple effect config
- rippleEffect: {
- period: 4,
- // Scale of ripple
- scale: 2.5,
- // Brush type can be fill or stroke
- brushType: 'fill'
- },
-
- // Cartesian coordinate system
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- // Polar coordinate system
- polarIndex: 0,
-
- // Geo coordinate system
- geoIndex: 0,
-
- // symbol: null, // 图形类型
- symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
- // symbolRotate: null, // 图形旋转控制
-
- // large: false,
- // Available when large is true
- // largeThreshold: 2000,
-
- // itemStyle: {
- // normal: {
- // opacity: 1
- // }
- // }
- }
- });
-
-
-/***/ },
-/* 251 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var SymbolDraw = __webpack_require__(98);
- var EffectSymbol = __webpack_require__(252);
-
- __webpack_require__(1).extendChartView({
-
- type: 'effectScatter',
-
- init: function () {
- this._symbolDraw = new SymbolDraw(EffectSymbol);
- },
-
- render: function (seriesModel, ecModel, api) {
- var data = seriesModel.getData();
- var effectSymbolDraw = this._symbolDraw;
- effectSymbolDraw.updateData(data);
- this.group.add(effectSymbolDraw.group);
- },
-
- updateLayout: function () {
- this._symbolDraw.updateLayout();
- },
-
- remove: function (ecModel, api) {
- this._symbolDraw && this._symbolDraw.remove(api);
- }
- });
-
-
-/***/ },
-/* 252 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Symbol with ripple effect
- * @module echarts/chart/helper/EffectSymbol
- */
-
-
- var zrUtil = __webpack_require__(3);
- var symbolUtil = __webpack_require__(100);
- var graphic = __webpack_require__(42);
- var numberUtil = __webpack_require__(7);
- var Symbol = __webpack_require__(99);
- var Group = graphic.Group;
-
- var EFFECT_RIPPLE_NUMBER = 3;
-
- function normalizeSymbolSize(symbolSize) {
- if (!zrUtil.isArray(symbolSize)) {
- symbolSize = [+symbolSize, +symbolSize];
- }
- return symbolSize;
- }
- /**
- * @constructor
- * @param {module:echarts/data/List} data
- * @param {number} idx
- * @extends {module:zrender/graphic/Group}
- */
- function EffectSymbol(data, idx) {
- Group.call(this);
-
- var symbol = new Symbol(data, idx);
- var rippleGroup = new Group();
- this.add(symbol);
- this.add(rippleGroup);
-
- rippleGroup.beforeUpdate = function () {
- this.attr(symbol.getScale());
- };
- this.updateData(data, idx);
- }
-
- var effectSymbolProto = EffectSymbol.prototype;
-
- effectSymbolProto.stopEffectAnimation = function () {
- this.childAt(1).removeAll();
- };
-
- effectSymbolProto.startEffectAnimation = function (
- period, brushType, rippleScale, effectOffset, z, zlevel
- ) {
- var symbolType = this._symbolType;
- var color = this._color;
-
- var rippleGroup = this.childAt(1);
-
- for (var i = 0; i < EFFECT_RIPPLE_NUMBER; i++) {
- var ripplePath = symbolUtil.createSymbol(
- symbolType, -0.5, -0.5, 1, 1, color
- );
- ripplePath.attr({
- style: {
- stroke: brushType === 'stroke' ? color : null,
- fill: brushType === 'fill' ? color : null,
- strokeNoScale: true
- },
- z2: 99,
- silent: true,
- scale: [1, 1],
- z: z,
- zlevel: zlevel
- });
-
- var delay = -i / EFFECT_RIPPLE_NUMBER * period + effectOffset;
- // TODO Configurable period
- ripplePath.animate('', true)
- .when(period, {
- scale: [rippleScale, rippleScale]
- })
- .delay(delay)
- .start();
- ripplePath.animateStyle(true)
- .when(period, {
- opacity: 0
- })
- .delay(delay)
- .start();
-
- rippleGroup.add(ripplePath);
- }
- };
-
- /**
- * Highlight symbol
- */
- effectSymbolProto.highlight = function () {
- this.trigger('emphasis');
- };
-
- /**
- * Downplay symbol
- */
- effectSymbolProto.downplay = function () {
- this.trigger('normal');
- };
-
- /**
- * Update symbol properties
- * @param {module:echarts/data/List} data
- * @param {number} idx
- */
- effectSymbolProto.updateData = function (data, idx) {
- var seriesModel = data.hostModel;
-
- this.childAt(0).updateData(data, idx);
-
- var rippleGroup = this.childAt(1);
- var itemModel = data.getItemModel(idx);
- var symbolType = data.getItemVisual(idx, 'symbol');
- var symbolSize = normalizeSymbolSize(data.getItemVisual(idx, 'symbolSize'));
- var color = data.getItemVisual(idx, 'color');
-
- rippleGroup.attr('scale', symbolSize);
-
- rippleGroup.traverse(function (ripplePath) {
- ripplePath.attr({
- fill: color
- });
- });
-
- var symbolOffset = itemModel.getShallow('symbolOffset');
- if (symbolOffset) {
- var pos = rippleGroup.position;
- pos[0] = numberUtil.parsePercent(symbolOffset[0], symbolSize[0]);
- pos[1] = numberUtil.parsePercent(symbolOffset[1], symbolSize[1]);
- }
-
- this._symbolType = symbolType;
- this._color = color;
-
- var showEffectOn = seriesModel.get('showEffectOn');
- var rippleScale = itemModel.get('rippleEffect.scale');
- var brushType = itemModel.get('rippleEffect.brushType');
- var effectPeriod = itemModel.get('rippleEffect.period') * 1000;
- var effectOffset = idx / data.count();
- var z = itemModel.getShallow('z') || 0;
- var zlevel = itemModel.getShallow('zlevel') || 0;
-
- this.stopEffectAnimation();
- if (showEffectOn === 'render') {
- this.startEffectAnimation(
- effectPeriod, brushType, rippleScale, effectOffset, z, zlevel
- );
- }
- var symbol = this.childAt(0);
- function onEmphasis() {
- symbol.trigger('emphasis');
- if (showEffectOn !== 'render') {
- this.startEffectAnimation(
- effectPeriod, brushType, rippleScale, effectOffset, z, zlevel
- );
- }
- }
- function onNormal() {
- symbol.trigger('normal');
- if (showEffectOn !== 'render') {
- this.stopEffectAnimation();
- }
- }
- this.on('mouseover', onEmphasis, this)
- .on('mouseout', onNormal, this)
- .on('emphasis', onEmphasis, this)
- .on('normal', onNormal, this);
- };
-
- effectSymbolProto.fadeOut = function (cb) {
- cb && cb();
- };
-
- zrUtil.inherits(EffectSymbol, Group);
-
- module.exports = EffectSymbol;
-
-
-/***/ },
-/* 253 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(254);
- __webpack_require__(255);
-
- var zrUtil = __webpack_require__(3);
- var echarts = __webpack_require__(1);
- echarts.registerLayout(
- __webpack_require__(257)
- );
-
- echarts.registerVisualCoding(
- 'chart', zrUtil.curry(__webpack_require__(88), 'lines', 'lineStyle')
- );
-
-
-/***/ },
-/* 254 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var SeriesModel = __webpack_require__(27);
- var List = __webpack_require__(94);
- var zrUtil = __webpack_require__(3);
- var CoordinateSystem = __webpack_require__(25);
-
- module.exports = SeriesModel.extend({
-
- type: 'series.lines',
-
- dependencies: ['grid', 'polar'],
-
- getInitialData: function (option, ecModel) {
- var fromDataArr = [];
- var toDataArr = [];
- var lineDataArr = [];
- zrUtil.each(option.data, function (opt) {
- fromDataArr.push(opt[0]);
- toDataArr.push(opt[1]);
- lineDataArr.push(zrUtil.extend(
- zrUtil.extend({}, zrUtil.isArray(opt[0]) ? null : opt[0]),
- zrUtil.isArray(opt[1]) ? null : opt[1]
- ));
- });
-
- // var coordSys = option.coordinateSystem;
- // if (coordSys !== 'cartesian2d' && coordSys !== 'geo') {
- // throw new Error('Coordinate system can only be cartesian2d or geo in lines');
- // }
-
- // var dimensions = coordSys === 'geo' ? ['lng', 'lat'] : ['x', 'y'];
- var coordSys = CoordinateSystem.get(option.coordinateSystem);
- if (!coordSys) {
- throw new Error('Invalid coordinate system');
- }
- var dimensions = coordSys.dimensions;
-
- var fromData = new List(dimensions, this);
- var toData = new List(dimensions, this);
- var lineData = new List(['value'], this);
-
- function geoCoordGetter(item, dim, dataIndex, dimIndex) {
- return item.coord && item.coord[dimIndex];
- }
-
- fromData.initData(fromDataArr, null, geoCoordGetter);
- toData.initData(toDataArr, null, geoCoordGetter);
- lineData.initData(lineDataArr);
-
- this.fromData = fromData;
- this.toData = toData;
-
- return lineData;
- },
-
- formatTooltip: function (dataIndex) {
- var fromName = this.fromData.getName(dataIndex);
- var toName = this.toData.getName(dataIndex);
- return fromName + ' > ' + toName;
- },
-
- defaultOption: {
- coordinateSystem: 'geo',
- zlevel: 0,
- z: 2,
- legendHoverLink: true,
-
- hoverAnimation: true,
- // Cartesian coordinate system
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- // Geo coordinate system
- geoIndex: 0,
-
- // symbol: null,
- // symbolSize: 10,
- // symbolRotate: null,
-
- effect: {
- show: false,
- period: 4,
- symbol: 'circle',
- symbolSize: 3,
- // Length of trail, 0 - 1
- trailLength: 0.2
- // Same with lineStyle.normal.color
- // color
- },
-
- large: false,
- // Available when large is true
- largeThreshold: 2000,
-
- label: {
- normal: {
- show: false,
- position: 'end'
- // distance: 5,
- // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
- }
- },
- // itemStyle: {
- // normal: {
- // }
- // },
- lineStyle: {
- normal: {
- opacity: 0.5
- }
- }
- }
- });
-
-
-/***/ },
-/* 255 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var LineDraw = __webpack_require__(194);
- var EffectLine = __webpack_require__(256);
- var Line = __webpack_require__(195);
-
- __webpack_require__(1).extendChartView({
-
- type: 'lines',
-
- init: function () {},
-
- render: function (seriesModel, ecModel, api) {
- var data = seriesModel.getData();
- var lineDraw = this._lineDraw;
-
- var hasEffect = seriesModel.get('effect.show');
- if (hasEffect !== this._hasEffet) {
- if (lineDraw) {
- lineDraw.remove();
- }
- lineDraw = this._lineDraw = new LineDraw(
- hasEffect ? EffectLine : Line
- );
- this._hasEffet = hasEffect;
- }
-
- var zlevel = seriesModel.get('zlevel');
- var trailLength = seriesModel.get('effect.trailLength');
-
- var zr = api.getZr();
- // Avoid the drag cause ghost shadow
- // FIXME Better way ?
- zr.painter.getLayer(zlevel).clear(true);
- // Config layer with motion blur
- if (this._lastZlevel != null) {
- zr.configLayer(this._lastZlevel, {
- motionBlur: false
- });
- }
- if (hasEffect && trailLength) {
- zr.configLayer(zlevel, {
- motionBlur: true,
- lastFrameAlpha: Math.max(Math.min(trailLength / 10 + 0.9, 1), 0)
- });
- }
-
- this.group.add(lineDraw.group);
-
- lineDraw.updateData(data);
-
- this._lastZlevel = zlevel;
- },
-
- updateLayout: function (seriesModel, ecModel, api) {
- this._lineDraw.updateLayout();
- // Not use motion when dragging or zooming
- var zr = api.getZr();
- zr.painter.getLayer(this._lastZlevel).clear(true);
- },
-
- remove: function (ecModel, api) {
- this._lineDraw && this._lineDraw.remove(api, true);
- }
- });
-
-
-/***/ },
-/* 256 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/chart/helper/EffectLine
- */
-
-
- var graphic = __webpack_require__(42);
- var Line = __webpack_require__(195);
- var zrUtil = __webpack_require__(3);
- var symbolUtil = __webpack_require__(100);
-
- var curveUtil = __webpack_require__(49);
-
- /**
- * @constructor
- * @extends {module:zrender/graphic/Group}
- * @alias {module:echarts/chart/helper/Line}
- */
- function EffectLine(lineData, fromData, toData, idx) {
- graphic.Group.call(this);
-
- var line = new Line(lineData, fromData, toData, idx);
- this.add(line);
-
- this._updateEffectSymbol(lineData, idx);
- }
-
- var effectLineProto = EffectLine.prototype;
-
- function setAnimationPoints(symbol, points) {
- symbol.__p1 = points[0];
- symbol.__p2 = points[1];
- symbol.__cp1 = points[2] || [
- (points[0][0] + points[1][0]) / 2,
- (points[0][1] + points[1][1]) / 2
- ];
- }
-
- function updateSymbolPosition() {
- var p1 = this.__p1;
- var p2 = this.__p2;
- var cp1 = this.__cp1;
- var t = this.__t;
- var pos = this.position;
- var quadraticAt = curveUtil.quadraticAt;
- var quadraticDerivativeAt = curveUtil.quadraticDerivativeAt;
- pos[0] = quadraticAt(p1[0], cp1[0], p2[0], t);
- pos[1] = quadraticAt(p1[1], cp1[1], p2[1], t);
-
- // Tangent
- var tx = quadraticDerivativeAt(p1[0], cp1[0], p2[0], t);
- var ty = quadraticDerivativeAt(p1[1], cp1[1], p2[1], t);
-
- this.rotation = -Math.atan2(ty, tx) - Math.PI / 2;
-
- this.ignore = false;
- }
-
- effectLineProto._updateEffectSymbol = function (lineData, idx) {
- var itemModel = lineData.getItemModel(idx);
- var effectModel = itemModel.getModel('effect');
- var size = effectModel.get('symbolSize');
- var symbolType = effectModel.get('symbol');
- if (!zrUtil.isArray(size)) {
- size = [size, size];
- }
- var color = effectModel.get('color') || lineData.getItemVisual(idx, 'color');
- var symbol = this.childAt(1);
- var period = effectModel.get('period') * 1000;
- if (this._symbolType !== symbolType || period !== this._period) {
- symbol = symbolUtil.createSymbol(
- symbolType, -0.5, -0.5, 1, 1, color
- );
- symbol.ignore = true;
- symbol.z2 = 100;
- this._symbolType = symbolType;
- this._period = period;
-
- this.add(symbol);
-
- symbol.__t = 0;
- symbol.animate('', true)
- .when(period, {
- __t: 1
- })
- .delay(idx / lineData.count() * period / 2)
- .during(zrUtil.bind(updateSymbolPosition, symbol))
- .start();
- }
- // Shadow color is same with color in default
- symbol.setStyle('shadowColor', color);
- symbol.setStyle(effectModel.getItemStyle(['color']));
-
- symbol.attr('scale', size);
- var points = lineData.getItemLayout(idx);
- setAnimationPoints(symbol, points);
-
- symbol.setColor(color);
- symbol.attr('scale', size);
- };
-
- effectLineProto.updateData = function (lineData, fromData, toData, idx) {
- this.childAt(0).updateData(lineData, fromData, toData, idx);
- this._updateEffectSymbol(lineData, idx);
- };
-
- effectLineProto.updateLayout = function (lineData, fromData, toData, idx) {
- this.childAt(0).updateLayout(lineData, fromData, toData, idx);
- var symbol = this.childAt(1);
- var points = lineData.getItemLayout(idx);
- setAnimationPoints(symbol, points);
- };
-
- zrUtil.inherits(EffectLine, graphic.Group);
-
- module.exports = EffectLine;
-
-
-/***/ },
-/* 257 */
-/***/ function(module, exports) {
-
-
-
- module.exports = function (ecModel) {
- ecModel.eachSeriesByType('lines', function (seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
- var fromData = seriesModel.fromData;
- var toData = seriesModel.toData;
- var lineData = seriesModel.getData();
-
- var dims = coordSys.dimensions;
- fromData.each(dims, function (x, y, idx) {
- fromData.setItemLayout(idx, coordSys.dataToPoint([x, y]));
- });
- toData.each(dims, function (x, y, idx) {
- toData.setItemLayout(idx, coordSys.dataToPoint([x, y]));
- });
- lineData.each(function (idx) {
- var p1 = fromData.getItemLayout(idx);
- var p2 = toData.getItemLayout(idx);
- var curveness = lineData.getItemModel(idx).get('lineStyle.normal.curveness');
- var cp1;
- if (curveness > 0) {
- cp1 = [
- (p1[0] + p2[0]) / 2 - (p1[1] - p2[1]) * curveness,
- (p1[1] + p2[1]) / 2 - (p2[0] - p1[0]) * curveness
- ];
- }
- lineData.setItemLayout(idx, [p1, p2, cp1]);
- });
- });
- };
-
-
-/***/ },
-/* 258 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(259);
- __webpack_require__(260);
-
-
-/***/ },
-/* 259 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var SeriesModel = __webpack_require__(27);
- var createListFromArray = __webpack_require__(93);
-
- module.exports = SeriesModel.extend({
- type: 'series.heatmap',
-
- getInitialData: function (option, ecModel) {
- return createListFromArray(option.data, this, ecModel);
- },
-
- defaultOption: {
-
- // Cartesian2D or geo
- coordinateSystem: 'cartesian2d',
-
- zlevel: 0,
-
- z: 2,
-
- // Cartesian coordinate system
- xAxisIndex: 0,
- yAxisIndex: 0,
-
- // Geo coordinate system
- geoIndex: 0,
-
- blurSize: 30,
-
- pointSize: 20,
-
- maxOpacity: 1,
-
- minOpacity: 0
- }
- });
-
-
-/***/ },
-/* 260 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var graphic = __webpack_require__(42);
- var HeatmapLayer = __webpack_require__(261);
- var zrUtil = __webpack_require__(3);
-
- function getIsInPiecewiseRange(dataExtent, pieceList, selected) {
- var dataSpan = dataExtent[1] - dataExtent[0];
- pieceList = zrUtil.map(pieceList, function (piece) {
- return {
- interval: [
- (piece.interval[0] - dataExtent[0]) / dataSpan,
- (piece.interval[1] - dataExtent[0]) / dataSpan
- ]
- };
- });
- var len = pieceList.length;
- var lastIndex = 0;
- return function (val) {
- // Try to find in the location of the last found
- for (var i = lastIndex; i < len; i++) {
- var interval = pieceList[i].interval;
- if (interval[0] <= val && val <= interval[1]) {
- lastIndex = i;
- break;
- }
- }
- if (i === len) { // Not found, back interation
- for (var i = lastIndex - 1; i >= 0; i--) {
- var interval = pieceList[i].interval;
- if (interval[0] <= val && val <= interval[1]) {
- lastIndex = i;
- break;
- }
- }
- }
- return i >= 0 && i < len && selected[i];
- };
- }
-
- function getIsInContinuousRange(dataExtent, range) {
- var dataSpan = dataExtent[1] - dataExtent[0];
- range = [
- (range[0] - dataExtent[0]) / dataSpan,
- (range[1] - dataExtent[0]) / dataSpan
- ];
- return function (val) {
- return val >= range[0] && val <= range[1];
- };
- }
-
- function isGeoCoordSys(coordSys) {
- var dimensions = coordSys.dimensions;
- // Not use coorSys.type === 'geo' because coordSys maybe extended
- return dimensions[0] === 'lng' && dimensions[1] === 'lat';
- }
-
- module.exports = __webpack_require__(1).extendChartView({
-
- type: 'heatmap',
-
- render: function (seriesModel, ecModel, api) {
- var visualMapOfThisSeries;
- ecModel.eachComponent('visualMap', function (visualMap) {
- visualMap.eachTargetSeries(function (targetSeries) {
- if (targetSeries === seriesModel) {
- visualMapOfThisSeries = visualMap;
- }
- });
- });
-
- if (!visualMapOfThisSeries) {
- throw new Error('Heatmap must use with visualMap');
- }
-
- this.group.removeAll();
- var coordSys = seriesModel.coordinateSystem;
- if (coordSys.type === 'cartesian2d') {
- this._renderOnCartesian(coordSys, seriesModel, api);
- }
- else if (isGeoCoordSys(coordSys)) {
- this._renderOnGeo(
- coordSys, seriesModel, visualMapOfThisSeries, api
- );
- }
- },
-
- _renderOnCartesian: function (cartesian, seriesModel, api) {
- var xAxis = cartesian.getAxis('x');
- var yAxis = cartesian.getAxis('y');
- var group = this.group;
-
- if (!(xAxis.type === 'category' && yAxis.type === 'category')) {
- throw new Error('Heatmap on cartesian must have two category axes');
- }
- if (!(xAxis.onBand && yAxis.onBand)) {
- throw new Error('Heatmap on cartesian must have two axes with boundaryGap true');
- }
- var width = xAxis.getBandWidth();
- var height = yAxis.getBandWidth();
-
- var data = seriesModel.getData();
- data.each(['x', 'y', 'z'], function (x, y, z, idx) {
- var itemModel = data.getItemModel(idx);
- var point = cartesian.dataToPoint([x, y]);
- // Ignore empty data
- if (isNaN(z)) {
- return;
- }
- var rect = new graphic.Rect({
- shape: {
- x: point[0] - width / 2,
- y: point[1] - height / 2,
- width: width,
- height: height
- },
- style: {
- fill: data.getItemVisual(idx, 'color')
- }
- });
- var style = itemModel.getModel('itemStyle.normal').getItemStyle(['color']);
- var hoverStl = itemModel.getModel('itemStyle.emphasis').getItemStyle();
- var labelModel = itemModel.getModel('label.normal');
- var hoverLabelModel = itemModel.getModel('label.emphasis');
-
- var rawValue = seriesModel.getRawValue(idx);
- var defaultText = '-';
- if (rawValue && rawValue[2] != null) {
- defaultText = rawValue[2];
- }
- if (labelModel.get('show')) {
- graphic.setText(style, labelModel);
- style.text = seriesModel.getFormattedLabel(idx, 'normal') || defaultText;
- }
- if (hoverLabelModel.get('show')) {
- graphic.setText(hoverStl, hoverLabelModel);
- hoverStl.text = seriesModel.getFormattedLabel(idx, 'emphasis') || defaultText;
- }
-
- rect.setStyle(style);
-
- graphic.setHoverStyle(rect, hoverStl);
-
- group.add(rect);
- data.setItemGraphicEl(idx, rect);
- });
- },
-
- _renderOnGeo: function (geo, seriesModel, visualMapModel, api) {
- var inRangeVisuals = visualMapModel.targetVisuals.inRange;
- var outOfRangeVisuals = visualMapModel.targetVisuals.outOfRange;
- // if (!visualMapping) {
- // throw new Error('Data range must have color visuals');
- // }
-
- var data = seriesModel.getData();
- var hmLayer = this._hmLayer || (this._hmLayer || new HeatmapLayer());
- hmLayer.blurSize = seriesModel.get('blurSize');
- hmLayer.pointSize = seriesModel.get('pointSize');
- hmLayer.minOpacity = seriesModel.get('minOpacity');
- hmLayer.maxOpacity = seriesModel.get('maxOpacity');
-
- var rect = geo.getViewRect().clone();
- var roamTransform = geo.getRoamTransform();
- rect.applyTransform(roamTransform);
-
- // Clamp on viewport
- var x = Math.max(rect.x, 0);
- var y = Math.max(rect.y, 0);
- var x2 = Math.min(rect.width + rect.x, api.getWidth());
- var y2 = Math.min(rect.height + rect.y, api.getHeight());
- var width = x2 - x;
- var height = y2 - y;
-
- var points = data.mapArray(['lng', 'lat', 'value'], function (lng, lat, value) {
- var pt = geo.dataToPoint([lng, lat]);
- pt[0] -= x;
- pt[1] -= y;
- pt.push(value);
- return pt;
- });
-
- var dataExtent = visualMapModel.getExtent();
- var isInRange = visualMapModel.type === 'visualMap.continuous'
- ? getIsInContinuousRange(dataExtent, visualMapModel.option.range)
- : getIsInPiecewiseRange(
- dataExtent, visualMapModel.getPieceList(), visualMapModel.option.selected
- );
-
- hmLayer.update(
- points, width, height,
- inRangeVisuals.color.getNormalizer(),
- {
- inRange: inRangeVisuals.color.getColorMapper(),
- outOfRange: outOfRangeVisuals.color.getColorMapper()
- },
- isInRange
- );
- var img = new graphic.Image({
- style: {
- width: width,
- height: height,
- x: x,
- y: y,
- image: hmLayer.canvas
- },
- silent: true
- });
- this.group.add(img);
- }
- });
-
-
-/***/ },
-/* 261 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file defines echarts Heatmap Chart
- * @author Ovilia (me@zhangwenli.com)
- * Inspired by https://github.com/mourner/simpleheat
- *
- * @module
- */
-
-
- var GRADIENT_LEVELS = 256;
- var zrUtil = __webpack_require__(3);
-
- /**
- * Heatmap Chart
- *
- * @class
- */
- function Heatmap() {
- var canvas = zrUtil.createCanvas();
- this.canvas = canvas;
-
- this.blurSize = 30;
- this.pointSize = 20;
-
- this.maxOpacity = 1;
- this.minOpacity = 0;
-
- this._gradientPixels = {};
- }
-
- Heatmap.prototype = {
- /**
- * Renders Heatmap and returns the rendered canvas
- * @param {Array} data array of data, each has x, y, value
- * @param {number} width canvas width
- * @param {number} height canvas height
- */
- update: function(data, width, height, normalize, colorFunc, isInRange) {
- var brush = this._getBrush();
- var gradientInRange = this._getGradient(data, colorFunc, 'inRange');
- var gradientOutOfRange = this._getGradient(data, colorFunc, 'outOfRange');
- var r = this.pointSize + this.blurSize;
-
- var canvas = this.canvas;
- var ctx = canvas.getContext('2d');
- var len = data.length;
- canvas.width = width;
- canvas.height = height;
- for (var i = 0; i < len; ++i) {
- var p = data[i];
- var x = p[0];
- var y = p[1];
- var value = p[2];
-
- // calculate alpha using value
- var alpha = normalize(value);
-
- // draw with the circle brush with alpha
- ctx.globalAlpha = alpha;
- ctx.drawImage(brush, x - r, y - r);
- }
-
- // colorize the canvas using alpha value and set with gradient
- var imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
- var pixels = imageData.data;
- var offset = 0;
- var pixelLen = pixels.length;
- var minOpacity = this.minOpacity;
- var maxOpacity = this.maxOpacity;
- var diffOpacity = maxOpacity - minOpacity;
-
- while(offset < pixelLen) {
- var alpha = pixels[offset + 3] / 256;
- var gradientOffset = Math.floor(alpha * (GRADIENT_LEVELS - 1)) * 4;
- // Simple optimize to ignore the empty data
- if (alpha > 0) {
- var gradient = isInRange(alpha) ? gradientInRange : gradientOutOfRange;
- // Any alpha > 0 will be mapped to [minOpacity, maxOpacity]
- alpha > 0 && (alpha = alpha * diffOpacity + minOpacity);
- pixels[offset++] = gradient[gradientOffset];
- pixels[offset++] = gradient[gradientOffset + 1];
- pixels[offset++] = gradient[gradientOffset + 2];
- pixels[offset++] = gradient[gradientOffset + 3] * alpha * 256;
- }
- else {
- offset += 4;
- }
- }
- ctx.putImageData(imageData, 0, 0);
-
- return canvas;
- },
-
- /**
- * get canvas of a black circle brush used for canvas to draw later
- * @private
- * @returns {Object} circle brush canvas
- */
- _getBrush: function() {
- var brushCanvas = this._brushCanvas || (this._brushCanvas = zrUtil.createCanvas());
- // set brush size
- var r = this.pointSize + this.blurSize;
- var d = r * 2;
- brushCanvas.width = d;
- brushCanvas.height = d;
-
- var ctx = brushCanvas.getContext('2d');
- ctx.clearRect(0, 0, d, d);
-
- // in order to render shadow without the distinct circle,
- // draw the distinct circle in an invisible place,
- // and use shadowOffset to draw shadow in the center of the canvas
- ctx.shadowOffsetX = d;
- ctx.shadowBlur = this.blurSize;
- // draw the shadow in black, and use alpha and shadow blur to generate
- // color in color map
- ctx.shadowColor = '#000';
-
- // draw circle in the left to the canvas
- ctx.beginPath();
- ctx.arc(-r, r, this.pointSize, 0, Math.PI * 2, true);
- ctx.closePath();
- ctx.fill();
- return brushCanvas;
- },
-
- /**
- * get gradient color map
- * @private
- */
- _getGradient: function (data, colorFunc, state) {
- var gradientPixels = this._gradientPixels;
- var pixelsSingleState = gradientPixels[state] || (gradientPixels[state] = new Uint8ClampedArray(256 * 4));
- var color = [];
- var off = 0;
- for (var i = 0; i < 256; i++) {
- colorFunc[state](i / 255, true, color);
- pixelsSingleState[off++] = color[0];
- pixelsSingleState[off++] = color[1];
- pixelsSingleState[off++] = color[2];
- pixelsSingleState[off++] = color[3];
- }
- return pixelsSingleState;
- }
- };
-
- module.exports = Heatmap;
-
-
-
-/***/ },
-/* 262 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * Legend component entry file8
- */
-
-
- __webpack_require__(263);
- __webpack_require__(264);
- __webpack_require__(265);
-
- var echarts = __webpack_require__(1);
- // Series Filter
- echarts.registerProcessor('filter', __webpack_require__(267));
-
-
-/***/ },
-/* 263 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var Model = __webpack_require__(8);
-
- var LegendModel = __webpack_require__(1).extendComponentModel({
-
- type: 'legend',
-
- dependencies: ['series'],
-
- layoutMode: {
- type: 'box',
- ignoreSize: true
- },
-
- init: function (option, parentModel, ecModel) {
- this.mergeDefaultAndTheme(option, ecModel);
-
- option.selected = option.selected || {};
-
- this._updateData(ecModel);
-
- var legendData = this._data;
- // If has any selected in option.selected
- var selectedMap = this.option.selected;
- // If selectedMode is single, try to select one
- if (legendData[0] && this.get('selectedMode') === 'single') {
- var hasSelected = false;
- for (var name in selectedMap) {
- if (selectedMap[name]) {
- this.select(name);
- hasSelected = true;
- }
- }
- // Try select the first if selectedMode is single
- !hasSelected && this.select(legendData[0].get('name'));
- }
- },
-
- mergeOption: function (option) {
- LegendModel.superCall(this, 'mergeOption', option);
-
- this._updateData(this.ecModel);
- },
-
- _updateData: function (ecModel) {
- var legendData = zrUtil.map(this.get('data') || [], function (dataItem) {
- if (typeof dataItem === 'string') {
- dataItem = {
- name: dataItem
- };
- }
- return new Model(dataItem, this, this.ecModel);
- }, this);
- this._data = legendData;
-
- var availableNames = zrUtil.map(ecModel.getSeries(), function (series) {
- return series.name;
- });
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.legendDataProvider) {
- var data = seriesModel.legendDataProvider();
- availableNames = availableNames.concat(data.mapArray(data.getName));
- }
- });
- /**
- * @type {Array.<string>}
- * @private
- */
- this._availableNames = availableNames;
- },
-
- /**
- * @return {Array.<module:echarts/model/Model>}
- */
- getData: function () {
- return this._data;
- },
-
- /**
- * @param {string} name
- */
- select: function (name) {
- var selected = this.option.selected;
- var selectedMode = this.get('selectedMode');
- if (selectedMode === 'single') {
- var data = this._data;
- zrUtil.each(data, function (dataItem) {
- selected[dataItem.get('name')] = false;
- });
- }
- selected[name] = true;
- },
-
- /**
- * @param {string} name
- */
- unSelect: function (name) {
- if (this.get('selectedMode') !== 'single') {
- this.option.selected[name] = false;
- }
- },
-
- /**
- * @param {string} name
- */
- toggleSelected: function (name) {
- var selected = this.option.selected;
- // Default is true
- if (!(name in selected)) {
- selected[name] = true;
- }
- this[selected[name] ? 'unSelect' : 'select'](name);
- },
-
- /**
- * @param {string} name
- */
- isSelected: function (name) {
- var selected = this.option.selected;
- return !((name in selected) && !selected[name])
- && zrUtil.indexOf(this._availableNames, name) >= 0;
- },
-
- defaultOption: {
- // 一级层叠
- zlevel: 0,
- // 二级层叠
- z: 4,
- show: true,
-
- // 布局方式,默认为水平布局,可选为:
- // 'horizontal' | 'vertical'
- orient: 'horizontal',
-
- left: 'center',
- // right: 'center',
-
- top: 'top',
- // bottom: 'top',
-
- // 水平对齐
- // 'auto' | 'left' | 'right'
- // 默认为 'auto', 根据 x 的位置判断是左对齐还是右对齐
- align: 'auto',
-
- backgroundColor: 'rgba(0,0,0,0)',
- // 图例边框颜色
- borderColor: '#ccc',
- // 图例边框线宽,单位px,默认为0(无边框)
- borderWidth: 0,
- // 图例内边距,单位px,默认各方向内边距为5,
- // 接受数组分别设定上右下左边距,同css
- padding: 5,
- // 各个item之间的间隔,单位px,默认为10,
- // 横向布局时为水平间隔,纵向布局时为纵向间隔
- itemGap: 10,
- // 图例图形宽度
- itemWidth: 25,
- // 图例图形高度
- itemHeight: 14,
- textStyle: {
- // 图例文字颜色
- color: '#333'
- },
- // formatter: '',
- // 选择模式,默认开启图例开关
- selectedMode: true
- // 配置默认选中状态,可配合LEGEND.SELECTED事件做动态数据载入
- // selected: null,
- // 图例内容(详见legend.data,数组中每一项代表一个item
- // data: [],
- }
- });
-
- module.exports = LegendModel;
-
-
-/***/ },
-/* 264 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Legend action
- */
-
-
- var echarts = __webpack_require__(1);
- var zrUtil = __webpack_require__(3);
-
- function legendSelectActionHandler(methodName, payload, ecModel) {
- var selectedMap = {};
- var isToggleSelect = methodName === 'toggleSelected';
- var isSelected;
- // Update all legend components
- ecModel.eachComponent('legend', function (legendModel) {
- if (isToggleSelect && isSelected != null) {
- // Force other legend has same selected status
- // Or the first is toggled to true and other are toggled to false
- // In the case one legend has some item unSelected in option. And if other legend
- // doesn't has the item, they will assume it is selected.
- legendModel[isSelected ? 'select' : 'unSelect'](payload.name);
- }
- else {
- legendModel[methodName](payload.name);
- isSelected = legendModel.isSelected(payload.name);
- }
- var legendData = legendModel.getData();
- zrUtil.each(legendData, function (model) {
- var name = model.get('name');
- // Wrap element
- if (name === '\n' || name === '') {
- return;
- }
- var isItemSelected = legendModel.isSelected(name);
- if (name in selectedMap) {
- // Unselected if any legend is unselected
- selectedMap[name] = selectedMap[name] && isItemSelected;
- }
- else {
- selectedMap[name] = isItemSelected;
- }
- });
- });
- // Return the event explicitly
- return {
- name: payload.name,
- selected: selectedMap
- };
- }
- /**
- * @event legendToggleSelect
- * @type {Object}
- * @property {string} type 'legendToggleSelect'
- * @property {string} [from]
- * @property {string} name Series name or data item name
- */
- echarts.registerAction(
- 'legendToggleSelect', 'legendselectchanged',
- zrUtil.curry(legendSelectActionHandler, 'toggleSelected')
- );
-
- /**
- * @event legendSelect
- * @type {Object}
- * @property {string} type 'legendSelect'
- * @property {string} name Series name or data item name
- */
- echarts.registerAction(
- 'legendSelect', 'legendselected',
- zrUtil.curry(legendSelectActionHandler, 'select')
- );
-
- /**
- * @event legendUnSelect
- * @type {Object}
- * @property {string} type 'legendUnSelect'
- * @property {string} name Series name or data item name
- */
- echarts.registerAction(
- 'legendUnSelect', 'legendunselected',
- zrUtil.curry(legendSelectActionHandler, 'unSelect')
- );
-
-
-/***/ },
-/* 265 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var symbolCreator = __webpack_require__(100);
- var graphic = __webpack_require__(42);
- var listComponentHelper = __webpack_require__(266);
-
- var curry = zrUtil.curry;
-
- var LEGEND_DISABLE_COLOR = '#ccc';
-
- function dispatchSelectAction(name, api) {
- api.dispatchAction({
- type: 'legendToggleSelect',
- name: name
- });
- }
-
- function dispatchHighlightAction(seriesModel, dataName, api) {
- seriesModel.get('legendHoverLink') && api.dispatchAction({
- type: 'highlight',
- seriesName: seriesModel.name,
- name: dataName
- });
- }
-
- function dispatchDownplayAction(seriesModel, dataName, api) {
- seriesModel.get('legendHoverLink') && api.dispatchAction({
- type: 'downplay',
- seriesName: seriesModel.name,
- name: dataName
- });
- }
-
- module.exports = __webpack_require__(1).extendComponentView({
-
- type: 'legend',
-
- init: function () {
- this._symbolTypeStore = {};
- },
-
- render: function (legendModel, ecModel, api) {
- var group = this.group;
- group.removeAll();
-
- if (!legendModel.get('show')) {
- return;
- }
-
- var selectMode = legendModel.get('selectedMode');
- var itemAlign = legendModel.get('align');
-
- if (itemAlign === 'auto') {
- itemAlign = (legendModel.get('left') === 'right'
- && legendModel.get('orient') === 'vertical')
- ? 'right' : 'left';
- }
-
- var legendItemMap = {};
- var legendDrawedMap = {};
- zrUtil.each(legendModel.getData(), function (itemModel) {
- var seriesName = itemModel.get('name');
- // Use empty string or \n as a newline string
- if (seriesName === '' || seriesName === '\n') {
- group.add(new graphic.Group({
- newline: true
- }));
- }
-
- var seriesModel = ecModel.getSeriesByName(seriesName)[0];
-
- legendItemMap[seriesName] = itemModel;
-
- if (!seriesModel || legendDrawedMap[seriesName]) {
- // Series not exists
- return;
- }
-
- var data = seriesModel.getData();
- var color = data.getVisual('color');
-
- // If color is a callback function
- if (typeof color === 'function') {
- // Use the first data
- color = color(seriesModel.getDataParams(0));
- }
-
- // Using rect symbol defaultly
- var legendSymbolType = data.getVisual('legendSymbol') || 'roundRect';
- var symbolType = data.getVisual('symbol');
-
- var itemGroup = this._createItem(
- seriesName, itemModel, legendModel,
- legendSymbolType, symbolType,
- itemAlign, color,
- selectMode
- );
-
- itemGroup.on('click', curry(dispatchSelectAction, seriesName, api))
- .on('mouseover', curry(dispatchHighlightAction, seriesModel, '', api))
- .on('mouseout', curry(dispatchDownplayAction, seriesModel, '', api));
-
- legendDrawedMap[seriesName] = true;
- }, this);
-
- ecModel.eachRawSeries(function (seriesModel) {
- if (seriesModel.legendDataProvider) {
- var data = seriesModel.legendDataProvider();
- data.each(function (idx) {
- var name = data.getName(idx);
-
- // Avoid mutiple series use the same data name
- if (!legendItemMap[name] || legendDrawedMap[name]) {
- return;
- }
-
- var color = data.getItemVisual(idx, 'color');
-
- var legendSymbolType = 'roundRect';
-
- var itemGroup = this._createItem(
- name, legendItemMap[name], legendModel,
- legendSymbolType, null,
- itemAlign, color,
- selectMode
- );
-
- itemGroup.on('click', curry(dispatchSelectAction, name, api))
- // FIXME Should not specify the series name
- .on('mouseover', curry(dispatchHighlightAction, seriesModel, name, api))
- .on('mouseout', curry(dispatchDownplayAction, seriesModel, name, api));
-
- legendDrawedMap[name] = true;
- }, false, this);
- }
- }, this);
-
- listComponentHelper.layout(group, legendModel, api);
- // Render background after group is layout
- // FIXME
- listComponentHelper.addBackground(group, legendModel);
- },
-
- _createItem: function (
- name, itemModel, legendModel,
- legendSymbolType, symbolType,
- itemAlign, color, selectMode
- ) {
- var itemWidth = legendModel.get('itemWidth');
- var itemHeight = legendModel.get('itemHeight');
-
- var isSelected = legendModel.isSelected(name);
- var itemGroup = new graphic.Group();
-
- var textStyleModel = itemModel.getModel('textStyle');
-
- var itemIcon = itemModel.get('icon');
-
- // Use user given icon first
- legendSymbolType = itemIcon || legendSymbolType;
- itemGroup.add(symbolCreator.createSymbol(
- legendSymbolType, 0, 0, itemWidth, itemHeight, isSelected ? color : LEGEND_DISABLE_COLOR
- ));
-
- // Compose symbols
- // PENDING
- if (!itemIcon && symbolType
- // At least show one symbol, can't be all none
- && ((symbolType !== legendSymbolType) || symbolType == 'none')
- ) {
- var size = itemHeight * 0.8;
- if (symbolType === 'none') {
- symbolType = 'circle';
- }
- // Put symbol in the center
- itemGroup.add(symbolCreator.createSymbol(
- symbolType, (itemWidth - size) / 2, (itemHeight - size) / 2, size, size,
- isSelected ? color : LEGEND_DISABLE_COLOR
- ));
- }
-
- // Text
- var textX = itemAlign === 'left' ? itemWidth + 5 : -5;
- var textAlign = itemAlign;
-
- var formatter = legendModel.get('formatter');
- if (typeof formatter === 'string' && formatter) {
- name = formatter.replace('{name}', name);
- }
- else if (typeof formatter === 'function') {
- name = formatter(name);
- }
-
- var text = new graphic.Text({
- style: {
- text: name,
- x: textX,
- y: itemHeight / 2,
- fill: isSelected ? textStyleModel.getTextColor() : LEGEND_DISABLE_COLOR,
- textFont: textStyleModel.getFont(),
- textAlign: textAlign,
- textVerticalAlign: 'middle'
- }
- });
- itemGroup.add(text);
-
- // Add a invisible rect to increase the area of mouse hover
- itemGroup.add(new graphic.Rect({
- shape: itemGroup.getBoundingRect(),
- invisible: true
- }));
-
- itemGroup.eachChild(function (child) {
- child.silent = !selectMode;
- });
-
- this.group.add(itemGroup);
-
- graphic.setHoverStyle(itemGroup);
-
- return itemGroup;
- }
- });
-
-
-/***/ },
-/* 266 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- // List layout
- var layout = __webpack_require__(21);
- var formatUtil = __webpack_require__(6);
- var graphic = __webpack_require__(42);
-
- function positionGroup(group, model, api) {
- layout.positionGroup(
- group, model.getBoxLayoutParams(),
- {
- width: api.getWidth(),
- height: api.getHeight()
- },
- model.get('padding')
- );
- }
-
- module.exports = {
- /**
- * Layout list like component.
- * It will box layout each items in group of component and then position the whole group in the viewport
- * @param {module:zrender/group/Group} group
- * @param {module:echarts/model/Component} componentModel
- * @param {module:echarts/ExtensionAPI}
- */
- layout: function (group, componentModel, api) {
- var rect = layout.getLayoutRect(componentModel.getBoxLayoutParams(), {
- width: api.getWidth(),
- height: api.getHeight()
- }, componentModel.get('padding'));
- layout.box(
- componentModel.get('orient'),
- group,
- componentModel.get('itemGap'),
- rect.width,
- rect.height
- );
-
- positionGroup(group, componentModel, api);
- },
-
- addBackground: function (group, componentModel) {
- var padding = formatUtil.normalizeCssArray(
- componentModel.get('padding')
- );
- var boundingRect = group.getBoundingRect();
- var style = componentModel.getItemStyle(['color', 'opacity']);
- style.fill = componentModel.get('backgroundColor');
- var rect = new graphic.Rect({
- shape: {
- x: boundingRect.x - padding[3],
- y: boundingRect.y - padding[0],
- width: boundingRect.width + padding[1] + padding[3],
- height: boundingRect.height + padding[0] + padding[2]
- },
- style: style,
- silent: true,
- z2: -1
- });
- graphic.subPixelOptimizeRect(rect);
-
- group.add(rect);
- }
- };
-
-
-/***/ },
-/* 267 */
-/***/ function(module, exports) {
-
-
- module.exports = function (ecModel) {
- var legendModels = ecModel.findComponents({
- mainType: 'legend'
- });
- if (legendModels && legendModels.length) {
- ecModel.filterSeries(function (series) {
- // If in any legend component the status is not selected.
- // Because in legend series is assumed selected when it is not in the legend data.
- for (var i = 0; i < legendModels.length; i++) {
- if (!legendModels[i].isSelected(series.name)) {
- return false;
- }
- }
- return true;
- });
- }
- };
-
-
-/***/ },
-/* 268 */
-/***/ function(module, exports, __webpack_require__) {
-
- // FIXME Better way to pack data in graphic element
-
-
- __webpack_require__(269);
-
- __webpack_require__(270);
-
- // Show tip action
- /**
- * @action
- * @property {string} type
- * @property {number} seriesIndex
- * @property {number} dataIndex
- * @property {number} [x]
- * @property {number} [y]
- */
- __webpack_require__(1).registerAction(
- {
- type: 'showTip',
- event: 'showTip',
- update: 'none'
- },
- // noop
- function () {}
- );
- // Hide tip action
- __webpack_require__(1).registerAction(
- {
- type: 'hideTip',
- event: 'hideTip',
- update: 'none'
- },
- // noop
- function () {}
- );
-
-
-/***/ },
-/* 269 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(1).extendComponentModel({
-
- type: 'tooltip',
-
- defaultOption: {
- zlevel: 0,
-
- z: 8,
-
- show: true,
-
- // tooltip主体内容
- showContent: true,
-
- // 触发类型,默认数据触发,见下图,可选为:'item' ¦ 'axis'
- trigger: 'item',
-
- // 触发条件,支持 'click' | 'mousemove'
- triggerOn: 'mousemove',
-
- // 是否永远显示 content
- alwaysShowContent: false,
-
- // 位置 {Array} | {Function}
- // position: null
-
- // 内容格式器:{string}(Template) ¦ {Function}
- // formatter: null
-
- // 隐藏延迟,单位ms
- hideDelay: 100,
-
- // 动画变换时间,单位s
- transitionDuration: 0.4,
-
- enterable: false,
-
- // 提示背景颜色,默认为透明度为0.7的黑色
- backgroundColor: 'rgba(50,50,50,0.7)',
-
- // 提示边框颜色
- borderColor: '#333',
-
- // 提示边框圆角,单位px,默认为4
- borderRadius: 4,
-
- // 提示边框线宽,单位px,默认为0(无边框)
- borderWidth: 0,
-
- // 提示内边距,单位px,默认各方向内边距为5,
- // 接受数组分别设定上右下左边距,同css
- padding: 5,
-
- // Extra css text
- extraCssText: '',
-
- // 坐标轴指示器,坐标轴触发有效
- axisPointer: {
- // 默认为直线
- // 可选为:'line' | 'shadow' | 'cross'
- type: 'line',
-
- // type 为 line 的时候有效,指定 tooltip line 所在的轴,可选
- // 可选 'x' | 'y' | 'angle' | 'radius' | 'auto'
- // 默认 'auto',会选择类型为 cateogry 的轴,对于双数值轴,笛卡尔坐标系会默认选择 x 轴
- // 极坐标系会默认选择 angle 轴
- axis: 'auto',
-
- animation: true,
- animationDurationUpdate: 200,
- animationEasingUpdate: 'exponentialOut',
-
- // 直线指示器样式设置
- lineStyle: {
- color: '#555',
- width: 1,
- type: 'solid'
- },
-
- crossStyle: {
- color: '#555',
- width: 1,
- type: 'dashed',
-
- // TODO formatter
- textStyle: {}
- },
-
- // 阴影指示器样式设置
- shadowStyle: {
- color: 'rgba(150,150,150,0.3)'
- }
- },
- textStyle: {
- color: '#fff',
- fontSize: 14
- }
- }
- });
-
-
-/***/ },
-/* 270 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var TooltipContent = __webpack_require__(271);
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
- var formatUtil = __webpack_require__(6);
- var numberUtil = __webpack_require__(7);
- var parsePercent = numberUtil.parsePercent;
- var env = __webpack_require__(78);
-
- function dataEqual(a, b) {
- if (!a || !b) {
- return false;
- }
- var round = numberUtil.round;
- return round(a[0]) === round(b[0])
- && round(a[1]) === round(b[1]);
- }
- /**
- * @inner
- */
- function makeLineShape(x1, y1, x2, y2) {
- return {
- x1: x1,
- y1: y1,
- x2: x2,
- y2: y2
- };
- }
-
- /**
- * @inner
- */
- function makeRectShape(x, y, width, height) {
- return {
- x: x,
- y: y,
- width: width,
- height: height
- };
- }
-
- /**
- * @inner
- */
- function makeSectorShape(cx, cy, r0, r, startAngle, endAngle) {
- return {
- cx: cx,
- cy: cy,
- r0: r0,
- r: r,
- startAngle: startAngle,
- endAngle: endAngle,
- clockwise: true
- };
- }
-
- function refixTooltipPosition(x, y, el, viewWidth, viewHeight) {
- var width = el.clientWidth;
- var height = el.clientHeight;
- var gap = 20;
-
- if (x + width + gap > viewWidth) {
- x -= width + gap;
- }
- else {
- x += gap;
- }
- if (y + height + gap > viewHeight) {
- y -= height + gap;
- }
- else {
- y += gap;
- }
- return [x, y];
- }
-
- function calcTooltipPosition(position, rect, dom) {
- var domWidth = dom.clientWidth;
- var domHeight = dom.clientHeight;
- var gap = 5;
- var x = 0;
- var y = 0;
- var rectWidth = rect.width;
- var rectHeight = rect.height;
- switch (position) {
- case 'inside':
- x = rect.x + rectWidth / 2 - domWidth / 2;
- y = rect.y + rectHeight / 2 - domHeight / 2;
- break;
- case 'top':
- x = rect.x + rectWidth / 2 - domWidth / 2;
- y = rect.y - domHeight - gap;
- break;
- case 'bottom':
- x = rect.x + rectWidth / 2 - domWidth / 2;
- y = rect.y + rectHeight + gap;
- break;
- case 'left':
- x = rect.x - domWidth - gap;
- y = rect.y + rectHeight / 2 - domHeight / 2;
- break;
- case 'right':
- x = rect.x + rectWidth + gap;
- y = rect.y + rectHeight / 2 - domHeight / 2;
- }
- return [x, y];
- }
-
- /**
- * @param {string|Function|Array.<number>} positionExpr
- * @param {number} x Mouse x
- * @param {number} y Mouse y
- * @param {module:echarts/component/tooltip/TooltipContent} content
- * @param {Object|<Array.<Object>} params
- * @param {module:zrender/Element} el target element
- * @param {module:echarts/ExtensionAPI} api
- * @return {Array.<number>}
- */
- function updatePosition(positionExpr, x, y, content, params, el, api) {
- var viewWidth = api.getWidth();
- var viewHeight = api.getHeight();
-
- var rect = el && el.getBoundingRect().clone();
- el && rect.applyTransform(el.transform);
- if (typeof positionExpr === 'function') {
- // Callback of position can be an array or a string specify the positiont
- positionExpr = positionExpr([x, y], params, rect);
- }
-
- if (zrUtil.isArray(positionExpr)) {
- x = parsePercent(positionExpr[0], viewWidth);
- y = parsePercent(positionExpr[1], viewHeight);
- }
- // Specify tooltip position by string 'top' 'bottom' 'left' 'right' around graphic element
- else if (typeof positionExpr === 'string' && el) {
- var pos = calcTooltipPosition(
- positionExpr, rect, content.el
- );
- x = pos[0];
- y = pos[1];
- }
- else {
- var pos = refixTooltipPosition(
- x, y, content.el, viewWidth, viewHeight
- );
- x = pos[0];
- y = pos[1];
- }
-
- content.moveTo(x, y);
- }
-
- function ifSeriesSupportAxisTrigger(seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
- var trigger = seriesModel.get('tooltip.trigger', true);
- // Ignore series use item tooltip trigger and series coordinate system is not cartesian or
- return !(!coordSys
- || (coordSys.type !== 'cartesian2d' && coordSys.type !== 'polar' && coordSys.type !== 'single')
- || trigger === 'item');
- }
-
- __webpack_require__(1).extendComponentView({
-
- type: 'tooltip',
-
- _axisPointers: {},
-
- init: function (ecModel, api) {
- if (env.node) {
- return;
- }
- var tooltipContent = new TooltipContent(api.getDom(), api);
- this._tooltipContent = tooltipContent;
-
- api.on('showTip', this._manuallyShowTip, this);
- api.on('hideTip', this._manuallyHideTip, this);
- },
-
- render: function (tooltipModel, ecModel, api) {
- if (env.node) {
- return;
- }
-
- // Reset
- this.group.removeAll();
-
- /**
- * @type {Object}
- * @private
- */
- this._axisPointers = {};
-
- /**
- * @private
- * @type {module:echarts/component/tooltip/TooltipModel}
- */
- this._tooltipModel = tooltipModel;
-
- /**
- * @private
- * @type {module:echarts/model/Global}
- */
- this._ecModel = ecModel;
-
- /**
- * @private
- * @type {module:echarts/ExtensionAPI}
- */
- this._api = api;
-
- /**
- * @type {Object}
- * @private
- */
- this._lastHover = {
- // data
- // payloadBatch
- };
-
- var tooltipContent = this._tooltipContent;
- tooltipContent.update();
- tooltipContent.enterable = tooltipModel.get('enterable');
- this._alwaysShowContent = tooltipModel.get('alwaysShowContent');
-
- /**
- * @type {Object.<string, Array>}
- */
- this._seriesGroupByAxis = this._prepareAxisTriggerData(
- tooltipModel, ecModel
- );
-
- var crossText = this._crossText;
- if (crossText) {
- this.group.add(crossText);
- }
-
- // Try to keep the tooltip show when refreshing
- if (this._lastX != null && this._lastY != null) {
- var self = this;
- clearTimeout(this._refreshUpdateTimeout);
- this._refreshUpdateTimeout = setTimeout(function () {
- // Show tip next tick after other charts are rendered
- // In case highlight action has wrong result
- // FIXME
- self._manuallyShowTip({
- x: self._lastX,
- y: self._lastY
- });
- });
- }
-
- var zr = this._api.getZr();
- var tryShow = this._tryShow;
- zr.off('click', tryShow);
- zr.off('mousemove', tryShow);
- zr.off('mouseout', this._hide);
- if (tooltipModel.get('triggerOn') === 'click') {
- zr.on('click', tryShow, this);
- }
- else {
- zr.on('mousemove', tryShow, this);
- zr.on('mouseout', this._hide, this);
- }
-
- },
-
- /**
- * Show tip manually by
- * dispatchAction({
- * type: 'showTip',
- * x: 10,
- * y: 10
- * });
- * Or
- * dispatchAction({
- * type: 'showTip',
- * seriesIndex: 0,
- * dataIndex: 1
- * });
- *
- * TODO Batch
- */
- _manuallyShowTip: function (event) {
- // From self
- if (event.from === this.uid) {
- return;
- }
-
- var ecModel = this._ecModel;
- var seriesIndex = event.seriesIndex;
- var dataIndex = event.dataIndex;
- var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
- var api = this._api;
-
- if (event.x == null || event.y == null) {
- if (!seriesModel) {
- // Find the first series can use axis trigger
- ecModel.eachSeries(function (_series) {
- if (ifSeriesSupportAxisTrigger(_series) && !seriesModel) {
- seriesModel = _series;
- }
- });
- }
- if (seriesModel) {
- var data = seriesModel.getData();
- if (dataIndex == null) {
- dataIndex = data.indexOfName(event.name);
- }
- var el = data.getItemGraphicEl(dataIndex);
- var cx, cy;
- // Try to get the point in coordinate system
- var coordSys = seriesModel.coordinateSystem;
- if (coordSys && coordSys.dataToPoint) {
- var point = coordSys.dataToPoint(
- data.getValues(coordSys.dimensions, dataIndex, true)
- );
- cx = point && point[0];
- cy = point && point[1];
- }
- else if (el) {
- // Use graphic bounding rect
- var rect = el.getBoundingRect().clone();
- rect.applyTransform(el.transform);
- cx = rect.x + rect.width / 2;
- cy = rect.y + rect.height / 2;
- }
- if (cx != null && cy != null) {
- this._tryShow({
- offsetX: cx,
- offsetY: cy,
- target: el,
- event: {}
- });
- }
- }
- }
- else {
- var el = api.getZr().handler.findHover(event.x, event.y);
- this._tryShow({
- offsetX: event.x,
- offsetY: event.y,
- target: el,
- event: {}
- });
- }
- },
-
- _manuallyHideTip: function (e) {
- if (e.from === this.uid) {
- return;
- }
-
- this._hide();
- },
-
- _prepareAxisTriggerData: function (tooltipModel, ecModel) {
- // Prepare data for axis trigger
- var seriesGroupByAxis = {};
- ecModel.eachSeries(function (seriesModel) {
- if (ifSeriesSupportAxisTrigger(seriesModel)) {
- var coordSys = seriesModel.coordinateSystem;
- var baseAxis;
- var key;
-
- // Only cartesian2d, polar and single support axis trigger
- if (coordSys.type === 'cartesian2d') {
- // FIXME `axisPointer.axis` is not baseAxis
- baseAxis = coordSys.getBaseAxis();
- key = baseAxis.dim + baseAxis.index;
- }
- else if (coordSys.type === 'single') {
- baseAxis = coordSys.getAxis();
- key = baseAxis.dim + baseAxis.type;
- }
- else {
- baseAxis = coordSys.getBaseAxis();
- key = baseAxis.dim + coordSys.name;
- }
-
- seriesGroupByAxis[key] = seriesGroupByAxis[key] || {
- coordSys: [],
- series: []
- };
- seriesGroupByAxis[key].coordSys.push(coordSys);
- seriesGroupByAxis[key].series.push(seriesModel);
- }
- }, this);
-
- return seriesGroupByAxis;
- },
-
- /**
- * mousemove handler
- * @param {Object} e
- * @private
- */
- _tryShow: function (e) {
- var el = e.target;
- var tooltipModel = this._tooltipModel;
- var globalTrigger = tooltipModel.get('trigger');
- var ecModel = this._ecModel;
- var api = this._api;
-
- if (!tooltipModel) {
- return;
- }
-
- // Save mouse x, mouse y. So we can try to keep showing the tip if chart is refreshed
- this._lastX = e.offsetX;
- this._lastY = e.offsetY;
-
- // Always show item tooltip if mouse is on the element with dataIndex
- if (el && el.dataIndex != null) {
- // Use dataModel in element if possible
- // Used when mouseover on a element like markPoint or edge
- // In which case, the data is not main data in series.
- var dataModel = el.dataModel || ecModel.getSeriesByIndex(el.seriesIndex);
- var dataIndex = el.dataIndex;
- var itemModel = dataModel.getData().getItemModel(dataIndex);
- // Series or single data may use item trigger when global is axis trigger
- if ((itemModel.get('tooltip.trigger') || globalTrigger) === 'axis') {
- this._showAxisTooltip(tooltipModel, ecModel, e);
- }
- else {
- // Reset ticket
- this._ticket = '';
- // If either single data or series use item trigger
- this._hideAxisPointer();
- // Reset last hover and dispatch downplay action
- this._resetLastHover();
-
- this._showItemTooltipContent(dataModel, dataIndex, e);
- }
-
- api.dispatchAction({
- type: 'showTip',
- from: this.uid,
- dataIndex: el.dataIndex,
- seriesIndex: el.seriesIndex
- });
- }
- else {
- if (globalTrigger === 'item') {
- this._hide();
- }
- else {
- // Try show axis tooltip
- this._showAxisTooltip(tooltipModel, ecModel, e);
- }
-
- // Action of cross pointer
- // other pointer types will trigger action in _dispatchAndShowSeriesTooltipContent method
- if (tooltipModel.get('axisPointer.type') === 'cross') {
- api.dispatchAction({
- type: 'showTip',
- from: this.uid,
- x: e.offsetX,
- y: e.offsetY
- });
- }
- }
- },
-
- /**
- * Show tooltip on axis
- * @param {module:echarts/component/tooltip/TooltipModel} tooltipModel
- * @param {module:echarts/model/Global} ecModel
- * @param {Object} e
- * @private
- */
- _showAxisTooltip: function (tooltipModel, ecModel, e) {
- var axisPointerModel = tooltipModel.getModel('axisPointer');
- var axisPointerType = axisPointerModel.get('type');
-
- if (axisPointerType === 'cross') {
- var el = e.target;
- if (el && el.dataIndex != null) {
- var seriesModel = ecModel.getSeriesByIndex(el.seriesIndex);
- var dataIndex = el.dataIndex;
- this._showItemTooltipContent(seriesModel, dataIndex, e);
- }
- }
-
- this._showAxisPointer();
- var allNotShow = true;
- zrUtil.each(this._seriesGroupByAxis, function (seriesCoordSysSameAxis) {
- // Try show the axis pointer
- var allCoordSys = seriesCoordSysSameAxis.coordSys;
- var coordSys = allCoordSys[0];
-
- // If mouse position is not in the grid or polar
- var point = [e.offsetX, e.offsetY];
-
- if (!coordSys.containPoint(point)) {
- // Hide axis pointer
- this._hideAxisPointer(coordSys.name);
- return;
- }
-
- allNotShow = false;
- // Make sure point is discrete on cateogry axis
- var dimensions = coordSys.dimensions;
- var value = coordSys.pointToData(point, true);
- point = coordSys.dataToPoint(value);
- var baseAxis = coordSys.getBaseAxis();
- var axisType = axisPointerModel.get('axis');
- if (axisType === 'auto') {
- axisType = baseAxis.dim;
- }
-
- var contentNotChange = false;
- var lastHover = this._lastHover;
- if (axisPointerType === 'cross') {
- // If hover data not changed
- // Possible when two axes are all category
- if (dataEqual(lastHover.data, value)) {
- contentNotChange = true;
- }
- lastHover.data = value;
- }
- else {
- var valIndex = zrUtil.indexOf(dimensions, axisType);
-
- // If hover data not changed on the axis dimension
- if (lastHover.data === value[valIndex]) {
- contentNotChange = true;
- }
- lastHover.data = value[valIndex];
- }
-
- if (coordSys.type === 'cartesian2d' && !contentNotChange) {
- this._showCartesianPointer(
- axisPointerModel, coordSys, axisType, point
- );
- }
- else if (coordSys.type === 'polar' && !contentNotChange) {
- this._showPolarPointer(
- axisPointerModel, coordSys, axisType, point
- );
- }
- else if (coordSys.type === 'single' && !contentNotChange) {
- this._showSinglePointer(
- axisPointerModel, coordSys, axisType, point
- );
- }
-
- if (axisPointerType !== 'cross') {
- this._dispatchAndShowSeriesTooltipContent(
- coordSys, seriesCoordSysSameAxis.series, point, value, contentNotChange
- );
- }
- }, this);
-
- if (allNotShow) {
- this._hide();
- }
- },
-
- /**
- * Show tooltip on axis of cartesian coordinate
- * @param {module:echarts/model/Model} axisPointerModel
- * @param {module:echarts/coord/cartesian/Cartesian2D} cartesians
- * @param {string} axisType
- * @param {Array.<number>} point
- * @private
- */
- _showCartesianPointer: function (axisPointerModel, cartesian, axisType, point) {
- var self = this;
-
- var axisPointerType = axisPointerModel.get('type');
- var moveAnimation = axisPointerType !== 'cross';
-
- if (axisPointerType === 'cross') {
- moveGridLine('x', point, cartesian.getAxis('y').getGlobalExtent());
- moveGridLine('y', point, cartesian.getAxis('x').getGlobalExtent());
-
- this._updateCrossText(cartesian, point, axisPointerModel);
- }
- else {
- var otherAxis = cartesian.getAxis(axisType === 'x' ? 'y' : 'x');
- var otherExtent = otherAxis.getGlobalExtent();
-
- if (cartesian.type === 'cartesian2d') {
- (axisPointerType === 'line' ? moveGridLine : moveGridShadow)(
- axisType, point, otherExtent
- );
- }
- }
-
- /**
- * @inner
- */
- function moveGridLine(axisType, point, otherExtent) {
- var targetShape = axisType === 'x'
- ? makeLineShape(point[0], otherExtent[0], point[0], otherExtent[1])
- : makeLineShape(otherExtent[0], point[1], otherExtent[1], point[1]);
-
- var pointerEl = self._getPointerElement(
- cartesian, axisPointerModel, axisType, targetShape
- );
- moveAnimation
- ? graphic.updateProps(pointerEl, {
- shape: targetShape
- }, axisPointerModel)
- : pointerEl.attr({
- shape: targetShape
- });
- }
-
- /**
- * @inner
- */
- function moveGridShadow(axisType, point, otherExtent) {
- var axis = cartesian.getAxis(axisType);
- var bandWidth = axis.getBandWidth();
- var span = otherExtent[1] - otherExtent[0];
- var targetShape = axisType === 'x'
- ? makeRectShape(point[0] - bandWidth / 2, otherExtent[0], bandWidth, span)
- : makeRectShape(otherExtent[0], point[1] - bandWidth / 2, span, bandWidth);
-
- var pointerEl = self._getPointerElement(
- cartesian, axisPointerModel, axisType, targetShape
- );
- moveAnimation
- ? graphic.updateProps(pointerEl, {
- shape: targetShape
- }, axisPointerModel)
- : pointerEl.attr({
- shape: targetShape
- });
- }
- },
-
- _showSinglePointer: function (axisPointerModel, single, axisType, point) {
- var self = this;
- var axisPointerType = axisPointerModel.get('type');
- var moveAnimation = axisPointerType !== 'cross';
- var rect = single.getRect();
- var otherExtent = [rect.y, rect.y + rect.height];
-
- moveSingleLine(axisType, point, otherExtent);
-
- /**
- * @inner
- */
- function moveSingleLine(axisType, point, otherExtent) {
- var axis = single.getAxis();
- var orient = axis.orient;
-
- var targetShape = orient === 'horizontal'
- ? makeLineShape(point[0], otherExtent[0], point[0], otherExtent[1])
- : makeLineShape(otherExtent[0], point[1], otherExtent[1], point[1]);
-
- var pointerEl = self._getPointerElement(
- single, axisPointerModel, axisType, targetShape
- );
- moveAnimation
- ? graphic.updateProps(pointerEl, {
- shape: targetShape
- }, axisPointerModel)
- : pointerEl.attr({
- shape: targetShape
- });
- }
-
- },
-
- /**
- * Show tooltip on axis of polar coordinate
- * @param {module:echarts/model/Model} axisPointerModel
- * @param {Array.<module:echarts/coord/polar/Polar>} polar
- * @param {string} axisType
- * @param {Array.<number>} point
- */
- _showPolarPointer: function (axisPointerModel, polar, axisType, point) {
- var self = this;
-
- var axisPointerType = axisPointerModel.get('type');
-
- var angleAxis = polar.getAngleAxis();
- var radiusAxis = polar.getRadiusAxis();
-
- var moveAnimation = axisPointerType !== 'cross';
-
- if (axisPointerType === 'cross') {
- movePolarLine('angle', point, radiusAxis.getExtent());
- movePolarLine('radius', point, angleAxis.getExtent());
-
- this._updateCrossText(polar, point, axisPointerModel);
- }
- else {
- var otherAxis = polar.getAxis(axisType === 'radius' ? 'angle' : 'radius');
- var otherExtent = otherAxis.getExtent();
-
- (axisPointerType === 'line' ? movePolarLine : movePolarShadow)(
- axisType, point, otherExtent
- );
- }
- /**
- * @inner
- */
- function movePolarLine(axisType, point, otherExtent) {
- var mouseCoord = polar.pointToCoord(point);
-
- var targetShape;
-
- if (axisType === 'angle') {
- var p1 = polar.coordToPoint([otherExtent[0], mouseCoord[1]]);
- var p2 = polar.coordToPoint([otherExtent[1], mouseCoord[1]]);
- targetShape = makeLineShape(p1[0], p1[1], p2[0], p2[1]);
- }
- else {
- targetShape = {
- cx: polar.cx,
- cy: polar.cy,
- r: mouseCoord[0]
- };
- }
-
- var pointerEl = self._getPointerElement(
- polar, axisPointerModel, axisType, targetShape
- );
-
- moveAnimation
- ? graphic.updateProps(pointerEl, {
- shape: targetShape
- }, axisPointerModel)
- : pointerEl.attr({
- shape: targetShape
- });
- }
-
- /**
- * @inner
- */
- function movePolarShadow(axisType, point, otherExtent) {
- var axis = polar.getAxis(axisType);
- var bandWidth = axis.getBandWidth();
-
- var mouseCoord = polar.pointToCoord(point);
-
- var targetShape;
-
- var radian = Math.PI / 180;
-
- if (axisType === 'angle') {
- targetShape = makeSectorShape(
- polar.cx, polar.cy,
- otherExtent[0], otherExtent[1],
- // In ECharts y is negative if angle is positive
- (-mouseCoord[1] - bandWidth / 2) * radian,
- (-mouseCoord[1] + bandWidth / 2) * radian
- );
- }
- else {
- targetShape = makeSectorShape(
- polar.cx, polar.cy,
- mouseCoord[0] - bandWidth / 2,
- mouseCoord[0] + bandWidth / 2,
- 0, Math.PI * 2
- );
- }
-
- var pointerEl = self._getPointerElement(
- polar, axisPointerModel, axisType, targetShape
- );
- moveAnimation
- ? graphic.updateProps(pointerEl, {
- shape: targetShape
- }, axisPointerModel)
- : pointerEl.attr({
- shape: targetShape
- });
- }
- },
-
- _updateCrossText: function (coordSys, point, axisPointerModel) {
- var crossStyleModel = axisPointerModel.getModel('crossStyle');
- var textStyleModel = crossStyleModel.getModel('textStyle');
-
- var tooltipModel = this._tooltipModel;
-
- var text = this._crossText;
- if (!text) {
- text = this._crossText = new graphic.Text({
- style: {
- textAlign: 'left',
- textVerticalAlign: 'bottom'
- }
- });
- this.group.add(text);
- }
-
- var value = coordSys.pointToData(point);
-
- var dims = coordSys.dimensions;
- value = zrUtil.map(value, function (val, idx) {
- var axis = coordSys.getAxis(dims[idx]);
- if (axis.type === 'category' || axis.type === 'time') {
- val = axis.scale.getLabel(val);
- }
- else {
- val = formatUtil.addCommas(
- val.toFixed(axis.getPixelPrecision())
- );
- }
- return val;
- });
-
- text.setStyle({
- fill: textStyleModel.getTextColor() || crossStyleModel.get('color'),
- textFont: textStyleModel.getFont(),
- text: value.join(', '),
- x: point[0] + 5,
- y: point[1] - 5
- });
- text.z = tooltipModel.get('z');
- text.zlevel = tooltipModel.get('zlevel');
- },
-
- _getPointerElement: function (coordSys, pointerModel, axisType, initShape) {
- var tooltipModel = this._tooltipModel;
- var z = tooltipModel.get('z');
- var zlevel = tooltipModel.get('zlevel');
- var axisPointers = this._axisPointers;
- var coordSysName = coordSys.name;
- axisPointers[coordSysName] = axisPointers[coordSysName] || {};
- if (axisPointers[coordSysName][axisType]) {
- return axisPointers[coordSysName][axisType];
- }
-
- // Create if not exists
- var pointerType = pointerModel.get('type');
- var styleModel = pointerModel.getModel(pointerType + 'Style');
- var isShadow = pointerType === 'shadow';
- var style = styleModel[isShadow ? 'getAreaStyle' : 'getLineStyle']();
-
- var elementType = coordSys.type === 'polar'
- ? (isShadow ? 'Sector' : (axisType === 'radius' ? 'Circle' : 'Line'))
- : (isShadow ? 'Rect' : 'Line');
-
- isShadow ? (style.stroke = null) : (style.fill = null);
-
- var el = axisPointers[coordSysName][axisType] = new graphic[elementType]({
- style: style,
- z: z,
- zlevel: zlevel,
- silent: true,
- shape: initShape
- });
-
- this.group.add(el);
- return el;
- },
-
- /**
- * Dispatch actions and show tooltip on series
- * @param {Array.<module:echarts/model/Series>} seriesList
- * @param {Array.<number>} point
- * @param {Array.<number>} value
- * @param {boolean} contentNotChange
- * @param {Object} e
- */
- _dispatchAndShowSeriesTooltipContent: function (
- coordSys, seriesList, point, value, contentNotChange
- ) {
-
- var rootTooltipModel = this._tooltipModel;
- var tooltipContent = this._tooltipContent;
-
- var baseAxis = coordSys.getBaseAxis();
-
- var payloadBatch = zrUtil.map(seriesList, function (series) {
- return {
- seriesIndex: series.seriesIndex,
- dataIndex: series.getAxisTooltipDataIndex
- ? series.getAxisTooltipDataIndex(series.coordDimToDataDim(baseAxis.dim), value, baseAxis)
- : series.getData().indexOfNearest(
- series.coordDimToDataDim(baseAxis.dim)[0],
- value[baseAxis.dim === 'x' || baseAxis.dim === 'radius' ? 0 : 1]
- )
- };
- });
-
- var lastHover = this._lastHover;
- var api = this._api;
- // Dispatch downplay action
- if (lastHover.payloadBatch && !contentNotChange) {
- api.dispatchAction({
- type: 'downplay',
- batch: lastHover.payloadBatch
- });
- }
- // Dispatch highlight action
- if (!contentNotChange) {
- api.dispatchAction({
- type: 'highlight',
- batch: payloadBatch
- });
- lastHover.payloadBatch = payloadBatch;
- }
- // Dispatch showTip action
- api.dispatchAction({
- type: 'showTip',
- dataIndex: payloadBatch[0].dataIndex,
- seriesIndex: payloadBatch[0].seriesIndex,
- from: this.uid
- });
-
- if (baseAxis && rootTooltipModel.get('showContent')) {
-
- var formatter = rootTooltipModel.get('formatter');
- var positionExpr = rootTooltipModel.get('position');
- var html;
-
- var paramsList = zrUtil.map(seriesList, function (series, index) {
- return series.getDataParams(payloadBatch[index].dataIndex);
- });
- // If only one series
- // FIXME
- // if (paramsList.length === 1) {
- // paramsList = paramsList[0];
- // }
-
- tooltipContent.show(rootTooltipModel);
-
- // Update html content
- var firstDataIndex = payloadBatch[0].dataIndex;
- if (!contentNotChange) {
- // Reset ticket
- this._ticket = '';
- if (!formatter) {
- // Default tooltip content
- // FIXME
- // (1) shold be the first data which has name?
- // (2) themeRiver, firstDataIndex is array, and first line is unnecessary.
- var firstLine = seriesList[0].getData().getName(firstDataIndex);
- html = (firstLine ? firstLine + '<br />' : '')
- + zrUtil.map(seriesList, function (series, index) {
- return series.formatTooltip(payloadBatch[index].dataIndex, true);
- }).join('<br />');
- }
- else {
- if (typeof formatter === 'string') {
- html = formatUtil.formatTpl(formatter, paramsList);
- }
- else if (typeof formatter === 'function') {
- var self = this;
- var ticket = 'axis_' + coordSys.name + '_' + firstDataIndex;
- var callback = function (cbTicket, html) {
- if (cbTicket === self._ticket) {
- tooltipContent.setContent(html);
-
- updatePosition(
- positionExpr, point[0], point[1],
- tooltipContent, paramsList, null, api
- );
- }
- };
- self._ticket = ticket;
- html = formatter(paramsList, ticket, callback);
- }
- }
-
- tooltipContent.setContent(html);
- }
-
- updatePosition(
- positionExpr, point[0], point[1],
- tooltipContent, paramsList, null, api
- );
- }
- },
-
- /**
- * Show tooltip on item
- * @param {module:echarts/model/Series} seriesModel
- * @param {number} dataIndex
- * @param {Object} e
- */
- _showItemTooltipContent: function (seriesModel, dataIndex, e) {
- // FIXME Graph data
- var api = this._api;
- var data = seriesModel.getData();
- var itemModel = data.getItemModel(dataIndex);
-
- var rootTooltipModel = this._tooltipModel;
-
- var tooltipContent = this._tooltipContent;
-
- var tooltipModel = itemModel.getModel('tooltip');
-
- // If series model
- if (tooltipModel.parentModel) {
- tooltipModel.parentModel.parentModel = rootTooltipModel;
- }
- else {
- tooltipModel.parentModel = this._tooltipModel;
- }
-
- if (tooltipModel.get('showContent')) {
- var formatter = tooltipModel.get('formatter');
- var positionExpr = tooltipModel.get('position');
- var params = seriesModel.getDataParams(dataIndex);
- var html;
- if (!formatter) {
- html = seriesModel.formatTooltip(dataIndex);
- }
- else {
- if (typeof formatter === 'string') {
- html = formatUtil.formatTpl(formatter, params);
- }
- else if (typeof formatter === 'function') {
- var self = this;
- var ticket = 'item_' + seriesModel.name + '_' + dataIndex;
- var callback = function (cbTicket, html) {
- if (cbTicket === self._ticket) {
- tooltipContent.setContent(html);
-
- updatePosition(
- positionExpr, e.offsetX, e.offsetY,
- tooltipContent, params, e.target, api
- );
- }
- };
- self._ticket = ticket;
- html = formatter(params, ticket, callback);
- }
- }
-
- tooltipContent.show(tooltipModel);
- tooltipContent.setContent(html);
-
- updatePosition(
- positionExpr, e.offsetX, e.offsetY,
- tooltipContent, params, e.target, api
- );
- }
- },
-
- /**
- * Show axis pointer
- * @param {string} [coordSysName]
- */
- _showAxisPointer: function (coordSysName) {
- if (coordSysName) {
- var axisPointers = this._axisPointers[coordSysName];
- axisPointers && zrUtil.each(axisPointers, function (el) {
- el.show();
- });
- }
- else {
- this.group.eachChild(function (child) {
- child.show();
- });
- this.group.show();
- }
- },
-
- _resetLastHover: function () {
- var lastHover = this._lastHover;
- if (lastHover.payloadBatch) {
- this._api.dispatchAction({
- type: 'downplay',
- batch: lastHover.payloadBatch
- });
- }
- // Reset lastHover
- this._lastHover = {};
- },
- /**
- * Hide axis pointer
- * @param {string} [coordSysName]
- */
- _hideAxisPointer: function (coordSysName) {
- if (coordSysName) {
- var axisPointers = this._axisPointers[coordSysName];
- axisPointers && zrUtil.each(axisPointers, function (el) {
- el.hide();
- });
- }
- else {
- this.group.hide();
- }
- },
-
- _hide: function () {
- this._hideAxisPointer();
- this._resetLastHover();
- if (!this._alwaysShowContent) {
- this._tooltipContent.hideLater(this._tooltipModel.get('hideDelay'));
- }
-
- this._api.dispatchAction({
- type: 'hideTip',
- from: this.uid
- });
- },
-
- dispose: function (ecModel, api) {
- if (env.node) {
- return;
- }
- var zr = api.getZr();
- this._tooltipContent.hide();
-
- zr.off('click', this._tryShow);
- zr.off('mousemove', this._tryShow);
- zr.off('mouseout', this._hide);
-
- api.off('showTip', this._manuallyShowTip);
- api.off('hideTip', this._manuallyHideTip);
- }
- });
-
-
-/***/ },
-/* 271 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/component/tooltip/TooltipContent
- */
-
-
- var zrUtil = __webpack_require__(3);
- var zrColor = __webpack_require__(38);
- var eventUtil = __webpack_require__(80);
- var formatUtil = __webpack_require__(6);
- var each = zrUtil.each;
- var toCamelCase = formatUtil.toCamelCase;
-
- var vendors = ['', '-webkit-', '-moz-', '-o-'];
-
- var gCssText = 'position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;';
-
- /**
- * @param {number} duration
- * @return {string}
- * @inner
- */
- function assembleTransition(duration) {
- var transitionCurve = 'cubic-bezier(0.23, 1, 0.32, 1)';
- var transitionText = 'left ' + duration + 's ' + transitionCurve + ','
- + 'top ' + duration + 's ' + transitionCurve;
- return zrUtil.map(vendors, function (vendorPrefix) {
- return vendorPrefix + 'transition:' + transitionText;
- }).join(';');
- }
-
- /**
- * @param {Object} textStyle
- * @return {string}
- * @inner
- */
- function assembleFont(textStyleModel) {
- var cssText = [];
-
- var fontSize = textStyleModel.get('fontSize');
- var color = textStyleModel.getTextColor();
-
- color && cssText.push('color:' + color);
-
- cssText.push('font:' + textStyleModel.getFont());
-
- fontSize &&
- cssText.push('line-height:' + Math.round(fontSize * 3 / 2) + 'px');
-
- each(['decoration', 'align'], function (name) {
- var val = textStyleModel.get(name);
- val && cssText.push('text-' + name + ':' + val);
- });
-
- return cssText.join(';');
- }
-
- /**
- * @param {Object} tooltipModel
- * @return {string}
- * @inner
- */
- function assembleCssText(tooltipModel) {
-
- tooltipModel = tooltipModel;
-
- var cssText = [];
-
- var transitionDuration = tooltipModel.get('transitionDuration');
- var backgroundColor = tooltipModel.get('backgroundColor');
- var textStyleModel = tooltipModel.getModel('textStyle');
- var padding = tooltipModel.get('padding');
-
- // Animation transition
- transitionDuration &&
- cssText.push(assembleTransition(transitionDuration));
-
- if (backgroundColor) {
- // for ie
- cssText.push(
- 'background-Color:' + zrColor.toHex(backgroundColor)
- );
- cssText.push('filter:alpha(opacity=70)');
- cssText.push('background-Color:' + backgroundColor);
- }
-
- // Border style
- each(['width', 'color', 'radius'], function (name) {
- var borderName = 'border-' + name;
- var camelCase = toCamelCase(borderName);
- var val = tooltipModel.get(camelCase);
- val != null &&
- cssText.push(borderName + ':' + val + (name === 'color' ? '' : 'px'));
- });
-
- // Text style
- cssText.push(assembleFont(textStyleModel));
-
- // Padding
- if (padding != null) {
- cssText.push('padding:' + formatUtil.normalizeCssArray(padding).join('px ') + 'px');
- }
-
- return cssText.join(';') + ';';
- }
-
- /**
- * @alias module:echarts/component/tooltip/TooltipContent
- * @constructor
- */
- function TooltipContent(container, api) {
- var el = document.createElement('div');
- var zr = api.getZr();
-
- this.el = el;
-
- this._x = api.getWidth() / 2;
- this._y = api.getHeight() / 2;
-
- container.appendChild(el);
-
- this._container = container;
-
- this._show = false;
-
- /**
- * @private
- */
- this._hideTimeout;
-
- var self = this;
- el.onmouseenter = function () {
- // clear the timeout in hideLater and keep showing tooltip
- if (self.enterable) {
- clearTimeout(self._hideTimeout);
- self._show = true;
- }
- self._inContent = true;
- };
- el.onmousemove = function (e) {
- if (!self.enterable) {
- // Try trigger zrender event to avoid mouse
- // in and out shape too frequently
- var handler = zr.handler;
- eventUtil.normalizeEvent(container, e);
- handler.dispatch('mousemove', e);
- }
- };
- el.onmouseleave = function () {
- if (self.enterable) {
- if (self._show) {
- self.hideLater(self._hideDelay);
- }
- }
- self._inContent = false;
- };
-
- compromiseMobile(el, container);
- }
-
- function compromiseMobile(tooltipContentEl, container) {
- // Prevent default behavior on mobile. For example,
- // defuault pinch gesture will cause browser zoom.
- // We do not preventing event on tooltip contnet el,
- // because user may need customization in tooltip el.
- eventUtil.addEventListener(container, 'touchstart', preventDefault);
- eventUtil.addEventListener(container, 'touchmove', preventDefault);
- eventUtil.addEventListener(container, 'touchend', preventDefault);
-
- function preventDefault(e) {
- if (contains(e.target)) {
- e.preventDefault();
- }
- }
-
- function contains(targetEl) {
- while (targetEl && targetEl !== container) {
- if (targetEl === tooltipContentEl) {
- return true;
- }
- targetEl = targetEl.parentNode;
- }
- }
- }
-
- TooltipContent.prototype = {
-
- constructor: TooltipContent,
-
- enterable: true,
-
- /**
- * Update when tooltip is rendered
- */
- update: function () {
- var container = this._container;
- var stl = container.currentStyle
- || document.defaultView.getComputedStyle(container);
- var domStyle = container.style;
- if (domStyle.position !== 'absolute' && stl.position !== 'absolute') {
- domStyle.position = 'relative';
- }
- // Hide the tooltip
- // PENDING
- // this.hide();
- },
-
- show: function (tooltipModel) {
- clearTimeout(this._hideTimeout);
-
- this.el.style.cssText = gCssText + assembleCssText(tooltipModel)
- // http://stackoverflow.com/questions/21125587/css3-transition-not-working-in-chrome-anymore
- + ';left:' + this._x + 'px;top:' + this._y + 'px;'
- + (tooltipModel.get('extraCssText') || '');
-
- this._show = true;
- },
-
- setContent: function (content) {
- var el = this.el;
- el.innerHTML = content;
- el.style.display = content ? 'block' : 'none';
- },
-
- moveTo: function (x, y) {
- var style = this.el.style;
- style.left = x + 'px';
- style.top = y + 'px';
-
- this._x = x;
- this._y = y;
- },
-
- hide: function () {
- this.el.style.display = 'none';
- this._show = false;
- },
-
- // showLater: function ()
-
- hideLater: function (time) {
- if (this._show && !(this._inContent && this.enterable)) {
- if (time) {
- this._hideDelay = time;
- // Set show false to avoid invoke hideLater mutiple times
- this._show = false;
- this._hideTimeout = setTimeout(zrUtil.bind(this.hide, this), time);
- }
- else {
- this.hide();
- }
- }
- },
-
- isShow: function () {
- return this._show;
- }
- };
-
- module.exports = TooltipContent;
-
-
-/***/ },
-/* 272 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- __webpack_require__(273);
- __webpack_require__(279);
- __webpack_require__(281);
-
- // Polar view
- __webpack_require__(1).extendComponentView({
- type: 'polar'
- });
-
-
-/***/ },
-/* 273 */
-/***/ function(module, exports, __webpack_require__) {
-
- // TODO Axis scale
-
-
- var Polar = __webpack_require__(274);
- var numberUtil = __webpack_require__(7);
-
- var axisHelper = __webpack_require__(108);
- var niceScaleExtent = axisHelper.niceScaleExtent;
-
- // 依赖 PolarModel 做预处理
- __webpack_require__(277);
-
- /**
- * Resize method bound to the polar
- * @param {module:echarts/coord/polar/PolarModel} polarModel
- * @param {module:echarts/ExtensionAPI} api
- */
- function resizePolar(polarModel, api) {
- var center = polarModel.get('center');
- var radius = polarModel.get('radius');
- var width = api.getWidth();
- var height = api.getHeight();
- var parsePercent = numberUtil.parsePercent;
-
- this.cx = parsePercent(center[0], width);
- this.cy = parsePercent(center[1], height);
-
- var radiusAxis = this.getRadiusAxis();
- var size = Math.min(width, height) / 2;
- // var idx = radiusAxis.inverse ? 1 : 0;
- radiusAxis.setExtent(0, parsePercent(radius, size));
- }
-
- /**
- * Update polar
- */
- function updatePolarScale(ecModel, api) {
- var polar = this;
- var angleAxis = polar.getAngleAxis();
- var radiusAxis = polar.getRadiusAxis();
- // Reset scale
- angleAxis.scale.setExtent(Infinity, -Infinity);
- radiusAxis.scale.setExtent(Infinity, -Infinity);
-
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.coordinateSystem === polar) {
- var data = seriesModel.getData();
- radiusAxis.scale.unionExtent(
- data.getDataExtent('radius', radiusAxis.type !== 'category')
- );
- angleAxis.scale.unionExtent(
- data.getDataExtent('angle', angleAxis.type !== 'category')
- );
- }
- });
-
- niceScaleExtent(angleAxis, angleAxis.model);
- niceScaleExtent(radiusAxis, radiusAxis.model);
-
- // Fix extent of category angle axis
- if (angleAxis.type === 'category' && !angleAxis.onBand) {
- var extent = angleAxis.getExtent();
- var diff = 360 / angleAxis.scale.count();
- angleAxis.inverse ? (extent[1] += diff) : (extent[1] -= diff);
- angleAxis.setExtent(extent[0], extent[1]);
- }
- }
-
- /**
- * Set common axis properties
- * @param {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
- * @param {module:echarts/coord/polar/AxisModel}
- * @inner
- */
- function setAxis(axis, axisModel) {
- axis.type = axisModel.get('type');
- axis.scale = axisHelper.createScaleByModel(axisModel);
- axis.onBand = axisModel.get('boundaryGap') && axis.type === 'category';
-
- // FIXME Radius axis not support inverse axis
- if (axisModel.mainType === 'angleAxis') {
- var startAngle = axisModel.get('startAngle');
- axis.inverse = axisModel.get('inverse') ^ axisModel.get('clockwise');
- axis.setExtent(startAngle, startAngle + (axis.inverse ? -360 : 360));
- }
-
- // Inject axis instance
- axisModel.axis = axis;
- axis.model = axisModel;
- }
-
-
- var polarCreator = {
-
- dimensions: Polar.prototype.dimensions,
-
- create: function (ecModel, api) {
- var polarList = [];
- ecModel.eachComponent('polar', function (polarModel, idx) {
- var polar = new Polar(idx);
- // Inject resize and update method
- polar.resize = resizePolar;
- polar.update = updatePolarScale;
-
- var radiusAxis = polar.getRadiusAxis();
- var angleAxis = polar.getAngleAxis();
-
- var radiusAxisModel = polarModel.findAxisModel('radiusAxis');
- var angleAxisModel = polarModel.findAxisModel('angleAxis');
-
- setAxis(radiusAxis, radiusAxisModel);
- setAxis(angleAxis, angleAxisModel);
-
- polar.resize(polarModel, api);
- polarList.push(polar);
-
- polarModel.coordinateSystem = polar;
- });
- // Inject coordinateSystem to series
- ecModel.eachSeries(function (seriesModel) {
- if (seriesModel.get('coordinateSystem') === 'polar') {
- seriesModel.coordinateSystem = polarList[seriesModel.get('polarIndex')];
- }
- });
-
- return polarList;
- }
- };
-
- __webpack_require__(25).register('polar', polarCreator);
-
-
-/***/ },
-/* 274 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
- /**
- * @module echarts/coord/polar/Polar
- */
-
-
- var RadiusAxis = __webpack_require__(275);
- var AngleAxis = __webpack_require__(276);
-
- /**
- * @alias {module:echarts/coord/polar/Polar}
- * @constructor
- * @param {string} name
- */
- var Polar = function (name) {
-
- /**
- * @type {string}
- */
- this.name = name || '';
-
- /**
- * x of polar center
- * @type {number}
- */
- this.cx = 0;
-
- /**
- * y of polar center
- * @type {number}
- */
- this.cy = 0;
-
- /**
- * @type {module:echarts/coord/polar/RadiusAxis}
- * @private
- */
- this._radiusAxis = new RadiusAxis();
-
- /**
- * @type {module:echarts/coord/polar/AngleAxis}
- * @private
- */
- this._angleAxis = new AngleAxis();
- };
-
- Polar.prototype = {
-
- constructor: Polar,
-
- type: 'polar',
-
- /**
- * @param {Array.<string>}
- * @readOnly
- */
- dimensions: ['radius', 'angle'],
-
- /**
- * If contain coord
- * @param {Array.<number>} point
- * @return {boolean}
- */
- containPoint: function (point) {
- var coord = this.pointToCoord(point);
- return this._radiusAxis.contain(coord[0])
- && this._angleAxis.contain(coord[1]);
- },
-
- /**
- * If contain data
- * @param {Array.<number>} data
- * @return {boolean}
- */
- containData: function (data) {
- return this._radiusAxis.containData(data[0])
- && this._angleAxis.containData(data[1]);
- },
-
- /**
- * @param {string} axisType
- * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
- */
- getAxis: function (axisType) {
- return this['_' + axisType + 'Axis'];
- },
-
- /**
- * Get axes by type of scale
- * @param {string} scaleType
- * @return {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
- */
- getAxesByScale: function (scaleType) {
- var axes = [];
- var angleAxis = this._angleAxis;
- var radiusAxis = this._radiusAxis;
- angleAxis.scale.type === scaleType && axes.push(angleAxis);
- radiusAxis.scale.type === scaleType && axes.push(radiusAxis);
-
- return axes;
- },
-
- /**
- * @return {module:echarts/coord/polar/AngleAxis}
- */
- getAngleAxis: function () {
- return this._angleAxis;
- },
-
- /**
- * @return {module:echarts/coord/polar/RadiusAxis}
- */
- getRadiusAxis: function () {
- return this._radiusAxis;
- },
-
- /**
- * @param {module:echarts/coord/polar/Axis}
- * @return {module:echarts/coord/polar/Axis}
- */
- getOtherAxis: function (axis) {
- var angleAxis = this._angleAxis;
- return axis === angleAxis ? this._radiusAxis : angleAxis;
- },
-
- /**
- * Base axis will be used on stacking.
- *
- * @return {module:echarts/coord/polar/Axis}
- */
- getBaseAxis: function () {
- return this.getAxesByScale('ordinal')[0]
- || this.getAxesByScale('time')[0]
- || this.getAngleAxis();
- },
-
- /**
- * Convert series data to a list of (x, y) points
- * @param {module:echarts/data/List} data
- * @return {Array}
- * Return list of coordinates. For example:
- * `[[10, 10], [20, 20], [30, 30]]`
- */
- dataToPoints: function (data) {
- return data.mapArray(this.dimensions, function (radius, angle) {
- return this.dataToPoint([radius, angle]);
- }, this);
- },
-
- /**
- * Convert a single data item to (x, y) point.
- * Parameter data is an array which the first element is radius and the second is angle
- * @param {Array.<number>} data
- * @param {boolean} [clamp=false]
- * @return {Array.<number>}
- */
- dataToPoint: function (data, clamp) {
- return this.coordToPoint([
- this._radiusAxis.dataToRadius(data[0], clamp),
- this._angleAxis.dataToAngle(data[1], clamp)
- ]);
- },
-
- /**
- * Convert a (x, y) point to data
- * @param {Array.<number>} point
- * @param {boolean} [clamp=false]
- * @return {Array.<number>}
- */
- pointToData: function (point, clamp) {
- var coord = this.pointToCoord(point);
- return [
- this._radiusAxis.radiusToData(coord[0], clamp),
- this._angleAxis.angleToData(coord[1], clamp)
- ];
- },
-
- /**
- * Convert a (x, y) point to (radius, angle) coord
- * @param {Array.<number>} point
- * @return {Array.<number>}
- */
- pointToCoord: function (point) {
- var dx = point[0] - this.cx;
- var dy = point[1] - this.cy;
- var angleAxis = this.getAngleAxis();
- var extent = angleAxis.getExtent();
- var minAngle = Math.min(extent[0], extent[1]);
- var maxAngle = Math.max(extent[0], extent[1]);
- // Fix fixed extent in polarCreator
- // FIXME
- angleAxis.inverse
- ? (minAngle = maxAngle - 360)
- : (maxAngle = minAngle + 360);
-
- var radius = Math.sqrt(dx * dx + dy * dy);
- dx /= radius;
- dy /= radius;
-
- var radian = Math.atan2(-dy, dx) / Math.PI * 180;
-
- // move to angleExtent
- var dir = radian < minAngle ? 1 : -1;
- while (radian < minAngle || radian > maxAngle) {
- radian += dir * 360;
- }
-
- return [radius, radian];
- },
-
- /**
- * Convert a (radius, angle) coord to (x, y) point
- * @param {Array.<number>} coord
- * @return {Array.<number>}
- */
- coordToPoint: function (coord) {
- var radius = coord[0];
- var radian = coord[1] / 180 * Math.PI;
- var x = Math.cos(radian) * radius + this.cx;
- // Inverse the y
- var y = -Math.sin(radian) * radius + this.cy;
-
- return [x, y];
- }
- };
-
- module.exports = Polar;
-
-
-/***/ },
-/* 275 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
-
- function RadiusAxis(scale, radiusExtent) {
-
- Axis.call(this, 'radius', scale, radiusExtent);
-
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = 'category';
- }
-
- RadiusAxis.prototype = {
-
- constructor: RadiusAxis,
-
- dataToRadius: Axis.prototype.dataToCoord,
-
- radiusToData: Axis.prototype.coordToData
- };
-
- zrUtil.inherits(RadiusAxis, Axis);
-
- module.exports = RadiusAxis;
-
-
-/***/ },
-/* 276 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
-
- function AngleAxis(scale, angleExtent) {
-
- angleExtent = angleExtent || [0, 360];
-
- Axis.call(this, 'angle', scale, angleExtent);
-
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = 'category';
- }
-
- AngleAxis.prototype = {
-
- constructor: AngleAxis,
-
- dataToAngle: Axis.prototype.dataToCoord,
-
- angleToData: Axis.prototype.coordToData
- };
-
- zrUtil.inherits(AngleAxis, Axis);
-
- module.exports = AngleAxis;
-
-
-/***/ },
-/* 277 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- __webpack_require__(278);
-
- __webpack_require__(1).extendComponentModel({
-
- type: 'polar',
-
- dependencies: ['polarAxis', 'angleAxis'],
-
- /**
- * @type {module:echarts/coord/polar/Polar}
- */
- coordinateSystem: null,
-
- /**
- * @param {string} axisType
- * @return {module:echarts/coord/polar/AxisModel}
- */
- findAxisModel: function (axisType) {
- var angleAxisModel;
- var ecModel = this.ecModel;
- ecModel.eachComponent(axisType, function (axisModel) {
- if (ecModel.getComponent(
- 'polar', axisModel.getShallow('polarIndex')
- ) === this) {
- angleAxisModel = axisModel;
- }
- }, this);
- return angleAxisModel;
- },
-
- defaultOption: {
-
- zlevel: 0,
-
- z: 0,
-
- center: ['50%', '50%'],
-
- radius: '80%'
- }
- });
-
-
-/***/ },
-/* 278 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var ComponentModel = __webpack_require__(19);
- var axisModelCreator = __webpack_require__(121);
-
- var PolarAxisModel = ComponentModel.extend({
- type: 'polarAxis',
- /**
- * @type {module:echarts/coord/polar/AngleAxis|module:echarts/coord/polar/RadiusAxis}
- */
- axis: null
- });
-
- zrUtil.merge(PolarAxisModel.prototype, __webpack_require__(123));
-
- var polarAxisDefaultExtendedOption = {
- angle: {
- polarIndex: 0,
-
- startAngle: 90,
-
- clockwise: true,
-
- splitNumber: 12,
-
- axisLabel: {
- rotate: false
- }
- },
- radius: {
- polarIndex: 0,
-
- splitNumber: 5
- }
- };
-
- function getAxisType(axisDim, option) {
- // Default axis with data is category axis
- return option.type || (option.data ? 'category' : 'value');
- }
-
- axisModelCreator('angle', PolarAxisModel, getAxisType, polarAxisDefaultExtendedOption.angle);
- axisModelCreator('radius', PolarAxisModel, getAxisType, polarAxisDefaultExtendedOption.radius);
-
-
-
-/***/ },
-/* 279 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- __webpack_require__(273);
-
- __webpack_require__(280);
-
-
-/***/ },
-/* 280 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var Model = __webpack_require__(8);
-
- var elementList = ['axisLine', 'axisLabel', 'axisTick', 'splitLine', 'splitArea'];
-
- function getAxisLineShape(polar, r0, r, angle) {
- var start = polar.coordToPoint([r0, angle]);
- var end = polar.coordToPoint([r, angle]);
-
- return {
- x1: start[0],
- y1: start[1],
- x2: end[0],
- y2: end[1]
- };
- }
- __webpack_require__(1).extendComponentView({
-
- type: 'angleAxis',
-
- render: function (angleAxisModel, ecModel) {
- this.group.removeAll();
- if (!angleAxisModel.get('show')) {
- return;
- }
-
- var polarModel = ecModel.getComponent('polar', angleAxisModel.get('polarIndex'));
- var angleAxis = angleAxisModel.axis;
- var polar = polarModel.coordinateSystem;
- var radiusExtent = polar.getRadiusAxis().getExtent();
- var ticksAngles = angleAxis.getTicksCoords();
-
- if (angleAxis.type !== 'category') {
- // Remove the last tick which will overlap the first tick
- ticksAngles.pop();
- }
-
- zrUtil.each(elementList, function (name) {
- if (angleAxisModel.get(name +'.show')) {
- this['_' + name](angleAxisModel, polar, ticksAngles, radiusExtent);
- }
- }, this);
- },
-
- /**
- * @private
- */
- _axisLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
- var lineStyleModel = angleAxisModel.getModel('axisLine.lineStyle');
-
- var circle = new graphic.Circle({
- shape: {
- cx: polar.cx,
- cy: polar.cy,
- r: radiusExtent[1]
- },
- style: lineStyleModel.getLineStyle(),
- z2: 1,
- silent: true
- });
- circle.style.fill = null;
-
- this.group.add(circle);
- },
-
- /**
- * @private
- */
- _axisTick: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
- var tickModel = angleAxisModel.getModel('axisTick');
-
- var tickLen = (tickModel.get('inside') ? -1 : 1) * tickModel.get('length');
-
- var lines = zrUtil.map(ticksAngles, function (tickAngle) {
- return new graphic.Line({
- shape: getAxisLineShape(polar, radiusExtent[1], radiusExtent[1] + tickLen, tickAngle)
- });
- });
- this.group.add(graphic.mergePath(
- lines, {
- style: tickModel.getModel('lineStyle').getLineStyle()
- }
- ));
- },
-
- /**
- * @private
- */
- _axisLabel: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
- var axis = angleAxisModel.axis;
-
- var categoryData = angleAxisModel.get('data');
-
- var labelModel = angleAxisModel.getModel('axisLabel');
- var axisTextStyleModel = labelModel.getModel('textStyle');
-
- var labels = angleAxisModel.getFormattedLabels();
-
- var labelMargin = labelModel.get('margin');
- var labelsAngles = axis.getLabelsCoords();
-
- // Use length of ticksAngles because it may remove the last tick to avoid overlapping
- for (var i = 0; i < ticksAngles.length; i++) {
- var r = radiusExtent[1];
- var p = polar.coordToPoint([r + labelMargin, labelsAngles[i]]);
- var cx = polar.cx;
- var cy = polar.cy;
-
- var labelTextAlign = Math.abs(p[0] - cx) / r < 0.3
- ? 'center' : (p[0] > cx ? 'left' : 'right');
- var labelTextBaseline = Math.abs(p[1] - cy) / r < 0.3
- ? 'middle' : (p[1] > cy ? 'top' : 'bottom');
-
- var textStyleModel = axisTextStyleModel;
- if (categoryData && categoryData[i] && categoryData[i].textStyle) {
- textStyleModel = new Model(
- categoryData[i].textStyle, axisTextStyleModel
- );
- }
- this.group.add(new graphic.Text({
- style: {
- x: p[0],
- y: p[1],
- fill: textStyleModel.getTextColor(),
- text: labels[i],
- textAlign: labelTextAlign,
- textVerticalAlign: labelTextBaseline,
- textFont: textStyleModel.getFont()
- },
- silent: true
- }));
- }
- },
-
- /**
- * @private
- */
- _splitLine: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
- var splitLineModel = angleAxisModel.getModel('splitLine');
- var lineStyleModel = splitLineModel.getModel('lineStyle');
- var lineColors = lineStyleModel.get('color');
- var lineCount = 0;
-
- lineColors = lineColors instanceof Array ? lineColors : [lineColors];
-
- var splitLines = [];
-
- for (var i = 0; i < ticksAngles.length; i++) {
- var colorIndex = (lineCount++) % lineColors.length;
- splitLines[colorIndex] = splitLines[colorIndex] || [];
- splitLines[colorIndex].push(new graphic.Line({
- shape: getAxisLineShape(polar, radiusExtent[0], radiusExtent[1], ticksAngles[i])
- }));
- }
-
- // Simple optimization
- // Batching the lines if color are the same
- for (var i = 0; i < splitLines.length; i++) {
- this.group.add(graphic.mergePath(splitLines[i], {
- style: zrUtil.defaults({
- stroke: lineColors[i % lineColors.length]
- }, lineStyleModel.getLineStyle()),
- silent: true,
- z: angleAxisModel.get('z')
- }));
- }
- },
-
- /**
- * @private
- */
- _splitArea: function (angleAxisModel, polar, ticksAngles, radiusExtent) {
-
- var splitAreaModel = angleAxisModel.getModel('splitArea');
- var areaStyleModel = splitAreaModel.getModel('areaStyle');
- var areaColors = areaStyleModel.get('color');
- var lineCount = 0;
-
- areaColors = areaColors instanceof Array ? areaColors : [areaColors];
-
- var splitAreas = [];
-
- var RADIAN = Math.PI / 180;
- var prevAngle = -ticksAngles[0] * RADIAN;
- var r0 = Math.min(radiusExtent[0], radiusExtent[1]);
- var r1 = Math.max(radiusExtent[0], radiusExtent[1]);
-
- var clockwise = angleAxisModel.get('clockwise');
-
- for (var i = 1; i < ticksAngles.length; i++) {
- var colorIndex = (lineCount++) % areaColors.length;
- splitAreas[colorIndex] = splitAreas[colorIndex] || [];
- splitAreas[colorIndex].push(new graphic.Sector({
- shape: {
- cx: polar.cx,
- cy: polar.cy,
- r0: r0,
- r: r1,
- startAngle: prevAngle,
- endAngle: -ticksAngles[i] * RADIAN,
- clockwise: clockwise
- },
- silent: true
- }));
- prevAngle = -ticksAngles[i] * RADIAN;
- }
-
- // Simple optimization
- // Batching the lines if color are the same
- for (var i = 0; i < splitAreas.length; i++) {
- this.group.add(graphic.mergePath(splitAreas[i], {
- style: zrUtil.defaults({
- fill: areaColors[i % areaColors.length]
- }, areaStyleModel.getAreaStyle()),
- silent: true
- }));
- }
- }
- });
-
-
-/***/ },
-/* 281 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(273);
-
- __webpack_require__(282);
-
-
-/***/ },
-/* 282 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var AxisBuilder = __webpack_require__(126);
-
- var axisBuilderAttrs = [
- 'axisLine', 'axisLabel', 'axisTick', 'axisName'
- ];
- var selfBuilderAttrs = [
- 'splitLine', 'splitArea'
- ];
-
- __webpack_require__(1).extendComponentView({
-
- type: 'radiusAxis',
-
- render: function (radiusAxisModel, ecModel) {
- this.group.removeAll();
- if (!radiusAxisModel.get('show')) {
- return;
- }
- var polarModel = ecModel.getComponent('polar', radiusAxisModel.get('polarIndex'));
- var angleAxis = polarModel.coordinateSystem.getAngleAxis();
- var radiusAxis = radiusAxisModel.axis;
- var polar = polarModel.coordinateSystem;
- var ticksCoords = radiusAxis.getTicksCoords();
- var axisAngle = angleAxis.getExtent()[0];
- var radiusExtent = radiusAxis.getExtent();
-
- var layout = layoutAxis(polar, radiusAxisModel, axisAngle);
- var axisBuilder = new AxisBuilder(radiusAxisModel, layout);
- zrUtil.each(axisBuilderAttrs, axisBuilder.add, axisBuilder);
- this.group.add(axisBuilder.getGroup());
-
- zrUtil.each(selfBuilderAttrs, function (name) {
- if (radiusAxisModel.get(name +'.show')) {
- this['_' + name](radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords);
- }
- }, this);
- },
-
- /**
- * @private
- */
- _splitLine: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
- var splitLineModel = radiusAxisModel.getModel('splitLine');
- var lineStyleModel = splitLineModel.getModel('lineStyle');
- var lineColors = lineStyleModel.get('color');
- var lineCount = 0;
-
- lineColors = lineColors instanceof Array ? lineColors : [lineColors];
-
- var splitLines = [];
-
- for (var i = 0; i < ticksCoords.length; i++) {
- var colorIndex = (lineCount++) % lineColors.length;
- splitLines[colorIndex] = splitLines[colorIndex] || [];
- splitLines[colorIndex].push(new graphic.Circle({
- shape: {
- cx: polar.cx,
- cy: polar.cy,
- r: ticksCoords[i]
- },
- silent: true
- }));
- }
-
- // Simple optimization
- // Batching the lines if color are the same
- for (var i = 0; i < splitLines.length; i++) {
- this.group.add(graphic.mergePath(splitLines[i], {
- style: zrUtil.defaults({
- stroke: lineColors[i % lineColors.length],
- fill: null
- }, lineStyleModel.getLineStyle()),
- silent: true
- }));
- }
- },
-
- /**
- * @private
- */
- _splitArea: function (radiusAxisModel, polar, axisAngle, radiusExtent, ticksCoords) {
-
- var splitAreaModel = radiusAxisModel.getModel('splitArea');
- var areaStyleModel = splitAreaModel.getModel('areaStyle');
- var areaColors = areaStyleModel.get('color');
- var lineCount = 0;
-
- areaColors = areaColors instanceof Array ? areaColors : [areaColors];
-
- var splitAreas = [];
-
- var prevRadius = ticksCoords[0];
- for (var i = 1; i < ticksCoords.length; i++) {
- var colorIndex = (lineCount++) % areaColors.length;
- splitAreas[colorIndex] = splitAreas[colorIndex] || [];
- splitAreas[colorIndex].push(new graphic.Sector({
- shape: {
- cx: polar.cx,
- cy: polar.cy,
- r0: prevRadius,
- r: ticksCoords[i],
- startAngle: 0,
- endAngle: Math.PI * 2
- },
- silent: true
- }));
- prevRadius = ticksCoords[i];
- }
-
- // Simple optimization
- // Batching the lines if color are the same
- for (var i = 0; i < splitAreas.length; i++) {
- this.group.add(graphic.mergePath(splitAreas[i], {
- style: zrUtil.defaults({
- fill: areaColors[i % areaColors.length]
- }, areaStyleModel.getAreaStyle()),
- silent: true
- }));
- }
- }
- });
-
- /**
- * @inner
- */
- function layoutAxis(polar, radiusAxisModel, axisAngle) {
- return {
- position: [polar.cx, polar.cy],
- rotation: axisAngle / 180 * Math.PI,
- labelDirection: -1,
- tickDirection: -1,
- nameDirection: 1,
- labelRotation: radiusAxisModel.getModel('axisLabel').get('rotate'),
- // Over splitLine and splitArea
- z2: 1
- };
- }
-
-
-/***/ },
-/* 283 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(163);
-
- __webpack_require__(284);
-
- __webpack_require__(161);
-
-
-/***/ },
-/* 284 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var MapDraw = __webpack_require__(158);
-
- module.exports = __webpack_require__(1).extendComponentView({
-
- type: 'geo',
-
- init: function (ecModel, api) {
- var mapDraw = new MapDraw(api, true);
- this._mapDraw = mapDraw;
-
- this.group.add(mapDraw.group);
- },
-
- render: function (geoModel, ecModel, api) {
- geoModel.get('show') &&
- this._mapDraw.draw(geoModel, ecModel, api);
- }
- });
-
-
-/***/ },
-/* 285 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var echarts = __webpack_require__(1);
- var graphic = __webpack_require__(42);
- var layout = __webpack_require__(21);
-
- // Model
- echarts.extendComponentModel({
-
- type: 'title',
-
- layoutMode: {type: 'box', ignoreSize: true},
-
- defaultOption: {
- // 一级层叠
- zlevel: 0,
- // 二级层叠
- z: 6,
- show: true,
-
- text: '',
- // 超链接跳转
- // link: null,
- // 仅支持self | blank
- target: 'blank',
- subtext: '',
-
- // 超链接跳转
- // sublink: null,
- // 仅支持self | blank
- subtarget: 'blank',
-
- // 'center' ¦ 'left' ¦ 'right'
- // ¦ {number}(x坐标,单位px)
- left: 0,
- // 'top' ¦ 'bottom' ¦ 'center'
- // ¦ {number}(y坐标,单位px)
- top: 0,
-
- // 水平对齐
- // 'auto' | 'left' | 'right'
- // 默认根据 x 的位置判断是左对齐还是右对齐
- //textAlign: null
-
- backgroundColor: 'rgba(0,0,0,0)',
-
- // 标题边框颜色
- borderColor: '#ccc',
-
- // 标题边框线宽,单位px,默认为0(无边框)
- borderWidth: 0,
-
- // 标题内边距,单位px,默认各方向内边距为5,
- // 接受数组分别设定上右下左边距,同css
- padding: 5,
-
- // 主副标题纵向间隔,单位px,默认为10,
- itemGap: 10,
- textStyle: {
- fontSize: 18,
- fontWeight: 'bolder',
- // 主标题文字颜色
- color: '#333'
- },
- subtextStyle: {
- // 副标题文字颜色
- color: '#aaa'
- }
- }
- });
-
- // View
- echarts.extendComponentView({
-
- type: 'title',
-
- render: function (titleModel, ecModel, api) {
- this.group.removeAll();
-
- if (!titleModel.get('show')) {
- return;
- }
-
- var group = this.group;
-
- var textStyleModel = titleModel.getModel('textStyle');
- var subtextStyleModel = titleModel.getModel('subtextStyle');
-
- var textAlign = titleModel.get('textAlign');
-
- var textEl = new graphic.Text({
- style: {
- text: titleModel.get('text'),
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor(),
- textBaseline: 'top'
- },
- z2: 10
- });
-
- var textRect = textEl.getBoundingRect();
-
- var subText = titleModel.get('subtext');
- var subTextEl = new graphic.Text({
- style: {
- text: subText,
- textFont: subtextStyleModel.getFont(),
- fill: subtextStyleModel.getTextColor(),
- y: textRect.height + titleModel.get('itemGap'),
- textBaseline: 'top'
- },
- z2: 10
- });
-
- var link = titleModel.get('link');
- var sublink = titleModel.get('sublink');
-
- textEl.silent = !link;
- subTextEl.silent = !sublink;
-
- if (link) {
- textEl.on('click', function () {
- window.open(link, titleModel.get('target'));
- });
- }
- if (sublink) {
- subTextEl.on('click', function () {
- window.open(sublink, titleModel.get('subtarget'));
- });
- }
-
- group.add(textEl);
- subText && group.add(subTextEl);
- // If no subText, but add subTextEl, there will be an empty line.
-
- var groupRect = group.getBoundingRect();
- var layoutOption = titleModel.getBoxLayoutParams();
- layoutOption.width = groupRect.width;
- layoutOption.height = groupRect.height;
- var layoutRect = layout.getLayoutRect(
- layoutOption, {
- width: api.getWidth(),
- height: api.getHeight()
- }, titleModel.get('padding')
- );
- // Adjust text align based on position
- if (!textAlign) {
- // Align left if title is on the left. center and right is same
- textAlign = titleModel.get('left') || titleModel.get('right');
- if (textAlign === 'middle') {
- textAlign = 'center';
- }
- // Adjust layout by text align
- if (textAlign === 'right') {
- layoutRect.x += layoutRect.width;
- }
- else if (textAlign === 'center') {
- layoutRect.x += layoutRect.width / 2;
- }
- }
- group.position = [layoutRect.x, layoutRect.y];
- textEl.setStyle('textAlign', textAlign);
- subTextEl.setStyle('textAlign', textAlign);
-
- // Render background
- // Get groupRect again because textAlign has been changed
- groupRect = group.getBoundingRect();
- var padding = layoutRect.margin;
- var style = titleModel.getItemStyle(['color', 'opacity']);
- style.fill = titleModel.get('backgroundColor');
- var rect = new graphic.Rect({
- shape: {
- x: groupRect.x - padding[3],
- y: groupRect.y - padding[0],
- width: groupRect.width + padding[1] + padding[3],
- height: groupRect.height + padding[0] + padding[2]
- },
- style: style,
- silent: true
- });
- graphic.subPixelOptimizeRect(rect);
-
- group.add(rect);
- }
- });
-
-
-/***/ },
-/* 286 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * DataZoom component entry
- */
-
-
- __webpack_require__(287);
-
- __webpack_require__(288);
- __webpack_require__(290);
-
- __webpack_require__(291);
- __webpack_require__(292);
-
- __webpack_require__(295);
- __webpack_require__(296);
-
- __webpack_require__(298);
- __webpack_require__(299);
-
-
-
-/***/ },
-/* 287 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(19).registerSubTypeDefaulter('dataZoom', function (option) {
- // Default 'slider' when no type specified.
- return 'slider';
- });
-
-
-
-/***/ },
-/* 288 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom model
- */
-
-
- var zrUtil = __webpack_require__(3);
- var env = __webpack_require__(78);
- var echarts = __webpack_require__(1);
- var modelUtil = __webpack_require__(5);
- var AxisProxy = __webpack_require__(289);
- var each = zrUtil.each;
- var eachAxisDim = modelUtil.eachAxisDim;
-
- var DataZoomModel = echarts.extendComponentModel({
-
- type: 'dataZoom',
-
- dependencies: [
- 'xAxis', 'yAxis', 'zAxis', 'radiusAxis', 'angleAxis', 'series'
- ],
-
- /**
- * @protected
- */
- defaultOption: {
- zlevel: 0,
- z: 4, // Higher than normal component (z: 2).
- orient: null, // Default auto by axisIndex. Possible value: 'horizontal', 'vertical'.
- xAxisIndex: null, // Default all horizontal category axis.
- yAxisIndex: null, // Default all vertical category axis.
- angleAxisIndex: null,
- radiusAxisIndex: null,
- filterMode: 'filter', // Possible values: 'filter' or 'empty'.
- // 'filter': data items which are out of window will be removed.
- // This option is applicable when filtering outliers.
- // 'empty': data items which are out of window will be set to empty.
- // This option is applicable when user should not neglect
- // that there are some data items out of window.
- // Taking line chart as an example, line will be broken in
- // the filtered points when filterModel is set to 'empty', but
- // be connected when set to 'filter'.
-
- throttle: 100, // Dispatch action by the fixed rate, avoid frequency.
- // default 100. Do not throttle when use null/undefined.
- start: 0, // Start percent. 0 ~ 100
- end: 100, // End percent. 0 ~ 100
- startValue: null, // Start value. If startValue specified, start is ignored.
- endValue: null // End value. If endValue specified, end is ignored.
- },
-
- /**
- * @override
- */
- init: function (option, parentModel, ecModel) {
-
- /**
- * key like x_0, y_1
- * @private
- * @type {Object}
- */
- this._dataIntervalByAxis = {};
-
- /**
- * @private
- */
- this._dataInfo = {};
-
- /**
- * key like x_0, y_1
- * @private
- */
- this._axisProxies = {};
-
- /**
- * @readOnly
- */
- this.textStyleModel;
-
- var rawOption = retrieveRaw(option);
-
- this.mergeDefaultAndTheme(option, ecModel);
-
- this.doInit(rawOption);
- },
-
- /**
- * @override
- */
- mergeOption: function (newOption) {
- var rawOption = retrieveRaw(newOption);
-
- //FIX #2591
- zrUtil.merge(this.option, newOption, true);
-
- this.doInit(rawOption);
- },
-
- /**
- * @protected
- */
- doInit: function (rawOption) {
- var thisOption = this.option;
-
- // Disable realtime view update if canvas is not supported.
- if (!env.canvasSupported) {
- thisOption.realtime = false;
- }
-
- processRangeProp('start', 'startValue', rawOption, thisOption);
- processRangeProp('end', 'endValue', rawOption, thisOption);
-
- this.textStyleModel = this.getModel('textStyle');
-
- this._resetTarget();
-
- this._giveAxisProxies();
- },
-
- /**
- * @private
- */
- _giveAxisProxies: function () {
- var axisProxies = this._axisProxies;
-
- this.eachTargetAxis(function (dimNames, axisIndex, dataZoomModel, ecModel) {
- var axisModel = this.dependentModels[dimNames.axis][axisIndex];
-
- // If exists, share axisProxy with other dataZoomModels.
- var axisProxy = axisModel.__dzAxisProxy || (
- // Use the first dataZoomModel as the main model of axisProxy.
- axisModel.__dzAxisProxy = new AxisProxy(
- dimNames.name, axisIndex, this, ecModel
- )
- );
- // FIXME
- // dispose __dzAxisProxy
-
- axisProxies[dimNames.name + '_' + axisIndex] = axisProxy;
- }, this);
- },
-
- /**
- * @private
- */
- _resetTarget: function () {
- var thisOption = this.option;
-
- var autoMode = this._judgeAutoMode();
-
- eachAxisDim(function (dimNames) {
- var axisIndexName = dimNames.axisIndex;
- thisOption[axisIndexName] = modelUtil.normalizeToArray(
- thisOption[axisIndexName]
- );
- }, this);
-
- if (autoMode === 'axisIndex') {
- this._autoSetAxisIndex();
- }
- else if (autoMode === 'orient') {
- this._autoSetOrient();
- }
- },
-
- /**
- * @private
- */
- _judgeAutoMode: function () {
- // Auto set only works for setOption at the first time.
- // The following is user's reponsibility. So using merged
- // option is OK.
- var thisOption = this.option;
-
- var hasIndexSpecified = false;
- eachAxisDim(function (dimNames) {
- // When user set axisIndex as a empty array, we think that user specify axisIndex
- // but do not want use auto mode. Because empty array may be encountered when
- // some error occured.
- if (thisOption[dimNames.axisIndex] != null) {
- hasIndexSpecified = true;
- }
- }, this);
-
- var orient = thisOption.orient;
-
- if (orient == null && hasIndexSpecified) {
- return 'orient';
- }
- else if (!hasIndexSpecified) {
- if (orient == null) {
- thisOption.orient = 'horizontal';
- }
- return 'axisIndex';
- }
- },
-
- /**
- * @private
- */
- _autoSetAxisIndex: function () {
- var autoAxisIndex = true;
- var orient = this.get('orient', true);
- var thisOption = this.option;
-
- if (autoAxisIndex) {
- // Find axis that parallel to dataZoom as default.
- var dimNames = orient === 'vertical'
- ? {dim: 'y', axisIndex: 'yAxisIndex', axis: 'yAxis'}
- : {dim: 'x', axisIndex: 'xAxisIndex', axis: 'xAxis'};
-
- if (this.dependentModels[dimNames.axis].length) {
- thisOption[dimNames.axisIndex] = [0];
- autoAxisIndex = false;
- }
- }
-
- if (autoAxisIndex) {
- // Find the first category axis as default. (consider polar)
- eachAxisDim(function (dimNames) {
- if (!autoAxisIndex) {
- return;
- }
- var axisIndices = [];
- var axisModels = this.dependentModels[dimNames.axis];
- if (axisModels.length && !axisIndices.length) {
- for (var i = 0, len = axisModels.length; i < len; i++) {
- if (axisModels[i].get('type') === 'category') {
- axisIndices.push(i);
- }
- }
- }
- thisOption[dimNames.axisIndex] = axisIndices;
- if (axisIndices.length) {
- autoAxisIndex = false;
- }
- }, this);
- }
-
- if (autoAxisIndex) {
- // FIXME
- // 这里是兼容ec2的写法(没指定xAxisIndex和yAxisIndex时把scatter和双数值轴折柱纳入dataZoom控制),
- // 但是实际是否需要Grid.js#getScaleByOption来判断(考虑time,log等axis type)?
-
- // If both dataZoom.xAxisIndex and dataZoom.yAxisIndex is not specified,
- // dataZoom component auto adopts series that reference to
- // both xAxis and yAxis which type is 'value'.
- this.ecModel.eachSeries(function (seriesModel) {
- if (this._isSeriesHasAllAxesTypeOf(seriesModel, 'value')) {
- eachAxisDim(function (dimNames) {
- var axisIndices = thisOption[dimNames.axisIndex];
- var axisIndex = seriesModel.get(dimNames.axisIndex);
- if (zrUtil.indexOf(axisIndices, axisIndex) < 0) {
- axisIndices.push(axisIndex);
- }
- });
- }
- }, this);
- }
- },
-
- /**
- * @private
- */
- _autoSetOrient: function () {
- var dim;
-
- // Find the first axis
- this.eachTargetAxis(function (dimNames) {
- !dim && (dim = dimNames.name);
- }, this);
-
- this.option.orient = dim === 'y' ? 'vertical' : 'horizontal';
- },
-
- /**
- * @private
- */
- _isSeriesHasAllAxesTypeOf: function (seriesModel, axisType) {
- // FIXME
- // 需要series的xAxisIndex和yAxisIndex都首先自动设置上。
- // 例如series.type === scatter时。
-
- var is = true;
- eachAxisDim(function (dimNames) {
- var seriesAxisIndex = seriesModel.get(dimNames.axisIndex);
- var axisModel = this.dependentModels[dimNames.axis][seriesAxisIndex];
-
- if (!axisModel || axisModel.get('type') !== axisType) {
- is = false;
- }
- }, this);
- return is;
- },
-
- /**
- * @public
- */
- getFirstTargetAxisModel: function () {
- var firstAxisModel;
- eachAxisDim(function (dimNames) {
- if (firstAxisModel == null) {
- var indices = this.get(dimNames.axisIndex);
- if (indices.length) {
- firstAxisModel = this.dependentModels[dimNames.axis][indices[0]];
- }
- }
- }, this);
-
- return firstAxisModel;
- },
-
- /**
- * @public
- * @param {Function} callback param: axisModel, dimNames, axisIndex, dataZoomModel, ecModel
- */
- eachTargetAxis: function (callback, context) {
- var ecModel = this.ecModel;
- eachAxisDim(function (dimNames) {
- each(
- this.get(dimNames.axisIndex),
- function (axisIndex) {
- callback.call(context, dimNames, axisIndex, this, ecModel);
- },
- this
- );
- }, this);
- },
-
- getAxisProxy: function (dimName, axisIndex) {
- return this._axisProxies[dimName + '_' + axisIndex];
- },
-
- /**
- * If not specified, set to undefined.
- *
- * @public
- * @param {Object} opt
- * @param {number} [opt.start]
- * @param {number} [opt.end]
- * @param {number} [opt.startValue]
- * @param {number} [opt.endValue]
- */
- setRawRange: function (opt) {
- each(['start', 'end', 'startValue', 'endValue'], function (name) {
- // If any of those prop is null/undefined, we should alos set
- // them, because only one pair between start/end and
- // startValue/endValue can work.
- this.option[name] = opt[name];
- }, this);
- },
-
- /**
- * @public
- * @return {Array.<number>} [startPercent, endPercent]
- */
- getPercentRange: function () {
- var axisProxy = this.findRepresentativeAxisProxy();
- if (axisProxy) {
- return axisProxy.getDataPercentWindow();
- }
- },
-
- /**
- * @public
- * For example, chart.getModel().getComponent('dataZoom').getValueRange('y', 0);
- *
- * @param {string} [axisDimName]
- * @param {number} [axisIndex]
- * @return {Array.<number>} [startValue, endValue]
- */
- getValueRange: function (axisDimName, axisIndex) {
- if (axisDimName == null && axisIndex == null) {
- var axisProxy = this.findRepresentativeAxisProxy();
- if (axisProxy) {
- return axisProxy.getDataValueWindow();
- }
- }
- else {
- return this.getAxisProxy(axisDimName, axisIndex).getDataValueWindow();
- }
- },
-
- /**
- * @public
- * @return {module:echarts/component/dataZoom/AxisProxy}
- */
- findRepresentativeAxisProxy: function () {
- // Find the first hosted axisProxy
- var axisProxies = this._axisProxies;
- for (var key in axisProxies) {
- if (axisProxies.hasOwnProperty(key) && axisProxies[key].hostedBy(this)) {
- return axisProxies[key];
- }
- }
-
- // If no hosted axis find not hosted axisProxy.
- // Consider this case: dataZoomModel1 and dataZoomModel2 control the same axis,
- // and the option.start or option.end settings are different. The percentRange
- // should follow axisProxy.
- // (We encounter this problem in toolbox data zoom.)
- for (var key in axisProxies) {
- if (axisProxies.hasOwnProperty(key) && !axisProxies[key].hostedBy(this)) {
- return axisProxies[key];
- }
- }
- }
-
- });
-
- function retrieveRaw(option) {
- var ret = {};
- each(
- ['start', 'end', 'startValue', 'endValue'],
- function (name) {
- ret[name] = option[name];
- }
- );
- return ret;
- }
-
- function processRangeProp(percentProp, valueProp, rawOption, thisOption) {
- // start/end has higher priority over startValue/endValue,
- // but we should make chart.setOption({endValue: 1000}) effective,
- // rather than chart.setOption({endValue: 1000, end: null}).
- if (rawOption[valueProp] != null && rawOption[percentProp] == null) {
- thisOption[percentProp] = null;
- }
- // Otherwise do nothing and use the merge result.
- }
-
- module.exports = DataZoomModel;
-
-
-
-/***/ },
-/* 289 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Axis operator
- */
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var each = zrUtil.each;
- var asc = numberUtil.asc;
-
- /**
- * Operate single axis.
- * One axis can only operated by one axis operator.
- * Different dataZoomModels may be defined to operate the same axis.
- * (i.e. 'inside' data zoom and 'slider' data zoom components)
- * So dataZoomModels share one axisProxy in that case.
- *
- * @class
- */
- var AxisProxy = function (dimName, axisIndex, dataZoomModel, ecModel) {
-
- /**
- * @private
- * @type {string}
- */
- this._dimName = dimName;
-
- /**
- * @private
- */
- this._axisIndex = axisIndex;
-
- /**
- * @private
- * @type {Array.<number>}
- */
- this._valueWindow;
-
- /**
- * @private
- * @type {Array.<number>}
- */
- this._percentWindow;
-
- /**
- * @private
- * @type {Array.<number>}
- */
- this._dataExtent;
-
- /**
- * @readOnly
- * @type {module: echarts/model/Global}
- */
- this.ecModel = ecModel;
-
- /**
- * @private
- * @type {module: echarts/component/dataZoom/DataZoomModel}
- */
- this._dataZoomModel = dataZoomModel;
- };
-
- AxisProxy.prototype = {
-
- constructor: AxisProxy,
-
- /**
- * Whether the axisProxy is hosted by dataZoomModel.
- *
- * @public
- * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
- * @return {boolean}
- */
- hostedBy: function (dataZoomModel) {
- return this._dataZoomModel === dataZoomModel;
- },
-
- /**
- * @return {Array.<number>}
- */
- getDataExtent: function () {
- return this._dataExtent.slice();
- },
-
- /**
- * @return {Array.<number>}
- */
- getDataValueWindow: function () {
- return this._valueWindow.slice();
- },
-
- /**
- * @return {Array.<number>}
- */
- getDataPercentWindow: function () {
- return this._percentWindow.slice();
- },
-
- /**
- * @public
- * @param {number} axisIndex
- * @return {Array} seriesModels
- */
- getTargetSeriesModels: function () {
- var seriesModels = [];
-
- this.ecModel.eachSeries(function (seriesModel) {
- if (this._axisIndex === seriesModel.get(this._dimName + 'AxisIndex')) {
- seriesModels.push(seriesModel);
- }
- }, this);
-
- return seriesModels;
- },
-
- getAxisModel: function () {
- return this.ecModel.getComponent(this._dimName + 'Axis', this._axisIndex);
- },
-
- getOtherAxisModel: function () {
- var axisDim = this._dimName;
- var ecModel = this.ecModel;
- var axisModel = this.getAxisModel();
- var isCartesian = axisDim === 'x' || axisDim === 'y';
- var otherAxisDim;
- var coordSysIndexName;
- if (isCartesian) {
- coordSysIndexName = 'gridIndex';
- otherAxisDim = axisDim === 'x' ? 'y' : 'x';
- }
- else {
- coordSysIndexName = 'polarIndex';
- otherAxisDim = axisDim === 'angle' ? 'radius' : 'angle';
- }
- var foundOtherAxisModel;
- ecModel.eachComponent(otherAxisDim + 'Axis', function (otherAxisModel) {
- if ((otherAxisModel.get(coordSysIndexName) || 0)
- === (axisModel.get(coordSysIndexName) || 0)) {
- foundOtherAxisModel = otherAxisModel;
- }
- });
- return foundOtherAxisModel;
- },
-
- /**
- * Notice: reset should not be called before series.restoreData() called,
- * so it is recommanded to be called in "process stage" but not "model init
- * stage".
- *
- * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
- */
- reset: function (dataZoomModel) {
- if (dataZoomModel !== this._dataZoomModel) {
- return;
- }
-
- // Culculate data window and data extent, and record them.
- var dataExtent = this._dataExtent = calculateDataExtent(
- this._dimName, this.getTargetSeriesModels()
- );
- var dataWindow = calculateDataWindow(
- dataZoomModel.option, dataExtent, this
- );
- this._valueWindow = dataWindow.valueWindow;
- this._percentWindow = dataWindow.percentWindow;
-
- // Update axis setting then.
- setAxisModel(this);
- },
-
- /**
- * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
- */
- restore: function (dataZoomModel) {
- if (dataZoomModel !== this._dataZoomModel) {
- return;
- }
-
- this._valueWindow = this._percentWindow = null;
- setAxisModel(this, true);
- },
-
- /**
- * @param {module: echarts/component/dataZoom/DataZoomModel} dataZoomModel
- */
- filterData: function (dataZoomModel) {
- if (dataZoomModel !== this._dataZoomModel) {
- return;
- }
-
- var axisDim = this._dimName;
- var seriesModels = this.getTargetSeriesModels();
- var filterMode = dataZoomModel.get('filterMode');
- var valueWindow = this._valueWindow;
-
- // FIXME
- // Toolbox may has dataZoom injected. And if there are stacked bar chart
- // with NaN data. NaN will be filtered and stack will be wrong.
- // So we need to force the mode to be set empty
- var otherAxisModel = this.getOtherAxisModel();
- if (dataZoomModel.get('$fromToolbox')
- && otherAxisModel && otherAxisModel.get('type') === 'category') {
- filterMode = 'empty';
- }
- // Process series data
- each(seriesModels, function (seriesModel) {
- var seriesData = seriesModel.getData();
- if (!seriesData) {
- return;
- }
-
- each(seriesModel.coordDimToDataDim(axisDim), function (dim) {
- if (filterMode === 'empty') {
- seriesModel.setData(
- seriesData.map(dim, function (value) {
- return !isInWindow(value) ? NaN : value;
- })
- );
- }
- else {
- seriesData.filterSelf(dim, isInWindow);
- }
- });
- });
-
- function isInWindow(value) {
- return value >= valueWindow[0] && value <= valueWindow[1];
- }
- }
- };
-
- function calculateDataExtent(axisDim, seriesModels) {
- var dataExtent = [Infinity, -Infinity];
-
- each(seriesModels, function (seriesModel) {
- var seriesData = seriesModel.getData();
- if (seriesData) {
- each(seriesModel.coordDimToDataDim(axisDim), function (dim) {
- var seriesExtent = seriesData.getDataExtent(dim);
- seriesExtent[0] < dataExtent[0] && (dataExtent[0] = seriesExtent[0]);
- seriesExtent[1] > dataExtent[1] && (dataExtent[1] = seriesExtent[1]);
- });
- }
- }, this);
-
- return dataExtent;
- }
-
- function calculateDataWindow(opt, dataExtent, axisProxy) {
- var axisModel = axisProxy.getAxisModel();
- var scale = axisModel.axis.scale;
- var percentExtent = [0, 100];
- var percentWindow = [
- opt.start,
- opt.end
- ];
- var valueWindow = [];
-
- // In percent range is used and axis min/max/scale is set,
- // window should be based on min/max/0, but should not be
- // based on the extent of filtered data.
- dataExtent = dataExtent.slice();
- fixExtendByAxis(dataExtent, axisModel, scale);
-
- each(['startValue', 'endValue'], function (prop) {
- valueWindow.push(
- opt[prop] != null
- ? scale.parse(opt[prop])
- : null
- );
- });
-
- // Normalize bound.
- each([0, 1], function (idx) {
- var boundValue = valueWindow[idx];
- var boundPercent = percentWindow[idx];
-
- // start/end has higher priority over startValue/endValue,
- // because start/end can be consistent among different type
- // of axis but startValue/endValue not.
-
- if (boundPercent != null || boundValue == null) {
- if (boundPercent == null) {
- boundPercent = percentExtent[idx];
- }
- // Use scale.parse to math round for category or time axis.
- boundValue = scale.parse(numberUtil.linearMap(
- boundPercent, percentExtent, dataExtent, true
- ));
- }
- else { // boundPercent == null && boundValue != null
- boundPercent = numberUtil.linearMap(
- boundValue, dataExtent, percentExtent, true
- );
- }
- // Avoid rounding error
- valueWindow[idx] = numberUtil.round(boundValue);
- percentWindow[idx] = numberUtil.round(boundPercent);
- });
-
- return {
- valueWindow: asc(valueWindow),
- percentWindow: asc(percentWindow)
- };
- }
-
- function fixExtendByAxis(dataExtent, axisModel, scale) {
- each(['min', 'max'], function (minMax, index) {
- var axisMax = axisModel.get(minMax, true);
- // Consider 'dataMin', 'dataMax'
- if (axisMax != null && (axisMax + '').toLowerCase() !== 'data' + minMax) {
- dataExtent[index] = scale.parse(axisMax);
- }
- });
-
- if (!axisModel.get('scale', true)) {
- dataExtent[0] > 0 && (dataExtent[0] = 0);
- dataExtent[1] < 0 && (dataExtent[1] = 0);
- }
-
- return dataExtent;
- }
-
- function setAxisModel(axisProxy, isRestore) {
- var axisModel = axisProxy.getAxisModel();
-
- var percentWindow = axisProxy._percentWindow;
- var valueWindow = axisProxy._valueWindow;
-
- if (!percentWindow) {
- return;
- }
-
- var isFull = isRestore || (percentWindow[0] === 0 && percentWindow[1] === 100);
- // [0, 500]: arbitrary value, guess axis extent.
- var precision = !isRestore && numberUtil.getPixelPrecision(valueWindow, [0, 500]);
- // toFixed() digits argument must be between 0 and 20
- var invalidPrecision = !isRestore && !(precision < 20 && precision >= 0);
-
- var useOrigin = isRestore || isFull || invalidPrecision;
-
- axisModel.setRange && axisModel.setRange(
- useOrigin ? null : +valueWindow[0].toFixed(precision),
- useOrigin ? null : +valueWindow[1].toFixed(precision)
- );
- }
-
- module.exports = AxisProxy;
-
-
-
-/***/ },
-/* 290 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var ComponentView = __webpack_require__(28);
-
- module.exports = ComponentView.extend({
-
- type: 'dataZoom',
-
- render: function (dataZoomModel, ecModel, api, payload) {
- this.dataZoomModel = dataZoomModel;
- this.ecModel = ecModel;
- this.api = api;
- },
-
- /**
- * Find the first target coordinate system.
- *
- * @protected
- * @return {Object} {
- * cartesians: [
- * {model: coord0, axisModels: [axis1, axis3], coordIndex: 1},
- * {model: coord1, axisModels: [axis0, axis2], coordIndex: 0},
- * ...
- * ], // cartesians must not be null/undefined.
- * polars: [
- * {model: coord0, axisModels: [axis4], coordIndex: 0},
- * ...
- * ], // polars must not be null/undefined.
- * axisModels: [axis0, axis1, axis2, axis3, axis4]
- * // axisModels must not be null/undefined.
- * }
- */
- getTargetInfo: function () {
- var dataZoomModel = this.dataZoomModel;
- var ecModel = this.ecModel;
- var cartesians = [];
- var polars = [];
- var axisModels = [];
-
- dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) {
- var axisModel = ecModel.getComponent(dimNames.axis, axisIndex);
- if (axisModel) {
- axisModels.push(axisModel);
-
- var gridIndex = axisModel.get('gridIndex');
- var polarIndex = axisModel.get('polarIndex');
-
- if (gridIndex != null) {
- var coordModel = ecModel.getComponent('grid', gridIndex);
- save(coordModel, axisModel, cartesians, gridIndex);
- }
- else if (polarIndex != null) {
- var coordModel = ecModel.getComponent('polar', polarIndex);
- save(coordModel, axisModel, polars, polarIndex);
- }
- }
- }, this);
-
- function save(coordModel, axisModel, store, coordIndex) {
- var item;
- for (var i = 0; i < store.length; i++) {
- if (store[i].model === coordModel) {
- item = store[i];
- break;
- }
- }
- if (!item) {
- store.push(item = {
- model: coordModel, axisModels: [], coordIndex: coordIndex
- });
- }
- item.axisModels.push(axisModel);
- }
-
- return {
- cartesians: cartesians,
- polars: polars,
- axisModels: axisModels
- };
- }
-
- });
-
-
-
-/***/ },
-/* 291 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom model
- */
-
-
- var DataZoomModel = __webpack_require__(288);
- var layout = __webpack_require__(21);
- var zrUtil = __webpack_require__(3);
-
- var SliderZoomModel = DataZoomModel.extend({
-
- type: 'dataZoom.slider',
-
- layoutMode: 'box',
-
- /**
- * @protected
- */
- defaultOption: {
- show: true,
-
- // ph => placeholder. Using placehoder here because
- // deault value can only be drived in view stage.
- right: 'ph', // Default align to grid rect.
- top: 'ph', // Default align to grid rect.
- width: 'ph', // Default align to grid rect.
- height: 'ph', // Default align to grid rect.
- left: null, // Default align to grid rect.
- bottom: null, // Default align to grid rect.
-
- backgroundColor: 'rgba(47,69,84,0)', // Background of slider zoom component.
- dataBackgroundColor: '#ddd', // Background of data shadow.
- fillerColor: 'rgba(47,69,84,0.15)', // Color of selected area.
- handleColor: 'rgba(148,164,165,0.95)', // Color of handle.
- handleSize: 10,
-
- labelPrecision: null,
- labelFormatter: null,
- showDetail: true,
- showDataShadow: 'auto', // Default auto decision.
- realtime: true,
- zoomLock: false, // Whether disable zoom.
- textStyle: {
- color: '#333'
- }
- },
-
- /**
- * @override
- */
- mergeOption: function (option) {
- SliderZoomModel.superApply(this, 'mergeOption', arguments);
- }
-
- });
-
- module.exports = SliderZoomModel;
-
-
-
-/***/ },
-/* 292 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var throttle = __webpack_require__(293);
- var DataZoomView = __webpack_require__(290);
- var Rect = graphic.Rect;
- var numberUtil = __webpack_require__(7);
- var linearMap = numberUtil.linearMap;
- var layout = __webpack_require__(21);
- var sliderMove = __webpack_require__(294);
- var asc = numberUtil.asc;
- var bind = zrUtil.bind;
- var mathRound = Math.round;
- var mathMax = Math.max;
- var each = zrUtil.each;
-
- // Constants
- var DEFAULT_LOCATION_EDGE_GAP = 7;
- var DEFAULT_FRAME_BORDER_WIDTH = 1;
- var DEFAULT_FILLER_SIZE = 30;
- var HORIZONTAL = 'horizontal';
- var VERTICAL = 'vertical';
- var LABEL_GAP = 5;
- var SHOW_DATA_SHADOW_SERIES_TYPE = ['line', 'bar', 'candlestick', 'scatter'];
-
- var SliderZoomView = DataZoomView.extend({
-
- type: 'dataZoom.slider',
-
- init: function (ecModel, api) {
-
- /**
- * @private
- * @type {Object}
- */
- this._displayables = {};
-
- /**
- * @private
- * @type {string}
- */
- this._orient;
-
- /**
- * [0, 100]
- * @private
- */
- this._range;
-
- /**
- * [coord of the first handle, coord of the second handle]
- * @private
- */
- this._handleEnds;
-
- /**
- * [length, thick]
- * @private
- * @type {Array.<number>}
- */
- this._size;
-
- /**
- * @private
- * @type {number}
- */
- this._halfHandleSize;
-
- /**
- * @private
- */
- this._location;
-
- /**
- * @private
- */
- this._dragging;
-
- /**
- * @private
- */
- this._dataShadowInfo;
-
- this.api = api;
- },
-
- /**
- * @override
- */
- render: function (dataZoomModel, ecModel, api, payload) {
- SliderZoomView.superApply(this, 'render', arguments);
-
- throttle.createOrUpdate(
- this,
- '_dispatchZoomAction',
- this.dataZoomModel.get('throttle'),
- 'fixRate'
- );
-
- this._orient = dataZoomModel.get('orient');
- this._halfHandleSize = mathRound(dataZoomModel.get('handleSize') / 2);
-
- if (this.dataZoomModel.get('show') === false) {
- this.group.removeAll();
- return;
- }
-
- // Notice: this._resetInterval() should not be executed when payload.type
- // is 'dataZoom', origin this._range should be maintained, otherwise 'pan'
- // or 'zoom' info will be missed because of 'throttle' of this.dispatchAction,
- if (!payload || payload.type !== 'dataZoom' || payload.from !== this.uid) {
- this._buildView();
- }
-
- this._updateView();
- },
-
- /**
- * @override
- */
- remove: function () {
- SliderZoomView.superApply(this, 'remove', arguments);
- throttle.clear(this, '_dispatchZoomAction');
- },
-
- /**
- * @override
- */
- dispose: function () {
- SliderZoomView.superApply(this, 'dispose', arguments);
- throttle.clear(this, '_dispatchZoomAction');
- },
-
- _buildView: function () {
- var thisGroup = this.group;
-
- thisGroup.removeAll();
-
- this._resetLocation();
- this._resetInterval();
-
- var barGroup = this._displayables.barGroup = new graphic.Group();
-
- this._renderBackground();
- this._renderDataShadow();
- this._renderHandle();
-
- thisGroup.add(barGroup);
-
- this._positionGroup();
- },
-
- /**
- * @private
- */
- _resetLocation: function () {
- var dataZoomModel = this.dataZoomModel;
- var api = this.api;
-
- // If some of x/y/width/height are not specified,
- // auto-adapt according to target grid.
- var coordRect = this._findCoordRect();
- var ecSize = {width: api.getWidth(), height: api.getHeight()};
- // Default align by coordinate system rect.
- var positionInfo = this._orient === HORIZONTAL
- ? {
- // Why using 'right', because right should be used in vertical,
- // and it is better to be consistent for dealing with position param merge.
- right: ecSize.width - coordRect.x - coordRect.width,
- top: (ecSize.height - DEFAULT_FILLER_SIZE - DEFAULT_LOCATION_EDGE_GAP),
- width: coordRect.width,
- height: DEFAULT_FILLER_SIZE
- }
- : { // vertical
- right: DEFAULT_LOCATION_EDGE_GAP,
- top: coordRect.y,
- width: DEFAULT_FILLER_SIZE,
- height: coordRect.height
- };
-
- // Do not write back to option and replace value 'ph', because
- // the 'ph' value should be recalculated when resize.
- var layoutParams = layout.getLayoutParams(dataZoomModel.option);
-
- // Replace the placeholder value.
- zrUtil.each(['right', 'top', 'width', 'height'], function (name) {
- if (layoutParams[name] === 'ph') {
- layoutParams[name] = positionInfo[name];
- }
- });
-
- var layoutRect = layout.getLayoutRect(
- layoutParams,
- ecSize,
- dataZoomModel.padding
- );
-
- this._location = {x: layoutRect.x, y: layoutRect.y};
- this._size = [layoutRect.width, layoutRect.height];
- this._orient === VERTICAL && this._size.reverse();
- },
-
- /**
- * @private
- */
- _positionGroup: function () {
- var thisGroup = this.group;
- var location = this._location;
- var orient = this._orient;
-
- // Just use the first axis to determine mapping.
- var targetAxisModel = this.dataZoomModel.getFirstTargetAxisModel();
- var inverse = targetAxisModel && targetAxisModel.get('inverse');
-
- var barGroup = this._displayables.barGroup;
- var otherAxisInverse = (this._dataShadowInfo || {}).otherAxisInverse;
-
- // Transform barGroup.
- barGroup.attr(
- (orient === HORIZONTAL && !inverse)
- ? {scale: otherAxisInverse ? [1, 1] : [1, -1]}
- : (orient === HORIZONTAL && inverse)
- ? {scale: otherAxisInverse ? [-1, 1] : [-1, -1]}
- : (orient === VERTICAL && !inverse)
- ? {scale: otherAxisInverse ? [1, -1] : [1, 1], rotation: Math.PI / 2}
- // Dont use Math.PI, considering shadow direction.
- : {scale: otherAxisInverse ? [-1, -1] : [-1, 1], rotation: Math.PI / 2}
- );
-
- // Position barGroup
- var rect = thisGroup.getBoundingRect([barGroup]);
- thisGroup.position[0] = location.x - rect.x;
- thisGroup.position[1] = location.y - rect.y;
- },
-
- /**
- * @private
- */
- _getViewExtent: function () {
- // View total length.
- var halfHandleSize = this._halfHandleSize;
- var totalLength = mathMax(this._size[0], halfHandleSize * 4);
- var extent = [halfHandleSize, totalLength - halfHandleSize];
-
- return extent;
- },
-
- _renderBackground : function () {
- var dataZoomModel = this.dataZoomModel;
- var size = this._size;
-
- this._displayables.barGroup.add(new Rect({
- silent: true,
- shape: {
- x: 0, y: 0, width: size[0], height: size[1]
- },
- style: {
- fill: dataZoomModel.get('backgroundColor')
- }
- }));
- },
-
- _renderDataShadow: function () {
- var info = this._dataShadowInfo = this._prepareDataShadowInfo();
-
- if (!info) {
- return;
- }
-
- var size = this._size;
- var seriesModel = info.series;
- var data = seriesModel.getRawData();
- var otherDim = seriesModel.getShadowDim
- ? seriesModel.getShadowDim() // @see candlestick
- : info.otherDim;
-
- var otherDataExtent = data.getDataExtent(otherDim);
- // Nice extent.
- var otherOffset = (otherDataExtent[1] - otherDataExtent[0]) * 0.3;
- otherDataExtent = [
- otherDataExtent[0] - otherOffset,
- otherDataExtent[1] + otherOffset
- ];
- var otherShadowExtent = [0, size[1]];
-
- var thisShadowExtent = [0, size[0]];
-
- var points = [[size[0], 0], [0, 0]];
- var step = thisShadowExtent[1] / (data.count() - 1);
- var thisCoord = 0;
-
- // Optimize for large data shadow
- var stride = Math.round(data.count() / size[0]);
- data.each([otherDim], function (value, index) {
- if (stride > 0 && (index % stride)) {
- thisCoord += step;
- return;
- }
- // FIXME
- // 应该使用统计的空判断?还是在list里进行空判断?
- var otherCoord = (value == null || isNaN(value) || value === '')
- ? null
- : linearMap(value, otherDataExtent, otherShadowExtent, true);
- otherCoord != null && points.push([thisCoord, otherCoord]);
-
- thisCoord += step;
- });
-
- this._displayables.barGroup.add(new graphic.Polyline({
- shape: {points: points},
- style: {fill: this.dataZoomModel.get('dataBackgroundColor'), lineWidth: 0},
- silent: true,
- z2: -20
- }));
- },
-
- _prepareDataShadowInfo: function () {
- var dataZoomModel = this.dataZoomModel;
- var showDataShadow = dataZoomModel.get('showDataShadow');
-
- if (showDataShadow === false) {
- return;
- }
-
- // Find a representative series.
- var result;
- var ecModel = this.ecModel;
-
- dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) {
- var seriesModels = dataZoomModel
- .getAxisProxy(dimNames.name, axisIndex)
- .getTargetSeriesModels();
-
- zrUtil.each(seriesModels, function (seriesModel) {
- if (result) {
- return;
- }
-
- if (showDataShadow !== true && zrUtil.indexOf(
- SHOW_DATA_SHADOW_SERIES_TYPE, seriesModel.get('type')
- ) < 0
- ) {
- return;
- }
-
- var otherDim = getOtherDim(dimNames.name);
-
- var thisAxis = ecModel.getComponent(dimNames.axis, axisIndex).axis;
-
- result = {
- thisAxis: thisAxis,
- series: seriesModel,
- thisDim: dimNames.name,
- otherDim: otherDim,
- otherAxisInverse: seriesModel
- .coordinateSystem.getOtherAxis(thisAxis).inverse
- };
-
- }, this);
-
- }, this);
-
- return result;
- },
-
- _renderHandle: function () {
- var displaybles = this._displayables;
- var handles = displaybles.handles = [];
- var handleLabels = displaybles.handleLabels = [];
- var barGroup = this._displayables.barGroup;
- var size = this._size;
-
- barGroup.add(displaybles.filler = new Rect({
- draggable: true,
- cursor: 'move',
- drift: bind(this._onDragMove, this, 'all'),
- ondragend: bind(this._onDragEnd, this),
- onmouseover: bind(this._showDataInfo, this, true),
- onmouseout: bind(this._showDataInfo, this, false),
- style: {
- fill: this.dataZoomModel.get('fillerColor'),
- // text: ':::',
- textPosition : 'inside'
- }
- }));
-
- // Frame border.
- barGroup.add(new Rect(graphic.subPixelOptimizeRect({
- silent: true,
- shape: {
- x: 0,
- y: 0,
- width: size[0],
- height: size[1]
- },
- style: {
- stroke: this.dataZoomModel.get('dataBackgroundColor'),
- lineWidth: DEFAULT_FRAME_BORDER_WIDTH,
- fill: 'rgba(0,0,0,0)'
- }
- })));
-
- each([0, 1], function (handleIndex) {
-
- barGroup.add(handles[handleIndex] = new Rect({
- style: {
- fill: this.dataZoomModel.get('handleColor')
- },
- cursor: 'move',
- draggable: true,
- drift: bind(this._onDragMove, this, handleIndex),
- ondragend: bind(this._onDragEnd, this),
- onmouseover: bind(this._showDataInfo, this, true),
- onmouseout: bind(this._showDataInfo, this, false)
- }));
-
- var textStyleModel = this.dataZoomModel.textStyleModel;
-
- this.group.add(
- handleLabels[handleIndex] = new graphic.Text({
- silent: true,
- invisible: true,
- style: {
- x: 0, y: 0, text: '',
- textVerticalAlign: 'middle',
- textAlign: 'center',
- fill: textStyleModel.getTextColor(),
- textFont: textStyleModel.getFont()
- }
- }));
-
- }, this);
- },
-
- /**
- * @private
- */
- _resetInterval: function () {
- var range = this._range = this.dataZoomModel.getPercentRange();
- var viewExtent = this._getViewExtent();
-
- this._handleEnds = [
- linearMap(range[0], [0, 100], viewExtent, true),
- linearMap(range[1], [0, 100], viewExtent, true)
- ];
- },
-
- /**
- * @private
- * @param {(number|string)} handleIndex 0 or 1 or 'all'
- * @param {number} dx
- * @param {number} dy
- */
- _updateInterval: function (handleIndex, delta) {
- var handleEnds = this._handleEnds;
- var viewExtend = this._getViewExtent();
-
- sliderMove(
- delta,
- handleEnds,
- viewExtend,
- (handleIndex === 'all' || this.dataZoomModel.get('zoomLock'))
- ? 'rigid' : 'cross',
- handleIndex
- );
-
- this._range = asc([
- linearMap(handleEnds[0], viewExtend, [0, 100], true),
- linearMap(handleEnds[1], viewExtend, [0, 100], true)
- ]);
- },
-
- /**
- * @private
- */
- _updateView: function () {
- var displaybles = this._displayables;
- var handleEnds = this._handleEnds;
- var handleInterval = asc(handleEnds.slice());
- var size = this._size;
- var halfHandleSize = this._halfHandleSize;
-
- each([0, 1], function (handleIndex) {
-
- // Handles
- var handle = displaybles.handles[handleIndex];
- handle.setShape({
- x: handleEnds[handleIndex] - halfHandleSize,
- y: -1,
- width: halfHandleSize * 2,
- height: size[1] + 2,
- r: 1
- });
-
- }, this);
-
- // Filler
- displaybles.filler.setShape({
- x: handleInterval[0],
- y: 0,
- width: handleInterval[1] - handleInterval[0],
- height: this._size[1]
- });
-
- this._updateDataInfo();
- },
-
- /**
- * @private
- */
- _updateDataInfo: function () {
- var dataZoomModel = this.dataZoomModel;
- var displaybles = this._displayables;
- var handleLabels = displaybles.handleLabels;
- var orient = this._orient;
- var labelTexts = ['', ''];
-
- // FIXME
- // date型,支持formatter,autoformatter(ec2 date.getAutoFormatter)
- if (dataZoomModel.get('showDetail')) {
- var dataInterval;
- var axis;
- dataZoomModel.eachTargetAxis(function (dimNames, axisIndex) {
- // Using dataInterval of the first axis.
- if (!dataInterval) {
- dataInterval = dataZoomModel
- .getAxisProxy(dimNames.name, axisIndex)
- .getDataValueWindow();
- axis = this.ecModel.getComponent(dimNames.axis, axisIndex).axis;
- }
- }, this);
-
- if (dataInterval) {
- labelTexts = [
- this._formatLabel(dataInterval[0], axis),
- this._formatLabel(dataInterval[1], axis)
- ];
- }
- }
-
- var orderedHandleEnds = asc(this._handleEnds.slice());
-
- setLabel.call(this, 0);
- setLabel.call(this, 1);
-
- function setLabel(handleIndex) {
- // Label
- // Text should not transform by barGroup.
- var barTransform = graphic.getTransform(
- displaybles.handles[handleIndex], this.group
- );
- var direction = graphic.transformDirection(
- handleIndex === 0 ? 'right' : 'left', barTransform
- );
- var offset = this._halfHandleSize + LABEL_GAP;
- var textPoint = graphic.applyTransform(
- [
- orderedHandleEnds[handleIndex] + (handleIndex === 0 ? -offset : offset),
- this._size[1] / 2
- ],
- barTransform
- );
- handleLabels[handleIndex].setStyle({
- x: textPoint[0],
- y: textPoint[1],
- textVerticalAlign: orient === HORIZONTAL ? 'middle' : direction,
- textAlign: orient === HORIZONTAL ? direction : 'center',
- text: labelTexts[handleIndex]
- });
- }
- },
-
- /**
- * @private
- */
- _formatLabel: function (value, axis) {
- var dataZoomModel = this.dataZoomModel;
- var labelFormatter = dataZoomModel.get('labelFormatter');
- if (zrUtil.isFunction(labelFormatter)) {
- return labelFormatter(value);
- }
-
- var labelPrecision = dataZoomModel.get('labelPrecision');
- if (labelPrecision == null || labelPrecision === 'auto') {
- labelPrecision = axis.getPixelPrecision();
- }
-
- value = (value == null && isNaN(value))
- ? ''
- // FIXME Glue code
- : (axis.type === 'category' || axis.type === 'time')
- ? axis.scale.getLabel(Math.round(value))
- // param of toFixed should less then 20.
- : value.toFixed(Math.min(labelPrecision, 20));
-
- if (zrUtil.isString(labelFormatter)) {
- value = labelFormatter.replace('{value}', value);
- }
-
- return value;
- },
-
- /**
- * @private
- * @param {boolean} showOrHide true: show, false: hide
- */
- _showDataInfo: function (showOrHide) {
- // Always show when drgging.
- showOrHide = this._dragging || showOrHide;
-
- var handleLabels = this._displayables.handleLabels;
- handleLabels[0].attr('invisible', !showOrHide);
- handleLabels[1].attr('invisible', !showOrHide);
- },
-
- _onDragMove: function (handleIndex, dx, dy) {
- this._dragging = true;
-
- // Transform dx, dy to bar coordination.
- var vertex = this._applyBarTransform([dx, dy], true);
-
- this._updateInterval(handleIndex, vertex[0]);
- this._updateView();
-
- if (this.dataZoomModel.get('realtime')) {
- this._dispatchZoomAction();
- }
- },
-
- _onDragEnd: function () {
- this._dragging = false;
- this._showDataInfo(false);
- this._dispatchZoomAction();
- },
-
- /**
- * This action will be throttled.
- * @private
- */
- _dispatchZoomAction: function () {
- var range = this._range;
-
- this.api.dispatchAction({
- type: 'dataZoom',
- from: this.uid,
- dataZoomId: this.dataZoomModel.id,
- start: range[0],
- end: range[1]
- });
- },
-
- /**
- * @private
- */
- _applyBarTransform: function (vertex, inverse) {
- var barTransform = this._displayables.barGroup.getLocalTransform();
- return graphic.applyTransform(vertex, barTransform, inverse);
- },
-
- /**
- * @private
- */
- _findCoordRect: function () {
- // Find the grid coresponding to the first axis referred by dataZoom.
- var targetInfo = this.getTargetInfo();
-
- // FIXME
- // 判断是catesian还是polar
- var rect;
- if (targetInfo.cartesians.length) {
- rect = targetInfo.cartesians[0].model.coordinateSystem.getRect();
- }
- else { // Polar
- // FIXME
- // 暂时随便写的
- var width = this.api.getWidth();
- var height = this.api.getHeight();
- rect = {
- x: width * 0.2,
- y: height * 0.2,
- width: width * 0.6,
- height: height * 0.6
- };
- }
-
- return rect;
- }
-
- });
-
- function getOtherDim(thisDim) {
- // FIXME
- // 这个逻辑和getOtherAxis里一致,但是写在这里是否不好
- return thisDim === 'x' ? 'y' : 'x';
- }
-
- module.exports = SliderZoomView;
-
-
-
-/***/ },
-/* 293 */
-/***/ function(module, exports) {
-
-
-
- var lib = {};
-
- var ORIGIN_METHOD = '\0__throttleOriginMethod';
- var RATE = '\0__throttleRate';
-
- /**
- * 频率控制 返回函数连续调用时,fn 执行频率限定为每多少时间执行一次
- * 例如常见效果:
- * notifyWhenChangesStop
- * 频繁调用时,只保证最后一次执行
- * 配成:trailing:true;debounce:true 即可
- * notifyAtFixRate
- * 频繁调用时,按规律心跳执行
- * 配成:trailing:true;debounce:false 即可
- * 注意:
- * 根据model更新view的时候,可以使用throttle,
- * 但是根据view更新model的时候,避免使用这种延迟更新的方式。
- * 因为这可能导致model和server同步出现问题。
- *
- * @public
- * @param {(Function|Array.<Function>)} fn 需要调用的函数
- * 如果fn为array,则表示可以对多个函数进行throttle。
- * 他们共享同一个timer。
- * @param {number} delay 延迟时间,单位毫秒
- * @param {bool} trailing 是否保证最后一次触发的执行
- * true:表示保证最后一次调用会触发执行。
- * 但任何调用后不可能立即执行,总会delay。
- * false:表示不保证最后一次调用会触发执行。
- * 但只要间隔大于delay,调用就会立即执行。
- * @param {bool} debounce 节流
- * true:表示:频繁调用(间隔小于delay)时,根本不执行
- * false:表示:频繁调用(间隔小于delay)时,按规律心跳执行
- * @return {(Function|Array.<Function>)} 实际调用函数。
- * 当输入的fn为array时,返回值也为array。
- * 每项是Function。
- */
- lib.throttle = function (fn, delay, trailing, debounce) {
-
- var currCall = (new Date()).getTime();
- var lastCall = 0;
- var lastExec = 0;
- var timer = null;
- var diff;
- var scope;
- var args;
- var isSingle = typeof fn === 'function';
- delay = delay || 0;
-
- if (isSingle) {
- return createCallback();
- }
- else {
- var ret = [];
- for (var i = 0; i < fn.length; i++) {
- ret[i] = createCallback(i);
- }
- return ret;
- }
-
- function createCallback(index) {
-
- function exec() {
- lastExec = (new Date()).getTime();
- timer = null;
- (isSingle ? fn : fn[index]).apply(scope, args || []);
- }
-
- var cb = function () {
- currCall = (new Date()).getTime();
- scope = this;
- args = arguments;
- diff = currCall - (debounce ? lastCall : lastExec) - delay;
-
- clearTimeout(timer);
-
- if (debounce) {
- if (trailing) {
- timer = setTimeout(exec, delay);
- }
- else if (diff >= 0) {
- exec();
- }
- }
- else {
- if (diff >= 0) {
- exec();
- }
- else if (trailing) {
- timer = setTimeout(exec, -diff);
- }
- }
-
- lastCall = currCall;
- };
-
- /**
- * Clear throttle.
- * @public
- */
- cb.clear = function () {
- if (timer) {
- clearTimeout(timer);
- timer = null;
- }
- };
-
- return cb;
- }
- };
-
- /**
- * 按一定频率执行,最后一次调用总归会执行
- *
- * @public
- */
- lib.fixRate = function (fn, delay) {
- return delay != null
- ? lib.throttle(fn, delay, true, false)
- : fn;
- };
-
- /**
- * 直到不频繁调用了才会执行,最后一次调用总归会执行
- *
- * @public
- */
- lib.debounce = function (fn, delay) {
- return delay != null
- ? lib.throttle(fn, delay, true, true)
- : fn;
- };
-
-
- /**
- * Create throttle method or update throttle rate.
- *
- * @example
- * ComponentView.prototype.render = function () {
- * ...
- * throttle.createOrUpdate(
- * this,
- * '_dispatchAction',
- * this.model.get('throttle'),
- * 'fixRate'
- * );
- * };
- * ComponentView.prototype.remove = function () {
- * throttle.clear(this, '_dispatchAction');
- * };
- * ComponentView.prototype.dispose = function () {
- * throttle.clear(this, '_dispatchAction');
- * };
- *
- * @public
- * @param {Object} obj
- * @param {string} fnAttr
- * @param {number} rate
- * @param {string} throttleType 'fixRate' or 'debounce'
- */
- lib.createOrUpdate = function (obj, fnAttr, rate, throttleType) {
- var fn = obj[fnAttr];
-
- if (!fn || rate == null || !throttleType) {
- return;
- }
-
- var originFn = fn[ORIGIN_METHOD] || fn;
- var lastRate = fn[RATE];
-
- if (lastRate !== rate) {
- fn = obj[fnAttr] = lib[throttleType](originFn, rate);
- fn[ORIGIN_METHOD] = originFn;
- fn[RATE] = rate;
- }
- };
-
- /**
- * Clear throttle. Example see throttle.createOrUpdate.
- *
- * @public
- * @param {Object} obj
- * @param {string} fnAttr
- */
- lib.clear = function (obj, fnAttr) {
- var fn = obj[fnAttr];
- if (fn && fn[ORIGIN_METHOD]) {
- obj[fnAttr] = fn[ORIGIN_METHOD];
- }
- };
-
- module.exports = lib;
-
-
-
-/***/ },
-/* 294 */
-/***/ function(module, exports) {
-
-
-
- /**
- * Calculate slider move result.
- *
- * @param {number} delta Move length.
- * @param {Array.<number>} handleEnds handleEnds[0] and be bigger then handleEnds[1].
- * handleEnds will be modified in this method.
- * @param {Array.<number>} extent handleEnds is restricted by extent.
- * extent[0] should less or equals than extent[1].
- * @param {string} mode 'rigid': Math.abs(handleEnds[0] - handleEnds[1]) remain unchanged,
- * 'cross' handleEnds[0] can be bigger then handleEnds[1],
- * 'push' handleEnds[0] can not be bigger then handleEnds[1],
- * when they touch, one push other.
- * @param {number} handleIndex If mode is 'rigid', handleIndex is not required.
- * @param {Array.<number>} The input handleEnds.
- */
- module.exports = function (delta, handleEnds, extent, mode, handleIndex) {
- if (!delta) {
- return handleEnds;
- }
-
- if (mode === 'rigid') {
- delta = getRealDelta(delta, handleEnds, extent);
- handleEnds[0] += delta;
- handleEnds[1] += delta;
- }
- else {
- delta = getRealDelta(delta, handleEnds[handleIndex], extent);
- handleEnds[handleIndex] += delta;
-
- if (mode === 'push' && handleEnds[0] > handleEnds[1]) {
- handleEnds[1 - handleIndex] = handleEnds[handleIndex];
- }
- }
-
- return handleEnds;
-
- function getRealDelta(delta, handleEnds, extent) {
- var handleMinMax = !handleEnds.length
- ? [handleEnds, handleEnds]
- : handleEnds.slice();
- handleEnds[0] > handleEnds[1] && handleMinMax.reverse();
-
- if (delta < 0 && handleMinMax[0] + delta < extent[0]) {
- delta = extent[0] - handleMinMax[0];
- }
- if (delta > 0 && handleMinMax[1] + delta > extent[1]) {
- delta = extent[1] - handleMinMax[1];
- }
- return delta;
- }
- };
-
-
-/***/ },
-/* 295 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom model
- */
-
-
- module.exports = __webpack_require__(288).extend({
-
- type: 'dataZoom.inside',
-
- /**
- * @protected
- */
- defaultOption: {
- zoomLock: false // Whether disable zoom but only pan.
- }
- });
-
-
-/***/ },
-/* 296 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var DataZoomView = __webpack_require__(290);
- var zrUtil = __webpack_require__(3);
- var sliderMove = __webpack_require__(294);
- var roams = __webpack_require__(297);
- var bind = zrUtil.bind;
-
- var InsideZoomView = DataZoomView.extend({
-
- type: 'dataZoom.inside',
-
- /**
- * @override
- */
- init: function (ecModel, api) {
- /**
- * 'throttle' is used in this.dispatchAction, so we save range
- * to avoid missing some 'pan' info.
- * @private
- * @type {Array.<number>}
- */
- this._range;
- },
-
- /**
- * @override
- */
- render: function (dataZoomModel, ecModel, api, payload) {
- InsideZoomView.superApply(this, 'render', arguments);
-
- // Notice: origin this._range should be maintained, and should not be re-fetched
- // from dataZoomModel when payload.type is 'dataZoom', otherwise 'pan' or 'zoom'
- // info will be missed because of 'throttle' of this.dispatchAction.
- if (roams.shouldRecordRange(payload, dataZoomModel.id)) {
- this._range = dataZoomModel.getPercentRange();
- }
-
- // Reset controllers.
- var coordInfoList = this.getTargetInfo().cartesians;
- var allCoordIds = zrUtil.map(coordInfoList, function (coordInfo) {
- return roams.generateCoordId(coordInfo.model);
- });
- zrUtil.each(coordInfoList, function (coordInfo) {
- var coordModel = coordInfo.model;
- roams.register(
- api,
- {
- coordId: roams.generateCoordId(coordModel),
- allCoordIds: allCoordIds,
- coordinateSystem: coordModel.coordinateSystem,
- dataZoomId: dataZoomModel.id,
- throttleRage: dataZoomModel.get('throttle', true),
- panGetRange: bind(this._onPan, this, coordInfo),
- zoomGetRange: bind(this._onZoom, this, coordInfo)
- }
- );
- }, this);
-
- // TODO
- // polar支持
- },
-
- /**
- * @override
- */
- remove: function () {
- roams.unregister(this.api, this.dataZoomModel.id);
- InsideZoomView.superApply(this, 'remove', arguments);
- this._range = null;
- },
-
- /**
- * @override
- */
- dispose: function () {
- roams.unregister(this.api, this.dataZoomModel.id);
- InsideZoomView.superApply(this, 'dispose', arguments);
- this._range = null;
- },
-
- /**
- * @private
- */
- _onPan: function (coordInfo, controller, dx, dy) {
- return (
- this._range = panCartesian(
- [dx, dy], this._range, controller, coordInfo
- )
- );
- },
-
- /**
- * @private
- */
- _onZoom: function (coordInfo, controller, scale, mouseX, mouseY) {
- var dataZoomModel = this.dataZoomModel;
-
- if (dataZoomModel.option.zoomLock) {
- return this._range;
- }
-
- return (
- this._range = scaleCartesian(
- 1 / scale, [mouseX, mouseY], this._range,
- controller, coordInfo, dataZoomModel
- )
- );
- }
-
- });
-
- function panCartesian(pixelDeltas, range, controller, coordInfo) {
- range = range.slice();
-
- // Calculate transform by the first axis.
- var axisModel = coordInfo.axisModels[0];
- if (!axisModel) {
- return;
- }
-
- var directionInfo = getDirectionInfo(pixelDeltas, axisModel, controller);
-
- var percentDelta = directionInfo.signal
- * (range[1] - range[0])
- * directionInfo.pixel / directionInfo.pixelLength;
-
- sliderMove(
- percentDelta,
- range,
- [0, 100],
- 'rigid'
- );
-
- return range;
- }
-
- function scaleCartesian(scale, mousePoint, range, controller, coordInfo, dataZoomModel) {
- range = range.slice();
-
- // Calculate transform by the first axis.
- var axisModel = coordInfo.axisModels[0];
- if (!axisModel) {
- return;
- }
-
- var directionInfo = getDirectionInfo(mousePoint, axisModel, controller);
-
- var mouse = directionInfo.pixel - directionInfo.pixelStart;
- var percentPoint = mouse / directionInfo.pixelLength * (range[1] - range[0]) + range[0];
-
- scale = Math.max(scale, 0);
- range[0] = (range[0] - percentPoint) * scale + percentPoint;
- range[1] = (range[1] - percentPoint) * scale + percentPoint;
-
- return fixRange(range);
- }
-
- function getDirectionInfo(xy, axisModel, controller) {
- var axis = axisModel.axis;
- var rect = controller.rect;
- var ret = {};
-
- if (axis.dim === 'x') {
- ret.pixel = xy[0];
- ret.pixelLength = rect.width;
- ret.pixelStart = rect.x;
- ret.signal = axis.inverse ? 1 : -1;
- }
- else { // axis.dim === 'y'
- ret.pixel = xy[1];
- ret.pixelLength = rect.height;
- ret.pixelStart = rect.y;
- ret.signal = axis.inverse ? -1 : 1;
- }
-
- return ret;
- }
-
- function fixRange(range) {
- // Clamp, using !(<= or >=) to handle NaN.
- // jshint ignore:start
- var bound = [0, 100];
- !(range[0] <= bound[1]) && (range[0] = bound[1]);
- !(range[1] <= bound[1]) && (range[1] = bound[1]);
- !(range[0] >= bound[0]) && (range[0] = bound[0]);
- !(range[1] >= bound[0]) && (range[1] = bound[0]);
- // jshint ignore:end
-
- return range;
- }
-
- module.exports = InsideZoomView;
-
-
-/***/ },
-/* 297 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Roam controller manager.
- */
-
-
- // Only create one roam controller for each coordinate system.
- // one roam controller might be refered by two inside data zoom
- // components (for example, one for x and one for y). When user
- // pan or zoom, only dispatch one action for those data zoom
- // components.
-
- var zrUtil = __webpack_require__(3);
- var RoamController = __webpack_require__(159);
- var throttle = __webpack_require__(293);
- var curry = zrUtil.curry;
-
- var ATTR = '\0_ec_dataZoom_roams';
-
- var roams = {
-
- /**
- * @public
- * @param {module:echarts/ExtensionAPI} api
- * @param {Object} dataZoomInfo
- * @param {string} dataZoomInfo.coordId
- * @param {Object} dataZoomInfo.coordinateSystem
- * @param {Array.<string>} dataZoomInfo.allCoordIds
- * @param {string} dataZoomInfo.dataZoomId
- * @param {number} dataZoomInfo.throttleRate
- * @param {Function} dataZoomInfo.panGetRange
- * @param {Function} dataZoomInfo.zoomGetRange
- */
- register: function (api, dataZoomInfo) {
- var store = giveStore(api);
- var theDataZoomId = dataZoomInfo.dataZoomId;
- var theCoordId = dataZoomInfo.coordId;
-
- // Do clean when a dataZoom changes its target coordnate system.
- zrUtil.each(store, function (record, coordId) {
- var dataZoomInfos = record.dataZoomInfos;
- if (dataZoomInfos[theDataZoomId]
- && zrUtil.indexOf(dataZoomInfo.allCoordIds, theCoordId) < 0
- ) {
- delete dataZoomInfos[theDataZoomId];
- record.count--;
- }
- });
-
- cleanStore(store);
-
- var record = store[theCoordId];
-
- // Create if needed.
- if (!record) {
- record = store[theCoordId] = {
- coordId: theCoordId,
- dataZoomInfos: {},
- count: 0
- };
- record.controller = createController(api, dataZoomInfo, record);
- record.dispatchAction = zrUtil.curry(dispatchAction, api);
- }
-
- // Consider resize, area should be always updated.
- record.controller.rect = dataZoomInfo.coordinateSystem.getRect().clone();
-
- // Update throttle.
- throttle.createOrUpdate(
- record,
- 'dispatchAction',
- dataZoomInfo.throttleRate,
- 'fixRate'
- );
-
- // Update reference of dataZoom.
- !(record.dataZoomInfos[theDataZoomId]) && record.count++;
- record.dataZoomInfos[theDataZoomId] = dataZoomInfo;
- },
-
- /**
- * @public
- * @param {module:echarts/ExtensionAPI} api
- * @param {string} dataZoomId
- */
- unregister: function (api, dataZoomId) {
- var store = giveStore(api);
-
- zrUtil.each(store, function (record) {
- var dataZoomInfos = record.dataZoomInfos;
- if (dataZoomInfos[dataZoomId]) {
- delete dataZoomInfos[dataZoomId];
- record.count--;
- }
- });
-
- cleanStore(store);
- },
-
- /**
- * @public
- */
- shouldRecordRange: function (payload, dataZoomId) {
- if (payload && payload.type === 'dataZoom' && payload.batch) {
- for (var i = 0, len = payload.batch.length; i < len; i++) {
- if (payload.batch[i].dataZoomId === dataZoomId) {
- return false;
- }
- }
- }
- return true;
- },
-
- /**
- * @public
- */
- generateCoordId: function (coordModel) {
- return coordModel.type + '\0_' + coordModel.id;
- }
- };
-
- /**
- * Key: coordId, value: {dataZoomInfos: [], count, controller}
- * @type {Array.<Object>}
- */
- function giveStore(api) {
- // Mount store on zrender instance, so that we do not
- // need to worry about dispose.
- var zr = api.getZr();
- return zr[ATTR] || (zr[ATTR] = {});
- }
-
- function createController(api, dataZoomInfo, newRecord) {
- var controller = new RoamController(api.getZr());
- controller.enable();
- controller.on('pan', curry(onPan, newRecord));
- controller.on('zoom', curry(onZoom, newRecord));
-
- return controller;
- }
-
- function cleanStore(store) {
- zrUtil.each(store, function (record, coordId) {
- if (!record.count) {
- record.controller.off('pan').off('zoom');
- delete store[coordId];
- }
- });
- }
-
- function onPan(record, dx, dy) {
- wrapAndDispatch(record, function (info) {
- return info.panGetRange(record.controller, dx, dy);
- });
- }
-
- function onZoom(record, scale, mouseX, mouseY) {
- wrapAndDispatch(record, function (info) {
- return info.zoomGetRange(record.controller, scale, mouseX, mouseY);
- });
- }
-
- function wrapAndDispatch(record, getRange) {
- var batch = [];
-
- zrUtil.each(record.dataZoomInfos, function (info) {
- var range = getRange(info);
- range && batch.push({
- dataZoomId: info.dataZoomId,
- start: range[0],
- end: range[1]
- });
- });
-
- record.dispatchAction(batch);
- }
-
- /**
- * This action will be throttled.
- */
- function dispatchAction(api, batch) {
- api.dispatchAction({
- type: 'dataZoom',
- batch: batch
- });
- }
-
- module.exports = roams;
-
-
-
-/***/ },
-/* 298 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom processor
- */
-
-
- var echarts = __webpack_require__(1);
-
- echarts.registerProcessor('filter', function (ecModel, api) {
-
- ecModel.eachComponent('dataZoom', function (dataZoomModel) {
- // We calculate window and reset axis here but not in model
- // init stage and not after action dispatch handler, because
- // reset should be called after seriesData.restoreData.
- dataZoomModel.eachTargetAxis(resetSingleAxis);
-
- // Caution: data zoom filtering is order sensitive when using
- // percent range and no min/max/scale set on axis.
- // For example, we have dataZoom definition:
- // [
- // {xAxisIndex: 0, start: 30, end: 70},
- // {yAxisIndex: 0, start: 20, end: 80}
- // ]
- // In this case, [20, 80] of y-dataZoom should be based on data
- // that have filtered by x-dataZoom using range of [30, 70],
- // but should not be based on full raw data. Thus sliding
- // x-dataZoom will change both ranges of xAxis and yAxis,
- // while sliding y-dataZoom will only change the range of yAxis.
- // So we should filter x-axis after reset x-axis immediately,
- // and then reset y-axis and filter y-axis.
- dataZoomModel.eachTargetAxis(filterSingleAxis);
- });
-
- ecModel.eachComponent('dataZoom', function (dataZoomModel) {
- // Fullfill all of the range props so that user
- // is able to get them from chart.getOption().
- var axisProxy = dataZoomModel.findRepresentativeAxisProxy();
- var percentRange = axisProxy.getDataPercentWindow();
- var valueRange = axisProxy.getDataValueWindow();
- dataZoomModel.setRawRange({
- start: percentRange[0],
- end: percentRange[1],
- startValue: valueRange[0],
- endValue: valueRange[1]
- });
- });
- });
-
- function resetSingleAxis(dimNames, axisIndex, dataZoomModel) {
- dataZoomModel.getAxisProxy(dimNames.name, axisIndex).reset(dataZoomModel);
- }
-
- function filterSingleAxis(dimNames, axisIndex, dataZoomModel) {
- dataZoomModel.getAxisProxy(dimNames.name, axisIndex).filterData(dataZoomModel);
- }
-
-
-
-
-/***/ },
-/* 299 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom action
- */
-
-
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
- var echarts = __webpack_require__(1);
-
-
- echarts.registerAction('dataZoom', function (payload, ecModel) {
-
- var linkedNodesFinder = modelUtil.createLinkedNodesFinder(
- zrUtil.bind(ecModel.eachComponent, ecModel, 'dataZoom'),
- modelUtil.eachAxisDim,
- function (model, dimNames) {
- return model.get(dimNames.axisIndex);
- }
- );
-
- var effectedModels = [];
-
- ecModel.eachComponent(
- {mainType: 'dataZoom', query: payload},
- function (model, index) {
- effectedModels.push.apply(
- effectedModels, linkedNodesFinder(model).nodes
- );
- }
- );
-
- zrUtil.each(effectedModels, function (dataZoomModel, index) {
- dataZoomModel.setRawRange({
- start: payload.start,
- end: payload.end,
- startValue: payload.startValue,
- endValue: payload.endValue
- });
- });
-
- });
-
-
-
-/***/ },
-/* 300 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * visualMap component entry
- */
-
-
- __webpack_require__(301);
- __webpack_require__(312);
-
-
-
-/***/ },
-/* 301 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * DataZoom component entry
- */
-
-
- __webpack_require__(1).registerPreprocessor(
- __webpack_require__(302)
- );
-
- __webpack_require__(303);
- __webpack_require__(304);
- __webpack_require__(305);
- __webpack_require__(308);
- __webpack_require__(311);
-
-
-
-/***/ },
-/* 302 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file VisualMap preprocessor
- */
-
-
- var zrUtil = __webpack_require__(3);
- var each = zrUtil.each;
-
- module.exports = function (option) {
- var visualMap = option && option.visualMap;
-
- if (!zrUtil.isArray(visualMap)) {
- visualMap = visualMap ? [visualMap] : [];
- }
-
- each(visualMap, function (opt) {
- if (!opt) {
- return;
- }
-
- // rename splitList to pieces
- if (has(opt, 'splitList') && !has(opt, 'pieces')) {
- opt.pieces = opt.splitList;
- delete opt.splitList;
- }
-
- var pieces = opt.pieces;
- if (pieces && zrUtil.isArray(pieces)) {
- each(pieces, function (piece) {
- if (zrUtil.isObject(piece)) {
- if (has(piece, 'start') && !has(piece, 'min')) {
- piece.min = piece.start;
- }
- if (has(piece, 'end') && !has(piece, 'max')) {
- piece.max = piece.end;
- }
- }
- });
- }
- });
- };
-
- function has(obj, name) {
- return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);
- }
-
-
-
-/***/ },
-/* 303 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(19).registerSubTypeDefaulter('visualMap', function (option) {
- // Compatible with ec2, when splitNumber === 0, continuous visualMap will be used.
- return (
- !option.categories
- && (
- !(
- option.pieces
- ? option.pieces.length > 0
- : option.splitNumber > 0
- )
- || option.calculable
- )
- )
- ? 'continuous' : 'piecewise';
- });
-
-
-
-/***/ },
-/* 304 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data range visual coding.
- */
-
-
- var echarts = __webpack_require__(1);
- var VisualMapping = __webpack_require__(187);
- var zrUtil = __webpack_require__(3);
-
- echarts.registerVisualCoding('component', function (ecModel) {
- ecModel.eachComponent('visualMap', function (visualMapModel) {
- processSingleVisualMap(visualMapModel, ecModel);
- });
- });
-
- function processSingleVisualMap(visualMapModel, ecModel) {
- var visualMappings = visualMapModel.targetVisuals;
- var visualTypesMap = {};
- zrUtil.each(['inRange', 'outOfRange'], function (state) {
- var visualTypes = VisualMapping.prepareVisualTypes(visualMappings[state]);
- visualTypesMap[state] = visualTypes;
- });
-
- visualMapModel.eachTargetSeries(function (seriesModel) {
- var data = seriesModel.getData();
- var dimension = visualMapModel.getDataDimension(data);
- var dataIndex;
-
- function getVisual(key) {
- return data.getItemVisual(dataIndex, key);
- }
-
- function setVisual(key, value) {
- data.setItemVisual(dataIndex, key, value);
- }
-
- data.each([dimension], function (value, index) {
- // For performance consideration, do not use curry.
- dataIndex = index;
- var valueState = visualMapModel.getValueState(value);
- var mappings = visualMappings[valueState];
- var visualTypes = visualTypesMap[valueState];
- for (var i = 0, len = visualTypes.length; i < len; i++) {
- var type = visualTypes[i];
- mappings[type] && mappings[type].applyVisual(value, getVisual, setVisual);
- }
- });
- });
- }
-
-
-
-
-/***/ },
-/* 305 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- /**
- * @file Data zoom model
- */
-
-
- var VisualMapModel = __webpack_require__(306);
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
-
- // Constant
- var DEFAULT_BAR_BOUND = [20, 140];
-
- var ContinuousModel = VisualMapModel.extend({
-
- type: 'visualMap.continuous',
-
- /**
- * @protected
- */
- defaultOption: {
- handlePosition: 'auto', // 'auto', 'left', 'right', 'top', 'bottom'
- calculable: false, // 是否值域漫游,启用后无视splitNumber和pieces,线性渐变
- range: [-Infinity, Infinity], // 当前选中范围
- hoverLink: true,
- realtime: true,
- itemWidth: null, // 值域图形宽度
- itemHeight: null // 值域图形高度
- },
-
- /**
- * @override
- */
- doMergeOption: function (newOption, isInit) {
- ContinuousModel.superApply(this, 'doMergeOption', arguments);
-
- this.resetTargetSeries(newOption, isInit);
- this.resetExtent();
-
- this.resetVisual(function (mappingOption) {
- mappingOption.mappingMethod = 'linear';
- });
-
- this._resetRange();
- },
-
- /**
- * @protected
- * @override
- */
- resetItemSize: function () {
- VisualMapModel.prototype.resetItemSize.apply(this, arguments);
-
- var itemSize = this.itemSize;
-
- this._orient === 'horizontal' && itemSize.reverse();
-
- (itemSize[0] == null || isNaN(itemSize[0])) && (itemSize[0] = DEFAULT_BAR_BOUND[0]);
- (itemSize[1] == null || isNaN(itemSize[1])) && (itemSize[1] = DEFAULT_BAR_BOUND[1]);
- },
-
- /**
- * @private
- */
- _resetRange: function () {
- var dataExtent = this.getExtent();
- var range = this.option.range;
- if (range[0] > range[1]) {
- range.reverse();
- }
- range[0] = Math.max(range[0], dataExtent[0]);
- range[1] = Math.min(range[1], dataExtent[1]);
- },
-
- /**
- * @protected
- * @override
- */
- completeVisualOption: function () {
- VisualMapModel.prototype.completeVisualOption.apply(this, arguments);
-
- zrUtil.each(this.stateList, function (state) {
- var symbolSize = this.option.controller[state].symbolSize;
- if (symbolSize && symbolSize[0] !== symbolSize[1]) {
- symbolSize[0] = 0; // For good looking.
- }
- }, this);
- },
-
- /**
- * @public
- * @override
- */
- setSelected: function (selected) {
- this.option.range = selected.slice();
- this._resetRange();
- },
-
- /**
- * @public
- */
- getSelected: function () {
- var dataExtent = this.getExtent();
-
- var dataInterval = numberUtil.asc(
- (this.get('range') || []).slice()
- );
-
- // Clamp
- dataInterval[0] > dataExtent[1] && (dataInterval[0] = dataExtent[1]);
- dataInterval[1] > dataExtent[1] && (dataInterval[1] = dataExtent[1]);
- dataInterval[0] < dataExtent[0] && (dataInterval[0] = dataExtent[0]);
- dataInterval[1] < dataExtent[0] && (dataInterval[1] = dataExtent[0]);
-
- return dataInterval;
- },
-
- /**
- * @public
- * @override
- */
- getValueState: function (value) {
- var range = this.option.range;
- var dataExtent = this.getExtent();
-
- // When range[0] === dataExtent[0], any value larger than dataExtent[0] maps to 'inRange'.
- // range[1] is processed likewise.
- return (
- (range[0] <= dataExtent[0] || range[0] <= value)
- && (range[1] >= dataExtent[1] || value <= range[1])
- ) ? 'inRange' : 'outOfRange';
- }
-
- });
-
- module.exports = ContinuousModel;
-
-
-
-/***/ },
-/* 306 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom model
- */
-
-
- var zrUtil = __webpack_require__(3);
- var env = __webpack_require__(78);
- var echarts = __webpack_require__(1);
- var modelUtil = __webpack_require__(5);
- var visualDefault = __webpack_require__(307);
- var VisualMapping = __webpack_require__(187);
- var mapVisual = VisualMapping.mapVisual;
- var eachVisual = VisualMapping.eachVisual;
- var numberUtil = __webpack_require__(7);
- var isArray = zrUtil.isArray;
- var each = zrUtil.each;
- var asc = numberUtil.asc;
- var linearMap = numberUtil.linearMap;
-
- var VisualMapModel = echarts.extendComponentModel({
-
- type: 'visualMap',
-
- dependencies: ['series'],
-
- /**
- * [lowerBound, upperBound]
- *
- * @readOnly
- * @type {Array.<number>}
- */
- dataBound: [-Infinity, Infinity],
-
- /**
- * @readOnly
- * @type {Array.<string>}
- */
- stateList: ['inRange', 'outOfRange'],
-
- /**
- * @readOnly
- * @type {string|Object}
- */
- layoutMode: {type: 'box', ignoreSize: true},
-
- /**
- * @protected
- */
- defaultOption: {
- show: true,
-
- zlevel: 0,
- z: 4,
-
- // set min: 0, max: 200, only for campatible with ec2.
- // In fact min max should not have default value.
- min: 0, // min value, must specified if pieces is not specified.
- max: 200, // max value, must specified if pieces is not specified.
-
- dimension: null,
- inRange: null, // 'color', 'colorHue', 'colorSaturation', 'colorLightness', 'colorAlpha',
- // 'symbol', 'symbolSize'
- outOfRange: null, // 'color', 'colorHue', 'colorSaturation',
- // 'colorLightness', 'colorAlpha',
- // 'symbol', 'symbolSize'
-
- left: 0, // 'center' ¦ 'left' ¦ 'right' ¦ {number} (px)
- right: null, // The same as left.
- top: null, // 'top' ¦ 'bottom' ¦ 'center' ¦ {number} (px)
- bottom: 0, // The same as top.
-
- itemWidth: null,
- itemHeight: null,
- inverse: false,
- orient: 'vertical', // 'horizontal' ¦ 'vertical'
-
- seriesIndex: null, // 所控制的series indices,默认所有有value的series.
- backgroundColor: 'rgba(0,0,0,0)',
- borderColor: '#ccc', // 值域边框颜色
- contentColor: '#5793f3',
- inactiveColor: '#aaa',
- borderWidth: 0, // 值域边框线宽,单位px,默认为0(无边框)
- padding: 5, // 值域内边距,单位px,默认各方向内边距为5,
- // 接受数组分别设定上右下左边距,同css
- textGap: 10, //
- precision: 0, // 小数精度,默认为0,无小数点
- color: ['#bf444c', '#d88273', '#f6efa6'], //颜色(deprecated,兼容ec2,顺序同pieces,不同于inRange/outOfRange)
-
- formatter: null,
- text: null, // 文本,如['高', '低'],兼容ec2,text[0]对应高值,text[1]对应低值
- textStyle: {
- color: '#333' // 值域文字颜色
- }
- },
-
- /**
- * @protected
- */
- init: function (option, parentModel, ecModel) {
- /**
- * @private
- * @type {boolean}
- */
- this._autoSeriesIndex = false;
-
- /**
- * @private
- * @type {Array.<number>}
- */
- this._dataExtent;
-
- /**
- * @readOnly
- */
- this.controllerVisuals = {};
-
- /**
- * @readOnly
- */
- this.targetVisuals = {};
-
- /**
- * @readOnly
- */
- this.textStyleModel;
-
- /**
- * [width, height]
- * @readOnly
- * @type {Array.<number>}
- */
- this.itemSize;
-
- this.mergeDefaultAndTheme(option, ecModel);
-
- this.doMergeOption({}, true);
- },
-
- /**
- * @public
- */
- mergeOption: function (option) {
- VisualMapModel.superApply(this, 'mergeOption', arguments);
- this.doMergeOption(option, false);
- },
-
- /**
- * @protected
- */
- doMergeOption: function (newOption, isInit) {
- var thisOption = this.option;
-
- // Visual attributes merge is not supported, otherwise it
- // brings overcomplicated merge logic. See #2853.
- !isInit && replaceVisualOption(thisOption, newOption);
-
- // FIXME
- // necessary?
- // Disable realtime view update if canvas is not supported.
- if (!env.canvasSupported) {
- thisOption.realtime = false;
- }
-
- this.textStyleModel = this.getModel('textStyle');
-
- this.resetItemSize();
-
- this.completeVisualOption();
- },
-
- /**
- * @example
- * this.formatValueText(someVal); // format single numeric value to text.
- * this.formatValueText(someVal, true); // format single category value to text.
- * this.formatValueText([min, max]); // format numeric min-max to text.
- * this.formatValueText([this.dataBound[0], max]); // using data lower bound.
- * this.formatValueText([min, this.dataBound[1]]); // using data upper bound.
- *
- * @param {number|Array.<number>} value Real value, or this.dataBound[0 or 1].
- * @param {boolean} [isCategory=false] Only available when value is number.
- * @return {string}
- * @protected
- */
- formatValueText: function(value, isCategory) {
- var option = this.option;
- var precision = option.precision;
- var dataBound = this.dataBound;
- var formatter = option.formatter;
- var isMinMax;
- var textValue;
-
- if (zrUtil.isArray(value)) {
- value = value.slice();
- isMinMax = true;
- }
-
- textValue = isCategory
- ? value
- : (isMinMax
- ? [toFixed(value[0]), toFixed(value[1])]
- : toFixed(value)
- );
-
- if (zrUtil.isString(formatter)) {
- return formatter
- .replace('{value}', isMinMax ? textValue[0] : textValue)
- .replace('{value2}', isMinMax ? textValue[1] : textValue);
- }
- else if (zrUtil.isFunction(formatter)) {
- return isMinMax
- ? formatter(value[0], value[1])
- : formatter(value);
- }
-
- if (isMinMax) {
- if (value[0] === dataBound[0]) {
- return '< ' + textValue[1];
- }
- else if (value[1] === dataBound[1]) {
- return '> ' + textValue[0];
- }
- else {
- return textValue[0] + ' - ' + textValue[1];
- }
- }
- else { // Format single value (includes category case).
- return textValue;
- }
-
- function toFixed(val) {
- return val === dataBound[0]
- ? 'min'
- : val === dataBound[1]
- ? 'max'
- : (+val).toFixed(precision);
- }
- },
-
- /**
- * @protected
- */
- resetTargetSeries: function (newOption, isInit) {
- var thisOption = this.option;
- var autoSeriesIndex = this._autoSeriesIndex =
- (isInit ? thisOption : newOption).seriesIndex == null;
- thisOption.seriesIndex = autoSeriesIndex
- ? [] : modelUtil.normalizeToArray(thisOption.seriesIndex);
-
- autoSeriesIndex && this.ecModel.eachSeries(function (seriesModel, index) {
- var data = seriesModel.getData();
- // FIXME
- // 只考虑了list,还没有考虑map等。
-
- // FIXME
- // 这里可能应该这么判断:data.dimensions中有超出其所属coordSystem的量。
- if (data.type === 'list') {
- thisOption.seriesIndex.push(index);
- }
- });
- },
-
- /**
- * @protected
- */
- resetExtent: function () {
- var thisOption = this.option;
-
- // Can not calculate data extent by data here.
- // Because series and data may be modified in processing stage.
- // So we do not support the feature "auto min/max".
-
- var extent = asc([thisOption.min, thisOption.max]);
-
- this._dataExtent = extent;
- },
-
- /**
- * @protected
- */
- getDataDimension: function (list) {
- var optDim = this.option.dimension;
- return optDim != null
- ? optDim : list.dimensions.length - 1;
- },
-
- /**
- * @public
- * @override
- */
- getExtent: function () {
- return this._dataExtent.slice();
- },
-
- /**
- * @protected
- */
- resetVisual: function (fillVisualOption) {
- var dataExtent = this.getExtent();
-
- doReset.call(this, 'controller', this.controllerVisuals);
- doReset.call(this, 'target', this.targetVisuals);
-
- function doReset(baseAttr, visualMappings) {
- each(this.stateList, function (state) {
- var mappings = visualMappings[state] || (visualMappings[state] = {});
- var visaulOption = this.option[baseAttr][state] || {};
- each(visaulOption, function (visualData, visualType) {
- if (!VisualMapping.isValidType(visualType)) {
- return;
- }
- var mappingOption = {
- type: visualType,
- dataExtent: dataExtent,
- visual: visualData
- };
- fillVisualOption && fillVisualOption.call(this, mappingOption, state);
- mappings[visualType] = new VisualMapping(mappingOption);
- }, this);
- }, this);
- }
- },
-
- /**
- * @protected
- */
- completeVisualOption: function () {
- var thisOption = this.option;
- var base = {inRange: thisOption.inRange, outOfRange: thisOption.outOfRange};
-
- var target = thisOption.target || (thisOption.target = {});
- var controller = thisOption.controller || (thisOption.controller = {});
-
- zrUtil.merge(target, base); // Do not override
- zrUtil.merge(controller, base); // Do not override
-
- var isCategory = this.isCategory();
-
- completeSingle.call(this, target);
- completeSingle.call(this, controller);
- completeInactive.call(this, target, 'inRange', 'outOfRange');
- completeInactive.call(this, target, 'outOfRange', 'inRange');
- completeController.call(this, controller);
-
- function completeSingle(base) {
- // Compatible with ec2 dataRange.color.
- // The mapping order of dataRange.color is: [high value, ..., low value]
- // whereas inRange.color and outOfRange.color is [low value, ..., high value]
- // Notice: ec2 has no inverse.
- if (isArray(thisOption.color)
- // If there has been inRange: {symbol: ...}, adding color is a mistake.
- // So adding color only when no inRange defined.
- && !base.inRange
- ) {
- base.inRange = {color: thisOption.color.slice().reverse()};
- }
-
- // If using shortcut like: {inRange: 'symbol'}, complete default value.
- each(this.stateList, function (state) {
- var visualType = base[state];
-
- if (zrUtil.isString(visualType)) {
- var defa = visualDefault.get(visualType, 'active', isCategory);
- if (defa) {
- base[state] = {};
- base[state][visualType] = defa;
- }
- else {
- // Mark as not specified.
- delete base[state];
- }
- }
- }, this);
- }
-
- function completeInactive(base, stateExist, stateAbsent) {
- var optExist = base[stateExist];
- var optAbsent = base[stateAbsent];
-
- if (optExist && !optAbsent) {
- optAbsent = base[stateAbsent] = {};
- each(optExist, function (visualData, visualType) {
- var defa = visualDefault.get(visualType, 'inactive', isCategory);
- if (VisualMapping.isValidType(visualType) && defa) {
- optAbsent[visualType] = defa;
- }
- });
- }
- }
-
- function completeController(controller) {
- var symbolExists = (controller.inRange || {}).symbol
- || (controller.outOfRange || {}).symbol;
- var symbolSizeExists = (controller.inRange || {}).symbolSize
- || (controller.outOfRange || {}).symbolSize;
- var inactiveColor = this.get('inactiveColor');
-
- each(this.stateList, function (state) {
-
- var itemSize = this.itemSize;
- var visuals = controller[state];
-
- // Set inactive color for controller if no other color attr (like colorAlpha) specified.
- if (!visuals) {
- visuals = controller[state] = {
- color: isCategory ? inactiveColor : [inactiveColor]
- };
- }
-
- // Consistent symbol and symbolSize if not specified.
- if (!visuals.symbol) {
- visuals.symbol = symbolExists
- && zrUtil.clone(symbolExists)
- || (isCategory ? 'roundRect' : ['roundRect']);
- }
- if (!visuals.symbolSize) {
- visuals.symbolSize = symbolSizeExists
- && zrUtil.clone(symbolSizeExists)
- || (isCategory ? itemSize[0] : [itemSize[0], itemSize[0]]);
- }
-
- // Filter square and none.
- visuals.symbol = mapVisual(visuals.symbol, function (symbol) {
- return (symbol === 'none' || symbol === 'square') ? 'roundRect' : symbol;
- });
-
- // Normalize symbolSize
- var symbolSize = visuals.symbolSize;
-
- if (symbolSize) {
- var max = -Infinity;
- // symbolSize can be object when categories defined.
- eachVisual(symbolSize, function (value) {
- value > max && (max = value);
- });
- visuals.symbolSize = mapVisual(symbolSize, function (value) {
- return linearMap(value, [0, max], [0, itemSize[0]], true);
- });
- }
-
- }, this);
- }
- },
-
- /**
- * @public
- */
- eachTargetSeries: function (callback, context) {
- zrUtil.each(this.option.seriesIndex, function (seriesIndex) {
- callback.call(context, this.ecModel.getSeriesByIndex(seriesIndex));
- }, this);
- },
-
- /**
- * @public
- */
- isCategory: function () {
- return !!this.option.categories;
- },
-
- /**
- * @protected
- */
- resetItemSize: function () {
- this.itemSize = [
- parseFloat(this.get('itemWidth')),
- parseFloat(this.get('itemHeight'))
- ];
- },
-
- /**
- * @public
- * @abstract
- */
- setSelected: zrUtil.noop,
-
- /**
- * @public
- * @abstract
- */
- getValueState: zrUtil.noop
-
- });
-
- function replaceVisualOption(targetOption, sourceOption) {
- zrUtil.each(
- ['inRange', 'outOfRange', 'target', 'controller', 'color'],
- function (key) {
- if (sourceOption.hasOwnProperty(key)) {
- targetOption[key] = zrUtil.clone(sourceOption[key]);
- }
- else {
- delete targetOption[key];
- }
- }
- );
- }
-
- module.exports = VisualMapModel;
-
-
-
-/***/ },
-/* 307 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Visual mapping.
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- var visualDefault = {
-
- /**
- * @public
- */
- get: function (visualType, key, isCategory) {
- var value = zrUtil.clone(
- (defaultOption[visualType] || {})[key]
- );
-
- return isCategory
- ? (zrUtil.isArray(value) ? value[value.length - 1] : value)
- : value;
- }
-
- };
-
- var defaultOption = {
-
- color: {
- active: ['#006edd', '#e0ffff'],
- inactive: ['rgba(0,0,0,0)']
- },
-
- colorHue: {
- active: [0, 360],
- inactive: [0, 0]
- },
-
- colorSaturation: {
- active: [0.3, 1],
- inactive: [0, 0]
- },
-
- colorLightness: {
- active: [0.9, 0.5],
- inactive: [0, 0]
- },
-
- colorAlpha: {
- active: [0.3, 1],
- inactive: [0, 0]
- },
-
- symbol: {
- active: ['circle', 'roundRect', 'diamond'],
- inactive: ['none']
- },
-
- symbolSize: {
- active: [10, 50],
- inactive: [0, 0]
- }
- };
-
- module.exports = visualDefault;
-
-
-
-
-/***/ },
-/* 308 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var VisualMapView = __webpack_require__(309);
- var graphic = __webpack_require__(42);
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var sliderMove = __webpack_require__(294);
- var linearMap = numberUtil.linearMap;
- var LinearGradient = __webpack_require__(75);
- var helper = __webpack_require__(310);
- var each = zrUtil.each;
-
- // Notice:
- // Any "interval" should be by the order of [low, high].
- // "handle0" (handleIndex === 0) maps to
- // low data value: this._dataInterval[0] and has low coord.
- // "handle1" (handleIndex === 1) maps to
- // high data value: this._dataInterval[1] and has high coord.
- // The logic of transform is implemented in this._createBarGroup.
-
- var ContinuousVisualMapView = VisualMapView.extend({
-
- type: 'visualMap.continuous',
-
- /**
- * @override
- */
- init: function () {
-
- VisualMapView.prototype.init.apply(this, arguments);
-
- /**
- * @private
- */
- this._shapes = {};
-
- /**
- * @private
- */
- this._dataInterval = [];
-
- /**
- * @private
- */
- this._handleEnds = [];
-
- /**
- * @private
- */
- this._orient;
-
- /**
- * @private
- */
- this._useHandle;
- },
-
- /**
- * @protected
- * @override
- */
- doRender: function (visualMapModel, ecModel, api, payload) {
- if (!payload || payload.type !== 'selectDataRange' || payload.from !== this.uid) {
- this._buildView();
- }
- else {
- this._updateView();
- }
- },
-
- /**
- * @private
- */
- _buildView: function () {
- this.group.removeAll();
-
- var visualMapModel = this.visualMapModel;
- var thisGroup = this.group;
-
- this._orient = visualMapModel.get('orient');
- this._useHandle = visualMapModel.get('calculable');
-
- this._resetInterval();
-
- this._renderBar(thisGroup);
-
- var dataRangeText = visualMapModel.get('text');
- this._renderEndsText(thisGroup, dataRangeText, 0);
- this._renderEndsText(thisGroup, dataRangeText, 1);
-
- // Do this for background size calculation.
- this._updateView(true);
-
- // After updating view, inner shapes is built completely,
- // and then background can be rendered.
- this.renderBackground(thisGroup);
-
- // Real update view
- this._updateView();
-
- this.positionGroup(thisGroup);
- },
-
- /**
- * @private
- */
- _renderEndsText: function (group, dataRangeText, endsIndex) {
- if (!dataRangeText) {
- return;
- }
-
- // Compatible with ec2, text[0] map to high value, text[1] map low value.
- var text = dataRangeText[1 - endsIndex];
- text = text != null ? text + '' : '';
-
- var visualMapModel = this.visualMapModel;
- var textGap = visualMapModel.get('textGap');
- var itemSize = visualMapModel.itemSize;
-
- var barGroup = this._shapes.barGroup;
- var position = this._applyTransform(
- [
- itemSize[0] / 2,
- endsIndex === 0 ? -textGap : itemSize[1] + textGap
- ],
- barGroup
- );
- var align = this._applyTransform(
- endsIndex === 0 ? 'bottom' : 'top',
- barGroup
- );
- var orient = this._orient;
- var textStyleModel = this.visualMapModel.textStyleModel;
-
- this.group.add(new graphic.Text({
- style: {
- x: position[0],
- y: position[1],
- textVerticalAlign: orient === 'horizontal' ? 'middle' : align,
- textAlign: orient === 'horizontal' ? align : 'center',
- text: text,
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor()
- }
- }));
- },
-
- /**
- * @private
- */
- _renderBar: function (targetGroup) {
- var visualMapModel = this.visualMapModel;
- var shapes = this._shapes;
- var itemSize = visualMapModel.itemSize;
- var orient = this._orient;
- var useHandle = this._useHandle;
- var itemAlign = helper.getItemAlign(visualMapModel, this.api, itemSize);
- var barGroup = shapes.barGroup = this._createBarGroup(itemAlign);
-
- // Bar
- barGroup.add(shapes.outOfRange = createPolygon());
- barGroup.add(shapes.inRange = createPolygon(
- null,
- zrUtil.bind(this._modifyHandle, this, 'all'),
- useHandle ? 'move' : null
- ));
-
- var textRect = visualMapModel.textStyleModel.getTextRect('国');
- var textSize = Math.max(textRect.width, textRect.height);
-
- // Handle
- if (useHandle) {
- shapes.handleGroups = [];
- shapes.handleThumbs = [];
- shapes.handleLabels = [];
- shapes.handleLabelPoints = [];
-
- this._createHandle(barGroup, 0, itemSize, textSize, orient, itemAlign);
- this._createHandle(barGroup, 1, itemSize, textSize, orient, itemAlign);
- }
-
- // Indicator
- // FIXME
-
- targetGroup.add(barGroup);
- },
-
- /**
- * @private
- */
- _createHandle: function (barGroup, handleIndex, itemSize, textSize, orient) {
- var handleGroup = new graphic.Group({position: [itemSize[0], 0]});
- var handleThumb = createPolygon(
- createHandlePoints(handleIndex, textSize),
- zrUtil.bind(this._modifyHandle, this, handleIndex),
- 'move'
- );
- handleGroup.add(handleThumb);
-
- // For text locating. Text is always horizontal layout
- // but should not be effected by transform.
- var handleLabelPoint = {
- x: orient === 'horizontal'
- ? textSize / 2
- : textSize * 1.5,
- y: orient === 'horizontal'
- ? (handleIndex === 0 ? -(textSize * 1.5) : (textSize * 1.5))
- : (handleIndex === 0 ? -textSize / 2 : textSize / 2)
- };
-
- var textStyleModel = this.visualMapModel.textStyleModel;
- var handleLabel = new graphic.Text({
- silent: true,
- style: {
- x: 0, y: 0, text: '',
- textVerticalAlign: 'middle',
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor()
- }
- });
-
- this.group.add(handleLabel); // Text do not transform
-
- var shapes = this._shapes;
- shapes.handleThumbs[handleIndex] = handleThumb;
- shapes.handleGroups[handleIndex] = handleGroup;
- shapes.handleLabelPoints[handleIndex] = handleLabelPoint;
- shapes.handleLabels[handleIndex] = handleLabel;
-
- barGroup.add(handleGroup);
- },
-
- /**
- * @private
- */
- _modifyHandle: function (handleIndex, dx, dy) {
- if (!this._useHandle) {
- return;
- }
-
- // Transform dx, dy to bar coordination.
- var vertex = this._applyTransform([dx, dy], this._shapes.barGroup, true);
- this._updateInterval(handleIndex, vertex[1]);
-
- this.api.dispatchAction({
- type: 'selectDataRange',
- from: this.uid,
- visualMapId: this.visualMapModel.id,
- selected: this._dataInterval.slice()
- });
- },
-
- /**
- * @private
- */
- _resetInterval: function () {
- var visualMapModel = this.visualMapModel;
-
- var dataInterval = this._dataInterval = visualMapModel.getSelected();
- var dataExtent = visualMapModel.getExtent();
- var sizeExtent = [0, visualMapModel.itemSize[1]];
-
- this._handleEnds = [
- linearMap(dataInterval[0], dataExtent, sizeExtent,true),
- linearMap(dataInterval[1], dataExtent, sizeExtent,true)
- ];
- },
-
- /**
- * @private
- * @param {(number|string)} handleIndex 0 or 1 or 'all'
- * @param {number} dx
- * @param {number} dy
- */
- _updateInterval: function (handleIndex, delta) {
- delta = delta || 0;
- var visualMapModel = this.visualMapModel;
- var handleEnds = this._handleEnds;
-
- sliderMove(
- delta,
- handleEnds,
- [0, visualMapModel.itemSize[1]],
- handleIndex === 'all' ? 'rigid' : 'push',
- handleIndex
- );
- var dataExtent = visualMapModel.getExtent();
- var sizeExtent = [0, visualMapModel.itemSize[1]];
- // Update data interval.
- this._dataInterval = [
- linearMap(handleEnds[0], sizeExtent, dataExtent, true),
- linearMap(handleEnds[1], sizeExtent, dataExtent, true)
- ];
- },
-
- /**
- * @private
- */
- _updateView: function (forSketch) {
- var visualMapModel = this.visualMapModel;
- var dataExtent = visualMapModel.getExtent();
- var shapes = this._shapes;
- var dataInterval = this._dataInterval;
-
- var outOfRangeHandleEnds = [0, visualMapModel.itemSize[1]];
- var inRangeHandleEnds = forSketch ? outOfRangeHandleEnds : this._handleEnds;
-
- var visualInRange = this._createBarVisual(
- dataInterval, dataExtent, inRangeHandleEnds, 'inRange'
- );
- var visualOutOfRange = this._createBarVisual(
- dataExtent, dataExtent, outOfRangeHandleEnds, 'outOfRange'
- );
-
- shapes.inRange
- .setStyle('fill', visualInRange.barColor)
- .setShape('points', visualInRange.barPoints);
- shapes.outOfRange
- .setStyle('fill', visualOutOfRange.barColor)
- .setShape('points', visualOutOfRange.barPoints);
-
- this._useHandle && each([0, 1], function (handleIndex) {
-
- shapes.handleThumbs[handleIndex].setStyle(
- 'fill', visualInRange.handlesColor[handleIndex]
- );
-
- shapes.handleLabels[handleIndex].setStyle({
- text: visualMapModel.formatValueText(dataInterval[handleIndex]),
- textAlign: this._applyTransform(
- this._orient === 'horizontal'
- ? (handleIndex === 0 ? 'bottom' : 'top')
- : 'left',
- shapes.barGroup
- )
- });
-
- }, this);
-
- this._updateHandlePosition(inRangeHandleEnds);
- },
-
- /**
- * @private
- */
- _createBarVisual: function (dataInterval, dataExtent, handleEnds, forceState) {
- var colorStops = this.getControllerVisual(dataInterval, forceState, 'color').color;
-
- var symbolSizes = [
- this.getControllerVisual(dataInterval[0], forceState, 'symbolSize').symbolSize,
- this.getControllerVisual(dataInterval[1], forceState, 'symbolSize').symbolSize
- ];
- var barPoints = this._createBarPoints(handleEnds, symbolSizes);
-
- return {
- barColor: new LinearGradient(0, 0, 1, 1, colorStops),
- barPoints: barPoints,
- handlesColor: [
- colorStops[0].color,
- colorStops[colorStops.length - 1].color
- ]
- };
- },
-
- /**
- * @private
- */
- _createBarPoints: function (handleEnds, symbolSizes) {
- var itemSize = this.visualMapModel.itemSize;
-
- return [
- [itemSize[0] - symbolSizes[0], handleEnds[0]],
- [itemSize[0], handleEnds[0]],
- [itemSize[0], handleEnds[1]],
- [itemSize[0] - symbolSizes[1], handleEnds[1]]
- ];
- },
-
- /**
- * @private
- */
- _createBarGroup: function (itemAlign) {
- var orient = this._orient;
- var inverse = this.visualMapModel.get('inverse');
-
- return new graphic.Group(
- (orient === 'horizontal' && !inverse)
- ? {scale: itemAlign === 'bottom' ? [1, 1] : [-1, 1], rotation: Math.PI / 2}
- : (orient === 'horizontal' && inverse)
- ? {scale: itemAlign === 'bottom' ? [-1, 1] : [1, 1], rotation: -Math.PI / 2}
- : (orient === 'vertical' && !inverse)
- ? {scale: itemAlign === 'left' ? [1, -1] : [-1, -1]}
- : {scale: itemAlign === 'left' ? [1, 1] : [-1, 1]}
- );
- },
-
- /**
- * @private
- */
- _updateHandlePosition: function (handleEnds) {
- if (!this._useHandle) {
- return;
- }
-
- var shapes = this._shapes;
-
- each([0, 1], function (handleIndex) {
- var handleGroup = shapes.handleGroups[handleIndex];
- handleGroup.position[1] = handleEnds[handleIndex];
-
- // Update handle label position.
- var labelPoint = shapes.handleLabelPoints[handleIndex];
- var textPoint = graphic.applyTransform(
- [labelPoint.x, labelPoint.y],
- graphic.getTransform(handleGroup, this.group)
- );
-
- shapes.handleLabels[handleIndex].setStyle({
- x: textPoint[0], y: textPoint[1]
- });
- }, this);
- },
-
- /**
- * @private
- */
- _applyTransform: function (vertex, element, inverse) {
- var transform = graphic.getTransform(element, this.group);
-
- return graphic[
- zrUtil.isArray(vertex)
- ? 'applyTransform' : 'transformDirection'
- ](vertex, transform, inverse);
- }
-
- });
-
- function createPolygon(points, onDrift, cursor) {
- return new graphic.Polygon({
- shape: {points: points},
- draggable: !!onDrift,
- cursor: cursor,
- drift: onDrift
- });
- }
-
- function createHandlePoints(handleIndex, textSize) {
- return handleIndex === 0
- ? [[0, 0], [textSize, 0], [textSize, -textSize]]
- : [[0, 0], [textSize, 0], [textSize, textSize]];
- }
-
- module.exports = ContinuousVisualMapView;
-
-
-
-/***/ },
-/* 309 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var echarts = __webpack_require__(1);
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var formatUtil = __webpack_require__(6);
- var layout = __webpack_require__(21);
- var VisualMapping = __webpack_require__(187);
-
- module.exports = echarts.extendComponentView({
-
- type: 'visualMap',
-
- /**
- * @readOnly
- * @type {Object}
- */
- autoPositionValues: {left: 1, right: 1, top: 1, bottom: 1},
-
- init: function (ecModel, api) {
- /**
- * @readOnly
- * @type {module:echarts/model/Global}
- */
- this.ecModel = ecModel;
-
- /**
- * @readOnly
- * @type {module:echarts/ExtensionAPI}
- */
- this.api = api;
-
- /**
- * @readOnly
- * @type {module:echarts/component/visualMap/visualMapModel}
- */
- this.visualMapModel;
-
- /**
- * @private
- * @type {Object}
- */
- this._updatableShapes = {};
- },
-
- /**
- * @protected
- */
- render: function (visualMapModel, ecModel, api, payload) {
- this.visualMapModel = visualMapModel;
-
- if (visualMapModel.get('show') === false) {
- this.group.removeAll();
- return;
- }
-
- this.doRender.apply(this, arguments);
- },
-
- /**
- * @protected
- */
- renderBackground: function (group) {
- var visualMapModel = this.visualMapModel;
- var padding = formatUtil.normalizeCssArray(visualMapModel.get('padding') || 0);
- var rect = group.getBoundingRect();
-
- group.add(new graphic.Rect({
- z2: -1, // Lay background rect on the lowest layer.
- silent: true,
- shape: {
- x: rect.x - padding[3],
- y: rect.y - padding[0],
- width: rect.width + padding[3] + padding[1],
- height: rect.height + padding[0] + padding[2]
- },
- style: {
- fill: visualMapModel.get('backgroundColor'),
- stroke: visualMapModel.get('borderColor'),
- lineWidth: visualMapModel.get('borderWidth')
- }
- }));
- },
-
- /**
- * @protected
- * @param {(number|Array)} targetValue
- * @param {string=} forceState Specify state, instead of using getValueState method.
- * @param {string=} visualCluster Specify visual type, defualt all available visualClusters.
- */
- getControllerVisual: function (targetValue, forceState, visualCluster) {
- var visualMapModel = this.visualMapModel;
- var targetIsArray = zrUtil.isArray(targetValue);
-
- // targetValue is array when caculate gradient color,
- // where forceState is required.
- if (targetIsArray && (!forceState || visualCluster !== 'color')) {
- throw new Error(targetValue);
- }
-
- var mappings = visualMapModel.controllerVisuals[
- forceState || visualMapModel.getValueState(targetValue)
- ];
- var defaultColor = visualMapModel.get('contentColor');
- var visualObj = {
- symbol: visualMapModel.get('itemSymbol'),
- color: targetIsArray
- ? [{color: defaultColor, offset: 0}, {color: defaultColor, offset: 1}]
- : defaultColor
- };
-
- function getter(key) {
- return visualObj[key];
- }
-
- function setter(key, value) {
- visualObj[key] = value;
- }
-
- var visualTypes = VisualMapping.prepareVisualTypes(mappings);
-
- zrUtil.each(visualTypes, function (type) {
- var visualMapping = mappings[type];
- if (!visualCluster || VisualMapping.isInVisualCluster(type, visualCluster)) {
- visualMapping && visualMapping.applyVisual(targetValue, getter, setter);
- }
- });
-
- return visualObj;
- },
-
- /**
- * @protected
- */
- positionGroup: function (group) {
- var model = this.visualMapModel;
- var api = this.api;
-
- layout.positionGroup(
- group,
- model.getBoxLayoutParams(),
- {width: api.getWidth(), height: api.getHeight()}
- );
- },
-
- /**
- * @protected
- * @abstract
- */
- doRender: zrUtil.noop
-
- });
-
-
-/***/ },
-/* 310 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var layout = __webpack_require__(21);
-
- var helper = {
-
- /**
- * @param {module:echarts/component/visualMap/VisualMapModel} visualMapModel\
- * @param {module:echarts/ExtensionAPI} api
- * @param {Array.<number>} itemSize always [short, long]
- * @return {string} 'left' or 'right' or 'top' or 'bottom'
- */
- getItemAlign: function (visualMapModel, api, itemSize) {
- var modelOption = visualMapModel.option;
- var itemAlign = modelOption.align;
-
- if (itemAlign != null && itemAlign !== 'auto') {
- return itemAlign;
- }
-
- // Auto decision align.
- var ecSize = {width: api.getWidth(), height: api.getHeight()};
- var realIndex = modelOption.orient === 'horizontal' ? 1 : 0;
-
- var paramsSet = [
- ['left', 'right', 'width'],
- ['top', 'bottom', 'height']
- ];
- var reals = paramsSet[realIndex];
- var fakeValue = [0, null, 10];
-
- var layoutInput = {};
- for (var i = 0; i < 3; i++) {
- layoutInput[paramsSet[1 - realIndex][i]] = fakeValue[i];
- layoutInput[reals[i]] = i === 2 ? itemSize[0] : modelOption[reals[i]];
- }
-
- var rParam = [['x', 'width', 3], ['y', 'height', 0]][realIndex];
- var rect = layout.getLayoutRect(layoutInput, ecSize, modelOption.padding);
-
- return reals[
- (rect.margin[rParam[2]] || 0) + rect[rParam[0]] + rect[rParam[1]] * 0.5
- < ecSize[rParam[1]] * 0.5 ? 0 : 1
- ];
- }
- };
-
- module.exports = helper;
-
-
-
-/***/ },
-/* 311 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data range action
- */
-
-
- var echarts = __webpack_require__(1);
-
- var actionInfo = {
- type: 'selectDataRange',
- event: 'dataRangeSelected',
- // FIXME use updateView appears wrong
- update: 'update'
- };
-
- echarts.registerAction(actionInfo, function (payload, ecModel) {
-
- ecModel.eachComponent({mainType: 'visualMap', query: payload}, function (model) {
- model.setSelected(payload.selected);
- });
-
- });
-
-
-
-/***/ },
-/* 312 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * DataZoom component entry
- */
-
-
- __webpack_require__(1).registerPreprocessor(
- __webpack_require__(302)
- );
-
- __webpack_require__(303);
- __webpack_require__(304);
- __webpack_require__(313);
- __webpack_require__(314);
- __webpack_require__(311);
-
-
-
-/***/ },
-/* 313 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var VisualMapModel = __webpack_require__(306);
- var zrUtil = __webpack_require__(3);
- var VisualMapping = __webpack_require__(187);
-
- var PiecewiseModel = VisualMapModel.extend({
-
- type: 'visualMap.piecewise',
-
- /**
- * Order Rule:
- *
- * option.categories / option.pieces / option.text / option.selected:
- * If !option.inverse,
- * Order when vertical: ['top', ..., 'bottom'].
- * Order when horizontal: ['left', ..., 'right'].
- * If option.inverse, the meaning of
- * the order should be reversed.
- *
- * this._pieceList:
- * The order is always [low, ..., high].
- *
- * Mapping from location to low-high:
- * If !option.inverse
- * When vertical, top is high.
- * When horizontal, right is high.
- * If option.inverse, reverse.
- */
-
- /**
- * @protected
- */
- defaultOption: {
- selected: null, // Object. If not specified, means selected.
- // When pieces and splitNumber: {'0': true, '5': true}
- // When categories: {'cate1': false, 'cate3': true}
- // When selected === false, means all unselected.
- align: 'auto', // 'auto', 'left', 'right'
- itemWidth: 20, // 值域图形宽度
- itemHeight: 14, // 值域图形高度
- itemSymbol: 'roundRect',
- pieceList: null, // 值顺序:由高到低, item can be:
- // {min, max, value, color, colorSaturation, colorAlpha, symbol, symbolSize}
- categories: null, // 描述 category 数据。如:['some1', 'some2', 'some3'],设置后,min max失效。
- splitNumber: 5, // 分割段数,默认为5,为0时为线性渐变 (continous)
- selectedMode: 'multiple',
- itemGap: 10 // 各个item之间的间隔,单位px,默认为10,
- // 横向布局时为水平间隔,纵向布局时为纵向间隔
- },
-
- /**
- * @override
- */
- doMergeOption: function (newOption, isInit) {
- PiecewiseModel.superApply(this, 'doMergeOption', arguments);
-
- /**
- * The order is always [low, ..., high].
- * [{text: string, interval: Array.<number>}, ...]
- * @private
- * @type {Array.<Object>}
- */
- this._pieceList = [];
-
- this.resetTargetSeries(newOption, isInit);
- this.resetExtent();
-
- /**
- * 'pieces', 'categories', 'splitNumber'
- * @type {string}
- */
- var mode = this._mode = this._decideMode();
-
- resetMethods[this._mode].call(this);
-
- this._resetSelected(newOption, isInit);
-
- var categories = this.option.categories;
- this.resetVisual(function (mappingOption, state) {
- if (mode === 'categories') {
- mappingOption.mappingMethod = 'category';
- mappingOption.categories = zrUtil.clone(categories);
- }
- else {
- mappingOption.mappingMethod = 'piecewise';
- mappingOption.pieceList = zrUtil.map(this._pieceList, function (piece) {
- var piece = zrUtil.clone(piece);
- if (state !== 'inRange') {
- piece.visual = null;
- }
- return piece;
- });
- }
- });
- },
-
- _resetSelected: function (newOption, isInit) {
- var thisOption = this.option;
- var pieceList = this._pieceList;
-
- // Selected do not merge but all override.
- var selected = (isInit ? thisOption : newOption).selected || {};
- thisOption.selected = selected;
-
- // Consider 'not specified' means true.
- zrUtil.each(pieceList, function (piece, index) {
- var key = this.getSelectedMapKey(piece);
- if (!(key in selected)) {
- selected[key] = true;
- }
- }, this);
-
- if (thisOption.selectedMode === 'single') {
- // Ensure there is only one selected.
- var hasSel = false;
-
- zrUtil.each(pieceList, function (piece, index) {
- var key = this.getSelectedMapKey(piece);
- if (selected[key]) {
- hasSel
- ? (selected[key] = false)
- : (hasSel = true);
- }
- }, this);
- }
- // thisOption.selectedMode === 'multiple', default: all selected.
- },
-
- /**
- * @public
- */
- getSelectedMapKey: function (piece) {
- return this._mode === 'categories'
- ? piece.value + '' : piece.index + '';
- },
-
- /**
- * @public
- */
- getPieceList: function () {
- return this._pieceList;
- },
-
- /**
- * @private
- * @return {string}
- */
- _decideMode: function () {
- var option = this.option;
-
- return option.pieces && option.pieces.length > 0
- ? 'pieces'
- : this.option.categories
- ? 'categories'
- : 'splitNumber';
- },
-
- /**
- * @public
- * @override
- */
- setSelected: function (selected) {
- this.option.selected = zrUtil.clone(selected);
- },
-
- /**
- * @public
- * @override
- */
- getValueState: function (value) {
- var pieceList = this._pieceList;
- var index = VisualMapping.findPieceIndex(value, pieceList);
-
- return index != null
- ? (this.option.selected[this.getSelectedMapKey(pieceList[index])]
- ? 'inRange' : 'outOfRange'
- )
- : 'outOfRange';
- }
-
- });
-
- /**
- * Key is this._mode
- * @type {Object}
- * @this {module:echarts/component/viusalMap/PiecewiseMode}
- */
- var resetMethods = {
-
- splitNumber: function () {
- var thisOption = this.option;
- var precision = thisOption.precision;
- var dataExtent = this.getExtent();
- var splitNumber = thisOption.splitNumber;
- splitNumber = Math.max(parseInt(splitNumber, 10), 1);
- thisOption.splitNumber = splitNumber;
-
- var splitStep = (dataExtent[1] - dataExtent[0]) / splitNumber;
- // Precision auto-adaption
- while (+splitStep.toFixed(precision) !== splitStep && precision < 5) {
- precision++;
- }
- thisOption.precision = precision;
- splitStep = +splitStep.toFixed(precision);
-
- for (var i = 0, curr = dataExtent[0]; i < splitNumber; i++, curr += splitStep) {
- var max = i === splitNumber - 1 ? dataExtent[1] : (curr + splitStep);
-
- this._pieceList.push({
- text: this.formatValueText([curr, max]),
- index: i,
- interval: [curr, max]
- });
- }
- },
-
- categories: function () {
- var thisOption = this.option;
- zrUtil.each(thisOption.categories, function (cate) {
- // FIXME category模式也使用pieceList,但在visualMapping中不是使用pieceList。
- // 是否改一致。
- this._pieceList.push({
- text: this.formatValueText(cate, true),
- value: cate
- });
- }, this);
-
- // See "Order Rule".
- normalizeReverse(thisOption, this._pieceList);
- },
-
- pieces: function () {
- var thisOption = this.option;
- zrUtil.each(thisOption.pieces, function (pieceListItem, index) {
-
- if (!zrUtil.isObject(pieceListItem)) {
- pieceListItem = {value: pieceListItem};
- }
-
- var item = {text: '', index: index};
- var hasLabel;
-
- if (pieceListItem.label != null) {
- item.text = pieceListItem.label;
- hasLabel = true;
- }
-
- if (pieceListItem.hasOwnProperty('value')) {
- item.value = pieceListItem.value;
-
- if (!hasLabel) {
- item.text = this.formatValueText(item.value);
- }
- }
- else {
- var min = pieceListItem.min;
- var max = pieceListItem.max;
- min == null && (min = -Infinity);
- max == null && (max = Infinity);
- if (min === max) {
- // Consider: [{min: 5, max: 5, visual: {...}}, {min: 0, max: 5}],
- // we use value to lift the priority when min === max
- item.value = min;
- }
- item.interval = [min, max];
-
- if (!hasLabel) {
- item.text = this.formatValueText([min, max]);
- }
- }
-
- item.visual = VisualMapping.retrieveVisuals(pieceListItem);
-
- this._pieceList.push(item);
-
- }, this);
-
- // See "Order Rule".
- normalizeReverse(thisOption, this._pieceList);
- }
- };
-
- function normalizeReverse(thisOption, arr) {
- var inverse = thisOption.inverse;
- if (thisOption.orient === 'vertical' ? !inverse : inverse) {
- arr.reverse();
- }
- }
-
- module.exports = PiecewiseModel;
-
-
-
-/***/ },
-/* 314 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var VisualMapView = __webpack_require__(309);
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var symbolCreators = __webpack_require__(100);
- var layout = __webpack_require__(21);
- var helper = __webpack_require__(310);
-
- var PiecewiseVisualMapView = VisualMapView.extend({
-
- type: 'visualMap.piecewise',
-
- /**
- * @protected
- * @override
- */
- doRender: function () {
- var thisGroup = this.group;
-
- thisGroup.removeAll();
-
- var visualMapModel = this.visualMapModel;
- var textGap = visualMapModel.get('textGap');
- var textStyleModel = visualMapModel.textStyleModel;
- var textFont = textStyleModel.getFont();
- var textFill = textStyleModel.getTextColor();
- var itemAlign = this._getItemAlign();
- var itemSize = visualMapModel.itemSize;
-
- var viewData = this._getViewData();
- var showLabel = !viewData.endsText;
- var showEndsText = !showLabel;
-
- showEndsText && this._renderEndsText(thisGroup, viewData.endsText[0], itemSize);
-
- zrUtil.each(viewData.pieceList, renderItem, this);
-
- showEndsText && this._renderEndsText(thisGroup, viewData.endsText[1], itemSize);
-
- layout.box(
- visualMapModel.get('orient'), thisGroup, visualMapModel.get('itemGap')
- );
-
- this.renderBackground(thisGroup);
-
- this.positionGroup(thisGroup);
-
- function renderItem(item) {
- var itemGroup = new graphic.Group();
- itemGroup.onclick = zrUtil.bind(this._onItemClick, this, item.piece);
-
- this._createItemSymbol(itemGroup, item.piece, [0, 0, itemSize[0], itemSize[1]]);
-
- if (showLabel) {
- itemGroup.add(new graphic.Text({
- style: {
- x: itemAlign === 'right' ? -textGap : itemSize[0] + textGap,
- y: itemSize[1] / 2,
- text: item.piece.text,
- textVerticalAlign: 'middle',
- textAlign: itemAlign,
- textFont: textFont,
- fill: textFill
- }
- }));
- }
-
- thisGroup.add(itemGroup);
- }
- },
-
- /**
- * @private
- */
- _getItemAlign: function () {
- var visualMapModel = this.visualMapModel;
- var modelOption = visualMapModel.option;
- if (modelOption.orient === 'vertical') {
- return helper.getItemAlign(
- visualMapModel, this.api, visualMapModel.itemSize
- );
- }
- else { // horizontal, most case left unless specifying right.
- var align = modelOption.align;
- if (!align || align === 'auto') {
- align = 'left';
- }
- return align;
- }
- },
-
- /**
- * @private
- */
- _renderEndsText: function (group, text, itemSize) {
- if (!text) {
- return;
- }
- var itemGroup = new graphic.Group();
- var textStyleModel = this.visualMapModel.textStyleModel;
- itemGroup.add(new graphic.Text({
- style: {
- x: itemSize[0] / 2,
- y: itemSize[1] / 2,
- textVerticalAlign: 'middle',
- textAlign: 'center',
- text: text,
- textFont: textStyleModel.getFont(),
- fill: textStyleModel.getTextColor()
- }
- }));
-
- group.add(itemGroup);
- },
-
- /**
- * @private
- * @return {Object} {peiceList, endsText} The order is the same as screen pixel order.
- */
- _getViewData: function () {
- var visualMapModel = this.visualMapModel;
-
- var pieceList = zrUtil.map(visualMapModel.getPieceList(), function (piece, index) {
- return {piece: piece, index: index};
- });
- var endsText = visualMapModel.get('text');
-
- // Consider orient and inverse.
- var orient = visualMapModel.get('orient');
- var inverse = visualMapModel.get('inverse');
-
- // Order of pieceList is always [low, ..., high]
- if (orient === 'horizontal' ? inverse : !inverse) {
- pieceList.reverse();
- }
- // Origin order of endsText is [high, low]
- else if (endsText) {
- endsText = endsText.slice().reverse();
- }
-
- return {pieceList: pieceList, endsText: endsText};
- },
-
- /**
- * @private
- */
- _createItemSymbol: function (group, piece, shapeParam) {
- var representValue;
- if (this.visualMapModel.isCategory()) {
- representValue = piece.value;
- }
- else {
- if (piece.value != null) {
- representValue = piece.value;
- }
- else {
- var pieceInterval = piece.interval || [];
- representValue = (pieceInterval[0] + pieceInterval[1]) / 2;
- }
- }
-
- var visualObj = this.getControllerVisual(representValue);
-
- group.add(symbolCreators.createSymbol(
- visualObj.symbol,
- shapeParam[0], shapeParam[1], shapeParam[2], shapeParam[3],
- visualObj.color
- ));
- },
-
- /**
- * @private
- */
- _onItemClick: function (piece) {
- var visualMapModel = this.visualMapModel;
- var option = visualMapModel.option;
- var selected = zrUtil.clone(option.selected);
- var newKey = visualMapModel.getSelectedMapKey(piece);
-
- if (option.selectedMode === 'single') {
- selected[newKey] = true;
- zrUtil.each(selected, function (o, key) {
- selected[key] = key === newKey;
- });
- }
- else {
- selected[newKey] = !selected[newKey];
- }
-
- this.api.dispatchAction({
- type: 'selectDataRange',
- from: this.uid,
- visualMapId: this.visualMapModel.id,
- selected: selected
- });
- }
- });
-
- module.exports = PiecewiseVisualMapView;
-
-
-
-/***/ },
-/* 315 */
-/***/ function(module, exports, __webpack_require__) {
-
- // HINT Markpoint can't be used too much
-
-
- __webpack_require__(316);
- __webpack_require__(317);
-
- __webpack_require__(1).registerPreprocessor(function (opt) {
- // Make sure markPoint component is enabled
- opt.markPoint = opt.markPoint || {};
- });
-
-
-/***/ },
-/* 316 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- // Default enable markPoint
- // var globalDefault = require('../../model/globalDefault');
- var modelUtil = __webpack_require__(5);
- // // Force to load markPoint component
- // globalDefault.markPoint = {};
-
- var MarkPointModel = __webpack_require__(1).extendComponentModel({
-
- type: 'markPoint',
-
- dependencies: ['series', 'grid', 'polar'],
- /**
- * @overrite
- */
- init: function (option, parentModel, ecModel, extraOpt) {
- this.mergeDefaultAndTheme(option, ecModel);
- this.mergeOption(option, ecModel, extraOpt.createdBySelf, true);
- },
-
- mergeOption: function (newOpt, ecModel, createdBySelf, isInit) {
- if (!createdBySelf) {
- ecModel.eachSeries(function (seriesModel) {
- var markPointOpt = seriesModel.get('markPoint');
- var mpModel = seriesModel.markPointModel;
- if (!markPointOpt || !markPointOpt.data) {
- seriesModel.markPointModel = null;
- return;
- }
- if (!mpModel) {
- if (isInit) {
- // Default label emphasis `position` and `show`
- modelUtil.defaultEmphasis(
- markPointOpt.label,
- ['position', 'show', 'textStyle', 'distance', 'formatter']
- );
- }
- var opt = {
- // Use the same series index and name
- seriesIndex: seriesModel.seriesIndex,
- name: seriesModel.name,
- createdBySelf: true
- };
- mpModel = new MarkPointModel(
- markPointOpt, this, ecModel, opt
- );
- }
- else {
- mpModel.mergeOption(markPointOpt, ecModel, true);
- }
- seriesModel.markPointModel = mpModel;
- }, this);
- }
- },
-
- defaultOption: {
- zlevel: 0,
- z: 5,
- symbol: 'pin', // 标注类型
- symbolSize: 50, // 标注大小
- // symbolRotate: null, // 标注旋转控制
- tooltip: {
- trigger: 'item'
- },
- label: {
- normal: {
- show: true,
- // 标签文本格式器,同Tooltip.formatter,不支持回调
- // formatter: null,
- // 可选为'left'|'right'|'top'|'bottom'
- position: 'inside'
- // 默认使用全局文本样式,详见TEXTSTYLE
- // textStyle: null
- },
- emphasis: {
- show: true
- // 标签文本格式器,同Tooltip.formatter,不支持回调
- // formatter: null,
- // position: 'inside' // 'left'|'right'|'top'|'bottom'
- // textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
- }
- },
- itemStyle: {
- normal: {
- // color: 各异,
- // 标注边线颜色,优先于color
- // borderColor: 各异,
- // 标注边线线宽,单位px,默认为1
- borderWidth: 2
- },
- emphasis: {
- // color: 各异
- }
- }
- }
- });
-
- module.exports = MarkPointModel;
-
-
-/***/ },
-/* 317 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var SymbolDraw = __webpack_require__(98);
- var zrUtil = __webpack_require__(3);
- var formatUtil = __webpack_require__(6);
- var modelUtil = __webpack_require__(5);
- var numberUtil = __webpack_require__(7);
-
- var addCommas = formatUtil.addCommas;
- var encodeHTML = formatUtil.encodeHTML;
-
- var List = __webpack_require__(94);
-
- var markerHelper = __webpack_require__(318);
-
- function updateMarkerLayout(mpData, seriesModel, api) {
- var coordSys = seriesModel.coordinateSystem;
- mpData.each(function (idx) {
- var itemModel = mpData.getItemModel(idx);
- var point;
- var xPx = itemModel.getShallow('x');
- var yPx = itemModel.getShallow('y');
- if (xPx != null && yPx != null) {
- point = [
- numberUtil.parsePercent(xPx, api.getWidth()),
- numberUtil.parsePercent(yPx, api.getHeight())
- ];
- }
- // Chart like bar may have there own marker positioning logic
- else if (seriesModel.getMarkerPosition) {
- // Use the getMarkerPoisition
- point = seriesModel.getMarkerPosition(
- mpData.getValues(mpData.dimensions, idx)
- );
- }
- else if (coordSys) {
- var x = mpData.get(coordSys.dimensions[0], idx);
- var y = mpData.get(coordSys.dimensions[1], idx);
- point = coordSys.dataToPoint([x, y]);
- }
-
- mpData.setItemLayout(idx, point);
- });
- }
-
- // FIXME
- var markPointFormatMixin = {
- getRawDataArray: function () {
- return this.option.data;
- },
-
- formatTooltip: function (dataIndex) {
- var data = this.getData();
- var value = this.getRawValue(dataIndex);
- var formattedValue = zrUtil.isArray(value)
- ? zrUtil.map(value, addCommas).join(', ') : addCommas(value);
- var name = data.getName(dataIndex);
- return this.name + '<br />'
- + ((name ? encodeHTML(name) + ' : ' : '') + formattedValue);
- },
-
- getData: function () {
- return this._data;
- },
-
- setData: function (data) {
- this._data = data;
- }
- };
-
- zrUtil.defaults(markPointFormatMixin, modelUtil.dataFormatMixin);
-
- __webpack_require__(1).extendComponentView({
-
- type: 'markPoint',
-
- init: function () {
- this._symbolDrawMap = {};
- },
-
- render: function (markPointModel, ecModel, api) {
- var symbolDrawMap = this._symbolDrawMap;
- for (var name in symbolDrawMap) {
- symbolDrawMap[name].__keep = false;
- }
-
- ecModel.eachSeries(function (seriesModel) {
- var mpModel = seriesModel.markPointModel;
- mpModel && this._renderSeriesMP(seriesModel, mpModel, api);
- }, this);
-
- for (var name in symbolDrawMap) {
- if (!symbolDrawMap[name].__keep) {
- symbolDrawMap[name].remove();
- this.group.remove(symbolDrawMap[name].group);
- }
- }
- },
-
- updateLayout: function (markPointModel, ecModel, api) {
- ecModel.eachSeries(function (seriesModel) {
- var mpModel = seriesModel.markPointModel;
- if (mpModel) {
- updateMarkerLayout(mpModel.getData(), seriesModel, api);
- this._symbolDrawMap[seriesModel.name].updateLayout(mpModel);
- }
- }, this);
- },
-
- _renderSeriesMP: function (seriesModel, mpModel, api) {
- var coordSys = seriesModel.coordinateSystem;
- var seriesName = seriesModel.name;
- var seriesData = seriesModel.getData();
-
- var symbolDrawMap = this._symbolDrawMap;
- var symbolDraw = symbolDrawMap[seriesName];
- if (!symbolDraw) {
- symbolDraw = symbolDrawMap[seriesName] = new SymbolDraw();
- }
-
- var mpData = createList(coordSys, seriesModel, mpModel);
-
- // FIXME
- zrUtil.mixin(mpModel, markPointFormatMixin);
- mpModel.setData(mpData);
-
- updateMarkerLayout(mpModel.getData(), seriesModel, api);
-
- mpData.each(function (idx) {
- var itemModel = mpData.getItemModel(idx);
- var symbolSize = itemModel.getShallow('symbolSize');
- if (typeof symbolSize === 'function') {
- // FIXME 这里不兼容 ECharts 2.x,2.x 貌似参数是整个数据?
- symbolSize = symbolSize(
- mpModel.getRawValue(idx), mpModel.getDataParams(idx)
- );
- }
- mpData.setItemVisual(idx, {
- symbolSize: symbolSize,
- color: itemModel.get('itemStyle.normal.color')
- || seriesData.getVisual('color'),
- symbol: itemModel.getShallow('symbol')
- });
- });
-
- // TODO Text are wrong
- symbolDraw.updateData(mpData);
- this.group.add(symbolDraw.group);
-
- // Set host model for tooltip
- // FIXME
- mpData.eachItemGraphicEl(function (el) {
- el.traverse(function (child) {
- child.dataModel = mpModel;
- });
- });
-
- symbolDraw.__keep = true;
- }
- });
-
- /**
- * @inner
- * @param {module:echarts/coord/*} [coordSys]
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/model/Model} mpModel
- */
- function createList(coordSys, seriesModel, mpModel) {
- var coordDimsInfos;
- if (coordSys) {
- coordDimsInfos = zrUtil.map(coordSys && coordSys.dimensions, function (coordDim) {
- var info = seriesModel.getData().getDimensionInfo(
- seriesModel.coordDimToDataDim(coordDim)[0]
- ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
- info.name = coordDim;
- return info;
- });
- }
- else {
- coordDimsInfos =[{
- name: 'value',
- type: 'float'
- }];
- }
-
- var mpData = new List(coordDimsInfos, mpModel);
- var dataOpt = zrUtil.map(mpModel.get('data'), zrUtil.curry(
- markerHelper.dataTransform, seriesModel
- ));
- if (coordSys) {
- dataOpt = zrUtil.filter(
- dataOpt, zrUtil.curry(markerHelper.dataFilter, coordSys)
- );
- }
-
- mpData.initData(dataOpt, null,
- coordSys ? markerHelper.dimValueGetter : function (item) {
- return item.value;
- }
- );
- return mpData;
- }
-
-
-
-/***/ },
-/* 318 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var indexOf = zrUtil.indexOf;
-
- function getPrecision(data, valueAxisDim, dataIndex) {
- var precision = -1;
- do {
- precision = Math.max(
- numberUtil.getPrecision(data.get(
- valueAxisDim, dataIndex
- )),
- precision
- );
- data = data.stackedOn;
- } while (data);
-
- return precision;
- }
-
- function markerTypeCalculatorWithExtent(
- mlType, data, baseDataDim, valueDataDim, baseCoordIndex, valueCoordIndex
- ) {
- var coordArr = [];
- var value = numCalculate(data, valueDataDim, mlType);
-
- var dataIndex = data.indexOfNearest(valueDataDim, value, true);
- coordArr[baseCoordIndex] = data.get(baseDataDim, dataIndex, true);
- coordArr[valueCoordIndex] = data.get(valueDataDim, dataIndex, true);
-
- var precision = getPrecision(data, valueDataDim, dataIndex);
- if (precision >= 0) {
- coordArr[valueCoordIndex] = +coordArr[valueCoordIndex].toFixed(precision);
- }
-
- return coordArr;
- }
-
- var curry = zrUtil.curry;
- // TODO Specified percent
- var markerTypeCalculator = {
- /**
- * @method
- * @param {module:echarts/data/List} data
- * @param {string} baseAxisDim
- * @param {string} valueAxisDim
- */
- min: curry(markerTypeCalculatorWithExtent, 'min'),
- /**
- * @method
- * @param {module:echarts/data/List} data
- * @param {string} baseAxisDim
- * @param {string} valueAxisDim
- */
- max: curry(markerTypeCalculatorWithExtent, 'max'),
- /**
- * @method
- * @param {module:echarts/data/List} data
- * @param {string} baseAxisDim
- * @param {string} valueAxisDim
- */
- average: curry(markerTypeCalculatorWithExtent, 'average')
- };
-
- /**
- * Transform markPoint data item to format used in List by do the following
- * 1. Calculate statistic like `max`, `min`, `average`
- * 2. Convert `item.xAxis`, `item.yAxis` to `item.coord` array
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/coord/*} [coordSys]
- * @param {Object} item
- * @return {Object}
- */
- var dataTransform = function (seriesModel, item) {
- var data = seriesModel.getData();
- var coordSys = seriesModel.coordinateSystem;
-
- // 1. If not specify the position with pixel directly
- // 2. If `coord` is not a data array. Which uses `xAxis`,
- // `yAxis` to specify the coord on each dimension
- if ((isNaN(item.x) || isNaN(item.y))
- && !zrUtil.isArray(item.coord)
- && coordSys
- ) {
- var axisInfo = getAxisInfo(item, data, coordSys, seriesModel);
-
- // Clone the option
- // Transform the properties xAxis, yAxis, radiusAxis, angleAxis, geoCoord to value
- item = zrUtil.clone(item);
-
- if (item.type
- && markerTypeCalculator[item.type]
- && axisInfo.baseAxis && axisInfo.valueAxis
- ) {
- var dims = coordSys.dimensions;
- var baseCoordIndex = indexOf(dims, axisInfo.baseAxis.dim);
- var valueCoordIndex = indexOf(dims, axisInfo.valueAxis.dim);
-
- item.coord = markerTypeCalculator[item.type](
- data, axisInfo.baseDataDim, axisInfo.valueDataDim,
- baseCoordIndex, valueCoordIndex
- );
- // Force to use the value of calculated value.
- item.value = item.coord[valueCoordIndex];
- }
- else {
- // FIXME Only has one of xAxis and yAxis.
- item.coord = [
- item.xAxis != null ? item.xAxis : item.radiusAxis,
- item.yAxis != null ? item.yAxis : item.angleAxis
- ];
- }
- }
- return item;
- };
-
- var getAxisInfo = function (item, data, coordSys, seriesModel) {
- var ret = {};
-
- if (item.valueIndex != null || item.valueDim != null) {
- ret.valueDataDim = item.valueIndex != null
- ? data.getDimension(item.valueIndex) : item.valueDim;
- ret.valueAxis = coordSys.getAxis(seriesModel.dataDimToCoordDim(ret.valueDataDim));
- ret.baseAxis = coordSys.getOtherAxis(ret.valueAxis);
- ret.baseDataDim = seriesModel.coordDimToDataDim(ret.baseAxis.dim)[0];
- }
- else {
- ret.baseAxis = seriesModel.getBaseAxis();
- ret.valueAxis = coordSys.getOtherAxis(ret.baseAxis);
- ret.baseDataDim = seriesModel.coordDimToDataDim(ret.baseAxis.dim)[0];
- ret.valueDataDim = seriesModel.coordDimToDataDim(ret.valueAxis.dim)[0];
- }
-
- return ret;
- };
-
- /**
- * Filter data which is out of coordinateSystem range
- * [dataFilter description]
- * @param {module:echarts/coord/*} [coordSys]
- * @param {Object} item
- * @return {boolean}
- */
- var dataFilter = function (coordSys, item) {
- // Alwalys return true if there is no coordSys
- return (coordSys && coordSys.containData && item.coord && (item.x == null || item.y == null))
- ? coordSys.containData(item.coord) : true;
- };
-
- var dimValueGetter = function (item, dimName, dataIndex, dimIndex) {
- // x, y, radius, angle
- if (dimIndex < 2) {
- return item.coord && item.coord[dimIndex];
- }
- else {
- return item.value;
- }
- };
-
- var numCalculate = function (data, valueDataDim, mlType) {
- return mlType === 'average'
- ? data.getSum(valueDataDim, true) / data.count()
- : data.getDataExtent(valueDataDim, true)[mlType === 'max' ? 1 : 0];
- };
-
- module.exports = {
- dataTransform: dataTransform,
- dataFilter: dataFilter,
- dimValueGetter: dimValueGetter,
- getAxisInfo: getAxisInfo,
- numCalculate: numCalculate
- };
-
-
-/***/ },
-/* 319 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(320);
- __webpack_require__(321);
-
- __webpack_require__(1).registerPreprocessor(function (opt) {
- // Make sure markLine component is enabled
- opt.markLine = opt.markLine || {};
- });
-
-
-/***/ },
-/* 320 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- // Default enable markLine
- // var globalDefault = require('../../model/globalDefault');
- var modelUtil = __webpack_require__(5);
-
- // // Force to load markLine component
- // globalDefault.markLine = {};
-
- var MarkLineModel = __webpack_require__(1).extendComponentModel({
-
- type: 'markLine',
-
- dependencies: ['series', 'grid', 'polar'],
- /**
- * @overrite
- */
- init: function (option, parentModel, ecModel, extraOpt) {
- this.mergeDefaultAndTheme(option, ecModel);
- this.mergeOption(option, ecModel, extraOpt.createdBySelf, true);
- },
-
- mergeOption: function (newOpt, ecModel, createdBySelf, isInit) {
- if (!createdBySelf) {
- ecModel.eachSeries(function (seriesModel) {
- var markLineOpt = seriesModel.get('markLine');
- var mlModel = seriesModel.markLineModel;
- if (!markLineOpt || !markLineOpt.data) {
- seriesModel.markLineModel = null;
- return;
- }
- if (!mlModel) {
- if (isInit) {
- // Default label emphasis `position` and `show`
- modelUtil.defaultEmphasis(
- markLineOpt.label,
- ['position', 'show', 'textStyle', 'distance', 'formatter']
- );
- }
- var opt = {
- // Use the same series index and name
- seriesIndex: seriesModel.seriesIndex,
- name: seriesModel.name,
- createdBySelf: true
- };
- mlModel = new MarkLineModel(
- markLineOpt, this, ecModel, opt
- );
- }
- else {
- mlModel.mergeOption(markLineOpt, ecModel, true);
- }
- seriesModel.markLineModel = mlModel;
- }, this);
- }
- },
-
- defaultOption: {
- zlevel: 0,
- z: 5,
- // 标线起始和结束的symbol介绍类型,如果都一样,可以直接传string
- symbol: ['circle', 'arrow'],
- // 标线起始和结束的symbol大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
- symbolSize: [8, 16],
- // 标线起始和结束的symbol旋转控制
- //symbolRotate: null,
- //smooth: false,
- precision: 2,
- tooltip: {
- trigger: 'item'
- },
- label: {
- normal: {
- show: true,
- // 标签文本格式器,同Tooltip.formatter,不支持回调
- // formatter: null,
- // 可选为 'start'|'end'|'left'|'right'|'top'|'bottom'
- position: 'end'
- // 默认使用全局文本样式,详见TEXTSTYLE
- // textStyle: null
- },
- emphasis: {
- show: true
- }
- },
- lineStyle: {
- normal: {
- // color
- // width
- type: 'dashed'
- // shadowColor: 'rgba(0,0,0,0)',
- // shadowBlur: 0,
- // shadowOffsetX: 0,
- // shadowOffsetY: 0
- },
- emphasis: {
- width: 3
- }
- },
- animationEasing: 'linear'
- }
- });
-
- module.exports = MarkLineModel;
-
-
-/***/ },
-/* 321 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var List = __webpack_require__(94);
- var formatUtil = __webpack_require__(6);
- var modelUtil = __webpack_require__(5);
- var numberUtil = __webpack_require__(7);
-
- var addCommas = formatUtil.addCommas;
- var encodeHTML = formatUtil.encodeHTML;
-
- var markerHelper = __webpack_require__(318);
-
- var LineDraw = __webpack_require__(194);
-
- var markLineTransform = function (seriesModel, coordSys, mlModel, item) {
- var data = seriesModel.getData();
- // Special type markLine like 'min', 'max', 'average'
- var mlType = item.type;
-
- if (!zrUtil.isArray(item)
- && (mlType === 'min' || mlType === 'max' || mlType === 'average')
- ) {
- var axisInfo = markerHelper.getAxisInfo(item, data, coordSys, seriesModel);
-
- var baseAxisKey = axisInfo.baseAxis.dim + 'Axis';
- var valueAxisKey = axisInfo.valueAxis.dim + 'Axis';
- var baseScaleExtent = axisInfo.baseAxis.scale.getExtent();
-
- var mlFrom = zrUtil.clone(item);
- var mlTo = {};
-
- mlFrom.type = null;
-
- // FIXME Polar should use circle
- mlFrom[baseAxisKey] = baseScaleExtent[0];
- mlTo[baseAxisKey] = baseScaleExtent[1];
-
- var value = markerHelper.numCalculate(data, axisInfo.valueDataDim, mlType);
-
- // Round if axis is cateogry
- value = axisInfo.valueAxis.coordToData(axisInfo.valueAxis.dataToCoord(value));
-
- var precision = mlModel.get('precision');
- if (precision >= 0) {
- value = +value.toFixed(precision);
- }
-
- mlFrom[valueAxisKey] = mlTo[valueAxisKey] = value;
-
- item = [mlFrom, mlTo, { // Extra option for tooltip and label
- type: mlType,
- valueIndex: item.valueIndex,
- // Force to use the value of calculated value.
- value: value
- }];
- }
-
- item = [
- markerHelper.dataTransform(seriesModel, item[0]),
- markerHelper.dataTransform(seriesModel, item[1]),
- zrUtil.extend({}, item[2])
- ];
-
- // Avoid line data type is extended by from(to) data type
- item[2].type = item[2].type || '';
-
- // Merge from option and to option into line option
- zrUtil.merge(item[2], item[0]);
- zrUtil.merge(item[2], item[1]);
-
- return item;
- };
-
- function markLineFilter(coordSys, item) {
- return markerHelper.dataFilter(coordSys, item[0])
- && markerHelper.dataFilter(coordSys, item[1]);
- }
-
- function updateSingleMarkerEndLayout(
- data, idx, isFrom, mlType, valueIndex, seriesModel, api
- ) {
- var coordSys = seriesModel.coordinateSystem;
- var itemModel = data.getItemModel(idx);
-
- var point;
- var xPx = itemModel.get('x');
- var yPx = itemModel.get('y');
- if (xPx != null && yPx != null) {
- point = [
- numberUtil.parsePercent(xPx, api.getWidth()),
- numberUtil.parsePercent(yPx, api.getHeight())
- ];
- }
- else {
- // Chart like bar may have there own marker positioning logic
- if (seriesModel.getMarkerPosition) {
- // Use the getMarkerPoisition
- point = seriesModel.getMarkerPosition(
- data.getValues(data.dimensions, idx)
- );
- }
- else {
- var dims = coordSys.dimensions;
- var x = data.get(dims[0], idx);
- var y = data.get(dims[1], idx);
- point = coordSys.dataToPoint([x, y]);
- }
- // Expand min, max, average line to the edge of grid
- // FIXME Glue code
- if (mlType && coordSys.type === 'cartesian2d') {
- var mlOnAxis = valueIndex != null
- ? coordSys.getAxis(valueIndex === 1 ? 'x' : 'y')
- : coordSys.getAxesByScale('ordinal')[0];
- if (mlOnAxis && mlOnAxis.onBand) {
- point[mlOnAxis.dim === 'x' ? 0 : 1] =
- mlOnAxis.toGlobalCoord(mlOnAxis.getExtent()[isFrom ? 0 : 1]);
- }
- }
- }
-
- data.setItemLayout(idx, point);
- }
-
- var markLineFormatMixin = {
- formatTooltip: function (dataIndex) {
- var data = this._data;
- var value = this.getRawValue(dataIndex);
- var formattedValue = zrUtil.isArray(value)
- ? zrUtil.map(value, addCommas).join(', ') : addCommas(value);
- var name = data.getName(dataIndex);
- return this.name + '<br />'
- + ((name ? encodeHTML(name) + ' : ' : '') + formattedValue);
- },
-
- getRawDataArray: function () {
- return this.option.data;
- },
-
- getData: function () {
- return this._data;
- },
-
- setData: function (data) {
- this._data = data;
- }
- };
-
- zrUtil.defaults(markLineFormatMixin, modelUtil.dataFormatMixin);
-
- __webpack_require__(1).extendComponentView({
-
- type: 'markLine',
-
- init: function () {
- /**
- * Markline grouped by series
- * @private
- * @type {Object}
- */
- this._markLineMap = {};
- },
-
- render: function (markLineModel, ecModel, api) {
- var lineDrawMap = this._markLineMap;
- for (var name in lineDrawMap) {
- lineDrawMap[name].__keep = false;
- }
-
- ecModel.eachSeries(function (seriesModel) {
- var mlModel = seriesModel.markLineModel;
- mlModel && this._renderSeriesML(seriesModel, mlModel, ecModel, api);
- }, this);
-
- for (var name in lineDrawMap) {
- if (!lineDrawMap[name].__keep) {
- this.group.remove(lineDrawMap[name].group);
- }
- }
- },
-
- updateLayout: function (markLineModel, ecModel, api) {
- ecModel.eachSeries(function (seriesModel) {
- var mlModel = seriesModel.markLineModel;
- if (mlModel) {
- var mlData = mlModel.getData();
- var fromData = mlModel.__from;
- var toData = mlModel.__to;
- // Update visual and layout of from symbol and to symbol
- fromData.each(function (idx) {
- var lineModel = mlData.getItemModel(idx);
- var mlType = lineModel.get('type');
- var valueIndex = lineModel.get('valueIndex');
- updateSingleMarkerEndLayout(fromData, idx, true, mlType, valueIndex, seriesModel, api);
- updateSingleMarkerEndLayout(toData, idx, false, mlType, valueIndex, seriesModel, api);
- });
- // Update layout of line
- mlData.each(function (idx) {
- mlData.setItemLayout(idx, [
- fromData.getItemLayout(idx),
- toData.getItemLayout(idx)
- ]);
- });
-
- this._markLineMap[seriesModel.name].updateLayout();
- }
- }, this);
- },
-
- _renderSeriesML: function (seriesModel, mlModel, ecModel, api) {
- var coordSys = seriesModel.coordinateSystem;
- var seriesName = seriesModel.name;
- var seriesData = seriesModel.getData();
-
- var lineDrawMap = this._markLineMap;
- var lineDraw = lineDrawMap[seriesName];
- if (!lineDraw) {
- lineDraw = lineDrawMap[seriesName] = new LineDraw();
- }
- this.group.add(lineDraw.group);
-
- var mlData = createList(coordSys, seriesModel, mlModel);
-
- var fromData = mlData.from;
- var toData = mlData.to;
- var lineData = mlData.line;
-
- mlModel.__from = fromData;
- mlModel.__to = toData;
- // Line data for tooltip and formatter
- zrUtil.extend(mlModel, markLineFormatMixin);
- mlModel.setData(lineData);
-
- var symbolType = mlModel.get('symbol');
- var symbolSize = mlModel.get('symbolSize');
- if (!zrUtil.isArray(symbolType)) {
- symbolType = [symbolType, symbolType];
- }
- if (typeof symbolSize === 'number') {
- symbolSize = [symbolSize, symbolSize];
- }
-
- // Update visual and layout of from symbol and to symbol
- mlData.from.each(function (idx) {
- var lineModel = lineData.getItemModel(idx);
- var mlType = lineModel.get('type');
- var valueIndex = lineModel.get('valueIndex');
- updateDataVisualAndLayout(fromData, idx, true, mlType, valueIndex);
- updateDataVisualAndLayout(toData, idx, false, mlType, valueIndex);
- });
-
- // Update visual and layout of line
- lineData.each(function (idx) {
- var lineColor = lineData.getItemModel(idx).get('lineStyle.normal.color');
- lineData.setItemVisual(idx, {
- color: lineColor || fromData.getItemVisual(idx, 'color')
- });
- lineData.setItemLayout(idx, [
- fromData.getItemLayout(idx),
- toData.getItemLayout(idx)
- ]);
- });
-
- lineDraw.updateData(lineData, fromData, toData);
-
- // Set host model for tooltip
- // FIXME
- mlData.line.eachItemGraphicEl(function (el, idx) {
- el.traverse(function (child) {
- child.dataModel = mlModel;
- });
- });
-
- function updateDataVisualAndLayout(data, idx, isFrom, mlType, valueIndex) {
- var itemModel = data.getItemModel(idx);
-
- updateSingleMarkerEndLayout(
- data, idx, isFrom, mlType, valueIndex, seriesModel, api
- );
-
- data.setItemVisual(idx, {
- symbolSize: itemModel.get('symbolSize')
- || symbolSize[isFrom ? 0 : 1],
- symbol: itemModel.get('symbol', true)
- || symbolType[isFrom ? 0 : 1],
- color: itemModel.get('itemStyle.normal.color')
- || seriesData.getVisual('color')
- });
- }
-
- lineDraw.__keep = true;
- }
- });
-
- /**
- * @inner
- * @param {module:echarts/coord/*} coordSys
- * @param {module:echarts/model/Series} seriesModel
- * @param {module:echarts/model/Model} mpModel
- */
- function createList(coordSys, seriesModel, mlModel) {
-
- var coordDimsInfos;
- if (coordSys) {
- coordDimsInfos = zrUtil.map(coordSys && coordSys.dimensions, function (coordDim) {
- var info = seriesModel.getData().getDimensionInfo(
- seriesModel.coordDimToDataDim(coordDim)[0]
- ) || {}; // In map series data don't have lng and lat dimension. Fallback to same with coordSys
- info.name = coordDim;
- return info;
- });
- }
- else {
- coordDimsInfos =[{
- name: 'value',
- type: 'float'
- }];
- }
-
- var fromData = new List(coordDimsInfos, mlModel);
- var toData = new List(coordDimsInfos, mlModel);
- // No dimensions
- var lineData = new List([], mlModel);
-
- var optData = zrUtil.map(mlModel.get('data'), zrUtil.curry(
- markLineTransform, seriesModel, coordSys, mlModel
- ));
- if (coordSys) {
- optData = zrUtil.filter(
- optData, zrUtil.curry(markLineFilter, coordSys)
- );
- }
- var dimValueGetter = coordSys ? markerHelper.dimValueGetter : function (item) {
- return item.value;
- };
- fromData.initData(
- zrUtil.map(optData, function (item) { return item[0]; }),
- null, dimValueGetter
- );
- toData.initData(
- zrUtil.map(optData, function (item) { return item[1]; }),
- null, dimValueGetter
- );
- lineData.initData(
- zrUtil.map(optData, function (item) { return item[2]; })
- );
- return {
- from: fromData,
- to: toData,
- line: lineData
- };
- }
-
-
-/***/ },
-/* 322 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * DataZoom component entry
- */
-
-
- var echarts = __webpack_require__(1);
-
- echarts.registerPreprocessor(__webpack_require__(323));
-
- __webpack_require__(324);
- __webpack_require__(325);
- __webpack_require__(326);
- __webpack_require__(328);
-
-
-
-/***/ },
-/* 323 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Timeline preprocessor
- */
-
-
- var zrUtil = __webpack_require__(3);
-
- module.exports = function (option) {
- var timelineOpt = option && option.timeline;
-
- if (!zrUtil.isArray(timelineOpt)) {
- timelineOpt = timelineOpt ? [timelineOpt] : [];
- }
-
- zrUtil.each(timelineOpt, function (opt) {
- if (!opt) {
- return;
- }
-
- compatibleEC2(opt);
- });
- };
-
- function compatibleEC2(opt) {
- var type = opt.type;
-
- var ec2Types = {'number': 'value', 'time': 'time'};
-
- // Compatible with ec2
- if (ec2Types[type]) {
- opt.axisType = ec2Types[type];
- delete opt.type;
- }
-
- transferItem(opt);
-
- if (has(opt, 'controlPosition')) {
- var controlStyle = opt.controlStyle || (opt.controlStyle = {});
- if (!has(controlStyle, 'position')) {
- controlStyle.position = opt.controlPosition;
- }
- if (controlStyle.position === 'none' && !has(controlStyle, 'show')) {
- controlStyle.show = false;
- delete controlStyle.position;
- }
- delete opt.controlPosition;
- }
-
- zrUtil.each(opt.data || [], function (dataItem) {
- if (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem)) {
- if (!has(dataItem, 'value') && has(dataItem, 'name')) {
- // In ec2, using name as value.
- dataItem.value = dataItem.name;
- }
- transferItem(dataItem);
- }
- });
- }
-
- function transferItem(opt) {
- var itemStyle = opt.itemStyle || (opt.itemStyle = {});
-
- var itemStyleEmphasis = itemStyle.emphasis || (itemStyle.emphasis = {});
-
- // Transfer label out
- var label = opt.label || (opt.label || {});
- var labelNormal = label.normal || (label.normal = {});
- var excludeLabelAttr = {normal: 1, emphasis: 1};
-
- zrUtil.each(label, function (value, name) {
- if (!excludeLabelAttr[name] && !has(labelNormal, name)) {
- labelNormal[name] = value;
- }
- });
-
- if (itemStyleEmphasis.label && !has(label, 'emphasis')) {
- label.emphasis = itemStyleEmphasis.label;
- delete itemStyleEmphasis.label;
- }
- }
-
- function has(obj, attr) {
- return obj.hasOwnProperty(attr);
- }
-
-
-
-/***/ },
-/* 324 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(19).registerSubTypeDefaulter('timeline', function () {
- // Only slider now.
- return 'slider';
- });
-
-
-
-/***/ },
-/* 325 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Timeilne action
- */
-
-
- var echarts = __webpack_require__(1);
-
- echarts.registerAction(
-
- {type: 'timelineChange', event: 'timelineChanged', update: 'prepareAndUpdate'},
-
- function (payload, ecModel) {
-
- var timelineModel = ecModel.getComponent('timeline');
- if (timelineModel && payload.currentIndex != null) {
- timelineModel.setCurrentIndex(payload.currentIndex);
-
- if (!timelineModel.get('loop', true) && timelineModel.isIndexMax()) {
- timelineModel.setPlayState(false);
- }
- }
-
- ecModel.resetOption('timeline');
- }
- );
-
- echarts.registerAction(
-
- {type: 'timelinePlayChange', event: 'timelinePlayChanged', update: 'update'},
-
- function (payload, ecModel) {
- var timelineModel = ecModel.getComponent('timeline');
- if (timelineModel && payload.playState != null) {
- timelineModel.setPlayState(payload.playState);
- }
- }
- );
-
-
-
-/***/ },
-/* 326 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Silder timeline model
- */
-
-
- var TimelineModel = __webpack_require__(327);
-
- module.exports = TimelineModel.extend({
-
- type: 'timeline.slider',
-
- /**
- * @protected
- */
- defaultOption: {
-
- backgroundColor: 'rgba(0,0,0,0)', // 时间轴背景颜色
- borderColor: '#ccc', // 时间轴边框颜色
- borderWidth: 0, // 时间轴边框线宽,单位px,默认为0(无边框)
-
- orient: 'horizontal', // 'vertical'
- inverse: false,
-
- tooltip: { // boolean or Object
- trigger: 'item' // data item may also have tootip attr.
- },
-
- symbol: 'emptyCircle',
- symbolSize: 10,
-
- lineStyle: {
- show: true,
- width: 2,
- color: '#304654'
- },
- label: { // 文本标签
- position: 'auto', // auto left right top bottom
- // When using number, label position is not
- // restricted by viewRect.
- // positive: right/bottom, negative: left/top
- normal: {
- show: true,
- interval: 'auto',
- rotate: 0,
- // formatter: null,
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- color: '#304654'
- }
- },
- emphasis: {
- show: true,
- textStyle: { // 其余属性默认使用全局文本样式,详见TEXTSTYLE
- color: '#c23531'
- }
- }
- },
- itemStyle: {
- normal: {
- color: '#304654',
- borderWidth: 1
- },
- emphasis: {
- color: '#c23531'
- }
- },
-
- checkpointStyle: {
- symbol: 'circle',
- symbolSize: 13,
- color: '#c23531',
- borderWidth: 5,
- borderColor: 'rgba(194,53,49, 0.5)',
- animation: true,
- animationDuration: 300,
- animationEasing: 'quinticInOut'
- },
-
- controlStyle: {
- show: true,
- showPlayBtn: true,
- showPrevBtn: true,
- showNextBtn: true,
- itemSize: 22,
- itemGap: 12,
- position: 'left', // 'left' 'right' 'top' 'bottom'
- playIcon: 'path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z', // jshint ignore:line
- stopIcon: 'path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // jshint ignore:line
- nextIcon: 'path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z', // jshint ignore:line
- prevIcon: 'path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z', // jshint ignore:line
- normal: {
- color: '#304654',
- borderColor: '#304654',
- borderWidth: 1
- },
- emphasis: {
- color: '#c23531',
- borderColor: '#c23531',
- borderWidth: 2
- }
- },
- data: []
- }
-
- });
-
-
-
-/***/ },
-/* 327 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Timeline model
- */
-
-
- var ComponentModel = __webpack_require__(19);
- var List = __webpack_require__(94);
- var zrUtil = __webpack_require__(3);
- var modelUtil = __webpack_require__(5);
-
- var TimelineModel = ComponentModel.extend({
-
- type: 'timeline',
-
- layoutMode: 'box',
-
- /**
- * @protected
- */
- defaultOption: {
-
- zlevel: 0, // 一级层叠
- z: 4, // 二级层叠
- show: true,
-
- axisType: 'time', // 模式是时间类型,支持 value, category
-
- realtime: true,
-
- left: '20%',
- top: null,
- right: '20%',
- bottom: 0,
- width: null,
- height: 40,
- padding: 5,
-
- controlPosition: 'left', // 'left' 'right' 'top' 'bottom' 'none'
- autoPlay: false,
- rewind: false, // 反向播放
- loop: true,
- playInterval: 2000, // 播放时间间隔,单位ms
-
- currentIndex: 0,
-
- itemStyle: {
- normal: {},
- emphasis: {}
- },
- label: {
- normal: {
- textStyle: {
- color: '#000'
- }
- },
- emphasis: {}
- },
-
- data: []
- },
-
- /**
- * @override
- */
- init: function (option, parentModel, ecModel) {
-
- /**
- * @private
- * @type {module:echarts/data/List}
- */
- this._data;
-
- /**
- * @private
- * @type {Array.<string>}
- */
- this._names;
-
- this.mergeDefaultAndTheme(option, ecModel);
- this._initData();
- },
-
- /**
- * @override
- */
- mergeOption: function (option) {
- TimelineModel.superApply(this, 'mergeOption', arguments);
- this._initData();
- },
-
- /**
- * @param {number} [currentIndex]
- */
- setCurrentIndex: function (currentIndex) {
- if (currentIndex == null) {
- currentIndex = this.option.currentIndex;
- }
- var count = this._data.count();
-
- if (this.option.loop) {
- currentIndex = (currentIndex % count + count) % count;
- }
- else {
- currentIndex >= count && (currentIndex = count - 1);
- currentIndex < 0 && (currentIndex = 0);
- }
-
- this.option.currentIndex = currentIndex;
- },
-
- /**
- * @return {number} currentIndex
- */
- getCurrentIndex: function () {
- return this.option.currentIndex;
- },
-
- /**
- * @return {boolean}
- */
- isIndexMax: function () {
- return this.getCurrentIndex() >= this._data.count() - 1;
- },
-
- /**
- * @param {boolean} state true: play, false: stop
- */
- setPlayState: function (state) {
- this.option.autoPlay = !!state;
- },
-
- /**
- * @return {boolean} true: play, false: stop
- */
- getPlayState: function () {
- return !!this.option.autoPlay;
- },
-
- /**
- * @private
- */
- _initData: function () {
- var thisOption = this.option;
- var dataArr = thisOption.data || [];
- var axisType = thisOption.axisType;
- var names = this._names = [];
-
- if (axisType === 'category') {
- var idxArr = [];
- zrUtil.each(dataArr, function (item, index) {
- var value = modelUtil.getDataItemValue(item);
- var newItem;
-
- if (zrUtil.isObject(item)) {
- newItem = zrUtil.clone(item);
- newItem.value = index;
- }
- else {
- newItem = index;
- }
-
- idxArr.push(newItem);
-
- if (!zrUtil.isString(value) && (value == null || isNaN(value))) {
- value = '';
- }
-
- names.push(value + '');
- });
- dataArr = idxArr;
- }
-
- var dimType = ({category: 'ordinal', time: 'time'})[axisType] || 'number';
-
- var data = this._data = new List([{name: 'value', type: dimType}], this);
-
- data.initData(dataArr, names);
- },
-
- getData: function () {
- return this._data;
- },
-
- /**
- * @public
- * @return {Array.<string>} categoreis
- */
- getCategories: function () {
- if (this.get('axisType') === 'category') {
- return this._names.slice();
- }
- }
-
- });
-
- module.exports = TimelineModel;
-
-
-/***/ },
-/* 328 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Silder timeline view
- */
-
-
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var layout = __webpack_require__(21);
- var TimelineView = __webpack_require__(329);
- var TimelineAxis = __webpack_require__(330);
- var symbolUtil = __webpack_require__(100);
- var axisHelper = __webpack_require__(108);
- var BoundingRect = __webpack_require__(15);
- var matrix = __webpack_require__(17);
- var numberUtil = __webpack_require__(7);
- var modelUtil = __webpack_require__(5);
- var formatUtil = __webpack_require__(6);
- var encodeHTML = formatUtil.encodeHTML;
-
- var bind = zrUtil.bind;
- var each = zrUtil.each;
-
- var PI = Math.PI;
-
- module.exports = TimelineView.extend({
-
- type: 'timeline.slider',
-
- init: function (ecModel, api) {
-
- this.api = api;
-
- /**
- * @private
- * @type {module:echarts/component/timeline/TimelineAxis}
- */
- this._axis;
-
- /**
- * @private
- * @type {module:zrender/core/BoundingRect}
- */
- this._viewRect;
-
- /**
- * @type {number}
- */
- this._timer;
-
- /**
- * @type {module:zrende/Element}
- */
- this._currentPointer;
-
- /**
- * @type {module:zrender/container/Group}
- */
- this._mainGroup;
-
- /**
- * @type {module:zrender/container/Group}
- */
- this._labelGroup;
- },
-
- /**
- * @override
- */
- render: function (timelineModel, ecModel, api, payload) {
- this.model = timelineModel;
- this.api = api;
- this.ecModel = ecModel;
-
- this.group.removeAll();
-
- if (timelineModel.get('show', true)) {
-
- var layoutInfo = this._layout(timelineModel, api);
- var mainGroup = this._createGroup('mainGroup');
- var labelGroup = this._createGroup('labelGroup');
-
- /**
- * @private
- * @type {module:echarts/component/timeline/TimelineAxis}
- */
- var axis = this._axis = this._createAxis(layoutInfo, timelineModel);
-
- each(
- ['AxisLine', 'AxisTick', 'Control', 'CurrentPointer'],
- function (name) {
- this['_render' + name](layoutInfo, mainGroup, axis, timelineModel);
- },
- this
- );
-
- this._renderAxisLabel(layoutInfo, labelGroup, axis, timelineModel);
-
- this._position(layoutInfo, timelineModel);
- }
-
- this._doPlayStop();
- },
-
- /**
- * @override
- */
- remove: function () {
- this._clearTimer();
- this.group.removeAll();
- },
-
- /**
- * @override
- */
- dispose: function () {
- this._clearTimer();
- },
-
- _layout: function (timelineModel, api) {
- var labelPosOpt = timelineModel.get('label.normal.position');
- var orient = timelineModel.get('orient');
- var viewRect = getViewRect(timelineModel, api);
- // Auto label offset.
- if (labelPosOpt == null || labelPosOpt === 'auto') {
- labelPosOpt = orient === 'horizontal'
- ? ((viewRect.y + viewRect.height / 2) < api.getHeight() / 2 ? '-' : '+')
- : ((viewRect.x + viewRect.width / 2) < api.getWidth() / 2 ? '+' : '-');
- }
- else if (isNaN(labelPosOpt)) {
- labelPosOpt = ({
- horizontal: {top: '-', bottom: '+'},
- vertical: {left: '-', right: '+'}
- })[orient][labelPosOpt];
- }
-
- // FIXME
- // 暂没有实现用户传入
- // var labelAlign = timelineModel.get('label.normal.textStyle.align');
- // var labelBaseline = timelineModel.get('label.normal.textStyle.baseline');
- var labelAlignMap = {
- horizontal: 'center',
- vertical: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'left' : 'right'
- };
-
- var labelBaselineMap = {
- horizontal: (labelPosOpt >= 0 || labelPosOpt === '+') ? 'top' : 'bottom',
- vertical: 'middle'
- };
- var rotationMap = {
- horizontal: 0,
- vertical: PI / 2
- };
-
- // Position
- var mainLength = orient === 'vertical' ? viewRect.height : viewRect.width;
-
- var controlModel = timelineModel.getModel('controlStyle');
- var showControl = controlModel.get('show');
- var controlSize = showControl ? controlModel.get('itemSize') : 0;
- var controlGap = showControl ? controlModel.get('itemGap') : 0;
- var sizePlusGap = controlSize + controlGap;
-
- // Special label rotate.
- var labelRotation = timelineModel.get('label.normal.rotate') || 0;
- labelRotation = labelRotation * PI / 180; // To radian.
-
- var playPosition;
- var prevBtnPosition;
- var nextBtnPosition;
- var axisExtent;
- var controlPosition = controlModel.get('position', true);
- var showControl = controlModel.get('show', true);
- var showPlayBtn = showControl && controlModel.get('showPlayBtn', true);
- var showPrevBtn = showControl && controlModel.get('showPrevBtn', true);
- var showNextBtn = showControl && controlModel.get('showNextBtn', true);
- var xLeft = 0;
- var xRight = mainLength;
-
- // position[0] means left, position[1] means middle.
- if (controlPosition === 'left' || controlPosition === 'bottom') {
- showPlayBtn && (playPosition = [0, 0], xLeft += sizePlusGap);
- showPrevBtn && (prevBtnPosition = [xLeft, 0], xLeft += sizePlusGap);
- showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
- }
- else { // 'top' 'right'
- showPlayBtn && (playPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
- showPrevBtn && (prevBtnPosition = [0, 0], xLeft += sizePlusGap);
- showNextBtn && (nextBtnPosition = [xRight - controlSize, 0], xRight -= sizePlusGap);
- }
- axisExtent = [xLeft, xRight];
-
- if (timelineModel.get('inverse')) {
- axisExtent.reverse();
- }
-
- return {
- viewRect: viewRect,
- mainLength: mainLength,
- orient: orient,
-
- rotation: rotationMap[orient],
- labelRotation: labelRotation,
- labelPosOpt: labelPosOpt,
- labelAlign: labelAlignMap[orient],
- labelBaseline: labelBaselineMap[orient],
-
- // Based on mainGroup.
- playPosition: playPosition,
- prevBtnPosition: prevBtnPosition,
- nextBtnPosition: nextBtnPosition,
- axisExtent: axisExtent,
-
- controlSize: controlSize,
- controlGap: controlGap
- };
- },
-
- _position: function (layoutInfo, timelineModel) {
- // Position is be called finally, because bounding rect is needed for
- // adapt content to fill viewRect (auto adapt offset).
-
- // Timeline may be not all in the viewRect when 'offset' is specified
- // as a number, because it is more appropriate that label aligns at
- // 'offset' but not the other edge defined by viewRect.
-
- var mainGroup = this._mainGroup;
- var labelGroup = this._labelGroup;
-
- var viewRect = layoutInfo.viewRect;
- if (layoutInfo.orient === 'vertical') {
- // transfrom to horizontal, inverse rotate by left-top point.
- var m = matrix.create();
- var rotateOriginX = viewRect.x;
- var rotateOriginY = viewRect.y + viewRect.height;
- matrix.translate(m, m, [-rotateOriginX, -rotateOriginY]);
- matrix.rotate(m, m, -PI / 2);
- matrix.translate(m, m, [rotateOriginX, rotateOriginY]);
- viewRect = viewRect.clone();
- viewRect.applyTransform(m);
- }
-
- var viewBound = getBound(viewRect);
- var mainBound = getBound(mainGroup.getBoundingRect());
- var labelBound = getBound(labelGroup.getBoundingRect());
-
- var mainPosition = mainGroup.position;
- var labelsPosition = labelGroup.position;
-
- labelsPosition[0] = mainPosition[0] = viewBound[0][0];
-
- var labelPosOpt = layoutInfo.labelPosOpt;
-
- if (isNaN(labelPosOpt)) { // '+' or '-'
- var mainBoundIdx = labelPosOpt === '+' ? 0 : 1;
- toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
- toBound(labelsPosition, labelBound, viewBound, 1, 1 - mainBoundIdx);
- }
- else {
- var mainBoundIdx = labelPosOpt >= 0 ? 0 : 1;
- toBound(mainPosition, mainBound, viewBound, 1, mainBoundIdx);
- labelsPosition[1] = mainPosition[1] + labelPosOpt;
- }
-
- mainGroup.position = mainPosition;
- labelGroup.position = labelsPosition;
- mainGroup.rotation = labelGroup.rotation = layoutInfo.rotation;
-
- setOrigin(mainGroup);
- setOrigin(labelGroup);
-
- function setOrigin(targetGroup) {
- var pos = targetGroup.position;
- targetGroup.origin = [
- viewBound[0][0] - pos[0],
- viewBound[1][0] - pos[1]
- ];
- }
-
- function getBound(rect) {
- // [[xmin, xmax], [ymin, ymax]]
- return [
- [rect.x, rect.x + rect.width],
- [rect.y, rect.y + rect.height]
- ];
- }
-
- function toBound(fromPos, from, to, dimIdx, boundIdx) {
- fromPos[dimIdx] += to[dimIdx][boundIdx] - from[dimIdx][boundIdx];
- }
- },
-
- _createAxis: function (layoutInfo, timelineModel) {
- var data = timelineModel.getData();
- var axisType = timelineModel.get('axisType');
-
- var scale = axisHelper.createScaleByModel(timelineModel, axisType);
- var dataExtent = data.getDataExtent('value');
- scale.setExtent(dataExtent[0], dataExtent[1]);
- this._customizeScale(scale, data);
- scale.niceTicks();
-
- var axis = new TimelineAxis('value', scale, layoutInfo.axisExtent, axisType);
- axis.model = timelineModel;
-
- return axis;
- },
-
- _customizeScale: function (scale, data) {
-
- scale.getTicks = function () {
- return data.mapArray(['value'], function (value) {
- return value;
- });
- };
-
- scale.getTicksLabels = function () {
- return zrUtil.map(this.getTicks(), scale.getLabel, scale);
- };
- },
-
- _createGroup: function (name) {
- var newGroup = this['_' + name] = new graphic.Group();
- this.group.add(newGroup);
- return newGroup;
- },
-
- _renderAxisLine: function (layoutInfo, group, axis, timelineModel) {
- var axisExtent = axis.getExtent();
-
- if (!timelineModel.get('lineStyle.show')) {
- return;
- }
-
- group.add(new graphic.Line({
- shape: {
- x1: axisExtent[0], y1: 0,
- x2: axisExtent[1], y2: 0
- },
- style: zrUtil.extend(
- {lineCap: 'round'},
- timelineModel.getModel('lineStyle').getLineStyle()
- ),
- silent: true,
- z2: 1
- }));
- },
-
- /**
- * @private
- */
- _renderAxisTick: function (layoutInfo, group, axis, timelineModel) {
- var data = timelineModel.getData();
- var ticks = axis.scale.getTicks();
- var tooltipHostModel = this._prepareTooltipHostModel(data, timelineModel);
-
- each(ticks, function (value, dataIndex) {
-
- var tickCoord = axis.dataToCoord(value);
- var itemModel = data.getItemModel(dataIndex);
- var itemStyleModel = itemModel.getModel('itemStyle.normal');
- var hoverStyleModel = itemModel.getModel('itemStyle.emphasis');
- var symbolOpt = {
- position: [tickCoord, 0],
- onclick: bind(this._changeTimeline, this, dataIndex)
- };
- var el = giveSymbol(itemModel, itemStyleModel, group, symbolOpt);
- graphic.setHoverStyle(el, hoverStyleModel.getItemStyle());
-
- if (itemModel.get('tooltip')) {
- el.dataIndex = dataIndex;
- el.dataModel = tooltipHostModel;
- }
- else {
- el.dataIndex = el.dataModel = null;
- }
-
- }, this);
- },
-
- /**
- * @private
- */
- _prepareTooltipHostModel: function (data, timelineModel) {
- var tooltipHostModel = modelUtil.createDataFormatModel(
- {}, data, timelineModel.get('data')
- );
- var me = this;
-
- tooltipHostModel.formatTooltip = function (dataIndex) {
- return encodeHTML(me._axis.scale.getLabel(dataIndex));
- };
-
- return tooltipHostModel;
- },
-
- /**
- * @private
- */
- _renderAxisLabel: function (layoutInfo, group, axis, timelineModel) {
- var labelModel = timelineModel.getModel('label.normal');
-
- if (!labelModel.get('show')) {
- return;
- }
-
- var data = timelineModel.getData();
- var ticks = axis.scale.getTicks();
- var labels = axisHelper.getFormattedLabels(
- axis, labelModel.get('formatter')
- );
- var labelInterval = axis.getLabelInterval();
-
- each(ticks, function (tick, dataIndex) {
- if (axis.isLabelIgnored(dataIndex, labelInterval)) {
- return;
- }
-
- var itemModel = data.getItemModel(dataIndex);
- var itemTextStyleModel = itemModel.getModel('label.normal.textStyle');
- var hoverTextStyleModel = itemModel.getModel('label.emphasis.textStyle');
- var tickCoord = axis.dataToCoord(tick);
- var textEl = new graphic.Text({
- style: {
- text: labels[dataIndex],
- textAlign: layoutInfo.labelAlign,
- textVerticalAlign: layoutInfo.labelBaseline,
- textFont: itemTextStyleModel.getFont(),
- fill: itemTextStyleModel.getTextColor()
- },
- position: [tickCoord, 0],
- rotation: layoutInfo.labelRotation - layoutInfo.rotation,
- onclick: bind(this._changeTimeline, this, dataIndex),
- silent: false
- });
-
- group.add(textEl);
- graphic.setHoverStyle(textEl, hoverTextStyleModel.getItemStyle());
-
- }, this);
- },
-
- /**
- * @private
- */
- _renderControl: function (layoutInfo, group, axis, timelineModel) {
- var controlSize = layoutInfo.controlSize;
- var rotation = layoutInfo.rotation;
-
- var itemStyle = timelineModel.getModel('controlStyle.normal').getItemStyle();
- var hoverStyle = timelineModel.getModel('controlStyle.emphasis').getItemStyle();
- var rect = [0, -controlSize / 2, controlSize, controlSize];
- var playState = timelineModel.getPlayState();
- var inverse = timelineModel.get('inverse', true);
-
- makeBtn(
- layoutInfo.nextBtnPosition,
- 'controlStyle.nextIcon',
- bind(this._changeTimeline, this, inverse ? '-' : '+')
- );
- makeBtn(
- layoutInfo.prevBtnPosition,
- 'controlStyle.prevIcon',
- bind(this._changeTimeline, this, inverse ? '+' : '-')
- );
- makeBtn(
- layoutInfo.playPosition,
- 'controlStyle.' + (playState ? 'stopIcon' : 'playIcon'),
- bind(this._handlePlayClick, this, !playState),
- true
- );
-
- function makeBtn(position, iconPath, onclick, willRotate) {
- if (!position) {
- return;
- }
- var opt = {
- position: position,
- origin: [controlSize / 2, 0],
- rotation: willRotate ? -rotation : 0,
- rectHover: true,
- style: itemStyle,
- onclick: onclick
- };
- var btn = makeIcon(timelineModel, iconPath, rect, opt);
- group.add(btn);
- graphic.setHoverStyle(btn, hoverStyle);
- }
- },
-
- _renderCurrentPointer: function (layoutInfo, group, axis, timelineModel) {
- var data = timelineModel.getData();
- var currentIndex = timelineModel.getCurrentIndex();
- var pointerModel = data.getItemModel(currentIndex).getModel('checkpointStyle');
- var me = this;
-
- var callback = {
- onCreate: function (pointer) {
- pointer.draggable = true;
- pointer.drift = bind(me._handlePointerDrag, me);
- pointer.ondragend = bind(me._handlePointerDragend, me);
- pointerMoveTo(pointer, currentIndex, axis, timelineModel, true);
- },
- onUpdate: function (pointer) {
- pointerMoveTo(pointer, currentIndex, axis, timelineModel);
- }
- };
-
- // Reuse when exists, for animation and drag.
- this._currentPointer = giveSymbol(
- pointerModel, pointerModel, this._mainGroup, {}, this._currentPointer, callback
- );
- },
-
- _handlePlayClick: function (nextState) {
- this._clearTimer();
- this.api.dispatchAction({
- type: 'timelinePlayChange',
- playState: nextState,
- from: this.uid
- });
- },
-
- _handlePointerDrag: function (dx, dy, e) {
- this._clearTimer();
- this._pointerChangeTimeline([e.offsetX, e.offsetY]);
- },
-
- _handlePointerDragend: function (e) {
- this._pointerChangeTimeline([e.offsetX, e.offsetY], true);
- },
-
- _pointerChangeTimeline: function (mousePos, trigger) {
- var toCoord = this._toAxisCoord(mousePos)[0];
-
- var axis = this._axis;
- var axisExtent = numberUtil.asc(axis.getExtent().slice());
-
- toCoord > axisExtent[1] && (toCoord = axisExtent[1]);
- toCoord < axisExtent[0] && (toCoord = axisExtent[0]);
-
- this._currentPointer.position[0] = toCoord;
- this._currentPointer.dirty();
-
- var targetDataIndex = this._findNearestTick(toCoord);
- var timelineModel = this.model;
-
- if (trigger || (
- targetDataIndex !== timelineModel.getCurrentIndex()
- && timelineModel.get('realtime')
- )) {
- this._changeTimeline(targetDataIndex);
- }
- },
-
- _doPlayStop: function () {
- this._clearTimer();
-
- if (this.model.getPlayState()) {
- this._timer = setTimeout(
- bind(handleFrame, this),
- this.model.get('playInterval')
- );
- }
-
- function handleFrame() {
- // Do not cache
- var timelineModel = this.model;
- this._changeTimeline(
- timelineModel.getCurrentIndex()
- + (timelineModel.get('rewind', true) ? -1 : 1)
- );
- }
- },
-
- _toAxisCoord: function (vertex) {
- var trans = this._mainGroup.getLocalTransform();
- return graphic.applyTransform(vertex, trans, true);
- },
-
- _findNearestTick: function (axisCoord) {
- var data = this.model.getData();
- var dist = Infinity;
- var targetDataIndex;
- var axis = this._axis;
-
- data.each(['value'], function (value, dataIndex) {
- var coord = axis.dataToCoord(value);
- var d = Math.abs(coord - axisCoord);
- if (d < dist) {
- dist = d;
- targetDataIndex = dataIndex;
- }
- });
-
- return targetDataIndex;
- },
-
- _clearTimer: function () {
- if (this._timer) {
- clearTimeout(this._timer);
- this._timer = null;
- }
- },
-
- _changeTimeline: function (nextIndex) {
- var currentIndex = this.model.getCurrentIndex();
-
- if (nextIndex === '+') {
- nextIndex = currentIndex + 1;
- }
- else if (nextIndex === '-') {
- nextIndex = currentIndex - 1;
- }
-
- this.api.dispatchAction({
- type: 'timelineChange',
- currentIndex: nextIndex,
- from: this.uid
- });
- }
-
- });
-
- function getViewRect(model, api) {
- return layout.getLayoutRect(
- model.getBoxLayoutParams(),
- {
- width: api.getWidth(),
- height: api.getHeight()
- },
- model.get('padding')
- );
- }
-
- function makeIcon(timelineModel, objPath, rect, opts) {
- var icon = graphic.makePath(
- timelineModel.get(objPath).replace(/^path:\/\//, ''),
- zrUtil.clone(opts || {}),
- new BoundingRect(rect[0], rect[1], rect[2], rect[3]),
- 'center'
- );
-
- return icon;
- }
-
- /**
- * Create symbol or update symbol
- */
- function giveSymbol(hostModel, itemStyleModel, group, opt, symbol, callback) {
- var symbolType = hostModel.get('symbol');
- var color = itemStyleModel.get('color');
- var symbolSize = hostModel.get('symbolSize');
- var halfSymbolSize = symbolSize / 2;
- var itemStyle = itemStyleModel.getItemStyle(['color', 'symbol', 'symbolSize']);
-
- if (!symbol) {
- symbol = symbolUtil.createSymbol(
- symbolType, -halfSymbolSize, -halfSymbolSize, symbolSize, symbolSize, color
- );
- group.add(symbol);
- callback && callback.onCreate(symbol);
- }
- else {
- symbol.setStyle(itemStyle);
- symbol.setColor(color);
- group.add(symbol); // Group may be new, also need to add.
- callback && callback.onUpdate(symbol);
- }
-
- opt = zrUtil.merge({
- rectHover: true,
- style: itemStyle,
- z2: 100
- }, opt, true);
-
- symbol.attr(opt);
-
- return symbol;
- }
-
- function pointerMoveTo(pointer, dataIndex, axis, timelineModel, noAnimation) {
- if (pointer.dragging) {
- return;
- }
-
- var pointerModel = timelineModel.getModel('checkpointStyle');
- var toCoord = axis.dataToCoord(timelineModel.getData().get(['value'], dataIndex));
-
- if (noAnimation || !pointerModel.get('animation', true)) {
- pointer.attr({position: [toCoord, 0]});
- }
- else {
- pointer.stopAnimation(true);
- pointer.animateTo(
- {position: [toCoord, 0]},
- pointerModel.get('animationDuration', true),
- pointerModel.get('animationEasing', true)
- );
- }
- }
-
-
-
-/***/ },
-/* 329 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Timeline view
- */
-
-
- // var zrUtil = require('zrender/lib/core/util');
- // var graphic = require('../../util/graphic');
- var ComponentView = __webpack_require__(28);
-
- module.exports = ComponentView.extend({
-
- type: 'timeline'
- });
-
-
-
-/***/ },
-/* 330 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var zrUtil = __webpack_require__(3);
- var Axis = __webpack_require__(117);
- var axisHelper = __webpack_require__(108);
-
- /**
- * Extend axis 2d
- * @constructor module:echarts/coord/cartesian/Axis2D
- * @extends {module:echarts/coord/cartesian/Axis}
- * @param {string} dim
- * @param {*} scale
- * @param {Array.<number>} coordExtent
- * @param {string} axisType
- * @param {string} position
- */
- var TimelineAxis = function (dim, scale, coordExtent, axisType) {
-
- Axis.call(this, dim, scale, coordExtent);
-
- /**
- * Axis type
- * - 'category'
- * - 'value'
- * - 'time'
- * - 'log'
- * @type {string}
- */
- this.type = axisType || 'value';
-
- /**
- * @private
- * @type {number}
- */
- this._autoLabelInterval;
-
- /**
- * Axis model
- * @param {module:echarts/component/TimelineModel}
- */
- this.model = null;
- };
-
- TimelineAxis.prototype = {
-
- constructor: TimelineAxis,
-
- /**
- * @public
- * @return {number}
- */
- getLabelInterval: function () {
- var timelineModel = this.model;
- var labelModel = timelineModel.getModel('label.normal');
- var labelInterval = labelModel.get('interval');
-
- if (labelInterval != null && labelInterval != 'auto') {
- return labelInterval;
- }
-
- var labelInterval = this._autoLabelInterval;
-
- if (!labelInterval) {
- labelInterval = this._autoLabelInterval = axisHelper.getAxisLabelInterval(
- zrUtil.map(this.scale.getTicks(), this.dataToCoord, this),
- axisHelper.getFormattedLabels(this, labelModel.get('formatter')),
- labelModel.getModel('textStyle').getFont(),
- timelineModel.get('orient') === 'horizontal'
- );
- }
-
- return labelInterval;
- },
-
- /**
- * If label is ignored.
- * Automatically used when axis is category and label can not be all shown
- * @public
- * @param {number} idx
- * @return {boolean}
- */
- isLabelIgnored: function (idx) {
- if (this.type === 'category') {
- var labelInterval = this.getLabelInterval();
- return ((typeof labelInterval === 'function')
- && !labelInterval(idx, this.scale.getLabel(idx)))
- || idx % (labelInterval + 1);
- }
- }
-
- };
-
- zrUtil.inherits(TimelineAxis, Axis);
-
- module.exports = TimelineAxis;
-
-
-/***/ },
-/* 331 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- __webpack_require__(332);
- __webpack_require__(334);
-
- __webpack_require__(336);
- __webpack_require__(337);
- __webpack_require__(338);
- __webpack_require__(339);
- __webpack_require__(344);
-
-
-/***/ },
-/* 332 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var featureManager = __webpack_require__(333);
- var zrUtil = __webpack_require__(3);
-
- var ToolboxModel = __webpack_require__(1).extendComponentModel({
-
- type: 'toolbox',
-
- layoutMode: {
- type: 'box',
- ignoreSize: true
- },
-
- mergeDefaultAndTheme: function (option) {
- ToolboxModel.superApply(this, 'mergeDefaultAndTheme', arguments);
-
- zrUtil.each(this.option.feature, function (featureOpt, featureName) {
- var Feature = featureManager.get(featureName);
- Feature && zrUtil.merge(featureOpt, Feature.defaultOption);
- });
- },
-
- defaultOption: {
-
- show: true,
-
- z: 6,
-
- zlevel: 0,
-
- orient: 'horizontal',
-
- left: 'right',
-
- top: 'top',
-
- // right
- // bottom
-
- backgroundColor: 'transparent',
-
- borderColor: '#ccc',
-
- borderWidth: 0,
-
- padding: 5,
-
- itemSize: 15,
-
- itemGap: 8,
-
- showTitle: true,
-
- iconStyle: {
- normal: {
- borderColor: '#666',
- color: 'none'
- },
- emphasis: {
- borderColor: '#3E98C5'
- }
- }
- // textStyle: {},
-
- // feature
- }
- });
-
- module.exports = ToolboxModel;
-
-
-/***/ },
-/* 333 */
-/***/ function(module, exports) {
-
- 'use strict';
-
-
- var features = {};
-
- module.exports = {
- register: function (name, ctor) {
- features[name] = ctor;
- },
-
- get: function (name) {
- return features[name];
- }
- };
-
-
-/***/ },
-/* 334 */
-/***/ function(module, exports, __webpack_require__) {
-
- /* WEBPACK VAR INJECTION */(function(process) {
-
- var featureManager = __webpack_require__(333);
- var zrUtil = __webpack_require__(3);
- var graphic = __webpack_require__(42);
- var Model = __webpack_require__(8);
- var DataDiffer = __webpack_require__(95);
- var listComponentHelper = __webpack_require__(266);
- var textContain = __webpack_require__(14);
-
- module.exports = __webpack_require__(1).extendComponentView({
-
- type: 'toolbox',
-
- render: function (toolboxModel, ecModel, api) {
- var group = this.group;
- group.removeAll();
-
- if (!toolboxModel.get('show')) {
- return;
- }
-
- var itemSize = +toolboxModel.get('itemSize');
- var featureOpts = toolboxModel.get('feature') || {};
- var features = this._features || (this._features = {});
-
- var featureNames = [];
- zrUtil.each(featureOpts, function (opt, name) {
- featureNames.push(name);
- });
-
- (new DataDiffer(this._featureNames || [], featureNames))
- .add(process)
- .update(process)
- .remove(zrUtil.curry(process, null))
- .execute();
-
- // Keep for diff.
- this._featureNames = featureNames;
-
- function process(newIndex, oldIndex) {
- var featureName = featureNames[newIndex];
- var oldName = featureNames[oldIndex];
- var featureOpt = featureOpts[featureName];
- var featureModel = new Model(featureOpt, toolboxModel, toolboxModel.ecModel);
- var feature;
-
- if (featureName && !oldName) { // Create
- if (isUserFeatureName(featureName)) {
- feature = {
- model: featureModel,
- onclick: featureModel.option.onclick,
- featureName: featureName
- };
- }
- else {
- var Feature = featureManager.get(featureName);
- if (!Feature) {
- return;
- }
- feature = new Feature(featureModel);
- }
- features[featureName] = feature;
- }
- else {
- feature = features[oldName];
- // If feature does not exsit.
- if (!feature) {
- return;
- }
- feature.model = featureModel;
- }
-
- if (!featureName && oldName) {
- feature.dispose && feature.dispose(ecModel, api);
- return;
- }
-
- if (!featureModel.get('show') || feature.unusable) {
- feature.remove && feature.remove(ecModel, api);
- return;
- }
-
- createIconPaths(featureModel, feature, featureName);
-
- featureModel.setIconStatus = function (iconName, status) {
- var option = this.option;
- var iconPaths = this.iconPaths;
- option.iconStatus = option.iconStatus || {};
- option.iconStatus[iconName] = status;
- // FIXME
- iconPaths[iconName] && iconPaths[iconName].trigger(status);
- };
-
- if (feature.render) {
- feature.render(featureModel, ecModel, api);
- }
- }
-
- function createIconPaths(featureModel, feature, featureName) {
- var iconStyleModel = featureModel.getModel('iconStyle');
-
- // If one feature has mutiple icon. they are orginaized as
- // {
- // icon: {
- // foo: '',
- // bar: ''
- // },
- // title: {
- // foo: '',
- // bar: ''
- // }
- // }
- var icons = feature.getIcons ? feature.getIcons() : featureModel.get('icon');
- var titles = featureModel.get('title') || {};
- if (typeof icons === 'string') {
- var icon = icons;
- var title = titles;
- icons = {};
- titles = {};
- icons[featureName] = icon;
- titles[featureName] = title;
- }
- var iconPaths = featureModel.iconPaths = {};
- zrUtil.each(icons, function (icon, iconName) {
- var normalStyle = iconStyleModel.getModel('normal').getItemStyle();
- var hoverStyle = iconStyleModel.getModel('emphasis').getItemStyle();
-
- var style = {
- x: -itemSize / 2,
- y: -itemSize / 2,
- width: itemSize,
- height: itemSize
- };
- var path = icon.indexOf('image://') === 0
- ? (
- style.image = icon.slice(8),
- new graphic.Image({style: style})
- )
- : graphic.makePath(
- icon.replace('path://', ''),
- {
- style: normalStyle,
- hoverStyle: hoverStyle,
- rectHover: true
- },
- style,
- 'center'
- );
-
- graphic.setHoverStyle(path);
-
- if (toolboxModel.get('showTitle')) {
- path.__title = titles[iconName];
- path.on('mouseover', function () {
- path.setStyle({
- text: titles[iconName],
- textPosition: hoverStyle.textPosition || 'bottom',
- textFill: hoverStyle.fill || hoverStyle.stroke || '#000',
- textAlign: hoverStyle.textAlign || 'center'
- });
- })
- .on('mouseout', function () {
- path.setStyle({
- textFill: null
- });
- });
- }
- path.trigger(featureModel.get('iconStatus.' + iconName) || 'normal');
-
- group.add(path);
- path.on('click', zrUtil.bind(
- feature.onclick, feature, ecModel, api, iconName
- ));
-
- iconPaths[iconName] = path;
- });
- }
-
- listComponentHelper.layout(group, toolboxModel, api);
- // Render background after group is layout
- // FIXME
- listComponentHelper.addBackground(group, toolboxModel);
-
- // Adjust icon title positions to avoid them out of screen
- group.eachChild(function (icon) {
- var titleText = icon.__title;
- var hoverStyle = icon.hoverStyle;
- // May be background element
- if (hoverStyle && titleText) {
- var rect = textContain.getBoundingRect(
- titleText, hoverStyle.font
- );
- var offsetX = icon.position[0] + group.position[0];
- var offsetY = icon.position[1] + group.position[1] + itemSize;
-
- var needPutOnTop = false;
- if (offsetY + rect.height > api.getHeight()) {
- hoverStyle.textPosition = 'top';
- needPutOnTop = true;
- }
- var topOffset = needPutOnTop ? (-5 - rect.height) : (itemSize + 8);
- if (offsetX + rect.width / 2 > api.getWidth()) {
- hoverStyle.textPosition = ['100%', topOffset];
- hoverStyle.textAlign = 'right';
- }
- else if (offsetX - rect.width / 2 < 0) {
- hoverStyle.textPosition = [0, topOffset];
- hoverStyle.textAlign = 'left';
- }
- }
- });
- },
-
- remove: function (ecModel, api) {
- zrUtil.each(this._features, function (feature) {
- feature.remove && feature.remove(ecModel, api);
- });
- this.group.removeAll();
- },
-
- dispose: function (ecModel, api) {
- zrUtil.each(this._features, function (feature) {
- feature.dispose && feature.dispose(ecModel, api);
- });
- }
- });
-
- function isUserFeatureName(featureName) {
- return featureName.indexOf('my') === 0;
- }
-
-
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(335)))
-
-/***/ },
-/* 335 */
-/***/ function(module, exports) {
-
- // shim for using process in browser
-
- var process = module.exports = {};
- var queue = [];
- var draining = false;
- var currentQueue;
- var queueIndex = -1;
-
- function cleanUpNextTick() {
- draining = false;
- if (currentQueue.length) {
- queue = currentQueue.concat(queue);
- } else {
- queueIndex = -1;
- }
- if (queue.length) {
- drainQueue();
- }
- }
-
- function drainQueue() {
- if (draining) {
- return;
- }
- var timeout = setTimeout(cleanUpNextTick);
- draining = true;
-
- var len = queue.length;
- while(len) {
- currentQueue = queue;
- queue = [];
- while (++queueIndex < len) {
- if (currentQueue) {
- currentQueue[queueIndex].run();
- }
- }
- queueIndex = -1;
- len = queue.length;
- }
- currentQueue = null;
- draining = false;
- clearTimeout(timeout);
- }
-
- process.nextTick = function (fun) {
- var args = new Array(arguments.length - 1);
- if (arguments.length > 1) {
- for (var i = 1; i < arguments.length; i++) {
- args[i - 1] = arguments[i];
- }
- }
- queue.push(new Item(fun, args));
- if (queue.length === 1 && !draining) {
- setTimeout(drainQueue, 0);
- }
- };
-
- // v8 likes predictible objects
- function Item(fun, array) {
- this.fun = fun;
- this.array = array;
- }
- Item.prototype.run = function () {
- this.fun.apply(null, this.array);
- };
- process.title = 'browser';
- process.browser = true;
- process.env = {};
- process.argv = [];
- process.version = ''; // empty string to avoid regexp issues
- process.versions = {};
-
- function noop() {}
-
- process.on = noop;
- process.addListener = noop;
- process.once = noop;
- process.off = noop;
- process.removeListener = noop;
- process.removeAllListeners = noop;
- process.emit = noop;
-
- process.binding = function (name) {
- throw new Error('process.binding is not supported');
- };
-
- process.cwd = function () { return '/' };
- process.chdir = function (dir) {
- throw new Error('process.chdir is not supported');
- };
- process.umask = function() { return 0; };
-
-
-/***/ },
-/* 336 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- var env = __webpack_require__(78);
-
- function SaveAsImage (model) {
- this.model = model;
- }
-
- SaveAsImage.defaultOption = {
- show: true,
- icon: 'M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0',
- title: '保存为图片',
- type: 'png',
- // Default use option.backgroundColor
- // backgroundColor: '#fff',
- name: '',
- excludeComponents: ['toolbox'],
- pixelRatio: 1,
- lang: ['右键另存为图片']
- };
-
- SaveAsImage.prototype.unusable = !env.canvasSupported;
-
- var proto = SaveAsImage.prototype;
-
- proto.onclick = function (ecModel, api) {
- var model = this.model;
- var title = model.get('name') || ecModel.get('title.0.text') || 'echarts';
- var $a = document.createElement('a');
- var type = model.get('type', true) || 'png';
- $a.download = title + '.' + type;
- $a.target = '_blank';
- var url = api.getConnectedDataURL({
- type: type,
- backgroundColor: model.get('backgroundColor', true)
- || ecModel.get('backgroundColor') || '#fff',
- excludeComponents: model.get('excludeComponents'),
- pixelRatio: model.get('pixelRatio')
- });
- $a.href = url;
- // Chrome and Firefox
- if (typeof MouseEvent === 'function') {
- var evt = new MouseEvent('click', {
- view: window,
- bubbles: true,
- cancelable: false
- });
- $a.dispatchEvent(evt);
- }
- // IE
- else {
- var lang = model.get('lang');
- var html = ''
- + '<body style="margin:0;">'
- + '<img src="' + url + '" style="max-width:100%;" title="' + ((lang && lang[0]) || '') + '" />'
- + '</body>';
- var tab = window.open();
- tab.document.write(html);
- }
- };
-
- __webpack_require__(333).register(
- 'saveAsImage', SaveAsImage
- );
-
- module.exports = SaveAsImage;
-
-
-/***/ },
-/* 337 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
-
- function MagicType(model) {
- this.model = model;
- }
-
- MagicType.defaultOption = {
- show: true,
- type: [],
- // Icon group
- icon: {
- line: 'M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4',
- bar: 'M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7',
- stack: 'M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z', // jshint ignore:line
- tiled: 'M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z'
- },
- title: {
- line: '切换为折线图',
- bar: '切换为柱状图',
- stack: '切换为堆叠',
- tiled: '切换为平铺'
- },
- option: {},
- seriesIndex: {}
- };
-
- var proto = MagicType.prototype;
-
- proto.getIcons = function () {
- var model = this.model;
- var availableIcons = model.get('icon');
- var icons = {};
- zrUtil.each(model.get('type'), function (type) {
- if (availableIcons[type]) {
- icons[type] = availableIcons[type];
- }
- });
- return icons;
- };
-
- var seriesOptGenreator = {
- 'line': function (seriesType, seriesId, seriesModel, model) {
- if (seriesType === 'bar') {
- return zrUtil.merge({
- id: seriesId,
- type: 'line',
- // Preserve data related option
- data: seriesModel.get('data'),
- stack: seriesModel.get('stack'),
- markPoint: seriesModel.get('markPoint'),
- markLine: seriesModel.get('markLine')
- }, model.get('option.line') || {}, true);
- }
- },
- 'bar': function (seriesType, seriesId, seriesModel, model) {
- if (seriesType === 'line') {
- return zrUtil.merge({
- id: seriesId,
- type: 'bar',
- // Preserve data related option
- data: seriesModel.get('data'),
- stack: seriesModel.get('stack'),
- markPoint: seriesModel.get('markPoint'),
- markLine: seriesModel.get('markLine')
- }, model.get('option.bar') || {}, true);
- }
- },
- 'stack': function (seriesType, seriesId, seriesModel, model) {
- if (seriesType === 'line' || seriesType === 'bar') {
- return zrUtil.merge({
- id: seriesId,
- stack: '__ec_magicType_stack__'
- }, model.get('option.stack') || {}, true);
- }
- },
- 'tiled': function (seriesType, seriesId, seriesModel, model) {
- if (seriesType === 'line' || seriesType === 'bar') {
- return zrUtil.merge({
- id: seriesId,
- stack: ''
- }, model.get('option.tiled') || {}, true);
- }
- }
- };
-
- var radioTypes = [
- ['line', 'bar'],
- ['stack', 'tiled']
- ];
-
- proto.onclick = function (ecModel, api, type) {
- var model = this.model;
- var seriesIndex = model.get('seriesIndex.' + type);
- // Not supported magicType
- if (!seriesOptGenreator[type]) {
- return;
- }
- var newOption = {
- series: []
- };
- var generateNewSeriesTypes = function (seriesModel) {
- var seriesType = seriesModel.subType;
- var seriesId = seriesModel.id;
- var newSeriesOpt = seriesOptGenreator[type](
- seriesType, seriesId, seriesModel, model
- );
- if (newSeriesOpt) {
- // PENDING If merge original option?
- zrUtil.defaults(newSeriesOpt, seriesModel.option);
- newOption.series.push(newSeriesOpt);
- }
- // Modify boundaryGap
- var coordSys = seriesModel.coordinateSystem;
- if (coordSys.type === 'cartesian2d') {
- var categoryAxis = coordSys.getAxesByScale('ordinal')[0];
- if (categoryAxis) {
- var axisDim = categoryAxis.dim;
- var axisIndex = seriesModel.get(axisDim + 'AxisIndex');
- var axisKey = axisDim + 'Axis';
- newOption[axisKey] = newOption[axisKey] || [];
- for (var i = 0; i <= axisIndex; i++) {
- newOption[axisKey][axisIndex] = newOption[axisKey][axisIndex] || {};
- }
- newOption[axisKey][axisIndex].boundaryGap = type === 'bar' ? true : false;
- }
- }
- };
-
- zrUtil.each(radioTypes, function (radio) {
- if (zrUtil.indexOf(radio, type) >= 0) {
- zrUtil.each(radio, function (item) {
- model.setIconStatus(item, 'normal');
- });
- }
- });
-
- model.setIconStatus(type, 'emphasis');
-
- ecModel.eachComponent(
- {
- mainType: 'series',
- query: seriesIndex == null ? null : {
- seriesIndex: seriesIndex
- }
- }, generateNewSeriesTypes
- );
- api.dispatchAction({
- type: 'changeMagicType',
- currentType: type,
- newOption: newOption
- });
- };
-
- var echarts = __webpack_require__(1);
- echarts.registerAction({
- type: 'changeMagicType',
- event: 'magicTypeChanged',
- update: 'prepareAndUpdate'
- }, function (payload, ecModel) {
- ecModel.mergeOption(payload.newOption);
- });
-
- __webpack_require__(333).register('magicType', MagicType);
-
- module.exports = MagicType;
-
-
-/***/ },
-/* 338 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @module echarts/component/toolbox/feature/DataView
- */
-
-
-
- var zrUtil = __webpack_require__(3);
- var eventTool = __webpack_require__(80);
-
-
- var BLOCK_SPLITER = new Array(60).join('-');
- var ITEM_SPLITER = '\t';
- /**
- * Group series into two types
- * 1. on category axis, like line, bar
- * 2. others, like scatter, pie
- * @param {module:echarts/model/Global} ecModel
- * @return {Object}
- * @inner
- */
- function groupSeries(ecModel) {
- var seriesGroupByCategoryAxis = {};
- var otherSeries = [];
- var meta = [];
- ecModel.eachRawSeries(function (seriesModel) {
- var coordSys = seriesModel.coordinateSystem;
-
- if (coordSys && (coordSys.type === 'cartesian2d' || coordSys.type === 'polar')) {
- var baseAxis = coordSys.getBaseAxis();
- if (baseAxis.type === 'category') {
- var key = baseAxis.dim + '_' + baseAxis.index;
- if (!seriesGroupByCategoryAxis[key]) {
- seriesGroupByCategoryAxis[key] = {
- categoryAxis: baseAxis,
- valueAxis: coordSys.getOtherAxis(baseAxis),
- series: []
- };
- meta.push({
- axisDim: baseAxis.dim,
- axisIndex: baseAxis.index
- });
- }
- seriesGroupByCategoryAxis[key].series.push(seriesModel);
- }
- else {
- otherSeries.push(seriesModel);
- }
- }
- else {
- otherSeries.push(seriesModel);
- }
- });
-
- return {
- seriesGroupByCategoryAxis: seriesGroupByCategoryAxis,
- other: otherSeries,
- meta: meta
- };
- }
-
- /**
- * Assemble content of series on cateogory axis
- * @param {Array.<module:echarts/model/Series>} series
- * @return {string}
- * @inner
- */
- function assembleSeriesWithCategoryAxis(series) {
- var tables = [];
- zrUtil.each(series, function (group, key) {
- var categoryAxis = group.categoryAxis;
- var valueAxis = group.valueAxis;
- var valueAxisDim = valueAxis.dim;
-
- var headers = [' '].concat(zrUtil.map(group.series, function (series) {
- return series.name;
- }));
- var columns = [categoryAxis.model.getCategories()];
- zrUtil.each(group.series, function (series) {
- columns.push(series.getRawData().mapArray(valueAxisDim, function (val) {
- return val;
- }));
- });
- // Assemble table content
- var lines = [headers.join(ITEM_SPLITER)];
- for (var i = 0; i < columns[0].length; i++) {
- var items = [];
- for (var j = 0; j < columns.length; j++) {
- items.push(columns[j][i]);
- }
- lines.push(items.join(ITEM_SPLITER));
- }
- tables.push(lines.join('\n'));
- });
- return tables.join('\n\n' + BLOCK_SPLITER + '\n\n');
- }
-
- /**
- * Assemble content of other series
- * @param {Array.<module:echarts/model/Series>} series
- * @return {string}
- * @inner
- */
- function assembleOtherSeries(series) {
- return zrUtil.map(series, function (series) {
- var data = series.getRawData();
- var lines = [series.name];
- var vals = [];
- data.each(data.dimensions, function () {
- var argLen = arguments.length;
- var dataIndex = arguments[argLen - 1];
- var name = data.getName(dataIndex);
- for (var i = 0; i < argLen - 1; i++) {
- vals[i] = arguments[i];
- }
- lines.push((name ? (name + ITEM_SPLITER) : '') + vals.join(ITEM_SPLITER));
- });
- return lines.join('\n');
- }).join('\n\n' + BLOCK_SPLITER + '\n\n');
- }
-
- /**
- * @param {module:echarts/model/Global}
- * @return {string}
- * @inner
- */
- function getContentFromModel(ecModel) {
-
- var result = groupSeries(ecModel);
-
- return {
- value: zrUtil.filter([
- assembleSeriesWithCategoryAxis(result.seriesGroupByCategoryAxis),
- assembleOtherSeries(result.other)
- ], function (str) {
- return str.replace(/[\n\t\s]/g, '');
- }).join('\n\n' + BLOCK_SPLITER + '\n\n'),
-
- meta: result.meta
- };
- }
-
-
- function trim(str) {
- return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
- }
- /**
- * If a block is tsv format
- */
- function isTSVFormat(block) {
- // Simple method to find out if a block is tsv format
- var firstLine = block.slice(0, block.indexOf('\n'));
- if (firstLine.indexOf(ITEM_SPLITER) >= 0) {
- return true;
- }
- }
-
- var itemSplitRegex = new RegExp('[' + ITEM_SPLITER + ']+', 'g');
- /**
- * @param {string} tsv
- * @return {Array.<Object>}
- */
- function parseTSVContents(tsv) {
- var tsvLines = tsv.split(/\n+/g);
- var headers = trim(tsvLines.shift()).split(itemSplitRegex);
-
- var categories = [];
- var series = zrUtil.map(headers, function (header) {
- return {
- name: header,
- data: []
- };
- });
- for (var i = 0; i < tsvLines.length; i++) {
- var items = trim(tsvLines[i]).split(itemSplitRegex);
- categories.push(items.shift());
- for (var j = 0; j < items.length; j++) {
- series[j] && (series[j].data[i] = items[j]);
- }
- }
- return {
- series: series,
- categories: categories
- };
- }
-
- /**
- * @param {string} str
- * @return {Array.<Object>}
- * @inner
- */
- function parseListContents(str) {
- var lines = str.split(/\n+/g);
- var seriesName = trim(lines.shift());
-
- var data = [];
- for (var i = 0; i < lines.length; i++) {
- var items = trim(lines[i]).split(itemSplitRegex);
- var name = '';
- var value;
- var hasName = false;
- if (isNaN(items[0])) { // First item is name
- hasName = true;
- name = items[0];
- items = items.slice(1);
- data[i] = {
- name: name,
- value: []
- };
- value = data[i].value;
- }
- else {
- value = data[i] = [];
- }
- for (var j = 0; j < items.length; j++) {
- value.push(+items[j]);
- }
- if (value.length === 1) {
- hasName ? (data[i].value = value[0]) : (data[i] = value[0]);
- }
- }
-
- return {
- name: seriesName,
- data: data
- };
- }
-
- /**
- * @param {string} str
- * @param {Array.<Object>} blockMetaList
- * @return {Object}
- * @inner
- */
- function parseContents(str, blockMetaList) {
- var blocks = str.split(new RegExp('\n*' + BLOCK_SPLITER + '\n*', 'g'));
- var newOption = {
- series: []
- };
- zrUtil.each(blocks, function (block, idx) {
- if (isTSVFormat(block)) {
- var result = parseTSVContents(block);
- var blockMeta = blockMetaList[idx];
- var axisKey = blockMeta.axisDim + 'Axis';
-
- if (blockMeta) {
- newOption[axisKey] = newOption[axisKey] || [];
- newOption[axisKey][blockMeta.axisIndex] = {
- data: result.categories
- };
- newOption.series = newOption.series.concat(result.series);
- }
- }
- else {
- var result = parseListContents(block);
- newOption.series.push(result);
- }
- });
- return newOption;
- }
-
- /**
- * @alias {module:echarts/component/toolbox/feature/DataView}
- * @constructor
- * @param {module:echarts/model/Model} model
- */
- function DataView(model) {
-
- this._dom = null;
-
- this.model = model;
- }
-
- DataView.defaultOption = {
- show: true,
- readOnly: false,
- optionToContent: null,
- contentToOption: null,
-
- icon: 'M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28',
- title: '数据视图',
- lang: ['数据视图', '关闭', '刷新'],
- backgroundColor: '#fff',
- textColor: '#000',
- textareaColor: '#fff',
- textareaBorderColor: '#333',
- buttonColor: '#c23531',
- buttonTextColor: '#fff'
- };
-
- DataView.prototype.onclick = function (ecModel, api) {
- var container = api.getDom();
- var model = this.model;
- if (this._dom) {
- container.removeChild(this._dom);
- }
- var root = document.createElement('div');
- root.style.cssText = 'position:absolute;left:5px;top:5px;bottom:5px;right:5px;';
- root.style.backgroundColor = model.get('backgroundColor') || '#fff';
-
- // Create elements
- var header = document.createElement('h4');
- var lang = model.get('lang') || [];
- header.innerHTML = lang[0] || model.get('title');
- header.style.cssText = 'margin: 10px 20px;';
- header.style.color = model.get('textColor');
-
- var viewMain = document.createElement('div');
- var textarea = document.createElement('textarea');
- viewMain.style.cssText = 'display:block;width:100%;overflow:hidden;';
-
- var optionToContent = model.get('optionToContent');
- var contentToOption = model.get('contentToOption');
- var result = getContentFromModel(ecModel);
- if (typeof optionToContent === 'function') {
- var htmlOrDom = optionToContent(api.getOption());
- if (typeof htmlOrDom === 'string') {
- viewMain.innerHTML = htmlOrDom;
- }
- else if (zrUtil.isDom(htmlOrDom)) {
- viewMain.appendChild(htmlOrDom);
- }
- }
- else {
- // Use default textarea
- viewMain.appendChild(textarea);
- textarea.readOnly = model.get('readOnly');
- textarea.style.cssText = 'width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;';
- textarea.style.color = model.get('textColor');
- textarea.style.borderColor = model.get('textareaBorderColor');
- textarea.style.backgroundColor = model.get('textareaColor');
- textarea.value = result.value;
- }
-
- var blockMetaList = result.meta;
-
- var buttonContainer = document.createElement('div');
- buttonContainer.style.cssText = 'position:absolute;bottom:0;left:0;right:0;';
-
- var buttonStyle = 'float:right;margin-right:20px;border:none;'
- + 'cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px';
- var closeButton = document.createElement('div');
- var refreshButton = document.createElement('div');
-
- buttonStyle += ';background-color:' + model.get('buttonColor');
- buttonStyle += ';color:' + model.get('buttonTextColor');
-
- var self = this;
-
- function close() {
- container.removeChild(root);
- self._dom = null;
- }
- eventTool.addEventListener(closeButton, 'click', close);
-
- eventTool.addEventListener(refreshButton, 'click', function () {
- var newOption;
- try {
- if (typeof contentToOption === 'function') {
- newOption = contentToOption(viewMain, api.getOption());
- }
- else {
- newOption = parseContents(textarea.value, blockMetaList);
- }
- }
- catch (e) {
- close();
- throw new Error('Data view format error ' + e);
- }
- if (newOption) {
- api.dispatchAction({
- type: 'changeDataView',
- newOption: newOption
- });
- }
-
- close();
- });
-
- closeButton.innerHTML = lang[1];
- refreshButton.innerHTML = lang[2];
- refreshButton.style.cssText = buttonStyle;
- closeButton.style.cssText = buttonStyle;
-
- !model.get('readOnly') && buttonContainer.appendChild(refreshButton);
- buttonContainer.appendChild(closeButton);
-
- // http://stackoverflow.com/questions/6637341/use-tab-to-indent-in-textarea
- eventTool.addEventListener(textarea, 'keydown', function (e) {
- if ((e.keyCode || e.which) === 9) {
- // get caret position/selection
- var val = this.value;
- var start = this.selectionStart;
- var end = this.selectionEnd;
-
- // set textarea value to: text before caret + tab + text after caret
- this.value = val.substring(0, start) + ITEM_SPLITER + val.substring(end);
-
- // put caret at right position again
- this.selectionStart = this.selectionEnd = start + 1;
-
- // prevent the focus lose
- eventTool.stop(e);
- }
- });
-
- root.appendChild(header);
- root.appendChild(viewMain);
- root.appendChild(buttonContainer);
-
- viewMain.style.height = (container.clientHeight - 80) + 'px';
-
- container.appendChild(root);
- this._dom = root;
- };
-
- DataView.prototype.remove = function (ecModel, api) {
- this._dom && api.getDom().removeChild(this._dom);
- };
-
- DataView.prototype.dispose = function (ecModel, api) {
- this.remove(ecModel, api);
- };
-
- /**
- * @inner
- */
- function tryMergeDataOption(newData, originalData) {
- return zrUtil.map(newData, function (newVal, idx) {
- var original = originalData && originalData[idx];
- if (zrUtil.isObject(original) && !zrUtil.isArray(original)) {
- if (zrUtil.isObject(newVal) && !zrUtil.isArray(newVal)) {
- newVal = newVal.value;
- }
- // Original data has option
- return zrUtil.defaults({
- value: newVal
- }, original);
- }
- else {
- return newVal;
- }
- });
- }
-
- __webpack_require__(333).register('dataView', DataView);
-
- __webpack_require__(1).registerAction({
- type: 'changeDataView',
- event: 'dataViewChanged',
- update: 'prepareAndUpdate'
- }, function (payload, ecModel) {
- var newSeriesOptList = [];
- zrUtil.each(payload.newOption.series, function (seriesOpt) {
- var seriesModel = ecModel.getSeriesByName(seriesOpt.name)[0];
- if (!seriesModel) {
- // New created series
- // Geuss the series type
- newSeriesOptList.push(zrUtil.extend({
- // Default is scatter
- type: 'scatter'
- }, seriesOpt));
- }
- else {
- var originalData = seriesModel.get('data');
- newSeriesOptList.push({
- name: seriesOpt.name,
- data: tryMergeDataOption(seriesOpt.data, originalData)
- });
- }
- });
-
- ecModel.mergeOption(zrUtil.defaults({
- series: newSeriesOptList
- }, payload.newOption));
- });
-
- module.exports = DataView;
-
-
-/***/ },
-/* 339 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var zrUtil = __webpack_require__(3);
- var numberUtil = __webpack_require__(7);
- var SelectController = __webpack_require__(225);
- var BoundingRect = __webpack_require__(15);
- var Group = __webpack_require__(29);
- var history = __webpack_require__(340);
- var interactionMutex = __webpack_require__(160);
-
- var each = zrUtil.each;
- var asc = numberUtil.asc;
-
- // Use dataZoomSelect
- __webpack_require__(341);
-
- // Spectial component id start with \0ec\0, see echarts/model/Global.js~hasInnerId
- var DATA_ZOOM_ID_BASE = '\0_ec_\0toolbox-dataZoom_';
-
- function DataZoom(model) {
- this.model = model;
-
- /**
- * @private
- * @type {module:zrender/container/Group}
- */
- this._controllerGroup;
-
- /**
- * @private
- * @type {module:echarts/component/helper/SelectController}
- */
- this._controller;
-
- /**
- * Is zoom active.
- * @private
- * @type {Object}
- */
- this._isZoomActive;
- }
-
- DataZoom.defaultOption = {
- show: true,
- // Icon group
- icon: {
- zoom: 'M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1',
- back: 'M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26'
- },
- title: {
- zoom: '区域缩放',
- back: '区域缩放还原'
- }
- };
-
- var proto = DataZoom.prototype;
-
- proto.render = function (featureModel, ecModel, api) {
- updateBackBtnStatus(featureModel, ecModel);
- };
-
- proto.onclick = function (ecModel, api, type) {
- var controllerGroup = this._controllerGroup;
- if (!this._controllerGroup) {
- controllerGroup = this._controllerGroup = new Group();
- api.getZr().add(controllerGroup);
- }
-
- handlers[type].call(this, controllerGroup, this.model, ecModel, api);
- };
-
- proto.remove = function (ecModel, api) {
- this._disposeController();
- interactionMutex.release('globalPan', api.getZr());
- };
-
- proto.dispose = function (ecModel, api) {
- var zr = api.getZr();
- interactionMutex.release('globalPan', zr);
- this._disposeController();
- this._controllerGroup && zr.remove(this._controllerGroup);
- };
-
- /**
- * @private
- */
- var handlers = {
-
- zoom: function (controllerGroup, featureModel, ecModel, api) {
- var isZoomActive = this._isZoomActive = !this._isZoomActive;
- var zr = api.getZr();
-
- interactionMutex[isZoomActive ? 'take' : 'release']('globalPan', zr);
-
- featureModel.setIconStatus('zoom', isZoomActive ? 'emphasis' : 'normal');
-
- if (isZoomActive) {
- zr.setDefaultCursorStyle('crosshair');
-
- this._createController(
- controllerGroup, featureModel, ecModel, api
- );
- }
- else {
- zr.setDefaultCursorStyle('default');
- this._disposeController();
- }
- },
-
- back: function (controllerGroup, featureModel, ecModel, api) {
- this._dispatchAction(history.pop(ecModel), api);
- }
- };
-
- /**
- * @private
- */
- proto._createController = function (
- controllerGroup, featureModel, ecModel, api
- ) {
- var controller = this._controller = new SelectController(
- 'rect',
- api.getZr(),
- {
- // FIXME
- lineWidth: 3,
- stroke: '#333',
- fill: 'rgba(0,0,0,0.2)'
- }
- );
- controller.on(
- 'selectEnd',
- zrUtil.bind(
- this._onSelected, this, controller,
- featureModel, ecModel, api
- )
- );
- controller.enable(controllerGroup, false);
- };
-
- proto._disposeController = function () {
- var controller = this._controller;
- if (controller) {
- controller.off('selected');
- controller.dispose();
- }
- };
-
- function prepareCoordInfo(grid, ecModel) {
- // Default use the first axis.
- // FIXME
- var coordInfo = [
- {axisModel: grid.getAxis('x').model, axisIndex: 0}, // x
- {axisModel: grid.getAxis('y').model, axisIndex: 0} // y
- ];
- coordInfo.grid = grid;
-
- ecModel.eachComponent(
- {mainType: 'dataZoom', subType: 'select'},
- function (dzModel, dataZoomIndex) {
- if (isTheAxis('xAxis', coordInfo[0].axisModel, dzModel, ecModel)) {
- coordInfo[0].dataZoomModel = dzModel;
- }
- if (isTheAxis('yAxis', coordInfo[1].axisModel, dzModel, ecModel)) {
- coordInfo[1].dataZoomModel = dzModel;
- }
- }
- );
-
- return coordInfo;
- }
-
- function isTheAxis(axisName, axisModel, dataZoomModel, ecModel) {
- var axisIndex = dataZoomModel.get(axisName + 'Index');
- return axisIndex != null
- && ecModel.getComponent(axisName, axisIndex) === axisModel;
- }
-
- /**
- * @private
- */
- proto._onSelected = function (controller, featureModel, ecModel, api, selRanges) {
- if (!selRanges.length) {
- return;
- }
- var selRange = selRanges[0];
-
- controller.update(); // remove cover
-
- var snapshot = {};
-
- // FIXME
- // polar
-
- ecModel.eachComponent('grid', function (gridModel, gridIndex) {
- var grid = gridModel.coordinateSystem;
- var coordInfo = prepareCoordInfo(grid, ecModel);
- var selDataRange = pointToDataInCartesian(selRange, coordInfo);
-
- if (selDataRange) {
- var xBatchItem = scaleCartesianAxis(selDataRange, coordInfo, 0, 'x');
- var yBatchItem = scaleCartesianAxis(selDataRange, coordInfo, 1, 'y');
-
- xBatchItem && (snapshot[xBatchItem.dataZoomId] = xBatchItem);
- yBatchItem && (snapshot[yBatchItem.dataZoomId] = yBatchItem);
- }
- }, this);
-
- history.push(ecModel, snapshot);
-
- this._dispatchAction(snapshot, api);
- };
-
- function pointToDataInCartesian(selRange, coordInfo) {
- var grid = coordInfo.grid;
-
- var selRect = new BoundingRect(
- selRange[0][0],
- selRange[1][0],
- selRange[0][1] - selRange[0][0],
- selRange[1][1] - selRange[1][0]
- );
- if (!selRect.intersect(grid.getRect())) {
- return;
- }
- var cartesian = grid.getCartesian(coordInfo[0].axisIndex, coordInfo[1].axisIndex);
- var dataLeftTop = cartesian.pointToData([selRange[0][0], selRange[1][0]], true);
- var dataRightBottom = cartesian.pointToData([selRange[0][1], selRange[1][1]], true);
-
- return [
- asc([dataLeftTop[0], dataRightBottom[0]]), // x, using asc to handle inverse
- asc([dataLeftTop[1], dataRightBottom[1]]) // y, using asc to handle inverse
- ];
- }
-
- function scaleCartesianAxis(selDataRange, coordInfo, dimIdx, dimName) {
- var dimCoordInfo = coordInfo[dimIdx];
- var dataZoomModel = dimCoordInfo.dataZoomModel;
-
- if (dataZoomModel) {
- return {
- dataZoomId: dataZoomModel.id,
- startValue: selDataRange[dimIdx][0],
- endValue: selDataRange[dimIdx][1]
- };
- }
- }
-
- /**
- * @private
- */
- proto._dispatchAction = function (snapshot, api) {
- var batch = [];
-
- each(snapshot, function (batchItem) {
- batch.push(batchItem);
- });
-
- batch.length && api.dispatchAction({
- type: 'dataZoom',
- from: this.uid,
- batch: zrUtil.clone(batch, true)
- });
- };
-
- function updateBackBtnStatus(featureModel, ecModel) {
- featureModel.setIconStatus(
- 'back',
- history.count(ecModel) > 1 ? 'emphasis' : 'normal'
- );
- }
-
-
- __webpack_require__(333).register('dataZoom', DataZoom);
-
-
- // Create special dataZoom option for select
- __webpack_require__(1).registerPreprocessor(function (option) {
- if (!option) {
- return;
- }
-
- var dataZoomOpts = option.dataZoom || (option.dataZoom = []);
- if (!zrUtil.isArray(dataZoomOpts)) {
- dataZoomOpts = [dataZoomOpts];
- }
-
- var toolboxOpt = option.toolbox;
- if (toolboxOpt) {
- // Assume there is only one toolbox
- if (zrUtil.isArray(toolboxOpt)) {
- toolboxOpt = toolboxOpt[0];
- }
-
- if (toolboxOpt && toolboxOpt.feature) {
- var dataZoomOpt = toolboxOpt.feature.dataZoom;
- addForAxis('xAxis', dataZoomOpt);
- addForAxis('yAxis', dataZoomOpt);
- }
- }
-
- function addForAxis(axisName, dataZoomOpt) {
- if (!dataZoomOpt) {
- return;
- }
-
- var axisIndicesName = axisName + 'Index';
- var givenAxisIndices = dataZoomOpt[axisIndicesName];
- if (givenAxisIndices != null && !zrUtil.isArray(givenAxisIndices)) {
- givenAxisIndices = givenAxisIndices === false ? [] : [givenAxisIndices];
- }
-
- forEachComponent(axisName, function (axisOpt, axisIndex) {
- if (givenAxisIndices != null
- && zrUtil.indexOf(givenAxisIndices, axisIndex) === -1
- ) {
- return;
- }
- var newOpt = {
- type: 'select',
- $fromToolbox: true,
- // Id for merge mapping.
- id: DATA_ZOOM_ID_BASE + axisName + axisIndex
- };
- // FIXME
- // Only support one axis now.
- newOpt[axisIndicesName] = axisIndex;
- dataZoomOpts.push(newOpt);
- });
- }
-
- function forEachComponent(mainType, cb) {
- var opts = option[mainType];
- if (!zrUtil.isArray(opts)) {
- opts = opts ? [opts] : [];
- }
- each(opts, cb);
- }
- });
-
- module.exports = DataZoom;
-
-
-/***/ },
-/* 340 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file History manager.
- */
-
-
- var zrUtil = __webpack_require__(3);
- var each = zrUtil.each;
-
- var ATTR = '\0_ec_hist_store';
-
- var history = {
-
- /**
- * @public
- * @param {module:echarts/model/Global} ecModel
- * @param {Object} newSnapshot {dataZoomId, batch: [payloadInfo, ...]}
- */
- push: function (ecModel, newSnapshot) {
- var store = giveStore(ecModel);
-
- // If previous dataZoom can not be found,
- // complete an range with current range.
- each(newSnapshot, function (batchItem, dataZoomId) {
- var i = store.length - 1;
- for (; i >= 0; i--) {
- var snapshot = store[i];
- if (snapshot[dataZoomId]) {
- break;
- }
- }
- if (i < 0) {
- // No origin range set, create one by current range.
- var dataZoomModel = ecModel.queryComponents(
- {mainType: 'dataZoom', subType: 'select', id: dataZoomId}
- )[0];
- if (dataZoomModel) {
- var percentRange = dataZoomModel.getPercentRange();
- store[0][dataZoomId] = {
- dataZoomId: dataZoomId,
- start: percentRange[0],
- end: percentRange[1]
- };
- }
- }
- });
-
- store.push(newSnapshot);
- },
-
- /**
- * @public
- * @param {module:echarts/model/Global} ecModel
- * @return {Object} snapshot
- */
- pop: function (ecModel) {
- var store = giveStore(ecModel);
- var head = store[store.length - 1];
- store.length > 1 && store.pop();
-
- // Find top for all dataZoom.
- var snapshot = {};
- each(head, function (batchItem, dataZoomId) {
- for (var i = store.length - 1; i >= 0; i--) {
- var batchItem = store[i][dataZoomId];
- if (batchItem) {
- snapshot[dataZoomId] = batchItem;
- break;
- }
- }
- });
-
- return snapshot;
- },
-
- /**
- * @public
- */
- clear: function (ecModel) {
- ecModel[ATTR] = null;
- },
-
- /**
- * @public
- * @param {module:echarts/model/Global} ecModel
- * @return {number} records. always >= 1.
- */
- count: function (ecModel) {
- return giveStore(ecModel).length;
- }
-
- };
-
- /**
- * [{key: dataZoomId, value: {dataZoomId, range}}, ...]
- * History length of each dataZoom may be different.
- * this._history[0] is used to store origin range.
- * @type {Array.<Object>}
- */
- function giveStore(ecModel) {
- var store = ecModel[ATTR];
- if (!store) {
- store = ecModel[ATTR] = [{}];
- }
- return store;
- }
-
- module.exports = history;
-
-
-
-/***/ },
-/* 341 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * DataZoom component entry
- */
-
-
- __webpack_require__(287);
-
- __webpack_require__(288);
- __webpack_require__(290);
-
- __webpack_require__(342);
- __webpack_require__(343);
-
- __webpack_require__(298);
- __webpack_require__(299);
-
-
-
-/***/ },
-/* 342 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * @file Data zoom model
- */
-
-
- var DataZoomModel = __webpack_require__(288);
-
- module.exports = DataZoomModel.extend({
-
- type: 'dataZoom.select'
-
- });
-
-
-
-/***/ },
-/* 343 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- module.exports = __webpack_require__(290).extend({
-
- type: 'dataZoom.select'
-
- });
-
-
-
-/***/ },
-/* 344 */
-/***/ function(module, exports, __webpack_require__) {
-
- 'use strict';
-
-
- var history = __webpack_require__(340);
-
- function Restore(model) {
- this.model = model;
- }
-
- Restore.defaultOption = {
- show: true,
- icon: 'M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5',
- title: '还原'
- };
-
- var proto = Restore.prototype;
-
- proto.onclick = function (ecModel, api, type) {
- history.clear(ecModel);
-
- api.dispatchAction({
- type: 'restore',
- from: this.uid
- });
- };
-
-
- __webpack_require__(333).register('restore', Restore);
-
-
- __webpack_require__(1).registerAction(
- {type: 'restore', event: 'restore', update: 'prepareAndUpdate'},
- function (payload, ecModel) {
- ecModel.resetOption('recreate');
- }
- );
-
- module.exports = Restore;
-
-
-/***/ },
-/* 345 */
-/***/ function(module, exports, __webpack_require__) {
-
-
- __webpack_require__(346);
- __webpack_require__(77).registerPainter('vml', __webpack_require__(348));
-
-
-/***/ },
-/* 346 */
-/***/ function(module, exports, __webpack_require__) {
-
- // http://www.w3.org/TR/NOTE-VML
- // TODO Use proxy like svg instead of overwrite brush methods
-
-
- if (!__webpack_require__(78).canvasSupported) {
- var vec2 = __webpack_require__(16);
- var BoundingRect = __webpack_require__(15);
- var CMD = __webpack_require__(48).CMD;
- var colorTool = __webpack_require__(38);
- var textContain = __webpack_require__(14);
- var RectText = __webpack_require__(47);
- var Displayable = __webpack_require__(45);
- var ZImage = __webpack_require__(59);
- var Text = __webpack_require__(62);
- var Path = __webpack_require__(44);
-
- var Gradient = __webpack_require__(4);
-
- var vmlCore = __webpack_require__(347);
-
- var round = Math.round;
- var sqrt = Math.sqrt;
- var abs = Math.abs;
- var cos = Math.cos;
- var sin = Math.sin;
- var mathMax = Math.max;
-
- var applyTransform = vec2.applyTransform;
-
- var comma = ',';
- var imageTransformPrefix = 'progid:DXImageTransform.Microsoft';
-
- var Z = 21600;
- var Z2 = Z / 2;
-
- var ZLEVEL_BASE = 100000;
- var Z_BASE = 1000;
-
- var initRootElStyle = function (el) {
- el.style.cssText = 'position:absolute;left:0;top:0;width:1px;height:1px;';
- el.coordsize = Z + ',' + Z;
- el.coordorigin = '0,0';
- };
-
- var encodeHtmlAttribute = function (s) {
- return String(s).replace(/&/g, '&amp;').replace(/"/g, '&quot;');
- };
-
- var rgb2Str = function (r, g, b) {
- return 'rgb(' + [r, g, b].join(',') + ')';
- };
-
- var append = function (parent, child) {
- if (child && parent && child.parentNode !== parent) {
- parent.appendChild(child);
- }
- };
-
- var remove = function (parent, child) {
- if (child && parent && child.parentNode === parent) {
- parent.removeChild(child);
- }
- };
-
- var getZIndex = function (zlevel, z, z2) {
- // z 的取值范围为 [0, 1000]
- return (parseFloat(zlevel) || 0) * ZLEVEL_BASE + (parseFloat(z) || 0) * Z_BASE + z2;
- };
-
- var parsePercent = function (value, maxValue) {
- if (typeof value === 'string') {
- if (value.lastIndexOf('%') >= 0) {
- return parseFloat(value) / 100 * maxValue;
- }
- return parseFloat(value);
- }
- return value;
- };
-
- /***************************************************
- * PATH
- **************************************************/
-
- var setColorAndOpacity = function (el, color, opacity) {
- var colorArr = colorTool.parse(color);
- opacity = +opacity;
- if (isNaN(opacity)) {
- opacity = 1;
- }
- if (colorArr) {
- el.color = rgb2Str(colorArr[0], colorArr[1], colorArr[2]);
- el.opacity = opacity * colorArr[3];
- }
- };
-
- var getColorAndAlpha = function (color) {
- var colorArr = colorTool.parse(color);
- return [
- rgb2Str(colorArr[0], colorArr[1], colorArr[2]),
- colorArr[3]
- ];
- };
-
- var updateFillNode = function (el, style, zrEl) {
- // TODO pattern
- var fill = style.fill;
- if (fill != null) {
- // Modified from excanvas
- if (fill instanceof Gradient) {
- var gradientType;
- var angle = 0;
- var focus = [0, 0];
- // additional offset
- var shift = 0;
- // scale factor for offset
- var expansion = 1;
- var rect = zrEl.getBoundingRect();
- var rectWidth = rect.width;
- var rectHeight = rect.height;
- if (fill.type === 'linear') {
- gradientType = 'gradient';
- var transform = zrEl.transform;
- var p0 = [fill.x * rectWidth, fill.y * rectHeight];
- var p1 = [fill.x2 * rectWidth, fill.y2 * rectHeight];
- if (transform) {
- applyTransform(p0, p0, transform);
- applyTransform(p1, p1, transform);
- }
- var dx = p1[0] - p0[0];
- var dy = p1[1] - p0[1];
- angle = Math.atan2(dx, dy) * 180 / Math.PI;
- // The angle should be a non-negative number.
- if (angle < 0) {
- angle += 360;
- }
-
- // Very small angles produce an unexpected result because they are
- // converted to a scientific notation string.
- if (angle < 1e-6) {
- angle = 0;
- }
- }
- else {
- gradientType = 'gradientradial';
- var p0 = [fill.x * rectWidth, fill.y * rectHeight];
- var transform = zrEl.transform;
- var scale = zrEl.scale;
- var width = rectWidth;
- var height = rectHeight;
- focus = [
- // Percent in bounding rect
- (p0[0] - rect.x) / width,
- (p0[1] - rect.y) / height
- ];
- if (transform) {
- applyTransform(p0, p0, transform);
- }
-
- width /= scale[0] * Z;
- height /= scale[1] * Z;
- var dimension = mathMax(width, height);
- shift = 2 * 0 / dimension;
- expansion = 2 * fill.r / dimension - shift;
- }
-
- // We need to sort the color stops in ascending order by offset,
- // otherwise IE won't interpret it correctly.
- var stops = fill.colorStops.slice();
- stops.sort(function(cs1, cs2) {
- return cs1.offset - cs2.offset;
- });
-
- var length = stops.length;
- // Color and alpha list of first and last stop
- var colorAndAlphaList = [];
- var colors = [];
- for (var i = 0; i < length; i++) {
- var stop = stops[i];
- var colorAndAlpha = getColorAndAlpha(stop.color);
- colors.push(stop.offset * expansion + shift + ' ' + colorAndAlpha[0]);
- if (i === 0 || i === length - 1) {
- colorAndAlphaList.push(colorAndAlpha);
- }
- }
-
- if (length >= 2) {
- var color1 = colorAndAlphaList[0][0];
- var color2 = colorAndAlphaList[1][0];
- var opacity1 = colorAndAlphaList[0][1] * style.opacity;
- var opacity2 = colorAndAlphaList[1][1] * style.opacity;
-
- el.type = gradientType;
- el.method = 'none';
- el.focus = '100%';
- el.angle = angle;
- el.color = color1;
- el.color2 = color2;
- el.colors = colors.join(',');
- // When colors attribute is used, the meanings of opacity and o:opacity2
- // are reversed.
- el.opacity = opacity2;
- // FIXME g_o_:opacity ?
- el.opacity2 = opacity1;
- }
- if (gradientType === 'radial') {
- el.focusposition = focus.join(',');
- }
- }
- else {
- // FIXME Change from Gradient fill to color fill
- setColorAndOpacity(el, fill, style.opacity);
- }
- }
- };
-
- var updateStrokeNode = function (el, style) {
- if (style.lineJoin != null) {
- el.joinstyle = style.lineJoin;
- }
- if (style.miterLimit != null) {
- el.miterlimit = style.miterLimit * Z;
- }
- if (style.lineCap != null) {
- el.endcap = style.lineCap;
- }
- if (style.lineDash != null) {
- el.dashstyle = style.lineDash.join(' ');
- }
- if (style.stroke != null && !(style.stroke instanceof Gradient)) {
- setColorAndOpacity(el, style.stroke, style.opacity);
- }
- };
-
- var updateFillAndStroke = function (vmlEl, type, style, zrEl) {
- var isFill = type == 'fill';
- var el = vmlEl.getElementsByTagName(type)[0];
- // Stroke must have lineWidth
- if (style[type] != null && style[type] !== 'none' && (isFill || (!isFill && style.lineWidth))) {
- vmlEl[isFill ? 'filled' : 'stroked'] = 'true';
- // FIXME Remove before updating, or set `colors` will throw error
- if (style[type] instanceof Gradient) {
- remove(vmlEl, el);
- }
- if (!el) {
- el = vmlCore.createNode(type);
- }
-
- isFill ? updateFillNode(el, style, zrEl) : updateStrokeNode(el, style);
- append(vmlEl, el);
- }
- else {
- vmlEl[isFill ? 'filled' : 'stroked'] = 'false';
- remove(vmlEl, el);
- }
- };
-
- var points = [[], [], []];
- var pathDataToString = function (data, m) {
- var M = CMD.M;
- var C = CMD.C;
- var L = CMD.L;
- var A = CMD.A;
- var Q = CMD.Q;
-
- var str = [];
- var nPoint;
- var cmdStr;
- var cmd;
- var i;
- var xi;
- var yi;
- for (i = 0; i < data.length;) {
- cmd = data[i++];
- cmdStr = '';
- nPoint = 0;
- switch (cmd) {
- case M:
- cmdStr = ' m ';
- nPoint = 1;
- xi = data[i++];
- yi = data[i++];
- points[0][0] = xi;
- points[0][1] = yi;
- break;
- case L:
- cmdStr = ' l ';
- nPoint = 1;
- xi = data[i++];
- yi = data[i++];
- points[0][0] = xi;
- points[0][1] = yi;
- break;
- case Q:
- case C:
- cmdStr = ' c ';
- nPoint = 3;
- var x1 = data[i++];
- var y1 = data[i++];
- var x2 = data[i++];
- var y2 = data[i++];
- var x3;
- var y3;
- if (cmd === Q) {
- // Convert quadratic to cubic using degree elevation
- x3 = x2;
- y3 = y2;
- x2 = (x2 + 2 * x1) / 3;
- y2 = (y2 + 2 * y1) / 3;
- x1 = (xi + 2 * x1) / 3;
- y1 = (yi + 2 * y1) / 3;
- }
- else {
- x3 = data[i++];
- y3 = data[i++];
- }
- points[0][0] = x1;
- points[0][1] = y1;
- points[1][0] = x2;
- points[1][1] = y2;
- points[2][0] = x3;
- points[2][1] = y3;
-
- xi = x3;
- yi = y3;
- break;
- case A:
- var x = 0;
- var y = 0;
- var sx = 1;
- var sy = 1;
- var angle = 0;
- if (m) {
- // Extract SRT from matrix
- x = m[4];
- y = m[5];
- sx = sqrt(m[0] * m[0] + m[1] * m[1]);
- sy = sqrt(m[2] * m[2] + m[3] * m[3]);
- angle = Math.atan2(-m[1] / sy, m[0] / sx);
- }
-
- var cx = data[i++];
- var cy = data[i++];
- var rx = data[i++];
- var ry = data[i++];
- var startAngle = data[i++] + angle;
- var endAngle = data[i++] + startAngle + angle;
- // FIXME
- // var psi = data[i++];
- i++;
- var clockwise = data[i++];
-
- var x0 = cx + cos(startAngle) * rx;
- var y0 = cy + sin(startAngle) * ry;
-
- var x1 = cx + cos(endAngle) * rx;
- var y1 = cy + sin(endAngle) * ry;
-
- var type = clockwise ? ' wa ' : ' at ';
-
- str.push(
- type,
- round(((cx - rx) * sx + x) * Z - Z2), comma,
- round(((cy - ry) * sy + y) * Z - Z2), comma,
- round(((cx + rx) * sx + x) * Z - Z2), comma,
- round(((cy + ry) * sy + y) * Z - Z2), comma,
- round((x0 * sx + x) * Z - Z2), comma,
- round((y0 * sy + y) * Z - Z2), comma,
- round((x1 * sx + x) * Z - Z2), comma,
- round((y1 * sy + y) * Z - Z2)
- );
-
- xi = x1;
- yi = y1;
- break;
- case CMD.R:
- var p0 = points[0];
- var p1 = points[1];
- // x0, y0
- p0[0] = data[i++];
- p0[1] = data[i++];
- // x1, y1
- p1[0] = p0[0] + data[i++];
- p1[1] = p0[1] + data[i++];
-
- if (m) {
- applyTransform(p0, p0, m);
- applyTransform(p1, p1, m);
- }
-
- p0[0] = round(p0[0] * Z - Z2);
- p1[0] = round(p1[0] * Z - Z2);
- p0[1] = round(p0[1] * Z - Z2);
- p1[1] = round(p1[1] * Z - Z2);
- str.push(
- // x0, y0
- ' m ', p0[0], comma, p0[1],
- // x1, y0
- ' l ', p1[0], comma, p0[1],
- // x1, y1
- ' l ', p1[0], comma, p1[1],
- // x0, y1
- ' l ', p0[0], comma, p1[1]
- );
- break;
- case CMD.Z:
- // FIXME Update xi, yi
- str.push(' x ');
- }
-
- if (nPoint > 0) {
- str.push(cmdStr);
- for (var k = 0; k < nPoint; k++) {
- var p = points[k];
-
- m && applyTransform(p, p, m);
- // 不 round 会非常慢
- str.push(
- round(p[0] * Z - Z2), comma, round(p[1] * Z - Z2),
- k < nPoint - 1 ? comma : ''
- );
- }
- }
- }
- return str.join('');
- };
-
- // Rewrite the original path method
- Path.prototype.brushVML = function (vmlRoot) {
- var style = this.style;
-
- var vmlEl = this._vmlEl;
- if (!vmlEl) {
- vmlEl = vmlCore.createNode('shape');
- initRootElStyle(vmlEl);
-
- this._vmlEl = vmlEl;
- }
-
- updateFillAndStroke(vmlEl, 'fill', style, this);
- updateFillAndStroke(vmlEl, 'stroke', style, this);
-
- var m = this.transform;
- var needTransform = m != null;
- var strokeEl = vmlEl.getElementsByTagName('stroke')[0];
- if (strokeEl) {
- var lineWidth = style.lineWidth;
- // Get the line scale.
- // Determinant of this.m_ means how much the area is enlarged by the
- // transformation. So its square root can be used as a scale factor
- // for width.
- if (needTransform && !style.strokeNoScale) {
- var det = m[0] * m[3] - m[1] * m[2];
- lineWidth *= sqrt(abs(det));
- }
- strokeEl.weight = lineWidth + 'px';
- }
-
- var path = this.path;
- if (this.__dirtyPath) {
- path.beginPath();
- this.buildPath(path, this.shape);
- this.__dirtyPath = false;
- }
-
- vmlEl.path = pathDataToString(path.data, this.transform);
-
- vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
-
- // Append to root
- append(vmlRoot, vmlEl);
-
- // Text
- if (style.text) {
- this.drawRectText(vmlRoot, this.getBoundingRect());
- }
- };
-
- Path.prototype.onRemove = function (vmlRoot) {
- remove(vmlRoot, this._vmlEl);
- this.removeRectText(vmlRoot);
- };
-
- Path.prototype.onAdd = function (vmlRoot) {
- append(vmlRoot, this._vmlEl);
- this.appendRectText(vmlRoot);
- };
-
- /***************************************************
- * IMAGE
- **************************************************/
- var isImage = function (img) {
- // FIXME img instanceof Image 如果 img 是一个字符串的时候,IE8 下会报错
- return (typeof img === 'object') && img.tagName && img.tagName.toUpperCase() === 'IMG';
- // return img instanceof Image;
- };
-
- // Rewrite the original path method
- ZImage.prototype.brushVML = function (vmlRoot) {
- var style = this.style;
- var image = style.image;
-
- // Image original width, height
- var ow;
- var oh;
-
- if (isImage(image)) {
- var src = image.src;
- if (src === this._imageSrc) {
- ow = this._imageWidth;
- oh = this._imageHeight;
- }
- else {
- var imageRuntimeStyle = image.runtimeStyle;
- var oldRuntimeWidth = imageRuntimeStyle.width;
- var oldRuntimeHeight = imageRuntimeStyle.height;
- imageRuntimeStyle.width = 'auto';
- imageRuntimeStyle.height = 'auto';
-
- // get the original size
- ow = image.width;
- oh = image.height;
-
- // and remove overides
- imageRuntimeStyle.width = oldRuntimeWidth;
- imageRuntimeStyle.height = oldRuntimeHeight;
-
- // Caching image original width, height and src
- this._imageSrc = src;
- this._imageWidth = ow;
- this._imageHeight = oh;
- }
- image = src;
- }
- else {
- if (image === this._imageSrc) {
- ow = this._imageWidth;
- oh = this._imageHeight;
- }
- }
- if (!image) {
- return;
- }
-
- var x = style.x || 0;
- var y = style.y || 0;
-
- var dw = style.width;
- var dh = style.height;
-
- var sw = style.sWidth;
- var sh = style.sHeight;
- var sx = style.sx || 0;
- var sy = style.sy || 0;
-
- var hasCrop = sw && sh;
-
- var vmlEl = this._vmlEl;
- if (!vmlEl) {
- // FIXME 使用 group 在 left, top 都不是 0 的时候就无法显示了。
- // vmlEl = vmlCore.createNode('group');
- vmlEl = vmlCore.doc.createElement('div');
- initRootElStyle(vmlEl);
-
- this._vmlEl = vmlEl;
- }
-
- var vmlElStyle = vmlEl.style;
- var hasRotation = false;
- var m;
- var scaleX = 1;
- var scaleY = 1;
- if (this.transform) {
- m = this.transform;
- scaleX = sqrt(m[0] * m[0] + m[1] * m[1]);
- scaleY = sqrt(m[2] * m[2] + m[3] * m[3]);
-
- hasRotation = m[1] || m[2];
- }
- if (hasRotation) {
- // If filters are necessary (rotation exists), create them
- // filters are bog-slow, so only create them if abbsolutely necessary
- // The following check doesn't account for skews (which don't exist
- // in the canvas spec (yet) anyway.
- // From excanvas
- var p0 = [x, y];
- var p1 = [x + dw, y];
- var p2 = [x, y + dh];
- var p3 = [x + dw, y + dh];
- applyTransform(p0, p0, m);
- applyTransform(p1, p1, m);
- applyTransform(p2, p2, m);
- applyTransform(p3, p3, m);
-
- var maxX = mathMax(p0[0], p1[0], p2[0], p3[0]);
- var maxY = mathMax(p0[1], p1[1], p2[1], p3[1]);
-
- var transformFilter = [];
- transformFilter.push('M11=', m[0] / scaleX, comma,
- 'M12=', m[2] / scaleY, comma,
- 'M21=', m[1] / scaleX, comma,
- 'M22=', m[3] / scaleY, comma,
- 'Dx=', round(x * scaleX + m[4]), comma,
- 'Dy=', round(y * scaleY + m[5]));
-
- vmlElStyle.padding = '0 ' + round(maxX) + 'px ' + round(maxY) + 'px 0';
- // FIXME DXImageTransform 在 IE11 的兼容模式下不起作用
- vmlElStyle.filter = imageTransformPrefix + '.Matrix('
- + transformFilter.join('') + ', SizingMethod=clip)';
-
- }
- else {
- if (m) {
- x = x * scaleX + m[4];
- y = y * scaleY + m[5];
- }
- vmlElStyle.filter = '';
- vmlElStyle.left = round(x) + 'px';
- vmlElStyle.top = round(y) + 'px';
- }
-
- var imageEl = this._imageEl;
- var cropEl = this._cropEl;
-
- if (! imageEl) {
- imageEl = vmlCore.doc.createElement('div');
- this._imageEl = imageEl;
- }
- var imageELStyle = imageEl.style;
- if (hasCrop) {
- // Needs know image original width and height
- if (! (ow && oh)) {
- var tmpImage = new Image();
- var self = this;
- tmpImage.onload = function () {
- tmpImage.onload = null;
- ow = tmpImage.width;
- oh = tmpImage.height;
- // Adjust image width and height to fit the ratio destinationSize / sourceSize
- imageELStyle.width = round(scaleX * ow * dw / sw) + 'px';
- imageELStyle.height = round(scaleY * oh * dh / sh) + 'px';
-
- // Caching image original width, height and src
- self._imageWidth = ow;
- self._imageHeight = oh;
- self._imageSrc = image;
- };
- tmpImage.src = image;
- }
- else {
- imageELStyle.width = round(scaleX * ow * dw / sw) + 'px';
- imageELStyle.height = round(scaleY * oh * dh / sh) + 'px';
- }
-
- if (! cropEl) {
- cropEl = vmlCore.doc.createElement('div');
- cropEl.style.overflow = 'hidden';
- this._cropEl = cropEl;
- }
- var cropElStyle = cropEl.style;
- cropElStyle.width = round((dw + sx * dw / sw) * scaleX);
- cropElStyle.height = round((dh + sy * dh / sh) * scaleY);
- cropElStyle.filter = imageTransformPrefix + '.Matrix(Dx='
- + (-sx * dw / sw * scaleX) + ',Dy=' + (-sy * dh / sh * scaleY) + ')';
-
- if (! cropEl.parentNode) {
- vmlEl.appendChild(cropEl);
- }
- if (imageEl.parentNode != cropEl) {
- cropEl.appendChild(imageEl);
- }
- }
- else {
- imageELStyle.width = round(scaleX * dw) + 'px';
- imageELStyle.height = round(scaleY * dh) + 'px';
-
- vmlEl.appendChild(imageEl);
-
- if (cropEl && cropEl.parentNode) {
- vmlEl.removeChild(cropEl);
- this._cropEl = null;
- }
- }
-
- var filterStr = '';
- var alpha = style.opacity;
- if (alpha < 1) {
- filterStr += '.Alpha(opacity=' + round(alpha * 100) + ') ';
- }
- filterStr += imageTransformPrefix + '.AlphaImageLoader(src=' + image + ', SizingMethod=scale)';
-
- imageELStyle.filter = filterStr;
-
- vmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
-
- // Append to root
- append(vmlRoot, vmlEl);
-
- // Text
- if (style.text) {
- this.drawRectText(vmlRoot, this.getBoundingRect());
- }
- };
-
- ZImage.prototype.onRemove = function (vmlRoot) {
- remove(vmlRoot, this._vmlEl);
-
- this._vmlEl = null;
- this._cropEl = null;
- this._imageEl = null;
-
- this.removeRectText(vmlRoot);
- };
-
- ZImage.prototype.onAdd = function (vmlRoot) {
- append(vmlRoot, this._vmlEl);
- this.appendRectText(vmlRoot);
- };
-
-
- /***************************************************
- * TEXT
- **************************************************/
-
- var DEFAULT_STYLE_NORMAL = 'normal';
-
- var fontStyleCache = {};
- var fontStyleCacheCount = 0;
- var MAX_FONT_CACHE_SIZE = 100;
- var fontEl = document.createElement('div');
-
- var getFontStyle = function (fontString) {
- var fontStyle = fontStyleCache[fontString];
- if (!fontStyle) {
- // Clear cache
- if (fontStyleCacheCount > MAX_FONT_CACHE_SIZE) {
- fontStyleCacheCount = 0;
- fontStyleCache = {};
- }
-
- var style = fontEl.style;
- var fontFamily;
- try {
- style.font = fontString;
- fontFamily = style.fontFamily.split(',')[0];
- }
- catch (e) {
- }
-
- fontStyle = {
- style: style.fontStyle || DEFAULT_STYLE_NORMAL,
- variant: style.fontVariant || DEFAULT_STYLE_NORMAL,
- weight: style.fontWeight || DEFAULT_STYLE_NORMAL,
- size: parseFloat(style.fontSize || 12) | 0,
- family: fontFamily || 'Microsoft YaHei'
- };
-
- fontStyleCache[fontString] = fontStyle;
- fontStyleCacheCount++;
- }
- return fontStyle;
- };
-
- var textMeasureEl;
- // Overwrite measure text method
- textContain.measureText = function (text, textFont) {
- var doc = vmlCore.doc;
- if (!textMeasureEl) {
- textMeasureEl = doc.createElement('div');
- textMeasureEl.style.cssText = 'position:absolute;top:-20000px;left:0;'
- + 'padding:0;margin:0;border:none;white-space:pre;';
- vmlCore.doc.body.appendChild(textMeasureEl);
- }
-
- try {
- textMeasureEl.style.font = textFont;
- } catch (ex) {
- // Ignore failures to set to invalid font.
- }
- textMeasureEl.innerHTML = '';
- // Don't use innerHTML or innerText because they allow markup/whitespace.
- textMeasureEl.appendChild(doc.createTextNode(text));
- return {
- width: textMeasureEl.offsetWidth
- };
- };
-
- var tmpRect = new BoundingRect();
-
- var drawRectText = function (vmlRoot, rect, textRect, fromTextEl) {
-
- var style = this.style;
- var text = style.text;
- if (!text) {
- return;
- }
-
- var x;
- var y;
- var align = style.textAlign;
- var fontStyle = getFontStyle(style.textFont);
- // FIXME encodeHtmlAttribute ?
- var font = fontStyle.style + ' ' + fontStyle.variant + ' ' + fontStyle.weight + ' '
- + fontStyle.size + 'px "' + fontStyle.family + '"';
- var baseline = style.textBaseline;
- var verticalAlign = style.textVerticalAlign;
-
- textRect = textRect || textContain.getBoundingRect(text, font, align, baseline);
-
- // Transform rect to view space
- var m = this.transform;
- // Ignore transform for text in other element
- if (m && !fromTextEl) {
- tmpRect.copy(rect);
- tmpRect.applyTransform(m);
- rect = tmpRect;
- }
-
- if (!fromTextEl) {
- var textPosition = style.textPosition;
- var distance = style.textDistance;
- // Text position represented by coord
- if (textPosition instanceof Array) {
- x = rect.x + parsePercent(textPosition[0], rect.width);
- y = rect.y + parsePercent(textPosition[1], rect.height);
-
- align = align || 'left';
- baseline = baseline || 'top';
- }
- else {
- var res = textContain.adjustTextPositionOnRect(
- textPosition, rect, textRect, distance
- );
- x = res.x;
- y = res.y;
-
- // Default align and baseline when has textPosition
- align = align || res.textAlign;
- baseline = baseline || res.textBaseline;
- }
- }
- else {
- x = rect.x;
- y = rect.y;
- }
- if (verticalAlign) {
- switch (verticalAlign) {
- case 'middle':
- y -= textRect.height / 2;
- break;
- case 'bottom':
- y -= textRect.height;
- break;
- // 'top'
- }
- // Ignore baseline
- baseline = 'top';
- }
-
- var fontSize = fontStyle.size;
- // 1.75 is an arbitrary number, as there is no info about the text baseline
- switch (baseline) {
- case 'hanging':
- case 'top':
- y += fontSize / 1.75;
- break;
- case 'middle':
- break;
- default:
- // case null:
- // case 'alphabetic':
- // case 'ideographic':
- // case 'bottom':
- y -= fontSize / 2.25;
- break;
- }
- switch (align) {
- case 'left':
- break;
- case 'center':
- x -= textRect.width / 2;
- break;
- case 'right':
- x -= textRect.width;
- break;
- // case 'end':
- // align = elementStyle.direction == 'ltr' ? 'right' : 'left';
- // break;
- // case 'start':
- // align = elementStyle.direction == 'rtl' ? 'right' : 'left';
- // break;
- // default:
- // align = 'left';
- }
-
- var createNode = vmlCore.createNode;
-
- var textVmlEl = this._textVmlEl;
- var pathEl;
- var textPathEl;
- var skewEl;
- if (!textVmlEl) {
- textVmlEl = createNode('line');
- pathEl = createNode('path');
- textPathEl = createNode('textpath');
- skewEl = createNode('skew');
-
- // FIXME Why here is not cammel case
- // Align 'center' seems wrong
- textPathEl.style['v-text-align'] = 'left';
-
- initRootElStyle(textVmlEl);
-
- pathEl.textpathok = true;
- textPathEl.on = true;
-
- textVmlEl.from = '0 0';
- textVmlEl.to = '1000 0.05';
-
- append(textVmlEl, skewEl);
- append(textVmlEl, pathEl);
- append(textVmlEl, textPathEl);
-
- this._textVmlEl = textVmlEl;
- }
- else {
- // 这里是在前面 appendChild 保证顺序的前提下
- skewEl = textVmlEl.firstChild;
- pathEl = skewEl.nextSibling;
- textPathEl = pathEl.nextSibling;
- }
-
- var coords = [x, y];
- var textVmlElStyle = textVmlEl.style;
- // Ignore transform for text in other element
- if (m && fromTextEl) {
- applyTransform(coords, coords, m);
-
- skewEl.on = true;
-
- skewEl.matrix = m[0].toFixed(3) + comma + m[2].toFixed(3) + comma +
- m[1].toFixed(3) + comma + m[3].toFixed(3) + ',0,0';
-
- // Text position
- skewEl.offset = (round(coords[0]) || 0) + ',' + (round(coords[1]) || 0);
- // Left top point as origin
- skewEl.origin = '0 0';
-
- textVmlElStyle.left = '0px';
- textVmlElStyle.top = '0px';
- }
- else {
- skewEl.on = false;
- textVmlElStyle.left = round(x) + 'px';
- textVmlElStyle.top = round(y) + 'px';
- }
-
- textPathEl.string = encodeHtmlAttribute(text);
- // TODO
- try {
- textPathEl.style.font = font;
- }
- // Error font format
- catch (e) {}
-
- updateFillAndStroke(textVmlEl, 'fill', {
- fill: fromTextEl ? style.fill : style.textFill,
- opacity: style.opacity
- }, this);
- updateFillAndStroke(textVmlEl, 'stroke', {
- stroke: fromTextEl ? style.stroke : style.textStroke,
- opacity: style.opacity,
- lineDash: style.lineDash
- }, this);
-
- textVmlEl.style.zIndex = getZIndex(this.zlevel, this.z, this.z2);
-
- // Attached to root
- append(vmlRoot, textVmlEl);
- };
-
- var removeRectText = function (vmlRoot) {
- remove(vmlRoot, this._textVmlEl);
- this._textVmlEl = null;
- };
-
- var appendRectText = function (vmlRoot) {
- append(vmlRoot, this._textVmlEl);
- };
-
- var list = [RectText, Displayable, ZImage, Path, Text];
-
- // In case Displayable has been mixed in RectText
- for (var i = 0; i < list.length; i++) {
- var proto = list[i].prototype;
- proto.drawRectText = drawRectText;
- proto.removeRectText = removeRectText;
- proto.appendRectText = appendRectText;
- }
-
- Text.prototype.brushVML = function (root) {
- var style = this.style;
- if (style.text) {
- this.drawRectText(root, {
- x: style.x || 0, y: style.y || 0,
- width: 0, height: 0
- }, this.getBoundingRect(), true);
- }
- };
-
- Text.prototype.onRemove = function (vmlRoot) {
- this.removeRectText(vmlRoot);
- };
-
- Text.prototype.onAdd = function (vmlRoot) {
- this.appendRectText(vmlRoot);
- };
- }
-
-
-/***/ },
-/* 347 */
-/***/ function(module, exports, __webpack_require__) {
-
-
-
- if (!__webpack_require__(78).canvasSupported) {
- var urn = 'urn:schemas-microsoft-com:vml';
-
- var createNode;
- var win = window;
- var doc = win.document;
-
- var vmlInited = false;
-
- try {
- !doc.namespaces.zrvml && doc.namespaces.add('zrvml', urn);
- createNode = function (tagName) {
- return doc.createElement('<zrvml:' + tagName + ' class="zrvml">');
- };
- }
- catch (e) {
- createNode = function (tagName) {
- return doc.createElement('<' + tagName + ' xmlns="' + urn + '" class="zrvml">');
- };
- }
-
- // From raphael
- var initVML = function () {
- if (vmlInited) {
- return;
- }
- vmlInited = true;
-
- var styleSheets = doc.styleSheets;
- if (styleSheets.length < 31) {
- doc.createStyleSheet().addRule('.zrvml', 'behavior:url(#default#VML)');
- }
- else {
- // http://msdn.microsoft.com/en-us/library/ms531194%28VS.85%29.aspx
- styleSheets[0].addRule('.zrvml', 'behavior:url(#default#VML)');
- }
- };
-
- // Not useing return to avoid error when converting to CommonJS module
- module.exports = {
- doc: doc,
- initVML: initVML,
- createNode: createNode
- };
- }
-
-
-/***/ },
-/* 348 */
-/***/ function(module, exports, __webpack_require__) {
-
- /**
- * VML Painter.
- *
- * @module zrender/vml/Painter
- */
-
-
-
- var zrLog = __webpack_require__(39);
- var vmlCore = __webpack_require__(347);
-
- function parseInt10(val) {
- return parseInt(val, 10);
- }
-
- /**
- * @alias module:zrender/vml/Painter
- */
- function VMLPainter(root, storage) {
-
- vmlCore.initVML();
-
- this.root = root;
-
- this.storage = storage;
-
- var vmlViewport = document.createElement('div');
-
- var vmlRoot = document.createElement('div');
-
- vmlViewport.style.cssText = 'display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;';
-
- vmlRoot.style.cssText = 'position:absolute;left:0;top:0;';
-
- root.appendChild(vmlViewport);
-
- this._vmlRoot = vmlRoot;
- this._vmlViewport = vmlViewport;
-
- this.resize();
-
- // Modify storage
- var oldDelFromMap = storage.delFromMap;
- var oldAddToMap = storage.addToMap;
- storage.delFromMap = function (elId) {
- var el = storage.get(elId);
-
- oldDelFromMap.call(storage, elId);
-
- if (el) {
- el.onRemove && el.onRemove(vmlRoot);
- }
- };
-
- storage.addToMap = function (el) {
- // Displayable already has a vml node
- el.onAdd && el.onAdd(vmlRoot);
-
- oldAddToMap.call(storage, el);
- };
-
- this._firstPaint = true;
- }
-
- VMLPainter.prototype = {
-
- constructor: VMLPainter,
-
- /**
- * @return {HTMLDivElement}
- */
- getViewportRoot: function () {
- return this._vmlViewport;
- },
-
- /**
- * 刷新
- */
- refresh: function () {
-
- var list = this.storage.getDisplayList(true, true);
-
- this._paintList(list);
- },
-
- _paintList: function (list) {
- var vmlRoot = this._vmlRoot;
- for (var i = 0; i < list.length; i++) {
- var el = list[i];
- if (el.invisible || el.ignore) {
- if (!el.__alreadyNotVisible) {
- el.onRemove(vmlRoot);
- }
- // Set as already invisible
- el.__alreadyNotVisible = true;
- }
- else {
- if (el.__alreadyNotVisible) {
- el.onAdd(vmlRoot);
- }
- el.__alreadyNotVisible = false;
- if (el.__dirty) {
- el.beforeBrush && el.beforeBrush();
- (el.brushVML || el.brush).call(el, vmlRoot);
- el.afterBrush && el.afterBrush();
- }
- }
- el.__dirty = false;
- }
-
- if (this._firstPaint) {
- // Detached from document at first time
- // to avoid page refreshing too many times
-
- // FIXME 如果每次都先 removeChild 可能会导致一些填充和描边的效果改变
- this._vmlViewport.appendChild(vmlRoot);
- this._firstPaint = false;
- }
- },
-
- resize: function () {
- var width = this._getWidth();
- var height = this._getHeight();
-
- if (this._width != width && this._height != height) {
- this._width = width;
- this._height = height;
-
- var vmlViewportStyle = this._vmlViewport.style;
- vmlViewportStyle.width = width + 'px';
- vmlViewportStyle.height = height + 'px';
- }
- },
-
- dispose: function () {
- this.root.innerHTML = '';
-
- this._vmlRoot =
- this._vmlViewport =
- this.storage = null;
- },
-
- getWidth: function () {
- return this._width;
- },
-
- getHeight: function () {
- return this._height;
- },
-
- _getWidth: function () {
- var root = this.root;
- var stl = root.currentStyle;
-
- return ((root.clientWidth || parseInt10(stl.width))
- - parseInt10(stl.paddingLeft)
- - parseInt10(stl.paddingRight)) | 0;
- },
-
- _getHeight: function () {
- var root = this.root;
- var stl = root.currentStyle;
-
- return ((root.clientHeight || parseInt10(stl.height))
- - parseInt10(stl.paddingTop)
- - parseInt10(stl.paddingBottom)) | 0;
- }
- };
-
- // Not supported methods
- function createMethodNotSupport(method) {
- return function () {
- zrLog('In IE8.0 VML mode painter not support method "' + method + '"');
- };
- }
-
- var notSupportedMethods = [
- 'getLayer', 'insertLayer', 'eachLayer', 'eachBuildinLayer', 'eachOtherLayer', 'getLayers',
- 'modLayer', 'delLayer', 'clearLayer', 'toDataURL', 'pathToImage'
- ];
-
- for (var i = 0; i < notSupportedMethods.length; i++) {
- var name = notSupportedMethods[i];
- VMLPainter.prototype[name] = createMethodNotSupport(name);
- }
-
- module.exports = VMLPainter;
-
-
-/***/ }
-/******/ ])
-});
-; \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.eot b/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.eot
deleted file mode 100644
index eefc29f..0000000
--- a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.svg b/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.svg
deleted file mode 100644
index c6c7d6c..0000000
--- a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.svg
+++ /dev/null
@@ -1,146 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>
-This is a custom SVG webfont generated by Font Squirrel.
-Copyright : Copyright c 2010 by Ryoichi Tsunekawa All rights reserved
-Designer : Ryoichi Tsunekawa
-Foundry : Ryoichi Tsunekawa
-</metadata>
-<defs>
-<font id="BebasNeueRegular" horiz-adv-x="811" >
-<font-face units-per-em="2048" ascent="1638" descent="-410" />
-<missing-glyph horiz-adv-x="317" />
-<glyph unicode=" " horiz-adv-x="317" />
-<glyph unicode="&#x09;" horiz-adv-x="317" />
-<glyph unicode="&#xa0;" horiz-adv-x="317" />
-<glyph unicode="!" horiz-adv-x="389" d="M82 836v598h225v-598l-28 -519h-168zM86 0v217h217v-217h-217z" />
-<glyph unicode="&#x22;" horiz-adv-x="665" d="M82 1434h217l-33 -422h-153zM367 1434h217l-33 -422h-154z" />
-<glyph unicode="#" horiz-adv-x="839" d="M31 410l16 159h100l39 375h-102l16 160h103l35 330h184l-35 -330h133l35 330h184l-34 -330h104l-16 -160h-105l-39 -375h105l-17 -159h-104l-43 -410h-184l43 410h-134l-43 -410h-184l43 410h-100zM332 569h133l39 375h-133z" />
-<glyph unicode="$" d="M70 365v98h213v-113q0 -139 116.5 -139t116.5 139q0 68 -32.5 127.5t-82 99t-105.5 89.5l-106 100q-49 49 -81.5 128t-32.5 175q0 297 237 350v107h185v-107q242 -49 241 -350v-45h-213v59q0 141 -112 141h-1q-112 0 -112 -141q0 -80 45 -146.5t110 -117.5l130 -108 q65 -56 110 -145t45 -201q0 -147 -62.5 -237.5t-180.5 -115.5v-104h-185v104q-244 49 -243 353z" />
-<glyph unicode="%" horiz-adv-x="1284" d="M70 743v471q0 111 55 170.5t161.5 59.5t162 -59.5t55.5 -170.5v-471q0 -111 -55.5 -170t-162 -59t-161.5 59t-55 170zM213 733q0 -90 73.5 -90t73.5 90v492q0 90 -73.5 90t-73.5 -90v-492zM287 0l565 1434h133l-565 -1434h-133zM780 219v471q0 111 55.5 170.5t162 59.5 t161.5 -59.5t55 -170.5v-471q0 -111 -55 -170t-161.5 -59t-162 59t-55.5 170zM924 209q0 -90 73.5 -90t73.5 90v491q0 90 -73.5 90t-73.5 -90v-491z" />
-<glyph unicode="&#x26;" horiz-adv-x="847" d="M84 311v146q0 231 156 301q-156 66 -156 295v26q0 354 336 355h258v-205h-254q-115 0 -115 -139v-89q0 -82 34 -116.5t101 -34.5h99v160h225v-160h59v-205h-59v-471q0 -117 25 -174h-230q-16 45 -20 113q-59 -129 -209 -129q-250 0 -250 327zM309 330q0 -141 117 -142 q111 0 117 125v332h-86q-78 0 -113 -42t-35 -140v-133z" />
-<glyph unicode="'" horiz-adv-x="368" d="M76 1434h217l-33 -422h-154z" />
-<glyph unicode="(" horiz-adv-x="514" d="M96 313v807q0 170 73 242t243 72h69v-185h-55q-55 0 -79.5 -27.5t-24.5 -101.5v-807q0 -74 24.5 -101.5t79.5 -27.5h55v-184h-69q-170 0 -243 71.5t-73 241.5z" />
-<glyph unicode=")" horiz-adv-x="514" d="M33 0v184h55q55 0 80 28t25 101v807q0 74 -25 101.5t-80 27.5h-55v185h69q170 0 243 -72t73 -242v-807q0 -170 -73 -241.5t-243 -71.5h-69z" />
-<glyph unicode="*" d="M4 1075l57 174l306 -153l-54 338h185l-54 -338l306 153l57 -174l-336 -57l240 -240l-148 -108l-157 303l-158 -303l-148 108l240 240z" />
-<glyph unicode="+" d="M51 637v160h275v276h159v-276h275v-160h-275v-281h-159v281h-275z" />
-<glyph unicode="," horiz-adv-x="380" d="M82 0v217h217v-194l-98 -228h-92l59 205h-86z" />
-<glyph unicode="-" horiz-adv-x="552" d="M72 614v205h409v-205h-409z" />
-<glyph unicode="." horiz-adv-x="380" d="M82 0v217h217v-217h-217z" />
-<glyph unicode="/" horiz-adv-x="780" d="M10 0l565 1434h195l-565 -1434h-195z" />
-<glyph unicode="0" d="M63 344v746q0 172 88.5 266t254 94t254 -94t88.5 -266v-746q0 -172 -88.5 -266t-254 -94t-254 94t-88.5 266zM289 330q0 -141 117 -142q116 0 116 142v774q0 141 -116.5 141t-116.5 -141v-774z" />
-<glyph unicode="1" d="M221 1094v159q82 0 134.5 28t71.5 60.5t42 92.5h152v-1434h-226v1094h-174z" />
-<glyph unicode="2" d="M82 0v176q0 117 46 214t111 170l131 144q66 70 112 166t46 211q0 92 -29.5 128t-86.5 36q-117 0 -117 -141v-154h-213v140q0 174 86 267t250 93t250 -93t86 -267q0 -131 -50.5 -247t-120 -198t-137 -153.5t-109.5 -144.5q-33 -57 -33 -111q0 -16 3 -31h426v-205h-651z " />
-<glyph unicode="3" d="M70 344v119h213v-133q0 -141 116 -142q57 0 87 36t30 126v113q0 98 -35 140t-112 42h-76v205h88q68 0 101.5 34.5t33.5 116.5v80q0 92 -29.5 128t-87.5 36q-117 0 -116 -141v-92h-213v78q0 174 86 267t249.5 93t249.5 -93t86 -267v-37q0 -229 -157 -295q158 -70 157 -301 v-113q0 -174 -86 -267t-249.5 -93t-249.5 93t-86 267z" />
-<glyph unicode="4" d="M29 260v205l409 969h246v-969h107v-205h-107v-260h-225v260h-430zM236 465h223v530z" />
-<glyph unicode="5" d="M72 344v119h213v-133q0 -139 117 -140q116 0 116 140v315q0 141 -116.5 141t-116.5 -141v-43h-213l41 832h594v-205h-392l-18 -342q63 104 197 104q250 0 249 -327v-320q0 -174 -86 -267t-249.5 -93t-249.5 93t-86 267z" />
-<glyph unicode="6" d="M68 344v733q0 373 344 373q164 0 250 -93t86 -267v-37h-213v51q0 141 -117 141q-63 0 -94 -39t-31 -137v-262q59 127 209 127q250 0 250 -328v-262q0 -172 -88.5 -266t-254 -94t-253.5 94t-88 266zM293 330q0 -139 117 -140q116 0 116 140v258q0 141 -116.5 141 t-116.5 -141v-258z" />
-<glyph unicode="7" d="M68 1229v205h675v-197l-331 -1237h-226l330 1229h-448z" />
-<glyph unicode="8" d="M53 1044v46q0 172 91.5 266t261 94t261 -94t91.5 -266v-46q0 -211 -140 -288q139 -78 140 -299v-113q0 -172 -91.5 -266t-261 -94t-261 94t-91.5 266v113q0 221 140 299q-139 76 -140 288zM279 350q0 -162 127 -162q125 0 126 162v133q0 162 -126.5 162t-126.5 -162v-133 zM279 1001q0 -152 126 -152l1 1q126 0 126 151v80q0 164 -126.5 164t-126.5 -164v-80z" />
-<glyph unicode="9" d="M59 827v263q0 172 88.5 266t254 94t253.5 -94t88 -266v-734q0 -372 -342 -372h-2q-164 0 -250 93t-86 267v37h213v-51q0 -141 117 -142q63 0 94 39t31 138v262q-59 -127 -209 -127q-250 0 -250 327zM285 846q0 -141 116.5 -141t116.5 141v258q0 139 -116.5 139 t-116.5 -139v-258z" />
-<glyph unicode=":" horiz-adv-x="380" d="M82 0v217h217v-217h-217zM82 780v217h217v-217h-217z" />
-<glyph unicode=";" horiz-adv-x="380" d="M82 0v217h217v-194l-98 -228h-92l59 205h-86zM82 780v217h217v-217h-217z" />
-<glyph unicode="&#x3c;" d="M61 637v160l668 245v-161l-459 -164l459 -164v-162z" />
-<glyph unicode="=" d="M72 471v160h667v-160h-667zM72 803v160h667v-160h-667z" />
-<glyph unicode="&#x3e;" d="M82 391v162l459 164l-459 164v161l668 -245v-160z" />
-<glyph unicode="?" horiz-adv-x="737" d="M41 948v142q0 174 84 267t248 93t248 -93t84 -267q0 -125 -42 -228.5t-91.5 -160t-91.5 -137.5t-42 -167q0 -45 8 -80h-200q-12 37 -13 89q0 104 39 191t84 141.5t84 150.5t39 215q0 141 -112.5 141t-112.5 -141v-156h-213zM236 0v217h217v-217h-217z" />
-<glyph unicode="@" horiz-adv-x="1411" d="M49 594q0 193 48 358.5t139.5 291.5t238 199t330.5 73q303 0 436 -164t133 -439q0 -178 -39 -312t-102.5 -204.5t-127.5 -103.5t-130 -33q-168 0 -180 135q-60 -123 -187 -123h-12q-188 5 -188 239q0 36 4 77l22 207q16 152 80 229q61 74 160 74h10q127 -2 168 -127 l12 119h197l-62 -592q-1 -6 -1 -11q0 -40 42 -41q80 0 122 142.5t42 320.5q0 201 -100 316.5t-307 115.5q-270 0 -412.5 -200.5t-142.5 -556.5q0 -254 119.5 -394.5t357.5 -140.5q244 0 424 139l-17 -196q-172 -115 -419 -115q-334 0 -496 191.5t-162 525.5zM610 598 q-2 -16 -2 -30q0 -101 90 -105h6q43 0 71 29q30 32 38 100l21 194q1 11 1 21q0 42 -20 65q-24 29 -70 29h-6q-45 0 -73 -29q-29 -30 -37 -100z" />
-<glyph unicode="A" horiz-adv-x="833" d="M23 0l229 1434h330l229 -1434h-227l-39 260h-277l-39 -260h-206zM297 455h217l-108 725z" />
-<glyph unicode="B" horiz-adv-x="831" d="M82 0v1434h340q174 0 254 -81t80 -249v-51q0 -221 -146 -289q168 -66 168 -307v-117q0 -166 -87 -253t-255 -87h-354zM307 205h129q59 0 88 31.5t29 109.5v125q0 98 -33.5 136t-111.5 38h-101v-440zM307 850h88q68 0 101.5 35t33.5 116v80q1 148 -114 148h-109v-379z" />
-<glyph unicode="C" horiz-adv-x="790" d="M63 344v746q0 174 86.5 267t250 93t249.5 -93t86 -267v-140h-213v154q0 141 -116.5 141t-116.5 -141v-774q1 -140 117 -140q117 0 116 140v205h213v-191q0 -174 -86 -267t-249.5 -93t-250 93t-86.5 267z" />
-<glyph unicode="D" horiz-adv-x="835" d="M82 0v1434h356q336 0 336 -355v-725q0 -354 -336 -354h-356zM307 205h127q115 0 115 139v746q0 139 -115 139h-127v-1024z" />
-<glyph unicode="E" horiz-adv-x="753" d="M82 0v1434h614v-205h-389v-400h309v-204h-309v-420h389v-205h-614z" />
-<glyph unicode="F" horiz-adv-x="704" d="M82 0v1434h596v-205h-371v-432h291v-205h-291v-592h-225z" />
-<glyph unicode="G" horiz-adv-x="798" d="M63 344v746q0 174 86.5 267t250 93t249.5 -93t86 -267v-140h-213v154q0 141 -116.5 141t-116.5 -141v-774q0 -139 117 -140q116 0 116 140v264h-102v205h315v-455q0 -174 -86 -267t-249.5 -93t-250 93t-86.5 267z" />
-<glyph unicode="H" horiz-adv-x="874" d="M82 0v1434h225v-615h256v615h230v-1434h-230v614h-256v-614h-225z" />
-<glyph unicode="I" horiz-adv-x="389" d="M82 0v1434h225v-1434h-225z" />
-<glyph unicode="J" horiz-adv-x="524" d="M20 0v205q25 -2 78 -2q129 0 129 137v1094h226v-1078q0 -360 -324 -360q-72 0 -109 4z" />
-<glyph unicode="K" horiz-adv-x="847" d="M82 0v1434h225v-625l295 625h225l-313 -639l313 -795h-231l-219 571l-70 -131v-440h-225z" />
-<glyph unicode="L" horiz-adv-x="694" d="M82 0v1434h225v-1229h371v-205h-596z" />
-<glyph unicode="M" horiz-adv-x="1107" d="M80 0v1434h313l166 -1018l154 1018h313v-1434h-213v1028l-156 -1028h-213l-168 1014v-1014h-196z" />
-<glyph unicode="N" horiz-adv-x="874" d="M80 0v1434h282l232 -859v859h201v-1434h-232l-280 1038v-1038h-203z" />
-<glyph unicode="O" d="M63 344v746q0 172 88.5 266t254 94t254 -94t88.5 -266v-746q0 -172 -88.5 -266t-254 -94t-254 94t-88.5 266zM289 330q1 -141 117 -142q117 0 116 142v774q0 141 -116.5 141t-116.5 -141v-774z" />
-<glyph unicode="P" horiz-adv-x="772" d="M82 0v1434h332q336 0 336 -355v-186q0 -354 -336 -354h-107v-539h-225zM307 743h107q55 0 82.5 31t27.5 105v215q0 74 -27.5 104.5t-82.5 30.5h-107v-486z" />
-<glyph unicode="Q" d="M63 1090q0 172 88.5 266t254 94t254 -94t88.5 -266v-746q0 -121 -43 -201q12 -30 60 -30h3h20v-201h-30q-145 0 -195 98q-71 -26 -151 -26h-6q-166 0 -254.5 94t-88.5 266v746zM289 330q0 -141 116 -142h1q116 0 116 142v774q0 141 -116.5 141t-116.5 -141v-774z" />
-<glyph unicode="R" horiz-adv-x="823" d="M82 0v1434h340q174 0 254 -81t80 -249v-113q0 -221 -148 -291q150 -63 150 -305v-221v-9q0 -110 24 -165h-229q-20 61 -21 176v225q0 98 -34.5 140.5t-112.5 42.5h-78v-584h-225zM307 788h88q68 0 101.5 35t33.5 117v141q1 148 -114 148h-109v-441z" />
-<glyph unicode="S" horiz-adv-x="765" d="M47 344v88h213v-102q0 -140 117 -140h1q116 0 116 140q0 80 -46 150t-110 128l-130 120q-66 63 -110.5 156t-44.5 206q0 174 84 267t248 93t248 -93t84 -267v-46h-213v60q0 141 -112.5 141t-112.5 -141q0 -59 24.5 -112.5t63.5 -96.5t86 -85t93 -88t85 -98.5t63.5 -124 t24.5 -155.5q0 -174 -86 -267t-250 -93t-250 93t-86 267z" />
-<glyph unicode="T" horiz-adv-x="729" d="M16 1229v205h697v-205h-236v-1229h-225v1229h-236z" />
-<glyph unicode="U" horiz-adv-x="815" d="M72 342v1092h225v-1106q1 -140 117 -140q117 0 116 140v1106h213v-1092q0 -174 -86 -267t-249.5 -93t-249.5 93t-86 267z" />
-<glyph unicode="V" horiz-adv-x="823" d="M23 1434h227l172 -1170l172 1170h207l-221 -1434h-336z" />
-<glyph unicode="W" horiz-adv-x="1153" d="M31 1434h219l121 -1131l108 1131h217l113 -1139l117 1139h196l-159 -1434h-299l-82 764l-82 -764h-310z" />
-<glyph unicode="X" horiz-adv-x="880" d="M31 0l252 737l-236 697h234l170 -529l174 529h209l-236 -697l252 -737h-238l-184 567l-186 -567h-211z" />
-<glyph unicode="Y" d="M8 1434h236l172 -654l172 654h215l-285 -959v-475h-225v475z" />
-<glyph unicode="Z" horiz-adv-x="757" d="M47 0v201l428 1028h-407v205h639v-201l-428 -1028h428v-205h-660z" />
-<glyph unicode="[" horiz-adv-x="514" d="M96 0v1434h373v-185h-147v-1065h147v-184h-373z" />
-<glyph unicode="\" horiz-adv-x="780" d="M10 1434h195l565 -1434h-195z" />
-<glyph unicode="]" horiz-adv-x="514" d="M45 0v184h148v1065h-148v185h373v-1434h-373z" />
-<glyph unicode="^" d="M41 799l285 635h159l285 -635h-180l-184 430l-185 -430h-180z" />
-<glyph unicode="_" horiz-adv-x="1024" d="M0 -20h1024v-164h-1024v164z" />
-<glyph unicode="`" horiz-adv-x="512" d="M90 1737h232l139 -228h-162z" />
-<glyph unicode="a" horiz-adv-x="833" d="M23 0l229 1434h330l229 -1434h-227l-39 260h-277l-39 -260h-206zM297 455h217l-108 725z" />
-<glyph unicode="b" horiz-adv-x="831" d="M82 0v1434h340q174 0 254 -81t80 -249v-51q0 -221 -146 -289q168 -66 168 -307v-117q0 -166 -87 -253t-255 -87h-354zM307 205h129q59 0 88 31.5t29 109.5v125q0 98 -33.5 136t-111.5 38h-101v-440zM307 850h88q68 0 101.5 35t33.5 116v80q1 148 -114 148h-109v-379z" />
-<glyph unicode="c" horiz-adv-x="790" d="M63 344v746q0 174 86.5 267t250 93t249.5 -93t86 -267v-140h-213v154q0 141 -116.5 141t-116.5 -141v-774q1 -140 117 -140q117 0 116 140v205h213v-191q0 -174 -86 -267t-249.5 -93t-250 93t-86.5 267z" />
-<glyph unicode="d" horiz-adv-x="835" d="M82 0v1434h356q336 0 336 -355v-725q0 -354 -336 -354h-356zM307 205h127q115 0 115 139v746q0 139 -115 139h-127v-1024z" />
-<glyph unicode="e" horiz-adv-x="753" d="M82 0v1434h614v-205h-389v-400h309v-204h-309v-420h389v-205h-614z" />
-<glyph unicode="f" horiz-adv-x="704" d="M82 0v1434h596v-205h-371v-432h291v-205h-291v-592h-225z" />
-<glyph unicode="g" horiz-adv-x="798" d="M63 344v746q0 174 86.5 267t250 93t249.5 -93t86 -267v-140h-213v154q0 141 -116.5 141t-116.5 -141v-774q0 -139 117 -140q116 0 116 140v264h-102v205h315v-455q0 -174 -86 -267t-249.5 -93t-250 93t-86.5 267z" />
-<glyph unicode="h" horiz-adv-x="874" d="M82 0v1434h225v-615h256v615h230v-1434h-230v614h-256v-614h-225z" />
-<glyph unicode="i" horiz-adv-x="389" d="M82 0v1434h225v-1434h-225z" />
-<glyph unicode="j" horiz-adv-x="524" d="M20 0v205q25 -2 78 -2q129 0 129 137v1094h226v-1078q0 -360 -324 -360q-72 0 -109 4z" />
-<glyph unicode="k" horiz-adv-x="847" d="M82 0v1434h225v-625l295 625h225l-313 -639l313 -795h-231l-219 571l-70 -131v-440h-225z" />
-<glyph unicode="l" horiz-adv-x="694" d="M82 0v1434h225v-1229h371v-205h-596z" />
-<glyph unicode="m" horiz-adv-x="1107" d="M80 0v1434h313l166 -1018l154 1018h313v-1434h-213v1028l-156 -1028h-213l-168 1014v-1014h-196z" />
-<glyph unicode="n" horiz-adv-x="874" d="M80 0v1434h282l232 -859v859h201v-1434h-232l-280 1038v-1038h-203z" />
-<glyph unicode="o" d="M63 344v746q0 172 88.5 266t254 94t254 -94t88.5 -266v-746q0 -172 -88.5 -266t-254 -94t-254 94t-88.5 266zM289 330q1 -141 117 -142q117 0 116 142v774q0 141 -116.5 141t-116.5 -141v-774z" />
-<glyph unicode="p" horiz-adv-x="772" d="M82 0v1434h332q336 0 336 -355v-186q0 -354 -336 -354h-107v-539h-225zM307 743h107q55 0 82.5 31t27.5 105v215q0 74 -27.5 104.5t-82.5 30.5h-107v-486z" />
-<glyph unicode="q" d="M63 1090q0 172 88.5 266t254 94t254 -94t88.5 -266v-746q0 -121 -43 -201q12 -30 60 -30h3h20v-201h-30q-145 0 -195 98q-71 -26 -151 -26h-6q-166 0 -254.5 94t-88.5 266v746zM289 330q0 -141 116 -142h1q116 0 116 142v774q0 141 -116.5 141t-116.5 -141v-774z" />
-<glyph unicode="r" horiz-adv-x="823" d="M82 0v1434h340q174 0 254 -81t80 -249v-113q0 -221 -148 -291q150 -63 150 -305v-221v-9q0 -110 24 -165h-229q-20 61 -21 176v225q0 98 -34.5 140.5t-112.5 42.5h-78v-584h-225zM307 788h88q68 0 101.5 35t33.5 117v141q1 148 -114 148h-109v-441z" />
-<glyph unicode="s" horiz-adv-x="765" d="M47 344v88h213v-102q0 -140 117 -140h1q116 0 116 140q0 80 -46 150t-110 128l-130 120q-66 63 -110.5 156t-44.5 206q0 174 84 267t248 93t248 -93t84 -267v-46h-213v60q0 141 -112.5 141t-112.5 -141q0 -59 24.5 -112.5t63.5 -96.5t86 -85t93 -88t85 -98.5t63.5 -124 t24.5 -155.5q0 -174 -86 -267t-250 -93t-250 93t-86 267z" />
-<glyph unicode="t" horiz-adv-x="729" d="M16 1229v205h697v-205h-236v-1229h-225v1229h-236z" />
-<glyph unicode="u" horiz-adv-x="815" d="M72 342v1092h225v-1106q1 -140 117 -140q117 0 116 140v1106h213v-1092q0 -174 -86 -267t-249.5 -93t-249.5 93t-86 267z" />
-<glyph unicode="v" horiz-adv-x="823" d="M23 1434h227l172 -1170l172 1170h207l-221 -1434h-336z" />
-<glyph unicode="w" horiz-adv-x="1153" d="M31 1434h219l121 -1131l108 1131h217l113 -1139l117 1139h196l-159 -1434h-299l-82 764l-82 -764h-310z" />
-<glyph unicode="x" horiz-adv-x="880" d="M31 0l252 737l-236 697h234l170 -529l174 529h209l-236 -697l252 -737h-238l-184 567l-186 -567h-211z" />
-<glyph unicode="y" d="M8 1434h236l172 -654l172 654h215l-285 -959v-475h-225v475z" />
-<glyph unicode="z" horiz-adv-x="757" d="M47 0v201l428 1028h-407v205h639v-201l-428 -1028h428v-205h-660z" />
-<glyph unicode="{" horiz-adv-x="526" d="M23 625v184q63 0 85.5 25.5t26.5 97.5l17 274q8 113 68.5 170.5t158.5 57.5h115v-185h-33q-55 0 -80 -31.5t-29 -113.5l-10 -205q-8 -149 -133 -182q125 -33 133 -182l10 -205q4 -82 29 -114t80 -32h33v-184h-115q-98 0 -158.5 57.5t-68.5 169.5l-17 275 q-4 72 -26.5 97.5t-85.5 25.5z" />
-<glyph unicode="|" horiz-adv-x="1024" d="M430 -133v1700h184v-1700h-184z" />
-<glyph unicode="}" horiz-adv-x="526" d="M33 1249v185h114q98 0 159 -57.5t69 -170.5l16 -274q4 -72 26.5 -97.5t86.5 -25.5v-184q-63 0 -86 -26t-27 -97l-16 -275q-8 -113 -68.5 -170t-159.5 -57h-114v184h33q55 0 79.5 32t28.5 114l10 205q8 149 133 182q-125 33 -133 182l-10 205q-4 82 -28.5 113.5 t-79.5 31.5h-33z" />
-<glyph unicode="~" d="M16 680q70 104 126.5 144t117.5 40q59 0 155.5 -62.5t137.5 -62.5q33 0 58.5 23.5t76.5 93.5l107 -111q-70 -102 -125.5 -139t-118.5 -37q-59 0 -155.5 62.5t-137.5 62.5q-35 0 -60.5 -23t-74.5 -93z" />
-<glyph unicode="&#xa2;" d="M74 426v582q0 297 239 350v106h185v-104q248 -49 247 -352v-99h-213v113q0 141 -116.5 141t-116.5 -141v-610q0 -139 117 -140q116 0 116 140v163h213v-149q0 -305 -247 -352v-105h-185v107q-240 49 -239 350z" />
-<glyph unicode="&#xa3;" d="M61 0v197q82 0 137.5 62.5t57.5 170.5h-166v174h137q-14 39 -56 123t-65.5 167t-23.5 196q0 174 84 267t248 93t247.5 -93t83.5 -267v-142h-213v156q0 141 -112.5 141t-112.5 -141q0 -113 24.5 -200t62.5 -167t50 -133h248v-174h-233q-14 -145 -115 -225h387v-205h-670z " />
-<glyph unicode="&#xa5;" d="M14 1434h236l166 -633l166 633h215l-262 -879h170v-113h-187v-92h187v-112h-187v-238h-225v238h-187v112h187v92h-187v113h168z" />
-<glyph unicode="&#xa9;" horiz-adv-x="1507" d="M41 716.5q0 317.5 204 525.5t509 208t508.5 -208t203.5 -525.5t-203.5 -525t-508.5 -207.5t-509 207.5t-204 525zM188 717q0 -256 161 -423t404.5 -167t404.5 167t161 423t-161 423t-404.5 167t-404.5 -167t-161 -423zM514 516v397q0 254 231.5 254t231.5 -254v-73h-148 v86q0 98 -79.5 98t-79.5 -98v-418q0 -96 79.5 -96t79.5 96v123h148v-115q0 -250 -231.5 -250t-231.5 250z" />
-<glyph unicode="&#xad;" horiz-adv-x="552" d="M72 614v205h409v-205h-409z" />
-<glyph unicode="&#xae;" horiz-adv-x="1507" d="M41 716.5q0 317.5 204 525.5t509 208t508.5 -208t203.5 -525.5t-203.5 -525t-508.5 -207.5t-509 207.5t-204 525zM188 717q0 -256 161 -423t404.5 -167t404.5 167t161 423t-161 423t-404.5 167t-404.5 -167t-161 -423zM528 279v876h238q231 0 231 -229v-19 q0 -156 -106 -202q106 -43 106 -211v-95q1 -79 19 -120h-160q-14 37 -14 122v95q0 70 -24.5 98.5t-80.5 28.5h-53v-344h-156zM684 766h64q94 0 94 104v37q0 105 -84 105h-74v-246z" />
-<glyph unicode="&#xb4;" horiz-adv-x="512" d="M55 1509l140 228h221l-209 -228h-152z" />
-<glyph unicode="&#x2000;" horiz-adv-x="868" />
-<glyph unicode="&#x2001;" horiz-adv-x="1737" />
-<glyph unicode="&#x2002;" horiz-adv-x="868" />
-<glyph unicode="&#x2003;" horiz-adv-x="1737" />
-<glyph unicode="&#x2004;" horiz-adv-x="579" />
-<glyph unicode="&#x2005;" horiz-adv-x="434" />
-<glyph unicode="&#x2006;" horiz-adv-x="289" />
-<glyph unicode="&#x2007;" horiz-adv-x="289" />
-<glyph unicode="&#x2008;" horiz-adv-x="217" />
-<glyph unicode="&#x2009;" horiz-adv-x="347" />
-<glyph unicode="&#x200a;" horiz-adv-x="96" />
-<glyph unicode="&#x2010;" horiz-adv-x="552" d="M72 614v205h409v-205h-409z" />
-<glyph unicode="&#x2011;" horiz-adv-x="552" d="M72 614v205h409v-205h-409z" />
-<glyph unicode="&#x2012;" horiz-adv-x="552" d="M72 614v205h409v-205h-409z" />
-<glyph unicode="&#x2013;" horiz-adv-x="1024" d="M0 625v184h1024v-184h-1024z" />
-<glyph unicode="&#x2014;" horiz-adv-x="2048" d="M0 625v184h2048v-184h-2048z" />
-<glyph unicode="&#x2018;" horiz-adv-x="380" d="M82 1012v194l98 228h92l-59 -205h86v-217h-217z" />
-<glyph unicode="&#x2019;" horiz-adv-x="380" d="M82 1217v217h217v-195l-98 -227h-92l59 205h-86z" />
-<glyph unicode="&#x201c;" horiz-adv-x="679" d="M82 1012v194l98 228h92l-59 -205h86v-217h-217zM381 1012v194l98 228h92l-59 -205h86v-217h-217z" />
-<glyph unicode="&#x201d;" horiz-adv-x="679" d="M82 1217v217h217v-195l-98 -227h-92l59 205h-86zM381 1217v217h217v-195l-98 -227h-92l59 205h-86z" />
-<glyph unicode="&#x2022;" d="M121 717q0 119 83 201.5t201.5 82.5t201.5 -82.5t83 -201.5t-83 -202t-201.5 -83t-201.5 83t-83 202z" />
-<glyph unicode="&#x2026;" horiz-adv-x="978" d="M82 0v217h217v-217h-217zM381 0v217h217v-217h-217zM680 0v217h217v-217h-217z" />
-<glyph unicode="&#x202f;" horiz-adv-x="347" />
-<glyph unicode="&#x205f;" horiz-adv-x="434" />
-<glyph unicode="&#x20ac;" d="M39 553v113h57v112h-57v113h57v199q0 174 83 267t247 93t247 -93t83 -267v-105h-213v119q0 141 -110.5 141t-110.5 -141v-213h315v-113h-315v-112h315v-113h-315v-223q0 -139 110 -140h1q110 0 110 140v129h213v-115q0 -174 -83 -267t-247 -93t-247 93t-83 267v209h-57z " />
-<glyph unicode="&#x2122;" horiz-adv-x="1200" d="M20 1303v131h443v-131h-150v-598h-143v598h-150zM549 705v729h199l106 -512l96 512h199v-729h-135v518l-96 -518h-136l-108 514v-514h-125z" />
-<glyph unicode="&#xe000;" horiz-adv-x="1435" d="M0 1435h1435v-1435h-1435v1435z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.ttf b/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.ttf
deleted file mode 100644
index 9b9eefc..0000000
--- a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.woff b/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.woff
deleted file mode 100644
index 89423e1..0000000
--- a/common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.eot b/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.eot
deleted file mode 100644
index 84677bc..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.svg b/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.svg
deleted file mode 100644
index d907b25..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.svg
+++ /dev/null
@@ -1,520 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="fontawesomeregular" horiz-adv-x="1536" >
-<font-face units-per-em="1792" ascent="1536" descent="-256" />
-<missing-glyph horiz-adv-x="448" />
-<glyph unicode=" " horiz-adv-x="448" />
-<glyph unicode="&#x09;" horiz-adv-x="448" />
-<glyph unicode="&#xa0;" horiz-adv-x="448" />
-<glyph unicode="&#xa8;" horiz-adv-x="1792" />
-<glyph unicode="&#xa9;" horiz-adv-x="1792" />
-<glyph unicode="&#xae;" horiz-adv-x="1792" />
-<glyph unicode="&#xb4;" horiz-adv-x="1792" />
-<glyph unicode="&#xc6;" horiz-adv-x="1792" />
-<glyph unicode="&#xd8;" horiz-adv-x="1792" />
-<glyph unicode="&#x2000;" horiz-adv-x="768" />
-<glyph unicode="&#x2001;" horiz-adv-x="1537" />
-<glyph unicode="&#x2002;" horiz-adv-x="768" />
-<glyph unicode="&#x2003;" horiz-adv-x="1537" />
-<glyph unicode="&#x2004;" horiz-adv-x="512" />
-<glyph unicode="&#x2005;" horiz-adv-x="384" />
-<glyph unicode="&#x2006;" horiz-adv-x="256" />
-<glyph unicode="&#x2007;" horiz-adv-x="256" />
-<glyph unicode="&#x2008;" horiz-adv-x="192" />
-<glyph unicode="&#x2009;" horiz-adv-x="307" />
-<glyph unicode="&#x200a;" horiz-adv-x="85" />
-<glyph unicode="&#x202f;" horiz-adv-x="307" />
-<glyph unicode="&#x205f;" horiz-adv-x="384" />
-<glyph unicode="&#x2122;" horiz-adv-x="1792" />
-<glyph unicode="&#x221e;" horiz-adv-x="1792" />
-<glyph unicode="&#x2260;" horiz-adv-x="1792" />
-<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
-<glyph unicode="&#xf000;" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />
-<glyph unicode="&#xf001;" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf002;" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
-<glyph unicode="&#xf003;" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf004;" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />
-<glyph unicode="&#xf005;" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />
-<glyph unicode="&#xf006;" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />
-<glyph unicode="&#xf007;" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />
-<glyph unicode="&#xf008;" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf009;" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf00a;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf00b;" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf00c;" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />
-<glyph unicode="&#xf00d;" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />
-<glyph unicode="&#xf00e;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />
-<glyph unicode="&#xf010;" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />
-<glyph unicode="&#xf011;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />
-<glyph unicode="&#xf012;" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf013;" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />
-<glyph unicode="&#xf014;" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf015;" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />
-<glyph unicode="&#xf016;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z " />
-<glyph unicode="&#xf017;" d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf018;" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />
-<glyph unicode="&#xf019;" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />
-<glyph unicode="&#xf01a;" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf01b;" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf01c;" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />
-<glyph unicode="&#xf01d;" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf01e;" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />
-<glyph unicode="&#xf021;" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />
-<glyph unicode="&#xf022;" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />
-<glyph unicode="&#xf023;" horiz-adv-x="1152" d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf024;" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf025;" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />
-<glyph unicode="&#xf026;" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />
-<glyph unicode="&#xf027;" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />
-<glyph unicode="&#xf028;" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />
-<glyph unicode="&#xf029;" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />
-<glyph unicode="&#xf02a;" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />
-<glyph unicode="&#xf02b;" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />
-<glyph unicode="&#xf02c;" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />
-<glyph unicode="&#xf02d;" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />
-<glyph unicode="&#xf02e;" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
-<glyph unicode="&#xf02f;" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />
-<glyph unicode="&#xf030;" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />
-<glyph unicode="&#xf031;" horiz-adv-x="1664" d="M725 977l-170 -450q33 0 136.5 -2t160.5 -2q19 0 57 2q-87 253 -184 452zM0 -128l2 79q23 7 56 12.5t57 10.5t49.5 14.5t44.5 29t31 50.5l237 616l280 724h75h53q8 -14 11 -21l205 -480q33 -78 106 -257.5t114 -274.5q15 -34 58 -144.5t72 -168.5q20 -45 35 -57 q19 -15 88 -29.5t84 -20.5q6 -38 6 -57q0 -4 -0.5 -13t-0.5 -13q-63 0 -190 8t-191 8q-76 0 -215 -7t-178 -8q0 43 4 78l131 28q1 0 12.5 2.5t15.5 3.5t14.5 4.5t15 6.5t11 8t9 11t2.5 14q0 16 -31 96.5t-72 177.5t-42 100l-450 2q-26 -58 -76.5 -195.5t-50.5 -162.5 q0 -22 14 -37.5t43.5 -24.5t48.5 -13.5t57 -8.5t41 -4q1 -19 1 -58q0 -9 -2 -27q-58 0 -174.5 10t-174.5 10q-8 0 -26.5 -4t-21.5 -4q-80 -14 -188 -14z" />
-<glyph unicode="&#xf032;" horiz-adv-x="1408" d="M555 15q74 -32 140 -32q376 0 376 335q0 114 -41 180q-27 44 -61.5 74t-67.5 46.5t-80.5 25t-84 10.5t-94.5 2q-73 0 -101 -10q0 -53 -0.5 -159t-0.5 -158q0 -8 -1 -67.5t-0.5 -96.5t4.5 -83.5t12 -66.5zM541 761q42 -7 109 -7q82 0 143 13t110 44.5t74.5 89.5t25.5 142 q0 70 -29 122.5t-79 82t-108 43.5t-124 14q-50 0 -130 -13q0 -50 4 -151t4 -152q0 -27 -0.5 -80t-0.5 -79q0 -46 1 -69zM0 -128l2 94q15 4 85 16t106 27q7 12 12.5 27t8.5 33.5t5.5 32.5t3 37.5t0.5 34v35.5v30q0 982 -22 1025q-4 8 -22 14.5t-44.5 11t-49.5 7t-48.5 4.5 t-30.5 3l-4 83q98 2 340 11.5t373 9.5q23 0 68.5 -0.5t67.5 -0.5q70 0 136.5 -13t128.5 -42t108 -71t74 -104.5t28 -137.5q0 -52 -16.5 -95.5t-39 -72t-64.5 -57.5t-73 -45t-84 -40q154 -35 256.5 -134t102.5 -248q0 -100 -35 -179.5t-93.5 -130.5t-138 -85.5t-163.5 -48.5 t-176 -14q-44 0 -132 3t-132 3q-106 0 -307 -11t-231 -12z" />
-<glyph unicode="&#xf033;" horiz-adv-x="1024" d="M0 -126l17 85q6 2 81.5 21.5t111.5 37.5q28 35 41 101q1 7 62 289t114 543.5t52 296.5v25q-24 13 -54.5 18.5t-69.5 8t-58 5.5l19 103q33 -2 120 -6.5t149.5 -7t120.5 -2.5q48 0 98.5 2.5t121 7t98.5 6.5q-5 -39 -19 -89q-30 -10 -101.5 -28.5t-108.5 -33.5 q-8 -19 -14 -42.5t-9 -40t-7.5 -45.5t-6.5 -42q-27 -148 -87.5 -419.5t-77.5 -355.5q-2 -9 -13 -58t-20 -90t-16 -83.5t-6 -57.5l1 -18q17 -4 185 -31q-3 -44 -16 -99q-11 0 -32.5 -1.5t-32.5 -1.5q-29 0 -87 10t-86 10q-138 2 -206 2q-51 0 -143 -9t-121 -11z" />
-<glyph unicode="&#xf034;" horiz-adv-x="1792" d="M1744 128q33 0 42 -18.5t-11 -44.5l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80zM81 1407l54 -27q12 -5 211 -5q44 0 132 2 t132 2q36 0 107.5 -0.5t107.5 -0.5h293q6 0 21 -0.5t20.5 0t16 3t17.5 9t15 17.5l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 48t-14.5 73.5t-7.5 35.5q-6 8 -12 12.5t-15.5 6t-13 2.5t-18 0.5t-16.5 -0.5 q-17 0 -66.5 0.5t-74.5 0.5t-64 -2t-71 -6q-9 -81 -8 -136q0 -94 2 -388t2 -455q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q19 42 19 383q0 101 -3 303t-3 303v117q0 2 0.5 15.5t0.5 25t-1 25.5t-3 24t-5 14q-11 12 -162 12q-33 0 -93 -12t-80 -26q-19 -13 -34 -72.5t-31.5 -111t-42.5 -53.5q-42 26 -56 44v383z" />
-<glyph unicode="&#xf035;" d="M81 1407l54 -27q12 -5 211 -5q44 0 132 2t132 2q70 0 246.5 1t304.5 0.5t247 -4.5q33 -1 56 31l42 1q4 0 14 -0.5t14 -0.5q2 -112 2 -336q0 -80 -5 -109q-39 -14 -68 -18q-25 44 -54 128q-3 9 -11 47.5t-15 73.5t-7 36q-10 13 -27 19q-5 2 -66 2q-30 0 -93 1t-103 1 t-94 -2t-96 -7q-9 -81 -8 -136l1 -152v52q0 -55 1 -154t1.5 -180t0.5 -153q0 -16 -2.5 -71.5t0 -91.5t12.5 -69q40 -21 124 -42.5t120 -37.5q5 -40 5 -50q0 -14 -3 -29l-34 -1q-76 -2 -218 8t-207 10q-50 0 -151 -9t-152 -9q-3 51 -3 52v9q17 27 61.5 43t98.5 29t78 27 q7 16 11.5 74t6 145.5t1.5 155t-0.5 153.5t-0.5 89q0 7 -2.5 21.5t-2.5 22.5q0 7 0.5 44t1 73t0 76.5t-3 67.5t-6.5 32q-11 12 -162 12q-41 0 -163 -13.5t-138 -24.5q-19 -12 -34 -71.5t-31.5 -111.5t-42.5 -54q-42 26 -56 44v383zM1310 125q12 0 42 -19.5t57.5 -41.5 t59.5 -49t36 -30q26 -21 26 -49t-26 -49q-4 -3 -36 -30t-59.5 -49t-57.5 -41.5t-42 -19.5q-13 0 -20.5 10.5t-10 28.5t-2.5 33.5t1.5 33t1.5 19.5h-1024q0 -2 1.5 -19.5t1.5 -33t-2.5 -33.5t-10 -28.5t-20.5 -10.5q-12 0 -42 19.5t-57.5 41.5t-59.5 49t-36 30q-26 21 -26 49 t26 49q4 3 36 30t59.5 49t57.5 41.5t42 19.5q13 0 20.5 -10.5t10 -28.5t2.5 -33.5t-1.5 -33t-1.5 -19.5h1024q0 2 -1.5 19.5t-1.5 33t2.5 33.5t10 28.5t20.5 10.5z" />
-<glyph unicode="&#xf036;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf037;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf038;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf039;" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf03a;" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />
-<glyph unicode="&#xf03b;" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
-<glyph unicode="&#xf03c;" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />
-<glyph unicode="&#xf03d;" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" />
-<glyph unicode="&#xf03e;" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf040;" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />
-<glyph unicode="&#xf041;" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />
-<glyph unicode="&#xf042;" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf043;" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />
-<glyph unicode="&#xf044;" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />
-<glyph unicode="&#xf045;" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />
-<glyph unicode="&#xf046;" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />
-<glyph unicode="&#xf047;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
-<glyph unicode="&#xf048;" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />
-<glyph unicode="&#xf049;" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />
-<glyph unicode="&#xf04a;" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />
-<glyph unicode="&#xf04b;" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />
-<glyph unicode="&#xf04c;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf04d;" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf04e;" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
-<glyph unicode="&#xf050;" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />
-<glyph unicode="&#xf051;" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />
-<glyph unicode="&#xf052;" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />
-<glyph unicode="&#xf053;" horiz-adv-x="1280" d="M1171 1235l-531 -531l531 -531q19 -19 19 -45t-19 -45l-166 -166q-19 -19 -45 -19t-45 19l-742 742q-19 19 -19 45t19 45l742 742q19 19 45 19t45 -19l166 -166q19 -19 19 -45t-19 -45z" />
-<glyph unicode="&#xf054;" horiz-adv-x="1280" d="M1107 659l-742 -742q-19 -19 -45 -19t-45 19l-166 166q-19 19 -19 45t19 45l531 531l-531 531q-19 19 -19 45t19 45l166 166q19 19 45 19t45 -19l742 -742q19 -19 19 -45t-19 -45z" />
-<glyph unicode="&#xf055;" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf056;" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />
-<glyph unicode="&#xf057;" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf058;" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf059;" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf05a;" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf05b;" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf05c;" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf05d;" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf05e;" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />
-<glyph unicode="&#xf060;" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />
-<glyph unicode="&#xf061;" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />
-<glyph unicode="&#xf062;" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />
-<glyph unicode="&#xf063;" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />
-<glyph unicode="&#xf064;" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />
-<glyph unicode="&#xf065;" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf066;" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />
-<glyph unicode="&#xf067;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf068;" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf069;" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />
-<glyph unicode="&#xf06a;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />
-<glyph unicode="&#xf06b;" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf06c;" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />
-<glyph unicode="&#xf06d;" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />
-<glyph unicode="&#xf06e;" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />
-<glyph unicode="&#xf070;" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />
-<glyph unicode="&#xf071;" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />
-<glyph unicode="&#xf072;" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" />
-<glyph unicode="&#xf073;" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf074;" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
-<glyph unicode="&#xf075;" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />
-<glyph unicode="&#xf076;" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf077;" horiz-adv-x="1792" d="M1683 205l-166 -165q-19 -19 -45 -19t-45 19l-531 531l-531 -531q-19 -19 -45 -19t-45 19l-166 165q-19 19 -19 45.5t19 45.5l742 741q19 19 45 19t45 -19l742 -741q19 -19 19 -45.5t-19 -45.5z" />
-<glyph unicode="&#xf078;" horiz-adv-x="1792" d="M1683 728l-742 -741q-19 -19 -45 -19t-45 19l-742 741q-19 19 -19 45.5t19 45.5l166 165q19 19 45 19t45 -19l531 -531l531 531q19 19 45 19t45 -19l166 -165q19 -19 19 -45.5t-19 -45.5z" />
-<glyph unicode="&#xf079;" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />
-<glyph unicode="&#xf07a;" horiz-adv-x="1664" d="M640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5 l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5 t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf07b;" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
-<glyph unicode="&#xf07c;" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />
-<glyph unicode="&#xf07d;" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />
-<glyph unicode="&#xf07e;" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />
-<glyph unicode="&#xf080;" horiz-adv-x="2048" d="M640 640v-512h-256v512h256zM1024 1152v-1024h-256v1024h256zM2048 0v-128h-2048v1536h128v-1408h1920zM1408 896v-768h-256v768h256zM1792 1280v-1152h-256v1152h256z" />
-<glyph unicode="&#xf081;" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf082;" d="M1536 160q0 -119 -84.5 -203.5t-203.5 -84.5h-192v608h203l30 224h-233v143q0 54 28 83t96 29l132 1v207q-96 9 -180 9q-136 0 -218 -80.5t-82 -225.5v-166h-224v-224h224v-608h-544q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960 q119 0 203.5 -84.5t84.5 -203.5v-960z" />
-<glyph unicode="&#xf083;" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />
-<glyph unicode="&#xf084;" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />
-<glyph unicode="&#xf085;" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />
-<glyph unicode="&#xf086;" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />
-<glyph unicode="&#xf087;" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />
-<glyph unicode="&#xf088;" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />
-<glyph unicode="&#xf089;" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />
-<glyph unicode="&#xf08a;" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />
-<glyph unicode="&#xf08b;" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />
-<glyph unicode="&#xf08c;" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf08d;" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />
-<glyph unicode="&#xf08e;" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf090;" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf091;" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf092;" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf093;" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />
-<glyph unicode="&#xf094;" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />
-<glyph unicode="&#xf095;" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />
-<glyph unicode="&#xf096;" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf097;" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />
-<glyph unicode="&#xf098;" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf099;" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />
-<glyph unicode="&#xf09a;" horiz-adv-x="1024" d="M959 1524v-264h-157q-86 0 -116 -36t-30 -108v-189h293l-39 -296h-254v-759h-306v759h-255v296h255v218q0 186 104 288.5t277 102.5q147 0 228 -12z" />
-<glyph unicode="&#xf09b;" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf09c;" horiz-adv-x="1664" d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5 t316.5 -131.5t131.5 -316.5z" />
-<glyph unicode="&#xf09d;" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />
-<glyph unicode="&#xf09e;" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />
-<glyph unicode="&#xf0a0;" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />
-<glyph unicode="&#xf0a1;" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />
-<glyph unicode="&#xf0a2;" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM246 128h1300q-266 300 -266 832q0 51 -24 105t-69 103t-121.5 80.5t-169.5 31.5t-169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -532 -266 -832z M1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5 t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
-<glyph unicode="&#xf0a3;" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />
-<glyph unicode="&#xf0a4;" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />
-<glyph unicode="&#xf0a5;" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />
-<glyph unicode="&#xf0a6;" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />
-<glyph unicode="&#xf0a7;" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />
-<glyph unicode="&#xf0a8;" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf0a9;" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf0aa;" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf0ab;" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf0ac;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11 q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 10.5t-9.5 10.5q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5 q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5 q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5 t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-5 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3 q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25 q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5 t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5 t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10t17 -20q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21 q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5 q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3 q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5 t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q7 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5 q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7 q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" />
-<glyph unicode="&#xf0ad;" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />
-<glyph unicode="&#xf0ae;" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0b0;" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />
-<glyph unicode="&#xf0b1;" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf0b2;" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />
-<glyph unicode="&#xf0c0;" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />
-<glyph unicode="&#xf0c1;" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />
-<glyph unicode="&#xf0c2;" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />
-<glyph unicode="&#xf0c3;" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />
-<glyph unicode="&#xf0c4;" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />
-<glyph unicode="&#xf0c5;" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />
-<glyph unicode="&#xf0c6;" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />
-<glyph unicode="&#xf0c7;" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />
-<glyph unicode="&#xf0c8;" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf0c9;" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0ca;" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
-<glyph unicode="&#xf0cb;" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />
-<glyph unicode="&#xf0cc;" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />
-<glyph unicode="&#xf0cd;" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />
-<glyph unicode="&#xf0ce;" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />
-<glyph unicode="&#xf0d0;" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />
-<glyph unicode="&#xf0d1;" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0d2;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf0d3;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />
-<glyph unicode="&#xf0d4;" d="M829 318q0 -76 -58.5 -112.5t-139.5 -36.5q-41 0 -80.5 9.5t-75.5 28.5t-58 53t-22 78q0 46 25 80t65.5 51.5t82 25t84.5 7.5q20 0 31 -2q2 -1 23 -16.5t26 -19t23 -18t24.5 -22t19 -22.5t17 -26t9 -26.5t4.5 -31.5zM755 863q0 -60 -33 -99.5t-92 -39.5q-53 0 -93 42.5 t-57.5 96.5t-17.5 106q0 61 32 104t92 43q53 0 93.5 -45t58 -101t17.5 -107zM861 1120l88 64h-265q-85 0 -161 -32t-127.5 -98t-51.5 -153q0 -93 64.5 -154.5t158.5 -61.5q22 0 43 3q-13 -29 -13 -54q0 -44 40 -94q-175 -12 -257 -63q-47 -29 -75.5 -73t-28.5 -95 q0 -43 18.5 -77.5t48.5 -56.5t69 -37t77.5 -21t76.5 -6q60 0 120.5 15.5t113.5 46t86 82.5t33 117q0 49 -20 89.5t-49 66.5t-58 47.5t-49 44t-20 44.5t15.5 42.5t37.5 39.5t44 42t37.5 59.5t15.5 82.5q0 60 -22.5 99.5t-72.5 90.5h83zM1152 672h128v64h-128v128h-64v-128 h-128v-64h128v-160h64v160zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf0d5;" horiz-adv-x="1664" d="M735 740q0 -36 32 -70.5t77.5 -68t90.5 -73.5t77 -104t32 -142q0 -90 -48 -173q-72 -122 -211 -179.5t-298 -57.5q-132 0 -246.5 41.5t-171.5 137.5q-37 60 -37 131q0 81 44.5 150t118.5 115q131 82 404 100q-32 42 -47.5 74t-15.5 73q0 36 21 85q-46 -4 -68 -4 q-148 0 -249.5 96.5t-101.5 244.5q0 82 36 159t99 131q77 66 182.5 98t217.5 32h418l-138 -88h-131q74 -63 112 -133t38 -160q0 -72 -24.5 -129.5t-59 -93t-69.5 -65t-59.5 -61.5t-24.5 -66zM589 836q38 0 78 16.5t66 43.5q53 57 53 159q0 58 -17 125t-48.5 129.5 t-84.5 103.5t-117 41q-42 0 -82.5 -19.5t-65.5 -52.5q-47 -59 -47 -160q0 -46 10 -97.5t31.5 -103t52 -92.5t75 -67t96.5 -26zM591 -37q58 0 111.5 13t99 39t73 73t27.5 109q0 25 -7 49t-14.5 42t-27 41.5t-29.5 35t-38.5 34.5t-36.5 29t-41.5 30t-36.5 26q-16 2 -48 2 q-53 0 -105 -7t-107.5 -25t-97 -46t-68.5 -74.5t-27 -105.5q0 -70 35 -123.5t91.5 -83t119 -44t127.5 -14.5zM1401 839h213v-108h-213v-219h-105v219h-212v108h212v217h105v-217z" />
-<glyph unicode="&#xf0d6;" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0d7;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0d8;" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
-<glyph unicode="&#xf0d9;" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />
-<glyph unicode="&#xf0da;" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />
-<glyph unicode="&#xf0db;" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf0dc;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
-<glyph unicode="&#xf0dd;" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0de;" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />
-<glyph unicode="&#xf0e0;" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />
-<glyph unicode="&#xf0e1;" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />
-<glyph unicode="&#xf0e2;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />
-<glyph unicode="&#xf0e3;" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />
-<glyph unicode="&#xf0e4;" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
-<glyph unicode="&#xf0e5;" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />
-<glyph unicode="&#xf0e6;" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />
-<glyph unicode="&#xf0e7;" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />
-<glyph unicode="&#xf0e8;" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />
-<glyph unicode="&#xf0e9;" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />
-<glyph unicode="&#xf0ea;" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />
-<glyph unicode="&#xf0eb;" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />
-<glyph unicode="&#xf0ec;" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />
-<glyph unicode="&#xf0ed;" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
-<glyph unicode="&#xf0ee;" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />
-<glyph unicode="&#xf0f0;" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />
-<glyph unicode="&#xf0f1;" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />
-<glyph unicode="&#xf0f2;" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />
-<glyph unicode="&#xf0f3;" horiz-adv-x="1792" d="M912 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1728 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q50 42 91 88t85 119.5t74.5 158.5 t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q190 -28 307 -158.5t117 -282.5q0 -139 19.5 -260t50 -206t74.5 -158.5t85 -119.5t91 -88z" />
-<glyph unicode="&#xf0f4;" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />
-<glyph unicode="&#xf0f5;" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0f6;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M384 736q0 14 9 23t23 9h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64zM1120 512q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704zM1120 256q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704 q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704z" />
-<glyph unicode="&#xf0f7;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0f8;" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0f9;" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf0fa;" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />
-<glyph unicode="&#xf0fb;" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" />
-<glyph unicode="&#xf0fc;" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />
-<glyph unicode="&#xf0fd;" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf0fe;" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf100;" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />
-<glyph unicode="&#xf101;" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
-<glyph unicode="&#xf102;" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
-<glyph unicode="&#xf103;" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
-<glyph unicode="&#xf104;" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
-<glyph unicode="&#xf105;" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
-<glyph unicode="&#xf106;" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />
-<glyph unicode="&#xf107;" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />
-<glyph unicode="&#xf108;" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf109;" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />
-<glyph unicode="&#xf10a;" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />
-<glyph unicode="&#xf10b;" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf10c;" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf10d;" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />
-<glyph unicode="&#xf10e;" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />
-<glyph unicode="&#xf110;" horiz-adv-x="1568" d="M496 192q0 -60 -42.5 -102t-101.5 -42q-60 0 -102 42t-42 102t42 102t102 42q59 0 101.5 -42t42.5 -102zM928 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -66 -47 -113t-113 -47t-113 47t-47 113 t47 113t113 47t113 -47t47 -113zM1360 192q0 -46 -33 -79t-79 -33t-79 33t-33 79t33 79t79 33t79 -33t33 -79zM528 1088q0 -73 -51.5 -124.5t-124.5 -51.5t-124.5 51.5t-51.5 124.5t51.5 124.5t124.5 51.5t124.5 -51.5t51.5 -124.5zM992 1280q0 -80 -56 -136t-136 -56 t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1536 640q0 -40 -28 -68t-68 -28t-68 28t-28 68t28 68t68 28t68 -28t28 -68zM1328 1088q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5z" />
-<glyph unicode="&#xf111;" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf112;" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />
-<glyph unicode="&#xf113;" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" />
-<glyph unicode="&#xf114;" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />
-<glyph unicode="&#xf115;" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />
-<glyph unicode="&#xf116;" horiz-adv-x="1792" />
-<glyph unicode="&#xf117;" horiz-adv-x="1792" />
-<glyph unicode="&#xf118;" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf119;" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf11a;" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf11b;" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />
-<glyph unicode="&#xf11c;" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />
-<glyph unicode="&#xf11d;" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
-<glyph unicode="&#xf11e;" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />
-<glyph unicode="&#xf120;" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" />
-<glyph unicode="&#xf121;" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />
-<glyph unicode="&#xf122;" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />
-<glyph unicode="&#xf123;" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />
-<glyph unicode="&#xf124;" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />
-<glyph unicode="&#xf125;" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf126;" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />
-<glyph unicode="&#xf127;" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
-<glyph unicode="&#xf128;" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />
-<glyph unicode="&#xf129;" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf12a;" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />
-<glyph unicode="&#xf12b;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" />
-<glyph unicode="&#xf12c;" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" />
-<glyph unicode="&#xf12d;" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />
-<glyph unicode="&#xf12e;" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />
-<glyph unicode="&#xf130;" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />
-<glyph unicode="&#xf131;" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />
-<glyph unicode="&#xf132;" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf133;" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf134;" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />
-<glyph unicode="&#xf135;" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />
-<glyph unicode="&#xf136;" horiz-adv-x="1792" d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" />
-<glyph unicode="&#xf137;" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf138;" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf139;" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf13a;" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf13b;" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />
-<glyph unicode="&#xf13c;" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />
-<glyph unicode="&#xf13d;" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-13 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352 q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19 t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf13e;" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736z" />
-<glyph unicode="&#xf140;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf141;" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf142;" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />
-<glyph unicode="&#xf143;" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf144;" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" />
-<glyph unicode="&#xf145;" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />
-<glyph unicode="&#xf146;" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
-<glyph unicode="&#xf147;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf148;" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />
-<glyph unicode="&#xf149;" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />
-<glyph unicode="&#xf14a;" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf14b;" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf14c;" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf14d;" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf14e;" d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf150;" d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf151;" d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf152;" d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf153;" horiz-adv-x="1024" d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9 t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26 l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" />
-<glyph unicode="&#xf154;" horiz-adv-x="1024" d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7 q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" />
-<glyph unicode="&#xf155;" horiz-adv-x="1024" d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43 t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5 t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50 t53 -63.5t31.5 -76.5t13 -94z" />
-<glyph unicode="&#xf156;" horiz-adv-x="898" d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102 q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf157;" horiz-adv-x="1027" d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61 l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" />
-<glyph unicode="&#xf158;" horiz-adv-x="1280" d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128 q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" />
-<glyph unicode="&#xf159;" horiz-adv-x="1792" d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23 t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28 q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf15a;" horiz-adv-x="1280" d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164 l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30 t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" />
-<glyph unicode="&#xf15b;" d="M1024 1024v472q22 -14 36 -28l408 -408q14 -14 28 -36h-472zM896 992q0 -40 28 -68t68 -28h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544z" />
-<glyph unicode="&#xf15c;" d="M1468 1060q14 -14 28 -36h-472v472q22 -14 36 -28zM992 896h544v-1056q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h800v-544q0 -40 28 -68t68 -28zM1152 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23z" />
-<glyph unicode="&#xf15d;" horiz-adv-x="1664" d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23 v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162 l230 -662h70z" />
-<glyph unicode="&#xf15e;" horiz-adv-x="1664" d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150 v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248 v119h121z" />
-<glyph unicode="&#xf160;" horiz-adv-x="1792" d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832 q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf161;" horiz-adv-x="1792" d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192 q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf162;" d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23 zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5 t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" />
-<glyph unicode="&#xf163;" d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9 t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13 q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" />
-<glyph unicode="&#xf164;" horiz-adv-x="1664" d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76 q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5 t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" />
-<glyph unicode="&#xf165;" horiz-adv-x="1664" d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135 t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121 t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" />
-<glyph unicode="&#xf166;" d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 16 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15 q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38 q21 -28 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5 q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78l24 -69t23 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38q-51 0 -78 -38 q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf167;" d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73 q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51 q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99 q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-37 -51 -106 -51q-67 0 -105 51 q-28 38 -28 118v175q0 80 28 117q38 51 105 51q69 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" />
-<glyph unicode="&#xf168;" horiz-adv-x="1408" d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942 q25 45 64 45h241q22 0 31 -15z" />
-<glyph unicode="&#xf169;" d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1 l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf16a;" horiz-adv-x="1792" d="M1280 640q0 37 -30 54l-512 320q-31 20 -65 2q-33 -18 -33 -56v-640q0 -38 33 -56q16 -8 31 -8q20 0 34 10l512 320q30 17 30 54zM1792 640q0 -96 -1 -150t-8.5 -136.5t-22.5 -147.5q-16 -73 -69 -123t-124 -58q-222 -25 -671 -25t-671 25q-71 8 -124.5 58t-69.5 123 q-14 65 -21.5 147.5t-8.5 136.5t-1 150t1 150t8.5 136.5t22.5 147.5q16 73 69 123t124 58q222 25 671 25t671 -25q71 -8 124.5 -58t69.5 -123q14 -65 21.5 -147.5t8.5 -136.5t1 -150z" />
-<glyph unicode="&#xf16b;" horiz-adv-x="1792" d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" />
-<glyph unicode="&#xf16c;" horiz-adv-x="1408" d="M928 135v-151l-707 -1v151zM1169 481v-701l-1 -35v-1h-1132l-35 1h-1v736h121v-618h928v618h120zM241 393l704 -65l-13 -150l-705 65zM309 709l683 -183l-39 -146l-683 183zM472 1058l609 -360l-77 -130l-609 360zM832 1389l398 -585l-124 -85l-399 584zM1285 1536 l121 -697l-149 -26l-121 697z" />
-<glyph unicode="&#xf16d;" d="M1362 110v648h-135q20 -63 20 -131q0 -126 -64 -232.5t-174 -168.5t-240 -62q-197 0 -337 135.5t-140 327.5q0 68 20 131h-141v-648q0 -26 17.5 -43.5t43.5 -17.5h1069q25 0 43 17.5t18 43.5zM1078 643q0 124 -90.5 211.5t-218.5 87.5q-127 0 -217.5 -87.5t-90.5 -211.5 t90.5 -211.5t217.5 -87.5q128 0 218.5 87.5t90.5 211.5zM1362 1003v165q0 28 -20 48.5t-49 20.5h-174q-29 0 -49 -20.5t-20 -48.5v-165q0 -29 20 -49t49 -20h174q29 0 49 20t20 49zM1536 1211v-1142q0 -81 -58 -139t-139 -58h-1142q-81 0 -139 58t-58 139v1142q0 81 58 139 t139 58h1142q81 0 139 -58t58 -139z" />
-<glyph unicode="&#xf16e;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150 t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" />
-<glyph unicode="&#xf170;" d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf171;" horiz-adv-x="1408" d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22 t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18 t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5 t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" />
-<glyph unicode="&#xf172;" d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5 t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf173;" horiz-adv-x="1024" d="M944 207l80 -237q-23 -35 -111 -66t-177 -32q-104 -2 -190.5 26t-142.5 74t-95 106t-55.5 120t-16.5 118v544h-168v215q72 26 129 69.5t91 90t58 102t34 99t15 88.5q1 5 4.5 8.5t7.5 3.5h244v-424h333v-252h-334v-518q0 -30 6.5 -56t22.5 -52.5t49.5 -41.5t81.5 -14 q78 2 134 29z" />
-<glyph unicode="&#xf174;" d="M1136 75l-62 183q-44 -22 -103 -22q-36 -1 -62 10.5t-38.5 31.5t-17.5 40.5t-5 43.5v398h257v194h-256v326h-188q-8 0 -9 -10q-5 -44 -17.5 -87t-39 -95t-77 -95t-118.5 -68v-165h130v-418q0 -57 21.5 -115t65 -111t121 -85.5t176.5 -30.5q69 1 136.5 25t85.5 50z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf175;" horiz-adv-x="768" d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" />
-<glyph unicode="&#xf176;" horiz-adv-x="768" d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" />
-<glyph unicode="&#xf177;" horiz-adv-x="1792" d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf178;" horiz-adv-x="1792" d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" />
-<glyph unicode="&#xf179;" horiz-adv-x="1408" d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q112 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65 q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" />
-<glyph unicode="&#xf17a;" horiz-adv-x="1664" d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" />
-<glyph unicode="&#xf17b;" horiz-adv-x="1408" d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30 t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5 h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" />
-<glyph unicode="&#xf17c;" d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-7 -10 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7 q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15 q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5 t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19 q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63 q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18l-4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92 q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152 q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-14 -1 -7 -7l4 -2 q14 -4 18 -31q0 -3 8 2zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5t-30 -18.5 t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43q-19 4 -51 9.5 t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49t-14 -48 q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54q110 143 124 195 q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5t-40.5 -33.5t-61 -14 q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5t15.5 47.5q1 -31 8 -56.5 t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" />
-<glyph unicode="&#xf17d;" d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81 t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19 q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -6 6.5 -17.5t7.5 -16.5q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6 t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf17e;" d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5 t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5 q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80 q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" />
-<glyph unicode="&#xf180;" horiz-adv-x="1280" d="M1000 1102l37 194q5 23 -9 40t-35 17h-712q-23 0 -38.5 -17t-15.5 -37v-1101q0 -7 6 -1l291 352q23 26 38 33.5t48 7.5h239q22 0 37 14.5t18 29.5q24 130 37 191q4 21 -11.5 40t-36.5 19h-294q-29 0 -48 19t-19 48v42q0 29 19 47.5t48 18.5h346q18 0 35 13.5t20 29.5z M1227 1324q-15 -73 -53.5 -266.5t-69.5 -350t-35 -173.5q-6 -22 -9 -32.5t-14 -32.5t-24.5 -33t-38.5 -21t-58 -10h-271q-13 0 -22 -10q-8 -9 -426 -494q-22 -25 -58.5 -28.5t-48.5 5.5q-55 22 -55 98v1410q0 55 38 102.5t120 47.5h888q95 0 127 -53t10 -159zM1227 1324 l-158 -790q4 17 35 173.5t69.5 350t53.5 266.5z" />
-<glyph unicode="&#xf181;" d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408 q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf182;" horiz-adv-x="1280" d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43 q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
-<glyph unicode="&#xf183;" horiz-adv-x="1024" d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
-<glyph unicode="&#xf184;" d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf185;" horiz-adv-x="1792" d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4 l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94 q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" />
-<glyph unicode="&#xf186;" d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61 t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" />
-<glyph unicode="&#xf187;" horiz-adv-x="1792" d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536 q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" />
-<glyph unicode="&#xf188;" horiz-adv-x="1664" d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207 q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19 t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" />
-<glyph unicode="&#xf189;" horiz-adv-x="1920" d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z" />
-<glyph unicode="&#xf18a;" horiz-adv-x="1792" d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12 q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422 q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178 q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" />
-<glyph unicode="&#xf18b;" d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495 q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" />
-<glyph unicode="&#xf18c;" horiz-adv-x="1408" d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5 t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56 t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -5 1 -50.5t-1 -71.5q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5 t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" />
-<glyph unicode="&#xf18d;" horiz-adv-x="1280" d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z " />
-<glyph unicode="&#xf18e;" d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf190;" d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf191;" d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf192;" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5 t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf193;" horiz-adv-x="1664" d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128 q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 16 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" />
-<glyph unicode="&#xf194;" d="M1254 899q16 85 -21 132q-52 65 -187 45q-17 -3 -41 -12.5t-57.5 -30.5t-64.5 -48.5t-59.5 -70t-44.5 -91.5q80 7 113.5 -16t26.5 -99q-5 -52 -52 -143q-43 -78 -71 -99q-44 -32 -87 14q-23 24 -37.5 64.5t-19 73t-10 84t-8.5 71.5q-23 129 -34 164q-12 37 -35.5 69 t-50.5 40q-57 16 -127 -25q-54 -32 -136.5 -106t-122.5 -102v-7q16 -8 25.5 -26t21.5 -20q21 -3 54.5 8.5t58 10.5t41.5 -30q11 -18 18.5 -38.5t15 -48t12.5 -40.5q17 -46 53 -187q36 -146 57 -197q42 -99 103 -125q43 -12 85 -1.5t76 31.5q131 77 250 237 q104 139 172.5 292.5t82.5 226.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf195;" horiz-adv-x="1152" d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160 q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf196;" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832 q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf197;" horiz-adv-x="2176" d="M620 416q-110 -64 -268 -64h-128v64h-64q-13 0 -22.5 23.5t-9.5 56.5q0 24 7 49q-58 2 -96.5 10.5t-38.5 20.5t38.5 20.5t96.5 10.5q-7 25 -7 49q0 33 9.5 56.5t22.5 23.5h64v64h128q158 0 268 -64h1113q42 -7 106.5 -18t80.5 -14q89 -15 150 -40.5t83.5 -47.5t22.5 -40 t-22.5 -40t-83.5 -47.5t-150 -40.5q-16 -3 -80.5 -14t-106.5 -18h-1113zM1739 668q53 -36 53 -92t-53 -92l81 -30q68 48 68 122t-68 122zM625 400h1015q-217 -38 -456 -80q-57 0 -113 -24t-83 -48l-28 -24l-288 -288q-26 -26 -70.5 -45t-89.5 -19h-96l-93 464h29 q157 0 273 64zM352 816h-29l93 464h96q46 0 90 -19t70 -45l288 -288q4 -4 11 -10.5t30.5 -23t48.5 -29t61.5 -23t72.5 -10.5l456 -80h-1015q-116 64 -273 64z" />
-<glyph unicode="&#xf198;" horiz-adv-x="1664" d="M1519 760q62 0 103.5 -40.5t41.5 -101.5q0 -97 -93 -130l-172 -59l56 -167q7 -21 7 -47q0 -59 -42 -102t-101 -43q-47 0 -85.5 27t-53.5 72l-55 165l-310 -106l55 -164q8 -24 8 -47q0 -59 -42 -102t-102 -43q-47 0 -85 27t-53 72l-55 163l-153 -53q-29 -9 -50 -9 q-61 0 -101.5 40t-40.5 101q0 47 27.5 85t71.5 53l156 53l-105 313l-156 -54q-26 -8 -48 -8q-60 0 -101 40.5t-41 100.5q0 47 27.5 85t71.5 53l157 53l-53 159q-8 24 -8 47q0 60 42 102.5t102 42.5q47 0 85 -27t53 -72l54 -160l310 105l-54 160q-8 24 -8 47q0 59 42.5 102 t101.5 43q47 0 85.5 -27.5t53.5 -71.5l53 -161l162 55q21 6 43 6q60 0 102.5 -39.5t42.5 -98.5q0 -45 -30 -81.5t-74 -51.5l-157 -54l105 -316l164 56q24 8 46 8zM725 498l310 105l-105 315l-310 -107z" />
-<glyph unicode="&#xf199;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM1280 352v436q-31 -35 -64 -55q-34 -22 -132.5 -85t-151.5 -99q-98 -69 -164 -69v0v0q-66 0 -164 69 q-46 32 -141.5 92.5t-142.5 92.5q-12 8 -33 27t-31 27v-436q0 -40 28 -68t68 -28h832q40 0 68 28t28 68zM1280 925q0 41 -27.5 70t-68.5 29h-832q-40 0 -68 -28t-28 -68q0 -37 30.5 -76.5t67.5 -64.5q47 -32 137.5 -89t129.5 -83q3 -2 17 -11.5t21 -14t21 -13t23.5 -13 t21.5 -9.5t22.5 -7.5t20.5 -2.5t20.5 2.5t22.5 7.5t21.5 9.5t23.5 13t21 13t21 14t17 11.5l267 174q35 23 66.5 62.5t31.5 73.5z" />
-<glyph unicode="&#xf19a;" horiz-adv-x="1792" d="M127 640q0 163 67 313l367 -1005q-196 95 -315 281t-119 411zM1415 679q0 -19 -2.5 -38.5t-10 -49.5t-11.5 -44t-17.5 -59t-17.5 -58l-76 -256l-278 826q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-75 1 -202 10q-12 1 -20.5 -5t-11.5 -15t-1.5 -18.5t9 -16.5 t19.5 -8l80 -8l120 -328l-168 -504l-280 832q46 3 88 8q19 2 26 18.5t-2.5 31t-28.5 13.5l-205 -10q-7 0 -23 0.5t-26 0.5q105 160 274.5 253.5t367.5 93.5q147 0 280.5 -53t238.5 -149h-10q-55 0 -92 -40.5t-37 -95.5q0 -12 2 -24t4 -21.5t8 -23t9 -21t12 -22.5t12.5 -21 t14.5 -24t14 -23q63 -107 63 -212zM909 573l237 -647q1 -6 5 -11q-126 -44 -255 -44q-112 0 -217 32zM1570 1009q95 -174 95 -369q0 -209 -104 -385.5t-279 -278.5l235 678q59 169 59 276q0 42 -6 79zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286 t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 -215q173 0 331.5 68t273 182.5t182.5 273t68 331.5t-68 331.5t-182.5 273t-273 182.5t-331.5 68t-331.5 -68t-273 -182.5t-182.5 -273t-68 -331.5t68 -331.5t182.5 -273 t273 -182.5t331.5 -68z" />
-<glyph unicode="&#xf19b;" horiz-adv-x="1792" d="M1086 1536v-1536l-272 -128q-228 20 -414 102t-293 208.5t-107 272.5q0 140 100.5 263.5t275 205.5t391.5 108v-172q-217 -38 -356.5 -150t-139.5 -255q0 -152 154.5 -267t388.5 -145v1360zM1755 954l37 -390l-525 114l147 83q-119 70 -280 99v172q277 -33 481 -157z" />
-<glyph unicode="&#xf19c;" horiz-adv-x="2048" d="M960 1536l960 -384v-128h-128q0 -26 -20.5 -45t-48.5 -19h-1526q-28 0 -48.5 19t-20.5 45h-128v128zM256 896h256v-768h128v768h256v-768h128v768h256v-768h128v768h256v-768h59q28 0 48.5 -19t20.5 -45v-64h-1664v64q0 26 20.5 45t48.5 19h59v768zM1851 -64 q28 0 48.5 -19t20.5 -45v-128h-1920v128q0 26 20.5 45t48.5 19h1782z" />
-<glyph unicode="&#xf19d;" horiz-adv-x="2304" d="M1774 700l18 -316q4 -69 -82 -128t-235 -93.5t-323 -34.5t-323 34.5t-235 93.5t-82 128l18 316l574 -181q22 -7 48 -7t48 7zM2304 1024q0 -23 -22 -31l-1120 -352q-4 -1 -10 -1t-10 1l-652 206q-43 -34 -71 -111.5t-34 -178.5q63 -36 63 -109q0 -69 -58 -107l58 -433 q2 -14 -8 -25q-9 -11 -24 -11h-192q-15 0 -24 11q-10 11 -8 25l58 433q-58 38 -58 107q0 73 65 111q11 207 98 330l-333 104q-22 8 -22 31t22 31l1120 352q4 1 10 1t10 -1l1120 -352q22 -8 22 -31z" />
-<glyph unicode="&#xf19e;" d="M859 579l13 -707q-62 11 -105 11q-41 0 -105 -11l13 707q-40 69 -168.5 295.5t-216.5 374.5t-181 287q58 -15 108 -15q43 0 111 15q63 -111 133.5 -229.5t167 -276.5t138.5 -227q37 61 109.5 177.5t117.5 190t105 176t107 189.5q54 -14 107 -14q56 0 114 14v0 q-28 -39 -60 -88.5t-49.5 -78.5t-56.5 -96t-49 -84q-146 -248 -353 -610z" />
-<glyph unicode="&#xf1a0;" horiz-adv-x="1280" d="M981 197q0 25 -7 49t-14.5 42t-27 41.5t-29.5 35t-38.5 34.5t-36.5 29t-41.5 30t-36.5 26q-16 2 -49 2q-53 0 -104.5 -7t-107 -25t-97 -46t-68.5 -74.5t-27 -105.5q0 -56 23.5 -102t61 -75.5t87 -50t100 -29t101.5 -8.5q58 0 111.5 13t99 39t73 73t27.5 109zM864 1055 q0 59 -17 125.5t-48 129t-84 103.5t-117 41q-42 0 -82.5 -19.5t-66.5 -52.5q-46 -59 -46 -160q0 -46 10 -97.5t31.5 -103t52 -92.5t75 -67t96.5 -26q37 0 77.5 16.5t65.5 43.5q53 56 53 159zM752 1536h417l-137 -88h-132q75 -63 113 -133t38 -160q0 -72 -24.5 -129.5 t-59.5 -93t-69.5 -65t-59 -61.5t-24.5 -66q0 -36 32 -70.5t77 -68t90.5 -73.5t77.5 -104t32 -142q0 -91 -49 -173q-71 -122 -209.5 -179.5t-298.5 -57.5q-132 0 -246.5 41.5t-172.5 137.5q-36 59 -36 131q0 81 44.5 150t118.5 115q131 82 404 100q-32 41 -47.5 73.5 t-15.5 73.5q0 40 21 85q-46 -4 -68 -4q-148 0 -249.5 96.5t-101.5 244.5q0 82 36 159t99 131q76 66 182 98t218 32z" />
-<glyph unicode="&#xf1a1;" horiz-adv-x="1984" d="M831 572q0 -56 -40.5 -96t-96.5 -40q-57 0 -98 40t-41 96q0 57 41.5 98t97.5 41t96.5 -41t40.5 -98zM1292 711q56 0 96.5 -41t40.5 -98q0 -56 -40.5 -96t-96.5 -40q-57 0 -98 40t-41 96q0 57 41.5 98t97.5 41zM1984 722q0 -62 -31 -114t-83 -82q5 -33 5 -61 q0 -121 -68.5 -230.5t-197.5 -193.5q-125 -82 -285.5 -125.5t-335.5 -43.5q-176 0 -336.5 43.5t-284.5 125.5q-129 84 -197.5 193t-68.5 231q0 29 5 66q-48 31 -77 81.5t-29 109.5q0 94 66 160t160 66q83 0 148 -55q248 158 592 164l134 423q4 14 17.5 21.5t28.5 4.5 l347 -82q22 50 68.5 81t102.5 31q77 0 131.5 -54.5t54.5 -131.5t-54.5 -132t-131.5 -55q-76 0 -130.5 54t-55.5 131l-315 74l-116 -366q327 -14 560 -166q64 58 151 58q94 0 160 -66t66 -160zM1664 1459q-45 0 -77 -32t-32 -77t32 -77t77 -32t77 32t32 77t-32 77t-77 32z M77 722q0 -67 51 -111q49 131 180 235q-36 25 -82 25q-62 0 -105.5 -43.5t-43.5 -105.5zM1567 105q112 73 171.5 166t59.5 194t-59.5 193.5t-171.5 165.5q-116 75 -265.5 115.5t-313.5 40.5t-313.5 -40.5t-265.5 -115.5q-112 -73 -171.5 -165.5t-59.5 -193.5t59.5 -194 t171.5 -166q116 -75 265.5 -115.5t313.5 -40.5t313.5 40.5t265.5 115.5zM1850 605q57 46 57 117q0 62 -43.5 105.5t-105.5 43.5q-49 0 -86 -28q131 -105 178 -238zM1258 237q11 11 27 11t27 -11t11 -27.5t-11 -27.5q-99 -99 -319 -99h-2q-220 0 -319 99q-11 11 -11 27.5 t11 27.5t27 11t27 -11q77 -77 265 -77h2q188 0 265 77z" />
-<glyph unicode="&#xf1a2;" d="M950 393q7 7 17.5 7t17.5 -7t7 -18t-7 -18q-65 -64 -208 -64h-1h-1q-143 0 -207 64q-8 7 -8 18t8 18q7 7 17.5 7t17.5 -7q49 -51 172 -51h1h1q122 0 173 51zM671 613q0 -37 -26 -64t-63 -27t-63 27t-26 64t26 63t63 26t63 -26t26 -63zM1214 1049q-29 0 -50 21t-21 50 q0 30 21 51t50 21q30 0 51 -21t21 -51q0 -29 -21 -50t-51 -21zM1216 1408q132 0 226 -94t94 -227v-894q0 -133 -94 -227t-226 -94h-896q-132 0 -226 94t-94 227v894q0 133 94 227t226 94h896zM1321 596q35 14 57 45.5t22 70.5q0 51 -36 87.5t-87 36.5q-60 0 -98 -48 q-151 107 -375 115l83 265l206 -49q1 -50 36.5 -85t84.5 -35q50 0 86 35.5t36 85.5t-36 86t-86 36q-36 0 -66 -20.5t-45 -53.5l-227 54q-9 2 -17.5 -2.5t-11.5 -14.5l-95 -302q-224 -4 -381 -113q-36 43 -93 43q-51 0 -87 -36.5t-36 -87.5q0 -37 19.5 -67.5t52.5 -45.5 q-7 -25 -7 -54q0 -98 74 -181.5t201.5 -132t278.5 -48.5q150 0 277.5 48.5t201.5 132t74 181.5q0 27 -6 54zM971 702q37 0 63 -26t26 -63t-26 -64t-63 -27t-63 27t-26 64t26 63t63 26z" />
-<glyph unicode="&#xf1a3;" d="M866 697l90 27v62q0 79 -58 135t-138 56t-138 -55.5t-58 -134.5v-283q0 -20 -14 -33.5t-33 -13.5t-32.5 13.5t-13.5 33.5v120h-151v-122q0 -82 57.5 -139t139.5 -57q81 0 138.5 56.5t57.5 136.5v280q0 19 13.5 33t33.5 14q19 0 32.5 -14t13.5 -33v-54zM1199 502v122h-150 v-126q0 -20 -13.5 -33.5t-33.5 -13.5q-19 0 -32.5 14t-13.5 33v123l-90 -26l-60 28v-123q0 -80 58 -137t139 -57t138.5 57t57.5 139zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103 t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf1a4;" horiz-adv-x="1920" d="M1062 824v118q0 42 -30 72t-72 30t-72 -30t-30 -72v-612q0 -175 -126 -299t-303 -124q-178 0 -303.5 125.5t-125.5 303.5v266h328v-262q0 -43 30 -72.5t72 -29.5t72 29.5t30 72.5v620q0 171 126.5 292t301.5 121q176 0 302 -122t126 -294v-136l-195 -58zM1592 602h328 v-266q0 -178 -125.5 -303.5t-303.5 -125.5q-177 0 -303 124.5t-126 300.5v268l131 -61l195 58v-270q0 -42 30 -71.5t72 -29.5t72 29.5t30 71.5v275z" />
-<glyph unicode="&#xf1a5;" d="M1472 160v480h-704v704h-480q-93 0 -158.5 -65.5t-65.5 -158.5v-480h704v-704h480q93 0 158.5 65.5t65.5 158.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />
-<glyph unicode="&#xf1a6;" horiz-adv-x="2048" d="M328 1254h204v-983h-532v697h328v286zM328 435v369h-123v-369h123zM614 968v-697h205v697h-205zM614 1254v-204h205v204h-205zM901 968h533v-942h-533v163h328v82h-328v697zM1229 435v369h-123v-369h123zM1516 968h532v-942h-532v163h327v82h-327v697zM1843 435v369h-123 v-369h123z" />
-<glyph unicode="&#xf1a7;" d="M1046 516q0 -64 -38 -109t-91 -45q-43 0 -70 15v277q28 17 70 17q53 0 91 -45.5t38 -109.5zM703 944q0 -64 -38 -109.5t-91 -45.5q-43 0 -70 15v277q28 17 70 17q53 0 91 -45t38 -109zM1265 513q0 134 -88 229t-213 95q-20 0 -39 -3q-23 -78 -78 -136q-87 -95 -211 -101 v-636l211 41v206q51 -19 117 -19q125 0 213 95t88 229zM922 940q0 134 -88.5 229t-213.5 95q-74 0 -141 -36h-186v-840l211 41v206q55 -19 116 -19q125 0 213.5 95t88.5 229zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf1a8;" horiz-adv-x="2038" d="M1222 607q75 3 143.5 -20.5t118 -58.5t101 -94.5t84 -108t75.5 -120.5q33 -56 78.5 -109t75.5 -80.5t99 -88.5q-48 -30 -108.5 -57.5t-138.5 -59t-114 -47.5q-44 37 -74 115t-43.5 164.5t-33 180.5t-42.5 168.5t-72.5 123t-122.5 48.5l-10 -2l-6 -4q4 -5 13 -14 q6 -5 28 -23.5t25.5 -22t19 -18t18 -20.5t11.5 -21t10.5 -27.5t4.5 -31t4 -40.5l1 -33q1 -26 -2.5 -57.5t-7.5 -52t-12.5 -58.5t-11.5 -53q-35 1 -101 -9.5t-98 -10.5q-39 0 -72 10q-2 16 -2 47q0 74 3 96q2 13 31.5 41.5t57 59t26.5 51.5q-24 2 -43 -24 q-36 -53 -111.5 -99.5t-136.5 -46.5q-25 0 -75.5 63t-106.5 139.5t-84 96.5q-6 4 -27 30q-482 -112 -513 -112q-16 0 -28 11t-12 27q0 15 8.5 26.5t22.5 14.5l486 106q-8 14 -8 25t5.5 17.5t16 11.5t20 7t23 4.5t18.5 4.5q4 1 15.5 7.5t17.5 6.5q15 0 28 -16t20 -33 q163 37 172 37q17 0 29.5 -11t12.5 -28q0 -15 -8.5 -26t-23.5 -14l-182 -40l-1 -16q-1 -26 81.5 -117.5t104.5 -91.5q47 0 119 80t72 129q0 36 -23.5 53t-51 18.5t-51 11.5t-23.5 34q0 16 10 34l-68 19q43 44 43 117q0 26 -5 58q82 16 144 16q44 0 71.5 -1.5t48.5 -8.5 t31 -13.5t20.5 -24.5t15.5 -33.5t17 -47.5t24 -60l50 25q-3 -40 -23 -60t-42.5 -21t-40 -6.5t-16.5 -20.5zM1282 842q-5 5 -13.5 15.5t-12 14.5t-10.5 11.5t-10 10.5l-8 8t-8.5 7.5t-8 5t-8.5 4.5q-7 3 -14.5 5t-20.5 2.5t-22 0.5h-32.5h-37.5q-126 0 -217 -43 q16 30 36 46.5t54 29.5t65.5 36t46 36.5t50 55t43.5 50.5q12 -9 28 -31.5t32 -36.5t38 -13l12 1v-76l22 -1q247 95 371 190q28 21 50 39t42.5 37.5t33 31t29.5 34t24 31t24.5 37t23 38t27 47.5t29.5 53l7 9q-2 -53 -43 -139q-79 -165 -205 -264t-306 -142q-14 -3 -42 -7.5 t-50 -9.5t-39 -14q3 -19 24.5 -46t21.5 -34q0 -11 -26 -30zM1061 -79q39 26 131.5 47.5t146.5 21.5q9 0 22.5 -15.5t28 -42.5t26 -50t24 -51t14.5 -33q-121 -45 -244 -45q-61 0 -125 11zM822 568l48 12l109 -177l-73 -48zM1323 51q3 -15 3 -16q0 -7 -17.5 -14.5t-46 -13 t-54 -9.5t-53.5 -7.5t-32 -4.5l-7 43q21 2 60.5 8.5t72 10t60.5 3.5h14zM866 679l-96 -20l-6 17q10 1 32.5 7t34.5 6q19 0 35 -10zM1061 45h31l10 -83l-41 -12v95zM1950 1535v1v-1zM1950 1535l-1 -5l-2 -2l1 3zM1950 1535l1 1z" />
-<glyph unicode="&#xf1a9;" d="M1167 -50q-5 19 -24 5q-30 -22 -87 -39t-131 -17q-129 0 -193 49q-5 4 -13 4q-11 0 -26 -12q-7 -6 -7.5 -16t7.5 -20q34 -32 87.5 -46t102.5 -12.5t99 4.5q41 4 84.5 20.5t65 30t28.5 20.5q12 12 7 29zM1128 65q-19 47 -39 61q-23 15 -76 15q-47 0 -71 -10 q-29 -12 -78 -56q-26 -24 -12 -44q9 -8 17.5 -4.5t31.5 23.5q3 2 10.5 8.5t10.5 8.5t10 7t11.5 7t12.5 5t15 4.5t16.5 2.5t20.5 1q27 0 44.5 -7.5t23 -14.5t13.5 -22q10 -17 12.5 -20t12.5 1q23 12 14 34zM1483 346q0 22 -5 44.5t-16.5 45t-34 36.5t-52.5 14 q-33 0 -97 -41.5t-129 -83.5t-101 -42q-27 -1 -63.5 19t-76 49t-83.5 58t-100 49t-111 19q-115 -1 -197 -78.5t-84 -178.5q-2 -112 74 -164q29 -20 62.5 -28.5t103.5 -8.5q57 0 132 32.5t134 71t120 70.5t93 31q26 -1 65 -31.5t71.5 -67t68 -67.5t55.5 -32q35 -3 58.5 14 t55.5 63q28 41 42.5 101t14.5 106zM1536 506q0 -164 -62 -304.5t-166 -236t-242.5 -149.5t-290.5 -54t-293 57.5t-247.5 157t-170.5 241.5t-64 302q0 89 19.5 172.5t49 145.5t70.5 118.5t78.5 94t78.5 69.5t64.5 46.5t42.5 24.5q14 8 51 26.5t54.5 28.5t48 30t60.5 44 q36 28 58 72.5t30 125.5q129 -155 186 -193q44 -29 130 -68t129 -66q21 -13 39 -25t60.5 -46.5t76 -70.5t75 -95t69 -122t47 -148.5t19.5 -177.5z" />
-<glyph unicode="&#xf1aa;" d="M1070 463l-160 -160l-151 -152l-30 -30q-65 -64 -151.5 -87t-171.5 -2q-16 -70 -72 -115t-129 -45q-85 0 -145 60.5t-60 145.5q0 72 44.5 128t113.5 72q-22 86 1 173t88 152l12 12l151 -152l-11 -11q-37 -37 -37 -89t37 -90q37 -37 89 -37t89 37l30 30l151 152l161 160z M729 1145l12 -12l-152 -152l-12 12q-37 37 -89 37t-89 -37t-37 -89.5t37 -89.5l29 -29l152 -152l160 -160l-151 -152l-161 160l-151 152l-30 30q-68 67 -90 159.5t5 179.5q-70 15 -115 71t-45 129q0 85 60 145.5t145 60.5q76 0 133.5 -49t69.5 -123q84 20 169.5 -3.5 t149.5 -87.5zM1536 78q0 -85 -60 -145.5t-145 -60.5q-74 0 -131 47t-71 118q-86 -28 -179.5 -6t-161.5 90l-11 12l151 152l12 -12q37 -37 89 -37t89 37t37 89t-37 89l-30 30l-152 152l-160 160l152 152l160 -160l152 -152l29 -30q64 -64 87.5 -150.5t2.5 -171.5 q76 -11 126.5 -68.5t50.5 -134.5zM1534 1202q0 -77 -51 -135t-127 -69q26 -85 3 -176.5t-90 -158.5l-12 -12l-151 152l12 12q37 37 37 89t-37 89t-89 37t-89 -37l-30 -30l-152 -152l-160 -160l-152 152l161 160l152 152l29 30q67 67 159 89.5t178 -3.5q11 75 68.5 126 t135.5 51q85 0 145 -60.5t60 -145.5z" />
-<glyph unicode="&#xf1ab;" d="M654 458q-1 -3 -12.5 0.5t-31.5 11.5l-20 9q-44 20 -87 49q-7 5 -41 31.5t-38 28.5q-67 -103 -134 -181q-81 -95 -105 -110q-4 -2 -19.5 -4t-18.5 0q6 4 82 92q21 24 85.5 115t78.5 118q17 30 51 98.5t36 77.5q-8 1 -110 -33q-8 -2 -27.5 -7.5t-34.5 -9.5t-17 -5 q-2 -2 -2 -10.5t-1 -9.5q-5 -10 -31 -15q-23 -7 -47 0q-18 4 -28 21q-4 6 -5 23q6 2 24.5 5t29.5 6q58 16 105 32q100 35 102 35q10 2 43 19.5t44 21.5q9 3 21.5 8t14.5 5.5t6 -0.5q2 -12 -1 -33q0 -2 -12.5 -27t-26.5 -53.5t-17 -33.5q-25 -50 -77 -131l64 -28 q12 -6 74.5 -32t67.5 -28q4 -1 10.5 -25.5t4.5 -30.5zM449 944q3 -15 -4 -28q-12 -23 -50 -38q-30 -12 -60 -12q-26 3 -49 26q-14 15 -18 41l1 3q3 -3 19.5 -5t26.5 0t58 16q36 12 55 14q17 0 21 -17zM1147 815l63 -227l-139 42zM39 15l694 232v1032l-694 -233v-1031z M1280 332l102 -31l-181 657l-100 31l-216 -536l102 -31l45 110l211 -65zM777 1294l573 -184v380zM1088 -29l158 -13l-54 -160l-40 66q-130 -83 -276 -108q-58 -12 -91 -12h-84q-79 0 -199.5 39t-183.5 85q-8 7 -8 16q0 8 5 13.5t13 5.5q4 0 18 -7.5t30.5 -16.5t20.5 -11 q73 -37 159.5 -61.5t157.5 -24.5q95 0 167 14.5t157 50.5q15 7 30.5 15.5t34 19t28.5 16.5zM1536 1050v-1079l-774 246q-14 -6 -375 -127.5t-368 -121.5q-13 0 -18 13q0 1 -1 3v1078q3 9 4 10q5 6 20 11q106 35 149 50v384l558 -198q2 0 160.5 55t316 108.5t161.5 53.5 q20 0 20 -21v-418z" />
-<glyph unicode="&#xf1ac;" horiz-adv-x="1792" d="M288 1152q66 0 113 -47t47 -113v-1088q0 -66 -47 -113t-113 -47h-128q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h128zM1664 989q58 -34 93 -93t35 -128v-768q0 -106 -75 -181t-181 -75h-864q-66 0 -113 47t-47 113v1536q0 40 28 68t68 28h672q40 0 88 -20t76 -48 l152 -152q28 -28 48 -76t20 -88v-163zM928 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM928 512v128q0 14 -9 23 t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1184 256v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128 q14 0 23 9t9 23zM1184 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 0v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 256v128q0 14 -9 23t-23 9h-128 q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1440 512v128q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h128q14 0 23 9t9 23zM1536 896v256h-160q-40 0 -68 28t-28 68v160h-640v-512h896z" />
-<glyph unicode="&#xf1ad;" d="M1344 1536q26 0 45 -19t19 -45v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280zM512 1248v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 992v-64q0 -14 9 -23t23 -9h64q14 0 23 9 t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 736v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM512 480v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23zM384 160v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM384 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM384 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 -96v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9 t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM896 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 928v64 q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM896 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 160v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64 q14 0 23 9t9 23zM1152 416v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 672v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 928v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9 t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1152 1184v64q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h64q14 0 23 9t9 23z" />
-<glyph unicode="&#xf1ae;" horiz-adv-x="1280" d="M1188 988l-292 -292v-824q0 -46 -33 -79t-79 -33t-79 33t-33 79v384h-64v-384q0 -46 -33 -79t-79 -33t-79 33t-33 79v824l-292 292q-28 28 -28 68t28 68t68 28t68 -28l228 -228h368l228 228q28 28 68 28t68 -28t28 -68t-28 -68zM864 1152q0 -93 -65.5 -158.5 t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />
-<glyph unicode="&#xf1b0;" horiz-adv-x="1664" d="M780 1064q0 -60 -19 -113.5t-63 -92.5t-105 -39q-76 0 -138 57.5t-92 135.5t-30 151q0 60 19 113.5t63 92.5t105 39q77 0 138.5 -57.5t91.5 -135t30 -151.5zM438 581q0 -80 -42 -139t-119 -59q-76 0 -141.5 55.5t-100.5 133.5t-35 152q0 80 42 139.5t119 59.5 q76 0 141.5 -55.5t100.5 -134t35 -152.5zM832 608q118 0 255 -97.5t229 -237t92 -254.5q0 -46 -17 -76.5t-48.5 -45t-64.5 -20t-76 -5.5q-68 0 -187.5 45t-182.5 45q-66 0 -192.5 -44.5t-200.5 -44.5q-183 0 -183 146q0 86 56 191.5t139.5 192.5t187.5 146t193 59zM1071 819 q-61 0 -105 39t-63 92.5t-19 113.5q0 74 30 151.5t91.5 135t138.5 57.5q61 0 105 -39t63 -92.5t19 -113.5q0 -73 -30 -151t-92 -135.5t-138 -57.5zM1503 923q77 0 119 -59.5t42 -139.5q0 -74 -35 -152t-100.5 -133.5t-141.5 -55.5q-77 0 -119 59t-42 139q0 74 35 152.5 t100.5 134t141.5 55.5z" />
-<glyph unicode="&#xf1b1;" horiz-adv-x="768" d="M704 1008q0 -145 -57 -243.5t-152 -135.5l45 -821q2 -26 -16 -45t-44 -19h-192q-26 0 -44 19t-16 45l45 821q-95 37 -152 135.5t-57 243.5q0 128 42.5 249.5t117.5 200t160 78.5t160 -78.5t117.5 -200t42.5 -249.5z" />
-<glyph unicode="&#xf1b2;" horiz-adv-x="1792" d="M896 -93l640 349v636l-640 -233v-752zM832 772l698 254l-698 254l-698 -254zM1664 1024v-768q0 -35 -18 -65t-49 -47l-704 -384q-28 -16 -61 -16t-61 16l-704 384q-31 17 -49 47t-18 65v768q0 40 23 73t61 47l704 256q22 8 44 8t44 -8l704 -256q38 -14 61 -47t23 -73z " />
-<glyph unicode="&#xf1b3;" horiz-adv-x="2304" d="M640 -96l384 192v314l-384 -164v-342zM576 358l404 173l-404 173l-404 -173zM1664 -96l384 192v314l-384 -164v-342zM1600 358l404 173l-404 173l-404 -173zM1152 651l384 165v266l-384 -164v-267zM1088 1030l441 189l-441 189l-441 -189zM2176 512v-416q0 -36 -19 -67 t-52 -47l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-5 2 -7 4q-2 -2 -7 -4l-448 -224q-25 -14 -57 -14t-57 14l-448 224q-33 16 -52 47t-19 67v416q0 38 21.5 70t56.5 48l434 186v400q0 38 21.5 70t56.5 48l448 192q23 10 50 10t50 -10l448 -192q35 -16 56.5 -48t21.5 -70 v-400l434 -186q36 -16 57 -48t21 -70z" />
-<glyph unicode="&#xf1b4;" horiz-adv-x="2048" d="M1848 1197h-511v-124h511v124zM1596 771q-90 0 -146 -52.5t-62 -142.5h408q-18 195 -200 195zM1612 186q63 0 122 32t76 87h221q-100 -307 -427 -307q-214 0 -340.5 132t-126.5 347q0 208 130.5 345.5t336.5 137.5q138 0 240.5 -68t153 -179t50.5 -248q0 -17 -2 -47h-658 q0 -111 57.5 -171.5t166.5 -60.5zM277 236h296q205 0 205 167q0 180 -199 180h-302v-347zM277 773h281q78 0 123.5 36.5t45.5 113.5q0 144 -190 144h-260v-294zM0 1282h594q87 0 155 -14t126.5 -47.5t90 -96.5t31.5 -154q0 -181 -172 -263q114 -32 172 -115t58 -204 q0 -75 -24.5 -136.5t-66 -103.5t-98.5 -71t-121 -42t-134 -13h-611v1260z" />
-<glyph unicode="&#xf1b5;" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM499 1041h-371v-787h382q117 0 197 57.5t80 170.5q0 158 -143 200q107 52 107 164q0 57 -19.5 96.5 t-56.5 60.5t-79 29.5t-97 8.5zM477 723h-176v184h163q119 0 119 -90q0 -94 -106 -94zM486 388h-185v217h189q124 0 124 -113q0 -104 -128 -104zM1136 356q-68 0 -104 38t-36 107h411q1 10 1 30q0 132 -74.5 220.5t-203.5 88.5q-128 0 -210 -86t-82 -216q0 -135 79 -217 t213 -82q205 0 267 191h-138q-11 -34 -47.5 -54t-75.5 -20zM1126 722q113 0 124 -122h-254q4 56 39 89t91 33zM964 988h319v-77h-319v77z" />
-<glyph unicode="&#xf1b6;" horiz-adv-x="1792" d="M1582 954q0 -101 -71.5 -172.5t-172.5 -71.5t-172.5 71.5t-71.5 172.5t71.5 172.5t172.5 71.5t172.5 -71.5t71.5 -172.5zM812 212q0 104 -73 177t-177 73q-27 0 -54 -6l104 -42q77 -31 109.5 -106.5t1.5 -151.5q-31 -77 -107 -109t-152 -1q-21 8 -62 24.5t-61 24.5 q32 -60 91 -96.5t130 -36.5q104 0 177 73t73 177zM1642 953q0 126 -89.5 215.5t-215.5 89.5q-127 0 -216.5 -89.5t-89.5 -215.5q0 -127 89.5 -216t216.5 -89q126 0 215.5 89t89.5 216zM1792 953q0 -189 -133.5 -322t-321.5 -133l-437 -319q-12 -129 -109 -218t-229 -89 q-121 0 -214 76t-118 192l-230 92v429l389 -157q79 48 173 48q13 0 35 -2l284 407q2 187 135.5 319t320.5 132q188 0 321.5 -133.5t133.5 -321.5z" />
-<glyph unicode="&#xf1b7;" d="M1242 889q0 80 -57 136.5t-137 56.5t-136.5 -57t-56.5 -136q0 -80 56.5 -136.5t136.5 -56.5t137 56.5t57 136.5zM632 301q0 -83 -58 -140.5t-140 -57.5q-56 0 -103 29t-72 77q52 -20 98 -40q60 -24 120 1.5t85 86.5q24 60 -1.5 120t-86.5 84l-82 33q22 5 42 5 q82 0 140 -57.5t58 -140.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v153l172 -69q20 -92 93.5 -152t168.5 -60q104 0 181 70t87 173l345 252q150 0 255.5 105.5t105.5 254.5q0 150 -105.5 255.5t-255.5 105.5 q-148 0 -253 -104.5t-107 -252.5l-225 -322q-9 1 -28 1q-75 0 -137 -37l-297 119v468q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5zM1289 887q0 -100 -71 -170.5t-171 -70.5t-170.5 70.5t-70.5 170.5t70.5 171t170.5 71q101 0 171.5 -70.5t70.5 -171.5z " />
-<glyph unicode="&#xf1b8;" horiz-adv-x="1792" d="M836 367l-15 -368l-2 -22l-420 29q-36 3 -67 31.5t-47 65.5q-11 27 -14.5 55t4 65t12 55t21.5 64t19 53q78 -12 509 -28zM449 953l180 -379l-147 92q-63 -72 -111.5 -144.5t-72.5 -125t-39.5 -94.5t-18.5 -63l-4 -21l-190 357q-17 26 -18 56t6 47l8 18q35 63 114 188 l-140 86zM1680 436l-188 -359q-12 -29 -36.5 -46.5t-43.5 -20.5l-18 -4q-71 -7 -219 -12l8 -164l-230 367l211 362l7 -173q170 -16 283 -5t170 33zM895 1360q-47 -63 -265 -435l-317 187l-19 12l225 356q20 31 60 45t80 10q24 -2 48.5 -12t42 -21t41.5 -33t36 -34.5 t36 -39.5t32 -35zM1550 1053l212 -363q18 -37 12.5 -76t-27.5 -74q-13 -20 -33 -37t-38 -28t-48.5 -22t-47 -16t-51.5 -14t-46 -12q-34 72 -265 436l313 195zM1407 1279l142 83l-220 -373l-419 20l151 86q-34 89 -75 166t-75.5 123.5t-64.5 80t-47 46.5l-17 13l405 -1 q31 3 58 -10.5t39 -28.5l11 -15q39 -61 112 -190z" />
-<glyph unicode="&#xf1b9;" horiz-adv-x="2048" d="M480 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM516 768h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5zM1888 448q0 66 -47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47t113 47t47 113zM2048 544v-384 q0 -14 -9 -23t-23 -9h-96v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-1024v-128q0 -80 -56 -136t-136 -56t-136 56t-56 136v128h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5t179 63.5h768q98 0 179 -63.5t104 -157.5 l105 -419h28q93 0 158.5 -65.5t65.5 -158.5z" />
-<glyph unicode="&#xf1ba;" horiz-adv-x="2048" d="M1824 640q93 0 158.5 -65.5t65.5 -158.5v-384q0 -14 -9 -23t-23 -9h-96v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-1024v-64q0 -80 -56 -136t-136 -56t-136 56t-56 136v64h-96q-14 0 -23 9t-9 23v384q0 93 65.5 158.5t158.5 65.5h28l105 419q23 94 104 157.5 t179 63.5h128v224q0 14 9 23t23 9h448q14 0 23 -9t9 -23v-224h128q98 0 179 -63.5t104 -157.5l105 -419h28zM320 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47zM516 640h1016l-89 357q-2 8 -14 17.5t-21 9.5h-768q-9 0 -21 -9.5t-14 -17.5z M1728 160q66 0 113 47t47 113t-47 113t-113 47t-113 -47t-47 -113t47 -113t113 -47z" />
-<glyph unicode="&#xf1bb;" d="M1504 64q0 -26 -19 -45t-45 -19h-462q1 -17 6 -87.5t5 -108.5q0 -25 -18 -42.5t-43 -17.5h-320q-25 0 -43 17.5t-18 42.5q0 38 5 108.5t6 87.5h-462q-26 0 -45 19t-19 45t19 45l402 403h-229q-26 0 -45 19t-19 45t19 45l402 403h-197q-26 0 -45 19t-19 45t19 45l384 384 q19 19 45 19t45 -19l384 -384q19 -19 19 -45t-19 -45t-45 -19h-197l402 -403q19 -19 19 -45t-19 -45t-45 -19h-229l402 -403q19 -19 19 -45z" />
-<glyph unicode="&#xf1bc;" d="M1127 326q0 32 -30 51q-193 115 -447 115q-133 0 -287 -34q-42 -9 -42 -52q0 -20 13.5 -34.5t35.5 -14.5q5 0 37 8q132 27 243 27q226 0 397 -103q19 -11 33 -11q19 0 33 13.5t14 34.5zM1223 541q0 40 -35 61q-237 141 -548 141q-153 0 -303 -42q-48 -13 -48 -64 q0 -25 17.5 -42.5t42.5 -17.5q7 0 37 8q122 33 251 33q279 0 488 -124q24 -13 38 -13q25 0 42.5 17.5t17.5 42.5zM1331 789q0 47 -40 70q-126 73 -293 110.5t-343 37.5q-204 0 -364 -47q-23 -7 -38.5 -25.5t-15.5 -48.5q0 -31 20.5 -52t51.5 -21q11 0 40 8q133 37 307 37 q159 0 309.5 -34t253.5 -95q21 -12 40 -12q29 0 50.5 20.5t21.5 51.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf1bd;" d="M1397 1408q58 0 98.5 -40.5t40.5 -98.5v-1258q0 -58 -40.5 -98.5t-98.5 -40.5h-1258q-58 0 -98.5 40.5t-40.5 98.5v1258q0 58 40.5 98.5t98.5 40.5h1258zM1465 11v1258q0 28 -20 48t-48 20h-1258q-28 0 -48 -20t-20 -48v-1258q0 -28 20 -48t48 -20h1258q28 0 48 20t20 48 zM694 749l188 -387l533 145v-496q0 -7 -5.5 -12.5t-12.5 -5.5h-1258q-7 0 -12.5 5.5t-5.5 12.5v141l711 195l-212 439q4 1 12 2.5t12 1.5q170 32 303.5 21.5t221 -46t143.5 -94.5q27 -28 -25 -42q-64 -16 -256 -62l-97 198q-111 7 -240 -16zM1397 1287q7 0 12.5 -5.5 t5.5 -12.5v-428q-85 30 -188 52q-294 64 -645 12l-18 -3l-65 134h-233l85 -190q-132 -51 -230 -137v560q0 7 5.5 12.5t12.5 5.5h1258zM286 387q-14 -3 -26 4.5t-14 21.5q-24 203 166 305l129 -270z" />
-<glyph unicode="&#xf1be;" horiz-adv-x="2304" d="M784 164l16 241l-16 523q-1 10 -7.5 17t-16.5 7q-9 0 -16 -7t-7 -17l-14 -523l14 -241q1 -10 7.5 -16.5t15.5 -6.5q22 0 24 23zM1080 193l11 211l-12 586q0 16 -13 24q-8 5 -16 5t-16 -5q-13 -8 -13 -24l-1 -6l-10 -579q0 -1 11 -236v-1q0 -10 6 -17q9 -11 23 -11 q11 0 20 9q9 7 9 20zM35 533l20 -128l-20 -126q-2 -9 -9 -9t-9 9l-17 126l17 128q2 9 9 9t9 -9zM121 612l26 -207l-26 -203q-2 -9 -10 -9q-9 0 -9 10l-23 202l23 207q0 9 9 9q8 0 10 -9zM401 159zM213 650l25 -245l-25 -237q0 -11 -11 -11q-10 0 -12 11l-21 237l21 245 q2 12 12 12q11 0 11 -12zM307 657l23 -252l-23 -244q-2 -13 -14 -13q-13 0 -13 13l-21 244l21 252q0 13 13 13q12 0 14 -13zM401 639l21 -234l-21 -246q-2 -16 -16 -16q-6 0 -10.5 4.5t-4.5 11.5l-20 246l20 234q0 6 4.5 10.5t10.5 4.5q14 0 16 -15zM784 164zM495 785 l21 -380l-21 -246q0 -7 -5 -12.5t-12 -5.5q-16 0 -18 18l-18 246l18 380q2 18 18 18q7 0 12 -5.5t5 -12.5zM589 871l19 -468l-19 -244q0 -8 -5.5 -13.5t-13.5 -5.5q-18 0 -20 19l-16 244l16 468q2 19 20 19q8 0 13.5 -5.5t5.5 -13.5zM687 911l18 -506l-18 -242 q-2 -21 -22 -21q-19 0 -21 21l-16 242l16 506q0 9 6.5 15.5t14.5 6.5q9 0 15 -6.5t7 -15.5zM1079 169v0v0zM881 915l15 -510l-15 -239q0 -10 -7.5 -17.5t-17.5 -7.5t-17 7t-8 18l-14 239l14 510q0 11 7.5 18t17.5 7t17.5 -7t7.5 -18zM980 896l14 -492l-14 -236q0 -11 -8 -19 t-19 -8t-19 8t-9 19l-12 236l12 492q1 12 9 20t19 8t18.5 -8t8.5 -20zM1192 404l-14 -231v0q0 -13 -9 -22t-22 -9t-22 9t-10 22l-6 114l-6 117l12 636v3q2 15 12 24q9 7 20 7q8 0 15 -5q14 -8 16 -26zM2304 423q0 -117 -83 -199.5t-200 -82.5h-786q-13 2 -22 11t-9 22v899 q0 23 28 33q85 34 181 34q195 0 338 -131.5t160 -323.5q53 22 110 22q117 0 200 -83t83 -201z" />
-<glyph unicode="&#xf1c0;" d="M768 768q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 0q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127 t443 -43zM768 384q237 0 443 43t325 127v-170q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5t-103 128v170q119 -84 325 -127t443 -43zM768 1536q208 0 385 -34.5t280 -93.5t103 -128v-128q0 -69 -103 -128t-280 -93.5t-385 -34.5t-385 34.5t-280 93.5 t-103 128v128q0 69 103 128t280 93.5t385 34.5z" />
-<glyph unicode="&#xf1c1;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M894 465q33 -26 84 -56q59 7 117 7q147 0 177 -49q16 -22 2 -52q0 -1 -1 -2l-2 -2v-1q-6 -38 -71 -38q-48 0 -115 20t-130 53q-221 -24 -392 -83q-153 -262 -242 -262q-15 0 -28 7l-24 12q-1 1 -6 5q-10 10 -6 36q9 40 56 91.5t132 96.5q14 9 23 -6q2 -2 2 -4q52 85 107 197 q68 136 104 262q-24 82 -30.5 159.5t6.5 127.5q11 40 42 40h21h1q23 0 35 -15q18 -21 9 -68q-2 -6 -4 -8q1 -3 1 -8v-30q-2 -123 -14 -192q55 -164 146 -238zM318 54q52 24 137 158q-51 -40 -87.5 -84t-49.5 -74zM716 974q-15 -42 -2 -132q1 7 7 44q0 3 7 43q1 4 4 8 q-1 1 -1 2t-0.5 1.5t-0.5 1.5q-1 22 -13 36q0 -1 -1 -2v-2zM592 313q135 54 284 81q-2 1 -13 9.5t-16 13.5q-76 67 -127 176q-27 -86 -83 -197q-30 -56 -45 -83zM1238 329q-24 24 -140 24q76 -28 124 -28q14 0 18 1q0 1 -2 3z" />
-<glyph unicode="&#xf1c2;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M233 768v-107h70l164 -661h159l128 485q7 20 10 46q2 16 2 24h4l3 -24q1 -3 3.5 -20t5.5 -26l128 -485h159l164 661h70v107h-300v-107h90l-99 -438q-5 -20 -7 -46l-2 -21h-4l-3 21q-1 5 -4 21t-5 25l-144 545h-114l-144 -545q-2 -9 -4.5 -24.5t-3.5 -21.5l-4 -21h-4l-2 21 q-2 26 -7 46l-99 438h90v107h-300z" />
-<glyph unicode="&#xf1c3;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M429 106v-106h281v106h-75l103 161q5 7 10 16.5t7.5 13.5t3.5 4h2q1 -4 5 -10q2 -4 4.5 -7.5t6 -8t6.5 -8.5l107 -161h-76v-106h291v106h-68l-192 273l195 282h67v107h-279v-107h74l-103 -159q-4 -7 -10 -16.5t-9 -13.5l-2 -3h-2q-1 4 -5 10q-6 11 -17 23l-106 159h76v107 h-290v-107h68l189 -272l-194 -283h-68z" />
-<glyph unicode="&#xf1c4;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M416 106v-106h327v106h-93v167h137q76 0 118 15q67 23 106.5 87t39.5 146q0 81 -37 141t-100 87q-48 19 -130 19h-368v-107h92v-555h-92zM769 386h-119v268h120q52 0 83 -18q56 -33 56 -115q0 -89 -62 -120q-31 -15 -78 -15z" />
-<glyph unicode="&#xf1c5;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M1280 320v-320h-1024v192l192 192l128 -128l384 384zM448 512q-80 0 -136 56t-56 136t56 136t136 56t136 -56t56 -136t-56 -136t-136 -56z" />
-<glyph unicode="&#xf1c6;" d="M640 1152v128h-128v-128h128zM768 1024v128h-128v-128h128zM640 896v128h-128v-128h128zM768 768v128h-128v-128h128zM1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400 v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-128v-128h-128v128h-512v-1536h1280zM781 593l107 -349q8 -27 8 -52q0 -83 -72.5 -137.5t-183.5 -54.5t-183.5 54.5t-72.5 137.5q0 25 8 52q21 63 120 396v128h128v-128h79 q22 0 39 -13t23 -34zM640 128q53 0 90.5 19t37.5 45t-37.5 45t-90.5 19t-90.5 -19t-37.5 -45t37.5 -45t90.5 -19z" />
-<glyph unicode="&#xf1c7;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M620 686q20 -8 20 -30v-544q0 -22 -20 -30q-8 -2 -12 -2q-12 0 -23 9l-166 167h-131q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h131l166 167q16 15 35 7zM1037 -3q31 0 50 24q129 159 129 363t-129 363q-16 21 -43 24t-47 -14q-21 -17 -23.5 -43.5t14.5 -47.5 q100 -123 100 -282t-100 -282q-17 -21 -14.5 -47.5t23.5 -42.5q18 -15 40 -15zM826 145q27 0 47 20q87 93 87 219t-87 219q-18 19 -45 20t-46 -17t-20 -44.5t18 -46.5q52 -57 52 -131t-52 -131q-19 -20 -18 -46.5t20 -44.5q20 -17 44 -17z" />
-<glyph unicode="&#xf1c8;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M768 768q52 0 90 -38t38 -90v-384q0 -52 -38 -90t-90 -38h-384q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h384zM1260 766q20 -8 20 -30v-576q0 -22 -20 -30q-8 -2 -12 -2q-14 0 -23 9l-265 266v90l265 266q9 9 23 9q4 0 12 -2z" />
-<glyph unicode="&#xf1c9;" d="M1468 1156q28 -28 48 -76t20 -88v-1152q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1600q0 40 28 68t68 28h896q40 0 88 -20t76 -48zM1024 1400v-376h376q-10 29 -22 41l-313 313q-12 12 -41 22zM1408 -128v1024h-416q-40 0 -68 28t-28 68v416h-768v-1536h1280z M480 768q8 11 21 12.5t24 -6.5l51 -38q11 -8 12.5 -21t-6.5 -24l-182 -243l182 -243q8 -11 6.5 -24t-12.5 -21l-51 -38q-11 -8 -24 -6.5t-21 12.5l-226 301q-14 19 0 38zM1282 467q14 -19 0 -38l-226 -301q-8 -11 -21 -12.5t-24 6.5l-51 38q-11 8 -12.5 21t6.5 24l182 243 l-182 243q-8 11 -6.5 24t12.5 21l51 38q11 8 24 6.5t21 -12.5zM662 6q-13 2 -20.5 13t-5.5 24l138 831q2 13 13 20.5t24 5.5l63 -10q13 -2 20.5 -13t5.5 -24l-138 -831q-2 -13 -13 -20.5t-24 -5.5z" />
-<glyph unicode="&#xf1ca;" d="M1497 709v-198q-101 -23 -198 -23q-65 -136 -165.5 -271t-181.5 -215.5t-128 -106.5q-80 -45 -162 3q-28 17 -60.5 43.5t-85 83.5t-102.5 128.5t-107.5 184t-105.5 244t-91.5 314.5t-70.5 390h283q26 -218 70 -398.5t104.5 -317t121.5 -235.5t140 -195q169 169 287 406 q-142 72 -223 220t-81 333q0 192 104 314.5t284 122.5q178 0 273 -105.5t95 -297.5q0 -159 -58 -286q-7 -1 -19.5 -3t-46 -2t-63 6t-62 25.5t-50.5 51.5q31 103 31 184q0 87 -29 132t-79 45q-53 0 -85 -49.5t-32 -140.5q0 -186 105 -293.5t267 -107.5q62 0 121 14z" />
-<glyph unicode="&#xf1cb;" horiz-adv-x="1792" d="M216 367l603 -402v359l-334 223zM154 511l193 129l-193 129v-258zM973 -35l603 402l-269 180l-334 -223v-359zM896 458l272 182l-272 182l-272 -182zM485 733l334 223v359l-603 -402zM1445 640l193 -129v258zM1307 733l269 180l-603 402v-359zM1792 913v-546 q0 -41 -34 -64l-819 -546q-21 -13 -43 -13t-43 13l-819 546q-34 23 -34 64v546q0 41 34 64l819 546q21 13 43 13t43 -13l819 -546q34 -23 34 -64z" />
-<glyph unicode="&#xf1cc;" horiz-adv-x="2048" d="M1800 764q111 -46 179.5 -145.5t68.5 -221.5q0 -164 -118 -280.5t-285 -116.5q-4 0 -11.5 0.5t-10.5 0.5h-1209h-1h-2h-5q-170 10 -288 125.5t-118 280.5q0 110 55 203t147 147q-12 39 -12 82q0 115 82 196t199 81q95 0 172 -58q75 154 222.5 248t326.5 94 q166 0 306 -80.5t221.5 -218.5t81.5 -301q0 -6 -0.5 -18t-0.5 -18zM468 498q0 -122 84 -193t208 -71q137 0 240 99q-16 20 -47.5 56.5t-43.5 50.5q-67 -65 -144 -65q-55 0 -93.5 33.5t-38.5 87.5q0 53 38.5 87t91.5 34q44 0 84.5 -21t73 -55t65 -75t69 -82t77 -75t97 -55 t121.5 -21q121 0 204.5 71.5t83.5 190.5q0 121 -84 192t-207 71q-143 0 -241 -97q14 -16 29.5 -34t34.5 -40t29 -34q66 64 142 64q52 0 92 -33t40 -84q0 -57 -37 -91.5t-94 -34.5q-43 0 -82.5 21t-72 55t-65.5 75t-69.5 82t-77.5 75t-96.5 55t-118.5 21q-122 0 -207 -70.5 t-85 -189.5z" />
-<glyph unicode="&#xf1cd;" horiz-adv-x="1792" d="M896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM896 1408q-190 0 -361 -90l194 -194q82 28 167 28t167 -28l194 194q-171 90 -361 90zM218 279l194 194 q-28 82 -28 167t28 167l-194 194q-90 -171 -90 -361t90 -361zM896 -128q190 0 361 90l-194 194q-82 -28 -167 -28t-167 28l-194 -194q171 -90 361 -90zM896 256q159 0 271.5 112.5t112.5 271.5t-112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5 t271.5 -112.5zM1380 473l194 -194q90 171 90 361t-90 361l-194 -194q28 -82 28 -167t-28 -167z" />
-<glyph unicode="&#xf1ce;" horiz-adv-x="1792" d="M1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348q0 222 101 414.5t276.5 317t390.5 155.5v-260q-221 -45 -366.5 -221t-145.5 -406q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5 q0 230 -145.5 406t-366.5 221v260q215 -31 390.5 -155.5t276.5 -317t101 -414.5z" />
-<glyph unicode="&#xf1d0;" horiz-adv-x="1792" d="M19 662q8 217 116 406t305 318h5q0 -1 -1 -3q-8 -8 -28 -33.5t-52 -76.5t-60 -110.5t-44.5 -135.5t-14 -150.5t39 -157.5t108.5 -154q50 -50 102 -69.5t90.5 -11.5t69.5 23.5t47 32.5l16 16q39 51 53 116.5t6.5 122.5t-21 107t-26.5 80l-14 29q-10 25 -30.5 49.5t-43 41 t-43.5 29.5t-35 19l-13 6l104 115q39 -17 78 -52t59 -61l19 -27q1 48 -18.5 103.5t-40.5 87.5l-20 31l161 183l160 -181q-33 -46 -52.5 -102.5t-22.5 -90.5l-4 -33q22 37 61.5 72.5t67.5 52.5l28 17l103 -115q-44 -14 -85 -50t-60 -65l-19 -29q-31 -56 -48 -133.5t-7 -170 t57 -156.5q33 -45 77.5 -60.5t85 -5.5t76 26.5t57.5 33.5l21 16q60 53 96.5 115t48.5 121.5t10 121.5t-18 118t-37 107.5t-45.5 93t-45 72t-34.5 47.5l-13 17q-14 13 -7 13l10 -3q40 -29 62.5 -46t62 -50t64 -58t58.5 -65t55.5 -77t45.5 -88t38 -103t23.5 -117t10.5 -136 q3 -259 -108 -465t-312 -321t-456 -115q-185 0 -351 74t-283.5 198t-184 293t-60.5 353z" />
-<glyph unicode="&#xf1d1;" horiz-adv-x="1792" d="M874 -102v-66q-208 6 -385 109.5t-283 275.5l58 34q29 -49 73 -99l65 57q148 -168 368 -212l-17 -86q65 -12 121 -13zM276 428l-83 -28q22 -60 49 -112l-57 -33q-98 180 -98 385t98 385l57 -33q-30 -56 -49 -112l82 -28q-35 -100 -35 -212q0 -109 36 -212zM1528 251 l58 -34q-106 -172 -283 -275.5t-385 -109.5v66q56 1 121 13l-17 86q220 44 368 212l65 -57q44 50 73 99zM1377 805l-233 -80q14 -42 14 -85t-14 -85l232 -80q-31 -92 -98 -169l-185 162q-57 -67 -147 -85l48 -241q-52 -10 -98 -10t-98 10l48 241q-90 18 -147 85l-185 -162 q-67 77 -98 169l232 80q-14 42 -14 85t14 85l-233 80q33 93 99 169l185 -162q59 68 147 86l-48 240q44 10 98 10t98 -10l-48 -240q88 -18 147 -86l185 162q66 -76 99 -169zM874 1448v-66q-65 -2 -121 -13l17 -86q-220 -42 -368 -211l-65 56q-38 -42 -73 -98l-57 33 q106 172 282 275.5t385 109.5zM1705 640q0 -205 -98 -385l-57 33q27 52 49 112l-83 28q36 103 36 212q0 112 -35 212l82 28q-19 56 -49 112l57 33q98 -180 98 -385zM1585 1063l-57 -33q-35 56 -73 98l-65 -56q-148 169 -368 211l17 86q-56 11 -121 13v66q209 -6 385 -109.5 t282 -275.5zM1748 640q0 173 -67.5 331t-181.5 272t-272 181.5t-331 67.5t-331 -67.5t-272 -181.5t-181.5 -272t-67.5 -331t67.5 -331t181.5 -272t272 -181.5t331 -67.5t331 67.5t272 181.5t181.5 272t67.5 331zM1792 640q0 -182 -71 -348t-191 -286t-286 -191t-348 -71 t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />
-<glyph unicode="&#xf1d2;" d="M582 228q0 -66 -93 -66q-107 0 -107 63q0 64 98 64q102 0 102 -61zM546 694q0 -85 -74 -85q-77 0 -77 84q0 90 77 90q36 0 55 -25.5t19 -63.5zM712 769v125q-78 -29 -135 -29q-50 29 -110 29q-86 0 -145 -57t-59 -143q0 -50 29.5 -102t73.5 -67v-3q-38 -17 -38 -85 q0 -53 41 -77v-3q-113 -37 -113 -139q0 -45 20 -78.5t54 -51t72 -25.5t81 -8q224 0 224 188q0 67 -48 99t-126 46q-27 5 -51.5 20.5t-24.5 39.5q0 44 49 52q77 15 122 70t45 134q0 24 -10 52q37 9 49 13zM771 350h137q-2 27 -2 82v387q0 46 2 69h-137q3 -23 3 -71v-392 q0 -50 -3 -75zM1280 366v121q-30 -21 -68 -21q-53 0 -53 82v225h52q9 0 26.5 -1t26.5 -1v117h-105q0 82 3 102h-140q4 -24 4 -55v-47h-60v-117q36 3 37 3q3 0 11 -0.5t12 -0.5v-2h-2v-217q0 -37 2.5 -64t11.5 -56.5t24.5 -48.5t43.5 -31t66 -12q64 0 108 24zM924 1072 q0 36 -24 63.5t-60 27.5t-60.5 -27t-24.5 -64q0 -36 25 -62.5t60 -26.5t59.5 27t24.5 62zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf1d3;" horiz-adv-x="1792" d="M595 22q0 100 -165 100q-158 0 -158 -104q0 -101 172 -101q151 0 151 105zM536 777q0 61 -30 102t-89 41q-124 0 -124 -145q0 -135 124 -135q119 0 119 137zM805 1101v-202q-36 -12 -79 -22q16 -43 16 -84q0 -127 -73 -216.5t-197 -112.5q-40 -8 -59.5 -27t-19.5 -58 q0 -31 22.5 -51.5t58 -32t78.5 -22t86 -25.5t78.5 -37.5t58 -64t22.5 -98.5q0 -304 -363 -304q-69 0 -130 12.5t-116 41t-87.5 82t-32.5 127.5q0 165 182 225v4q-67 41 -67 126q0 109 63 137v4q-72 24 -119.5 108.5t-47.5 165.5q0 139 95 231.5t235 92.5q96 0 178 -47 q98 0 218 47zM1123 220h-222q4 45 4 134v609q0 94 -4 128h222q-4 -33 -4 -124v-613q0 -89 4 -134zM1724 442v-196q-71 -39 -174 -39q-62 0 -107 20t-70 50t-39.5 78t-18.5 92t-4 103v351h2v4q-7 0 -19 1t-18 1q-21 0 -59 -6v190h96v76q0 54 -6 89h227q-6 -41 -6 -165h171 v-190q-15 0 -43.5 2t-42.5 2h-85v-365q0 -131 87 -131q61 0 109 33zM1148 1389q0 -58 -39 -101.5t-96 -43.5q-58 0 -98 43.5t-40 101.5q0 59 39.5 103t98.5 44q58 0 96.5 -44.5t38.5 -102.5z" />
-<glyph unicode="&#xf1d4;" d="M825 547l343 588h-150q-21 -39 -63.5 -118.5t-68 -128.5t-59.5 -118.5t-60 -128.5h-3q-21 48 -44.5 97t-52 105.5t-46.5 92t-54 104.5t-49 95h-150l323 -589v-435h134v436zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960 q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf1d5;" horiz-adv-x="1280" d="M842 964q0 -80 -57 -136.5t-136 -56.5q-60 0 -111 35q-62 -67 -115 -146q-247 -371 -202 -859q1 -22 -12.5 -38.5t-34.5 -18.5h-5q-20 0 -35 13.5t-17 33.5q-14 126 -3.5 247.5t29.5 217t54 186t69 155.5t74 125q61 90 132 165q-16 35 -16 77q0 80 56.5 136.5t136.5 56.5 t136.5 -56.5t56.5 -136.5zM1223 953q0 -158 -78 -292t-212.5 -212t-292.5 -78q-64 0 -131 14q-21 5 -32.5 23.5t-6.5 39.5q5 20 23 31.5t39 7.5q51 -13 108 -13q97 0 186 38t153 102t102 153t38 186t-38 186t-102 153t-153 102t-186 38t-186 -38t-153 -102t-102 -153 t-38 -186q0 -114 52 -218q10 -20 3.5 -40t-25.5 -30t-39.5 -3t-30.5 26q-64 123 -64 265q0 119 46.5 227t124.5 186t186 124t226 46q158 0 292.5 -78t212.5 -212.5t78 -292.5z" />
-<glyph unicode="&#xf1d6;" horiz-adv-x="1792" d="M270 730q-8 19 -8 52q0 20 11 49t24 45q-1 22 7.5 53t22.5 43q0 139 92.5 288.5t217.5 209.5q139 66 324 66q133 0 266 -55q49 -21 90 -48t71 -56t55 -68t42 -74t32.5 -84.5t25.5 -89.5t22 -98l1 -5q55 -83 55 -150q0 -14 -9 -40t-9 -38q0 -1 1.5 -3.5t3.5 -5t2 -3.5 q77 -114 120.5 -214.5t43.5 -208.5q0 -43 -19.5 -100t-55.5 -57q-9 0 -19.5 7.5t-19 17.5t-19 26t-16 26.5t-13.5 26t-9 17.5q-1 1 -3 1l-5 -4q-59 -154 -132 -223q20 -20 61.5 -38.5t69 -41.5t35.5 -65q-2 -4 -4 -16t-7 -18q-64 -97 -302 -97q-53 0 -110.5 9t-98 20 t-104.5 30q-15 5 -23 7q-14 4 -46 4.5t-40 1.5q-41 -45 -127.5 -65t-168.5 -20q-35 0 -69 1.5t-93 9t-101 20.5t-74.5 40t-32.5 64q0 40 10 59.5t41 48.5q11 2 40.5 13t49.5 12q4 0 14 2q2 2 2 4l-2 3q-48 11 -108 105.5t-73 156.5l-5 3q-4 0 -12 -20q-18 -41 -54.5 -74.5 t-77.5 -37.5h-1q-4 0 -6 4.5t-5 5.5q-23 54 -23 100q0 275 252 466z" />
-<glyph unicode="&#xf1d7;" horiz-adv-x="2048" d="M580 1075q0 41 -25 66t-66 25q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 66 24.5t25 65.5zM1323 568q0 28 -25.5 50t-65.5 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q40 0 65.5 22t25.5 51zM1087 1075q0 41 -24.5 66t-65.5 25 q-43 0 -76 -25.5t-33 -65.5q0 -39 33 -64.5t76 -25.5q41 0 65.5 24.5t24.5 65.5zM1722 568q0 28 -26 50t-65 22q-27 0 -49.5 -22.5t-22.5 -49.5q0 -28 22.5 -50.5t49.5 -22.5q39 0 65 22t26 51zM1456 965q-31 4 -70 4q-169 0 -311 -77t-223.5 -208.5t-81.5 -287.5 q0 -78 23 -152q-35 -3 -68 -3q-26 0 -50 1.5t-55 6.5t-44.5 7t-54.5 10.5t-50 10.5l-253 -127l72 218q-290 203 -290 490q0 169 97.5 311t264 223.5t363.5 81.5q176 0 332.5 -66t262 -182.5t136.5 -260.5zM2048 404q0 -117 -68.5 -223.5t-185.5 -193.5l55 -181l-199 109 q-150 -37 -218 -37q-169 0 -311 70.5t-223.5 191.5t-81.5 264t81.5 264t223.5 191.5t311 70.5q161 0 303 -70.5t227.5 -192t85.5 -263.5z" />
-<glyph unicode="&#xf1d8;" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-453 185l-242 -295q-18 -23 -49 -23q-13 0 -22 4q-19 7 -30.5 23.5t-11.5 36.5v349l864 1059l-1069 -925l-395 162q-37 14 -40 55q-2 40 32 59l1664 960q15 9 32 9q20 0 36 -11z" />
-<glyph unicode="&#xf1d9;" horiz-adv-x="1792" d="M1764 1525q33 -24 27 -64l-256 -1536q-5 -29 -32 -45q-14 -8 -31 -8q-11 0 -24 5l-527 215l-298 -327q-18 -21 -47 -21q-14 0 -23 4q-19 7 -30 23.5t-11 36.5v452l-472 193q-37 14 -40 55q-3 39 32 59l1664 960q35 21 68 -2zM1422 26l221 1323l-1434 -827l336 -137 l863 639l-478 -797z" />
-<glyph unicode="&#xf1da;" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298zM896 928v-448q0 -14 -9 -23 t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf1db;" d="M768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf1dc;" horiz-adv-x="1792" d="M1682 -128q-44 0 -132.5 3.5t-133.5 3.5q-44 0 -132 -3.5t-132 -3.5q-24 0 -37 20.5t-13 45.5q0 31 17 46t39 17t51 7t45 15q33 21 33 140l-1 391q0 21 -1 31q-13 4 -50 4h-675q-38 0 -51 -4q-1 -10 -1 -31l-1 -371q0 -142 37 -164q16 -10 48 -13t57 -3.5t45 -15 t20 -45.5q0 -26 -12.5 -48t-36.5 -22q-47 0 -139.5 3.5t-138.5 3.5q-43 0 -128 -3.5t-127 -3.5q-23 0 -35.5 21t-12.5 45q0 30 15.5 45t36 17.5t47.5 7.5t42 15q33 23 33 143l-1 57v813q0 3 0.5 26t0 36.5t-1.5 38.5t-3.5 42t-6.5 36.5t-11 31.5t-16 18q-15 10 -45 12t-53 2 t-41 14t-18 45q0 26 12 48t36 22q46 0 138.5 -3.5t138.5 -3.5q42 0 126.5 3.5t126.5 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17 -43.5t-38.5 -14.5t-49.5 -4t-43 -13q-35 -21 -35 -160l1 -320q0 -21 1 -32q13 -3 39 -3h699q25 0 38 3q1 11 1 32l1 320q0 139 -35 160 q-18 11 -58.5 12.5t-66 13t-25.5 49.5q0 26 12.5 48t37.5 22q44 0 132 -3.5t132 -3.5q43 0 129 3.5t129 3.5q25 0 37.5 -22t12.5 -48q0 -30 -17.5 -44t-40 -14.5t-51.5 -3t-44 -12.5q-35 -23 -35 -161l1 -943q0 -119 34 -140q16 -10 46 -13.5t53.5 -4.5t41.5 -15.5t18 -44.5 q0 -26 -12 -48t-36 -22z" />
-<glyph unicode="&#xf1dd;" horiz-adv-x="1280" d="M1278 1347v-73q0 -29 -18.5 -61t-42.5 -32q-50 0 -54 -1q-26 -6 -32 -31q-3 -11 -3 -64v-1152q0 -25 -18 -43t-43 -18h-108q-25 0 -43 18t-18 43v1218h-143v-1218q0 -25 -17.5 -43t-43.5 -18h-108q-26 0 -43.5 18t-17.5 43v496q-147 12 -245 59q-126 58 -192 179 q-64 117 -64 259q0 166 88 286q88 118 209 159q111 37 417 37h479q25 0 43 -18t18 -43z" />
-<glyph unicode="&#xf1de;" d="M352 128v-128h-352v128h352zM704 256q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM864 640v-128h-864v128h864zM224 1152v-128h-224v128h224zM1536 128v-128h-736v128h736zM576 1280q26 0 45 -19t19 -45v-256 q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1216 768q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h256zM1536 640v-128h-224v128h224zM1536 1152v-128h-864v128h864z" />
-<glyph unicode="&#xf1e0;" d="M1216 512q133 0 226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5t-226.5 93.5t-93.5 226.5q0 12 2 34l-360 180q-92 -86 -218 -86q-133 0 -226.5 93.5t-93.5 226.5t93.5 226.5t226.5 93.5q126 0 218 -86l360 180q-2 22 -2 34q0 133 93.5 226.5t226.5 93.5 t226.5 -93.5t93.5 -226.5t-93.5 -226.5t-226.5 -93.5q-126 0 -218 86l-360 -180q2 -22 2 -34t-2 -34l360 -180q92 86 218 86z" />
-<glyph unicode="&#xf1e1;" d="M1280 341q0 88 -62.5 151t-150.5 63q-84 0 -145 -58l-241 120q2 16 2 23t-2 23l241 120q61 -58 145 -58q88 0 150.5 63t62.5 151t-62.5 150.5t-150.5 62.5t-151 -62.5t-63 -150.5q0 -7 2 -23l-241 -120q-62 57 -145 57q-88 0 -150.5 -62.5t-62.5 -150.5t62.5 -150.5 t150.5 -62.5q83 0 145 57l241 -120q-2 -16 -2 -23q0 -88 63 -150.5t151 -62.5t150.5 62.5t62.5 150.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf1e2;" horiz-adv-x="1792" d="M571 947q-10 25 -34 35t-49 0q-108 -44 -191 -127t-127 -191q-10 -25 0 -49t35 -34q13 -5 24 -5q42 0 60 40q34 84 98.5 148.5t148.5 98.5q25 11 35 35t0 49zM1513 1303l46 -46l-244 -243l68 -68q19 -19 19 -45.5t-19 -45.5l-64 -64q89 -161 89 -343q0 -143 -55.5 -273.5 t-150 -225t-225 -150t-273.5 -55.5t-273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5q182 0 343 -89l64 64q19 19 45.5 19t45.5 -19l68 -68zM1521 1359q-10 -10 -22 -10q-13 0 -23 10l-91 90q-9 10 -9 23t9 23q10 9 23 9t23 -9l90 -91 q10 -9 10 -22.5t-10 -22.5zM1751 1129q-11 -9 -23 -9t-23 9l-90 91q-10 9 -10 22.5t10 22.5q9 10 22.5 10t22.5 -10l91 -90q9 -10 9 -23t-9 -23zM1792 1312q0 -14 -9 -23t-23 -9h-96q-14 0 -23 9t-9 23t9 23t23 9h96q14 0 23 -9t9 -23zM1600 1504v-96q0 -14 -9 -23t-23 -9 t-23 9t-9 23v96q0 14 9 23t23 9t23 -9t9 -23zM1751 1449l-91 -90q-10 -10 -22 -10q-13 0 -23 10q-10 9 -10 22.5t10 22.5l90 91q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />
-<glyph unicode="&#xf1e3;" horiz-adv-x="1792" d="M609 720l287 208l287 -208l-109 -336h-355zM896 1536q182 0 348 -71t286 -191t191 -286t71 -348t-71 -348t-191 -286t-286 -191t-348 -71t-348 71t-286 191t-191 286t-71 348t71 348t191 286t286 191t348 71zM1515 186q149 203 149 454v3l-102 -89l-240 224l63 323 l134 -12q-150 206 -389 282l53 -124l-287 -159l-287 159l53 124q-239 -76 -389 -282l135 12l62 -323l-240 -224l-102 89v-3q0 -251 149 -454l30 132l326 -40l139 -298l-116 -69q117 -39 240 -39t240 39l-116 69l139 298l326 40z" />
-<glyph unicode="&#xf1e4;" horiz-adv-x="1792" d="M448 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM256 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM832 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM66 768q-28 0 -47 19t-19 46v129h514v-129q0 -27 -19 -46t-46 -19h-383zM1216 224v-192q0 -14 -9 -23t-23 -9h-192 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1600 224v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23 zM1408 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1016v-13h-514v10q0 104 -382 102q-382 -1 -382 -102v-10h-514v13q0 17 8.5 43t34 64t65.5 75.5t110.5 76t160 67.5t224 47.5t293.5 18.5t293 -18.5t224 -47.5 t160.5 -67.5t110.5 -76t65.5 -75.5t34 -64t8.5 -43zM1792 608v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 962v-129q0 -27 -19 -46t-46 -19h-384q-27 0 -46 19t-19 46v129h514z" />
-<glyph unicode="&#xf1e5;" horiz-adv-x="1792" d="M704 1216v-768q0 -26 -19 -45t-45 -19v-576q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v512l249 873q7 23 31 23h424zM1024 1216v-704h-256v704h256zM1792 320v-512q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v576q-26 0 -45 19t-19 45v768h424q24 0 31 -23z M736 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23zM1408 1504v-224h-352v224q0 14 9 23t23 9h288q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf1e6;" horiz-adv-x="1792" d="M1755 1083q37 -37 37 -90t-37 -91l-401 -400l150 -150l-160 -160q-163 -163 -389.5 -186.5t-411.5 100.5l-362 -362h-181v181l362 362q-124 185 -100.5 411.5t186.5 389.5l160 160l150 -150l400 401q38 37 91 37t90 -37t37 -90.5t-37 -90.5l-400 -401l234 -234l401 400 q38 37 91 37t90 -37z" />
-<glyph unicode="&#xf1e7;" horiz-adv-x="1792" d="M873 796q0 -83 -63.5 -142.5t-152.5 -59.5t-152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59t152.5 -59t63.5 -143zM1375 796q0 -83 -63 -142.5t-153 -59.5q-89 0 -152.5 59.5t-63.5 142.5q0 84 63.5 143t152.5 59q90 0 153 -59t63 -143zM1600 616v667q0 87 -32 123.5 t-111 36.5h-1112q-83 0 -112.5 -34t-29.5 -126v-673q43 -23 88.5 -40t81 -28t81 -18.5t71 -11t70 -4t58.5 -0.5t56.5 2t44.5 2q68 1 95 -27q6 -6 10 -9q26 -25 61 -51q7 91 118 87q5 0 36.5 -1.5t43 -2t45.5 -1t53 1t54.5 4.5t61 8.5t62 13.5t67 19.5t67.5 27t72 34.5z M1763 621q-121 -149 -372 -252q84 -285 -23 -465q-66 -113 -183 -148q-104 -32 -182 15q-86 51 -82 164l-1 326v1q-8 2 -24.5 6t-23.5 5l-1 -338q4 -114 -83 -164q-79 -47 -183 -15q-117 36 -182 150q-105 180 -22 463q-251 103 -372 252q-25 37 -4 63t60 -1q3 -2 11 -7 t11 -8v694q0 72 47 123t114 51h1257q67 0 114 -51t47 -123v-694l21 15q39 27 60 1t-4 -63z" />
-<glyph unicode="&#xf1e8;" horiz-adv-x="1792" d="M896 1102v-434h-145v434h145zM1294 1102v-434h-145v434h145zM1294 342l253 254v795h-1194v-1049h326v-217l217 217h398zM1692 1536v-1013l-434 -434h-326l-217 -217h-217v217h-398v1158l109 289h1483z" />
-<glyph unicode="&#xf1e9;" d="M773 217v-127q-1 -292 -6 -305q-12 -32 -51 -40q-54 -9 -181.5 38t-162.5 89q-13 15 -17 36q-1 12 4 26q4 10 34 47t181 216q1 0 60 70q15 19 39.5 24.5t49.5 -3.5q24 -10 37.5 -29t12.5 -42zM624 468q-3 -55 -52 -70l-120 -39q-275 -88 -292 -88q-35 2 -54 36 q-12 25 -17 75q-8 76 1 166.5t30 124.5t56 32q13 0 202 -77q70 -29 115 -47l84 -34q23 -9 35.5 -30.5t11.5 -48.5zM1450 171q-7 -54 -91.5 -161t-135.5 -127q-37 -14 -63 7q-14 10 -184 287l-47 77q-14 21 -11.5 46t19.5 46q35 43 83 26q1 -1 119 -40q203 -66 242 -79.5 t47 -20.5q28 -22 22 -61zM778 803q5 -102 -54 -122q-58 -17 -114 71l-378 598q-8 35 19 62q41 43 207.5 89.5t224.5 31.5q40 -10 49 -45q3 -18 22 -305.5t24 -379.5zM1440 695q3 -39 -26 -59q-15 -10 -329 -86q-67 -15 -91 -23l1 2q-23 -6 -46 4t-37 32q-30 47 0 87 q1 1 75 102q125 171 150 204t34 39q28 19 65 2q48 -23 123 -133.5t81 -167.5v-3z" />
-<glyph unicode="&#xf1ea;" horiz-adv-x="2048" d="M1024 1024h-384v-384h384v384zM1152 384v-128h-640v128h640zM1152 1152v-640h-640v640h640zM1792 384v-128h-512v128h512zM1792 640v-128h-512v128h512zM1792 896v-128h-512v128h512zM1792 1152v-128h-512v128h512zM256 192v960h-128v-960q0 -26 19 -45t45 -19t45 19 t19 45zM1920 192v1088h-1536v-1088q0 -33 -11 -64h1483q26 0 45 19t19 45zM2048 1408v-1216q0 -80 -56 -136t-136 -56h-1664q-80 0 -136 56t-56 136v1088h256v128h1792z" />
-<glyph unicode="&#xf1eb;" horiz-adv-x="2048" d="M1024 13q-20 0 -93 73.5t-73 93.5q0 32 62.5 54t103.5 22t103.5 -22t62.5 -54q0 -20 -73 -93.5t-93 -73.5zM1294 284q-2 0 -40 25t-101.5 50t-128.5 25t-128.5 -25t-101 -50t-40.5 -25q-18 0 -93.5 75t-75.5 93q0 13 10 23q78 77 196 121t233 44t233 -44t196 -121 q10 -10 10 -23q0 -18 -75.5 -93t-93.5 -75zM1567 556q-11 0 -23 8q-136 105 -252 154.5t-268 49.5q-85 0 -170.5 -22t-149 -53t-113.5 -62t-79 -53t-31 -22q-17 0 -92 75t-75 93q0 12 10 22q132 132 320 205t380 73t380 -73t320 -205q10 -10 10 -22q0 -18 -75 -93t-92 -75z M1838 827q-11 0 -22 9q-179 157 -371.5 236.5t-420.5 79.5t-420.5 -79.5t-371.5 -236.5q-11 -9 -22 -9q-17 0 -92.5 75t-75.5 93q0 13 10 23q187 186 445 288t527 102t527 -102t445 -288q10 -10 10 -23q0 -18 -75.5 -93t-92.5 -75z" />
-<glyph unicode="&#xf1ec;" horiz-adv-x="1792" d="M384 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 0q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5 t37.5 90.5zM384 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1152 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM768 768q0 53 -37.5 90.5t-90.5 37.5 t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1536 0v384q0 52 -38 90t-90 38t-90 -38t-38 -90v-384q0 -52 38 -90t90 -38t90 38t38 90zM1152 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5z M1536 1088v256q0 26 -19 45t-45 19h-1280q-26 0 -45 -19t-19 -45v-256q0 -26 19 -45t45 -19h1280q26 0 45 19t19 45zM1536 768q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1408v-1536q0 -52 -38 -90t-90 -38 h-1408q-52 0 -90 38t-38 90v1536q0 52 38 90t90 38h1408q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf1ed;" horiz-adv-x="1792" d="M1112 1090q0 159 -237 159h-70q-32 0 -59.5 -21.5t-34.5 -52.5l-63 -276q-2 -5 -2 -16q0 -24 17 -39.5t41 -15.5h53q69 0 128.5 13t112.5 41t83.5 81.5t30.5 126.5zM1716 938q0 -265 -220 -428q-219 -161 -612 -161h-61q-32 0 -59 -21.5t-34 -52.5l-73 -316 q-8 -36 -40.5 -61.5t-69.5 -25.5h-213q-31 0 -53 20t-22 51q0 10 13 65h151q34 0 64 23.5t38 56.5l73 316q8 33 37.5 57t63.5 24h61q390 0 607 160t217 421q0 129 -51 207q183 -92 183 -335zM1533 1123q0 -264 -221 -428q-218 -161 -612 -161h-60q-32 0 -59.5 -22t-34.5 -53 l-73 -315q-8 -36 -40 -61.5t-69 -25.5h-214q-31 0 -52.5 19.5t-21.5 51.5q0 8 2 20l300 1301q8 36 40.5 61.5t69.5 25.5h444q68 0 125 -4t120.5 -15t113.5 -30t96.5 -50.5t77.5 -74t49.5 -103.5t18.5 -136z" />
-<glyph unicode="&#xf1ee;" horiz-adv-x="1792" d="M602 949q19 -61 31 -123.5t17 -141.5t-14 -159t-62 -145q-21 81 -67 157t-95.5 127t-99 90.5t-78.5 57.5t-33 19q-62 34 -81.5 100t14.5 128t101 81.5t129 -14.5q138 -83 238 -177zM927 1236q11 -25 20.5 -46t36.5 -100.5t42.5 -150.5t25.5 -179.5t0 -205.5t-47.5 -209.5 t-105.5 -208.5q-51 -72 -138 -72q-54 0 -98 31q-57 40 -69 109t28 127q60 85 81 195t13 199.5t-32 180.5t-39 128t-22 52q-31 63 -8.5 129.5t85.5 97.5q34 17 75 17q47 0 88.5 -25t63.5 -69zM1248 567q-17 -160 -72 -311q-17 131 -63 246q25 174 -5 361q-27 178 -94 342 q114 -90 212 -211q9 -37 15 -80q26 -179 7 -347zM1520 1440q9 -17 23.5 -49.5t43.5 -117.5t50.5 -178t34 -227.5t5 -269t-47 -300t-112.5 -323.5q-22 -48 -66 -75.5t-95 -27.5q-39 0 -74 16q-67 31 -92.5 100t4.5 136q58 126 90 257.5t37.5 239.5t-3.5 213.5t-26.5 180.5 t-38.5 138.5t-32.5 90t-15.5 32.5q-34 65 -11.5 135.5t87.5 104.5q37 20 81 20q49 0 91.5 -25.5t66.5 -70.5z" />
-<glyph unicode="&#xf1f0;" horiz-adv-x="2304" d="M1975 546h-138q14 37 66 179l3 9q4 10 10 26t9 26l12 -55zM531 611l-58 295q-11 54 -75 54h-268l-2 -13q311 -79 403 -336zM710 960l-162 -438l-17 89q-26 70 -85 129.5t-131 88.5l135 -510h175l261 641h-176zM849 318h166l104 642h-166zM1617 944q-69 27 -149 27 q-123 0 -201 -59t-79 -153q-1 -102 145 -174q48 -23 67 -41t19 -39q0 -30 -30 -46t-69 -16q-86 0 -156 33l-22 11l-23 -144q74 -34 185 -34q130 -1 208.5 59t80.5 160q0 106 -140 174q-49 25 -71 42t-22 38q0 22 24.5 38.5t70.5 16.5q70 1 124 -24l15 -8zM2042 960h-128 q-65 0 -87 -54l-246 -588h174l35 96h212q5 -22 20 -96h154zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf1f1;" horiz-adv-x="2304" d="M671 603h-13q-47 0 -47 -32q0 -22 20 -22q17 0 28 15t12 39zM1066 639h62v3q1 4 0.5 6.5t-1 7t-2 8t-4.5 6.5t-7.5 5t-11.5 2q-28 0 -36 -38zM1606 603h-12q-48 0 -48 -32q0 -22 20 -22q17 0 28 15t12 39zM1925 629q0 41 -30 41q-19 0 -31 -20t-12 -51q0 -42 28 -42 q20 0 32.5 20t12.5 52zM480 770h87l-44 -262h-56l32 201l-71 -201h-39l-4 200l-34 -200h-53l44 262h81l2 -163zM733 663q0 -6 -4 -42q-16 -101 -17 -113h-47l1 22q-20 -26 -58 -26q-23 0 -37.5 16t-14.5 42q0 39 26 60.5t73 21.5q14 0 23 -1q0 3 0.5 5.5t1 4.5t0.5 3 q0 20 -36 20q-29 0 -59 -10q0 4 7 48q38 11 67 11q74 0 74 -62zM889 721l-8 -49q-22 3 -41 3q-27 0 -27 -17q0 -8 4.5 -12t21.5 -11q40 -19 40 -60q0 -72 -87 -71q-34 0 -58 6q0 2 7 49q29 -8 51 -8q32 0 32 19q0 7 -4.5 11.5t-21.5 12.5q-43 20 -43 59q0 72 84 72 q30 0 50 -4zM977 721h28l-7 -52h-29q-2 -17 -6.5 -40.5t-7 -38.5t-2.5 -18q0 -16 19 -16q8 0 16 2l-8 -47q-21 -7 -40 -7q-43 0 -45 47q0 12 8 56q3 20 25 146h55zM1180 648q0 -23 -7 -52h-111q-3 -22 10 -33t38 -11q30 0 58 14l-9 -54q-30 -8 -57 -8q-95 0 -95 95 q0 55 27.5 90.5t69.5 35.5q35 0 55.5 -21t20.5 -56zM1319 722q-13 -23 -22 -62q-22 2 -31 -24t-25 -128h-56l3 14q22 130 29 199h51l-3 -33q14 21 25.5 29.5t28.5 4.5zM1506 763l-9 -57q-28 14 -50 14q-31 0 -51 -27.5t-20 -70.5q0 -30 13.5 -47t38.5 -17q21 0 48 13 l-10 -59q-28 -8 -50 -8q-45 0 -71.5 30.5t-26.5 82.5q0 70 35.5 114.5t91.5 44.5q26 0 61 -13zM1668 663q0 -18 -4 -42q-13 -79 -17 -113h-46l1 22q-20 -26 -59 -26q-23 0 -37 16t-14 42q0 39 25.5 60.5t72.5 21.5q15 0 23 -1q2 7 2 13q0 20 -36 20q-29 0 -59 -10q0 4 8 48 q38 11 67 11q73 0 73 -62zM1809 722q-14 -24 -21 -62q-23 2 -31.5 -23t-25.5 -129h-56l3 14q19 104 29 199h52q0 -11 -4 -33q15 21 26.5 29.5t27.5 4.5zM1950 770h56l-43 -262h-53l3 19q-23 -23 -52 -23q-31 0 -49.5 24t-18.5 64q0 53 27.5 92t64.5 39q31 0 53 -29z M2061 640q0 148 -72.5 273t-198 198t-273.5 73q-181 0 -328 -110q127 -116 171 -284h-50q-44 150 -158 253q-114 -103 -158 -253h-50q44 168 171 284q-147 110 -328 110q-148 0 -273.5 -73t-198 -198t-72.5 -273t72.5 -273t198 -198t273.5 -73q181 0 328 110 q-120 111 -165 264h50q46 -138 152 -233q106 95 152 233h50q-45 -153 -165 -264q147 -110 328 -110q148 0 273.5 73t198 198t72.5 273zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf1f2;" horiz-adv-x="2304" d="M313 759q0 -51 -36 -84q-29 -26 -89 -26h-17v220h17q61 0 89 -27q36 -31 36 -83zM2089 824q0 -52 -64 -52h-19v101h20q63 0 63 -49zM380 759q0 74 -50 120.5t-129 46.5h-95v-333h95q74 0 119 38q60 51 60 128zM410 593h65v333h-65v-333zM730 694q0 40 -20.5 62t-75.5 42 q-29 10 -39.5 19t-10.5 23q0 16 13.5 26.5t34.5 10.5q29 0 53 -27l34 44q-41 37 -98 37q-44 0 -74 -27.5t-30 -67.5q0 -35 18 -55.5t64 -36.5q37 -13 45 -19q19 -12 19 -34q0 -20 -14 -33.5t-36 -13.5q-48 0 -71 44l-42 -40q44 -64 115 -64q51 0 83 30.5t32 79.5zM1008 604 v77q-37 -37 -78 -37q-49 0 -80.5 32.5t-31.5 82.5q0 48 31.5 81.5t77.5 33.5q43 0 81 -38v77q-40 20 -80 20q-74 0 -125.5 -50.5t-51.5 -123.5t51 -123.5t125 -50.5q42 0 81 19zM2240 0v527q-65 -40 -144.5 -84t-237.5 -117t-329.5 -137.5t-417.5 -134.5t-504 -118h1569 q26 0 45 19t19 45zM1389 757q0 75 -53 128t-128 53t-128 -53t-53 -128t53 -128t128 -53t128 53t53 128zM1541 584l144 342h-71l-90 -224l-89 224h-71l142 -342h35zM1714 593h184v56h-119v90h115v56h-115v74h119v57h-184v-333zM2105 593h80l-105 140q76 16 76 94q0 47 -31 73 t-87 26h-97v-333h65v133h9zM2304 1274v-1268q0 -56 -38.5 -95t-93.5 -39h-2040q-55 0 -93.5 39t-38.5 95v1268q0 56 38.5 95t93.5 39h2040q55 0 93.5 -39t38.5 -95z" />
-<glyph unicode="&#xf1f3;" horiz-adv-x="2304" d="M119 854h89l-45 108zM740 328l74 79l-70 79h-163v-49h142v-55h-142v-54h159zM898 406l99 -110v217zM1186 453q0 33 -40 33h-84v-69h83q41 0 41 36zM1475 457q0 29 -42 29h-82v-61h81q43 0 43 32zM1197 923q0 29 -42 29h-82v-60h81q43 0 43 31zM1656 854h89l-44 108z M699 1009v-271h-66v212l-94 -212h-57l-94 212v-212h-132l-25 60h-135l-25 -60h-70l116 271h96l110 -257v257h106l85 -184l77 184h108zM1255 453q0 -20 -5.5 -35t-14 -25t-22.5 -16.5t-26 -10t-31.5 -4.5t-31.5 -1t-32.5 0.5t-29.5 0.5v-91h-126l-80 90l-83 -90h-256v271h260 l80 -89l82 89h207q109 0 109 -89zM964 794v-56h-217v271h217v-57h-152v-49h148v-55h-148v-54h152zM2304 235v-229q0 -55 -38.5 -94.5t-93.5 -39.5h-2040q-55 0 -93.5 39.5t-38.5 94.5v678h111l25 61h55l25 -61h218v46l19 -46h113l20 47v-47h541v99l10 1q10 0 10 -14v-86h279 v23q23 -12 55 -18t52.5 -6.5t63 0.5t51.5 1l25 61h56l25 -61h227v58l34 -58h182v378h-180v-44l-25 44h-185v-44l-23 44h-249q-69 0 -109 -22v22h-172v-22q-24 22 -73 22h-628l-43 -97l-43 97h-198v-44l-22 44h-169l-78 -179v391q0 55 38.5 94.5t93.5 39.5h2040 q55 0 93.5 -39.5t38.5 -94.5v-678h-120q-51 0 -81 -22v22h-177q-55 0 -78 -22v22h-316v-22q-31 22 -87 22h-209v-22q-23 22 -91 22h-234l-54 -58l-50 58h-349v-378h343l55 59l52 -59h211v89h21q59 0 90 13v-102h174v99h8q8 0 10 -2t2 -10v-87h529q57 0 88 24v-24h168 q60 0 95 17zM1546 469q0 -23 -12 -43t-34 -29q25 -9 34 -26t9 -46v-54h-65v45q0 33 -12 43.5t-46 10.5h-69v-99h-65v271h154q48 0 77 -15t29 -58zM1269 936q0 -24 -12.5 -44t-33.5 -29q26 -9 34.5 -25.5t8.5 -46.5v-53h-65q0 9 0.5 26.5t0 25t-3 18.5t-8.5 16t-17.5 8.5 t-29.5 3.5h-70v-98h-64v271l153 -1q49 0 78 -14.5t29 -57.5zM1798 327v-56h-216v271h216v-56h-151v-49h148v-55h-148v-54zM1372 1009v-271h-66v271h66zM2065 357q0 -86 -102 -86h-126v58h126q34 0 34 25q0 16 -17 21t-41.5 5t-49.5 3.5t-42 22.5t-17 55q0 39 26 60t66 21 h130v-57h-119q-36 0 -36 -25q0 -16 17.5 -20.5t42 -4t49 -2.5t42 -21.5t17.5 -54.5zM2304 407v-101q-24 -35 -88 -35h-125v58h125q33 0 33 25q0 13 -12.5 19t-31 5.5t-40 2t-40 8t-31 24t-12.5 48.5q0 39 26.5 60t66.5 21h129v-57h-118q-36 0 -36 -25q0 -20 29 -22t68.5 -5 t56.5 -26zM2139 1008v-270h-92l-122 203v-203h-132l-26 60h-134l-25 -60h-75q-129 0 -129 133q0 138 133 138h63v-59q-7 0 -28 1t-28.5 0.5t-23 -2t-21.5 -6.5t-14.5 -13.5t-11.5 -23t-3 -33.5q0 -38 13.5 -58t49.5 -20h29l92 213h97l109 -256v256h99l114 -188v188h66z" />
-<glyph unicode="&#xf1f4;" horiz-adv-x="2304" d="M322 689h-15q-19 0 -19 18q0 28 19 85q5 15 15 19.5t28 4.5q77 0 77 -49q0 -41 -30.5 -59.5t-74.5 -18.5zM664 528q-47 0 -47 29q0 62 123 62l3 -3q-5 -88 -79 -88zM1438 687h-15q-19 0 -19 19q0 28 19 85q5 15 14.5 19t28.5 4q77 0 77 -49q0 -41 -30.5 -59.5 t-74.5 -18.5zM1780 527q-47 0 -47 30q0 62 123 62l3 -3q-5 -89 -79 -89zM373 894h-128q-8 0 -14.5 -4t-8.5 -7.5t-7 -12.5q-3 -7 -45 -190t-42 -192q0 -7 5.5 -12.5t13.5 -5.5h62q25 0 32.5 34.5l15 69t32.5 34.5q47 0 87.5 7.5t80.5 24.5t63.5 52.5t23.5 84.5 q0 36 -14.5 61t-41 36.5t-53.5 15.5t-62 4zM719 798q-38 0 -74 -6q-2 0 -8.5 -1t-9 -1.5l-7.5 -1.5t-7.5 -2t-6.5 -3t-6.5 -4t-5 -5t-4.5 -7t-4 -9q-9 -29 -9 -39t9 -10q5 0 21.5 5t19.5 6q30 8 58 8q74 0 74 -36q0 -11 -10 -14q-8 -2 -18 -3t-21.5 -1.5t-17.5 -1.5 q-38 -4 -64.5 -10t-56.5 -19.5t-45.5 -39t-15.5 -62.5q0 -38 26 -59.5t64 -21.5q24 0 45.5 6.5t33 13t38.5 23.5q-3 -7 -3 -15t5.5 -13.5t12.5 -5.5h56q1 1 7 3.5t7.5 3.5t5 3.5t5 5.5t2.5 8l45 194q4 13 4 30q0 81 -145 81zM1247 793h-74q-22 0 -39 -23q-5 -7 -29.5 -51 t-46.5 -81.5t-26 -38.5l-5 4q0 77 -27 166q-1 5 -3.5 8.5t-6 6.5t-6.5 5t-8.5 3t-8.5 1.5t-9.5 1t-9 0.5h-10h-8.5q-38 0 -38 -21l1 -5q5 -53 25 -151t25 -143q2 -16 2 -24q0 -19 -30.5 -61.5t-30.5 -58.5q0 -13 40 -13q61 0 76 25l245 415q10 20 10 26q0 9 -8 9zM1489 892 h-129q-18 0 -29 -23q-6 -13 -46.5 -191.5t-40.5 -190.5q0 -20 43 -20h7.5h9h9t9.5 1t8.5 2t8.5 3t6.5 4.5t5.5 6t3 8.5l21 91q2 10 10.5 17t19.5 7q47 0 87.5 7t80.5 24.5t63.5 52.5t23.5 84q0 36 -14.5 61t-41 36.5t-53.5 15.5t-62 4zM1835 798q-26 0 -74 -6 q-38 -6 -48 -16q-7 -8 -11 -19q-8 -24 -8 -39q0 -10 8 -10q1 0 41 12q30 8 58 8q74 0 74 -36q0 -12 -10 -14q-4 -1 -57 -7q-38 -4 -64.5 -10t-56.5 -19.5t-45.5 -39t-15.5 -62.5t26 -58.5t64 -21.5q24 0 45 6t34 13t38 24q-3 -15 -3 -16q0 -5 2 -8.5t6.5 -5.5t8 -3.5 t10.5 -2t9.5 -0.5h9.5h8q42 0 48 25l45 194q3 15 3 31q0 81 -145 81zM2157 889h-55q-25 0 -33 -40q-10 -44 -36.5 -167t-42.5 -190v-5q0 -16 16 -18h1h57q10 0 18.5 6.5t10.5 16.5l83 374h-1l1 5q0 7 -5.5 12.5t-13.5 5.5zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048 q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf1f5;" horiz-adv-x="2304" d="M1597 633q0 -69 -21 -106q-19 -35 -52 -35q-23 0 -41 9v224q29 30 57 30q57 0 57 -122zM2035 669h-110q6 98 56 98q51 0 54 -98zM476 534q0 59 -33 91.5t-101 57.5q-36 13 -52 24t-16 25q0 26 38 26q58 0 124 -33l18 112q-67 32 -149 32q-77 0 -123 -38q-48 -39 -48 -109 q0 -58 32.5 -90.5t99.5 -56.5q39 -14 54.5 -25.5t15.5 -27.5q0 -31 -48 -31q-29 0 -70 12.5t-72 30.5l-18 -113q72 -41 168 -41q81 0 129 37q51 41 51 117zM771 749l19 111h-96v135l-129 -21l-18 -114l-46 -8l-17 -103h62v-219q0 -84 44 -120q38 -30 111 -30q32 0 79 11v118 q-32 -7 -44 -7q-42 0 -42 50v197h77zM1087 724v139q-15 3 -28 3q-32 0 -55.5 -16t-33.5 -46l-10 56h-131v-471h150v306q26 31 82 31q16 0 26 -2zM1124 389h150v471h-150v-471zM1746 638q0 122 -45 179q-40 52 -111 52q-64 0 -117 -56l-8 47h-132v-645l150 25v151 q36 -11 68 -11q83 0 134 56q61 65 61 202zM1278 986q0 33 -23 56t-56 23t-56 -23t-23 -56t23 -56.5t56 -23.5t56 23.5t23 56.5zM2176 629q0 113 -48 176q-50 64 -144 64q-96 0 -151.5 -66t-55.5 -180q0 -128 63 -188q55 -55 161 -55q101 0 160 40l-16 103q-57 -31 -128 -31 q-43 0 -63 19q-23 19 -28 66h248q2 14 2 52zM2304 1280v-1280q0 -52 -38 -90t-90 -38h-2048q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h2048q52 0 90 -38t38 -90z" />
-<glyph unicode="&#xf1f6;" horiz-adv-x="2048" d="M1558 684q61 -356 298 -556q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5zM1024 -176q16 0 16 16t-16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5zM2026 1424q8 -10 7.5 -23.5t-10.5 -22.5 l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5 l418 363q10 8 23.5 7t21.5 -11z" />
-<glyph unicode="&#xf1f7;" horiz-adv-x="2048" d="M1040 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM503 315l877 760q-42 88 -132.5 146.5t-223.5 58.5q-93 0 -169.5 -31.5t-121.5 -80.5t-69 -103t-24 -105q0 -384 -137 -645zM1856 128 q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-180.5 74.5t-75.5 180.5l149 129h757q-166 187 -227 459l111 97q61 -356 298 -556zM1942 1520l84 -96q8 -10 7.5 -23.5t-10.5 -22.5l-1872 -1622q-10 -8 -23.5 -7t-21.5 11l-84 96q-8 10 -7.5 23.5t10.5 21.5l186 161 q-19 32 -19 66q50 42 91 88t85 119.5t74.5 158.5t50 206t19.5 260q0 152 117 282.5t307 158.5q-8 19 -8 39q0 40 28 68t68 28t68 -28t28 -68q0 -20 -8 -39q124 -18 219 -82.5t148 -157.5l418 363q10 8 23.5 7t21.5 -11z" />
-<glyph unicode="&#xf1f8;" horiz-adv-x="1408" d="M512 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM768 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1024 160v704q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-704 q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167 q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf1f9;" d="M1150 462v-109q0 -50 -36.5 -89t-94 -60.5t-118 -32.5t-117.5 -11q-205 0 -342.5 139t-137.5 346q0 203 136 339t339 136q34 0 75.5 -4.5t93 -18t92.5 -34t69 -56.5t28 -81v-109q0 -16 -16 -16h-118q-16 0 -16 16v70q0 43 -65.5 67.5t-137.5 24.5q-140 0 -228.5 -91.5 t-88.5 -237.5q0 -151 91.5 -249.5t233.5 -98.5q68 0 138 24t70 66v70q0 7 4.5 11.5t10.5 4.5h119q6 0 11 -4.5t5 -11.5zM768 1280q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5 t-51 248.5t-136.5 204t-204 136.5t-248.5 51zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf1fa;" d="M972 761q0 108 -53.5 169t-147.5 61q-63 0 -124 -30.5t-110 -84.5t-79.5 -137t-30.5 -180q0 -112 53.5 -173t150.5 -61q96 0 176 66.5t122.5 166t42.5 203.5zM1536 640q0 -111 -37 -197t-98.5 -135t-131.5 -74.5t-145 -27.5q-6 0 -15.5 -0.5t-16.5 -0.5q-95 0 -142 53 q-28 33 -33 83q-52 -66 -131.5 -110t-173.5 -44q-161 0 -249.5 95.5t-88.5 269.5q0 157 66 290t179 210.5t246 77.5q87 0 155 -35.5t106 -99.5l2 19l11 56q1 6 5.5 12t9.5 6h118q5 0 13 -11q5 -5 3 -16l-120 -614q-5 -24 -5 -48q0 -39 12.5 -52t44.5 -13q28 1 57 5.5t73 24 t77 50t57 89.5t24 137q0 292 -174 466t-466 174q-130 0 -248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51q228 0 405 144q11 9 24 8t21 -12l41 -49q8 -12 7 -24q-2 -13 -12 -22q-102 -83 -227.5 -128t-258.5 -45q-156 0 -298 61 t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q344 0 556 -212t212 -556z" />
-<glyph unicode="&#xf1fb;" horiz-adv-x="1792" d="M1698 1442q94 -94 94 -226.5t-94 -225.5l-225 -223l104 -104q10 -10 10 -23t-10 -23l-210 -210q-10 -10 -23 -10t-23 10l-105 105l-603 -603q-37 -37 -90 -37h-203l-256 -128l-64 64l128 256v203q0 53 37 90l603 603l-105 105q-10 10 -10 23t10 23l210 210q10 10 23 10 t23 -10l104 -104l223 225q93 94 225.5 94t226.5 -94zM512 64l576 576l-192 192l-576 -576v-192h192z" />
-<glyph unicode="&#xf1fc;" horiz-adv-x="1792" d="M1615 1536q70 0 122.5 -46.5t52.5 -116.5q0 -63 -45 -151q-332 -629 -465 -752q-97 -91 -218 -91q-126 0 -216.5 92.5t-90.5 219.5q0 128 92 212l638 579q59 54 130 54zM706 502q39 -76 106.5 -130t150.5 -76l1 -71q4 -213 -129.5 -347t-348.5 -134q-123 0 -218 46.5 t-152.5 127.5t-86.5 183t-29 220q7 -5 41 -30t62 -44.5t59 -36.5t46 -17q41 0 55 37q25 66 57.5 112.5t69.5 76t88 47.5t103 25.5t125 10.5z" />
-<glyph unicode="&#xf1fd;" horiz-adv-x="1792" d="M1792 128v-384h-1792v384q45 0 85 14t59 27.5t47 37.5q30 27 51.5 38t56.5 11t55.5 -11t52.5 -38q29 -25 47 -38t58 -27t86 -14q45 0 85 14.5t58 27t48 37.5q21 19 32.5 27t31 15t43.5 7q35 0 56.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14t85 14t59 27.5t47 37.5 q30 27 51.5 38t56.5 11q34 0 55.5 -11t51.5 -38q28 -24 47 -37.5t59 -27.5t85 -14zM1792 448v-192q-35 0 -55.5 11t-52.5 38q-29 25 -47 38t-58 27t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-22 -19 -33 -27t-31 -15t-44 -7q-35 0 -56.5 11t-51.5 38q-29 25 -47 38t-58 27 t-86 14q-45 0 -85 -14.5t-58 -27t-48 -37.5q-21 -19 -32.5 -27t-31 -15t-43.5 -7q-35 0 -56.5 11t-51.5 38q-28 24 -47 37.5t-59 27.5t-85 14q-46 0 -86 -14t-58 -27t-47 -38q-30 -27 -51.5 -38t-56.5 -11v192q0 80 56 136t136 56h64v448h256v-448h256v448h256v-448h256v448 h256v-448h64q80 0 136 -56t56 -136zM512 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1024 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51 t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150zM1536 1312q0 -77 -36 -118.5t-92 -41.5q-53 0 -90.5 37.5t-37.5 90.5q0 29 9.5 51t23.5 34t31 28t31 31.5t23.5 44.5t9.5 67q38 0 83 -74t45 -150z" />
-<glyph unicode="&#xf1fe;" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1664 1024l256 -896h-1664v576l448 576l576 -576z" />
-<glyph unicode="&#xf200;" horiz-adv-x="1792" d="M768 646l546 -546q-106 -108 -247.5 -168t-298.5 -60q-209 0 -385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103v-762zM955 640h773q0 -157 -60 -298.5t-168 -247.5zM1664 768h-768v768q209 0 385.5 -103t279.5 -279.5t103 -385.5z" />
-<glyph unicode="&#xf201;" horiz-adv-x="2048" d="M2048 0v-128h-2048v1536h128v-1408h1920zM1920 1248v-435q0 -21 -19.5 -29.5t-35.5 7.5l-121 121l-633 -633q-10 -10 -23 -10t-23 10l-233 233l-416 -416l-192 192l585 585q10 10 23 10t23 -10l233 -233l464 464l-121 121q-16 16 -7.5 35.5t29.5 19.5h435q14 0 23 -9 t9 -23z" />
-<glyph unicode="&#xf202;" horiz-adv-x="1792" d="M1292 832q0 -6 10 -41q10 -29 25 -49.5t41 -34t44 -20t55 -16.5q325 -91 325 -332q0 -146 -105.5 -242.5t-254.5 -96.5q-59 0 -111.5 18.5t-91.5 45.5t-77 74.5t-63 87.5t-53.5 103.5t-43.5 103t-39.5 106.5t-35.5 95q-32 81 -61.5 133.5t-73.5 96.5t-104 64t-142 20 q-96 0 -183 -55.5t-138 -144.5t-51 -185q0 -160 106.5 -279.5t263.5 -119.5q177 0 258 95q56 63 83 116l84 -152q-15 -34 -44 -70l1 -1q-131 -152 -388 -152q-147 0 -269.5 79t-190.5 207.5t-68 274.5q0 105 43.5 206t116 176.5t172 121.5t204.5 46q87 0 159 -19t123.5 -50 t95 -80t72.5 -99t58.5 -117t50.5 -124.5t50 -130.5t55 -127q96 -200 233 -200q81 0 138.5 48.5t57.5 128.5q0 42 -19 72t-50.5 46t-72.5 31.5t-84.5 27t-87.5 34t-81 52t-65 82t-39 122.5q-3 16 -3 33q0 110 87.5 192t198.5 78q78 -3 120.5 -14.5t90.5 -53.5h-1 q12 -11 23 -24.5t26 -36t19 -27.5l-129 -99q-26 49 -54 70v1q-23 21 -97 21q-49 0 -84 -33t-35 -83z" />
-<glyph unicode="&#xf203;" d="M1432 484q0 173 -234 239q-35 10 -53 16.5t-38 25t-29 46.5q0 2 -2 8.5t-3 12t-1 7.5q0 36 24.5 59.5t60.5 23.5q54 0 71 -15h-1q20 -15 39 -51l93 71q-39 54 -49 64q-33 29 -67.5 39t-85.5 10q-80 0 -142 -57.5t-62 -137.5q0 -7 2 -23q16 -96 64.5 -140t148.5 -73 q29 -8 49 -15.5t45 -21.5t38.5 -34.5t13.5 -46.5v-5q1 -58 -40.5 -93t-100.5 -35q-97 0 -167 144q-23 47 -51.5 121.5t-48 125.5t-54 110.5t-74 95.5t-103.5 60.5t-147 24.5q-101 0 -192 -56t-144 -148t-50 -192v-1q4 -108 50.5 -199t133.5 -147.5t196 -56.5q186 0 279 110 q20 27 31 51l-60 109q-42 -80 -99 -116t-146 -36q-115 0 -191 87t-76 204q0 105 82 189t186 84q112 0 170 -53.5t104 -172.5q8 -21 25.5 -68.5t28.5 -76.5t31.5 -74.5t38.5 -74t45.5 -62.5t55.5 -53.5t66 -33t80 -13.5q107 0 183 69.5t76 174.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />
-<glyph unicode="&#xf204;" horiz-adv-x="2048" d="M1152 640q0 104 -40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM1920 640q0 104 -40.5 198.5 t-109.5 163.5t-163.5 109.5t-198.5 40.5h-386q119 -90 188.5 -224t69.5 -288t-69.5 -288t-188.5 -224h386q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5zM2048 640q0 -130 -51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5 t-136.5 204t-51 248.5t51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5z" />
-<glyph unicode="&#xf205;" horiz-adv-x="2048" d="M0 640q0 130 51 248.5t136.5 204t204 136.5t248.5 51h768q130 0 248.5 -51t204 -136.5t136.5 -204t51 -248.5t-51 -248.5t-136.5 -204t-204 -136.5t-248.5 -51h-768q-130 0 -248.5 51t-204 136.5t-136.5 204t-51 248.5zM1408 128q104 0 198.5 40.5t163.5 109.5 t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5t-163.5 109.5t-198.5 40.5t-198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5z" />
-<glyph unicode="&#xf206;" horiz-adv-x="2304" d="M762 384h-314q-40 0 -57.5 35t6.5 67l188 251q-65 31 -137 31q-132 0 -226 -94t-94 -226t94 -226t226 -94q115 0 203 72.5t111 183.5zM576 512h186q-18 85 -75 148zM1056 512l288 384h-480l-99 -132q105 -103 126 -252h165zM2176 448q0 132 -94 226t-226 94 q-60 0 -121 -24l174 -260q15 -23 10 -49t-27 -40q-15 -11 -36 -11q-35 0 -53 29l-174 260q-93 -95 -93 -225q0 -132 94 -226t226 -94t226 94t94 226zM2304 448q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 97 39.5 183.5t109.5 149.5l-65 98l-353 -469 q-18 -26 -51 -26h-197q-23 -164 -149 -274t-294 -110q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q114 0 215 -55l137 183h-224q-26 0 -45 19t-19 45t19 45t45 19h384v-128h435l-85 128h-222q-26 0 -45 19t-19 45t19 45t45 19h256q33 0 53 -28l267 -400 q91 44 192 44q185 0 316.5 -131.5t131.5 -316.5z" />
-<glyph unicode="&#xf207;" d="M384 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1408 320q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1362 716l-72 384q-5 23 -22.5 37.5t-40.5 14.5 h-918q-23 0 -40.5 -14.5t-22.5 -37.5l-72 -384q-5 -30 14 -53t49 -23h1062q30 0 49 23t14 53zM1136 1328q0 20 -14 34t-34 14h-640q-20 0 -34 -14t-14 -34t14 -34t34 -14h640q20 0 34 14t14 34zM1536 603v-603h-128v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5v128h-768v-128q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5v128h-128v603q0 112 25 223l103 454q9 78 97.5 137t230 89t312.5 30t312.5 -30t230 -89t97.5 -137l105 -454q23 -102 23 -223z" />
-<glyph unicode="&#xf208;" horiz-adv-x="2048" d="M1463 704q0 -35 -25 -60.5t-61 -25.5h-702q-36 0 -61 25.5t-25 60.5t25 60.5t61 25.5h702q36 0 61 -25.5t25 -60.5zM1677 704q0 86 -23 170h-982q-36 0 -61 25t-25 60q0 36 25 61t61 25h908q-88 143 -235 227t-320 84q-177 0 -327.5 -87.5t-238 -237.5t-87.5 -327 q0 -86 23 -170h982q36 0 61 -25t25 -60q0 -36 -25 -61t-61 -25h-908q88 -143 235.5 -227t320.5 -84q132 0 253 51.5t208 139t139 208t52 253.5zM2048 959q0 -35 -25 -60t-61 -25h-131q17 -85 17 -170q0 -167 -65.5 -319.5t-175.5 -263t-262.5 -176t-319.5 -65.5 q-246 0 -448.5 133t-301.5 350h-189q-36 0 -61 25t-25 61q0 35 25 60t61 25h132q-17 85 -17 170q0 167 65.5 319.5t175.5 263t262.5 176t320.5 65.5q245 0 447.5 -133t301.5 -350h188q36 0 61 -25t25 -61z" />
-<glyph unicode="&#xf209;" horiz-adv-x="1280" d="M953 1158l-114 -328l117 -21q165 451 165 518q0 56 -38 56q-57 0 -130 -225zM654 471l33 -88q37 42 71 67l-33 5.5t-38.5 7t-32.5 8.5zM362 1367q0 -98 159 -521q18 10 49 10q15 0 75 -5l-121 351q-75 220 -123 220q-19 0 -29 -17.5t-10 -37.5zM283 608q0 -36 51.5 -119 t117.5 -153t100 -70q14 0 25.5 13t11.5 27q0 24 -32 102q-13 32 -32 72t-47.5 89t-61.5 81t-62 32q-20 0 -45.5 -27t-25.5 -47zM125 273q0 -41 25 -104q59 -145 183.5 -227t281.5 -82q227 0 382 170q152 169 152 427q0 43 -1 67t-11.5 62t-30.5 56q-56 49 -211.5 75.5 t-270.5 26.5q-37 0 -49 -11q-12 -5 -12 -35q0 -34 21.5 -60t55.5 -40t77.5 -23.5t87.5 -11.5t85 -4t70 0h23q24 0 40 -19q15 -19 19 -55q-28 -28 -96 -54q-61 -22 -93 -46q-64 -46 -108.5 -114t-44.5 -137q0 -31 18.5 -88.5t18.5 -87.5l-3 -12q-4 -12 -4 -14 q-137 10 -146 216q-8 -2 -41 -2q2 -7 2 -21q0 -53 -40.5 -89.5t-94.5 -36.5q-82 0 -166.5 78t-84.5 159q0 34 33 67q52 -64 60 -76q77 -104 133 -104q12 0 26.5 8.5t14.5 20.5q0 34 -87.5 145t-116.5 111q-43 0 -70 -44.5t-27 -90.5zM11 264q0 101 42.5 163t136.5 88 q-28 74 -28 104q0 62 61 123t122 61q29 0 70 -15q-163 462 -163 567q0 80 41 130.5t119 50.5q131 0 325 -581q6 -17 8 -23q6 16 29 79.5t43.5 118.5t54 127.5t64.5 123t70.5 86.5t76.5 36q71 0 112 -49t41 -122q0 -108 -159 -550q61 -15 100.5 -46t58.5 -78t26 -93.5 t7 -110.5q0 -150 -47 -280t-132 -225t-211 -150t-278 -55q-111 0 -223 42q-149 57 -258 191.5t-109 286.5z" />
-<glyph unicode="&#xf20a;" horiz-adv-x="2048" d="M785 528h207q-14 -158 -98.5 -248.5t-214.5 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-203q-5 64 -35.5 99t-81.5 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t40 -51.5t66 -18q95 0 109 139zM1497 528h206 q-14 -158 -98 -248.5t-214 -90.5q-162 0 -254.5 116t-92.5 316q0 194 93 311.5t233 117.5q148 0 232 -87t97 -247h-204q-4 64 -35 99t-81 35q-57 0 -88.5 -60.5t-31.5 -177.5q0 -48 5 -84t18 -69.5t39.5 -51.5t65.5 -18q49 0 76.5 38t33.5 101zM1856 647q0 207 -15.5 307 t-60.5 161q-6 8 -13.5 14t-21.5 15t-16 11q-86 63 -697 63q-625 0 -710 -63q-5 -4 -17.5 -11.5t-21 -14t-14.5 -14.5q-45 -60 -60 -159.5t-15 -308.5q0 -208 15 -307.5t60 -160.5q6 -8 15 -15t20.5 -14t17.5 -12q44 -33 239.5 -49t470.5 -16q610 0 697 65q5 4 17 11t20.5 14 t13.5 16q46 60 61 159t15 309zM2048 1408v-1536h-2048v1536h2048z" />
-<glyph unicode="&#xf20b;" d="M992 912v-496q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v496q0 112 -80 192t-192 80h-272v-1152q0 -14 -9 -23t-23 -9h-160q-14 0 -23 9t-9 23v1344q0 14 9 23t23 9h464q135 0 249 -66.5t180.5 -180.5t66.5 -249zM1376 1376v-880q0 -135 -66.5 -249t-180.5 -180.5 t-249 -66.5h-464q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h160q14 0 23 -9t9 -23v-768h272q112 0 192 80t80 192v880q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />
-<glyph unicode="&#xf20c;" d="M1311 694v-114q0 -24 -13.5 -38t-37.5 -14h-202q-24 0 -38 14t-14 38v114q0 24 14 38t38 14h202q24 0 37.5 -14t13.5 -38zM821 464v250q0 53 -32.5 85.5t-85.5 32.5h-133q-68 0 -96 -52q-28 52 -96 52h-130q-53 0 -85.5 -32.5t-32.5 -85.5v-250q0 -22 21 -22h55 q22 0 22 22v230q0 24 13.5 38t38.5 14h94q24 0 38 -14t14 -38v-230q0 -22 21 -22h54q22 0 22 22v230q0 24 14 38t38 14h97q24 0 37.5 -14t13.5 -38v-230q0 -22 22 -22h55q21 0 21 22zM1410 560v154q0 53 -33 85.5t-86 32.5h-264q-53 0 -86 -32.5t-33 -85.5v-410 q0 -21 22 -21h55q21 0 21 21v180q31 -42 94 -42h191q53 0 86 32.5t33 85.5zM1536 1176v-1072q0 -96 -68 -164t-164 -68h-1072q-96 0 -164 68t-68 164v1072q0 96 68 164t164 68h1072q96 0 164 -68t68 -164z" />
-<glyph unicode="&#xf20d;" horiz-adv-x="1792" />
-<glyph unicode="&#xf20e;" horiz-adv-x="1792" />
-<glyph unicode="&#xf500;" horiz-adv-x="1792" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.ttf b/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.ttf
deleted file mode 100644
index 96a3639..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.woff b/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.woff
deleted file mode 100644
index 628b6a5..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.eot b/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.eot
deleted file mode 100644
index 0d76574..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.svg b/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.svg
deleted file mode 100644
index 55b094d..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.svg
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>
-This is a custom SVG webfont generated by Font Squirrel.
-</metadata>
-<defs>
-<font id="FontomasCustomRegular" horiz-adv-x="1024" >
-<font-face units-per-em="2048" ascent="1536" descent="-512" />
-<missing-glyph horiz-adv-x="500" />
-<glyph unicode="e" d="M31 102v1004l1030 -483l1018 481v-1002h-2048zM31 1389v249h2048v-249l-1020 -484z" />
-<glyph unicode="p" d="M31 102l780 781q-12 63 -12 116q0 264 187.5 451.5t452.5 187.5t452.5 -187t187.5 -452.5t-187.5 -453t-453.5 -187.5q-51 0 -115 13l-12 -13v-256h-256v-256h-256v-256h-768v512zM1311 998.5q0 -52.5 37.5 -90.5t91 -38t90.5 38t37 90.5t-37 90t-90.5 37.5t-91 -37.5 t-37.5 -90z" />
-<glyph unicode="u" d="M207 -90q0 45 112.5 111.5t305.5 138.5q193 68 264.5 139.5t71.5 196.5q0 33 -12.5 55t-30 36.5t-37 55.5t-31.5 102q-4 20 -14.5 29.5t-22.5 15t-24.5 14.5t-21.5 37.5t-15 76.5q0 31 10 52t20 27l11 7q-20 102 -29 180q0 7 -1 13q0 28 7 61q8 42 34.5 92.5t70 90.5 t120 67.5t174.5 27.5q100 0 178 -27.5t122 -67.5t71 -90.5t35 -92.5q5 -28 5 -51q0 -12 -1 -23q-8 -78 -29 -180q37 -16 37 -86q-2 -47 -12 -76t-21.5 -38t-23.5 -14.5t-22.5 -14.5t-14.5 -30q-10 -61 -30.5 -102t-37 -55.5t-30 -37t-13.5 -54.5q0 -125 72 -197t260 -139 q195 -72 306.5 -138.5t111.5 -111.5v-217h-963h-962v217z" />
-<glyph unicode="&#x2000;" horiz-adv-x="819" />
-<glyph unicode="&#x2001;" horiz-adv-x="1638" />
-<glyph unicode="&#x2002;" horiz-adv-x="819" />
-<glyph unicode="&#x2003;" horiz-adv-x="1638" />
-<glyph unicode="&#x2004;" horiz-adv-x="544" />
-<glyph unicode="&#x2005;" horiz-adv-x="409" />
-<glyph unicode="&#x2006;" horiz-adv-x="272" />
-<glyph unicode="&#x2007;" horiz-adv-x="272" />
-<glyph unicode="&#x2008;" horiz-adv-x="204" />
-<glyph unicode="&#x2009;" horiz-adv-x="327" />
-<glyph unicode="&#x200a;" horiz-adv-x="90" />
-<glyph unicode="&#x2013;" d="M205 512v205h614v-205h-614z" />
-<glyph unicode="&#x2014;" horiz-adv-x="2048" d="M205 512v205h1638v-205h-1638z" />
-<glyph unicode="&#x202f;" horiz-adv-x="327" />
-<glyph unicode="&#x205f;" horiz-adv-x="409" />
-<glyph unicode="&#xe000;" horiz-adv-x="500" d="M0 0v0v0v0v0z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.ttf b/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.ttf
deleted file mode 100644
index 9023661..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.woff b/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.woff
deleted file mode 100644
index 986efed..0000000
--- a/common/src/main/webapp/thirdparty/fonts/fontomas-webfont.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.eot b/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.eot
deleted file mode 100644
index e1d8186..0000000
--- a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.svg b/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.svg
deleted file mode 100644
index 9ce06d0..0000000
--- a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.svg
+++ /dev/null
@@ -1,175 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata>
-This is a custom SVG webfont generated by Font Squirrel.
-</metadata>
-<defs>
-<font id="FranchiseRegular" horiz-adv-x="737" >
-<font-face units-per-em="2048" ascent="1536" descent="-512" />
-<missing-glyph horiz-adv-x="270" />
-<glyph unicode=" " horiz-adv-x="270" />
-<glyph unicode="&#x09;" horiz-adv-x="270" />
-<glyph unicode="&#xa0;" horiz-adv-x="270" />
-<glyph unicode="!" horiz-adv-x="425" d="M82 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM92 836v28v541q0 29 29 29h184q29 0 29 -29v-541v-28q0 -16 -2 -29l-45 -430q-4 -29 -31 -29h-86q-27 0 -31 29l-45 430q-2 13 -2 29z" />
-<glyph unicode="&#x22;" horiz-adv-x="569" d="M41 1004v401q0 29 29 29h153q29 0 25 -29l-74 -401q-4 -29 -33 -29h-71q-29 0 -29 29zM319 1004v401q0 29 29 29h154q29 0 24 -29l-73 -401q-4 -29 -33 -29h-72q-29 0 -29 29z" />
-<glyph unicode="#" horiz-adv-x="974" d="M41 541v65q0 29 29 29h213l26 168h-239q-29 0 -29 28v66q0 29 29 29h260l43 270q4 29 33 29h63q29 0 25 -29l-43 -270h139l43 270q4 29 33 29h63q29 0 25 -29l-43 -270h194q29 0 29 -29v-66q0 -29 -29 -28h-215l-26 -168h241q29 0 29 -29v-65q0 -29 -29 -29h-262 l-43 -274q-4 -29 -33 -29h-63q-29 0 -25 29l43 274h-139l-43 -274q-4 -29 -33 -29h-63q-29 0 -25 29l43 274h-192q-29 0 -29 29zM403 635h140l26 168h-139z" />
-<glyph unicode="$" horiz-adv-x="675" d="M41 319v117q0 29 27 37l186 49q27 8 27 -20v-172q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v194q-2 27 -8 47.5t-25 36.5l-264 203q-31 29 -44 57.5t-13 75.5v172q0 96 60.5 167t152.5 87v76q0 29 29 29h110q29 0 29 -29v-76q92 -16 152.5 -87t60.5 -167v-78 q0 -29 -27 -37l-186 -49q-27 -8 -27 21v133q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-113q2 -23 8 -39t22 -32l269 -201q33 -29 42 -58.5t13 -66.5v-277q0 -96 -60.5 -166.5t-152.5 -86.5v-78q0 -29 -29 -29h-110q-29 0 -29 29v78q-92 16 -152.5 86.5 t-60.5 166.5z" />
-<glyph unicode="%" horiz-adv-x="1107" d="M72 883v401q0 68 48 116t116 48h61q68 0 116 -48t48 -116v-401q0 -68 -48 -116t-116 -48h-61q-68 0 -116 48t-48 116zM137 27l666 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-666 -1378q-8 -27 -37 -27h-110q-29 0 -21 27zM229 891q0 -29 29 -29h16q29 0 29 29v385 q0 29 -29 29h-16q-29 0 -29 -29v-385zM647 150v401q0 68 48 116t116 48h61q68 0 116 -48.5t48 -115.5v-401q0 -68 -48 -116t-116 -48h-61q-68 0 -116 48t-48 116zM805 158q0 -29 29 -29h16q29 0 29 29v385q0 29 -29 28h-16q-29 0 -29 -28v-385z" />
-<glyph unicode="&#x26;" horiz-adv-x="843" d="M82 244v362q0 43 10 88q6 16 13.5 29.5t19.5 24.5q27 23 59 34q-35 14 -59 41q-29 33 -39 82q-2 12 -3 25.5t-1 27.5v232q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-211q0 -29 -27 -21l-186 50q-27 8 -27 36v136 q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-238q0 -33 10 -43q4 -4 13 -11t24 -7h96q10 0 17 -7.5t7 -17.5v-151q0 -10 -7 -17.5t-17 -7.5h-96q-18 0 -25.5 -6t-11.5 -10q-6 -8 -8 -24.5t-2 -33.5v-352q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35 v297q0 16 17 12l292 -69q16 -4 17 -21v-67q0 -16 -17 -13l-69 15v-164q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="'" horiz-adv-x="290" d="M41 1004v401q0 29 29 29h153q29 0 25 -29l-74 -401q-4 -29 -33 -29h-71q-29 0 -29 29z" />
-<glyph unicode="(" horiz-adv-x="481" d="M20 717q0 307 89 532q43 113 107.5 206t148.5 169q18 18 36 0l52 -51q18 -18 2 -37q-51 -66 -90 -142.5t-66 -174.5q-29 -98 -44 -221.5t-15 -280.5q0 -158 15 -281t44 -221q27 -98 65.5 -175t90.5 -142q16 -18 -2 -37l-52 -51q-18 -18 -36 0q-84 76 -148.5 168 t-107.5 206q-89 222 -89 533z" />
-<glyph unicode=")" horiz-adv-x="481" d="M27 -102q51 66 89 142.5t66 174.5q27 98 43.5 221t16.5 281t-16.5 280.5t-43.5 221.5q-29 98 -66.5 174.5t-88.5 142.5q-16 18 2 37l51 51q18 18 37 0q168 -152 256 -375q43 -115 65.5 -246t22.5 -286q0 -156 -22.5 -288t-65.5 -245q-45 -115 -108.5 -207t-147.5 -167 q-18 -18 -37 0l-51 51q-18 19 -2 37z" />
-<glyph unicode="*" horiz-adv-x="536" d="M41 1087q0 6 4 14.5t16 14.5q18 10 47 25.5t64 27.5q-35 12 -63.5 27.5t-47.5 26.5q-20 10 -20 26q0 8 4 17l29 51q4 4 12 8q14 8 35 -2q23 -12 47.5 -29.5t52.5 -40.5q-6 35 -10 68t-4 55q-2 14 4 20.5t12 10.5q8 4 17 4h57q8 0 16 -4q16 -8 17 -31q0 -23 -4 -55.5 t-11 -67.5q29 23 53.5 40.5t47.5 29.5q18 10 35 2q8 -4 12 -8l29 -51q4 -8 4 -17q0 -14 -21 -26q-18 -10 -47 -25.5t-63 -28.5q35 -12 63.5 -27.5t46.5 -25.5q20 -12 21 -29q0 -8 -4 -14l-29 -51q-4 -6 -12 -10q-14 -8 -35 4q-43 20 -101 69q6 -35 10.5 -67.5t4.5 -54.5 q0 -23 -17 -31q-8 -4 -16 -4h-57q-8 0 -17 4q-6 4 -12 10t-4 21q0 23 4 55.5t10 66.5q-59 -49 -100 -69q-23 -10 -35 -4q-8 4 -12 10l-29 51q-4 6 -4 14z" />
-<glyph unicode="+" horiz-adv-x="897" d="M61 672v155q0 29 29 29h252v252q0 29 29 29h155q29 0 29 -29v-252h252q29 0 29 -29v-155q0 -29 -29 -29h-252v-252q0 -29 -29 -29h-155q-29 0 -29 29v252h-252q-29 0 -29 29z" />
-<glyph unicode="," horiz-adv-x="362" d="M41 129q0 45 33 80q37 39 92 39q61 0 101 -41t48 -101q4 -20 5.5 -40.5t-3.5 -40.5q-8 -55 -33.5 -100.5t-72.5 -76.5q-12 -8 -25.5 -15t-27.5 -11q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9t-39.5 26q-37 33 -37 94z" />
-<glyph unicode="-" horiz-adv-x="610" d="M61 672v155q0 29 29 29h430q29 0 29 -29v-155q0 -29 -29 -29h-430q-29 0 -29 29z" />
-<glyph unicode="." horiz-adv-x="344" d="M41 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92z" />
-<glyph unicode="/" horiz-adv-x="598" d="M2 27l426 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-426 -1378q-8 -27 -37 -27h-110q-29 0 -21 27z" />
-<glyph unicode="0" horiz-adv-x="757" d="M82 244v946q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-946q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5zM322 254q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14 t14.5 35v926q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-926z" />
-<glyph unicode="1" horiz-adv-x="577" d="M82 1014v153q0 10 7 18.5t17 10.5q47 18 87 51q35 27 64.5 69t37.5 101q6 16 22 17h152q27 -4 27 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29v1028q-27 -20 -66.5 -41t-74.5 -27q-14 -4 -23 4q-10 7 -10 21z" />
-<glyph unicode="2" horiz-adv-x="759" d="M82 979v211q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-123v-121q0 -63 -15.5 -122.5t-50.5 -112.5q-31 -49 -66.5 -100.5t-68.5 -100.5q-6 -10 -12 -19.5t-12 -19.5q-31 -49 -51.5 -92t-32.5 -76q-14 -37 -25 -72h317 q18 0 19 -18v-195q0 -18 -19 -18h-540q-14 0 -19 18q-6 39 -7 77t1 69q2 37 8 69q4 39 14.5 74t20.5 64q12 33 27 59q53 96 100 170t84 127q43 61 80 107q10 23 8 43t0 61v242q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50 q-27 -8 -27 21z" />
-<glyph unicode="3" horiz-adv-x="757" d="M82 244v223q0 29 27 37l186 49q27 8 27 -21v-278q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v352q0 16 -2 32.5t-8 25.5q-4 4 -11 10t-26 6h-96q-10 0 -17.5 7t-7.5 18v151q0 10 7.5 17.5t17.5 7.5h96q14 0 23.5 7t13.5 11q10 10 10 43v238q0 20 -14 34.5 t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50q-27 -8 -27 21v211q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-232q0 -14 -1 -27t-3 -26q-10 -49 -39 -82q-27 -27 -60 -41q33 -12 60 -34 q18 -18 33 -54q10 -45 10 -88v-362q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="4" horiz-adv-x="798" d="M41 315v174q0 10 2 15q0 4 2 6q80 156 132 302t83 266t44 206t18 123q0 6 4 12l9 9q5 5 15 6h246q29 0 29 -29v-893h65q6 0 19 -8q8 -8 8 -19v-170q0 -12 -8 -20q-12 -8 -19 -8h-65v-258q0 -29 -29 -29h-182q-29 0 -29 29v258h-317q-10 0 -19 8q-8 6 -8 20zM233 512h150 v471q-12 -63 -33 -139q-16 -66 -46 -150t-71 -182z" />
-<glyph unicode="5" horiz-adv-x="759" d="M82 244v84q0 29 27 37l186 49q27 8 27 -21v-139q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v403q0 33 -12 45q-4 4 -13.5 10.5t-23.5 6.5h-16q-14 0 -23.5 -7t-13.5 -12q-12 -12 -12 -43v-57q0 -10 -6.5 -16t-16.5 -2l-195 51q-23 8 -22 29v743q0 29 29 29h120 h371q29 0 29 -29v-174q0 -29 -29 -29h-280v-309q61 29 133 29q41 0 77 -11q72 -20 109 -73.5t35 -126.5v-467q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="6" horiz-adv-x="757" d="M82 244v946q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-84q0 -29 -27 -37l-186 -49q-27 -8 -27 20v140q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-301q61 29 133 28q41 0 77 -10q143 -41 144 -201v-452 q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5zM322 254q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v389q0 33 -12 45q-4 4 -13.5 10.5t-23.5 6.5h-16q-14 0 -23.5 -7.5t-13.5 -11.5q-12 -12 -12 -43v-389z" />
-<glyph unicode="7" horiz-adv-x="649" d="M41 1235v172q0 6 8 18q8 8 19 9h501q12 0 21 -9q8 -12 8 -18v-190q-43 -115 -70.5 -226.5t-45 -206t-24.5 -162t-9 -94.5q-10 -123 -13.5 -244.5t-3.5 -256.5q0 -27 -26 -27h-189q-14 0 -22 12q-4 6 -5 15q0 190 10.5 378.5t39.5 374.5q25 154 55.5 262.5t48.5 165.5 h-276q-12 0 -19 9q-8 8 -8 18z" />
-<glyph unicode="8" horiz-adv-x="757" d="M82 244v362q0 43 10 88q6 16 13.5 29.5t19.5 24.5q27 23 59 34q-35 14 -59 41q-29 33 -39 82q-2 12 -3 25.5t-1 27.5v232q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-232q0 -14 -1 -27t-3 -26q-10 -49 -39 -82 q-27 -27 -60 -41q33 -12 60 -34q18 -18 33 -54q10 -45 10 -88v-362q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5zM322 254q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v342q0 16 -2 32.5t-8 24.5 q-4 4 -11 10.5t-26 6.5h-20q-18 0 -25.5 -6.5t-11.5 -10.5q-6 -8 -8 -24.5t-2 -32.5v-342zM322 956q0 -33 10 -43q4 -4 13 -11t24 -7h20q14 0 23.5 7t13.5 11q10 10 10 43v224q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-224z" />
-<glyph unicode="9" horiz-adv-x="757" d="M82 244v84q0 29 27 37l186 49q27 8 27 -21v-139q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v301q-63 -29 -133 -29q-41 0 -78 11q-143 39 -143 200v453q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-946 q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5zM322 791q0 -33 12 -46q4 -4 13 -10t24 -6h16q14 0 23.5 7t13.5 12q12 12 12 43v389q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-389z" />
-<glyph unicode=":" horiz-adv-x="344" d="M41 444q0 53 39 92t92 39t92 -38.5t39 -92.5q0 -53 -39 -92t-92 -39t-92 39t-39 92zM41 905q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92z" />
-<glyph unicode=";" horiz-adv-x="362" d="M41 461q0 45 33 80q37 39 92 39q61 0 101 -41t48 -101q4 -20 5.5 -40.5t-3.5 -41.5q-8 -55 -33.5 -100t-72.5 -76q-12 -8 -25.5 -15t-27.5 -11q-2 0 -13 -2l-20 -5q-4 0 -8 3q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9t-39.5 26q-37 33 -37 94zM41 905q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92z" />
-<glyph unicode="&#x3c;" horiz-adv-x="655" d="M41 690v53q0 10 6 15l524 440q10 8 16.5 4t6.5 -16v-201q0 -29 -23 -47l-92 -78l-166 -137q-2 -2 -2 -6t2 -6l166 -138l92 -77q23 -18 23 -47v-201q0 -12 -6 -16.5t-17 4.5l-524 440q-4 2 -5 6t-1 8z" />
-<glyph unicode="=" horiz-adv-x="720" d="M61 512v156q0 29 29 28h541q29 0 28 -28v-156q0 -29 -28 -29h-541q-29 0 -29 29zM61 819v156q0 29 29 29h541q29 0 28 -29v-156q0 -29 -28 -28h-541q-29 -1 -29 28z" />
-<glyph unicode="&#x3e;" horiz-adv-x="655" d="M61 248v201q0 29 23 47l258 215q2 2 2 6t-2 6l-258 215q-23 18 -23 47v201q0 12 6.5 16t16.5 -4l524 -440q6 -4 6 -15v-53q0 -4 -1 -8t-5 -6l-524 -440q-10 -8 -16.5 -4t-6.5 16z" />
-<glyph unicode="?" horiz-adv-x="782" d="M72 946v156q0 168 82 257t231 89q104 0 167.5 -36t99.5 -92t47.5 -125t9.5 -132q-2 -59 -6.5 -94t-18.5 -66t-45 -68.5t-86 -101.5q-37 -43 -74 -82t-55 -84q-12 -29 -18.5 -77t-10.5 -87l-2 -30q0 -10 -7 -16.5t-17 -6.5h-86q-23 0 -27 23q-4 49 -8 90q-4 35 -6 65.5 t-2 38.5q-2 47 14 88t42 81t59.5 81t64.5 88q18 29 27.5 48.5t14.5 37t5 34.5v42q0 70 -14.5 110t-67.5 40q-39 0 -56.5 -29t-17.5 -76v-108q0 -10 -6 -18.5t-16 -10.5l-195 -47q-10 -4 -16 2t-6 16zM201 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92 z" />
-<glyph unicode="@" horiz-adv-x="1097" d="M41 717q0 133 40 243.5t112 194.5t167 131t205 47q63 0 118.5 -13t102.5 -36t83 -55.5t67 -71.5q59 -78 90 -170t31 -180q0 -117 -45 -219q-23 -47 -55.5 -87t-75.5 -67q-59 -35 -133 -35q-57 0 -95 23q-41 25 -59 70q-10 -10 -19.5 -20.5t-19.5 -18.5q-51 -39 -111 -39 q-63 0 -96 32.5t-49 73.5q-18 47 -20 107q0 49 9 100t31 98q45 98 125 154q55 39 119 39q53 0 90 -31l11 -10l4 10q8 20 24 21h127q10 0 21 -11q8 -10 4 -24l-99 -340q-2 -8 -7 -24.5t-6 -35t2 -33t20 -16.5q10 -2 26.5 1t44.5 26q25 14 45 51q20 35 32.5 88t12.5 119 q0 92 -26.5 162.5t-73.5 122.5q-47 51 -109.5 75.5t-140.5 28.5q-61 2 -139 -28.5t-133 -108.5q-47 -68 -78 -156t-31 -192q0 -109 24.5 -196t76.5 -148q51 -61 123.5 -95t156.5 -34q82 0 146.5 27.5t109.5 72.5q8 8 21 8q12 0 18 -8l49 -59q6 -8 4 -21.5t-10 -21.5 q-63 -63 -145 -94t-187 -35q-92 -4 -163.5 21.5t-122.5 59.5q-59 39 -105 91q-139 157 -139 436zM453 635q0 -29 8 -49q2 -12 10 -19q14 -14 43 2q10 4 23 21q25 31 38 84l41 153q0 18 -4 35q-6 10 -12 15q-2 2 -14 2q-23 0 -45 -21q-25 -23 -45 -61q-20 -39 -31.5 -83 t-11.5 -79z" />
-<glyph unicode="A" horiz-adv-x="729" d="M43 29l154 1376q4 29 32 29h271q29 0 32 -29l154 -1376q4 -29 -24 -29h-187q-27 0 -31 29l-16 221h-127l-16 -221q-4 -29 -31 -29h-186q-29 0 -25 29zM317 479h95l-39 555h-17z" />
-<glyph unicode="B" horiz-adv-x="747" d="M92 29v1376q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-205q0 -94 -57 -158q-31 -33 -74 -53q45 -16 74 -45t43 -68t14 -86v-303q0 -53 -20.5 -100t-55.5 -82t-82 -55.5t-100 -20.5h-307q-29 0 -29 29zM332 219h65q20 0 34.5 14.5t14.5 34.5v326 q0 20 -14 34.5t-35 14.5h-65v-424zM332 866h65q20 0 34.5 14.5t14.5 34.5v250q0 20 -14 34.5t-35 14.5h-65v-348z" />
-<glyph unicode="C" horiz-adv-x="727" d="M72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-164q0 -29 -27 -37l-186 -28q-27 -8 -27 20v199q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926q0 -20 14.5 -34.5t34.5 -14.5h17 q20 0 34.5 14t14.5 35v287q0 29 27 20l186 -24q27 -8 27 -37v-256q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="D" horiz-adv-x="757" d="M92 29v1376q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-918q0 -53 -20.5 -100t-55.5 -82t-82 -55.5t-100 -20.5h-307q-29 0 -29 29zM332 219h65q20 0 34.5 14.5t14.5 34.5v897q0 20 -14 34.5t-35 14.5h-65v-995z" />
-<glyph unicode="E" horiz-adv-x="675" d="M92 29v1376q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-295h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-419h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29z" />
-<glyph unicode="F" horiz-adv-x="655" d="M92 29v1376q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-295h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-630q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="G" d="M72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-66q0 -29 -27 -37l-186 -67q-27 -8 -27 20v140q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v364h-57v234h268q29 0 29 -29v-579q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="H" horiz-adv-x="798" d="M92 29v1376q0 29 29 29h182q29 0 29 -29v-551h135v551q0 29 29 29h182q29 0 29 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29v585h-135v-585q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="I" horiz-adv-x="423" d="M92 29v1376q0 29 29 29h182q29 0 29 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="J" horiz-adv-x="727" d="M51 244v260q0 29 27 37l186 49q27 8 27 -21v-315q0 -20 14 -34.5t35 -14.5h16q20 0 35 14t15 35v1151q0 29 28 29h182q29 0 29 -29v-1161q0 -53 -20.5 -100.5t-55 -82t-82 -55t-100.5 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="K" horiz-adv-x="825" d="M92 29v1376q0 29 29 29h182q29 0 29 -29v-440l188 444q10 25 39 25h205q12 0 16 -10q2 -5 2 -9.5t-2 -9.5l-274 -604l270 -772q4 -10 -2 -19.5t-18 -9.5h-203q-12 0 -22.5 7t-14.5 18l-149 462l-35 -86v-372q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="L" horiz-adv-x="675" d="M102 29v1376q0 29 29 29h182q29 0 29 -29v-1165h254q29 0 29 -29v-182q0 -29 -29 -29h-277h-4h-2h-182q-29 0 -29 29z" />
-<glyph unicode="M" horiz-adv-x="983" d="M92 29v1376q0 29 29 29h174q12 0 21.5 -9.5t13.5 -19.5l162 -733l161 733q4 10 13.5 19.5t21.5 9.5h174q29 0 29 -29v-1376q0 -29 -29 -29h-196q-29 0 -29 29v647l-135 -529q-4 -10 -10.5 -10t-10.5 10l-135 529v-647q0 -29 -29 -29h-196q-29 0 -29 29z" />
-<glyph unicode="N" horiz-adv-x="839" d="M92 29v1376q0 29 29 29h135q12 0 23.5 -8.5t15.5 -18.5l213 -657v655q0 29 29 29h182q29 0 29 -29v-1376q0 -29 -29 -29h-131q-12 0 -23.5 8t-15.5 19l-217 678v-676q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="O" d="M72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-946q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v926q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926z" />
-<glyph unicode="P" horiz-adv-x="727" d="M92 29v1376q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-334q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-96v-555q0 -29 -29 -29h-182q-29 0 -29 29zM332 803h65q20 0 34.5 14t14.5 35v313q0 20 -14 34.5t-35 14.5h-65v-411z" />
-<glyph unicode="Q" horiz-adv-x="745" d="M72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-946q0 -57 -22.5 -107.5t-63.5 -85.5l88 -133q4 -7 4 -14q0 -4 -1 -7q-3 -11 -14 -16l-141 -63q-10 -4 -18 -4q-16 0 -27 16l-104 156h-37q-53 0 -100.5 20.5t-82 55 t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v926q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926z" />
-<glyph unicode="R" horiz-adv-x="770" d="M92 29v1376q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-334q0 -76 -39 -136.5t-102 -93.5l182 -583q1 -5 1 -10q0 -19 -21 -19h-187q-12 0 -23.5 8t-15.5 21l-149 501v-530l-2 20q-4 -20 -27 -20h-182q-29 0 -29 29zM332 803h65q20 0 34.5 14t14.5 35 v313q0 20 -14 34.5t-35 14.5h-65v-411z" />
-<glyph unicode="S" horiz-adv-x="716" d="M61 244v196q0 29 27 37l186 49q27 8 27 -20v-252q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v270q-2 27 -8.5 47.5t-24.5 36.5l-264 203q-31 29 -44.5 57.5t-13.5 75.5v246q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100.5 -20.5t82 -55.5t55 -82 t20.5 -100v-78q0 -29 -26 -37l-187 -49q-27 -8 -26 21v133q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-187q2 -23 8 -39t23 -32l268 -201q33 -29 42 -58.5t13 -66.5v-352q0 -53 -20.5 -100.5t-55 -82t-81.5 -55t-101 -20.5h-78q-53 0 -100 20.5t-82 55 t-55.5 82t-20.5 100.5z" />
-<glyph unicode="T" horiz-adv-x="688" d="M51 1223v182q0 29 29 29h528q29 0 29 -29v-182q0 -29 -29 -29h-145v-1165q0 -29 -29 -29h-182q-10 0 -19.5 8t-9.5 21v1165h-143q-29 0 -29 29z" />
-<glyph unicode="U" d="M72 244v1161q0 29 28 29h183q29 0 28 -29v-1151q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v1151q0 29 29 29h182q29 0 29 -29v-1161q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="V" horiz-adv-x="774" d="M23 1405q-4 29 24 29h221q27 0 31 -29l84 -868h8l84 868q4 29 31 29h221q29 0 25 -29l-242 -1376q-4 -29 -33 -29h-180q-29 0 -33 29z" />
-<glyph unicode="W" horiz-adv-x="1165" d="M23 1405q-4 29 24 29h221q27 0 31 -29l92 -836h8l70 836q4 29 31 29h166q27 0 30 -29l70 -836h8l92 836q4 29 31 29h221q29 0 25 -29l-242 -1376q-4 -29 -33 -29h-180q-29 0 -33 29l-71 510h-2l-72 -510q-4 -29 -33 -29h-180q-29 0 -33 29z" />
-<glyph unicode="X" horiz-adv-x="774" d="M63 29l168 690l-168 686q-1 4 -1 7q0 6 5 12q7 9 19 10h190q29 0 33 -29l78 -406l78 406q4 29 33 29h190q12 0 20 -10q5 -6 4 -12q0 -4 -1 -7l-168 -686l168 -690q1 -5 1 -10q0 -19 -24 -19h-190q-29 0 -33 29l-78 405l-78 -405q-4 -29 -33 -29h-190q-12 0 -19 8 q-5 5 -5 12q0 5 1 9z" />
-<glyph unicode="Y" horiz-adv-x="757" d="M23 1405q-2 4 -2 8q0 6 4 11q6 9 18 10h217q29 0 33 -29l82 -516h8l82 516q4 29 33 29h217q12 0 18 -10q4 -6 4 -11q0 -4 -2 -8l-235 -848v-528q0 -29 -29 -29h-184q-29 0 -29 29v528z" />
-<glyph unicode="Z" horiz-adv-x="722" d="M61 1233v172q0 29 29 29h539q12 0 19 -9.5t3 -19.5l-284 -1176h266q29 0 29 -28v-172q0 -29 -29 -29h-543q-12 0 -19.5 8t-2.5 21l284 1175h-262q-29 0 -29 29z" />
-<glyph unicode="[" horiz-adv-x="471" d="M20 -209v1851q0 29 29 29h373q29 0 29 -29v-139q0 -29 -29 -28h-197v-1516h197q29 0 29 -29v-139q0 -29 -29 -29h-373q-29 0 -29 29z" />
-<glyph unicode="\" horiz-adv-x="598" d="M2 1405q-4 10 2 19.5t19 9.5h110q29 0 37 -27l426 -1380q8 -27 -21 -27h-110q-29 0 -37 27z" />
-<glyph unicode="]" horiz-adv-x="471" d="M20 -70q0 29 29 29h197v1516h-197q-29 0 -29 28v139q0 29 29 29h373q29 0 29 -29v-1851q0 -29 -29 -29h-373q-29 0 -29 29v139z" />
-<glyph unicode="^" horiz-adv-x="569" d="M4 1104q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12z" />
-<glyph unicode="_" horiz-adv-x="856" d="M41 -29q0 29 29 29h716q29 0 29 -29v-127q0 -29 -29 -28h-716q-29 0 -29 28v127z" />
-<glyph unicode="a" horiz-adv-x="729" d="M43 29l154 1171q4 29 32 29h271q29 0 32 -29l154 -1171q4 -29 -24 -29h-187q-27 0 -31 29l-16 200h-127l-16 -200q-4 -29 -31 -29h-186q-29 0 -25 29zM317 459h95l-39 452h-17z" />
-<glyph unicode="b" horiz-adv-x="747" d="M92 29v1171q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-135q0 -94 -57 -158q-31 -33 -74 -53q45 -16 74 -45t43 -68t14 -86v-168q0 -53 -20.5 -100t-55.5 -82t-82 -55.5t-100 -20.5h-301q-12 0 -23.5 3t-11.5 26zM332 219h65q20 0 34.5 14.5t14.5 34.5 v191q0 20 -14 34.5t-35 14.5h-65v-289zM332 731h65q20 0 34.5 14.5t14.5 34.5v181q0 20 -14 34.5t-35 14.5h-65v-279z" />
-<glyph unicode="c" horiz-adv-x="727" d="M72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82t20.5 -100.5v-123q0 -29 -27 -37l-186 -28q-27 -8 -27 20v158q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721q0 -20 14.5 -34.5t34.5 -14.5h17 q20 0 34.5 14t14.5 35v246q0 29 27 20l186 -24q27 -8 27 -37v-215q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="d" horiz-adv-x="757" d="M92 29v1171q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-713q0 -53 -20.5 -100t-55.5 -82t-82 -55.5t-100 -20.5h-307q-29 0 -29 29zM332 219h65q20 0 34.5 14.5t14.5 34.5v693q0 20 -14 34.5t-35 14.5h-65v-791z" />
-<glyph unicode="e" horiz-adv-x="675" d="M92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-276h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29z" />
-<glyph unicode="f" horiz-adv-x="655" d="M92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="g" d="M72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82t20.5 -100.5v-45q0 -29 -27 -37l-186 -67q-27 -8 -27 20v119q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v221h-57v234h268q29 0 29 -29v-436q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="h" horiz-adv-x="798" d="M92 29v1171q0 29 29 29h182q29 0 29 -29v-469h135v469q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-182q-29 0 -29 29v463h-135v-463q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="i" horiz-adv-x="423" d="M92 29v1171q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="j" horiz-adv-x="727" d="M51 244v219q0 29 27 37l186 49q27 8 27 -21v-274q0 -20 14 -34.5t35 -14.5h16q20 0 35 14t15 35v946q0 29 28 29h182q29 0 29 -29v-956q0 -53 -20.5 -100.5t-55 -82t-82 -55t-100.5 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="k" horiz-adv-x="825" d="M92 29v1171q0 29 29 29h182q29 0 29 -29v-358l188 362q10 25 39 25h205q12 0 16 -9q2 -5 2 -10t-2 -10l-278 -522l274 -649q4 -10 -2 -19.5t-18 -9.5h-203q-12 0 -22.5 7t-14.5 18l-149 340l-35 -66v-270q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="l" horiz-adv-x="675" d="M102 29v1171q0 29 29 29h182q29 0 29 -29v-960h254q29 0 29 -29v-182q0 -29 -29 -29h-277h-4h-2h-182q-29 0 -29 29z" />
-<glyph unicode="m" horiz-adv-x="983" d="M92 29v1171q0 29 29 29h174q12 0 21.5 -9.5t13.5 -19.5l162 -631l161 631q4 10 13.5 19.5t21.5 9.5h174q29 0 29 -29v-1171q0 -29 -29 -29h-196q-29 0 -29 29v544l-135 -487q-4 -10 -10.5 -10t-10.5 10l-135 487v-544q0 -29 -29 -29h-196q-29 0 -29 29z" />
-<glyph unicode="n" horiz-adv-x="839" d="M92 29v1171q0 29 29 29h135q12 0 23.5 -8.5t15.5 -18.5l213 -596v594q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-131q-12 0 -23.5 8t-15.5 19l-217 534v-532q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="o" d="M72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82t20.5 -100.5v-741q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v721q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721z" />
-<glyph unicode="p" horiz-adv-x="727" d="M92 29v1171q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-273q0 -53 -20.5 -100t-55.5 -82t-82 -55.5t-100 -20.5h-96v-411q0 -29 -29 -29h-182q-29 0 -29 29zM332 659h65q20 0 34.5 14.5t14.5 35.5v252q0 20 -14 34.5t-35 14.5h-65v-351z" />
-<glyph unicode="q" horiz-adv-x="745" d="M72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82t20.5 -100.5v-741q0 -57 -22.5 -107.5t-63.5 -85.5l88 -133q4 -7 4 -14q0 -4 -1 -7q-3 -11 -14 -16l-141 -63q-10 -4 -18 -4q-16 0 -27 16l-104 156h-37q-53 0 -100.5 20.5t-82 55 t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v721q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721z" />
-<glyph unicode="r" horiz-adv-x="770" d="M92 29v1171q0 29 29 29h307q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-252q0 -76 -45 -136.5t-109 -93.5l195 -460q1 -5 1 -10q0 -19 -21 -19h-187q-12 0 -23.5 8t-15.5 21l-149 379v-379q0 -29 -31 -29h-182q-27 0 -27 29zM332 680h65q20 0 34.5 14.5t14.5 34.5v232 q0 20 -14 34.5t-35 14.5h-65v-330z" />
-<glyph unicode="s" horiz-adv-x="716" d="M61 244v114q0 29 27 37l186 49q27 8 27 -20v-170q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v127q-2 27 -8.5 47.5t-24.5 36.5l-264 203q-31 29 -44.5 57.5t-13.5 75.5v184q0 53 20.5 100.5t55.5 82t82 55t100 20.5h78q53 0 100.5 -20.5t82 -55t55 -82 t20.5 -100.5v-78q0 -29 -26 -37l-187 -49q-27 -8 -26 21v133q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-125q2 -23 8 -39t23 -33l268 -200q33 -29 42 -59t13 -66v-209q0 -53 -20.5 -100.5t-55 -82t-81.5 -55t-101 -20.5h-78q-53 0 -100 20.5t-82 55 t-55.5 82t-20.5 100.5z" />
-<glyph unicode="t" horiz-adv-x="688" d="M51 1018v182q0 29 29 29h528q29 0 29 -29v-182q0 -29 -29 -29h-145v-960q0 -29 -29 -29h-182q-10 0 -19.5 8t-9.5 21v960h-143q-29 0 -29 29z" />
-<glyph unicode="u" d="M72 244v956q0 29 28 29h183q29 0 28 -29v-946q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v946q0 29 29 29h182q29 0 29 -29v-956q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="v" horiz-adv-x="774" d="M23 1200q-4 29 24 29h221q27 0 31 -29l84 -766h8l84 766q4 29 31 29h221q29 0 25 -29l-242 -1171q-4 -29 -33 -29h-180q-29 0 -33 29z" />
-<glyph unicode="w" horiz-adv-x="1124" d="M23 1200q-4 29 24 29h221q27 0 31 -29l72 -692h8l78 692q4 29 30 29h150q27 0 31 -29l77 -692h9l71 692q4 29 31 29h221q29 0 25 -29l-221 -1171q-4 -29 -33 -29h-180q-29 0 -33 29l-72 428h-2l-72 -428q-4 -29 -32 -29h-181q-29 0 -32 29z" />
-<glyph unicode="x" horiz-adv-x="774" d="M63 29l168 587l-168 584q-1 4 -1 7q0 6 5 13q7 9 19 9h190q29 0 33 -29l78 -303l78 303q4 29 33 29h190q12 0 20 -9q5 -6 4 -13q0 -4 -1 -7l-168 -584l168 -587q1 -5 1 -10q0 -19 -24 -19h-190q-29 0 -33 29l-78 303l-78 -303q-4 -29 -33 -29h-190q-12 0 -19 8 q-5 5 -5 12q0 5 1 9z" />
-<glyph unicode="y" horiz-adv-x="757" d="M23 1200q-2 4 -2 8q0 6 4 12q6 9 18 9h217q29 0 33 -29l82 -393h8l82 393q4 29 33 29h217q12 0 18 -9q4 -6 4 -12q0 -4 -2 -8l-235 -725v-446q0 -29 -29 -29h-184q-29 0 -29 29v446z" />
-<glyph unicode="z" horiz-adv-x="722" d="M61 1028v172q0 29 29 29h539q12 0 19 -9.5t3 -19.5l-284 -971h266q29 0 29 -28v-172q0 -29 -29 -29h-543q-12 0 -19.5 8t-2.5 21l284 970h-262q-29 0 -29 29z" />
-<glyph unicode="{" horiz-adv-x="606" d="M82 666v102q0 14 8 23q8 8 23 8h59q25 -2 45 4q16 4 31.5 18.5t19.5 42.5q2 16 -6 40t-20.5 48.5t-25.5 47t-19 36.5q-29 55 -51.5 123t-26.5 146q-4 72 21.5 123t58.5 85q37 37 86 64q27 12 61 20q29 6 67 10.5t81 -5.5q6 -2 14 -9q16 -12 16 -32v-117q0 -12 -8 -21 q-8 -8 -22 -8h-68q-31 0 -53 -10q-20 -10 -35.5 -30.5t-11.5 -61.5q2 -35 14 -74t29 -80q16 -41 34.5 -80t32.5 -75q27 -68 29 -125q2 -49 -20.5 -96.5t-94.5 -65.5q72 -20 94.5 -66.5t20.5 -95.5q-2 -57 -29 -125q-14 -39 -32.5 -77t-34.5 -79t-28.5 -79.5t-14.5 -73.5 q-4 -41 11 -61.5t36 -30.5q23 -10 53 -11h68q14 0 22 -8t8 -20v-117q0 -14 -5 -21.5t-11 -11.5q-8 -6 -14 -8q-43 -10 -81 -8t-67 10q-35 8 -61 23q-49 25 -86 63q-33 33 -58.5 85t-21.5 124q4 78 26.5 145.5t51.5 122.5q6 14 19 36t25.5 46.5t20.5 49t6 40.5 q-4 29 -19.5 43.5t-31.5 18.5q-20 6 -45 4h-59q-14 0 -23 8q-8 9 -8 23z" />
-<glyph unicode="|" horiz-adv-x="327" d="M82 -166v1765q0 29 29 29h106q29 0 29 -29v-1765q0 -29 -29 -29h-106q-29 0 -29 29z" />
-<glyph unicode="}" horiz-adv-x="606" d="M82 -10q0 12 8 20t23 8h67q31 0 53 11q20 10 35 30.5t13 61.5q-2 35 -14.5 73.5t-28.5 79.5t-35 79t-33 77q-27 68 -29 125q-2 49 20.5 95t94.5 67q-72 18 -94.5 65t-20.5 97q2 57 29 125q14 37 32.5 75.5t35.5 79.5q16 41 28.5 80t14.5 74q2 41 -12.5 61.5t-35.5 30.5 q-23 10 -53 10h-67q-14 0 -23 8q-8 8 -8 21v117q0 23 14 32q8 6 17 9q41 10 79.5 6t67.5 -11q35 -8 62 -20q49 -27 86 -64q33 -35 58.5 -86t20.5 -122q-4 -78 -26.5 -145.5t-50.5 -123.5q-6 -14 -19.5 -36.5t-26 -47t-20.5 -48t-6 -40.5q4 -29 19.5 -43t31.5 -18 q20 -6 45 -4h60q14 0 22 -8t8 -23v-102q0 -14 -8 -23q-8 -8 -22 -8h-60q-25 2 -45 -4q-16 -4 -31.5 -18.5t-19.5 -43.5q-2 -16 6 -40.5t20.5 -49t25.5 -46t20 -36.5q29 -55 51 -122.5t26 -145.5q4 -72 -21.5 -124t-57.5 -85q-37 -39 -86 -63q-27 -14 -62 -23 q-29 -8 -67.5 -10t-79.5 8q-8 2 -17 8q-14 10 -14 33v117z" />
-<glyph unicode="&#xa2;" d="M72 457v528q0 96 60.5 167t152.5 87v166q0 29 28 29h111q29 0 29 -29v-166q92 -16 152.5 -87t60.5 -167v-59q0 -29 -27 -37l-186 -29q-27 -8 -27 21v94q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-508q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v186q0 29 27 21l186 -25q27 -8 27 -37v-155q0 -96 -60.5 -167t-152.5 -87v-174q0 -29 -29 -29h-111q-29 0 -28 29v174q-92 16 -152.5 87t-60.5 167z" />
-<glyph unicode="&#xa9;" horiz-adv-x="532" d="M41 1223q0 47 17.5 88t48 71.5t71.5 48t88 17.5t88 -17.5t72 -48t48.5 -71.5t17.5 -88t-17.5 -88t-48.5 -72t-72 -48.5t-88 -17.5t-88 17.5t-71.5 48.5t-48 72t-17.5 88zM82 1223q0 -78 53 -131.5t131 -53.5t131.5 53.5t53.5 131.5t-53.5 131t-131.5 53t-131 -53 t-53 -131zM190 1135v178q0 29 18.5 47t47.5 18h20q29 0 47.5 -18.5t18.5 -46.5v-43q0 -8 -6 -8l-49 -9q-6 -4 -6 7v51q0 12 -13 12h-4q-12 0 -12 -12v-174q0 -12 12 -13h4q12 0 13 13v57q0 6 6 6l49 -8q6 -4 6 -8v-49q0 -29 -18.5 -47.5t-47.5 -18.5h-20q-29 0 -47.5 18.5 t-18.5 47.5z" />
-<glyph unicode="&#xaa;" horiz-adv-x="729" d="M43 29l154 1171q4 29 32 29h271q29 0 32 -29l154 -1171q4 -29 -24 -29h-187q-27 0 -31 29l-16 200h-127l-16 -200q-4 -29 -31 -29h-186q-29 0 -25 29zM317 459h95l-39 452h-17z" />
-<glyph unicode="&#xad;" horiz-adv-x="610" d="M61 672v155q0 29 29 29h430q29 0 29 -29v-155q0 -29 -29 -29h-430q-29 0 -29 29z" />
-<glyph unicode="&#xae;" horiz-adv-x="532" d="M41 1223q0 47 17.5 88t48 71.5t71.5 48t88 17.5t88 -17.5t72 -48t48.5 -71.5t17.5 -88t-17.5 -88t-48.5 -72t-72 -48.5t-88 -17.5t-88 17.5t-71.5 48.5t-48 72t-17.5 88zM82 1223q0 -78 53 -131.5t131 -53.5t131.5 53.5t53.5 131.5t-53.5 131t-131.5 53t-131 -53 t-53 -131zM203 1087v275q0 8 6 8h67q27 0 43.5 -19.5t16.5 -45.5v-37q0 -18 -8.5 -33.5t-28.5 -22.5l47 -125q2 -6 -4 -6h-47q-6 0 -8 6l-33 105v-107q0 -4 -6 -4h-39q-6 0 -6 6zM254 1253h16q12 0 13 13v37q0 12 -13 12h-16v-62z" />
-<glyph unicode="&#xb0;" horiz-adv-x="344" d="M41 1331q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM94 1331q0 -33 22.5 -55.5t55.5 -22.5t55.5 22.5t22.5 55.5t-22.5 55.5t-55.5 22.5t-55.5 -22.5t-22.5 -55.5z" />
-<glyph unicode="&#xb2;" horiz-adv-x="759" d="M82 979v211q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-123v-121q0 -63 -15.5 -122.5t-50.5 -112.5q-31 -49 -66.5 -100.5t-68.5 -100.5q-6 -10 -12 -19.5t-12 -19.5q-31 -49 -51.5 -92t-32.5 -76q-14 -37 -25 -72h317 q18 0 19 -18v-195q0 -18 -19 -18h-540q-14 0 -19 18q-6 39 -7 77t1 69q2 37 8 69q4 39 14.5 74t20.5 64q12 33 27 59q53 96 100 170t84 127q43 61 80 107q10 23 8 43t0 61v242q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50 q-27 -8 -27 21z" />
-<glyph unicode="&#xb3;" horiz-adv-x="757" d="M82 244v223q0 29 27 37l186 49q27 8 27 -21v-278q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v352q0 16 -2 32.5t-8 25.5q-4 4 -11 10t-26 6h-96q-10 0 -17.5 7t-7.5 18v151q0 10 7.5 17.5t17.5 7.5h96q14 0 23.5 7t13.5 11q10 10 10 43v238q0 20 -14 34.5 t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50q-27 -8 -27 21v211q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-232q0 -14 -1 -27t-3 -26q-10 -49 -39 -82q-27 -27 -60 -41q33 -12 60 -34 q18 -18 33 -54q10 -45 10 -88v-362q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5z" />
-<glyph unicode="&#xb6;" horiz-adv-x="985" d="M82 842v334q0 53 20.5 100t55.5 82t82 55.5t100 20.5h534q29 0 29 -29v-1376q0 -29 -29 -29h-92q-29 0 -28 29v1185h-78v-1185q0 -29 -29 -29h-182q-29 0 -29 29v555h-96q-53 0 -100 20.5t-82 55t-55.5 82t-20.5 100.5zM322 852q0 -20 14 -34.5t35 -14.5h65v411h-65 q-20 0 -34.5 -14t-14.5 -35v-313z" />
-<glyph unicode="&#xb9;" horiz-adv-x="577" d="M82 1014v153q0 10 7 18.5t17 10.5q47 18 87 51q35 27 64.5 69t37.5 101q6 16 22 17h152q27 -4 27 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29v1028q-27 -20 -66.5 -41t-74.5 -27q-14 -4 -23 4q-10 7 -10 21z" />
-<glyph unicode="&#xba;" d="M72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82t20.5 -100.5v-741q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v721q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721z" />
-<glyph unicode="&#xbc;" horiz-adv-x="1974" d="M1217 315v174q0 10 2 15q0 4 2 6q80 156 132 302t83 266t44 206t18 123q0 6 4 12l9 9q5 5 15 6h246q29 0 29 -29v-893h65q6 0 19 -8q8 -8 8 -19v-170q0 -12 -8 -20q-12 -8 -19 -8h-65v-258q0 -29 -29 -29h-182q-29 0 -29 29v258h-317q-10 0 -19 8q-8 6 -8 20zM1409 512 h150v471q-12 -63 -33 -139q-16 -66 -46 -150t-71 -182zM580 27l426 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-426 -1378q-8 -27 -37 -27h-110q-29 0 -21 27zM82 1014v153q0 10 7 18.5t17 10.5q47 18 87 51q35 27 64.5 69t37.5 101q6 16 22 17h152q27 -4 27 -29v-1376 q0 -29 -29 -29h-182q-29 0 -29 29v1028q-27 -20 -66.5 -41t-74.5 -27q-14 -4 -23 4q-10 7 -10 21z" />
-<glyph unicode="&#xbd;" horiz-adv-x="1935" d="M1258 979v211q0 53 20.5 100t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-123v-121q0 -63 -15.5 -122.5t-50.5 -112.5q-31 -49 -66.5 -100.5t-68.5 -100.5q-6 -10 -12 -19.5t-12 -19.5q-31 -49 -51.5 -92t-32.5 -76q-14 -37 -25 -72h317 q18 0 19 -18v-195q0 -18 -19 -18h-540q-14 0 -19 18q-6 39 -7 77t1 69q2 37 8 69q4 39 14.5 74t20.5 64q12 33 27 59q53 96 100 170t84 127q43 61 80 107q10 23 8 43t0 61v242q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50 q-27 -8 -27 21zM580 27l426 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-426 -1378q-8 -27 -37 -27h-110q-29 0 -21 27zM82 1014v153q0 10 7 18.5t17 10.5q47 18 87 51q35 27 64.5 69t37.5 101q6 16 22 17h152q27 -4 27 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29v1028 q-27 -20 -66.5 -41t-74.5 -27q-14 -4 -23 4q-10 7 -10 21z" />
-<glyph unicode="&#xbe;" horiz-adv-x="2154" d="M1397 315v174q0 10 2 15q0 4 2 6q80 156 132 302t83 266t44 206t18 123q0 6 4 12l9 9q5 5 15 6h246q29 0 29 -29v-893h65q6 0 19 -8q8 -8 8 -19v-170q0 -12 -8 -20q-12 -8 -19 -8h-65v-258q0 -29 -29 -29h-182q-29 0 -29 29v258h-317q-10 0 -19 8q-8 6 -8 20zM1589 512 h150v471q-12 -63 -33 -139q-16 -66 -46 -150t-71 -182zM760 27l426 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-426 -1378q-8 -27 -37 -27h-110q-29 0 -21 27zM82 244v223q0 29 27 37l186 49q27 8 27 -21v-278q0 -20 14 -34.5t35 -14.5h16q20 0 34.5 14t14.5 35v352 q0 16 -2 32.5t-8 25.5q-4 4 -11 10t-26 6h-96q-10 0 -17.5 7t-7.5 18v151q0 10 7.5 17.5t17.5 7.5h96q14 0 23.5 7t13.5 11q10 10 10 43v238q0 20 -14 34.5t-35 14.5h-16q-20 0 -34.5 -14.5t-14.5 -34.5v-136q0 -29 -27 -36l-186 -50q-27 -8 -27 21v211q0 53 20.5 100 t55.5 82t82 55.5t100 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82t20.5 -100v-232q0 -14 -1 -27t-3 -26q-10 -49 -39 -82q-27 -27 -60 -41q33 -12 60 -34q18 -18 33 -54q10 -45 10 -88v-362q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100 20.5t-82 55 t-55.5 82t-20.5 100.5z" />
-<glyph unicode="&#xbf;" horiz-adv-x="782" d="M74 371q-2 -63 9 -132t46 -125.5t99.5 -92t168.5 -35.5q150 0 232 89t82 257v155q0 23 -23 19l-194 -47q-23 -8 -23 -29v-108q0 -47 -17.5 -76t-56.5 -29q-53 0 -67.5 40t-14.5 110v42q0 17 5.5 34.5t14.5 37t27 47.5q31 47 65 88t59.5 81t42 81t14.5 88q-2 8 -3 39 t-5 66l-9 90q-4 23 -26 22h-86q-10 0 -17.5 -6t-7.5 -16l-2 -31q-4 -39 -10 -87t-19 -77q-20 -45 -56 -84t-73 -82q-55 -66 -85.5 -102.5t-46 -67t-18.5 -65.5t-5 -94zM319 1317q0 53 39 92t93 39q53 0 92 -39t39 -92t-39 -92t-92 -39t-92.5 39t-39.5 92z" />
-<glyph unicode="&#xc2;" horiz-adv-x="729" d="M84 1583q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM43 29l154 1376q4 29 32 29h271q29 0 32 -29l154 -1376q4 -29 -24 -29h-187q-27 0 -31 29 l-16 221h-127l-16 -221q-4 -29 -31 -29h-186q-29 0 -25 29zM317 479h95l-39 555h-17z" />
-<glyph unicode="&#xc5;" horiz-adv-x="729" d="M234 1571q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM287 1571q0 -33 22.5 -55.5t55.5 -22.5t55.5 22.5t22.5 55.5t-22.5 55.5t-55.5 22.5t-55.5 -22.5t-22.5 -55.5zM43 29l154 1376q4 29 32 29h271q29 0 32 -29l154 -1376q4 -29 -24 -29h-187 q-27 0 -31 29l-16 221h-127l-16 -221q-4 -29 -31 -29h-186q-29 0 -25 29zM317 479h95l-39 555h-17z" />
-<glyph unicode="&#xca;" horiz-adv-x="675" d="M61 1583q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM92 29v1376q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-295h203q29 0 28 -29v-182 q0 -29 -28 -29h-203v-419h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29z" />
-<glyph unicode="&#xce;" horiz-adv-x="423" d="M-70 1583q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM92 29v1376q0 29 29 29h182q29 0 29 -29v-1376q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="&#xd4;" d="M88 1583q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5t55.5 -82 t20.5 -100v-946q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v926q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926z" />
-<glyph unicode="&#xd7;" horiz-adv-x="727" d="M41 551q0 12 8 20l178 179l-178 178q-8 8 -8 20.5t8 20.5l111 110q8 8 20.5 8t20.5 -8l178 -178l178 178q8 8 20.5 8t20.5 -8l111 -110q8 -8 8 -20.5t-8 -20.5l-179 -178l179 -179q8 -8 8 -20t-8 -21l-111 -110q-8 -8 -20.5 -8t-20.5 8l-178 178l-178 -178 q-8 -8 -20.5 -8t-20.5 8l-111 110q-8 9 -8 21z" />
-<glyph unicode="&#xdb;" d="M88 1583q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM72 244v1161q0 29 28 29h183q29 0 28 -29v-1151q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v1151q0 29 29 29h182q29 0 29 -29v-1161q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="&#xe2;" horiz-adv-x="729" d="M84 1378q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM43 29l154 1171q4 29 32 29h271q29 0 32 -29l154 -1171q4 -29 -24 -29h-187q-27 0 -31 29 l-16 200h-127l-16 -200q-4 -29 -31 -29h-186q-29 0 -25 29zM317 459h95l-39 452h-17z" />
-<glyph unicode="&#xe5;" horiz-adv-x="729" d="M234 1497q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM287 1497q0 -33 22.5 -55.5t55.5 -22.5t55.5 22.5t22.5 55.5t-22.5 55.5t-55.5 22.5t-55.5 -22.5t-22.5 -55.5zM43 29l154 1171q4 29 32 29h271q29 0 32 -29l154 -1171q4 -29 -24 -29h-187 q-27 0 -31 29l-16 200h-127l-16 -200q-4 -29 -31 -29h-186q-29 0 -25 29zM317 459h95l-39 452h-17z" />
-<glyph unicode="&#xea;" horiz-adv-x="675" d="M61 1378q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182 q0 -29 -28 -29h-203v-276h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29z" />
-<glyph unicode="&#xee;" horiz-adv-x="423" d="M-70 1378q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM92 29v1171q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="&#xf4;" d="M88 1378q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82 t20.5 -100.5v-741q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v721q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721z" />
-<glyph unicode="&#xf7;" horiz-adv-x="897" d="M61 672v155q0 29 29 29h717q29 0 29 -29v-155q0 -29 -29 -29h-717q-29 0 -29 29zM317 444q0 53 39 92t93 39q53 0 92 -38.5t39 -92.5q0 -53 -39 -92t-92 -39t-92.5 39t-39.5 92zM317 1055q0 53 39 92t93 39q53 0 92 -39t39 -92t-39 -92t-92 -39t-92.5 39t-39.5 92z" />
-<glyph unicode="&#xfb;" d="M88 1378q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12zM72 244v956q0 29 28 29h183q29 0 28 -29v-946q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14 t14.5 35v946q0 29 29 29h182q29 0 29 -29v-956q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5z" />
-<glyph unicode="&#x152;" horiz-adv-x="1413" d="M829 29v1376q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-295h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-419h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29zM72 244v946q0 53 20.5 100t55 82t81.5 55.5t101 20.5h78q53 0 100 -20.5t82 -55.5 t55.5 -82t20.5 -100v-946q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v926q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-926z " />
-<glyph unicode="&#x153;" horiz-adv-x="1413" d="M829 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-276h233q29 0 29 -29v-182q0 -29 -29 -29h-444q-29 0 -29 29zM72 244v741q0 53 20.5 100.5t55 82t81.5 55t101 20.5h78q53 0 100 -20.5t82 -55t55.5 -82 t20.5 -100.5v-741q0 -53 -20.5 -100.5t-55.5 -82t-82 -55t-100 -20.5h-78q-53 0 -100.5 20.5t-82 55t-55 82t-20.5 100.5zM311 254q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v721q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5t-14.5 -34.5v-721z" />
-<glyph unicode="&#x2c6;" horiz-adv-x="569" d="M4 1104q-6 18 4 33l254 286q6 10 21 11h4q10 0 20 -11l254 -286q10 -14 4 -33q-4 -12 -24 -12h-129q-16 0 -23 10l-104 143l-105 -143q-10 -10 -22 -10h-129q-21 0 -25 12z" />
-<glyph unicode="&#x2000;" horiz-adv-x="956" />
-<glyph unicode="&#x2001;" horiz-adv-x="1912" />
-<glyph unicode="&#x2002;" horiz-adv-x="956" />
-<glyph unicode="&#x2003;" horiz-adv-x="1912" />
-<glyph unicode="&#x2004;" horiz-adv-x="636" />
-<glyph unicode="&#x2005;" horiz-adv-x="477" />
-<glyph unicode="&#x2006;" horiz-adv-x="317" />
-<glyph unicode="&#x2007;" horiz-adv-x="317" />
-<glyph unicode="&#x2008;" horiz-adv-x="237" />
-<glyph unicode="&#x2009;" horiz-adv-x="380" />
-<glyph unicode="&#x200a;" horiz-adv-x="104" />
-<glyph unicode="&#x2010;" horiz-adv-x="610" d="M61 672v155q0 29 29 29h430q29 0 29 -29v-155q0 -29 -29 -29h-430q-29 0 -29 29z" />
-<glyph unicode="&#x2011;" horiz-adv-x="610" d="M61 672v155q0 29 29 29h430q29 0 29 -29v-155q0 -29 -29 -29h-430q-29 0 -29 29z" />
-<glyph unicode="&#x2012;" horiz-adv-x="610" d="M61 672v155q0 29 29 29h430q29 0 29 -29v-155q0 -29 -29 -29h-430q-29 0 -29 29z" />
-<glyph unicode="&#x2013;" horiz-adv-x="720" d="M61 672v155q0 29 29 29h541q29 0 28 -29v-155q0 -29 -28 -29h-541q-29 0 -29 29z" />
-<glyph unicode="&#x2014;" horiz-adv-x="897" d="M61 672v155q0 29 29 29h717q29 0 29 -29v-155q0 -29 -29 -29h-717q-29 0 -29 29z" />
-<glyph unicode="&#x2018;" horiz-adv-x="280" d="M1 1198.5q-1 20.5 3 40.5q8 55 33.5 100t73.5 76q12 8 25.5 15.5t27.5 11.5q2 0 12 2l21 4q4 0 8 -2q8 -4 8 -14v-31q0 -4 -2 -6q-4 -6 -10 -6q-10 0 -23.5 -4.5t-28 -14.5t-25.5 -27.5t-15 -46.5q-2 -8 -1 -19t7 -15q4 -4 15 -1t17 3q33 0 55.5 -9.5t41.5 -25.5 q37 -35 37 -94q0 -45 -33 -80q-37 -39 -94 -39q-63 0 -101.5 41t-46.5 100q-4 21 -5 41.5z" />
-<glyph unicode="&#x2019;" horiz-adv-x="280" d="M0 1329q0 45 33 80q37 39 94 39q61 0 100 -41t47 -100q4 -20 5.5 -41t-3.5 -41q-8 -55 -33.5 -100.5t-72.5 -75.5q-12 -8 -25.5 -15.5t-27.5 -11.5q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9.5t-39.5 25.5q-37 33 -37 94z" />
-<glyph unicode="&#x201a;" horiz-adv-x="444" d="M82 129q0 45 33 80q37 39 92 39q61 0 101 -41t48 -101q4 -20 5 -40.5t-3 -40.5q-8 -55 -33.5 -100.5t-72.5 -76.5q-12 -8 -25.5 -15t-27.5 -11q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9t-39.5 26q-37 33 -37 94z" />
-<glyph unicode="&#x201c;" horiz-adv-x="624" d="M1 1198.5q-1 20.5 3 40.5q8 55 33.5 100t73.5 76q12 8 25.5 15.5t27.5 11.5q2 0 12 2l21 4q4 0 8 -2q8 -4 8 -14v-31q0 -4 -2 -6q-4 -6 -10 -6q-10 0 -23.5 -4.5t-28 -14.5t-25.5 -27.5t-15 -46.5q-2 -8 -1 -19t7 -15q4 -4 15 -1t17 3q33 0 55.5 -9.5t41.5 -25.5 q37 -35 37 -94q0 -45 -33 -80q-37 -39 -94 -39q-63 0 -101.5 41t-46.5 100q-4 21 -5 41.5zM345 1198.5q-1 20.5 3 40.5q8 55 34 100t73 76q12 8 25.5 15.5t27.5 11.5q2 0 12 2l21 4q4 0 8 -2q8 -4 8 -14v-31q0 -4 -2 -6q-4 -6 -10 -6q-10 0 -23.5 -4.5t-28 -14.5 t-25.5 -27.5t-15 -46.5q-2 -8 -1 -19t7 -15q4 -4 15 -1t18 3q33 0 55 -9.5t41 -25.5q37 -35 37 -94q0 -45 -33 -80q-37 -39 -94 -39q-63 0 -101.5 41t-46.5 100q-4 21 -5 41.5z" />
-<glyph unicode="&#x201d;" horiz-adv-x="624" d="M0 1329q0 45 33 80q37 39 94 39q61 0 100 -41t47 -100q4 -20 5.5 -41t-3.5 -41q-8 -55 -33.5 -100.5t-72.5 -75.5q-12 -8 -25.5 -15.5t-27.5 -11.5q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9.5t-39.5 25.5q-37 33 -37 94zM344 1329q0 45 33 80q37 39 94 39q61 0 100 -41t47 -100q4 -20 5.5 -41t-2.5 -41q-8 -55 -34 -100.5t-73 -75.5q-12 -8 -25.5 -15.5t-27.5 -11.5q-2 0 -12 -2l-21 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6 q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1t-17.5 -3q-35 0 -56.5 9.5t-39.5 25.5q-37 33 -37 94z" />
-<glyph unicode="&#x201e;" horiz-adv-x="706" d="M41 129q0 45 33 80q37 39 92 39q61 0 101 -41t48 -101q4 -20 5.5 -40.5t-3.5 -40.5q-8 -55 -33.5 -100.5t-72.5 -76.5q-12 -8 -25.5 -15t-27.5 -11q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1 t-17.5 -3q-35 0 -56.5 9t-39.5 26q-37 33 -37 94zM385 129q0 45 33 80q37 39 92 39q61 0 101 -41t48 -101q4 -20 5.5 -40.5t-2.5 -40.5q-8 -55 -34 -100.5t-73 -76.5q-12 -8 -25.5 -15t-27.5 -11q-2 0 -13 -2l-20 -4q-4 0 -8 2q-8 4 -8 14v31q0 2 2 6q6 6 10 6q18 0 50 17.5 t42 74.5q2 8 1 19.5t-7 15.5q-4 4 -15.5 1t-17.5 -3q-35 0 -56.5 9t-39.5 26q-37 33 -37 94z" />
-<glyph unicode="&#x2022;" horiz-adv-x="507" d="M82 717q0 72 50 122t122 50t122 -50.5t50 -121.5q0 -72 -50 -122t-122 -50t-122 50t-50 122z" />
-<glyph unicode="&#x2026;" horiz-adv-x="1024" d="M41 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM381 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92zM721 117q0 53 39 92t92 39t92 -39t39 -92t-39 -92t-92 -39t-92 39t-39 92z" />
-<glyph unicode="&#x202f;" horiz-adv-x="380" />
-<glyph unicode="&#x2039;" horiz-adv-x="655" d="M41 690v53q0 10 6 15l524 440q10 8 16.5 4t6.5 -16v-201q0 -29 -23 -47l-92 -78l-166 -137q-2 -2 -2 -6t2 -6l166 -138l92 -77q23 -18 23 -47v-201q0 -12 -6 -16.5t-17 4.5l-524 440q-4 2 -5 6t-1 8z" />
-<glyph unicode="&#x203a;" horiz-adv-x="655" d="M61 248v201q0 29 23 47l258 215q2 2 2 6t-2 6l-258 215q-23 18 -23 47v201q0 12 6.5 16t16.5 -4l524 -440q6 -4 6 -15v-53q0 -4 -1 -8t-5 -6l-524 -440q-10 -8 -16.5 -4t-6.5 16z" />
-<glyph unicode="&#x2044;" horiz-adv-x="598" d="M2 27l426 1380q8 27 37 27h110q12 0 18.5 -9.5t2.5 -19.5l-426 -1378q-8 -27 -37 -27h-110q-29 0 -21 27z" />
-<glyph unicode="&#x205f;" horiz-adv-x="477" />
-<glyph unicode="&#x20ac;" horiz-adv-x="825" d="M82 610v99q0 16 16 16h52v66h-52q-16 0 -16 16v98q0 16 16 17h52v268q0 53 20 100t55 82t82 55.5t101 20.5h77q53 0 100.5 -20.5t82 -55.5t55 -82t20.5 -100v-82q0 -29 -26 -37l-187 -29q-27 -8 -26 21v117q0 20 -14.5 34.5t-34.5 14.5h-17q-20 0 -34.5 -14.5 t-14.5 -34.5v-258h193q16 0 16 -17v-98q0 -16 -16 -16h-193v-66h193q16 0 16 -16v-99q0 -16 -16 -16h-193v-340q0 -20 14.5 -34.5t34.5 -14.5h17q20 0 34.5 14t14.5 35v205q0 29 26 20l187 -24q27 -8 26 -37v-174q0 -53 -20.5 -100.5t-55 -82t-81.5 -55t-101 -20.5h-77 q-53 0 -100.5 20.5t-82.5 55t-55 81.5t-20 101v350h-52q-16 0 -16 16z" />
-<glyph unicode="&#x2122;" horiz-adv-x="550" d="M41 1366v59q0 8 8 9h170q8 0 8 -9v-59q0 -8 -8 -8h-47v-314q0 -8 -8 -8h-60q-8 0 -8 8v314h-47q-8 0 -8 8zM256 1044v381q0 8 8 9h58q6 0 10 -9l51 -204l51 204q0 8 10 9h58q8 0 8 -9v-381q0 -8 -10 -8h-62q-10 0 -10 8v177l-43 -168q-4 -6 -6 0l-43 168v-177q0 -8 -8 -8 h-64q-8 0 -8 8z" />
-<glyph unicode="&#xe000;" horiz-adv-x="1230" d="M0 1230h1230v-1230h-1230v1230z" />
-<glyph unicode="&#xfb01;" horiz-adv-x="1079" d="M747 29v1171q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-182q-29 0 -29 29zM92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="&#xfb02;" horiz-adv-x="1331" d="M757 29v1171q0 29 29 29h182q29 0 29 -29v-960h254q29 0 29 -29v-182q0 -29 -29 -29h-277h-4h-2h-182q-29 0 -29 29zM92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182 q-29 0 -29 29z" />
-<glyph unicode="&#xfb03;" horiz-adv-x="1734" d="M1403 29v1171q0 29 29 29h182q29 0 29 -29v-1171q0 -29 -29 -29h-182q-29 0 -29 29zM747 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182q-29 0 -29 29zM92 29v1171q0 29 29 29h444 q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182q-29 0 -29 29z" />
-<glyph unicode="&#xfb04;" horiz-adv-x="1986" d="M1413 29v1171q0 29 29 29h182q29 0 29 -29v-960h254q29 0 29 -29v-182q0 -29 -29 -29h-277h-4h-2h-182q-29 0 -29 29zM747 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182 q-29 0 -29 29zM92 29v1171q0 29 29 29h444q29 0 29 -29v-182q0 -29 -29 -29h-233v-233h203q29 0 28 -29v-182q0 -29 -28 -29h-203v-487q0 -29 -29 -29h-182q-29 0 -29 29z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.ttf b/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.ttf
deleted file mode 100644
index 75a6247..0000000
--- a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.woff b/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.woff
deleted file mode 100644
index 2c20a73..0000000
--- a/common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.eot b/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.eot
deleted file mode 100644
index b93a495..0000000
--- a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.svg b/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.svg
deleted file mode 100644
index 94fb549..0000000
--- a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.svg
+++ /dev/null
@@ -1,288 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="glyphicons_halflingsregular" horiz-adv-x="1200" >
-<font-face units-per-em="1200" ascent="960" descent="-240" />
-<missing-glyph horiz-adv-x="500" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="400" />
-<glyph unicode=" " />
-<glyph unicode="*" d="M600 1100q15 0 34 -1.5t30 -3.5l11 -1q10 -2 17.5 -10.5t7.5 -18.5v-224l158 158q7 7 18 8t19 -6l106 -106q7 -8 6 -19t-8 -18l-158 -158h224q10 0 18.5 -7.5t10.5 -17.5q6 -41 6 -75q0 -15 -1.5 -34t-3.5 -30l-1 -11q-2 -10 -10.5 -17.5t-18.5 -7.5h-224l158 -158 q7 -7 8 -18t-6 -19l-106 -106q-8 -7 -19 -6t-18 8l-158 158v-224q0 -10 -7.5 -18.5t-17.5 -10.5q-41 -6 -75 -6q-15 0 -34 1.5t-30 3.5l-11 1q-10 2 -17.5 10.5t-7.5 18.5v224l-158 -158q-7 -7 -18 -8t-19 6l-106 106q-7 8 -6 19t8 18l158 158h-224q-10 0 -18.5 7.5 t-10.5 17.5q-6 41 -6 75q0 15 1.5 34t3.5 30l1 11q2 10 10.5 17.5t18.5 7.5h224l-158 158q-7 7 -8 18t6 19l106 106q8 7 19 6t18 -8l158 -158v224q0 10 7.5 18.5t17.5 10.5q41 6 75 6z" />
-<glyph unicode="+" d="M450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-350h350q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-350v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v350h-350q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5 h350v350q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xa0;" />
-<glyph unicode="&#xa5;" d="M825 1100h250q10 0 12.5 -5t-5.5 -13l-364 -364q-6 -6 -11 -18h268q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-100h275q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-125v-174q0 -11 -7.5 -18.5t-18.5 -7.5h-148q-11 0 -18.5 7.5t-7.5 18.5v174 h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h125v100h-275q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h118q-5 12 -11 18l-364 364q-8 8 -5.5 13t12.5 5h250q25 0 43 -18l164 -164q8 -8 18 -8t18 8l164 164q18 18 43 18z" />
-<glyph unicode="&#x2000;" horiz-adv-x="650" />
-<glyph unicode="&#x2001;" horiz-adv-x="1300" />
-<glyph unicode="&#x2002;" horiz-adv-x="650" />
-<glyph unicode="&#x2003;" horiz-adv-x="1300" />
-<glyph unicode="&#x2004;" horiz-adv-x="433" />
-<glyph unicode="&#x2005;" horiz-adv-x="325" />
-<glyph unicode="&#x2006;" horiz-adv-x="216" />
-<glyph unicode="&#x2007;" horiz-adv-x="216" />
-<glyph unicode="&#x2008;" horiz-adv-x="162" />
-<glyph unicode="&#x2009;" horiz-adv-x="260" />
-<glyph unicode="&#x200a;" horiz-adv-x="72" />
-<glyph unicode="&#x202f;" horiz-adv-x="260" />
-<glyph unicode="&#x205f;" horiz-adv-x="325" />
-<glyph unicode="&#x20ac;" d="M744 1198q242 0 354 -189q60 -104 66 -209h-181q0 45 -17.5 82.5t-43.5 61.5t-58 40.5t-60.5 24t-51.5 7.5q-19 0 -40.5 -5.5t-49.5 -20.5t-53 -38t-49 -62.5t-39 -89.5h379l-100 -100h-300q-6 -50 -6 -100h406l-100 -100h-300q9 -74 33 -132t52.5 -91t61.5 -54.5t59 -29 t47 -7.5q22 0 50.5 7.5t60.5 24.5t58 41t43.5 61t17.5 80h174q-30 -171 -128 -278q-107 -117 -274 -117q-206 0 -324 158q-36 48 -69 133t-45 204h-217l100 100h112q1 47 6 100h-218l100 100h134q20 87 51 153.5t62 103.5q117 141 297 141z" />
-<glyph unicode="&#x20bd;" d="M428 1200h350q67 0 120 -13t86 -31t57 -49.5t35 -56.5t17 -64.5t6.5 -60.5t0.5 -57v-16.5v-16.5q0 -36 -0.5 -57t-6.5 -61t-17 -65t-35 -57t-57 -50.5t-86 -31.5t-120 -13h-178l-2 -100h288q10 0 13 -6t-3 -14l-120 -160q-6 -8 -18 -14t-22 -6h-138v-175q0 -11 -5.5 -18 t-15.5 -7h-149q-10 0 -17.5 7.5t-7.5 17.5v175h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v100h-267q-10 0 -13 6t3 14l120 160q6 8 18 14t22 6h117v475q0 10 7.5 17.5t17.5 7.5zM600 1000v-300h203q64 0 86.5 33t22.5 119q0 84 -22.5 116t-86.5 32h-203z" />
-<glyph unicode="&#x2212;" d="M250 700h800q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#x231b;" d="M1000 1200v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-50v-100q0 -91 -49.5 -165.5t-130.5 -109.5q81 -35 130.5 -109.5t49.5 -165.5v-150h50q21 0 35.5 -14.5t14.5 -35.5v-150h-800v150q0 21 14.5 35.5t35.5 14.5h50v150q0 91 49.5 165.5t130.5 109.5q-81 35 -130.5 109.5 t-49.5 165.5v100h-50q-21 0 -35.5 14.5t-14.5 35.5v150h800zM400 1000v-100q0 -60 32.5 -109.5t87.5 -73.5q28 -12 44 -37t16 -55t-16 -55t-44 -37q-55 -24 -87.5 -73.5t-32.5 -109.5v-150h400v150q0 60 -32.5 109.5t-87.5 73.5q-28 12 -44 37t-16 55t16 55t44 37 q55 24 87.5 73.5t32.5 109.5v100h-400z" />
-<glyph unicode="&#x25fc;" horiz-adv-x="500" d="M0 0z" />
-<glyph unicode="&#x2601;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -206.5q0 -121 -85 -207.5t-205 -86.5h-750q-79 0 -135.5 57t-56.5 137q0 69 42.5 122.5t108.5 67.5q-2 12 -2 37q0 153 108 260.5t260 107.5z" />
-<glyph unicode="&#x26fa;" d="M774 1193.5q16 -9.5 20.5 -27t-5.5 -33.5l-136 -187l467 -746h30q20 0 35 -18.5t15 -39.5v-42h-1200v42q0 21 15 39.5t35 18.5h30l468 746l-135 183q-10 16 -5.5 34t20.5 28t34 5.5t28 -20.5l111 -148l112 150q9 16 27 20.5t34 -5zM600 200h377l-182 112l-195 534v-646z " />
-<glyph unicode="&#x2709;" d="M25 1100h1150q10 0 12.5 -5t-5.5 -13l-564 -567q-8 -8 -18 -8t-18 8l-564 567q-8 8 -5.5 13t12.5 5zM18 882l264 -264q8 -8 8 -18t-8 -18l-264 -264q-8 -8 -13 -5.5t-5 12.5v550q0 10 5 12.5t13 -5.5zM918 618l264 264q8 8 13 5.5t5 -12.5v-550q0 -10 -5 -12.5t-13 5.5 l-264 264q-8 8 -8 18t8 18zM818 482l364 -364q8 -8 5.5 -13t-12.5 -5h-1150q-10 0 -12.5 5t5.5 13l364 364q8 8 18 8t18 -8l164 -164q8 -8 18 -8t18 8l164 164q8 8 18 8t18 -8z" />
-<glyph unicode="&#x270f;" d="M1011 1210q19 0 33 -13l153 -153q13 -14 13 -33t-13 -33l-99 -92l-214 214l95 96q13 14 32 14zM1013 800l-615 -614l-214 214l614 614zM317 96l-333 -112l110 335z" />
-<glyph unicode="&#xe001;" d="M700 650v-550h250q21 0 35.5 -14.5t14.5 -35.5v-50h-800v50q0 21 14.5 35.5t35.5 14.5h250v550l-500 550h1200z" />
-<glyph unicode="&#xe002;" d="M368 1017l645 163q39 15 63 0t24 -49v-831q0 -55 -41.5 -95.5t-111.5 -63.5q-79 -25 -147 -4.5t-86 75t25.5 111.5t122.5 82q72 24 138 8v521l-600 -155v-606q0 -42 -44 -90t-109 -69q-79 -26 -147 -5.5t-86 75.5t25.5 111.5t122.5 82.5q72 24 138 7v639q0 38 14.5 59 t53.5 34z" />
-<glyph unicode="&#xe003;" d="M500 1191q100 0 191 -39t156.5 -104.5t104.5 -156.5t39 -191l-1 -2l1 -5q0 -141 -78 -262l275 -274q23 -26 22.5 -44.5t-22.5 -42.5l-59 -58q-26 -20 -46.5 -20t-39.5 20l-275 274q-119 -77 -261 -77l-5 1l-2 -1q-100 0 -191 39t-156.5 104.5t-104.5 156.5t-39 191 t39 191t104.5 156.5t156.5 104.5t191 39zM500 1022q-88 0 -162 -43t-117 -117t-43 -162t43 -162t117 -117t162 -43t162 43t117 117t43 162t-43 162t-117 117t-162 43z" />
-<glyph unicode="&#xe005;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104z" />
-<glyph unicode="&#xe006;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429z" />
-<glyph unicode="&#xe007;" d="M407 800l131 353q7 19 17.5 19t17.5 -19l129 -353h421q21 0 24 -8.5t-14 -20.5l-342 -249l130 -401q7 -20 -0.5 -25.5t-24.5 6.5l-343 246l-342 -247q-17 -12 -24.5 -6.5t-0.5 25.5l130 400l-347 251q-17 12 -14 20.5t23 8.5h429zM477 700h-240l197 -142l-74 -226 l193 139l195 -140l-74 229l192 140h-234l-78 211z" />
-<glyph unicode="&#xe008;" d="M600 1200q124 0 212 -88t88 -212v-250q0 -46 -31 -98t-69 -52v-75q0 -10 6 -21.5t15 -17.5l358 -230q9 -5 15 -16.5t6 -21.5v-93q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v93q0 10 6 21.5t15 16.5l358 230q9 6 15 17.5t6 21.5v75q-38 0 -69 52 t-31 98v250q0 124 88 212t212 88z" />
-<glyph unicode="&#xe009;" d="M25 1100h1150q10 0 17.5 -7.5t7.5 -17.5v-1050q0 -10 -7.5 -17.5t-17.5 -7.5h-1150q-10 0 -17.5 7.5t-7.5 17.5v1050q0 10 7.5 17.5t17.5 7.5zM100 1000v-100h100v100h-100zM875 1000h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5t17.5 -7.5h550 q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM1000 1000v-100h100v100h-100zM100 800v-100h100v100h-100zM1000 800v-100h100v100h-100zM100 600v-100h100v100h-100zM1000 600v-100h100v100h-100zM875 500h-550q-10 0 -17.5 -7.5t-7.5 -17.5v-350q0 -10 7.5 -17.5 t17.5 -7.5h550q10 0 17.5 7.5t7.5 17.5v350q0 10 -7.5 17.5t-17.5 7.5zM100 400v-100h100v100h-100zM1000 400v-100h100v100h-100zM100 200v-100h100v100h-100zM1000 200v-100h100v100h-100z" />
-<glyph unicode="&#xe010;" d="M50 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM50 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM650 500h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe011;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM850 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 700h200q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h200 q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM850 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5 t35.5 14.5z" />
-<glyph unicode="&#xe012;" d="M50 1100h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 1100h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200 q0 21 14.5 35.5t35.5 14.5zM50 700h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 700h700q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-700 q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM50 300h200q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5zM450 300h700q21 0 35.5 -14.5t14.5 -35.5v-200 q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe013;" d="M465 477l571 571q8 8 18 8t17 -8l177 -177q8 -7 8 -17t-8 -18l-783 -784q-7 -8 -17.5 -8t-17.5 8l-384 384q-8 8 -8 18t8 17l177 177q7 8 17 8t18 -8l171 -171q7 -7 18 -7t18 7z" />
-<glyph unicode="&#xe014;" d="M904 1083l178 -179q8 -8 8 -18.5t-8 -17.5l-267 -268l267 -268q8 -7 8 -17.5t-8 -18.5l-178 -178q-8 -8 -18.5 -8t-17.5 8l-268 267l-268 -267q-7 -8 -17.5 -8t-18.5 8l-178 178q-8 8 -8 18.5t8 17.5l267 268l-267 268q-8 7 -8 17.5t8 18.5l178 178q8 8 18.5 8t17.5 -8 l268 -267l268 268q7 7 17.5 7t18.5 -7z" />
-<glyph unicode="&#xe015;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM425 900h150q10 0 17.5 -7.5t7.5 -17.5v-75h75q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5 t-17.5 -7.5h-75v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-75q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v75q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe016;" d="M507 1177q98 0 187.5 -38.5t154.5 -103.5t103.5 -154.5t38.5 -187.5q0 -141 -78 -262l300 -299q8 -8 8 -18.5t-8 -18.5l-109 -108q-7 -8 -17.5 -8t-18.5 8l-300 299q-119 -77 -261 -77q-98 0 -188 38.5t-154.5 103t-103 154.5t-38.5 188t38.5 187.5t103 154.5 t154.5 103.5t188 38.5zM506.5 1023q-89.5 0 -165.5 -44t-120 -120.5t-44 -166t44 -165.5t120 -120t165.5 -44t166 44t120.5 120t44 165.5t-44 166t-120.5 120.5t-166 44zM325 800h350q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-350q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe017;" d="M550 1200h100q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM800 975v166q167 -62 272 -209.5t105 -331.5q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5 t-184.5 123t-123 184.5t-45.5 224q0 184 105 331.5t272 209.5v-166q-103 -55 -165 -155t-62 -220q0 -116 57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5q0 120 -62 220t-165 155z" />
-<glyph unicode="&#xe018;" d="M1025 1200h150q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM725 800h150q10 0 17.5 -7.5t7.5 -17.5v-750q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v750 q0 10 7.5 17.5t17.5 7.5zM425 500h150q10 0 17.5 -7.5t7.5 -17.5v-450q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v450q0 10 7.5 17.5t17.5 7.5zM125 300h150q10 0 17.5 -7.5t7.5 -17.5v-250q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5 v250q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe019;" d="M600 1174q33 0 74 -5l38 -152l5 -1q49 -14 94 -39l5 -2l134 80q61 -48 104 -105l-80 -134l3 -5q25 -44 39 -93l1 -6l152 -38q5 -43 5 -73q0 -34 -5 -74l-152 -38l-1 -6q-15 -49 -39 -93l-3 -5l80 -134q-48 -61 -104 -105l-134 81l-5 -3q-44 -25 -94 -39l-5 -2l-38 -151 q-43 -5 -74 -5q-33 0 -74 5l-38 151l-5 2q-49 14 -94 39l-5 3l-134 -81q-60 48 -104 105l80 134l-3 5q-25 45 -38 93l-2 6l-151 38q-6 42 -6 74q0 33 6 73l151 38l2 6q13 48 38 93l3 5l-80 134q47 61 105 105l133 -80l5 2q45 25 94 39l5 1l38 152q43 5 74 5zM600 815 q-89 0 -152 -63t-63 -151.5t63 -151.5t152 -63t152 63t63 151.5t-63 151.5t-152 63z" />
-<glyph unicode="&#xe020;" d="M500 1300h300q41 0 70.5 -29.5t29.5 -70.5v-100h275q10 0 17.5 -7.5t7.5 -17.5v-75h-1100v75q0 10 7.5 17.5t17.5 7.5h275v100q0 41 29.5 70.5t70.5 29.5zM500 1200v-100h300v100h-300zM1100 900v-800q0 -41 -29.5 -70.5t-70.5 -29.5h-700q-41 0 -70.5 29.5t-29.5 70.5 v800h900zM300 800v-700h100v700h-100zM500 800v-700h100v700h-100zM700 800v-700h100v700h-100zM900 800v-700h100v700h-100z" />
-<glyph unicode="&#xe021;" d="M18 618l620 608q8 7 18.5 7t17.5 -7l608 -608q8 -8 5.5 -13t-12.5 -5h-175v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v375h-300v-375q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v575h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe022;" d="M600 1200v-400q0 -41 29.5 -70.5t70.5 -29.5h300v-650q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5h450zM1000 800h-250q-21 0 -35.5 14.5t-14.5 35.5v250z" />
-<glyph unicode="&#xe023;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h50q10 0 17.5 -7.5t7.5 -17.5v-275h175q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe024;" d="M1300 0h-538l-41 400h-242l-41 -400h-538l431 1200h209l-21 -300h162l-20 300h208zM515 800l-27 -300h224l-27 300h-170z" />
-<glyph unicode="&#xe025;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-450h191q20 0 25.5 -11.5t-7.5 -27.5l-327 -400q-13 -16 -32 -16t-32 16l-327 400q-13 16 -7.5 27.5t25.5 11.5h191v450q0 21 14.5 35.5t35.5 14.5zM1125 400h50q10 0 17.5 -7.5t7.5 -17.5v-350q0 -10 -7.5 -17.5t-17.5 -7.5 h-1050q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h50q10 0 17.5 -7.5t7.5 -17.5v-175h900v175q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe026;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM525 900h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -275q-13 -16 -32 -16t-32 16l-223 275q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z " />
-<glyph unicode="&#xe027;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM632 914l223 -275q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5l223 275q13 16 32 16 t32 -16z" />
-<glyph unicode="&#xe028;" d="M225 1200h750q10 0 19.5 -7t12.5 -17l186 -652q7 -24 7 -49v-425q0 -12 -4 -27t-9 -17q-12 -6 -37 -6h-1100q-12 0 -27 4t-17 8q-6 13 -6 38l1 425q0 25 7 49l185 652q3 10 12.5 17t19.5 7zM878 1000h-556q-10 0 -19 -7t-11 -18l-87 -450q-2 -11 4 -18t16 -7h150 q10 0 19.5 -7t11.5 -17l38 -152q2 -10 11.5 -17t19.5 -7h250q10 0 19.5 7t11.5 17l38 152q2 10 11.5 17t19.5 7h150q10 0 16 7t4 18l-87 450q-2 11 -11 18t-19 7z" />
-<glyph unicode="&#xe029;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM540 820l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe030;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-362q0 -10 -7.5 -17.5t-17.5 -7.5h-362q-11 0 -13 5.5t5 12.5l133 133q-109 76 -238 76q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5h150q0 -117 -45.5 -224 t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117z" />
-<glyph unicode="&#xe031;" d="M947 1060l135 135q7 7 12.5 5t5.5 -13v-361q0 -11 -7.5 -18.5t-18.5 -7.5h-361q-11 0 -13 5.5t5 12.5l134 134q-110 75 -239 75q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5h-150q0 117 45.5 224t123 184.5t184.5 123t224 45.5q192 0 347 -117zM1027 600h150 q0 -117 -45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5q-192 0 -348 118l-134 -134q-7 -8 -12.5 -5.5t-5.5 12.5v360q0 11 7.5 18.5t18.5 7.5h360q10 0 12.5 -5.5t-5.5 -12.5l-133 -133q110 -76 240 -76q116 0 214.5 57t155.5 155.5t57 214.5z" />
-<glyph unicode="&#xe032;" d="M125 1200h1050q10 0 17.5 -7.5t7.5 -17.5v-1150q0 -10 -7.5 -17.5t-17.5 -7.5h-1050q-10 0 -17.5 7.5t-7.5 17.5v1150q0 10 7.5 17.5t17.5 7.5zM1075 1000h-850q-10 0 -17.5 -7.5t-7.5 -17.5v-850q0 -10 7.5 -17.5t17.5 -7.5h850q10 0 17.5 7.5t7.5 17.5v850 q0 10 -7.5 17.5t-17.5 7.5zM325 900h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 900h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 700h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 700h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 500h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 500h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5zM325 300h50q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM525 300h450q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-450q-10 0 -17.5 7.5t-7.5 17.5v50 q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe033;" d="M900 800v200q0 83 -58.5 141.5t-141.5 58.5h-300q-82 0 -141 -59t-59 -141v-200h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h900q41 0 70.5 29.5t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5h-100zM400 800v150q0 21 15 35.5t35 14.5h200 q20 0 35 -14.5t15 -35.5v-150h-300z" />
-<glyph unicode="&#xe034;" d="M125 1100h50q10 0 17.5 -7.5t7.5 -17.5v-1075h-100v1075q0 10 7.5 17.5t17.5 7.5zM1075 1052q4 0 9 -2q16 -6 16 -23v-421q0 -6 -3 -12q-33 -59 -66.5 -99t-65.5 -58t-56.5 -24.5t-52.5 -6.5q-26 0 -57.5 6.5t-52.5 13.5t-60 21q-41 15 -63 22.5t-57.5 15t-65.5 7.5 q-85 0 -160 -57q-7 -5 -15 -5q-6 0 -11 3q-14 7 -14 22v438q22 55 82 98.5t119 46.5q23 2 43 0.5t43 -7t32.5 -8.5t38 -13t32.5 -11q41 -14 63.5 -21t57 -14t63.5 -7q103 0 183 87q7 8 18 8z" />
-<glyph unicode="&#xe035;" d="M600 1175q116 0 227 -49.5t192.5 -131t131 -192.5t49.5 -227v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v300q0 127 -70.5 231.5t-184.5 161.5t-245 57t-245 -57t-184.5 -161.5t-70.5 -231.5v-300q0 -10 -7.5 -17.5t-17.5 -7.5h-50 q-10 0 -17.5 7.5t-7.5 17.5v300q0 116 49.5 227t131 192.5t192.5 131t227 49.5zM220 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460q0 8 6 14t14 6zM820 500h160q8 0 14 -6t6 -14v-460q0 -8 -6 -14t-14 -6h-160q-8 0 -14 6t-6 14v460 q0 8 6 14t14 6z" />
-<glyph unicode="&#xe036;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM900 668l120 120q7 7 17 7t17 -7l34 -34q7 -7 7 -17t-7 -17l-120 -120l120 -120q7 -7 7 -17 t-7 -17l-34 -34q-7 -7 -17 -7t-17 7l-120 119l-120 -119q-7 -7 -17 -7t-17 7l-34 34q-7 7 -7 17t7 17l119 120l-119 120q-7 7 -7 17t7 17l34 34q7 8 17 8t17 -8z" />
-<glyph unicode="&#xe037;" d="M321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6 l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238q-6 8 -4.5 18t9.5 17l29 22q7 5 15 5z" />
-<glyph unicode="&#xe038;" d="M967 1004h3q11 -1 17 -10q135 -179 135 -396q0 -105 -34 -206.5t-98 -185.5q-7 -9 -17 -10h-3q-9 0 -16 6l-42 34q-8 6 -9 16t5 18q111 150 111 328q0 90 -29.5 176t-84.5 157q-6 9 -5 19t10 16l42 33q7 5 15 5zM321 814l258 172q9 6 15 2.5t6 -13.5v-750q0 -10 -6 -13.5 t-15 2.5l-258 172q-21 14 -46 14h-250q-10 0 -17.5 7.5t-7.5 17.5v350q0 10 7.5 17.5t17.5 7.5h250q25 0 46 14zM766 900h4q10 -1 16 -10q96 -129 96 -290q0 -154 -90 -281q-6 -9 -17 -10l-3 -1q-9 0 -16 6l-29 23q-7 7 -8.5 16.5t4.5 17.5q72 103 72 229q0 132 -78 238 q-6 8 -4.5 18.5t9.5 16.5l29 22q7 5 15 5z" />
-<glyph unicode="&#xe039;" d="M500 900h100v-100h-100v-100h-400v-100h-100v600h500v-300zM1200 700h-200v-100h200v-200h-300v300h-200v300h-100v200h600v-500zM100 1100v-300h300v300h-300zM800 1100v-300h300v300h-300zM300 900h-100v100h100v-100zM1000 900h-100v100h100v-100zM300 500h200v-500 h-500v500h200v100h100v-100zM800 300h200v-100h-100v-100h-200v100h-100v100h100v200h-200v100h300v-300zM100 400v-300h300v300h-300zM300 200h-100v100h100v-100zM1200 200h-100v100h100v-100zM700 0h-100v100h100v-100zM1200 0h-300v100h300v-100z" />
-<glyph unicode="&#xe040;" d="M100 200h-100v1000h100v-1000zM300 200h-100v1000h100v-1000zM700 200h-200v1000h200v-1000zM900 200h-100v1000h100v-1000zM1200 200h-200v1000h200v-1000zM400 0h-300v100h300v-100zM600 0h-100v91h100v-91zM800 0h-100v91h100v-91zM1100 0h-200v91h200v-91z" />
-<glyph unicode="&#xe041;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe042;" d="M500 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-682 682l1 475q0 10 7.5 17.5t17.5 7.5h474zM800 1200l682 -682q8 -8 8 -18t-8 -18l-464 -464q-8 -8 -18 -8t-18 8l-56 56l424 426l-700 700h150zM319.5 1024.5q-29.5 29.5 -71 29.5t-71 -29.5 t-29.5 -71.5t29.5 -71.5t71 -29.5t71 29.5t29.5 71.5t-29.5 71.5z" />
-<glyph unicode="&#xe043;" d="M300 1200h825q75 0 75 -75v-900q0 -25 -18 -43l-64 -64q-8 -8 -13 -5.5t-5 12.5v950q0 10 -7.5 17.5t-17.5 7.5h-700q-25 0 -43 -18l-64 -64q-8 -8 -5.5 -13t12.5 -5h700q10 0 17.5 -7.5t7.5 -17.5v-950q0 -10 -7.5 -17.5t-17.5 -7.5h-850q-10 0 -17.5 7.5t-7.5 17.5v975 q0 25 18 43l139 139q18 18 43 18z" />
-<glyph unicode="&#xe044;" d="M250 1200h800q21 0 35.5 -14.5t14.5 -35.5v-1150l-450 444l-450 -445v1151q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe045;" d="M822 1200h-444q-11 0 -19 -7.5t-9 -17.5l-78 -301q-7 -24 7 -45l57 -108q6 -9 17.5 -15t21.5 -6h450q10 0 21.5 6t17.5 15l62 108q14 21 7 45l-83 301q-1 10 -9 17.5t-19 7.5zM1175 800h-150q-10 0 -21 -6.5t-15 -15.5l-78 -156q-4 -9 -15 -15.5t-21 -6.5h-550 q-10 0 -21 6.5t-15 15.5l-78 156q-4 9 -15 15.5t-21 6.5h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-650q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h750q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5 t7.5 17.5v650q0 10 -7.5 17.5t-17.5 7.5zM850 200h-500q-10 0 -19.5 -7t-11.5 -17l-38 -152q-2 -10 3.5 -17t15.5 -7h600q10 0 15.5 7t3.5 17l-38 152q-2 10 -11.5 17t-19.5 7z" />
-<glyph unicode="&#xe046;" d="M500 1100h200q56 0 102.5 -20.5t72.5 -50t44 -59t25 -50.5l6 -20h150q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5h150q2 8 6.5 21.5t24 48t45 61t72 48t102.5 21.5zM900 800v-100 h100v100h-100zM600 730q-95 0 -162.5 -67.5t-67.5 -162.5t67.5 -162.5t162.5 -67.5t162.5 67.5t67.5 162.5t-67.5 162.5t-162.5 67.5zM600 603q43 0 73 -30t30 -73t-30 -73t-73 -30t-73 30t-30 73t30 73t73 30z" />
-<glyph unicode="&#xe047;" d="M681 1199l385 -998q20 -50 60 -92q18 -19 36.5 -29.5t27.5 -11.5l10 -2v-66h-417v66q53 0 75 43.5t5 88.5l-82 222h-391q-58 -145 -92 -234q-11 -34 -6.5 -57t25.5 -37t46 -20t55 -6v-66h-365v66q56 24 84 52q12 12 25 30.5t20 31.5l7 13l399 1006h93zM416 521h340 l-162 457z" />
-<glyph unicode="&#xe048;" d="M753 641q5 -1 14.5 -4.5t36 -15.5t50.5 -26.5t53.5 -40t50.5 -54.5t35.5 -70t14.5 -87q0 -67 -27.5 -125.5t-71.5 -97.5t-98.5 -66.5t-108.5 -40.5t-102 -13h-500v89q41 7 70.5 32.5t29.5 65.5v827q0 24 -0.5 34t-3.5 24t-8.5 19.5t-17 13.5t-28 12.5t-42.5 11.5v71 l471 -1q57 0 115.5 -20.5t108 -57t80.5 -94t31 -124.5q0 -51 -15.5 -96.5t-38 -74.5t-45 -50.5t-38.5 -30.5zM400 700h139q78 0 130.5 48.5t52.5 122.5q0 41 -8.5 70.5t-29.5 55.5t-62.5 39.5t-103.5 13.5h-118v-350zM400 200h216q80 0 121 50.5t41 130.5q0 90 -62.5 154.5 t-156.5 64.5h-159v-400z" />
-<glyph unicode="&#xe049;" d="M877 1200l2 -57q-83 -19 -116 -45.5t-40 -66.5l-132 -839q-9 -49 13 -69t96 -26v-97h-500v97q186 16 200 98l173 832q3 17 3 30t-1.5 22.5t-9 17.5t-13.5 12.5t-21.5 10t-26 8.5t-33.5 10q-13 3 -19 5v57h425z" />
-<glyph unicode="&#xe050;" d="M1300 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM175 1000h-75v-800h75l-125 -167l-125 167h75v800h-75l125 167z" />
-<glyph unicode="&#xe051;" d="M1100 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-650q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v650h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM1167 50l-167 -125v75h-800v-75l-167 125l167 125v-75h800v75z" />
-<glyph unicode="&#xe052;" d="M50 1100h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe053;" d="M250 1100h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM250 500h700q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-700q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe054;" d="M500 950v100q0 21 14.5 35.5t35.5 14.5h600q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5zM100 650v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000 q-21 0 -35.5 14.5t-14.5 35.5zM300 350v100q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5zM0 50v100q0 21 14.5 35.5t35.5 14.5h1100q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5z" />
-<glyph unicode="&#xe055;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 800h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 500h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h1100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe056;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 1100h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 800h800q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 500h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 500h800q21 0 35.5 -14.5t14.5 -35.5v-100 q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM350 200h800 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe057;" d="M400 0h-100v1100h100v-1100zM550 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM267 550l-167 -125v75h-200v100h200v75zM550 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM550 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe058;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM900 0h-100v1100h100v-1100zM50 800h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM1100 600h200v-100h-200v-75l-167 125l167 125v-75zM50 500h300q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5zM50 200h600 q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-600q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe059;" d="M75 1000h750q31 0 53 -22t22 -53v-650q0 -31 -22 -53t-53 -22h-750q-31 0 -53 22t-22 53v650q0 31 22 53t53 22zM1200 300l-300 300l300 300v-600z" />
-<glyph unicode="&#xe060;" d="M44 1100h1112q18 0 31 -13t13 -31v-1012q0 -18 -13 -31t-31 -13h-1112q-18 0 -31 13t-13 31v1012q0 18 13 31t31 13zM100 1000v-737l247 182l298 -131l-74 156l293 318l236 -288v500h-1000zM342 884q56 0 95 -39t39 -94.5t-39 -95t-95 -39.5t-95 39.5t-39 95t39 94.5 t95 39z" />
-<glyph unicode="&#xe062;" d="M648 1169q117 0 216 -60t156.5 -161t57.5 -218q0 -115 -70 -258q-69 -109 -158 -225.5t-143 -179.5l-54 -62q-9 8 -25.5 24.5t-63.5 67.5t-91 103t-98.5 128t-95.5 148q-60 132 -60 249q0 88 34 169.5t91.5 142t137 96.5t166.5 36zM652.5 974q-91.5 0 -156.5 -65 t-65 -157t65 -156.5t156.5 -64.5t156.5 64.5t65 156.5t-65 157t-156.5 65z" />
-<glyph unicode="&#xe063;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 173v854q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57z" />
-<glyph unicode="&#xe064;" d="M554 1295q21 -72 57.5 -143.5t76 -130t83 -118t82.5 -117t70 -116t49.5 -126t18.5 -136.5q0 -71 -25.5 -135t-68.5 -111t-99 -82t-118.5 -54t-125.5 -23q-84 5 -161.5 34t-139.5 78.5t-99 125t-37 164.5q0 69 18 136.5t49.5 126.5t69.5 116.5t81.5 117.5t83.5 119 t76.5 131t58.5 143zM344 710q-23 -33 -43.5 -70.5t-40.5 -102.5t-17 -123q1 -37 14.5 -69.5t30 -52t41 -37t38.5 -24.5t33 -15q21 -7 32 -1t13 22l6 34q2 10 -2.5 22t-13.5 19q-5 4 -14 12t-29.5 40.5t-32.5 73.5q-26 89 6 271q2 11 -6 11q-8 1 -15 -10z" />
-<glyph unicode="&#xe065;" d="M1000 1013l108 115q2 1 5 2t13 2t20.5 -1t25 -9.5t28.5 -21.5q22 -22 27 -43t0 -32l-6 -10l-108 -115zM350 1100h400q50 0 105 -13l-187 -187h-368q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v182l200 200v-332 q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM1009 803l-362 -362l-161 -50l55 170l355 355z" />
-<glyph unicode="&#xe066;" d="M350 1100h361q-164 -146 -216 -200h-195q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5l200 153v-103q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M824 1073l339 -301q8 -7 8 -17.5t-8 -17.5l-340 -306q-7 -6 -12.5 -4t-6.5 11v203q-26 1 -54.5 0t-78.5 -7.5t-92 -17.5t-86 -35t-70 -57q10 59 33 108t51.5 81.5t65 58.5t68.5 40.5t67 24.5t56 13.5t40 4.5v210q1 10 6.5 12.5t13.5 -4.5z" />
-<glyph unicode="&#xe067;" d="M350 1100h350q60 0 127 -23l-178 -177h-349q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v69l200 200v-219q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5z M643 639l395 395q7 7 17.5 7t17.5 -7l101 -101q7 -7 7 -17.5t-7 -17.5l-531 -532q-7 -7 -17.5 -7t-17.5 7l-248 248q-7 7 -7 17.5t7 17.5l101 101q7 7 17.5 7t17.5 -7l111 -111q8 -7 18 -7t18 7z" />
-<glyph unicode="&#xe068;" d="M318 918l264 264q8 8 18 8t18 -8l260 -264q7 -8 4.5 -13t-12.5 -5h-170v-200h200v173q0 10 5 12t13 -5l264 -260q8 -7 8 -17.5t-8 -17.5l-264 -265q-8 -7 -13 -5t-5 12v173h-200v-200h170q10 0 12.5 -5t-4.5 -13l-260 -264q-8 -8 -18 -8t-18 8l-264 264q-8 8 -5.5 13 t12.5 5h175v200h-200v-173q0 -10 -5 -12t-13 5l-264 265q-8 7 -8 17.5t8 17.5l264 260q8 7 13 5t5 -12v-173h200v200h-175q-10 0 -12.5 5t5.5 13z" />
-<glyph unicode="&#xe069;" d="M250 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe070;" d="M50 1100h100q21 0 35.5 -14.5t14.5 -35.5v-438l464 453q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5 t-14.5 35.5v1000q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe071;" d="M1200 1050v-1000q0 -21 -10.5 -25t-25.5 10l-464 453v-438q0 -21 -10.5 -25t-25.5 10l-492 480q-15 14 -15 35t15 35l492 480q15 14 25.5 10t10.5 -25v-438l464 453q15 14 25.5 10t10.5 -25z" />
-<glyph unicode="&#xe072;" d="M243 1074l814 -498q18 -11 18 -26t-18 -26l-814 -498q-18 -11 -30.5 -4t-12.5 28v1000q0 21 12.5 28t30.5 -4z" />
-<glyph unicode="&#xe073;" d="M250 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM650 1000h200q21 0 35.5 -14.5t14.5 -35.5v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v800 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe074;" d="M1100 950v-800q0 -21 -14.5 -35.5t-35.5 -14.5h-800q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5h800q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe075;" d="M500 612v438q0 21 10.5 25t25.5 -10l492 -480q15 -14 15 -35t-15 -35l-492 -480q-15 -14 -25.5 -10t-10.5 25v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10z" />
-<glyph unicode="&#xe076;" d="M1048 1102l100 1q20 0 35 -14.5t15 -35.5l5 -1000q0 -21 -14.5 -35.5t-35.5 -14.5l-100 -1q-21 0 -35.5 14.5t-14.5 35.5l-2 437l-463 -454q-14 -15 -24.5 -10.5t-10.5 25.5l-2 437l-462 -455q-15 -14 -25.5 -9.5t-10.5 24.5l-5 1000q0 21 10.5 25.5t25.5 -10.5l466 -450 l-2 438q0 20 10.5 24.5t25.5 -9.5l466 -451l-2 438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe077;" d="M850 1100h100q21 0 35.5 -14.5t14.5 -35.5v-1000q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v438l-464 -453q-15 -14 -25.5 -10t-10.5 25v1000q0 21 10.5 25t25.5 -10l464 -453v438q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe078;" d="M686 1081l501 -540q15 -15 10.5 -26t-26.5 -11h-1042q-22 0 -26.5 11t10.5 26l501 540q15 15 36 15t36 -15zM150 400h1000q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe079;" d="M885 900l-352 -353l352 -353l-197 -198l-552 552l552 550z" />
-<glyph unicode="&#xe080;" d="M1064 547l-551 -551l-198 198l353 353l-353 353l198 198z" />
-<glyph unicode="&#xe081;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM650 900h-100q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-150 q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5h150v-150q0 -21 14.5 -35.5t35.5 -14.5h100q21 0 35.5 14.5t14.5 35.5v150h150q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-150v150q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe082;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM850 700h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5 t35.5 -14.5h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5z" />
-<glyph unicode="&#xe083;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM741.5 913q-12.5 0 -21.5 -9l-120 -120l-120 120q-9 9 -21.5 9 t-21.5 -9l-141 -141q-9 -9 -9 -21.5t9 -21.5l120 -120l-120 -120q-9 -9 -9 -21.5t9 -21.5l141 -141q9 -9 21.5 -9t21.5 9l120 120l120 -120q9 -9 21.5 -9t21.5 9l141 141q9 9 9 21.5t-9 21.5l-120 120l120 120q9 9 9 21.5t-9 21.5l-141 141q-9 9 -21.5 9z" />
-<glyph unicode="&#xe084;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM546 623l-84 85q-7 7 -17.5 7t-18.5 -7l-139 -139q-7 -8 -7 -18t7 -18 l242 -241q7 -8 17.5 -8t17.5 8l375 375q7 7 7 17.5t-7 18.5l-139 139q-7 7 -17.5 7t-17.5 -7z" />
-<glyph unicode="&#xe085;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM588 941q-29 0 -59 -5.5t-63 -20.5t-58 -38.5t-41.5 -63t-16.5 -89.5 q0 -25 20 -25h131q30 -5 35 11q6 20 20.5 28t45.5 8q20 0 31.5 -10.5t11.5 -28.5q0 -23 -7 -34t-26 -18q-1 0 -13.5 -4t-19.5 -7.5t-20 -10.5t-22 -17t-18.5 -24t-15.5 -35t-8 -46q-1 -8 5.5 -16.5t20.5 -8.5h173q7 0 22 8t35 28t37.5 48t29.5 74t12 100q0 47 -17 83 t-42.5 57t-59.5 34.5t-64 18t-59 4.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe086;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM675 1000h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5 t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5zM675 700h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h75v-200h-75q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h350q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5 t-17.5 7.5h-75v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe087;" d="M525 1200h150q10 0 17.5 -7.5t7.5 -17.5v-194q103 -27 178.5 -102.5t102.5 -178.5h194q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-194q-27 -103 -102.5 -178.5t-178.5 -102.5v-194q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v194 q-103 27 -178.5 102.5t-102.5 178.5h-194q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h194q27 103 102.5 178.5t178.5 102.5v194q0 10 7.5 17.5t17.5 7.5zM700 893v-168q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v168q-68 -23 -119 -74 t-74 -119h168q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-168q23 -68 74 -119t119 -74v168q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-168q68 23 119 74t74 119h-168q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h168 q-23 68 -74 119t-119 74z" />
-<glyph unicode="&#xe088;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM759 823l64 -64q7 -7 7 -17.5t-7 -17.5l-124 -124l124 -124q7 -7 7 -17.5t-7 -17.5l-64 -64q-7 -7 -17.5 -7t-17.5 7l-124 124l-124 -124q-7 -7 -17.5 -7t-17.5 7l-64 64 q-7 7 -7 17.5t7 17.5l124 124l-124 124q-7 7 -7 17.5t7 17.5l64 64q7 7 17.5 7t17.5 -7l124 -124l124 124q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe089;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5t57 -214.5 t155.5 -155.5t214.5 -57t214.5 57t155.5 155.5t57 214.5t-57 214.5t-155.5 155.5t-214.5 57zM782 788l106 -106q7 -7 7 -17.5t-7 -17.5l-320 -321q-8 -7 -18 -7t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l197 197q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe090;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM600 1027q-116 0 -214.5 -57t-155.5 -155.5t-57 -214.5q0 -120 65 -225 l587 587q-105 65 -225 65zM965 819l-584 -584q104 -62 219 -62q116 0 214.5 57t155.5 155.5t57 214.5q0 115 -62 219z" />
-<glyph unicode="&#xe091;" d="M39 582l522 427q16 13 27.5 8t11.5 -26v-291h550q21 0 35.5 -14.5t14.5 -35.5v-200q0 -21 -14.5 -35.5t-35.5 -14.5h-550v-291q0 -21 -11.5 -26t-27.5 8l-522 427q-16 13 -16 32t16 32z" />
-<glyph unicode="&#xe092;" d="M639 1009l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291h-550q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h550v291q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe093;" d="M682 1161l427 -522q13 -16 8 -27.5t-26 -11.5h-291v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v550h-291q-21 0 -26 11.5t8 27.5l427 522q13 16 32 16t32 -16z" />
-<glyph unicode="&#xe094;" d="M550 1200h200q21 0 35.5 -14.5t14.5 -35.5v-550h291q21 0 26 -11.5t-8 -27.5l-427 -522q-13 -16 -32 -16t-32 16l-427 522q-13 16 -8 27.5t26 11.5h291v550q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe095;" d="M639 1109l522 -427q16 -13 16 -32t-16 -32l-522 -427q-16 -13 -27.5 -8t-11.5 26v291q-94 -2 -182 -20t-170.5 -52t-147 -92.5t-100.5 -135.5q5 105 27 193.5t67.5 167t113 135t167 91.5t225.5 42v262q0 21 11.5 26t27.5 -8z" />
-<glyph unicode="&#xe096;" d="M850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5zM350 0h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249 q8 7 18 7t18 -7l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5z" />
-<glyph unicode="&#xe097;" d="M1014 1120l106 -106q7 -8 7 -18t-7 -18l-249 -249l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l249 249q8 7 18 7t18 -7zM250 600h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-249 -249q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l249 249l-94 94q-14 14 -10 24.5t25 10.5z" />
-<glyph unicode="&#xe101;" d="M600 1177q117 0 224 -45.5t184.5 -123t123 -184.5t45.5 -224t-45.5 -224t-123 -184.5t-184.5 -123t-224 -45.5t-224 45.5t-184.5 123t-123 184.5t-45.5 224t45.5 224t123 184.5t184.5 123t224 45.5zM704 900h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5 t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM675 400h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe102;" d="M260 1200q9 0 19 -2t15 -4l5 -2q22 -10 44 -23l196 -118q21 -13 36 -24q29 -21 37 -12q11 13 49 35l196 118q22 13 45 23q17 7 38 7q23 0 47 -16.5t37 -33.5l13 -16q14 -21 18 -45l25 -123l8 -44q1 -9 8.5 -14.5t17.5 -5.5h61q10 0 17.5 -7.5t7.5 -17.5v-50 q0 -10 -7.5 -17.5t-17.5 -7.5h-50q-10 0 -17.5 -7.5t-7.5 -17.5v-175h-400v300h-200v-300h-400v175q0 10 -7.5 17.5t-17.5 7.5h-50q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5h61q11 0 18 3t7 8q0 4 9 52l25 128q5 25 19 45q2 3 5 7t13.5 15t21.5 19.5t26.5 15.5 t29.5 7zM915 1079l-166 -162q-7 -7 -5 -12t12 -5h219q10 0 15 7t2 17l-51 149q-3 10 -11 12t-15 -6zM463 917l-177 157q-8 7 -16 5t-11 -12l-51 -143q-3 -10 2 -17t15 -7h231q11 0 12.5 5t-5.5 12zM500 0h-375q-10 0 -17.5 7.5t-7.5 17.5v375h400v-400zM1100 400v-375 q0 -10 -7.5 -17.5t-17.5 -7.5h-375v400h400z" />
-<glyph unicode="&#xe103;" d="M1165 1190q8 3 21 -6.5t13 -17.5q-2 -178 -24.5 -323.5t-55.5 -245.5t-87 -174.5t-102.5 -118.5t-118 -68.5t-118.5 -33t-120 -4.5t-105 9.5t-90 16.5q-61 12 -78 11q-4 1 -12.5 0t-34 -14.5t-52.5 -40.5l-153 -153q-26 -24 -37 -14.5t-11 43.5q0 64 42 102q8 8 50.5 45 t66.5 58q19 17 35 47t13 61q-9 55 -10 102.5t7 111t37 130t78 129.5q39 51 80 88t89.5 63.5t94.5 45t113.5 36t129 31t157.5 37t182 47.5zM1116 1098q-8 9 -22.5 -3t-45.5 -50q-38 -47 -119 -103.5t-142 -89.5l-62 -33q-56 -30 -102 -57t-104 -68t-102.5 -80.5t-85.5 -91 t-64 -104.5q-24 -56 -31 -86t2 -32t31.5 17.5t55.5 59.5q25 30 94 75.5t125.5 77.5t147.5 81q70 37 118.5 69t102 79.5t99 111t86.5 148.5q22 50 24 60t-6 19z" />
-<glyph unicode="&#xe104;" d="M653 1231q-39 -67 -54.5 -131t-10.5 -114.5t24.5 -96.5t47.5 -80t63.5 -62.5t68.5 -46.5t65 -30q-4 7 -17.5 35t-18.5 39.5t-17 39.5t-17 43t-13 42t-9.5 44.5t-2 42t4 43t13.5 39t23 38.5q96 -42 165 -107.5t105 -138t52 -156t13 -159t-19 -149.5q-13 -55 -44 -106.5 t-68 -87t-78.5 -64.5t-72.5 -45t-53 -22q-72 -22 -127 -11q-31 6 -13 19q6 3 17 7q13 5 32.5 21t41 44t38.5 63.5t21.5 81.5t-6.5 94.5t-50 107t-104 115.5q10 -104 -0.5 -189t-37 -140.5t-65 -93t-84 -52t-93.5 -11t-95 24.5q-80 36 -131.5 114t-53.5 171q-2 23 0 49.5 t4.5 52.5t13.5 56t27.5 60t46 64.5t69.5 68.5q-8 -53 -5 -102.5t17.5 -90t34 -68.5t44.5 -39t49 -2q31 13 38.5 36t-4.5 55t-29 64.5t-36 75t-26 75.5q-15 85 2 161.5t53.5 128.5t85.5 92.5t93.5 61t81.5 25.5z" />
-<glyph unicode="&#xe105;" d="M600 1094q82 0 160.5 -22.5t140 -59t116.5 -82.5t94.5 -95t68 -95t42.5 -82.5t14 -57.5t-14 -57.5t-43 -82.5t-68.5 -95t-94.5 -95t-116.5 -82.5t-140 -59t-159.5 -22.5t-159.5 22.5t-140 59t-116.5 82.5t-94.5 95t-68.5 95t-43 82.5t-14 57.5t14 57.5t42.5 82.5t68 95 t94.5 95t116.5 82.5t140 59t160.5 22.5zM888 829q-15 15 -18 12t5 -22q25 -57 25 -119q0 -124 -88 -212t-212 -88t-212 88t-88 212q0 59 23 114q8 19 4.5 22t-17.5 -12q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q22 -36 47 -71t70 -82t92.5 -81t113 -58.5t133.5 -24.5 t133.5 24t113 58.5t92.5 81.5t70 81.5t47 70.5q11 18 9 42.5t-14 41.5q-90 117 -163 189zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l35 34q14 15 12.5 33.5t-16.5 33.5q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe106;" d="M592 0h-148l31 120q-91 20 -175.5 68.5t-143.5 106.5t-103.5 119t-66.5 110t-22 76q0 21 14 57.5t42.5 82.5t68 95t94.5 95t116.5 82.5t140 59t160.5 22.5q61 0 126 -15l32 121h148zM944 770l47 181q108 -85 176.5 -192t68.5 -159q0 -26 -19.5 -71t-59.5 -102t-93 -112 t-129 -104.5t-158 -75.5l46 173q77 49 136 117t97 131q11 18 9 42.5t-14 41.5q-54 70 -107 130zM310 824q-70 -69 -160 -184q-13 -16 -15 -40.5t9 -42.5q18 -30 39 -60t57 -70.5t74 -73t90 -61t105 -41.5l41 154q-107 18 -178.5 101.5t-71.5 193.5q0 59 23 114q8 19 4.5 22 t-17.5 -12zM448 727l-35 -36q-15 -15 -19.5 -38.5t4.5 -41.5q37 -68 93 -116q16 -13 38.5 -11t36.5 17l12 11l22 86l-3 4q-44 44 -89 117q-11 18 -28 20t-32 -12z" />
-<glyph unicode="&#xe107;" d="M-90 100l642 1066q20 31 48 28.5t48 -35.5l642 -1056q21 -32 7.5 -67.5t-50.5 -35.5h-1294q-37 0 -50.5 34t7.5 66zM155 200h345v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h345l-445 723zM496 700h208q20 0 32 -14.5t8 -34.5l-58 -252 q-4 -20 -21.5 -34.5t-37.5 -14.5h-54q-20 0 -37.5 14.5t-21.5 34.5l-58 252q-4 20 8 34.5t32 14.5z" />
-<glyph unicode="&#xe108;" d="M650 1200q62 0 106 -44t44 -106v-339l363 -325q15 -14 26 -38.5t11 -44.5v-41q0 -20 -12 -26.5t-29 5.5l-359 249v-263q100 -93 100 -113v-64q0 -21 -13 -29t-32 1l-205 128l-205 -128q-19 -9 -32 -1t-13 29v64q0 20 100 113v263l-359 -249q-17 -12 -29 -5.5t-12 26.5v41 q0 20 11 44.5t26 38.5l363 325v339q0 62 44 106t106 44z" />
-<glyph unicode="&#xe109;" d="M850 1200h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-150h-1100v150q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5h100q21 0 35.5 -14.5t14.5 -35.5v-50h500v50q0 21 14.5 35.5t35.5 14.5zM1100 800v-750q0 -21 -14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v750h1100zM100 600v-100h100v100h-100zM300 600v-100h100v100h-100zM500 600v-100h100v100h-100zM700 600v-100h100v100h-100zM900 600v-100h100v100h-100zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400 v-100h100v100h-100zM700 400v-100h100v100h-100zM900 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100zM500 200v-100h100v100h-100zM700 200v-100h100v100h-100zM900 200v-100h100v100h-100z" />
-<glyph unicode="&#xe110;" d="M1135 1165l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-159l-600 -600h-291q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h209l600 600h241v150q0 21 10.5 25t24.5 -10zM522 819l-141 -141l-122 122h-209q-21 0 -35.5 14.5 t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h291zM1135 565l249 -230q15 -14 15 -35t-15 -35l-249 -230q-14 -14 -24.5 -10t-10.5 25v150h-241l-181 181l141 141l122 -122h159v150q0 21 10.5 25t24.5 -10z" />
-<glyph unicode="&#xe111;" d="M100 1100h1000q41 0 70.5 -29.5t29.5 -70.5v-600q0 -41 -29.5 -70.5t-70.5 -29.5h-596l-304 -300v300h-100q-41 0 -70.5 29.5t-29.5 70.5v600q0 41 29.5 70.5t70.5 29.5z" />
-<glyph unicode="&#xe112;" d="M150 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM850 1200h200q21 0 35.5 -14.5t14.5 -35.5v-250h-300v250q0 21 14.5 35.5t35.5 14.5zM1100 800v-300q0 -41 -3 -77.5t-15 -89.5t-32 -96t-58 -89t-89 -77t-129 -51t-174 -20t-174 20 t-129 51t-89 77t-58 89t-32 96t-15 89.5t-3 77.5v300h300v-250v-27v-42.5t1.5 -41t5 -38t10 -35t16.5 -30t25.5 -24.5t35 -19t46.5 -12t60 -4t60 4.5t46.5 12.5t35 19.5t25 25.5t17 30.5t10 35t5 38t2 40.5t-0.5 42v25v250h300z" />
-<glyph unicode="&#xe113;" d="M1100 411l-198 -199l-353 353l-353 -353l-197 199l551 551z" />
-<glyph unicode="&#xe114;" d="M1101 789l-550 -551l-551 551l198 199l353 -353l353 353z" />
-<glyph unicode="&#xe115;" d="M404 1000h746q21 0 35.5 -14.5t14.5 -35.5v-551h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v401h-381zM135 984l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-400h385l215 -200h-750q-21 0 -35.5 14.5 t-14.5 35.5v550h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe116;" d="M56 1200h94q17 0 31 -11t18 -27l38 -162h896q24 0 39 -18.5t10 -42.5l-100 -475q-5 -21 -27 -42.5t-55 -21.5h-633l48 -200h535q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-50q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-300v-50 q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v50h-31q-18 0 -32.5 10t-20.5 19l-5 10l-201 961h-54q-20 0 -35 14.5t-15 35.5t15 35.5t35 14.5z" />
-<glyph unicode="&#xe117;" d="M1200 1000v-100h-1200v100h200q0 41 29.5 70.5t70.5 29.5h300q41 0 70.5 -29.5t29.5 -70.5h500zM0 800h1200v-800h-1200v800z" />
-<glyph unicode="&#xe118;" d="M200 800l-200 -400v600h200q0 41 29.5 70.5t70.5 29.5h300q42 0 71 -29.5t29 -70.5h500v-200h-1000zM1500 700l-300 -700h-1200l300 700h1200z" />
-<glyph unicode="&#xe119;" d="M635 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-601h150q21 0 25 -10.5t-10 -24.5l-230 -249q-14 -15 -35 -15t-35 15l-230 249q-14 14 -10 24.5t25 10.5h150v601h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe120;" d="M936 864l249 -229q14 -15 14 -35.5t-14 -35.5l-249 -229q-15 -15 -25.5 -10.5t-10.5 24.5v151h-600v-151q0 -20 -10.5 -24.5t-25.5 10.5l-249 229q-14 15 -14 35.5t14 35.5l249 229q15 15 25.5 10.5t10.5 -25.5v-149h600v149q0 21 10.5 25.5t25.5 -10.5z" />
-<glyph unicode="&#xe121;" d="M1169 400l-172 732q-5 23 -23 45.5t-38 22.5h-672q-20 0 -38 -20t-23 -41l-172 -739h1138zM1100 300h-1000q-41 0 -70.5 -29.5t-29.5 -70.5v-100q0 -41 29.5 -70.5t70.5 -29.5h1000q41 0 70.5 29.5t29.5 70.5v100q0 41 -29.5 70.5t-70.5 29.5zM800 100v100h100v-100h-100 zM1000 100v100h100v-100h-100z" />
-<glyph unicode="&#xe122;" d="M1150 1100q21 0 35.5 -14.5t14.5 -35.5v-850q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v850q0 21 14.5 35.5t35.5 14.5zM1000 200l-675 200h-38l47 -276q3 -16 -5.5 -20t-29.5 -4h-7h-84q-20 0 -34.5 14t-18.5 35q-55 337 -55 351v250v6q0 16 1 23.5t6.5 14 t17.5 6.5h200l675 250v-850zM0 750v-250q-4 0 -11 0.5t-24 6t-30 15t-24 30t-11 48.5v50q0 26 10.5 46t25 30t29 16t25.5 7z" />
-<glyph unicode="&#xe123;" d="M553 1200h94q20 0 29 -10.5t3 -29.5l-18 -37q83 -19 144 -82.5t76 -140.5l63 -327l118 -173h17q19 0 33 -14.5t14 -35t-13 -40.5t-31 -27q-8 -4 -23 -9.5t-65 -19.5t-103 -25t-132.5 -20t-158.5 -9q-57 0 -115 5t-104 12t-88.5 15.5t-73.5 17.5t-54.5 16t-35.5 12l-11 4 q-18 8 -31 28t-13 40.5t14 35t33 14.5h17l118 173l63 327q15 77 76 140t144 83l-18 32q-6 19 3.5 32t28.5 13zM498 110q50 -6 102 -6q53 0 102 6q-12 -49 -39.5 -79.5t-62.5 -30.5t-63 30.5t-39 79.5z" />
-<glyph unicode="&#xe124;" d="M800 946l224 78l-78 -224l234 -45l-180 -155l180 -155l-234 -45l78 -224l-224 78l-45 -234l-155 180l-155 -180l-45 234l-224 -78l78 224l-234 45l180 155l-180 155l234 45l-78 224l224 -78l45 234l155 -180l155 180z" />
-<glyph unicode="&#xe125;" d="M650 1200h50q40 0 70 -40.5t30 -84.5v-150l-28 -125h328q40 0 70 -40.5t30 -84.5v-100q0 -45 -29 -74l-238 -344q-16 -24 -38 -40.5t-45 -16.5h-250q-7 0 -42 25t-66 50l-31 25h-61q-45 0 -72.5 18t-27.5 57v400q0 36 20 63l145 196l96 198q13 28 37.5 48t51.5 20z M650 1100l-100 -212l-150 -213v-375h100l136 -100h214l250 375v125h-450l50 225v175h-50zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe126;" d="M600 1100h250q23 0 45 -16.5t38 -40.5l238 -344q29 -29 29 -74v-100q0 -44 -30 -84.5t-70 -40.5h-328q28 -118 28 -125v-150q0 -44 -30 -84.5t-70 -40.5h-50q-27 0 -51.5 20t-37.5 48l-96 198l-145 196q-20 27 -20 63v400q0 39 27.5 57t72.5 18h61q124 100 139 100z M50 1000h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM636 1000l-136 -100h-100v-375l150 -213l100 -212h50v175l-50 225h450v125l-250 375h-214z" />
-<glyph unicode="&#xe127;" d="M356 873l363 230q31 16 53 -6l110 -112q13 -13 13.5 -32t-11.5 -34l-84 -121h302q84 0 138 -38t54 -110t-55 -111t-139 -39h-106l-131 -339q-6 -21 -19.5 -41t-28.5 -20h-342q-7 0 -90 81t-83 94v525q0 17 14 35.5t28 28.5zM400 792v-503l100 -89h293l131 339 q6 21 19.5 41t28.5 20h203q21 0 30.5 25t0.5 50t-31 25h-456h-7h-6h-5.5t-6 0.5t-5 1.5t-5 2t-4 2.5t-4 4t-2.5 4.5q-12 25 5 47l146 183l-86 83zM50 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v500 q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe128;" d="M475 1103l366 -230q2 -1 6 -3.5t14 -10.5t18 -16.5t14.5 -20t6.5 -22.5v-525q0 -13 -86 -94t-93 -81h-342q-15 0 -28.5 20t-19.5 41l-131 339h-106q-85 0 -139.5 39t-54.5 111t54 110t138 38h302l-85 121q-11 15 -10.5 34t13.5 32l110 112q22 22 53 6zM370 945l146 -183 q17 -22 5 -47q-2 -2 -3.5 -4.5t-4 -4t-4 -2.5t-5 -2t-5 -1.5t-6 -0.5h-6h-6.5h-6h-475v-100h221q15 0 29 -20t20 -41l130 -339h294l106 89v503l-342 236zM1050 800h100q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5 v500q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe129;" d="M550 1294q72 0 111 -55t39 -139v-106l339 -131q21 -6 41 -19.5t20 -28.5v-342q0 -7 -81 -90t-94 -83h-525q-17 0 -35.5 14t-28.5 28l-9 14l-230 363q-16 31 6 53l112 110q13 13 32 13.5t34 -11.5l121 -84v302q0 84 38 138t110 54zM600 972v203q0 21 -25 30.5t-50 0.5 t-25 -31v-456v-7v-6v-5.5t-0.5 -6t-1.5 -5t-2 -5t-2.5 -4t-4 -4t-4.5 -2.5q-25 -12 -47 5l-183 146l-83 -86l236 -339h503l89 100v293l-339 131q-21 6 -41 19.5t-20 28.5zM450 200h500q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-500 q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe130;" d="M350 1100h500q21 0 35.5 14.5t14.5 35.5v100q0 21 -14.5 35.5t-35.5 14.5h-500q-21 0 -35.5 -14.5t-14.5 -35.5v-100q0 -21 14.5 -35.5t35.5 -14.5zM600 306v-106q0 -84 -39 -139t-111 -55t-110 54t-38 138v302l-121 -84q-15 -12 -34 -11.5t-32 13.5l-112 110 q-22 22 -6 53l230 363q1 2 3.5 6t10.5 13.5t16.5 17t20 13.5t22.5 6h525q13 0 94 -83t81 -90v-342q0 -15 -20 -28.5t-41 -19.5zM308 900l-236 -339l83 -86l183 146q22 17 47 5q2 -1 4.5 -2.5t4 -4t2.5 -4t2 -5t1.5 -5t0.5 -6v-5.5v-6v-7v-456q0 -22 25 -31t50 0.5t25 30.5 v203q0 15 20 28.5t41 19.5l339 131v293l-89 100h-503z" />
-<glyph unicode="&#xe131;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM914 632l-275 223q-16 13 -27.5 8t-11.5 -26v-137h-275 q-10 0 -17.5 -7.5t-7.5 -17.5v-150q0 -10 7.5 -17.5t17.5 -7.5h275v-137q0 -21 11.5 -26t27.5 8l275 223q16 13 16 32t-16 32z" />
-<glyph unicode="&#xe132;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM561 855l-275 -223q-16 -13 -16 -32t16 -32l275 -223q16 -13 27.5 -8 t11.5 26v137h275q10 0 17.5 7.5t7.5 17.5v150q0 10 -7.5 17.5t-17.5 7.5h-275v137q0 21 -11.5 26t-27.5 -8z" />
-<glyph unicode="&#xe133;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM855 639l-223 275q-13 16 -32 16t-32 -16l-223 -275q-13 -16 -8 -27.5 t26 -11.5h137v-275q0 -10 7.5 -17.5t17.5 -7.5h150q10 0 17.5 7.5t7.5 17.5v275h137q21 0 26 11.5t-8 27.5z" />
-<glyph unicode="&#xe134;" d="M600 1178q118 0 225 -45.5t184.5 -123t123 -184.5t45.5 -225t-45.5 -225t-123 -184.5t-184.5 -123t-225 -45.5t-225 45.5t-184.5 123t-123 184.5t-45.5 225t45.5 225t123 184.5t184.5 123t225 45.5zM675 900h-150q-10 0 -17.5 -7.5t-7.5 -17.5v-275h-137q-21 0 -26 -11.5 t8 -27.5l223 -275q13 -16 32 -16t32 16l223 275q13 16 8 27.5t-26 11.5h-137v275q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe135;" d="M600 1176q116 0 222.5 -46t184 -123.5t123.5 -184t46 -222.5t-46 -222.5t-123.5 -184t-184 -123.5t-222.5 -46t-222.5 46t-184 123.5t-123.5 184t-46 222.5t46 222.5t123.5 184t184 123.5t222.5 46zM627 1101q-15 -12 -36.5 -20.5t-35.5 -12t-43 -8t-39 -6.5 q-15 -3 -45.5 0t-45.5 -2q-20 -7 -51.5 -26.5t-34.5 -34.5q-3 -11 6.5 -22.5t8.5 -18.5q-3 -34 -27.5 -91t-29.5 -79q-9 -34 5 -93t8 -87q0 -9 17 -44.5t16 -59.5q12 0 23 -5t23.5 -15t19.5 -14q16 -8 33 -15t40.5 -15t34.5 -12q21 -9 52.5 -32t60 -38t57.5 -11 q7 -15 -3 -34t-22.5 -40t-9.5 -38q13 -21 23 -34.5t27.5 -27.5t36.5 -18q0 -7 -3.5 -16t-3.5 -14t5 -17q104 -2 221 112q30 29 46.5 47t34.5 49t21 63q-13 8 -37 8.5t-36 7.5q-15 7 -49.5 15t-51.5 19q-18 0 -41 -0.5t-43 -1.5t-42 -6.5t-38 -16.5q-51 -35 -66 -12 q-4 1 -3.5 25.5t0.5 25.5q-6 13 -26.5 17.5t-24.5 6.5q1 15 -0.5 30.5t-7 28t-18.5 11.5t-31 -21q-23 -25 -42 4q-19 28 -8 58q6 16 22 22q6 -1 26 -1.5t33.5 -4t19.5 -13.5q7 -12 18 -24t21.5 -20.5t20 -15t15.5 -10.5l5 -3q2 12 7.5 30.5t8 34.5t-0.5 32q-3 18 3.5 29 t18 22.5t15.5 24.5q6 14 10.5 35t8 31t15.5 22.5t34 22.5q-6 18 10 36q8 0 24 -1.5t24.5 -1.5t20 4.5t20.5 15.5q-10 23 -31 42.5t-37.5 29.5t-49 27t-43.5 23q0 1 2 8t3 11.5t1.5 10.5t-1 9.5t-4.5 4.5q31 -13 58.5 -14.5t38.5 2.5l12 5q5 28 -9.5 46t-36.5 24t-50 15 t-41 20q-18 -4 -37 0zM613 994q0 -17 8 -42t17 -45t9 -23q-8 1 -39.5 5.5t-52.5 10t-37 16.5q3 11 16 29.5t16 25.5q10 -10 19 -10t14 6t13.5 14.5t16.5 12.5z" />
-<glyph unicode="&#xe136;" d="M756 1157q164 92 306 -9l-259 -138l145 -232l251 126q6 -89 -34 -156.5t-117 -110.5q-60 -34 -127 -39.5t-126 16.5l-596 -596q-15 -16 -36.5 -16t-36.5 16l-111 110q-15 15 -15 36.5t15 37.5l600 599q-34 101 5.5 201.5t135.5 154.5z" />
-<glyph unicode="&#xe137;" horiz-adv-x="1220" d="M100 1196h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 1096h-200v-100h200v100zM100 796h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 696h-500v-100h500v100zM100 396h1000q41 0 70.5 -29.5t29.5 -70.5v-100q0 -41 -29.5 -70.5t-70.5 -29.5h-1000q-41 0 -70.5 29.5t-29.5 70.5v100q0 41 29.5 70.5t70.5 29.5zM1100 296h-300v-100h300v100z " />
-<glyph unicode="&#xe138;" d="M150 1200h900q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM700 500v-300l-200 -200v500l-350 500h900z" />
-<glyph unicode="&#xe139;" d="M500 1200h200q41 0 70.5 -29.5t29.5 -70.5v-100h300q41 0 70.5 -29.5t29.5 -70.5v-400h-500v100h-200v-100h-500v400q0 41 29.5 70.5t70.5 29.5h300v100q0 41 29.5 70.5t70.5 29.5zM500 1100v-100h200v100h-200zM1200 400v-200q0 -41 -29.5 -70.5t-70.5 -29.5h-1000 q-41 0 -70.5 29.5t-29.5 70.5v200h1200z" />
-<glyph unicode="&#xe140;" d="M50 1200h300q21 0 25 -10.5t-10 -24.5l-94 -94l199 -199q7 -8 7 -18t-7 -18l-106 -106q-8 -7 -18 -7t-18 7l-199 199l-94 -94q-14 -14 -24.5 -10t-10.5 25v300q0 21 14.5 35.5t35.5 14.5zM850 1200h300q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -10.5 -25t-24.5 10l-94 94 l-199 -199q-8 -7 -18 -7t-18 7l-106 106q-7 8 -7 18t7 18l199 199l-94 94q-14 14 -10 24.5t25 10.5zM364 470l106 -106q7 -8 7 -18t-7 -18l-199 -199l94 -94q14 -14 10 -24.5t-25 -10.5h-300q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 10.5 25t24.5 -10l94 -94l199 199 q8 7 18 7t18 -7zM1071 271l94 94q14 14 24.5 10t10.5 -25v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -25 10.5t10 24.5l94 94l-199 199q-7 8 -7 18t7 18l106 106q8 7 18 7t18 -7z" />
-<glyph unicode="&#xe141;" d="M596 1192q121 0 231.5 -47.5t190 -127t127 -190t47.5 -231.5t-47.5 -231.5t-127 -190.5t-190 -127t-231.5 -47t-231.5 47t-190.5 127t-127 190.5t-47 231.5t47 231.5t127 190t190.5 127t231.5 47.5zM596 1010q-112 0 -207.5 -55.5t-151 -151t-55.5 -207.5t55.5 -207.5 t151 -151t207.5 -55.5t207.5 55.5t151 151t55.5 207.5t-55.5 207.5t-151 151t-207.5 55.5zM454.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38.5 -16.5t-38.5 16.5t-16 39t16 38.5t38.5 16zM754.5 905q22.5 0 38.5 -16t16 -38.5t-16 -39t-38 -16.5q-14 0 -29 10l-55 -145 q17 -23 17 -51q0 -36 -25.5 -61.5t-61.5 -25.5t-61.5 25.5t-25.5 61.5q0 32 20.5 56.5t51.5 29.5l122 126l1 1q-9 14 -9 28q0 23 16 39t38.5 16zM345.5 709q22.5 0 38.5 -16t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16zM854.5 709q22.5 0 38.5 -16 t16 -38.5t-16 -38.5t-38.5 -16t-38.5 16t-16 38.5t16 38.5t38.5 16z" />
-<glyph unicode="&#xe142;" d="M546 173l469 470q91 91 99 192q7 98 -52 175.5t-154 94.5q-22 4 -47 4q-34 0 -66.5 -10t-56.5 -23t-55.5 -38t-48 -41.5t-48.5 -47.5q-376 -375 -391 -390q-30 -27 -45 -41.5t-37.5 -41t-32 -46.5t-16 -47.5t-1.5 -56.5q9 -62 53.5 -95t99.5 -33q74 0 125 51l548 548 q36 36 20 75q-7 16 -21.5 26t-32.5 10q-26 0 -50 -23q-13 -12 -39 -38l-341 -338q-15 -15 -35.5 -15.5t-34.5 13.5t-14 34.5t14 34.5q327 333 361 367q35 35 67.5 51.5t78.5 16.5q14 0 29 -1q44 -8 74.5 -35.5t43.5 -68.5q14 -47 2 -96.5t-47 -84.5q-12 -11 -32 -32 t-79.5 -81t-114.5 -115t-124.5 -123.5t-123 -119.5t-96.5 -89t-57 -45q-56 -27 -120 -27q-70 0 -129 32t-93 89q-48 78 -35 173t81 163l511 511q71 72 111 96q91 55 198 55q80 0 152 -33q78 -36 129.5 -103t66.5 -154q17 -93 -11 -183.5t-94 -156.5l-482 -476 q-15 -15 -36 -16t-37 14t-17.5 34t14.5 35z" />
-<glyph unicode="&#xe143;" d="M649 949q48 68 109.5 104t121.5 38.5t118.5 -20t102.5 -64t71 -100.5t27 -123q0 -57 -33.5 -117.5t-94 -124.5t-126.5 -127.5t-150 -152.5t-146 -174q-62 85 -145.5 174t-150 152.5t-126.5 127.5t-93.5 124.5t-33.5 117.5q0 64 28 123t73 100.5t104 64t119 20 t120.5 -38.5t104.5 -104zM896 972q-33 0 -64.5 -19t-56.5 -46t-47.5 -53.5t-43.5 -45.5t-37.5 -19t-36 19t-40 45.5t-43 53.5t-54 46t-65.5 19q-67 0 -122.5 -55.5t-55.5 -132.5q0 -23 13.5 -51t46 -65t57.5 -63t76 -75l22 -22q15 -14 44 -44t50.5 -51t46 -44t41 -35t23 -12 t23.5 12t42.5 36t46 44t52.5 52t44 43q4 4 12 13q43 41 63.5 62t52 55t46 55t26 46t11.5 44q0 79 -53 133.5t-120 54.5z" />
-<glyph unicode="&#xe144;" d="M776.5 1214q93.5 0 159.5 -66l141 -141q66 -66 66 -160q0 -42 -28 -95.5t-62 -87.5l-29 -29q-31 53 -77 99l-18 18l95 95l-247 248l-389 -389l212 -212l-105 -106l-19 18l-141 141q-66 66 -66 159t66 159l283 283q65 66 158.5 66zM600 706l105 105q10 -8 19 -17l141 -141 q66 -66 66 -159t-66 -159l-283 -283q-66 -66 -159 -66t-159 66l-141 141q-66 66 -66 159.5t66 159.5l55 55q29 -55 75 -102l18 -17l-95 -95l247 -248l389 389z" />
-<glyph unicode="&#xe145;" d="M603 1200q85 0 162 -15t127 -38t79 -48t29 -46v-953q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-41 0 -70.5 29.5t-29.5 70.5v953q0 21 30 46.5t81 48t129 37.5t163 15zM300 1000v-700h600v700h-600zM600 254q-43 0 -73.5 -30.5t-30.5 -73.5t30.5 -73.5t73.5 -30.5t73.5 30.5 t30.5 73.5t-30.5 73.5t-73.5 30.5z" />
-<glyph unicode="&#xe146;" d="M902 1185l283 -282q15 -15 15 -36t-14.5 -35.5t-35.5 -14.5t-35 15l-36 35l-279 -267v-300l-212 210l-308 -307l-280 -203l203 280l307 308l-210 212h300l267 279l-35 36q-15 14 -15 35t14.5 35.5t35.5 14.5t35 -15z" />
-<glyph unicode="&#xe148;" d="M700 1248v-78q38 -5 72.5 -14.5t75.5 -31.5t71 -53.5t52 -84t24 -118.5h-159q-4 36 -10.5 59t-21 45t-40 35.5t-64.5 20.5v-307l64 -13q34 -7 64 -16.5t70 -32t67.5 -52.5t47.5 -80t20 -112q0 -139 -89 -224t-244 -97v-77h-100v79q-150 16 -237 103q-40 40 -52.5 93.5 t-15.5 139.5h139q5 -77 48.5 -126t117.5 -65v335l-27 8q-46 14 -79 26.5t-72 36t-63 52t-40 72.5t-16 98q0 70 25 126t67.5 92t94.5 57t110 27v77h100zM600 754v274q-29 -4 -50 -11t-42 -21.5t-31.5 -41.5t-10.5 -65q0 -29 7 -50.5t16.5 -34t28.5 -22.5t31.5 -14t37.5 -10 q9 -3 13 -4zM700 547v-310q22 2 42.5 6.5t45 15.5t41.5 27t29 42t12 59.5t-12.5 59.5t-38 44.5t-53 31t-66.5 24.5z" />
-<glyph unicode="&#xe149;" d="M561 1197q84 0 160.5 -40t123.5 -109.5t47 -147.5h-153q0 40 -19.5 71.5t-49.5 48.5t-59.5 26t-55.5 9q-37 0 -79 -14.5t-62 -35.5q-41 -44 -41 -101q0 -26 13.5 -63t26.5 -61t37 -66q6 -9 9 -14h241v-100h-197q8 -50 -2.5 -115t-31.5 -95q-45 -62 -99 -112 q34 10 83 17.5t71 7.5q32 1 102 -16t104 -17q83 0 136 30l50 -147q-31 -19 -58 -30.5t-55 -15.5t-42 -4.5t-46 -0.5q-23 0 -76 17t-111 32.5t-96 11.5q-39 -3 -82 -16t-67 -25l-23 -11l-55 145q4 3 16 11t15.5 10.5t13 9t15.5 12t14.5 14t17.5 18.5q48 55 54 126.5 t-30 142.5h-221v100h166q-23 47 -44 104q-7 20 -12 41.5t-6 55.5t6 66.5t29.5 70.5t58.5 71q97 88 263 88z" />
-<glyph unicode="&#xe150;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM935 1184l230 -249q14 -14 10 -24.5t-25 -10.5h-150v-900h-200v900h-150q-21 0 -25 10.5t10 24.5l230 249q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe151;" d="M1000 700h-100v100h-100v-100h-100v500h300v-500zM400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM801 1100v-200h100v200h-100zM1000 350l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150z " />
-<glyph unicode="&#xe152;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 1050l-200 -250h200v-100h-300v150l200 250h-200v100h300v-150zM1000 0h-100v100h-100v-100h-100v500h300v-500zM801 400v-200h100v200h-100z " />
-<glyph unicode="&#xe153;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1000 700h-100v400h-100v100h200v-500zM1100 0h-100v100h-200v400h300v-500zM901 400v-200h100v200h-100z" />
-<glyph unicode="&#xe154;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1100 700h-100v100h-200v400h300v-500zM901 1100v-200h100v200h-100zM1000 0h-100v400h-100v100h200v-500z" />
-<glyph unicode="&#xe155;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM900 1000h-200v200h200v-200zM1000 700h-300v200h300v-200zM1100 400h-400v200h400v-200zM1200 100h-500v200h500v-200z" />
-<glyph unicode="&#xe156;" d="M400 300h150q21 0 25 -11t-10 -25l-230 -250q-14 -15 -35 -15t-35 15l-230 250q-14 14 -10 25t25 11h150v900h200v-900zM1200 1000h-500v200h500v-200zM1100 700h-400v200h400v-200zM1000 400h-300v200h300v-200zM900 100h-200v200h200v-200z" />
-<glyph unicode="&#xe157;" d="M350 1100h400q162 0 256 -93.5t94 -256.5v-400q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5z" />
-<glyph unicode="&#xe158;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-163 0 -256.5 92.5t-93.5 257.5v400q0 163 94 256.5t256 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM440 770l253 -190q17 -12 17 -30t-17 -30l-253 -190q-16 -12 -28 -6.5t-12 26.5v400q0 21 12 26.5t28 -6.5z" />
-<glyph unicode="&#xe159;" d="M350 1100h400q163 0 256.5 -94t93.5 -256v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 163 92.5 256.5t257.5 93.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM350 700h400q21 0 26.5 -12t-6.5 -28l-190 -253q-12 -17 -30 -17t-30 17l-190 253q-12 16 -6.5 28t26.5 12z" />
-<glyph unicode="&#xe160;" d="M350 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -163 -92.5 -256.5t-257.5 -93.5h-400q-163 0 -256.5 94t-93.5 256v400q0 165 92.5 257.5t257.5 92.5zM800 900h-500q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5 v500q0 41 -29.5 70.5t-70.5 29.5zM580 693l190 -253q12 -16 6.5 -28t-26.5 -12h-400q-21 0 -26.5 12t6.5 28l190 253q12 17 30 17t30 -17z" />
-<glyph unicode="&#xe161;" d="M550 1100h400q165 0 257.5 -92.5t92.5 -257.5v-400q0 -165 -92.5 -257.5t-257.5 -92.5h-400q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h450q41 0 70.5 29.5t29.5 70.5v500q0 41 -29.5 70.5t-70.5 29.5h-450q-21 0 -35.5 14.5t-14.5 35.5v100 q0 21 14.5 35.5t35.5 14.5zM338 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe162;" d="M793 1182l9 -9q8 -10 5 -27q-3 -11 -79 -225.5t-78 -221.5l300 1q24 0 32.5 -17.5t-5.5 -35.5q-1 0 -133.5 -155t-267 -312.5t-138.5 -162.5q-12 -15 -26 -15h-9l-9 8q-9 11 -4 32q2 9 42 123.5t79 224.5l39 110h-302q-23 0 -31 19q-10 21 6 41q75 86 209.5 237.5 t228 257t98.5 111.5q9 16 25 16h9z" />
-<glyph unicode="&#xe163;" d="M350 1100h400q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-450q-41 0 -70.5 -29.5t-29.5 -70.5v-500q0 -41 29.5 -70.5t70.5 -29.5h450q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400 q0 165 92.5 257.5t257.5 92.5zM938 867l324 -284q16 -14 16 -33t-16 -33l-324 -284q-16 -14 -27 -9t-11 26v150h-250q-21 0 -35.5 14.5t-14.5 35.5v200q0 21 14.5 35.5t35.5 14.5h250v150q0 21 11 26t27 -9z" />
-<glyph unicode="&#xe164;" d="M750 1200h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -10.5 -25t-24.5 10l-109 109l-312 -312q-15 -15 -35.5 -15t-35.5 15l-141 141q-15 15 -15 35.5t15 35.5l312 312l-109 109q-14 14 -10 24.5t25 10.5zM456 900h-156q-41 0 -70.5 -29.5t-29.5 -70.5v-500 q0 -41 29.5 -70.5t70.5 -29.5h500q41 0 70.5 29.5t29.5 70.5v148l200 200v-298q0 -165 -93.5 -257.5t-256.5 -92.5h-400q-165 0 -257.5 92.5t-92.5 257.5v400q0 165 92.5 257.5t257.5 92.5h300z" />
-<glyph unicode="&#xe165;" d="M600 1186q119 0 227.5 -46.5t187 -125t125 -187t46.5 -227.5t-46.5 -227.5t-125 -187t-187 -125t-227.5 -46.5t-227.5 46.5t-187 125t-125 187t-46.5 227.5t46.5 227.5t125 187t187 125t227.5 46.5zM600 1022q-115 0 -212 -56.5t-153.5 -153.5t-56.5 -212t56.5 -212 t153.5 -153.5t212 -56.5t212 56.5t153.5 153.5t56.5 212t-56.5 212t-153.5 153.5t-212 56.5zM600 794q80 0 137 -57t57 -137t-57 -137t-137 -57t-137 57t-57 137t57 137t137 57z" />
-<glyph unicode="&#xe166;" d="M450 1200h200q21 0 35.5 -14.5t14.5 -35.5v-350h245q20 0 25 -11t-9 -26l-383 -426q-14 -15 -33.5 -15t-32.5 15l-379 426q-13 15 -8.5 26t25.5 11h250v350q0 21 14.5 35.5t35.5 14.5zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe167;" d="M583 1182l378 -435q14 -15 9 -31t-26 -16h-244v-250q0 -20 -17 -35t-39 -15h-200q-20 0 -32 14.5t-12 35.5v250h-250q-20 0 -25.5 16.5t8.5 31.5l383 431q14 16 33.5 17t33.5 -14zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5z M900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe168;" d="M396 723l369 369q7 7 17.5 7t17.5 -7l139 -139q7 -8 7 -18.5t-7 -17.5l-525 -525q-7 -8 -17.5 -8t-17.5 8l-292 291q-7 8 -7 18t7 18l139 139q8 7 18.5 7t17.5 -7zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50 h-100z" />
-<glyph unicode="&#xe169;" d="M135 1023l142 142q14 14 35 14t35 -14l77 -77l-212 -212l-77 76q-14 15 -14 36t14 35zM655 855l210 210q14 14 24.5 10t10.5 -25l-2 -599q-1 -20 -15.5 -35t-35.5 -15l-597 -1q-21 0 -25 10.5t10 24.5l208 208l-154 155l212 212zM50 300h1000q21 0 35.5 -14.5t14.5 -35.5 v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe170;" d="M350 1200l599 -2q20 -1 35 -15.5t15 -35.5l1 -597q0 -21 -10.5 -25t-24.5 10l-208 208l-155 -154l-212 212l155 154l-210 210q-14 14 -10 24.5t25 10.5zM524 512l-76 -77q-15 -14 -36 -14t-35 14l-142 142q-14 14 -14 35t14 35l77 77zM50 300h1000q21 0 35.5 -14.5 t14.5 -35.5v-250h-1100v250q0 21 14.5 35.5t35.5 14.5zM900 200v-50h100v50h-100z" />
-<glyph unicode="&#xe171;" d="M1200 103l-483 276l-314 -399v423h-399l1196 796v-1096zM483 424v-230l683 953z" />
-<glyph unicode="&#xe172;" d="M1100 1000v-850q0 -21 -14.5 -35.5t-35.5 -14.5h-150v400h-700v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200z" />
-<glyph unicode="&#xe173;" d="M1100 1000l-2 -149l-299 -299l-95 95q-9 9 -21.5 9t-21.5 -9l-149 -147h-312v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1132 638l106 -106q7 -7 7 -17.5t-7 -17.5l-420 -421q-8 -7 -18 -7 t-18 7l-202 203q-8 7 -8 17.5t8 17.5l106 106q7 8 17.5 8t17.5 -8l79 -79l297 297q7 7 17.5 7t17.5 -7z" />
-<glyph unicode="&#xe174;" d="M1100 1000v-269l-103 -103l-134 134q-15 15 -33.5 16.5t-34.5 -12.5l-266 -266h-329v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM1202 572l70 -70q15 -15 15 -35.5t-15 -35.5l-131 -131 l131 -131q15 -15 15 -35.5t-15 -35.5l-70 -70q-15 -15 -35.5 -15t-35.5 15l-131 131l-131 -131q-15 -15 -35.5 -15t-35.5 15l-70 70q-15 15 -15 35.5t15 35.5l131 131l-131 131q-15 15 -15 35.5t15 35.5l70 70q15 15 35.5 15t35.5 -15l131 -131l131 131q15 15 35.5 15 t35.5 -15z" />
-<glyph unicode="&#xe175;" d="M1100 1000v-300h-350q-21 0 -35.5 -14.5t-14.5 -35.5v-150h-500v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM850 600h100q21 0 35.5 -14.5t14.5 -35.5v-250h150q21 0 25 -10.5t-10 -24.5 l-230 -230q-14 -14 -35 -14t-35 14l-230 230q-14 14 -10 24.5t25 10.5h150v250q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe176;" d="M1100 1000v-400l-165 165q-14 15 -35 15t-35 -15l-263 -265h-402v-400h-150q-21 0 -35.5 14.5t-14.5 35.5v1000q0 20 14.5 35t35.5 15h250v-300h500v300h100zM700 1000h-100v200h100v-200zM935 565l230 -229q14 -15 10 -25.5t-25 -10.5h-150v-250q0 -20 -14.5 -35 t-35.5 -15h-100q-21 0 -35.5 15t-14.5 35v250h-150q-21 0 -25 10.5t10 25.5l230 229q14 15 35 15t35 -15z" />
-<glyph unicode="&#xe177;" d="M50 1100h1100q21 0 35.5 -14.5t14.5 -35.5v-150h-1200v150q0 21 14.5 35.5t35.5 14.5zM1200 800v-550q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v550h1200zM100 500v-200h400v200h-400z" />
-<glyph unicode="&#xe178;" d="M935 1165l248 -230q14 -14 14 -35t-14 -35l-248 -230q-14 -14 -24.5 -10t-10.5 25v150h-400v200h400v150q0 21 10.5 25t24.5 -10zM200 800h-50q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v-200zM400 800h-100v200h100v-200zM18 435l247 230 q14 14 24.5 10t10.5 -25v-150h400v-200h-400v-150q0 -21 -10.5 -25t-24.5 10l-247 230q-15 14 -15 35t15 35zM900 300h-100v200h100v-200zM1000 500h51q20 0 34.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-34.5 -14.5h-51v200z" />
-<glyph unicode="&#xe179;" d="M862 1073l276 116q25 18 43.5 8t18.5 -41v-1106q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v397q-4 1 -11 5t-24 17.5t-30 29t-24 42t-11 56.5v359q0 31 18.5 65t43.5 52zM550 1200q22 0 34.5 -12.5t14.5 -24.5l1 -13v-450q0 -28 -10.5 -59.5 t-25 -56t-29 -45t-25.5 -31.5l-10 -11v-447q0 -21 -14.5 -35.5t-35.5 -14.5h-200q-21 0 -35.5 14.5t-14.5 35.5v447q-4 4 -11 11.5t-24 30.5t-30 46t-24 55t-11 60v450q0 2 0.5 5.5t4 12t8.5 15t14.5 12t22.5 5.5q20 0 32.5 -12.5t14.5 -24.5l3 -13v-350h100v350v5.5t2.5 12 t7 15t15 12t25.5 5.5q23 0 35.5 -12.5t13.5 -24.5l1 -13v-350h100v350q0 2 0.5 5.5t3 12t7 15t15 12t24.5 5.5z" />
-<glyph unicode="&#xe180;" d="M1200 1100v-56q-4 0 -11 -0.5t-24 -3t-30 -7.5t-24 -15t-11 -24v-888q0 -22 25 -34.5t50 -13.5l25 -2v-56h-400v56q75 0 87.5 6.5t12.5 43.5v394h-500v-394q0 -37 12.5 -43.5t87.5 -6.5v-56h-400v56q4 0 11 0.5t24 3t30 7.5t24 15t11 24v888q0 22 -25 34.5t-50 13.5 l-25 2v56h400v-56q-75 0 -87.5 -6.5t-12.5 -43.5v-394h500v394q0 37 -12.5 43.5t-87.5 6.5v56h400z" />
-<glyph unicode="&#xe181;" d="M675 1000h375q21 0 35.5 -14.5t14.5 -35.5v-150h-105l-295 -98v98l-200 200h-400l100 100h375zM100 900h300q41 0 70.5 -29.5t29.5 -70.5v-500q0 -41 -29.5 -70.5t-70.5 -29.5h-300q-41 0 -70.5 29.5t-29.5 70.5v500q0 41 29.5 70.5t70.5 29.5zM100 800v-200h300v200 h-300zM1100 535l-400 -133v163l400 133v-163zM100 500v-200h300v200h-300zM1100 398v-248q0 -21 -14.5 -35.5t-35.5 -14.5h-375l-100 -100h-375l-100 100h400l200 200h105z" />
-<glyph unicode="&#xe182;" d="M17 1007l162 162q17 17 40 14t37 -22l139 -194q14 -20 11 -44.5t-20 -41.5l-119 -118q102 -142 228 -268t267 -227l119 118q17 17 42.5 19t44.5 -12l192 -136q19 -14 22.5 -37.5t-13.5 -40.5l-163 -162q-3 -1 -9.5 -1t-29.5 2t-47.5 6t-62.5 14.5t-77.5 26.5t-90 42.5 t-101.5 60t-111 83t-119 108.5q-74 74 -133.5 150.5t-94.5 138.5t-60 119.5t-34.5 100t-15 74.5t-4.5 48z" />
-<glyph unicode="&#xe183;" d="M600 1100q92 0 175 -10.5t141.5 -27t108.5 -36.5t81.5 -40t53.5 -37t31 -27l9 -10v-200q0 -21 -14.5 -33t-34.5 -9l-202 34q-20 3 -34.5 20t-14.5 38v146q-141 24 -300 24t-300 -24v-146q0 -21 -14.5 -38t-34.5 -20l-202 -34q-20 -3 -34.5 9t-14.5 33v200q3 4 9.5 10.5 t31 26t54 37.5t80.5 39.5t109 37.5t141 26.5t175 10.5zM600 795q56 0 97 -9.5t60 -23.5t30 -28t12 -24l1 -10v-50l365 -303q14 -15 24.5 -40t10.5 -45v-212q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v212q0 20 10.5 45t24.5 40l365 303v50 q0 4 1 10.5t12 23t30 29t60 22.5t97 10z" />
-<glyph unicode="&#xe184;" d="M1100 700l-200 -200h-600l-200 200v500h200v-200h200v200h200v-200h200v200h200v-500zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5 t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe185;" d="M700 1100h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-1000h300v1000q0 41 -29.5 70.5t-70.5 29.5zM1100 800h-100q-41 0 -70.5 -29.5t-29.5 -70.5v-700h300v700q0 41 -29.5 70.5t-70.5 29.5zM400 0h-300v400q0 41 29.5 70.5t70.5 29.5h100q41 0 70.5 -29.5t29.5 -70.5v-400z " />
-<glyph unicode="&#xe186;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe187;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 300h-100v200h-100v-200h-100v500h100v-200h100v200h100v-500zM900 700v-300l-100 -100h-200v500h200z M700 700v-300h100v300h-100z" />
-<glyph unicode="&#xe188;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-300h200v-100h-300v500h300v-100zM900 700h-200v-300h200v-100h-300v500h300v-100z" />
-<glyph unicode="&#xe189;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 400l-300 150l300 150v-300zM900 550l-300 -150v300z" />
-<glyph unicode="&#xe190;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM900 300h-700v500h700v-500zM800 700h-130q-38 0 -66.5 -43t-28.5 -108t27 -107t68 -42h130v300zM300 700v-300 h130q41 0 68 42t27 107t-28.5 108t-66.5 43h-130z" />
-<glyph unicode="&#xe191;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 700h-200v-100h200v-300h-300v100h200v100h-200v300h300v-100zM900 300h-100v400h-100v100h200v-500z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe192;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM300 700h200v-400h-300v500h100v-100zM900 300h-100v400h-100v100h200v-500zM300 600v-200h100v200h-100z M700 300h-100v100h100v-100z" />
-<glyph unicode="&#xe193;" d="M200 1100h700q124 0 212 -88t88 -212v-500q0 -124 -88 -212t-212 -88h-700q-124 0 -212 88t-88 212v500q0 124 88 212t212 88zM100 900v-700h900v700h-900zM500 500l-199 -200h-100v50l199 200v150h-200v100h300v-300zM900 300h-100v400h-100v100h200v-500zM701 300h-100 v100h100v-100z" />
-<glyph unicode="&#xe194;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700h-300v-200h300v-100h-300l-100 100v200l100 100h300v-100z" />
-<glyph unicode="&#xe195;" d="M600 1191q120 0 229.5 -47t188.5 -126t126 -188.5t47 -229.5t-47 -229.5t-126 -188.5t-188.5 -126t-229.5 -47t-229.5 47t-188.5 126t-126 188.5t-47 229.5t47 229.5t126 188.5t188.5 126t229.5 47zM600 1021q-114 0 -211 -56.5t-153.5 -153.5t-56.5 -211t56.5 -211 t153.5 -153.5t211 -56.5t211 56.5t153.5 153.5t56.5 211t-56.5 211t-153.5 153.5t-211 56.5zM800 700v-100l-50 -50l100 -100v-50h-100l-100 100h-150v-100h-100v400h300zM500 700v-100h200v100h-200z" />
-<glyph unicode="&#xe197;" d="M503 1089q110 0 200.5 -59.5t134.5 -156.5q44 14 90 14q120 0 205 -86.5t85 -207t-85 -207t-205 -86.5h-128v250q0 21 -14.5 35.5t-35.5 14.5h-300q-21 0 -35.5 -14.5t-14.5 -35.5v-250h-222q-80 0 -136 57.5t-56 136.5q0 69 43 122.5t108 67.5q-2 19 -2 37q0 100 49 185 t134 134t185 49zM525 500h150q10 0 17.5 -7.5t7.5 -17.5v-275h137q21 0 26 -11.5t-8 -27.5l-223 -244q-13 -16 -32 -16t-32 16l-223 244q-13 16 -8 27.5t26 11.5h137v275q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe198;" d="M502 1089q110 0 201 -59.5t135 -156.5q43 15 89 15q121 0 206 -86.5t86 -206.5q0 -99 -60 -181t-150 -110l-378 360q-13 16 -31.5 16t-31.5 -16l-381 -365h-9q-79 0 -135.5 57.5t-56.5 136.5q0 69 43 122.5t108 67.5q-2 19 -2 38q0 100 49 184.5t133.5 134t184.5 49.5z M632 467l223 -228q13 -16 8 -27.5t-26 -11.5h-137v-275q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v275h-137q-21 0 -26 11.5t8 27.5q199 204 223 228q19 19 31.5 19t32.5 -19z" />
-<glyph unicode="&#xe199;" d="M700 100v100h400l-270 300h170l-270 300h170l-300 333l-300 -333h170l-270 -300h170l-270 -300h400v-100h-50q-21 0 -35.5 -14.5t-14.5 -35.5v-50h400v50q0 21 -14.5 35.5t-35.5 14.5h-50z" />
-<glyph unicode="&#xe200;" d="M600 1179q94 0 167.5 -56.5t99.5 -145.5q89 -6 150.5 -71.5t61.5 -155.5q0 -61 -29.5 -112.5t-79.5 -82.5q9 -29 9 -55q0 -74 -52.5 -126.5t-126.5 -52.5q-55 0 -100 30v-251q21 0 35.5 -14.5t14.5 -35.5v-50h-300v50q0 21 14.5 35.5t35.5 14.5v251q-45 -30 -100 -30 q-74 0 -126.5 52.5t-52.5 126.5q0 18 4 38q-47 21 -75.5 65t-28.5 97q0 74 52.5 126.5t126.5 52.5q5 0 23 -2q0 2 -1 10t-1 13q0 116 81.5 197.5t197.5 81.5z" />
-<glyph unicode="&#xe201;" d="M1010 1010q111 -111 150.5 -260.5t0 -299t-150.5 -260.5q-83 -83 -191.5 -126.5t-218.5 -43.5t-218.5 43.5t-191.5 126.5q-111 111 -150.5 260.5t0 299t150.5 260.5q83 83 191.5 126.5t218.5 43.5t218.5 -43.5t191.5 -126.5zM476 1065q-4 0 -8 -1q-121 -34 -209.5 -122.5 t-122.5 -209.5q-4 -12 2.5 -23t18.5 -14l36 -9q3 -1 7 -1q23 0 29 22q27 96 98 166q70 71 166 98q11 3 17.5 13.5t3.5 22.5l-9 35q-3 13 -14 19q-7 4 -15 4zM512 920q-4 0 -9 -2q-80 -24 -138.5 -82.5t-82.5 -138.5q-4 -13 2 -24t19 -14l34 -9q4 -1 8 -1q22 0 28 21 q18 58 58.5 98.5t97.5 58.5q12 3 18 13.5t3 21.5l-9 35q-3 12 -14 19q-7 4 -15 4zM719.5 719.5q-49.5 49.5 -119.5 49.5t-119.5 -49.5t-49.5 -119.5t49.5 -119.5t119.5 -49.5t119.5 49.5t49.5 119.5t-49.5 119.5zM855 551q-22 0 -28 -21q-18 -58 -58.5 -98.5t-98.5 -57.5 q-11 -4 -17 -14.5t-3 -21.5l9 -35q3 -12 14 -19q7 -4 15 -4q4 0 9 2q80 24 138.5 82.5t82.5 138.5q4 13 -2.5 24t-18.5 14l-34 9q-4 1 -8 1zM1000 515q-23 0 -29 -22q-27 -96 -98 -166q-70 -71 -166 -98q-11 -3 -17.5 -13.5t-3.5 -22.5l9 -35q3 -13 14 -19q7 -4 15 -4 q4 0 8 1q121 34 209.5 122.5t122.5 209.5q4 12 -2.5 23t-18.5 14l-36 9q-3 1 -7 1z" />
-<glyph unicode="&#xe202;" d="M700 800h300v-380h-180v200h-340v-200h-380v755q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM700 300h162l-212 -212l-212 212h162v200h100v-200zM520 0h-395q-10 0 -17.5 7.5t-7.5 17.5v395zM1000 220v-195q0 -10 -7.5 -17.5t-17.5 -7.5h-195z" />
-<glyph unicode="&#xe203;" d="M700 800h300v-520l-350 350l-550 -550v1095q0 10 7.5 17.5t17.5 7.5h575v-400zM1000 900h-200v200zM862 200h-162v-200h-100v200h-162l212 212zM480 0h-355q-10 0 -17.5 7.5t-7.5 17.5v55h380v-80zM1000 80v-55q0 -10 -7.5 -17.5t-17.5 -7.5h-155v80h180z" />
-<glyph unicode="&#xe204;" d="M1162 800h-162v-200h100l100 -100h-300v300h-162l212 212zM200 800h200q27 0 40 -2t29.5 -10.5t23.5 -30t7 -57.5h300v-100h-600l-200 -350v450h100q0 36 7 57.5t23.5 30t29.5 10.5t40 2zM800 400h240l-240 -400h-800l300 500h500v-100z" />
-<glyph unicode="&#xe205;" d="M650 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM1000 850v150q41 0 70.5 -29.5t29.5 -70.5v-800 q0 -41 -29.5 -70.5t-70.5 -29.5h-600q-1 0 -20 4l246 246l-326 326v324q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM412 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe206;" d="M450 1100h100q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-300q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h50v50q0 21 14.5 35.5t35.5 14.5zM800 850v150q41 0 70.5 -29.5t29.5 -70.5v-500 h-200v-300h200q0 -36 -7 -57.5t-23.5 -30t-29.5 -10.5t-40 -2h-600q-41 0 -70.5 29.5t-29.5 70.5v800q0 41 29.5 70.5t70.5 29.5v-150q0 -62 44 -106t106 -44h300q62 0 106 44t44 106zM1212 250l-212 -212v162h-200v100h200v162z" />
-<glyph unicode="&#xe209;" d="M658 1197l637 -1104q23 -38 7 -65.5t-60 -27.5h-1276q-44 0 -60 27.5t7 65.5l637 1104q22 39 54 39t54 -39zM704 800h-208q-20 0 -32 -14.5t-8 -34.5l58 -302q4 -20 21.5 -34.5t37.5 -14.5h54q20 0 37.5 14.5t21.5 34.5l58 302q4 20 -8 34.5t-32 14.5zM500 300v-100h200 v100h-200z" />
-<glyph unicode="&#xe210;" d="M425 1100h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM825 800h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM25 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5zM425 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 500h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5 v150q0 10 7.5 17.5t17.5 7.5zM25 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM425 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5 t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM825 200h250q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-250q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe211;" d="M700 1200h100v-200h-100v-100h350q62 0 86.5 -39.5t-3.5 -94.5l-66 -132q-41 -83 -81 -134h-772q-40 51 -81 134l-66 132q-28 55 -3.5 94.5t86.5 39.5h350v100h-100v200h100v100h200v-100zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-12l137 -100 h-950l138 100h-13q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe212;" d="M600 1300q40 0 68.5 -29.5t28.5 -70.5h-194q0 41 28.5 70.5t68.5 29.5zM443 1100h314q18 -37 18 -75q0 -8 -3 -25h328q41 0 44.5 -16.5t-30.5 -38.5l-175 -145h-678l-178 145q-34 22 -29 38.5t46 16.5h328q-3 17 -3 25q0 38 18 75zM250 700h700q21 0 35.5 -14.5 t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-150v-200l275 -200h-950l275 200v200h-150q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe213;" d="M600 1181q75 0 128 -53t53 -128t-53 -128t-128 -53t-128 53t-53 128t53 128t128 53zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13 l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe214;" d="M600 1300q47 0 92.5 -53.5t71 -123t25.5 -123.5q0 -78 -55.5 -133.5t-133.5 -55.5t-133.5 55.5t-55.5 133.5q0 62 34 143l144 -143l111 111l-163 163q34 26 63 26zM602 798h46q34 0 55.5 -28.5t21.5 -86.5q0 -76 39 -183h-324q39 107 39 183q0 58 21.5 86.5t56.5 28.5h45 zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe215;" d="M600 1200l300 -161v-139h-300q0 -57 18.5 -108t50 -91.5t63 -72t70 -67.5t57.5 -61h-530q-60 83 -90.5 177.5t-30.5 178.5t33 164.5t87.5 139.5t126 96.5t145.5 41.5v-98zM250 400h700q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-13l138 -100h-950l137 100 h-12q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5zM50 100h1100q21 0 35.5 -14.5t14.5 -35.5v-50h-1200v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe216;" d="M600 1300q41 0 70.5 -29.5t29.5 -70.5v-78q46 -26 73 -72t27 -100v-50h-400v50q0 54 27 100t73 72v78q0 41 29.5 70.5t70.5 29.5zM400 800h400q54 0 100 -27t72 -73h-172v-100h200v-100h-200v-100h200v-100h-200v-100h200q0 -83 -58.5 -141.5t-141.5 -58.5h-400 q-83 0 -141.5 58.5t-58.5 141.5v400q0 83 58.5 141.5t141.5 58.5z" />
-<glyph unicode="&#xe218;" d="M150 1100h900q21 0 35.5 -14.5t14.5 -35.5v-500q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v500q0 21 14.5 35.5t35.5 14.5zM125 400h950q10 0 17.5 -7.5t7.5 -17.5v-50q0 -10 -7.5 -17.5t-17.5 -7.5h-283l224 -224q13 -13 13 -31.5t-13 -32 t-31.5 -13.5t-31.5 13l-88 88h-524l-87 -88q-13 -13 -32 -13t-32 13.5t-13 32t13 31.5l224 224h-289q-10 0 -17.5 7.5t-7.5 17.5v50q0 10 7.5 17.5t17.5 7.5zM541 300l-100 -100h324l-100 100h-124z" />
-<glyph unicode="&#xe219;" d="M200 1100h800q83 0 141.5 -58.5t58.5 -141.5v-200h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100q0 41 -29.5 70.5t-70.5 29.5h-250q-41 0 -70.5 -29.5t-29.5 -70.5h-100v200q0 83 58.5 141.5t141.5 58.5zM100 600h1000q41 0 70.5 -29.5 t29.5 -70.5v-300h-1200v300q0 41 29.5 70.5t70.5 29.5zM300 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200zM1100 100v-50q0 -21 -14.5 -35.5t-35.5 -14.5h-100q-21 0 -35.5 14.5t-14.5 35.5v50h200z" />
-<glyph unicode="&#xe221;" d="M480 1165l682 -683q31 -31 31 -75.5t-31 -75.5l-131 -131h-481l-517 518q-32 31 -32 75.5t32 75.5l295 296q31 31 75.5 31t76.5 -31zM108 794l342 -342l303 304l-341 341zM250 100h800q21 0 35.5 -14.5t14.5 -35.5v-50h-900v50q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe223;" d="M1057 647l-189 506q-8 19 -27.5 33t-40.5 14h-400q-21 0 -40.5 -14t-27.5 -33l-189 -506q-8 -19 1.5 -33t30.5 -14h625v-150q0 -21 14.5 -35.5t35.5 -14.5t35.5 14.5t14.5 35.5v150h125q21 0 30.5 14t1.5 33zM897 0h-595v50q0 21 14.5 35.5t35.5 14.5h50v50 q0 21 14.5 35.5t35.5 14.5h48v300h200v-300h47q21 0 35.5 -14.5t14.5 -35.5v-50h50q21 0 35.5 -14.5t14.5 -35.5v-50z" />
-<glyph unicode="&#xe224;" d="M900 800h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-375v591l-300 300v84q0 10 7.5 17.5t17.5 7.5h375v-400zM1200 900h-200v200zM400 600h300v-575q0 -10 -7.5 -17.5t-17.5 -7.5h-650q-10 0 -17.5 7.5t-7.5 17.5v950q0 10 7.5 17.5t17.5 7.5h375v-400zM700 700h-200v200z " />
-<glyph unicode="&#xe225;" d="M484 1095h195q75 0 146 -32.5t124 -86t89.5 -122.5t48.5 -142q18 -14 35 -20q31 -10 64.5 6.5t43.5 48.5q10 34 -15 71q-19 27 -9 43q5 8 12.5 11t19 -1t23.5 -16q41 -44 39 -105q-3 -63 -46 -106.5t-104 -43.5h-62q-7 -55 -35 -117t-56 -100l-39 -234q-3 -20 -20 -34.5 t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l12 70q-49 -14 -91 -14h-195q-24 0 -65 8l-11 -64q-3 -20 -20 -34.5t-38 -14.5h-100q-21 0 -33 14.5t-9 34.5l26 157q-84 74 -128 175l-159 53q-19 7 -33 26t-14 40v50q0 21 14.5 35.5t35.5 14.5h124q11 87 56 166l-111 95 q-16 14 -12.5 23.5t24.5 9.5h203q116 101 250 101zM675 1000h-250q-10 0 -17.5 -7.5t-7.5 -17.5v-50q0 -10 7.5 -17.5t17.5 -7.5h250q10 0 17.5 7.5t7.5 17.5v50q0 10 -7.5 17.5t-17.5 7.5z" />
-<glyph unicode="&#xe226;" d="M641 900l423 247q19 8 42 2.5t37 -21.5l32 -38q14 -15 12.5 -36t-17.5 -34l-139 -120h-390zM50 1100h106q67 0 103 -17t66 -71l102 -212h823q21 0 35.5 -14.5t14.5 -35.5v-50q0 -21 -14 -40t-33 -26l-737 -132q-23 -4 -40 6t-26 25q-42 67 -100 67h-300q-62 0 -106 44 t-44 106v200q0 62 44 106t106 44zM173 928h-80q-19 0 -28 -14t-9 -35v-56q0 -51 42 -51h134q16 0 21.5 8t5.5 24q0 11 -16 45t-27 51q-18 28 -43 28zM550 727q-32 0 -54.5 -22.5t-22.5 -54.5t22.5 -54.5t54.5 -22.5t54.5 22.5t22.5 54.5t-22.5 54.5t-54.5 22.5zM130 389 l152 130q18 19 34 24t31 -3.5t24.5 -17.5t25.5 -28q28 -35 50.5 -51t48.5 -13l63 5l48 -179q13 -61 -3.5 -97.5t-67.5 -79.5l-80 -69q-47 -40 -109 -35.5t-103 51.5l-130 151q-40 47 -35.5 109.5t51.5 102.5zM380 377l-102 -88q-31 -27 2 -65l37 -43q13 -15 27.5 -19.5 t31.5 6.5l61 53q19 16 14 49q-2 20 -12 56t-17 45q-11 12 -19 14t-23 -8z" />
-<glyph unicode="&#xe227;" d="M625 1200h150q10 0 17.5 -7.5t7.5 -17.5v-109q79 -33 131 -87.5t53 -128.5q1 -46 -15 -84.5t-39 -61t-46 -38t-39 -21.5l-17 -6q6 0 15 -1.5t35 -9t50 -17.5t53 -30t50 -45t35.5 -64t14.5 -84q0 -59 -11.5 -105.5t-28.5 -76.5t-44 -51t-49.5 -31.5t-54.5 -16t-49.5 -6.5 t-43.5 -1v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-100v-75q0 -10 -7.5 -17.5t-17.5 -7.5h-150q-10 0 -17.5 7.5t-7.5 17.5v75h-175q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5h75v600h-75q-10 0 -17.5 7.5t-7.5 17.5v150 q0 10 7.5 17.5t17.5 7.5h175v75q0 10 7.5 17.5t17.5 7.5h150q10 0 17.5 -7.5t7.5 -17.5v-75h100v75q0 10 7.5 17.5t17.5 7.5zM400 900v-200h263q28 0 48.5 10.5t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-263zM400 500v-200h363q28 0 48.5 10.5 t30 25t15 29t5.5 25.5l1 10q0 4 -0.5 11t-6 24t-15 30t-30 24t-48.5 11h-363z" />
-<glyph unicode="&#xe230;" d="M212 1198h780q86 0 147 -61t61 -147v-416q0 -51 -18 -142.5t-36 -157.5l-18 -66q-29 -87 -93.5 -146.5t-146.5 -59.5h-572q-82 0 -147 59t-93 147q-8 28 -20 73t-32 143.5t-20 149.5v416q0 86 61 147t147 61zM600 1045q-70 0 -132.5 -11.5t-105.5 -30.5t-78.5 -41.5 t-57 -45t-36 -41t-20.5 -30.5l-6 -12l156 -243h560l156 243q-2 5 -6 12.5t-20 29.5t-36.5 42t-57 44.5t-79 42t-105 29.5t-132.5 12zM762 703h-157l195 261z" />
-<glyph unicode="&#xe231;" d="M475 1300h150q103 0 189 -86t86 -189v-500q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe232;" d="M475 1300h96q0 -150 89.5 -239.5t239.5 -89.5v-446q0 -41 -42 -83t-83 -42h-450q-41 0 -83 42t-42 83v500q0 103 86 189t189 86zM700 300v-225q0 -21 -27 -48t-48 -27h-150q-21 0 -48 27t-27 48v225h300z" />
-<glyph unicode="&#xe233;" d="M1294 767l-638 -283l-378 170l-78 -60v-224l100 -150v-199l-150 148l-150 -149v200l100 150v250q0 4 -0.5 10.5t0 9.5t1 8t3 8t6.5 6l47 40l-147 65l642 283zM1000 380l-350 -166l-350 166v147l350 -165l350 165v-147z" />
-<glyph unicode="&#xe234;" d="M250 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM650 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM1050 800q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe235;" d="M550 1100q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 700q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44zM550 300q62 0 106 -44t44 -106t-44 -106t-106 -44t-106 44t-44 106t44 106t106 44z" />
-<glyph unicode="&#xe236;" d="M125 1100h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5zM125 700h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5 t17.5 7.5zM125 300h950q10 0 17.5 -7.5t7.5 -17.5v-150q0 -10 -7.5 -17.5t-17.5 -7.5h-950q-10 0 -17.5 7.5t-7.5 17.5v150q0 10 7.5 17.5t17.5 7.5z" />
-<glyph unicode="&#xe237;" d="M350 1200h500q162 0 256 -93.5t94 -256.5v-500q0 -165 -93.5 -257.5t-256.5 -92.5h-500q-165 0 -257.5 92.5t-92.5 257.5v500q0 165 92.5 257.5t257.5 92.5zM900 1000h-600q-41 0 -70.5 -29.5t-29.5 -70.5v-600q0 -41 29.5 -70.5t70.5 -29.5h600q41 0 70.5 29.5 t29.5 70.5v600q0 41 -29.5 70.5t-70.5 29.5zM350 900h500q21 0 35.5 -14.5t14.5 -35.5v-300q0 -21 -14.5 -35.5t-35.5 -14.5h-500q-21 0 -35.5 14.5t-14.5 35.5v300q0 21 14.5 35.5t35.5 14.5zM400 800v-200h400v200h-400z" />
-<glyph unicode="&#xe238;" d="M150 1100h1000q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5t-35.5 -14.5h-50v-200h50q21 0 35.5 -14.5t14.5 -35.5t-14.5 -35.5 t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5h50v200h-50q-21 0 -35.5 14.5t-14.5 35.5t14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe239;" d="M650 1187q87 -67 118.5 -156t0 -178t-118.5 -155q-87 66 -118.5 155t0 178t118.5 156zM300 800q124 0 212 -88t88 -212q-124 0 -212 88t-88 212zM1000 800q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM300 500q124 0 212 -88t88 -212q-124 0 -212 88t-88 212z M1000 500q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM700 199v-144q0 -21 -14.5 -35.5t-35.5 -14.5t-35.5 14.5t-14.5 35.5v142q40 -4 43 -4q17 0 57 6z" />
-<glyph unicode="&#xe240;" d="M745 878l69 19q25 6 45 -12l298 -295q11 -11 15 -26.5t-2 -30.5q-5 -14 -18 -23.5t-28 -9.5h-8q1 0 1 -13q0 -29 -2 -56t-8.5 -62t-20 -63t-33 -53t-51 -39t-72.5 -14h-146q-184 0 -184 288q0 24 10 47q-20 4 -62 4t-63 -4q11 -24 11 -47q0 -288 -184 -288h-142 q-48 0 -84.5 21t-56 51t-32 71.5t-16 75t-3.5 68.5q0 13 2 13h-7q-15 0 -27.5 9.5t-18.5 23.5q-6 15 -2 30.5t15 25.5l298 296q20 18 46 11l76 -19q20 -5 30.5 -22.5t5.5 -37.5t-22.5 -31t-37.5 -5l-51 12l-182 -193h891l-182 193l-44 -12q-20 -5 -37.5 6t-22.5 31t6 37.5 t31 22.5z" />
-<glyph unicode="&#xe241;" d="M1200 900h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-200v-850q0 -22 25 -34.5t50 -13.5l25 -2v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v850h-200q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h1000v-300zM500 450h-25q0 15 -4 24.5t-9 14.5t-17 7.5t-20 3t-25 0.5h-100v-425q0 -11 12.5 -17.5t25.5 -7.5h12v-50h-200v50q50 0 50 25v425h-100q-17 0 -25 -0.5t-20 -3t-17 -7.5t-9 -14.5t-4 -24.5h-25v150h500v-150z" />
-<glyph unicode="&#xe242;" d="M1000 300v50q-25 0 -55 32q-14 14 -25 31t-16 27l-4 11l-289 747h-69l-300 -754q-18 -35 -39 -56q-9 -9 -24.5 -18.5t-26.5 -14.5l-11 -5v-50h273v50q-49 0 -78.5 21.5t-11.5 67.5l69 176h293l61 -166q13 -34 -3.5 -66.5t-55.5 -32.5v-50h312zM412 691l134 342l121 -342 h-255zM1100 150v-100q0 -21 -14.5 -35.5t-35.5 -14.5h-1000q-21 0 -35.5 14.5t-14.5 35.5v100q0 21 14.5 35.5t35.5 14.5h1000q21 0 35.5 -14.5t14.5 -35.5z" />
-<glyph unicode="&#xe243;" d="M50 1200h1100q21 0 35.5 -14.5t14.5 -35.5v-1100q0 -21 -14.5 -35.5t-35.5 -14.5h-1100q-21 0 -35.5 14.5t-14.5 35.5v1100q0 21 14.5 35.5t35.5 14.5zM611 1118h-70q-13 0 -18 -12l-299 -753q-17 -32 -35 -51q-18 -18 -56 -34q-12 -5 -12 -18v-50q0 -8 5.5 -14t14.5 -6 h273q8 0 14 6t6 14v50q0 8 -6 14t-14 6q-55 0 -71 23q-10 14 0 39l63 163h266l57 -153q11 -31 -6 -55q-12 -17 -36 -17q-8 0 -14 -6t-6 -14v-50q0 -8 6 -14t14 -6h313q8 0 14 6t6 14v50q0 7 -5.5 13t-13.5 7q-17 0 -42 25q-25 27 -40 63h-1l-288 748q-5 12 -19 12zM639 611 h-197l103 264z" />
-<glyph unicode="&#xe244;" d="M1200 1100h-1200v100h1200v-100zM50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 1000h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM700 900v-300h300v300h-300z" />
-<glyph unicode="&#xe245;" d="M50 1200h400q21 0 35.5 -14.5t14.5 -35.5v-900q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v900q0 21 14.5 35.5t35.5 14.5zM650 700h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400 q0 21 14.5 35.5t35.5 14.5zM700 600v-300h300v300h-300zM1200 0h-1200v100h1200v-100z" />
-<glyph unicode="&#xe246;" d="M50 1000h400q21 0 35.5 -14.5t14.5 -35.5v-350h100v150q0 21 14.5 35.5t35.5 14.5h400q21 0 35.5 -14.5t14.5 -35.5v-150h100v-100h-100v-150q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v150h-100v-350q0 -21 -14.5 -35.5t-35.5 -14.5h-400 q-21 0 -35.5 14.5t-14.5 35.5v800q0 21 14.5 35.5t35.5 14.5zM700 700v-300h300v300h-300z" />
-<glyph unicode="&#xe247;" d="M100 0h-100v1200h100v-1200zM250 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM300 1000v-300h300v300h-300zM250 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe248;" d="M600 1100h150q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-100h450q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h350v100h-150q-21 0 -35.5 14.5 t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5h150v100h100v-100zM400 1000v-300h300v300h-300z" />
-<glyph unicode="&#xe249;" d="M1200 0h-100v1200h100v-1200zM550 1100h400q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-400q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM600 1000v-300h300v300h-300zM50 500h900q21 0 35.5 -14.5t14.5 -35.5v-400 q0 -21 -14.5 -35.5t-35.5 -14.5h-900q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5z" />
-<glyph unicode="&#xe250;" d="M865 565l-494 -494q-23 -23 -41 -23q-14 0 -22 13.5t-8 38.5v1000q0 25 8 38.5t22 13.5q18 0 41 -23l494 -494q14 -14 14 -35t-14 -35z" />
-<glyph unicode="&#xe251;" d="M335 635l494 494q29 29 50 20.5t21 -49.5v-1000q0 -41 -21 -49.5t-50 20.5l-494 494q-14 14 -14 35t14 35z" />
-<glyph unicode="&#xe252;" d="M100 900h1000q41 0 49.5 -21t-20.5 -50l-494 -494q-14 -14 -35 -14t-35 14l-494 494q-29 29 -20.5 50t49.5 21z" />
-<glyph unicode="&#xe253;" d="M635 865l494 -494q29 -29 20.5 -50t-49.5 -21h-1000q-41 0 -49.5 21t20.5 50l494 494q14 14 35 14t35 -14z" />
-<glyph unicode="&#xe254;" d="M700 741v-182l-692 -323v221l413 193l-413 193v221zM1200 0h-800v200h800v-200z" />
-<glyph unicode="&#xe255;" d="M1200 900h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300zM0 700h50q0 21 4 37t9.5 26.5t18 17.5t22 11t28.5 5.5t31 2t37 0.5h100v-550q0 -22 -25 -34.5t-50 -13.5l-25 -2v-100h400v100q-4 0 -11 0.5t-24 3t-30 7t-24 15t-11 24.5v550h100q25 0 37 -0.5t31 -2 t28.5 -5.5t22 -11t18 -17.5t9.5 -26.5t4 -37h50v300h-800v-300z" />
-<glyph unicode="&#xe256;" d="M800 700h-50q0 21 -4 37t-9.5 26.5t-18 17.5t-22 11t-28.5 5.5t-31 2t-37 0.5h-100v-550q0 -22 25 -34.5t50 -14.5l25 -1v-100h-400v100q4 0 11 0.5t24 3t30 7t24 15t11 24.5v550h-100q-25 0 -37 -0.5t-31 -2t-28.5 -5.5t-22 -11t-18 -17.5t-9.5 -26.5t-4 -37h-50v300 h800v-300zM1100 200h-200v-100h200v-100h-300v300h200v100h-200v100h300v-300z" />
-<glyph unicode="&#xe257;" d="M701 1098h160q16 0 21 -11t-7 -23l-464 -464l464 -464q12 -12 7 -23t-21 -11h-160q-13 0 -23 9l-471 471q-7 8 -7 18t7 18l471 471q10 9 23 9z" />
-<glyph unicode="&#xe258;" d="M339 1098h160q13 0 23 -9l471 -471q7 -8 7 -18t-7 -18l-471 -471q-10 -9 -23 -9h-160q-16 0 -21 11t7 23l464 464l-464 464q-12 12 -7 23t21 11z" />
-<glyph unicode="&#xe259;" d="M1087 882q11 -5 11 -21v-160q0 -13 -9 -23l-471 -471q-8 -7 -18 -7t-18 7l-471 471q-9 10 -9 23v160q0 16 11 21t23 -7l464 -464l464 464q12 12 23 7z" />
-<glyph unicode="&#xe260;" d="M618 993l471 -471q9 -10 9 -23v-160q0 -16 -11 -21t-23 7l-464 464l-464 -464q-12 -12 -23 -7t-11 21v160q0 13 9 23l471 471q8 7 18 7t18 -7z" />
-<glyph unicode="&#xf8ff;" d="M1000 1200q0 -124 -88 -212t-212 -88q0 124 88 212t212 88zM450 1000h100q21 0 40 -14t26 -33l79 -194q5 1 16 3q34 6 54 9.5t60 7t65.5 1t61 -10t56.5 -23t42.5 -42t29 -64t5 -92t-19.5 -121.5q-1 -7 -3 -19.5t-11 -50t-20.5 -73t-32.5 -81.5t-46.5 -83t-64 -70 t-82.5 -50q-13 -5 -42 -5t-65.5 2.5t-47.5 2.5q-14 0 -49.5 -3.5t-63 -3.5t-43.5 7q-57 25 -104.5 78.5t-75 111.5t-46.5 112t-26 90l-7 35q-15 63 -18 115t4.5 88.5t26 64t39.5 43.5t52 25.5t58.5 13t62.5 2t59.5 -4.5t55.5 -8l-147 192q-12 18 -5.5 30t27.5 12z" />
-<glyph unicode="&#x1f511;" d="M250 1200h600q21 0 35.5 -14.5t14.5 -35.5v-400q0 -21 -14.5 -35.5t-35.5 -14.5h-150v-500l-255 -178q-19 -9 -32 -1t-13 29v650h-150q-21 0 -35.5 14.5t-14.5 35.5v400q0 21 14.5 35.5t35.5 14.5zM400 1100v-100h300v100h-300z" />
-<glyph unicode="&#x1f6aa;" d="M250 1200h750q39 0 69.5 -40.5t30.5 -84.5v-933l-700 -117v950l600 125h-700v-1000h-100v1025q0 23 15.5 49t34.5 26zM500 525v-100l100 20v100z" />
-</font>
-</defs></svg> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.ttf b/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.ttf
deleted file mode 100644
index 1413fc6..0000000
--- a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff b/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff
deleted file mode 100644
index 9e61285..0000000
--- a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff2 b/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff2
deleted file mode 100644
index 64539b5..0000000
--- a/common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff2
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/bower.json b/common/src/main/webapp/thirdparty/icheck/bower.json
deleted file mode 100644
index a2b8288..0000000
--- a/common/src/main/webapp/thirdparty/icheck/bower.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "iCheck",
- "version": "1.0.2",
- "description": "Highly customizable checkboxes and radio buttons (jQuery & Zepto)",
- "keywords": [
- "icheck",
- "checkbox",
- "radio",
- "input",
- "field",
- "form",
- "custom",
- "replacement",
- "accessibility",
- "skins",
- "ui",
- "checked",
- "disabled",
- "indeterminate"
- ],
- "main": [
- "./icheck.min.js"
- ],
- "dependencies": {
- "jquery": ">=1.7"
- },
- "ignore": [
- ".gitignore",
- "CHANGELOG.md",
- "README.md",
- "demo/"
- ],
- "license": "MIT",
- "authors": [
- {
- "name": "Damir Sultanov",
- "email": "info@fronteed.com",
- "homepage": "http://fronteed.com/"
- }
- ],
- "homepage": "http://fronteed.com/iCheck/"
-}
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/Thumbs.db b/common/src/main/webapp/thirdparty/icheck/demo/css/Thumbs.db
deleted file mode 100644
index fd773ef..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/Thumbs.db
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/banner.jpg b/common/src/main/webapp/thirdparty/icheck/demo/css/banner.jpg
deleted file mode 100644
index 64b8f14..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/banner.jpg
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/custom.css b/common/src/main/webapp/thirdparty/icheck/demo/css/custom.css
deleted file mode 100644
index e1ed3b1..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/custom.css
+++ /dev/null
@@ -1,261 +0,0 @@
-@import url("normalize.css");
-@font-face{font-family:'MontserratRegular';src:url("./montserrat-regular.eot");src:url("./montserrat-regular.eot?#iefix") format('embedded-opentype'),url("./montserrat-regular.woff") format('woff'),url("./montserrat-regular.ttf") format('truetype'),url("./montserrat-regular.svg#MontserratRegular") format('svg');font-style:normal;font-weight:normal}
-@font-face{font-family:'MontserratBold';src:url("./montserrat-bold.eot");src:url("./montserrat-bold.eot?#iefix") format('embedded-opentype'),url("./montserrat-bold.woff") format('woff'),url("./montserrat-bold.ttf") format('truetype'),url("./montserrat-bold.svg#MontserratBold") format('svg');font-style:normal;font-weight:bold}
-html,body{height:100%}
-body{font:14px/20px 'MontserratRegular',Helvetica,Arial,sans-serif;color:#222;background:#ebe7df url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAFZCAIAAAA96mnzAAACKklEQVR4Xn2VUW7kMAxD+QLf/1x7gv71LNwdKTLhZFtggMCwSVEUPdb3159/v0uSrM8HtGRZuoQk1R69J12o9ixJWvSnVyfLdbNw0XAXWe1fIL8BoqmNGiV/cHc9Gq4NXxLKHhteRyLpA28cl0SLdx0BckSWL4gkPlIVTg1nN9Ys3iyWI5AGDA5xOXB5BJaWmOw6KSLeU6+0P50QshQyEL2im/YMIL60dTSZ3RXenlkiJpMj8XPMAl1FtjMRW19NxzOE5VGWPVGrc7aSJgz1Y9ku57mpYSwn1h0ivFOXxoCKMCXiahbbZNIZR+tkphllPsomipCwb4GMkXTmPfVg40Jt2y4RQM/PqX5JTM4iiTN8Zz1XvbIAEEvoEW+3nxTLL3lB7t7J3WwyI7g5OVxKIeFEH4FIGLC9I+XqvSd4AxJM5O6WTPr54RAxLG44FVrEuz+kFdXyLiuX6kLPVLZL2ISlcHNlBIKm5rR8nEi9wJeA6Y8JZlJOyDiin0K5ag+AXHtALBicXasjIUu9h0STBbCMU+89gMnu/J05MU1QWqdbPMRPIZIzDgsi8Olg5t7wHhUg/pv5RUzO+BHDmczHkAfZWxlSYgNI5Ig5XRoc66dW9L45eHDkbkqCO7RLG5cna/HD7YhZnfINkFo8iNyj5kx6pFrxNGRlfhV2e1Zt5DnGU8T7Tud1ivi8jU8/3Zy88pkn6+zdXiJ7AVSFBZA3VcwDfXtt5UUHS38B35hQVuJip4MAAAAASUVORK5CYII=") repeat-x;*background-image:url("ie/header-line.png")}
-a{color:#222;text-decoration:none;border-bottom:1px solid #bbb;}
-a:hover{color:#000}
-a,.self{-webkit-transition:color .1s;-moz-transition:color .1s;-ms-transition:color .1s;-o-transition:color .1s;transition:color .1s}
-.self{color:#333;border-bottom:1px dotted #aaa;cursor:pointer;}
-.self:hover{color:#000}
-strong{font-family:'MontserratBold',Helvetica,Arial,sans-serif;font-weight:700}
-p{margin:0 0 8px}
-label{cursor:pointer}
-h1,h2,h3,h4{margin:0;font:bold 20px/60px 'MontserratBold',Helvetica,Arial,sans-serif}
-h2{height:60px;text-align:center;text-transform:uppercase}
-h4{font-size:18px;line-height:24px}
-ul{margin:0;padding:0;list-style:none}
-table{width:100%;margin-bottom:21px}
-th,td{padding:11px 20px 12px;vertical-align:top;font-weight:normal;text-align:left;border-bottom:2px solid #e7e5e0;}
-thead th,thead td{background:#f3f2ef}
-th{white-space:nowrap}
-td{width:100%}
-.focus{outline:1px dotted rgba(0,0,0,0.5) !important}
-.clear{position:relative;*zoom:1;}
-.clear:before,.clear:after{content:'';display:table;clear:both}
-.layout{width:930px;margin:0 auto;padding:0 15px}
-.header{padding:115px 0 73px;color:#fff;text-align:center;}
-.header h1,.header strong{letter-spacing:-1px;text-transform:uppercase}
-.header h1{padding-bottom:23px;font-size:22px;line-height:28px}
-.header h3{position:relative;padding:35px 0 17px;font-size:120px;line-height:140px;letter-spacing:-5px;}
-.header h3 span{font-size:30px;line-height:40px;letter-spacing:0;margin-left:-10px;vertical-align:baseline;}
-.header h3:before{content:'';display:inline-block;width:72px;height:64px;margin-right:32px;vertical-align:middle;background:url("icheck.png")}
-.header h3:after{content:'';position:absolute;top:0;left:50%;width:100px;margin-left:-50px;border-top:3px solid #fff}
-.header strong{font:24px/30px 'MontserratRegular',Helvetica,Arial,sans-serif;}
-.header strong a{color:#fff;border-bottom-color:#fff}
-.features{position:relative;font-size:16px;color:#555;background:#fff;}
-.features .self{color:#555;border-bottom-color:#bbb;}
-.features .self:hover{color:#222}
-.features .arrows{top:0}
-.features:hover .arrows .bottom{left:0}
-.features h2{color:#fff;background:#2489c5}
-.features ul{padding:44px 60px 36px}
-.features li{padding:0 0 9px 36px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABI0lEQVR4XpXSP0vDUBjF4ZtLkIr4EYzduogdXJTWWV2FLMVNoQrdAhlUUFAEcejo1q13svgFBAUdxA/g30kcdQoIIlL9DWcKuZEeeOCl99w3gTSI49h4MoFb/KCJz6KShS/rOh/TbEZZECLBiSQIR1nQQgAnAVr/LZjEnIq76OJbutjRGR26isUB3pDhBikucWoUzVdI1cl05zBk2MI5jvCKIfL5QluzxTS20bY6WENdl0ujTl13Ni3DABtwWEFp1HG6M7Aq9NHBGRbgy7w6HfTzX6GHCyyXPV2dnu9/MIUX+PIMOkRsbq7hHkZmxciDOrZoQRUVPCGCw504RDobR7VoQQ0f2Mejls1IRb/t4R10CcLc6/2igSVcw8gqFnEMOnSVPxQqQaPw2y7fAAAAAElFTkSuQmCC") 0 1px no-repeat;*background-image:url("ie/icon-star.png");}
-.features li.offset{margin-top:20px}
-.mark{padding:0 2px;color:#777;background:#e7e5e0;}
-.skin-polaris .mark{background:#232830}
-.skin-futurico .mark{background:#25262a}
-.social{height:60px;margin-bottom:60px;padding:0 60px;font-size:16px;color:#555;background:#f5f3ef;}
-.social a{color:#777;border-bottom-color:#ccc;}
-.social a:hover{color:#444}
-.social .left{float:left;padding-top:19px;}
-.social .left li{float:left;padding-right:30px;}
-.social .left li a{position:relative}
-.social .right{float:right;padding-top:20px;}
-.social .right li{float:right;padding-left:10px}
-.social .right.local{padding-top:19px;}
-.social .right.local li{padding-left:30px;font-size:14px}
-.demo-holder{margin-bottom:97px}
-.demo-title{padding-bottom:36px;font-size:26px;letter-spacing:-1px}
-.demo{position:relative;}
-.demo:hover .arrows .top,.demo:hover .arrows .bottom{left:0}
-.demo-list{position:relative;margin-right:360px;padding:33px 57px 17px;color:#555;background:#fff;border:3px solid #ddd8ce;}
-.demo-list ul{float:right;white-space:nowrap;}
-.demo-list ul:first-child{float:left}
-.demo-list ul li{position:relative;padding:0 0 18px 42px}
-.demo-list ul input{position:absolute;top:4px;left:0}
-.demo-list ul .icheckbox_square-blue,.demo-list ul .iradio_square-blue{position:absolute;top:-1px;left:0}
-.demo-list ul span{color:#bbb}
-.demo-methods{padding:21px 360px 0 0;}
-.demo-methods .mark{background:#d3cfc6}
-.demo-methods dt{position:relative;padding:17px 150px 18px 0;font:16px/24px 'MontserratRegular',Helvetica,Arial,sans-serif;color:#444;border-bottom:3px solid #ddd8ce;}
-.demo-methods dt .self{cursor:pointer;}
-.demo-methods dt .self:hover{color:#222}
-.demo-methods dt .code{position:absolute;right:0;bottom:18px;color:#777;}
-.demo-methods dt .code .self:hover{color:#444}
-.demo-methods dd{position:relative;display:none;margin:0;background:#fff;border:3px solid #ddd8ce;border-top:none;}
-.demo-methods dd:before{content:'';position:absolute;top:-13px;left:0;width:0;height:0;border:5px solid transparent;border-bottom-color:#ddd8ce;border-left-color:#ddd8ce}
-.demo-methods dd .markup{margin:0;color:#888;background:#f5f3ef;border:none;}
-.demo-methods dd .markup .comment{color:#aaa}
-.demo-callbacks{position:absolute;top:0;right:0;bottom:0;width:300px;color:#aaa;background:#232323;border:3px solid #ddd8ce;}
-.demo-callbacks h2{color:#fff;background:#6a5a8c}
-.demo-callbacks ul{position:absolute;top:60px;width:100%;bottom:0;overflow:auto;}
-.demo-callbacks ul::-webkit-scrollbar{width:10px;background:none;}
-.demo-callbacks ul::-webkit-scrollbar-track{background:none;border:none;}
-.demo-callbacks ul::-webkit-scrollbar-track-piece:disabled{display:none !important;}
-.demo-callbacks ul::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border:none;}
-.demo-callbacks ul::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3);}
-.demo-callbacks ul li{margin-top:-1px;padding:13px 20px 15px;border-top:1px solid #2e2e2e;}
-.demo-callbacks ul li span{color:#888}
-.skins{position:relative;*zoom:1;}
-.skins h2{position:absolute;top:-38px;right:0;left:0;font-size:24px;text-align:center}
-.arrows{position:absolute;top:3px;left:-60px;width:60px;overflow:hidden;}
-.arrows .top,.arrows .bottom{position:relative;left:60px;width:60px;height:60px;cursor:pointer;-webkit-transition:left .3s,background-color .2s;-moz-transition:left .3s,background-color .2s;-ms-transition:left .3s,background-color .2s;-o-transition:left .3s,background-color .2s;transition:left .3s,background-color .2s}
-.arrows .top{background:#83b3be url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAALCAYAAACZIGYHAAAAdklEQVR4Xo3MuwmFQBiE0b0FmAuutnRBsAARLMTYRzvWItiEYLq/s6CYyMwGXzTDcWbG8mhEf/ZjQIV2ZCigjiASMAVJIAVKAQ4FKWBDJVoYpAB/7z8GRaAQgBNQG8dZA28f0BmHBgUCKGh9hhpNKH8BWY8GlF2OH3hCC1zmdAAAAABJRU5ErkJggg==") 50% no-repeat;*background-image:url("ie/arrow-top.png");}
-.arrows .top:hover{background-color:#6ba4b1}
-.arrows .bottom{background:#e2b78d url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAALCAYAAACZIGYHAAAAf0lEQVR4Xo3MzQmEQBCE0TGAvQuOpiQIBiCCgXj2J52NRTAJwev0Vh+WOgjlNHyHguYFM/M6tKLSd2YTmtHHR48S8jtQzAB2430d2bgJvQLsdqRCZwZUPAFLaPjrjYAUMKLgwBtUK4CIhi4BEFGQBohISANEJKQBIqqIFtSqvx/0bXhCCUrgiAAAAABJRU5ErkJggg==") 50% no-repeat;*background-image:url("ie/arrow-bottom.png");}
-.arrows .bottom:hover{background-color:#dba571}
-@media screen and (max-width:1049px){.arrows,.fork-me{display:none}
-}.skin{position:relative;margin-bottom:40px;}
-.skin:hover .arrows .top,.skin:hover .arrows .bottom{left:0}
-.skin h3{position:relative;z-index:20;float:left;height:60px;padding:0 57px;line-height:58px;background:#fff;border:3px solid #ddd8ce;border-bottom:none;}
-.skin h3:before{content:'';position:absolute;top:100%;left:0;width:100%;height:2px;margin-top:-1px;background:#fff}
-.skin.skin-polaris h3{color:#cacdd1;background:#2c323c;}
-.skin.skin-polaris h3:before{background:#2c323c}
-.skin.skin-futurico h3{color:#c3c3c3;background:#2e3035;}
-.skin.skin-futurico h3:before{background:#2e3035}
-.skin dl{z-index:10;width:100%;margin:0}
-.skin dt{position:relative;top:-53px;right:-3px;float:right;height:47px;margin-right:-3px;padding:0 57px;line-height:47px;border:3px solid #ddd8ce;cursor:pointer;}
-.skin dt:hover{background:#f0ede7;border-bottom:3px solid #ddd8ce}
-.skin dt.selected{height:50px;background:#fff;border-bottom:none;cursor:default;}
-.skin dt.selected:before{content:'';position:absolute;top:100%;left:0;width:100%;height:2px;margin-top:-1px;background:#fff}
-.skin.skin-polaris dt{color:#cacdd1;background:#647083;}
-.skin.skin-polaris dt:hover{background:#4a5361}
-.skin.skin-polaris dt.selected{background:#2c323c;}
-.skin.skin-polaris dt.selected:before{background:#2c323c}
-.skin.skin-futurico dt{color:#c3c3c3;background:#676c77;}
-.skin.skin-futurico dt:hover{background:#4b4e56}
-.skin.skin-futurico dt.selected{background:#2e3035;}
-.skin.skin-futurico dt.selected:before{background:#2e3035}
-.skin dd{position:relative;display:none;float:left;width:100%;margin:-3px -100% 0 0;overflow:hidden;color:#444;background:#fff;border:3px solid #ddd8ce;}
-.skin dd.selected{display:block}
-.skin dd a{color:#444;}
-.skin dd a:hover{color:#111}
-.skin.skin-polaris dd{color:#7a828b;background:#2c323c;}
-.skin.skin-polaris dd a{color:#7a828b;border-bottom-color:#4e596b;}
-.skin.skin-polaris dd a:hover{color:#a2a7ae}
-.skin.skin-futurico dd{color:#888;background:#2e3035;}
-.skin.skin-futurico dd a{color:#888;border-bottom-color:#545861;}
-.skin.skin-futurico dd a:hover{color:#aaa}
-.skin-section{float:left;padding:42px 0 31px 57px;line-height:18px;}
-.skin-section h4{padding-bottom:18px;}
-.skin-polaris .skin-section h4{color:#959ba2}
-.skin-futurico .skin-section h4{color:#a0a0a0}
-.skin-section .list{float:left;padding-right:60px;}
-.skin-section .list li{position:relative;padding-bottom:15px}
-.skin-minimal .skin-section .list li{padding-left:38px}
-.skin-square .skin-section .list li{padding-left:42px}
-.skin-flat .skin-section .list li,.skin-line .skin-section label{padding-left:40px}
-.skin-line .skin-section h4{padding-bottom:24px}
-.skin-line .skin-section .list{padding-right:40px;}
-.skin-line .skin-section .list li{padding-bottom:10px}
-.skin-polaris .skin-section .list li{padding-left:37px}
-.skin-futurico .skin-section .list li{padding-left:36px}
-.icheckbox_minimal,.icheckbox_minimal-red,.icheckbox_minimal-green,.icheckbox_minimal-blue,.icheckbox_minimal-aero,.icheckbox_minimal-grey,.icheckbox_minimal-orange,.icheckbox_minimal-yellow,.icheckbox_minimal-pink,.icheckbox_minimal-purple,.iradio_minimal,.iradio_minimal-red,.iradio_minimal-green,.iradio_minimal-blue,.iradio_minimal-aero,.iradio_minimal-grey,.iradio_minimal-orange,.iradio_minimal-yellow,.iradio_minimal-pink,.iradio_minimal-purple{position:absolute;top:1px;left:0}
-.skin input[type=checkbox],.skin input[type=radio]{position:absolute;top:2px;left:0}
-.icheckbox_square,.icheckbox_square-red,.icheckbox_square-green,.icheckbox_square-blue,.icheckbox_square-aero,.icheckbox_square-grey,.icheckbox_square-orange,.icheckbox_square-yellow,.icheckbox_square-pink,.icheckbox_square-purple,.iradio_square,.iradio_square-red,.iradio_square-green,.iradio_square-blue,.iradio_square-aero,.iradio_square-grey,.iradio_square-orange,.iradio_square-yellow,.iradio_square-pink,.iradio_square-purple{position:absolute;top:-1px;left:0}
-.icheckbox_flat,.icheckbox_flat-red,.icheckbox_flat-green,.icheckbox_flat-blue,.icheckbox_flat-aero,.icheckbox_flat-grey,.icheckbox_flat-orange,.icheckbox_flat-yellow,.icheckbox_flat-pink,.icheckbox_flat-purple,.iradio_flat,.iradio_flat-red,.iradio_flat-green,.iradio_flat-blue,.iradio_flat-aero,.iradio_flat-grey,.iradio_flat-orange,.iradio_flat-yellow,.iradio_flat-pink,.iradio_flat-purple{position:absolute;top:0;left:0}
-.icheckbox_polaris,.iradio_polaris{position:absolute;top:-4px;left:-6px}
-.icheckbox_futurico,.iradio_futurico{position:absolute;top:2px;left:0}
-.skin-states{float:right;padding-right:57px;padding-left:0;}
-.skin-states .state{cursor:default !important}
-.skin-states .list{padding-right:0}
-.skin-minimal .skin-states .list li{padding-left:71px}
-.skin-square .skin-states .list li{padding-left:79px}
-.skin-flat .skin-states .list li{padding-left:75px}
-.skin-line .skin-states .list{padding-right:0}
-.skin-polaris .skin-states .list li{padding-left:69px}
-.skin-futurico .skin-states .list li{padding-left:67px}
-.skin-states .iradio_minimal,.skin-states .iradio_minimal-red,.skin-states .iradio_minimal-green,.skin-states .iradio_minimal-blue,.skin-states .iradio_minimal-aero,.skin-states .iradio_minimal-grey,.skin-states .iradio_minimal-orange,.skin-states .iradio_minimal-yellow,.skin-states .iradio_minimal-pink,.skin-states .iradio_minimal-purple{left:33px}
-.skin-states .iradio_square,.skin-states .iradio_square-red,.skin-states .iradio_square-green,.skin-states .iradio_square-blue,.skin-states .iradio_square-aero,.skin-states .iradio_square-grey,.skin-states .iradio_square-orange,.skin-states .iradio_square-yellow,.skin-states .iradio_square-pink,.skin-states .iradio_square-purple{left:37px}
-.skin-states .iradio_flat,.skin-states .iradio_flat-red,.skin-states .iradio_flat-green,.skin-states .iradio_flat-blue,.skin-states .iradio_flat-aero,.skin-states .iradio_flat-grey,.skin-states .iradio_flat-orange,.skin-states .iradio_flat-yellow,.skin-states .iradio_flat-pink,.skin-states .iradio_flat-purple{left:35px}
-.skin-states .iradio_polaris{left:26px}
-.skin-states .iradio_futurico{left:31px}
-.colors{clear:both;padding:24px 0 9px;}
-.skin-line .colors{padding-top:28px}
-.colors strong{float:left;line-height:20px;margin-right:20px}
-.colors li{position:relative;float:left;width:16px;height:16px;margin:2px 1px 0 0;background:#000;cursor:pointer;filter:alpha(opacity=50);opacity:.5;-webkit-transition:opacity .2s;-moz-transition:opacity .2s;-ms-transition:opacity .2s;-o-transition:opacity .2s;transition:opacity .2s;}
-.colors li:hover{filter:alpha(opacity=100);opacity:1}
-.colors li.active{height:20px;margin-top:0;filter:alpha(opacity=75);opacity:.75}
-.colors li.red{background:#d54e21}
-.colors li.green{background:#78a300}
-.colors li.blue{background:#0e76a8}
-.colors li.aero{background:#9cc2cb}
-.colors li.grey{background:#73716e}
-.colors li.orange{background:#f70}
-.colors li.yellow{background:#fc0}
-.colors li.pink{background:#ff66b5}
-.colors li.purple{background:#6a5a8c}
-.skin-square .colors li.red{background:#e56c69}
-.skin-square .colors li.green{background:#1b7e5a}
-.skin-square .colors li.blue{background:#2489c5}
-.skin-square .colors li.aero{background:#9cc2cb}
-.skin-square .colors li.grey{background:#73716e}
-.skin-square .colors li.yellow{background:#fc3}
-.skin-square .colors li.pink{background:#a77a94}
-.skin-square .colors li.purple{background:#6a5a8c}
-.skin-square .colors li.orange{background:#f70}
-.skin-flat .colors li.red{background:#ec7063}
-.skin-flat .colors li.green{background:#1abc9c}
-.skin-flat .colors li.blue{background:#3498db}
-.skin-flat .colors li.grey{background:#95a5a6}
-.skin-flat .colors li.orange{background:#f39c12}
-.skin-flat .colors li.yellow{background:#f1c40f}
-.skin-flat .colors li.pink{background:#af7ac5}
-.skin-flat .colors li.purple{background:#8677a7}
-.skin-line .colors li.yellow{background:#ffc414}
-.skins-info{padding:13px 0 57px;font-size:16px;line-height:22px;text-align:center;}
-.skins-info p{margin-bottom:17px}
-.skins-info .skins-banner{margin:34px 0 3px;}
-.skins-info .skins-banner a{display:block;width:728px;height:90px;margin:0 auto;overflow:hidden;text-indent:100%;white-space:nowrap;background:url(banner.jpg);-webkit-transition:opacity 0.4s ease;-moz-transition:opacity 0.4s ease;-o-transition:opacity 0.4s ease;transition:opacity 0.4s ease;border:none;}
-.skins-info .skins-banner a:hover{opacity:.8;}
-.skin-pre{padding:43px 60px 0}
-.skin-usage{padding:19px 60px 8px;list-style:decimal outside;}
-.skin-usage li{margin-bottom:23px}
-.skin-usage .schemes{margin-bottom:-3px;padding:13px 0 0 20px;color:#888;}
-.skin-usage .schemes ul{float:left;padding-right:60px}
-.skin-usage .schemes li{margin:0;padding-bottom:3px}
-.usage{position:relative;margin-bottom:80px;background:#fff;}
-.usage a{border-bottom-color:#ddd}
-.usage .self{border-bottom-color:#bbb}
-.usage .arrows{top:0}
-.usage:hover .arrows .top,.usage:hover .arrows .bottom{left:0}
-.usage h2{color:#fff;background:#1f7f5c}
-.usage h4{margin:26px 0 10px;}
-.usage h4.indeterminate{margin-top:28px}
-.usage p{margin-bottom:5px;}
-.usage p.offset{margin-top:10px}
-.usage p.callbacks-info{margin-bottom:19px}
-.usage p.methods-info{margin-bottom:10px}
-.usage p.methods-callback{margin-top:10px}
-.usage p.issue-tracker{margin-top:31px}
-.usage .markup{margin:9px 0 16px}
-.usage .usage-inner{font-size:15px;line-height:23px;padding:41px 60px 39px}
-.markup{margin:10px 0 18px;padding:8px 0 9px 17px;font:14px/20px 'MontserratRegular',Helvetica,Arial,sans-serif;color:#777;background:#e7e5e0;border-left:3px solid #d7d5cb;}
-.markup .comment{color:#999;}
-.markup .comment .self{color:#555;}
-.markup .comment .self:hover{color:#333}
-.skin-polaris .markup{background:#232830;border-left-color:#1f232a}
-.skin-futurico .markup{background:#25262a;border-left-color:#202225}
-.skin-polaris .markup .comment,.skin-futurico .markup .comment{color:#555}
-.browsers{margin-bottom:74px;}
-.browsers h2{margin-bottom:29px;font-size:24px}
-.browsers-inner{padding:0 60px;font-size:15px;line-height:23px;}
-.browsers-inner p{margin-bottom:15px}
-.benefits{position:relative;margin-bottom:59px;color:#888;background:#232323;}
-.benefits .arrows{top:0}
-.benefits:hover .arrows .top,.benefits:hover .arrows .bottom{left:0}
-.benefits h2{color:#fff;background:#6a5b8c}
-.benefits a{color:#888;border-bottom-color:#444;}
-.benefits a:hover{color:#aaa}
-.benefits .mark{color:#777;background:#393939}
-.benefits-inner{padding:41px 60px 29px;font-size:15px;line-height:23px;}
-.benefits-inner p{margin-bottom:15px}
-.benefits-inner ul{margin:-10px 0 15px}
-.download{height:63px;text-align:center;}
-.download a{display:block;height:60px;font-size:18px;line-height:58px;color:#fff;border-bottom:0 solid #e24f49;background:#e76b66;-webkit-transition:border-bottom .2s;-moz-transition:border-bottom .2s;-ms-transition:border-bottom .2s;-o-transition:border-bottom .2s;transition:border-bottom .2s;}
-.download a:before{content:'';display:inline-block;width:26px;height:26px;margin-right:12px;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAACYUlEQVR4Xr3VPWhTURjH4VOt0ES7ZRJbEJpsNsaimx9E0GpRCdgU/NhsRAdNBYcK0RirQcSkIIK2cRBRiragVayDhqBDLVWatFvsIKK2UMEp4KBcf8N/KNdwvcHWAw8c/rzvebk5yU2dZVnmf6wVNdb70Ca+5Rrkx0e8E/ZkyzCoAyuxBZu17/jXQV34jjwCytowjUk90Ywyo5q8errcDoriPgpoRhEj6MQrGHmpbARF1RbUG3Uz6Bae4iBacQNNSKEPRi4pa1JNq3pGcds+qNrXu4B1CKKCWtZqlPAZO/72RDGsRdKWh5ATIdOSpHpjbu6ojBfYBiPdOIQeHJMeZd0wsh1jKDsNakEc97AHo8o3IYCz2I1nGMYuZQHVGPXs1RlxtNgH+TCFtBpvIqua40ghqkGdOIp27VOqMcigX8PTKIKzWXwZDDbAQhDG5o6yx2iAkQY80T4HYxOEpbP/uCOnN+wq1Nlq6x3qrWp3NIcKJvAWV+FVzU804i6uwyNZZY34BaOeyzpjQmfOLR70DSGcwyxOIa7mAZzHQ+QxLHllCdUYnMYZzOqsjeBsPbp8QFZ7Lw7gCt4jhGu4qCEGa5SVVWPUM4Yjbn5HfrTjNYzk8AAZ5CSjbBBG3qjXr0CqX+YAviJpy6cQg9NKIoJBN6+gIGbwA16kMY5eeGDEo2xcNV71TCPo5qM7iX14hJIueB4XkICRhLJ51ZTUsx8n3AwawmGE8QUhRDR4J4yElUUQUm1YvUPOfxPO4khj66KL70W/m+Z6uF3P0YdJBRVlZqkHlbEezQo+YWHJB8mC1Lx+Ayeq7nRIoewwAAAAAElFTkSuQmCC");*background-image:url("ie/icon-options.png");vertical-align:middle}
-.download a:hover{border-bottom-width:3px}
-.license{color:#444;text-align:center;padding:30px 0 75px}
-.footer{padding-top:28px;height:60px;color:#666;background:#e2dfd8;}
-.footer ul{float:left;}
-.footer ul li{float:left;padding:2px 10px 0 0}
-.footer ul.local li{padding:0 30px 0 0}
-.footer .code{float:right}
-.footer a{color:#444;}
-.footer a:hover{color:#222}
-.footer-inner{width:930px;margin:0 auto;overflow:hidden}
-.fork-me{position:fixed;*position:absolute;top:0;right:0;width:40px;height:40px;overflow:hidden;text-indent:100%;white-space:nowrap;background:#28545b url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAnElEQVR4XqVSgQmEMAyszw/gCI7wK7iBblBHcISfxG6gG/gjuIGO0A3ygaYQCCG2HhweF+6aShsAcDcBJBpuvlwFagqGJwUf5EL6kgV2eEe2yIgc9QI73CMPs8AOywI7nHDSzCxYxcnJ6+hrFnQkJrb2nGclP3Fj+vf0IUV1AgCZHiS86lOObxD4qqSD5mtXmAq1e2fB3vqXact3f/JmXumJlVq1AAAAAElFTkSuQmCC") 50% no-repeat;*background-image:url("ie/icon-fork.png");}
-.fork-me:hover{background-color:#1f7f5c}
-.skin dt,.fork-me{-webkit-transition:background-color .2s;-moz-transition:background-color .2s;-ms-transition:background-color .2s;-o-transition:background-color .2s;transition:background-color .2s}
-
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/custom.styl b/common/src/main/webapp/thirdparty/icheck/demo/css/custom.styl
deleted file mode 100644
index 7f66121..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/custom.styl
+++ /dev/null
@@ -1,1191 +0,0 @@
-/* Reset
------------------------------------ */
-@import url("normalize.css")
-
-
-/* Fonts
------------------------------------ */
-$font = 'MontserratRegular'
-$fontBold = 'MontserratBold'
-$stack = $font, Helvetica, Arial, sans-serif
-$stackBold = $fontBold, Helvetica, Arial, sans-serif
-
-@font-face
- font-family $font
- src url('./montserrat-regular.eot')
- src url('./montserrat-regular.eot?#iefix') format('embedded-opentype'),
- url('./montserrat-regular.woff') format('woff'),
- url('./montserrat-regular.ttf') format('truetype'),
- url('./montserrat-regular.svg#' + $font + '') format('svg')
- font-style normal
- font-weight normal
-
-@font-face
- font-family $fontBold
- src url('./montserrat-bold.eot')
- src url('./montserrat-bold.eot?#iefix') format('embedded-opentype'),
- url('./montserrat-bold.woff') format('woff'),
- url('./montserrat-bold.ttf') format('truetype'),
- url('./montserrat-bold.svg#' + $fontBold + '') format('svg')
- font-style normal
- font-weight bold
-
-
-/* Demo
------------------------------------ */
-html
-body
- height 100%
-
-body
- font 14px/20px $stack
- color #222
- background #ebe7df url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAFZCAIAAAA96mnzAAACKklEQVR4Xn2VUW7kMAxD+QLf/1x7gv71LNwdKTLhZFtggMCwSVEUPdb3159/v0uSrM8HtGRZuoQk1R69J12o9ixJWvSnVyfLdbNw0XAXWe1fIL8BoqmNGiV/cHc9Gq4NXxLKHhteRyLpA28cl0SLdx0BckSWL4gkPlIVTg1nN9Ys3iyWI5AGDA5xOXB5BJaWmOw6KSLeU6+0P50QshQyEL2im/YMIL60dTSZ3RXenlkiJpMj8XPMAl1FtjMRW19NxzOE5VGWPVGrc7aSJgz1Y9ku57mpYSwn1h0ivFOXxoCKMCXiahbbZNIZR+tkphllPsomipCwb4GMkXTmPfVg40Jt2y4RQM/PqX5JTM4iiTN8Zz1XvbIAEEvoEW+3nxTLL3lB7t7J3WwyI7g5OVxKIeFEH4FIGLC9I+XqvSd4AxJM5O6WTPr54RAxLG44FVrEuz+kFdXyLiuX6kLPVLZL2ISlcHNlBIKm5rR8nEi9wJeA6Y8JZlJOyDiin0K5ag+AXHtALBicXasjIUu9h0STBbCMU+89gMnu/J05MU1QWqdbPMRPIZIzDgsi8Olg5t7wHhUg/pv5RUzO+BHDmczHkAfZWxlSYgNI5Ig5XRoc66dW9L45eHDkbkqCO7RLG5cna/HD7YhZnfINkFo8iNyj5kx6pFrxNGRlfhV2e1Zt5DnGU8T7Tud1ivi8jU8/3Zy88pkn6+zdXiJ7AVSFBZA3VcwDfXtt5UUHS38B35hQVuJip4MAAAAASUVORK5CYII=") repeat-x
- *background-image url(ie/header-line.png)
-
-a
- color #222
- text-decoration none
- border-bottom 1px solid #bbb
-
- &:hover
- color #000
-
-a
-.self
- -webkit-transition color .1s
- -moz-transition color .1s
- -ms-transition color .1s
- -o-transition color .1s
- transition color .1s
-
-.self
- color #333
- border-bottom 1px dotted #aaa
- cursor pointer
-
- &:hover
- color #000
-
-strong
- font-family $stackBold
- font-weight 700
-
-p
- margin 0 0 8px
-
-label
- cursor pointer
-
-h1
-h2
-h3
-h4
- margin 0
- font bold 20px/60px $stackBold
-
-h2
- height 60px
- text-align center
- text-transform uppercase
-
-h4
- font-size 18px
- line-height 24px
-
-ul
- margin 0
- padding 0
- list-style none
-
-table
- width 100%
- margin-bottom 21px
-
-th
-td
- padding 11px 20px 12px
- vertical-align top
- font-weight normal
- text-align left
- border-bottom 2px solid #E7E5E0
-
- thead &
- background lighten(#E7E5E0, 50%)
-
-th
- white-space nowrap
-
-td
- width 100%
-
-.focus
- outline 1px dotted rgba(0,0,0,.5) !important
-
-.clear
- position relative
- *zoom 1
-
- &:before
- &:after
- content ''
- display table
- clear both
-
-.layout
- width 930px
- margin 0 auto
- padding 0 15px
-
-.header
- padding 115px 0 73px
- color #fff
- text-align center
-
- h1
- strong
- letter-spacing -1px
- text-transform uppercase
-
- h1
- padding-bottom 23px
- font-size 22px
- line-height 28px
-
- h3
- position relative
- padding 35px 0 17px
- font-size 120px
- line-height 140px
- letter-spacing -5px
-
- &:before
- content ''
- display inline-block
- width 72px
- height 64px
- margin-right 32px
- vertical-align middle
- background url(icheck.png)
-
- &:after
- content ''
- position absolute
- top 0
- left 50%
- width 100px
- margin-left -50px
- border-top 3px solid #fff
-
- strong
- font 24px/30px $stack
-
- a
- color #fff
- border-bottom-color #fff
-
-.features
- position relative
- font-size 16px
- color #555
- background #fff
-
- .self
- color #555
- border-bottom-color #bbb
-
- &:hover
- color #222
-
- .arrows
- top 0
-
- &:hover .arrows .bottom
- left 0
-
- h2
- color #fff
- background #2489c5
-
- ul
- padding 44px 60px 36px
-
- li
- padding 0 0 9px 36px
- background url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABI0lEQVR4XpXSP0vDUBjF4ZtLkIr4EYzduogdXJTWWV2FLMVNoQrdAhlUUFAEcejo1q13svgFBAUdxA/g30kcdQoIIlL9DWcKuZEeeOCl99w3gTSI49h4MoFb/KCJz6KShS/rOh/TbEZZECLBiSQIR1nQQgAnAVr/LZjEnIq76OJbutjRGR26isUB3pDhBikucWoUzVdI1cl05zBk2MI5jvCKIfL5QluzxTS20bY6WENdl0ujTl13Ni3DABtwWEFp1HG6M7Aq9NHBGRbgy7w6HfTzX6GHCyyXPV2dnu9/MIUX+PIMOkRsbq7hHkZmxciDOrZoQRUVPCGCw504RDobR7VoQQ0f2Mejls1IRb/t4R10CcLc6/2igSVcw8gqFnEMOnSVPxQqQaPw2y7fAAAAAElFTkSuQmCC") 0 1px no-repeat
- *background-image url(ie/icon-star.png)
-
- &.offset
- margin-top 20px
-
-.mark
- padding 0 2px
- color lighten(#555, 20%)
- background lighten(#d7d4cc, 40%)
-
- .skin-polaris &
- background darken(#2C323C, 20%)
-
- .skin-futurico &
- background darken(#2E3035, 20%)
-
-.social
- height 60px
- margin-bottom 60px
- padding 0 60px
- font-size 16px
- color #555
- background lighten(#EBE7DF, 50%)
-
- a
- color #777
- border-bottom-color #ccc
-
- &:hover
- color #444
-
- .left
- float left
- padding-top 19px
-
- li
- float left
- padding-right 30px
-
- a
- position relative
-
- .right
- float right
- padding-top 20px
-
- li
- float right
- padding-left 10px
-
- &.local
- padding-top 19px
-
- li
- padding-left 30px
- font-size 14px
-
-.demo-holder
- margin-bottom 97px
-
-.demo-title
- padding-bottom 36px
- font-size 26px
- letter-spacing -1px
-
-.demo
- position relative
-
- &:hover .arrows .top
- &:hover .arrows .bottom
- left 0
-
-.demo-list
- position relative
- margin-right 360px
- padding 33px 57px 17px
- color #555
- background #fff
- border 3px solid #ddd8ce
-
- ul
- float right
- white-space nowrap
-
- &:first-child
- float left
-
- li
- position relative
- padding 0 0 18px 42px
-
- input
- position absolute
- top 4px
- left 0
-
- .icheckbox_square-blue
- .iradio_square-blue
- position absolute
- top -1px
- left 0
-
- span
- color #bbb
-
-.demo-methods
- padding 21px 360px 0 0
-
- .mark
- background darken(#e7e5e0, 10%)
-
- dt
- position relative
- padding 17px 150px 18px 0
- font 16px/24px $stack
- color #444
- border-bottom 3px solid #ddd8ce
-
- .self
- cursor pointer
-
- &:hover
- color #222
-
- .code
- position absolute
- right 0
- bottom 18px
- color #777
-
- .self:hover
- color #444
-
- dd
- position relative
- display none
- margin 0
- background #fff
- border 3px solid #ddd8ce
- border-top none
-
- &:before
- content ''
- position absolute
- top -13px
- left 0
- width 0
- height 0
- border 5px solid transparent
- border-bottom-color #ddd8ce
- border-left-color #ddd8ce
-
- .markup
- margin 0
- color #888
- background lighten(#ebe7df, 50%)
- border none
-
- .comment
- color #aaa
-
-.demo-callbacks
- position absolute
- top 0
- right 0
- bottom 0
- width 300px
- color #aaa
- background #232323
- border 3px solid #ddd8ce
-
- h2
- color #fff
- background #6a5a8c
-
- ul
- position absolute
- top 60px
- width 100%
- bottom 0
- overflow auto
-
- li
- margin-top -1px
- padding 13px 20px 15px
- border-top 1px solid #2e2e2e
-
- span
- color #888
-
-.skins
- position relative
- *zoom 1
-
- h2
- position absolute
- top -38px
- right 0
- left 0
- font-size 24px
- text-align center
-
-.arrows
- position absolute
- top 3px
- left -60px
- width 60px
- overflow hidden
-
- .top
- .bottom
- position relative
- left 60px
- width 60px
- height 60px
- cursor pointer
- -webkit-transition left .3s, background-color .2s
- -moz-transition left .3s, background-color .2s
- -ms-transition left .3s, background-color .2s
- -o-transition left .3s, background-color .2s
- transition left .3s, background-color .2s
-
- .top
- background lighten(#5a9aa8, 25%) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAALCAYAAACZIGYHAAAAdklEQVR4Xo3MuwmFQBiE0b0FmAuutnRBsAARLMTYRzvWItiEYLq/s6CYyMwGXzTDcWbG8mhEf/ZjQIV2ZCigjiASMAVJIAVKAQ4FKWBDJVoYpAB/7z8GRaAQgBNQG8dZA28f0BmHBgUCKGh9hhpNKH8BWY8GlF2OH3hCC1zmdAAAAABJRU5ErkJggg==") 50% no-repeat
- *background-image url(ie/arrow-top.png)
-
- &:hover
- background-color lighten(#5a9aa8, 10%)
-
- .bottom
- background lighten(#dba571, 20%) url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAALCAYAAACZIGYHAAAAf0lEQVR4Xo3MzQmEQBCE0TGAvQuOpiQIBiCCgXj2J52NRTAJwev0Vh+WOgjlNHyHguYFM/M6tKLSd2YTmtHHR48S8jtQzAB2430d2bgJvQLsdqRCZwZUPAFLaPjrjYAUMKLgwBtUK4CIhi4BEFGQBohISANEJKQBIqqIFtSqvx/0bXhCCUrgiAAAAABJRU5ErkJggg==") 50% no-repeat
- *background-image url(ie/arrow-bottom.png)
-
- &:hover
- background-color #dba571
-
-@media screen and (max-width:1049px)
- .arrows
- .fork-me
- display none
-
-.skin
- position relative
- margin-bottom 40px
-
- &:hover .arrows .top
- &:hover .arrows .bottom
- left 0
-
- h3
- position relative
- z-index 20
- float left
- height 60px
- padding 0 57px
- line-height 58px
- background #fff
- border 3px solid #ddd8ce
- border-bottom none
-
- &:before
- content ''
- position absolute
- top 100%
- left 0
- width 100%
- height 2px
- margin-top -1px
- background #fff
-
- &.skin-polaris h3
- color lighten(#7a828b, 60%)
- background #2c323c
-
- &:before
- background #2c323c
-
- &.skin-futurico h3
- color lighten(#888, 50%)
- background #2e3035
-
- &:before
- background #2e3035
-
- dl
- z-index 10
- width 100%
- margin 0
-
- dt
- position relative
- top -53px
- right -3px
- float right
- height 47px
- margin-right -3px
- padding 0 57px
- line-height 47px
- border 3px solid #ddd8ce
- cursor pointer
-
- &:hover
- background #f0ede7
- border-bottom 3px solid #ddd8ce
-
- &.selected
- height 50px
- background #fff
- border-bottom none
- cursor default
-
- &:before
- content ''
- position absolute
- top 100%
- left 0
- width 100%
- height 2px
- margin-top -1px
- background #fff
-
- &.skin-polaris dt
- color lighten(#7a828b, 60%)
- background lighten(#30363f, 30%)
-
- &:hover
- background lighten(#30363f, 15%)
-
- &.selected
- background #2c323c
-
- &:before
- background #2c323c
-
- &.skin-futurico dt
- color lighten(#888, 50%)
- background lighten(#2e3035, 30%)
-
- &:hover
- background lighten(#2e3035, 15%)
-
- &.selected
- background #2e3035
-
- &:before
- background #2e3035
-
- dd
- position relative
- display none
- float left
- width 100%
- margin -3px -100% 0 0
- overflow hidden
- color #444
- background #fff
- border 3px solid #ddd8ce
-
- &.selected
- display block
-
- a
- color #444
-
- &:hover
- color #111
-
- &.skin-polaris dd
- color #7a828b
- background #2c323c
-
- a
- color #7a828b
- border-bottom-color lighten(#2c323c, 20%)
-
- &:hover
- color lighten(#7a828b, 30%)
-
- &.skin-futurico dd
- color #888
- background #2e3035
-
- a
- color #888
- border-bottom-color lighten(#2e3035, 20%)
-
- &:hover
- color #aaa
-
-.skin-section
- float left
- padding 42px 0 31px 57px
- line-height 18px
-
- h4
- padding-bottom 18px
-
- .skin-polaris &
- color lighten(#7a828b, 20%)
-
- .skin-futurico &
- color lighten(#888, 20%)
-
- .list
- float left
- padding-right 60px
-
- li
- position relative
- padding-bottom 15px
-
- .skin-minimal & .list li
- padding-left 38px
-
- .skin-square & .list li
- padding-left 42px
-
- .skin-flat & .list li
- .skin-line & label
- padding-left 40px
-
- .skin-line & h4
- padding-bottom 24px
-
- .skin-line & .list
- padding-right 40px
-
- li
- padding-bottom 10px
-
- .skin-polaris & .list li
- padding-left 37px
-
- .skin-futurico & .list li
- padding-left 36px
-
-.icheckbox_minimal
-.icheckbox_minimal-red
-.icheckbox_minimal-green
-.icheckbox_minimal-blue
-.icheckbox_minimal-aero
-.icheckbox_minimal-grey
-.icheckbox_minimal-orange
-.icheckbox_minimal-yellow
-.icheckbox_minimal-pink
-.icheckbox_minimal-purple
-.iradio_minimal
-.iradio_minimal-red
-.iradio_minimal-green
-.iradio_minimal-blue
-.iradio_minimal-aero
-.iradio_minimal-grey
-.iradio_minimal-orange
-.iradio_minimal-yellow
-.iradio_minimal-pink
-.iradio_minimal-purple
- position absolute
- top 1px
- left 0
-
-.skin input[type=checkbox]
-.skin input[type=radio]
- position absolute
- top 2px
- left 0
-
-.icheckbox_square
-.icheckbox_square-red
-.icheckbox_square-green
-.icheckbox_square-blue
-.icheckbox_square-aero
-.icheckbox_square-grey
-.icheckbox_square-orange
-.icheckbox_square-yellow
-.icheckbox_square-pink
-.icheckbox_square-purple
-.iradio_square
-.iradio_square-red
-.iradio_square-green
-.iradio_square-blue
-.iradio_square-aero
-.iradio_square-grey
-.iradio_square-orange
-.iradio_square-yellow
-.iradio_square-pink
-.iradio_square-purple
- position absolute
- top -1px
- left 0
-
-.icheckbox_flat
-.icheckbox_flat-red
-.icheckbox_flat-green
-.icheckbox_flat-blue
-.icheckbox_flat-aero
-.icheckbox_flat-grey
-.icheckbox_flat-orange
-.icheckbox_flat-yellow
-.icheckbox_flat-pink
-.icheckbox_flat-purple
-.iradio_flat
-.iradio_flat-red
-.iradio_flat-green
-.iradio_flat-blue
-.iradio_flat-aero
-.iradio_flat-grey
-.iradio_flat-orange
-.iradio_flat-yellow
-.iradio_flat-pink
-.iradio_flat-purple
- position absolute
- top 0
- left 0
-
-.icheckbox_polaris
-.iradio_polaris
- position absolute
- top -4px
- left -6px
-
-.icheckbox_futurico
-.iradio_futurico
- position absolute
- top 2px
- left 0
-
-.skin-states
- float right
- padding-right 57px
- padding-left 0
-
- .state
- cursor default !important
-
- .list
- padding-right 0
-
- .skin-minimal & .list li
- padding-left 71px
-
- .skin-square & .list li
- padding-left 79px
-
- .skin-flat & .list li
- padding-left 75px
-
- .skin-line & .list
- padding-right 0
-
- .skin-polaris & .list li
- padding-left 69px
-
- .skin-futurico & .list li
- padding-left 67px
-
- .iradio_minimal
- .iradio_minimal-red
- .iradio_minimal-green
- .iradio_minimal-blue
- .iradio_minimal-aero
- .iradio_minimal-grey
- .iradio_minimal-orange
- .iradio_minimal-yellow
- .iradio_minimal-pink
- .iradio_minimal-purple
- left 33px
-
- .iradio_square
- .iradio_square-red
- .iradio_square-green
- .iradio_square-blue
- .iradio_square-aero
- .iradio_square-grey
- .iradio_square-orange
- .iradio_square-yellow
- .iradio_square-pink
- .iradio_square-purple
- left 37px
-
- .iradio_flat
- .iradio_flat-red
- .iradio_flat-green
- .iradio_flat-blue
- .iradio_flat-aero
- .iradio_flat-grey
- .iradio_flat-orange
- .iradio_flat-yellow
- .iradio_flat-pink
- .iradio_flat-purple
- left 35px
-
- .iradio_polaris
- left 26px
-
- .iradio_futurico
- left 31px
-
-.colors
- clear both
- padding 24px 0 9px
-
- .skin-line &
- padding-top 28px
-
- strong
- float left
- line-height 20px
- margin-right 20px
-
- li
- position relative
- float left
- width 16px
- height 16px
- margin 2px 1px 0 0
- background #000
- cursor pointer
- filter unquote('alpha(opacity=50)')
- opacity .5
- -webkit-transition opacity .2s
- -moz-transition opacity .2s
- -ms-transition opacity .2s
- -o-transition opacity .2s
- transition opacity .2s
-
- &:hover
- filter unquote('alpha(opacity=100)')
- opacity 1
-
- &.active
- height 20px
- margin-top 0
- filter unquote('alpha(opacity=75)')
- opacity .75
-
- &.red
- background #d54e21
-
- &.green
- background #78a300
-
- &.blue
- background #0e76a8
-
- &.aero
- background #9cc2cb
-
- &.grey
- background #73716e
-
- &.orange
- background #f70
-
- &.yellow
- background #fc0
-
- &.pink
- background #ff66b5
-
- &.purple
- background #6a5a8c
-
- .skin-square &.red
- background #e56c69
-
- .skin-square &.green
- background #1b7e5a
-
- .skin-square &.blue
- background #2489c5
-
- .skin-square &.aero
- background #9cc2cb
-
- .skin-square &.grey
- background #73716e
-
- .skin-square &.yellow
- background #fc3
-
- .skin-square &.pink
- background #a77a94
-
- .skin-square &.purple
- background #6a5a8c
-
- .skin-square &.orange
- background #f70
-
- .skin-flat &.red
- background #ec7063
-
- .skin-flat &.green
- background #1abc9c
-
- .skin-flat &.blue
- background #3498db
-
- .skin-flat &.grey
- background #95a5a6
-
- .skin-flat &.orange
- background #f39c12
-
- .skin-flat &.yellow
- background #f1c40f
-
- .skin-flat &.pink
- background #af7ac5
-
- .skin-flat &.purple
- background #8677a7
-
- .skin-line &.yellow
- background #FFC414
-
-.skins-info
- padding 13px 0 57px
- font-size 16px
- line-height 22px
- text-align center
-
- p
- margin-bottom 17px
-
-.skin-pre
- padding 43px 60px 0
-
-.skin-usage
- padding 19px 60px 8px
- list-style decimal outside
-
- li
- margin-bottom 23px
-
- .schemes
- margin-bottom -3px
- padding 13px 0 0 20px
- color #888
-
- ul
- float left
- padding-right 60px
-
- li
- margin 0
- padding-bottom 3px
-
-.usage
- position relative
- margin-bottom 80px
- background #fff
-
- a
- border-bottom-color #ddd
-
- .self
- border-bottom-color #bbb
-
- .arrows
- top 0
-
- &:hover .arrows .top
- &:hover .arrows .bottom
- left 0
-
- h2
- color #fff
- background #1f7f5c
-
- h4
- margin 26px 0 10px
-
- &.indeterminate
- margin-top 28px
-
- p
- margin-bottom 5px
-
- &.offset
- margin-top 10px
-
- &.callbacks-info
- margin-bottom 19px
-
- &.methods-info
- margin-bottom 10px
-
- &.methods-callback
- margin-top 10px
-
- &.issue-tracker
- margin-top 31px
-
- .markup
- margin 9px 0 16px
-
- .usage-inner
- font-size 15px
- line-height 23px
- padding 41px 60px 39px
-
-.markup
- margin 10px 0 18px
- padding 8px 0 9px 17px
- font 14px/20px $stack
- color lighten(#555, 20%)
- background lighten(#d7d4cc, 40%)
- border-left 3px solid darken(#ebeae5, 10%)
-
- .comment
- color lighten(#555, 40%)
-
- .self
- color #555
-
- &:hover
- color #333
-
- .skin-polaris &
- background darken(#2C323C, 20%)
- border-left-color darken(#2C323C, 30%)
-
- .skin-futurico &
- background darken(#2E3035, 20%)
- border-left-color darken(#2E3035, 30%)
-
- .skin-polaris &
- .skin-futurico &
-
- .comment
- color #555
-
-.browsers
- margin-bottom 74px
-
- h2
- margin-bottom 29px
- font-size 24px
-
-.browsers-inner
- padding 0 60px
- font-size 15px
- line-height 23px
-
- p
- margin-bottom 15px
-
-.benefits
- position relative
- margin-bottom 59px
- color #888
- background #232323
-
- .arrows
- top 0
-
- &:hover .arrows .top
- &:hover .arrows .bottom
- left 0
-
- h2
- color #fff
- background #6a5b8c
-
- a
- color #888
- border-bottom-color #444
-
- &:hover
- color #aaa
-
- .mark
- color #777
- background lighten(#232323, 10%)
-
-.benefits-inner
- padding 41px 60px 29px
- font-size 15px
- line-height 23px
-
- p
- margin-bottom 15px
-
- ul
- margin -10px 0 15px
-
-.download
- height 63px
- text-align center
-
- a
- display block
- height 60px
- font-size 18px
- line-height 58px
- color #fff
- border-bottom 0 solid darken(#E76B66, 10%)
- background #E76B66
- -webkit-transition border-bottom .2s
- -moz-transition border-bottom .2s
- -ms-transition border-bottom .2s
- -o-transition border-bottom .2s
- transition border-bottom .2s
-
- &:before
- content ''
- display inline-block
- width 26px
- height 26px
- margin-right 12px
- background url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAACYUlEQVR4Xr3VPWhTURjH4VOt0ES7ZRJbEJpsNsaimx9E0GpRCdgU/NhsRAdNBYcK0RirQcSkIIK2cRBRiragVayDhqBDLVWatFvsIKK2UMEp4KBcf8N/KNdwvcHWAw8c/rzvebk5yU2dZVnmf6wVNdb70Ca+5Rrkx0e8E/ZkyzCoAyuxBZu17/jXQV34jjwCytowjUk90Ywyo5q8errcDoriPgpoRhEj6MQrGHmpbARF1RbUG3Uz6Bae4iBacQNNSKEPRi4pa1JNq3pGcds+qNrXu4B1CKKCWtZqlPAZO/72RDGsRdKWh5ATIdOSpHpjbu6ojBfYBiPdOIQeHJMeZd0wsh1jKDsNakEc97AHo8o3IYCz2I1nGMYuZQHVGPXs1RlxtNgH+TCFtBpvIqua40ghqkGdOIp27VOqMcigX8PTKIKzWXwZDDbAQhDG5o6yx2iAkQY80T4HYxOEpbP/uCOnN+wq1Nlq6x3qrWp3NIcKJvAWV+FVzU804i6uwyNZZY34BaOeyzpjQmfOLR70DSGcwyxOIa7mAZzHQ+QxLHllCdUYnMYZzOqsjeBsPbp8QFZ7Lw7gCt4jhGu4qCEGa5SVVWPUM4Yjbn5HfrTjNYzk8AAZ5CSjbBBG3qjXr0CqX+YAviJpy6cQg9NKIoJBN6+gIGbwA16kMY5eeGDEo2xcNV71TCPo5qM7iX14hJIueB4XkICRhLJ51ZTUsx8n3AwawmGE8QUhRDR4J4yElUUQUm1YvUPOfxPO4khj66KL70W/m+Z6uF3P0YdJBRVlZqkHlbEezQo+YWHJB8mC1Lx+Ayeq7nRIoewwAAAAAElFTkSuQmCC")
- *background-image url(ie/icon-options.png)
- vertical-align middle
-
- &:hover
- border-bottom-width 3px
-
-.license
- color #444
- text-align center
- padding 30px 0 75px
-
-.footer
- padding-top 28px
- height 60px
- color #666
- background #e2dfd8
-
- ul
- float left
-
- li
- float left
- padding 2px 10px 0 0
-
- &.local li
- padding 0 30px 0 0
-
- .code
- float right
-
- a
- color #444
-
- &:hover
- color #222
-
-.footer-inner
- width 930px
- margin 0 auto
- overflow hidden
-
-.fork-me
- position fixed
- *position absolute
- top 0
- right 0
- width 40px
- height 40px
- overflow hidden
- text-indent 100%
- white-space nowrap
- background #28545b url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAnElEQVR4XqVSgQmEMAyszw/gCI7wK7iBblBHcISfxG6gG/gjuIGO0A3ygaYQCCG2HhweF+6aShsAcDcBJBpuvlwFagqGJwUf5EL6kgV2eEe2yIgc9QI73CMPs8AOywI7nHDSzCxYxcnJ6+hrFnQkJrb2nGclP3Fj+vf0IUV1AgCZHiS86lOObxD4qqSD5mtXmAq1e2fB3vqXact3f/JmXumJlVq1AAAAAElFTkSuQmCC") 50% no-repeat
- *background-image url(ie/icon-fork.png)
-
- &:hover
- background-color #1f7f5c
-
-.skin dt
-.fork-me
- -webkit-transition background-color .2s
- -moz-transition background-color .2s
- -ms-transition background-color .2s
- -o-transition background-color .2s
- transition background-color .2s
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/icheck.png b/common/src/main/webapp/thirdparty/icheck/demo/css/icheck.png
deleted file mode 100644
index 497c5e6..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/icheck.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-bottom.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-bottom.png
deleted file mode 100644
index a815b3f..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-bottom.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-top.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-top.png
deleted file mode 100644
index 0836c0e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-top.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/header-line.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/header-line.png
deleted file mode 100644
index f6240fe..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/header-line.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-fork.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-fork.png
deleted file mode 100644
index 2c3e3b9..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-fork.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-github.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-github.png
deleted file mode 100644
index ed78186..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-github.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-lab.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-lab.png
deleted file mode 100644
index 4d42726..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-lab.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-options.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-options.png
deleted file mode 100644
index 20cbb61..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-options.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-star.png b/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-star.png
deleted file mode 100644
index a1c1169..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-star.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.eot b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.eot
deleted file mode 100644
index 69ddb38..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.svg b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.svg
deleted file mode 100644
index b7e99a4..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.svg
+++ /dev/null
@@ -1,1490 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="montserratbold" horiz-adv-x="1525" >
-<font-face units-per-em="2048" ascent="1638" descent="-410" />
-<missing-glyph horiz-adv-x="540" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="682" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="0" />
-<glyph unicode="&#xd;" horiz-adv-x="681" />
-<glyph unicode=" " horiz-adv-x="540" />
-<glyph unicode="&#x09;" horiz-adv-x="540" />
-<glyph unicode="&#xa0;" horiz-adv-x="540" />
-<glyph unicode="!" horiz-adv-x="645" d="M141 1432h363v-254l-62 -738h-241l-60 738v254zM141 164q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128z" />
-<glyph unicode="&#x22;" horiz-adv-x="886" d="M145 883v549h244v-549h-244zM498 883v549h243v-549h-243z" />
-<glyph unicode="#" horiz-adv-x="1529" d="M1386 850h-206l-43 -256h235l-55 -283h-227l-54 -311h-307l53 311h-186l-53 -311h-310l54 311h-197l55 283h191l43 256h-219l55 283h211l55 331h310l-56 -331h185l55 331h311l-59 -331h215zM874 850h-186l-45 -256h186q27 164 45 256z" />
-<glyph unicode="$" horiz-adv-x="1300" d="M553 -141v149q-260 41 -479 236l190 231q160 -139 289 -178v305q-215 55 -315.5 148.5t-100.5 268.5t115 288.5t301 136.5v100h217v-104q205 -29 408 -170l-168 -242q-129 92 -240 123v-295q221 -57 326.5 -153.5t105.5 -272.5t-117.5 -290.5t-314.5 -137.5v-143h-217z M874 414q0 43 -22.5 71.5t-81.5 53.5v-252q104 33 104 127zM553 1159q-88 -31 -88 -112.5t88 -124.5v237z" />
-<glyph unicode="%" horiz-adv-x="1677" d="M1522 1432l-1026 -1432h-353l1028 1432h351zM1239 170q37 0 61.5 27.5t24.5 72.5t-24.5 75t-60.5 30t-60.5 -30t-24.5 -75t23.5 -72.5t60.5 -27.5zM1456 67q-86 -83 -216 -83t-216 84t-86 203.5t86 203.5t216 84t216 -84t86 -204.5t-86 -203.5zM432 1008q37 0 61.5 27.5 t24.5 72.5t-24.5 74.5t-60.5 29.5t-60.5 -29.5t-24.5 -74.5t23.5 -72.5t60.5 -27.5zM649 904q-86 -83 -216 -83t-216 84t-86 204t86 204t216 84t216 -84t86 -205t-86 -204z" />
-<glyph unicode="&#x26;" horiz-adv-x="1433" d="M1012 123q-172 -139 -398.5 -139t-372 115.5t-145.5 316.5q0 225 301 399q-68 82 -98.5 144.5t-30.5 146.5q0 174 126 266t298 92t294 -89t122 -249q0 -201 -293 -372q115 -143 172 -207q51 94 78 198l240 -172q-47 -129 -115 -239l203 -201l-203 -192zM460.5 287 q59.5 -47 154 -47t202.5 90q-150 158 -258 286q-158 -98 -158 -210q0 -72 59.5 -119zM611 1191q-36 -32 -36 -86t82 -157q154 82 154 154q0 59 -37 90t-82 31t-81 -32z" />
-<glyph unicode="'" horiz-adv-x="534" d="M145 883v549h244v-549h-244z" />
-<glyph unicode="(" horiz-adv-x="741" d="M482 1115q-85 -253 -85 -473t85 -474t208 -428h-332q-100 141 -183 398t-83 503t83 504t183 399h332q-123 -176 -208 -429z" />
-<glyph unicode=")" horiz-adv-x="741" d="M259 168q85 254 85 474t-85 473t-208 429h332q100 -141 183 -399t83 -504t-83 -503t-183 -398h-332q123 174 208 428z" />
-<glyph unicode="*" horiz-adv-x="933" d="M569 915l13 -172h-230l13 172l-146 -100l-104 186l172 86l-174 87l106 182l146 -96l-13 172h230l-13 -172l146 96l106 -182l-174 -87l172 -86l-104 -186z" />
-<glyph unicode="+" horiz-adv-x="1196" d="M457 223v369h-359v252h359v368h282v-368h359v-252h-359v-369h-282z" />
-<glyph unicode="," horiz-adv-x="608" d="M186 25q-72 51 -71.5 133t55.5 134t133 52t134.5 -51t56.5 -120t-60 -165l-123 -211h-202z" />
-<glyph unicode="-" horiz-adv-x="1003" d="M137 479v273h729v-273h-729z" />
-<glyph unicode="." horiz-adv-x="589" d="M115 164q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128z" />
-<glyph unicode="/" horiz-adv-x="1257" d="M913 1649h291l-860 -1878h-289z" />
-<glyph unicode="0" horiz-adv-x="1413" d="M428 723q0 -215 67.5 -346t211 -131t211 131t67.5 346t-67.5 346t-211 131t-211 -131t-67.5 -346zM262.5 185.5q-147.5 201.5 -147.5 538.5t147.5 538.5t444.5 201.5t444 -201.5t147 -538.5t-147 -538.5t-444 -201.5t-444.5 201.5z" />
-<glyph unicode="1" horiz-adv-x="825" d="M63 1432h580v-1432h-307v1159h-273v273z" />
-<glyph unicode="2" horiz-adv-x="1239" d="M720 873.5q54 76.5 54 148.5t-47 120t-121 48q-135 0 -256 -193l-256 152q100 156 220 235.5t305.5 79.5t325.5 -117.5t140 -320.5q0 -111 -56 -212t-208 -259l-258 -268h565v-287h-1009v238l420 430q127 129 181 205.5z" />
-<glyph unicode="3" horiz-adv-x="1210" d="M154 1159v273h876v-222l-293 -333q172 -29 266.5 -145t94.5 -267q0 -225 -152.5 -353t-390.5 -128t-481 168l131 254q203 -143 362 -144q96 0 158.5 47t62.5 136.5t-71.5 141.5t-198.5 52q-68 0 -190 -39v236l274 323h-448z" />
-<glyph unicode="4" horiz-adv-x="1204" d="M649 618v250h307v-250h162v-276h-162v-342h-307v342h-575v244l510 846h348l-486 -814h203z" />
-<glyph unicode="5" horiz-adv-x="1220" d="M1036 1432v-277h-565v-240q63 18 145 19q207 0 356.5 -125t149.5 -337t-154.5 -350t-381.5 -138q-291 0 -486 215l168 233q18 -18 49 -45t113 -71t164 -44t145.5 49.5t63.5 145.5t-68.5 148.5t-177 52.5t-252.5 -78l-133 143v699h864z" />
-<glyph unicode="6" horiz-adv-x="1290" d="M725 1190q-133 0 -206 -89t-89 -243q133 86 283 86q201 0 335 -131t134 -349t-144.5 -349t-363.5 -131q-152 0 -263.5 58t-172.5 163q-123 203 -123 508q0 197 48 345t132 234q164 172 405 172q100 0 191.5 -29.5t140.5 -60.5t109 -78l-152 -225q-12 12 -35.5 32.5 t-93 53.5t-135.5 33zM523.5 617.5q-64.5 -56.5 -64.5 -146.5t61.5 -154.5t153.5 -64.5t153.5 57.5t61.5 148.5t-55.5 153.5t-150.5 62.5t-159.5 -56.5z" />
-<glyph unicode="7" horiz-adv-x="1185" d="M96 973v459h1034v-242l-579 -1190h-348l553 1157h-361v-184h-299z" />
-<glyph unicode="8" horiz-adv-x="1314" d="M657 1464q213 0 354.5 -112.5t141.5 -277.5t-127 -283q178 -137 178 -361q0 -188 -151.5 -317t-395 -129t-395 129t-151.5 317q0 223 178 361q-129 121 -129 284.5t142 276t355 112.5zM657 250q84 0 156 48t72 140t-70 141.5t-158 49.5t-157.5 -49.5t-69.5 -141.5 t71.5 -140t155.5 -48zM657.5 874q77.5 0 136 49.5t58.5 122t-57.5 122t-137 49.5t-137 -49.5t-57.5 -122t58.5 -122t136 -49.5z" />
-<glyph unicode="9" horiz-adv-x="1288" d="M563 258q133 0 206 89t89 243q-131 -88 -283 -88q-201 0 -335 132t-134 349t144.5 349t363.5 132q152 0 263.5 -58t175.5 -163q121 -203 121 -508q0 -197 -48.5 -345t-130.5 -234q-168 -172 -407 -172q-100 0 -192.5 29.5t-139.5 59t-109 77.5l160 225q14 -12 38 -31.5 t91.5 -52.5t126.5 -33zM765.5 829.5q63.5 55.5 63.5 145.5t-61 155.5t-153.5 65.5t-150.5 -58.5t-58 -148.5t53 -152.5t148 -62.5t158.5 55.5z" />
-<glyph unicode=":" horiz-adv-x="634" d="M137 164q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128zM137 702.5q0 75.5 52.5 128t128 52.5t128 -52.5t52.5 -128t-52.5 -128t-128 -52.5t-128 52.5t-52.5 128z" />
-<glyph unicode=";" horiz-adv-x="645" d="M211 20q-74 53 -74 135.5t55.5 134.5t134.5 52t135 -51t56 -118t-59 -169l-127 -211h-201zM137 702.5q0 75.5 52.5 128t128 52.5t128 -52.5t52.5 -128t-52.5 -128t-128 -52.5t-128 52.5t-52.5 128z" />
-<glyph unicode="&#x3c;" horiz-adv-x="1230" d="M84 668v280l995 469v-301l-657 -303l657 -311v-303z" />
-<glyph unicode="=" horiz-adv-x="1202" d="M102 1102h998v-252h-998v252zM102 592h998v-252h-998v252z" />
-<glyph unicode="&#x3e;" horiz-adv-x="1230" d="M1147 948v-280l-995 -469v303l657 311l-657 303v301z" />
-<glyph unicode="?" horiz-adv-x="1073" d="M678 426h-311v154q0 84 21.5 126t90.5 113l139 144q31 37 31 95t-32.5 97t-86 39t-89 -46t-44.5 -122h-325q23 205 149.5 321.5t318 116.5t311.5 -104.5t120 -288.5q0 -82 -20.5 -122t-29 -57.5t-38 -52t-39.5 -44.5q-49 -49 -93 -92.5t-58.5 -71t-14.5 -82.5v-123z M346 164q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128z" />
-<glyph unicode="@" horiz-adv-x="1824" d="M1409 250q55 0 97 88t42 221q0 289 -165.5 478.5t-444.5 189.5t-469 -199t-190 -476.5t179 -461.5t443 -184q207 0 365 151l84 -145q-82 -72 -209 -116t-240 -44q-342 0 -572.5 228.5t-230.5 571.5t243 585.5t585 242.5t571 -233.5t229 -581.5q0 -225 -93 -361t-244 -136 q-78 0 -142.5 47t-89.5 118q-113 -145 -286 -145t-301 131t-128 333t116 340t304 138q63 0 120.5 -27.5t82.5 -54.5l27 -26v84h256v-654q0 -102 61 -102zM1039.5 729.5q-54.5 67.5 -142.5 67.5t-140 -67.5t-52 -167t52 -173.5t142 -74t142.5 71t52.5 173.5t-54.5 170z" />
-<glyph unicode="A" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358z" />
-<glyph unicode="B" horiz-adv-x="1411" d="M803 0h-627v1432h557q145 0 251 -35t159 -94q96 -111 96 -250q0 -168 -109 -250q-37 -29 -51 -36t-51 -24q133 -29 212 -120t79 -226q0 -150 -102 -264q-119 -133 -414 -133zM496 852h151q133 0 197.5 28.5t64.5 124t-59 126t-201 30.5h-153v-309zM496 270h219 q137 0 205.5 34t68.5 133.5t-72.5 131t-232.5 31.5h-188v-330z" />
-<glyph unicode="C" horiz-adv-x="1499" d="M834 283q236 0 385 186l204 -211q-244 -274 -574.5 -274t-544.5 208.5t-214 527t218 531.5t534 213q352 0 590 -268l-199 -225q-152 188 -377 188q-180 0 -308 -117.5t-128 -317.5t121 -320.5t293 -120.5z" />
-<glyph unicode="D" horiz-adv-x="1574" d="M1270 1244.5q205 -187.5 205 -521.5t-200 -528.5t-609 -194.5h-490v1432h506q383 0 588 -187.5zM1035.5 393.5q117.5 110.5 117.5 321.5t-117.5 324.5t-361.5 113.5h-178v-870h202q220 0 337.5 110.5z" />
-<glyph unicode="E" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032z" />
-<glyph unicode="F" horiz-adv-x="1253" d="M1159 1432v-281h-663v-309h630v-281h-630v-561h-320v1432h983z" />
-<glyph unicode="G" horiz-adv-x="1536" d="M1106 729h321v-508q-213 -238 -589 -237q-315 0 -529.5 208.5t-214.5 527t218 531.5t526.5 213t535.5 -202l-166 -240q-96 84 -177 115.5t-175 31.5q-182 0 -307 -123.5t-125 -326.5t120 -325t285.5 -122t276.5 64v393z" />
-<glyph unicode="H" horiz-adv-x="1560" d="M1065 1432h319v-1432h-319v563h-569v-563h-320v1432h320v-598h569v598z" />
-<glyph unicode="I" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432z" />
-<glyph unicode="J" horiz-adv-x="1138" d="M229 1157v275h746v-934q0 -256 -132 -383t-339 -127q-258 0 -451 198l166 230q129 -139 270 -140q68 0 116 52.5t48 156.5v672h-424z" />
-<glyph unicode="K" horiz-adv-x="1454" d="M176 1432h320v-588l540 588h396l-570 -633q74 -102 272.5 -382t297.5 -417h-373l-420 565l-143 -159v-406h-320v1432z" />
-<glyph unicode="L" horiz-adv-x="1163" d="M176 0v1432h320v-1147h610v-285h-930z" />
-<glyph unicode="M" horiz-adv-x="1953" d="M1458 901l-387 -782h-190l-385 782v-901h-320v1432h432l369 -787l371 787h430v-1432h-320v901z" />
-<glyph unicode="N" horiz-adv-x="1673" d="M1178 1432h319v-1432h-319l-682 897v-897h-320v1432h299l703 -922v922z" />
-<glyph unicode="O" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212z" />
-<glyph unicode="P" horiz-adv-x="1386" d="M1162.5 1304q150.5 -128 150.5 -393.5t-154.5 -388.5t-472.5 -123h-190v-399h-320v1432h506q330 0 480.5 -128zM927.5 740.5q57.5 64.5 57.5 188.5t-74.5 176t-232.5 52h-182v-481h215q159 0 216.5 64.5z" />
-<glyph unicode="Q" horiz-adv-x="1693" d="M1597 725q0 -223 -113.5 -401.5t-305.5 -266.5q18 -31 58 -52t83 -21t84 13t65 32q53 43 76 84l166 -199q-176 -186 -440 -186q-123 0 -242 67.5t-182 190.5q-317 0 -534.5 212t-217.5 527t217 527t534.5 212t534.5 -212t217 -527zM1149 1050.5q-123 135.5 -302 135.5 t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327z" />
-<glyph unicode="R" horiz-adv-x="1488" d="M1337 956q0 -344 -272 -444l362 -512h-393l-317 457h-221v-457h-320v1432h543q334 0 476 -113t142 -363zM952.5 786.5q59.5 53.5 59.5 169t-61.5 158.5t-215.5 43h-239v-424h233q164 0 223.5 53.5z" />
-<glyph unicode="S" horiz-adv-x="1306" d="M511 1146q-46 -38 -46 -100.5t56.5 -99.5t260 -87t316 -150.5t112.5 -293t-144 -312t-380 -119.5q-340 0 -612 252l190 233q231 -203 428 -203q88 0 138.5 38t50.5 102.5t-53.5 102.5t-211.5 77q-250 59 -365.5 154.5t-115.5 299t146.5 314t365.5 110.5q143 0 286.5 -49 t250.5 -139l-162 -234q-186 141 -385 142q-80 0 -126 -38z" />
-<glyph unicode="T" horiz-adv-x="1245" d="M782 1155v-1155h-319v1155h-406v277h1131v-277h-406z" />
-<glyph unicode="U" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5z" />
-<glyph unicode="V" horiz-adv-x="1409" d="M705 520l364 912h346l-575 -1432h-271l-575 1432h346z" />
-<glyph unicode="W" horiz-adv-x="2086" d="M623 608l254 824h333l252 -824l285 824h346l-500 -1432h-237l-314 995l-311 -995h-237l-500 1432h346z" />
-<glyph unicode="X" horiz-adv-x="1423" d="M981 1432h385l-446 -691l483 -741h-389l-305 471l-303 -471h-386l482 733l-449 699h383l273 -424z" />
-<glyph unicode="Y" horiz-adv-x="1265" d="M793 0h-320v565l-496 867h347l309 -533l309 533h346l-495 -867v-565z" />
-<glyph unicode="Z" horiz-adv-x="1394" d="M94 0v219l750 936h-725v277h1161v-222l-748 -931h760v-279h-1198z" />
-<glyph unicode="[" horiz-adv-x="765" d="M684 1550v-231h-264v-1362h264v-231h-526v1824h526z" />
-<glyph unicode="\" horiz-adv-x="1171" d="M57 1550h310l745 -1550h-309z" />
-<glyph unicode="]" horiz-adv-x="765" d="M82 -274v231h264v1362h-264v231h526v-1824h-526z" />
-<glyph unicode="^" horiz-adv-x="989" d="M338 1579h-293l281 363h338l280 -363h-293l-157 174z" />
-<glyph unicode="_" horiz-adv-x="1474" d="M137 -270v178h1200v-178h-1200z" />
-<glyph unicode="`" horiz-adv-x="782" d="M680 1575h-293l-285 229l316 135z" />
-<glyph unicode="a" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134z" />
-<glyph unicode="b" horiz-adv-x="1363" d="M1130.5 963.5q149.5 -156.5 149.5 -402.5t-153.5 -411.5t-349 -165.5t-324.5 161v-145h-308v1520h308v-541q127 141 327.5 141t350 -156.5zM523.5 331q74.5 -85 181 -85t186.5 85t80 218t-78 223t-186.5 90t-183 -89t-74.5 -223t74.5 -219z" />
-<glyph unicode="c" horiz-adv-x="1191" d="M674 256q154 0 276 154l183 -205q-213 -221 -461 -221t-419 156.5t-171 409.5t173 411.5t411 158.5q119 0 240.5 -49t213.5 -145l-159 -209q-53 63 -130 98t-153 35q-121 0 -208 -79t-87 -219t87 -218t204 -78z" />
-<glyph unicode="d" horiz-adv-x="1363" d="M237.5 149.5q-153.5 165.5 -153.5 411.5t149.5 402.5t350 156.5t327.5 -141v541h308v-1520h-308v145q-129 -162 -324.5 -161.5t-349 166zM473 331q80 -85 186.5 -85t181 85t74.5 219t-74.5 223t-183 89t-186.5 -90t-78 -223t80 -218z" />
-<glyph unicode="e" horiz-adv-x="1265" d="M1100 160q-186 -176 -437 -176t-415 154.5t-164 414.5t167 413.5t394 153.5t386 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM804.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151z" />
-<glyph unicode="f" horiz-adv-x="823" d="M512 1165v-73h266v-222h-266v-870h-309v870h-129v222h129v67q0 180 109.5 285.5t272.5 105.5t296 -123l-111 -206q-68 78 -149 77q-47 0 -78 -33.5t-31 -99.5z" />
-<glyph unicode="g" horiz-adv-x="1366" d="M844 782.5q-74 75.5 -182.5 75.5t-187.5 -75.5t-79 -207t77 -212t187.5 -80.5t184.5 79.5t74 212t-74 208zM961 186q-145 -162 -361.5 -161.5t-365 146.5t-148.5 391t152.5 401.5t349 156.5t325.5 -162v146h308v-961q0 -147 -51.5 -261.5t-137.5 -180.5 q-170 -135 -401 -135q-123 0 -251 40t-224 113l118 232q152 -115 321 -115t267.5 84t98.5 266z" />
-<glyph unicode="h" horiz-adv-x="1308" d="M453 594v-594h-308v1520h308v-541q139 141 312 141t292 -123t119 -327v-670h-308v602q0 254 -186 254q-92 0 -160.5 -66.5t-68.5 -195.5z" />
-<glyph unicode="i" horiz-adv-x="598" d="M453 0h-308v1102h308v-1102zM119 1370q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128z" />
-<glyph unicode="j" horiz-adv-x="702" d="M250 -20v1124h307v-1149q0 -180 -109.5 -284.5t-268.5 -104.5t-302 131l141 227q61 -72 138 -71q41 0 67.5 32t26.5 95zM223 1370q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128z" />
-<glyph unicode="k" horiz-adv-x="1218" d="M453 0h-308v1520h308v-781l342 365h387l-420 -447l436 -657h-364l-281 422l-100 -105v-317z" />
-<glyph unicode="l" horiz-adv-x="598" d="M453 0h-308v1520h308v-1520z" />
-<glyph unicode="m" horiz-adv-x="2013" d="M1157 594v-594h-309v602q0 131 -40 192.5t-129 61.5t-157.5 -66.5t-68.5 -195.5v-594h-308v1102h308v-125q127 143 290 143q104 0 189.5 -61.5t128.5 -149.5q63 100 170.5 155.5t216.5 55.5q195 0 313.5 -115.5t118.5 -334.5v-670h-309v602q0 254 -187 254 q-92 0 -159.5 -66.5t-67.5 -195.5z" />
-<glyph unicode="n" horiz-adv-x="1308" d="M453 614v-614h-308v1102h308v-123q139 141 313 141t292 -123t118 -327v-670h-308v623q0 254 -186 254q-92 0 -160.5 -67t-68.5 -196z" />
-<glyph unicode="o" horiz-adv-x="1329" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5z" />
-<glyph unicode="p" horiz-adv-x="1363" d="M1129.5 959.5q150.5 -160.5 150.5 -404.5t-150.5 -407.5t-352.5 -163.5t-324 161v-542h-308v1499h308v-123q141 141 333.5 141t343 -160.5zM523.5 331q74.5 -85 181 -85t186.5 85t80 218t-78 223t-186.5 90t-183 -89t-74.5 -223t74.5 -219z" />
-<glyph unicode="q" horiz-adv-x="1363" d="M241.5 142.5q-157.5 158.5 -157.5 407.5t153.5 409.5t342 160.5t329.5 -141v123h310v-1499h-310v485q-131 -104 -299 -104q-211 0 -368.5 158.5zM473 331q80 -85 186.5 -85t180 85t73.5 219t-73.5 223t-182 89t-186.5 -89t-78 -223t80 -219z" />
-<glyph unicode="r" horiz-adv-x="841" d="M725 831q-137 0 -204.5 -97t-67.5 -257v-477h-308v1102h308v-146q59 68 148 115t181 49l2 -289h-59z" />
-<glyph unicode="s" horiz-adv-x="1064" d="M855 82q-120 -98 -304 -98q-123 0 -256 44t-240 130l135 192q172 -133 367 -133q59 0 94 23.5t35 62.5t-48 72t-139 61.5t-139.5 49t-109.5 59.5q-125 78 -125 230.5t123 248.5t317.5 96t388.5 -131l-114 -205q-143 98 -285.5 98.5t-142.5 -77.5q0 -43 45 -67.5 t149.5 -57.5t148.5 -50.5t105 -54.5q115 -70 115 -232.5t-120 -260.5z" />
-<glyph unicode="t" horiz-adv-x="901" d="M512 881v-494q0 -63 33 -99t78 -36q86 0 145 78l115 -215q-143 -131 -302 -131t-268.5 104.5t-109.5 284.5v508h-129v221h129v330h309v-330h266v-221h-266z" />
-<glyph unicode="u" horiz-adv-x="1310" d="M856 508v594h309v-1102h-309v145q-115 -162 -296 -161.5t-304 114t-123 336.5v668h309v-600q0 -254 187 -254q92 0 159.5 66.5t67.5 193.5z" />
-<glyph unicode="v" horiz-adv-x="1200" d="M442 0l-436 1104h320l274 -694l274 694h320l-436 -1104h-316z" />
-<glyph unicode="w" horiz-adv-x="1847" d="M719 0h-318l-374 1102h317l215 -666l215 666h297l215 -666l215 666h320l-375 -1102h-320l-202 600z" />
-<glyph unicode="x" horiz-adv-x="1198" d="M414 1102l188 -295l195 295h360l-379 -539l393 -563h-366l-215 303l-209 -303h-354l385 561l-365 541h367z" />
-<glyph unicode="y" horiz-adv-x="1208" d="M336 -434q-162 0 -305 131l139 227q78 -76 160 -76q43 0 73.5 42t30.5 89.5t-426 1122.5h328l268 -686l268 686h328l-512 -1299q-45 -113 -140 -175t-212 -62z" />
-<glyph unicode="z" horiz-adv-x="1132" d="M125 848v254h889v-240l-535 -606h565v-256h-958v254l520 594h-481z" />
-<glyph unicode="{" horiz-adv-x="737" d="M637 1300l-43 3q-90 0 -90 -80v-428q0 -109 -76 -160q76 -49 76 -158v-446q0 -68 133 -68v-250h-113q-307 0 -307 293v420q0 84 -47 84h-94v250h94q47 0 47 86v411q0 293 307 293h113v-250z" />
-<glyph unicode="|" horiz-adv-x="565" d="M156 -299v1890h254v-1890h-254z" />
-<glyph unicode="}" horiz-adv-x="737" d="M100 -37l43 -2q90 0 90 80v428q0 109 76 160q-76 49 -76 157v447q0 68 -133 67v250h113q307 0 307 -293v-419q0 -84 47 -84h95v-250h-95q-47 0 -47 -86v-412q0 -293 -307 -293h-113v250z" />
-<glyph unicode="~" horiz-adv-x="1095" d="M731 848q68 0 68 88q0 20 -6 45l245 -66q-12 -170 -90 -246.5t-194 -76.5q-70 0 -200 66.5t-169 66.5t-65.5 -39t-24.5 -111l-244 74q14 164 96 247t211 83q74 0 201 -65.5t172 -65.5z" />
-<glyph unicode="&#xa1;" horiz-adv-x="651" d="M508 0h-363v270l60 738h241l62 -738v-270zM145 1284q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128z" />
-<glyph unicode="&#xa2;" horiz-adv-x="1224" d="M770 -240h-197v232q-203 33 -341 182.5t-138 374.5t137.5 376.5t341.5 184.5v236h197v-234q209 -31 363 -186l-160 -209q-84 96 -203 123v-572q53 16 101.5 51t70.5 62l21 29l182 -205q-170 -178 -375 -211v-234zM444.5 726q-49.5 -71 -49.5 -174t49.5 -175t128.5 -101 v551q-79 -30 -128.5 -101z" />
-<glyph unicode="&#xa3;" horiz-adv-x="1286" d="M604 1040v-223h320v-258h-320v-287h570v-272h-1047v272h156v287h-164v258h164v211q0 254 130 369.5t341 115.5q283 0 430 -258l-228 -184q-33 76 -84 119t-112.5 43t-108.5 -46.5t-47 -146.5z" />
-<glyph unicode="&#xa4;" horiz-adv-x="1558" d="M291 334q-94 137 -94 314t90 315l-172 174l192 194l182 -182q133 72 291 72t289 -74l182 184l193 -194l-172 -176q90 -139 90 -312.5t-96 -314.5l178 -180l-191 -195l-190 193q-135 -70 -287.5 -70t-279.5 70l-191 -193l-190 195zM778.5 356q114.5 0 188 83t73.5 212 t-73.5 211t-188 82t-188.5 -82t-74 -211t74 -212t188.5 -83z" />
-<glyph unicode="&#xa5;" horiz-adv-x="1517" d="M221 459h365v112h-365v197h234l-385 662h348l338 -584l350 584h346l-397 -662h225v-197h-360v-112h360v-197h-360v-262h-334v262h-365v197z" />
-<glyph unicode="&#xa6;" horiz-adv-x="602" d="M164 838v706h274v-706h-274zM164 -47v704h274v-704h-274z" />
-<glyph unicode="&#xa7;" horiz-adv-x="1273" d="M523 1233q-38 -31 -38 -83t48.5 -84t191.5 -69q246 -59 352.5 -142t106.5 -239q0 -207 -209 -292q131 -88 131 -236.5t-125 -253t-334 -104.5q-293 0 -538 223l172 207q215 -180 372.5 -180t157.5 98q0 49 -57.5 84t-240.5 88t-297 140t-114 253q0 86 50.5 163t144.5 118 q-111 78 -111 211q0 168 125 273t320 105q135 0 241.5 -37.5t223.5 -123.5l-154 -219q-172 131 -315 131q-66 0 -104 -31zM375 651q0 -78 99 -128t253 -50q78 0 131 34t53 89q0 84 -121.5 125t-220.5 41q-194 0 -194 -111z" />
-<glyph unicode="&#xa8;" horiz-adv-x="1087" d="M195 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM590 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xa9;" horiz-adv-x="1687" d="M1583 717q0 -305 -216 -523.5t-525.5 -218.5t-523.5 216.5t-214 521.5t216.5 524t523.5 219t523 -217t216 -522zM1432 716.5q0 241.5 -172.5 414t-415 172.5t-415.5 -174.5t-173 -416t170 -413.5t415.5 -172t418 174t172.5 415.5zM852 299q-172 0 -297 116.5t-125 305 t129 306.5t317.5 118t327.5 -146l-123 -153q-82 98 -207 98q-88 0 -150 -58.5t-62 -161.5t64.5 -163.5t154.5 -60.5q133 0 204 118l127 -153q-157 -166 -360 -166z" />
-<glyph unicode="&#xaa;" horiz-adv-x="733" d="M592 938h-152v63q-45 -70 -133 -69.5t-145.5 47.5t-57.5 125t60.5 118t163.5 40h104v6q0 88 -78 88q-61 0 -127 -29l-20 -10l-49 90q88 57 198 57q236 0 236 -194v-332zM430 1135v30h-90q-74 0 -74 -61q0 -29 18.5 -45.5t54.5 -16.5t63.5 25t27.5 68z" />
-<glyph unicode="&#xab;" horiz-adv-x="1236" d="M657 879l-241 -377l241 -379h-309l-250 379l250 377h309zM1118 879l-241 -377l241 -379h-309l-250 379l250 377h309z" />
-<glyph unicode="&#xac;" horiz-adv-x="1673" d="M129 911h1370v-731h-229v490h-1141v241z" />
-<glyph unicode="&#xad;" horiz-adv-x="1003" d="M137 479v273h729v-273h-729z" />
-<glyph unicode="&#xae;" horiz-adv-x="1687" d="M1583 717q0 -305 -216 -523.5t-525.5 -218.5t-523.5 216.5t-214 521.5t216.5 524t523.5 219t523 -217t216 -522zM1268 309q164 170 164 409.5t-172.5 412t-415 172.5t-415.5 -174.5t-173 -416t170 -413.5t418 -172t420 178h-238l-178 256h-90v-256h-226v832h330 q197 0 281 -68t84 -217q0 -182 -166 -254zM975 771q29 26 29 82t-30 77.5t-104 21.5h-112v-207h108q80 0 109 26z" />
-<glyph unicode="&#xaf;" horiz-adv-x="905" d="M795 1407v-238h-682v238h682z" />
-<glyph unicode="&#xb0;" horiz-adv-x="876" d="M438.5 1462q141.5 0 241.5 -98t100 -236.5t-100 -235.5t-241.5 -97t-242 97t-100.5 235.5t100.5 236.5t242 98zM334 1011q43 -48 104.5 -48t103.5 47t42 116.5t-42 116.5t-103.5 47t-104.5 -47t-43 -115.5t43 -116.5z" />
-<glyph unicode="&#xb1;" horiz-adv-x="1189" d="M453 1335h282v-295h357v-239h-357v-285h-282v285h-355v239h355v295zM98 414h994v-232h-994v232z" />
-<glyph unicode="&#xb2;" horiz-adv-x="899" d="M491.5 1111q30.5 42 30.5 79t-22.5 61.5t-57.5 24.5q-68 0 -143 -121l-178 107q66 100 140.5 151t190 51t203.5 -72.5t88 -197.5q0 -66 -34.5 -127t-126.5 -158l-127 -133h313v-196h-629v157l250 258q72 74 102.5 116z" />
-<glyph unicode="&#xb3;" horiz-adv-x="892" d="M156 1243v189h557v-150l-162 -186q96 -25 148.5 -95.5t52.5 -158.5q0 -137 -95.5 -217t-244 -80t-308.5 110l95 170q117 -88 219 -88q49 0 80.5 24.5t31.5 74t-44 75t-111.5 25.5t-118.5 -25v154l150 178h-250z" />
-<glyph unicode="&#xb4;" horiz-adv-x="782" d="M395 1579h-293l260 363l318 -134z" />
-<glyph unicode="&#xb5;" horiz-adv-x="1325" d="M162 -379v1481h309v-600q0 -254 186 -254q92 0 160 66.5t68 193.5v594h309v-1102h-309v92q-121 -109 -291 -108q-72 0 -123 14v-377h-309z" />
-<glyph unicode="&#xb6;" horiz-adv-x="1458" d="M70 1122q0 180 123.5 303t377.5 123h701v-1763h-273v1509h-200v-1509h-267v928h-40q-266 0 -369 196q-53 100 -53 213z" />
-<glyph unicode="&#xb7;" horiz-adv-x="610" d="M125 651q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128z" />
-<glyph unicode="&#xb8;" horiz-adv-x="575" d="M500 -260q0 -88 -73 -153.5t-183.5 -65.5t-214.5 65l77 176q45 -39 80 -38.5t54.5 18.5t19.5 46t-24.5 49.5t-58.5 21.5t-73 -19l84 160h236l-57 -104q133 -45 133 -156z" />
-<glyph unicode="&#xb9;" horiz-adv-x="610" d="M82 1432h379v-867h-219v680h-160v187z" />
-<glyph unicode="&#xba;" horiz-adv-x="804" d="M326.5 1085.5q29.5 -34.5 76 -34.5t76 34.5t29.5 91t-29.5 92.5t-76 36t-76 -36t-29.5 -92.5t29.5 -91zM618.5 972q-86.5 -83 -216.5 -83t-216 84t-86 203.5t86 203.5t216 84t216.5 -84t86.5 -204.5t-86.5 -203.5z" />
-<glyph unicode="&#xbb;" horiz-adv-x="1236" d="M821 502l-241 377h309l250 -377l-250 -379h-309zM360 502l-241 377h309l250 -377l-250 -379h-309z" />
-<glyph unicode="&#xbc;" horiz-adv-x="1751" d="M1151 1544h235l-745 -1560h-235zM74 1430h377v-865h-220v678h-157v187zM1395 537h186v-172h94v-164h-94v-201h-186v201h-367v157l301 506h225l-299 -499h140v172z" />
-<glyph unicode="&#xbd;" horiz-adv-x="1798" d="M1128 1544h238l-745 -1560h-238zM74 1432h377v-867h-220v680h-157v187zM1433.5 531q30.5 42 30.5 79t-22.5 61.5t-57.5 24.5q-68 0 -143 -121l-178 107q66 100 140.5 151.5t190 51.5t204 -73t88.5 -198q0 -66 -35 -127t-127 -157l-127 -133h313v-197h-629v158l250 258 q72 73 102.5 115z" />
-<glyph unicode="&#xbe;" horiz-adv-x="1845" d="M1243 1544h236l-746 -1560h-235zM131 1243v189h557v-150l-162 -186q96 -25 148.5 -95.5t52.5 -158.5q0 -137 -95 -217t-243.5 -80t-308.5 110l94 170q117 -88 219 -88q49 0 81 24.5t32 74t-44 75t-111.5 25.5t-119.5 -25v154l150 178h-250zM1491 537h186v-172h95v-164 h-95v-201h-186v201h-367v157l301 506h226l-299 -499h139v172z" />
-<glyph unicode="&#xbf;" horiz-adv-x="1077" d="M399 1022h312v-154q0 -84 -21.5 -126t-91.5 -113l-139 -144q-31 -37 -31 -95t33 -97t86 -39t89 46t44 122h326q-23 -205 -150 -321.5t-318.5 -116.5t-311.5 104.5t-120 288.5q0 82 20.5 122t29 57t38 52t39.5 43q49 51 93.5 94t58.5 71t14 83v123zM731 1284 q0 -76 -52 -128t-128 -52t-128 52t-52 128t52 128t128 52t128 -52t52 -128z" />
-<glyph unicode="&#xc0;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM918 1575h-293l-285 229l315 135z" />
-<glyph unicode="&#xc1;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM899 1579h-293l260 363l318 -134z" />
-<glyph unicode="&#xc2;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM580 1575h-252l231 323h383l232 -323h-252l-172 166z" />
-<glyph unicode="&#xc3;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM633 1681q-63 0 -62 -106h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xc4;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM420 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM815 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5 t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xc5;" d="M606 1430q-61 66 -61 154.5t64.5 153t154.5 64.5t154.5 -64.5t64.5 -154.5t-65 -156l618 -1427h-340l-133 309h-600l-133 -309h-340zM764 1006l-180 -416h358zM692 1583q0 -29 21.5 -50.5t50.5 -21.5t50.5 21.5t21.5 50.5t-21.5 50.5t-50.5 21.5t-50.5 -21.5t-21.5 -50.5 z" />
-<glyph unicode="&#xc6;" horiz-adv-x="2095" d="M1966 1432v-281h-715v-309h641v-269h-641v-292h738v-281h-1078v309h-405l-162 -309h-377l735 1432h1264zM911 598v504l-260 -504h260z" />
-<glyph unicode="&#xc7;" horiz-adv-x="1499" d="M834 283q236 0 385 186l204 -211q-207 -233 -495 -268l-54 -99q133 -45 134 -155q0 -88 -73 -153.5t-183.5 -65.5t-214.5 65l77 176q45 -39 80 -39t54.5 18.5t19.5 46.5t-24.5 49.5t-58.5 21.5t-73 -19l84 160q-266 45 -436 244.5t-170 498.5t218 512t534 213 q352 0 590 -268l-199 -225q-152 188 -377 188q-180 0 -308 -117.5t-128 -317.5t121 -320.5t293 -120.5z" />
-<glyph unicode="&#xc8;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM827 1575h-292l-285 229l315 135z" />
-<glyph unicode="&#xc9;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM809 1579h-293l260 363l318 -134z" />
-<glyph unicode="&#xca;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM489 1575h-251l231 323h383l231 -323h-252l-172 166z" />
-<glyph unicode="&#xcb;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM348 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM743 1734.5q0 63.5 44 107.5t107.5 44t108 -44t44.5 -107.5t-44.5 -107.5t-108 -44 t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xcc;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM502 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xcd;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM483 1579h-293l261 363l317 -134z" />
-<glyph unicode="&#xce;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM166 1577h-252l231 324h383l232 -324h-252l-172 166z" />
-<glyph unicode="&#xcf;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM-14 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM381 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xd0;" horiz-adv-x="1605" d="M53 573v273h152v586h506q383 0 587.5 -187.5t204.5 -521.5t-199.5 -528.5t-609.5 -194.5h-489v573h-152zM1064 393.5q118 110.5 118 321.5t-118 324.5t-362 113.5h-178v-307h480v-273h-480v-290h203q219 0 337 110.5z" />
-<glyph unicode="&#xd1;" horiz-adv-x="1673" d="M1178 1432h319v-1432h-319l-682 897v-897h-320v1432h299l703 -922v922zM717 1679q-63 0 -62 -106h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xd2;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM1012 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xd3;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM993 1579h-293l261 363l317 -134z" />
-<glyph unicode="&#xd4;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM674 1575h-252l231 323h383l232 -323h-252 l-172 166z" />
-<glyph unicode="&#xd5;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM727 1679q-63 0 -61 -106h-217q0 154 66.5 242 t170.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xd6;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM494 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44 t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM889 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xd7;" horiz-adv-x="1206" d="M604 924l326 333l176 -182l-322 -330l324 -333l-176 -183l-328 334l-325 -334l-181 183l328 333l-326 330l181 182z" />
-<glyph unicode="&#xd8;" horiz-adv-x="1691" d="M1597 725q0 -315 -217 -527t-534 -212q-80 0 -162 16l-106 -231h-289l149 327q-160 98 -252 263t-92 364q0 315 217 527t535 212q98 0 205 -26l96 211h291l-148 -322q143 -100 225 -258t82 -344zM846 1186q-178 0 -301 -135.5t-123 -338t143 -335.5l367 799 q-47 10 -86 10zM1149 398q123 134 123 320.5t-115 321.5l-352 -774q12 -2 41 -2q180 0 303 134z" />
-<glyph unicode="&#xd9;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM932 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xda;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM915 1579h-292l260 363l317 -134z" />
-<glyph unicode="&#xdb;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM596 1575h-252l231 323h383l232 -323h-252l-172 166z" />
-<glyph unicode="&#xdc;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM418 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM813 1734.5 q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xdd;" horiz-adv-x="1265" d="M793 0h-320v565l-496 867h347l309 -533l309 533h346l-495 -867v-565zM739 1579h-293l261 363l317 -134z" />
-<glyph unicode="&#xde;" horiz-adv-x="1402" d="M1313 754q0 -279 -163 -403t-484 -124h-170v-227h-320v1432h320v-172h166q651 0 651 -506zM919.5 570.5q65.5 66.5 65.5 188.5t-82 173t-246 51h-161v-479h194q164 0 229.5 66.5z" />
-<glyph unicode="&#xdf;" horiz-adv-x="1325" d="M775.5 953.5q66.5 62.5 66.5 139t-39 131t-123 54.5q-119 0 -168 -84t-49 -246v-948h-320v922q0 201 41 315q16 51 55.5 114.5t92.5 102.5q123 96 325 96q117 0 208 -29.5t144.5 -73.5t88.5 -104q57 -104 57 -223q0 -190 -158 -319q121 -39 181.5 -140.5t60.5 -226.5 q0 -199 -138 -316.5t-396 -117.5h-127v258h90q252 0 252 176q0 195 -236 195q-43 0 -113 -6v247q138 21 204.5 83.5z" />
-<glyph unicode="&#xe0;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM844 1251h-293l-285 230l316 135z" />
-<glyph unicode="&#xe1;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM713 1251h-293l260 363l317 -133z" />
-<glyph unicode="&#xe2;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM444 1251h-251l231 324h383l231 -324h-252l-172 166z" />
-<glyph unicode="&#xe3;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM477 1358q-63 0 -61 -107h-217q0 154 66.5 242t170.5 88q66 0 159 -56.5t114 -56.5q63 0 61 107h217q0 -154 -66.5 -242t-170.5 -88q-63 0 -160 56.5t-113 56.5z" />
-<glyph unicode="&#xe4;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM266 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM662 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xe5;" horiz-adv-x="1216" d="M1081 0h-288v133q-119 -150 -294 -149.5t-294 101.5t-119 270t123 253t336 84h229v6q0 176 -186 176q-80 0 -169 -31.5t-151 -78.5l-137 199q217 158 496 157q201 0 327.5 -100t126.5 -318v-702zM772 420v53h-192q-184 0 -185 -115q0 -59 44 -90.5t126 -31.5t144.5 50 t62.5 134zM408 1440q0 90 64.5 154.5t154.5 64.5t154.5 -64.5t64.5 -154.5t-64.5 -154.5t-154.5 -64.5t-154.5 64.5t-64.5 154.5zM555 1439.5q0 -28.5 21.5 -50t50 -21.5t50 21.5t21.5 50t-21.5 50t-50 21.5t-50 -21.5t-21.5 -50z" />
-<glyph unicode="&#xe6;" horiz-adv-x="1916" d="M1833 449h-756v-11q16 -92 86 -146t160 -54q145 0 270 153l181 -201q-197 -207 -467 -206q-236 0 -387 155q-158 -156 -404 -155q-180 0 -307 102t-127 264q0 334 459 334h229v14q0 172 -178 172q-127 0 -307 -127l-138 199q221 178 460 178t360 -114q143 115 355 114.5 t361.5 -136.5t149.5 -378v-157zM768 420v29h-193q-90 0 -137 -16.5t-47 -75t44 -90t126 -31.5t144.5 50t62.5 134zM1450 819q-55 47 -136 47t-147.5 -49t-85.5 -133h439q-15 88 -70 135z" />
-<glyph unicode="&#xe7;" horiz-adv-x="1193" d="M676 256q154 0 276 154l183 -205q-166 -172 -365 -211l-55 -103q133 -45 133 -155q0 -88 -73 -153.5t-183.5 -65.5t-214.5 65l78 176q45 -39 79.5 -39t54 18.5t19.5 46.5t-24.5 49.5t-58 21.5t-72.5 -19l84 160q-195 41 -324 188.5t-129 364.5q0 254 173 412.5t411 158.5 q119 0 240.5 -49t213.5 -145l-159 -209q-53 63 -130 98t-153 35q-121 0 -208 -79t-87 -219t87 -218t204 -78z" />
-<glyph unicode="&#xe8;" horiz-adv-x="1265" d="M1100 160q-186 -176 -437 -176t-415 154.5t-164 414.5t167 413.5t394 153.5t386 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM804.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151zM829 1251h-292l-285 230l315 135z" />
-<glyph unicode="&#xe9;" horiz-adv-x="1265" d="M1100 160q-186 -176 -437 -176t-415 154.5t-164 414.5t167 413.5t394 153.5t386 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM804.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151zM739 1251h-293l261 363l317 -133z" />
-<glyph unicode="&#xea;" horiz-adv-x="1265" d="M1100 160q-186 -176 -437 -176t-415 154.5t-164 414.5t167 413.5t394 153.5t386 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM804.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151zM461 1251h-252l231 324h383l232 -324h-252 l-172 166z" />
-<glyph unicode="&#xeb;" horiz-adv-x="1265" d="M1100 160q-186 -176 -437 -176t-415 154.5t-164 414.5t167 413.5t394 153.5t386 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM804.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151zM297 1415.5q0 63.5 44 107.5t107.5 44 t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM692 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xec;" horiz-adv-x="598" d="M145 1102h308v-1102h-308v1102zM457 1251h-293l-285 230l316 135z" />
-<glyph unicode="&#xed;" horiz-adv-x="598" d="M145 1102h308v-1102h-308v1102zM449 1251h-293l260 363l317 -133z" />
-<glyph unicode="&#xee;" horiz-adv-x="598" d="M297 1397l-150 -146h-231l231 324h302l231 -324h-231zM145 1102h308v-1102h-308v1102z" />
-<glyph unicode="&#xef;" horiz-adv-x="598" d="M145 1102h308v-1102h-308v1102zM-49 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM346 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xf0;" horiz-adv-x="1222" d="M1135 553q0 -256 -136.5 -412.5t-373 -156.5t-386 140t-149.5 360.5t147.5 361.5t356.5 141q53 0 94 -8q-41 51 -127 145l-176 -114l-166 159l180 117q-31 27 -67 57l-76 64l252 149q86 -70 141 -120l162 106l170 -160l-170 -112q324 -371 324 -717zM452.5 313.5 q59.5 -71.5 159 -71.5t159.5 71.5t60 172t-61 172t-159.5 71.5t-158 -71.5t-59.5 -172t59.5 -172z" />
-<glyph unicode="&#xf1;" horiz-adv-x="1308" d="M453 614v-614h-308v1102h308v-123q139 141 313 141t292 -123t118 -327v-670h-308v623q0 254 -186 254q-92 0 -160.5 -67t-68.5 -196zM549 1358q-63 0 -62 -107h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 107h217q0 -154 -66.5 -242t-171.5 -88 q-63 0 -159.5 56.5t-112.5 56.5z" />
-<glyph unicode="&#xf2;" horiz-adv-x="1327" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5zM829 1251h-292l-285 230l315 135z" />
-<glyph unicode="&#xf3;" horiz-adv-x="1327" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5zM780 1251h-293l261 363l317 -133z" />
-<glyph unicode="&#xf4;" horiz-adv-x="1327" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5zM502 1251h-252l231 324h383l232 -324h-252 l-172 166z" />
-<glyph unicode="&#xf5;" horiz-adv-x="1327" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5zM551 1358q-63 0 -62 -107h-217q0 154 67 242 t171 88q66 0 159 -56.5t113 -56.5q63 0 62 107h217q0 -154 -66.5 -242t-171.5 -88q-63 0 -159.5 56.5t-112.5 56.5z" />
-<glyph unicode="&#xf6;" horiz-adv-x="1327" d="M468 331q77 -85 196.5 -85t196.5 85t77 220t-77 221t-196.5 86t-196.5 -86t-77 -221t77 -220zM1081 147.5q-166 -163.5 -416.5 -163.5t-416.5 163.5t-166 403.5t166 404.5t416.5 164.5t416.5 -164.5t166 -404.5t-166 -403.5zM315 1415.5q0 63.5 44 107.5t107.5 44 t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM711 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xf7;" horiz-adv-x="1191" d="M416 327.5q0 75.5 52 128t128 52.5t128 -52.5t52 -128t-52 -128t-128 -52.5t-128 52.5t-52 128zM416 1104q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128zM98 842h996v-252h-996v252z" />
-<glyph unicode="&#xf8;" horiz-adv-x="1327" d="M664 -16q-45 0 -93 6l-90 -197h-288l133 291q-115 78 -179.5 201t-64.5 266q0 240 166 404.5t416 164.5q72 0 131 -14l77 174h291l-129 -283q213 -170 213 -446q0 -240 -165.5 -403.5t-417.5 -163.5zM468 772q-77 -86 -77 -212t58 -206l231 504h-16q-119 0 -196 -86z M869.5 341q68.5 83 68.5 191.5t-35 178.5l-213 -463q111 10 179.5 93z" />
-<glyph unicode="&#xf9;" horiz-adv-x="1310" d="M856 508v594h309v-1102h-309v145q-115 -162 -296 -161.5t-304 114t-123 336.5v668h309v-600q0 -254 187 -254q92 0 159.5 66.5t67.5 193.5zM825 1251h-293l-284 230l315 135z" />
-<glyph unicode="&#xfa;" horiz-adv-x="1310" d="M856 508v594h309v-1102h-309v145q-115 -162 -296 -161.5t-304 114t-123 336.5v668h309v-600q0 -254 187 -254q92 0 159.5 66.5t67.5 193.5zM776 1251h-293l260 363l318 -133z" />
-<glyph unicode="&#xfb;" horiz-adv-x="1310" d="M856 508v594h309v-1102h-309v145q-115 -162 -296 -161.5t-304 114t-123 336.5v668h309v-600q0 -254 187 -254q92 0 159.5 66.5t67.5 193.5zM483 1251h-252l232 324h383l231 -324h-252l-172 166z" />
-<glyph unicode="&#xfc;" horiz-adv-x="1310" d="M856 508v594h309v-1102h-309v145q-115 -162 -296 -161.5t-304 114t-123 336.5v668h309v-600q0 -254 187 -254q92 0 159.5 66.5t67.5 193.5zM293 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM688 1415.5 q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xfd;" horiz-adv-x="1208" d="M336 -434q-162 0 -305 131l139 227q78 -76 160 -76q43 0 73.5 42t30.5 89.5t-426 1122.5h328l268 -686l268 686h328l-512 -1299q-45 -113 -140 -175t-212 -62zM717 1251h-293l260 363l317 -133z" />
-<glyph unicode="&#xfe;" horiz-adv-x="1363" d="M1121.5 966.5q158.5 -153.5 158.5 -409.5t-158.5 -414.5t-369.5 -158.5q-164 0 -299 104v-485h-308v1917h308v-510q123 111 295 110q215 0 373.5 -153.5zM523.5 331q74.5 -85 181 -85t186.5 85t80 218t-78 223t-186.5 90t-183 -89t-74.5 -223t74.5 -219z" />
-<glyph unicode="&#xff;" horiz-adv-x="1208" d="M336 -434q-162 0 -305 131l139 227q78 -76 160 -76q43 0 73.5 42t30.5 89.5t-426 1122.5h328l268 -686l268 686h328l-512 -1299q-45 -113 -140 -175t-212 -62zM254 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z M649 1415.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#x152;" horiz-adv-x="2134" d="M2003 1430v-283h-713v-295h639v-272h-639v-297h735v-283h-1200q-309 0 -519 205t-210 510t210 510t519 205h1178zM555 1031q-119 -130 -119 -315.5t119 -316.5t291 -131h123v893h-123q-172 0 -291 -130z" />
-<glyph unicode="&#x153;" horiz-adv-x="2119" d="M1954 160q-186 -176 -447.5 -176t-421.5 170q-166 -170 -418.5 -170t-418.5 163.5t-166 403.5t166 404.5t419 164.5t420 -172q162 172 400.5 172t397.5 -137t159 -377v-164h-803q14 -90 94 -147t181 -57q162 0 266 108zM938 537v14q0 135 -77 221t-196.5 86t-196.5 -86 t-77 -221t77 -220t194.5 -85t194.5 81t81 210zM1658.5 813q-63.5 53 -154.5 53t-166.5 -55t-88.5 -149h484q-11 98 -74.5 151z" />
-<glyph unicode="&#x2c6;" horiz-adv-x="989" d="M324 1579h-252l231 324h383l232 -324h-252l-172 166z" />
-<glyph unicode="&#x2dc;" horiz-adv-x="1198" d="M498 1358q-63 0 -62 -107h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 107h217q0 -154 -67 -242t-171 -88q-63 0 -159.5 56.5t-112.5 56.5z" />
-<glyph unicode="&#x2000;" horiz-adv-x="971" />
-<glyph unicode="&#x2001;" horiz-adv-x="1942" />
-<glyph unicode="&#x2002;" horiz-adv-x="971" />
-<glyph unicode="&#x2003;" horiz-adv-x="1942" />
-<glyph unicode="&#x2004;" horiz-adv-x="647" />
-<glyph unicode="&#x2005;" horiz-adv-x="485" />
-<glyph unicode="&#x2006;" horiz-adv-x="323" />
-<glyph unicode="&#x2007;" horiz-adv-x="323" />
-<glyph unicode="&#x2008;" horiz-adv-x="242" />
-<glyph unicode="&#x2009;" horiz-adv-x="388" />
-<glyph unicode="&#x200a;" horiz-adv-x="107" />
-<glyph unicode="&#x2010;" horiz-adv-x="1003" d="M137 479v273h729v-273h-729z" />
-<glyph unicode="&#x2011;" horiz-adv-x="1003" d="M137 479v273h729v-273h-729z" />
-<glyph unicode="&#x2012;" horiz-adv-x="1003" d="M137 479v273h729v-273h-729z" />
-<glyph unicode="&#x2013;" horiz-adv-x="1112" d="M152 440v199h809v-199h-809z" />
-<glyph unicode="&#x2014;" horiz-adv-x="1427" d="M131 442v197h1165v-197h-1165z" />
-<glyph unicode="&#x2018;" horiz-adv-x="491" d="M344 1221q68 -45 68 -126t-48.5 -128t-121 -47t-120.5 45t-48 116.5t45 141.5l149 217h168z" />
-<glyph unicode="&#x2019;" horiz-adv-x="491" d="M147 1133q-68 45 -67.5 125.5t48.5 128t121 47.5t121 -45.5t48 -117t-45 -141.5l-150 -217h-168z" />
-<glyph unicode="&#x201a;" horiz-adv-x="491" d="M147 23q-68 45 -67.5 125.5t48.5 128t121 47.5t121 -45.5t48 -117t-45 -141.5l-150 -217h-168z" />
-<glyph unicode="&#x201c;" horiz-adv-x="870" d="M344 1221q68 -45 68 -126t-48.5 -128t-121 -47t-120.5 45t-48 116.5t45 141.5l149 217h168zM723 1221q68 -45 68 -126t-48.5 -128t-121 -47t-120.5 45t-48 116.5t45 141.5l149 217h168z" />
-<glyph unicode="&#x201d;" horiz-adv-x="870" d="M147 1133q-68 45 -67.5 125.5t48.5 128t121 47.5t121 -45.5t48 -117t-45 -141.5l-150 -217h-168zM526 1133q-68 45 -67.5 125.5t48.5 128t120.5 47.5t121 -45.5t48.5 -117t-45 -141.5l-150 -217h-168z" />
-<glyph unicode="&#x201e;" horiz-adv-x="870" d="M147 23q-68 45 -67.5 125.5t48.5 128t121 47.5t121 -45.5t48 -117t-45 -141.5l-150 -217h-168zM526 23q-68 45 -67.5 125.5t48.5 128t120.5 47.5t121 -45.5t48.5 -117t-45 -141.5l-150 -217h-168z" />
-<glyph unicode="&#x2022;" horiz-adv-x="897" d="M164 649q0 119 83 202t201.5 83t201.5 -83t83 -202t-83 -201.5t-201.5 -82.5t-201.5 82.5t-83 201.5z" />
-<glyph unicode="&#x2026;" horiz-adv-x="1435" d="M958 162q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52t-128 52t-52.5 128zM537 162q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128zM117 162q0 76 52 128t128 52t128 -52t52 -128t-52 -128t-128 -52t-128 52t-52 128z" />
-<glyph unicode="&#x202f;" horiz-adv-x="388" />
-<glyph unicode="&#x2039;" horiz-adv-x="776" d="M657 879l-241 -377l241 -379h-309l-250 379l250 377h309z" />
-<glyph unicode="&#x203a;" horiz-adv-x="776" d="M360 502l-241 377h309l250 -377l-250 -379h-309z" />
-<glyph unicode="&#x205f;" horiz-adv-x="485" />
-<glyph unicode="&#x20ac;" horiz-adv-x="1568" d="M94 778v172h199q61 233 234 373.5t421 140.5q307 0 527 -247l-183 -238q-150 182 -352 182q-229 0 -317 -211h477v-172h-514q-2 -20 -2 -61t2 -60h514v-172h-467q49 -96 134 -147t187 -51q203 0 332 162l189 -209q-111 -129 -255.5 -192.5t-287.5 -63.5 q-231 0 -403.5 136t-235.5 365h-199v172h172q-2 18 -2 59.5t2 61.5h-172z" />
-<glyph unicode="&#x2122;" horiz-adv-x="2027" d="M592 1221v-654h-225v654h-238v211h700v-211h-237zM1108 567h-225v865h286l203 -431l203 431h285v-865h-226v459l-192 -391h-142l-192 391v-459z" />
-<glyph unicode="&#xe000;" horiz-adv-x="1105" d="M0 1106h1106v-1106h-1106v1106z" />
-<glyph unicode="&#xfb01;" horiz-adv-x="1421" d="M512 1165v-73h266v-222h-266v-870h-309v870h-129v222h129v67q0 180 109.5 285.5t272.5 105.5t296 -123l-111 -206q-68 78 -149 77q-47 0 -78 -33.5t-31 -99.5zM1276 0h-307v1102h307v-1102zM942 1370q0 76 52.5 128t128 52t128 -52t52.5 -128t-52.5 -128t-128 -52 t-128 52t-52.5 128z" />
-<glyph unicode="&#xfb02;" horiz-adv-x="1421" d="M512 1165v-73h266v-222h-266v-870h-309v870h-129v222h129v67q0 180 109.5 285.5t272.5 105.5t296 -123l-111 -206q-68 78 -149 77q-47 0 -78 -33.5t-31 -99.5zM1276 0h-307v1520h307v-1520z" />
-<hkern u1="&#x26;" u2="&#x2019;" k="57" />
-<hkern u1="&#x26;" u2="&#xc6;" k="-27" />
-<hkern u1="&#x26;" u2="Y" k="47" />
-<hkern u1="&#x26;" u2="W" k="35" />
-<hkern u1="&#x26;" u2="V" k="43" />
-<hkern u1="&#x26;" u2="T" k="43" />
-<hkern u1="&#x26;" u2="A" k="-16" />
-<hkern u1="&#x26;" u2="&#x27;" k="55" />
-<hkern u1="&#x27;" u2="&#x2039;" k="35" />
-<hkern u1="&#x27;" u2="&#xf0;" k="18" />
-<hkern u1="&#x27;" u2="&#xc6;" k="96" />
-<hkern u1="&#x27;" u2="d" k="23" />
-<hkern u1="&#x27;" u2="J" k="33" />
-<hkern u1="&#x27;" u2="A" k="84" />
-<hkern u1="&#x27;" u2="&#x34;" k="35" />
-<hkern u1="&#x27;" u2="&#x2f;" k="137" />
-<hkern u1="&#x27;" u2="&#x2e;" k="236" />
-<hkern u1="&#x27;" u2="&#x26;" k="33" />
-<hkern u1="&#x28;" u2="&#xf0;" k="37" />
-<hkern u1="&#x28;" u2="&#xef;" k="-27" />
-<hkern u1="&#x28;" u2="&#xec;" k="-90" />
-<hkern u1="&#x28;" u2="&#x7b;" k="20" />
-<hkern u1="&#x28;" u2="w" k="27" />
-<hkern u1="&#x28;" u2="v" k="23" />
-<hkern u1="&#x28;" u2="u" k="41" />
-<hkern u1="&#x28;" u2="t" k="25" />
-<hkern u1="&#x28;" u2="s" k="35" />
-<hkern u1="&#x28;" u2="q" k="53" />
-<hkern u1="&#x28;" u2="o" k="55" />
-<hkern u1="&#x28;" u2="n" k="29" />
-<hkern u1="&#x28;" u2="j" k="-207" />
-<hkern u1="&#x28;" u2="f" k="25" />
-<hkern u1="&#x28;" u2="d" k="53" />
-<hkern u1="&#x28;" u2="a" k="41" />
-<hkern u1="&#x28;" u2="S" k="25" />
-<hkern u1="&#x28;" u2="O" k="45" />
-<hkern u1="&#x28;" u2="&#x39;" k="20" />
-<hkern u1="&#x28;" u2="&#x38;" k="31" />
-<hkern u1="&#x28;" u2="&#x36;" k="39" />
-<hkern u1="&#x28;" u2="&#x34;" k="45" />
-<hkern u1="&#x28;" u2="&#x30;" k="39" />
-<hkern u1="&#x28;" u2="&#x28;" k="20" />
-<hkern u1="&#x29;" u2="&#x29;" k="20" />
-<hkern u1="&#x2a;" u2="&#x2019;" k="-12" />
-<hkern u1="&#x2a;" u2="&#xf0;" k="23" />
-<hkern u1="&#x2a;" u2="&#xef;" k="-18" />
-<hkern u1="&#x2a;" u2="&#xee;" k="-59" />
-<hkern u1="&#x2a;" u2="&#xc6;" k="92" />
-<hkern u1="&#x2a;" u2="y" k="-27" />
-<hkern u1="&#x2a;" u2="o" k="16" />
-<hkern u1="&#x2a;" u2="d" k="23" />
-<hkern u1="&#x2a;" u2="J" k="37" />
-<hkern u1="&#x2a;" u2="A" k="82" />
-<hkern u1="&#x2d;" u2="&#xc6;" k="18" />
-<hkern u1="&#x2d;" u2="z" k="18" />
-<hkern u1="&#x2d;" u2="x" k="43" />
-<hkern u1="&#x2d;" u2="Z" k="31" />
-<hkern u1="&#x2d;" u2="Y" k="78" />
-<hkern u1="&#x2d;" u2="X" k="55" />
-<hkern u1="&#x2d;" u2="W" k="37" />
-<hkern u1="&#x2d;" u2="V" k="49" />
-<hkern u1="&#x2d;" u2="T" k="109" />
-<hkern u1="&#x2d;" u2="J" k="49" />
-<hkern u1="&#x2d;" u2="A" k="25" />
-<hkern u1="&#x2d;" u2="&#x37;" k="27" />
-<hkern u1="&#x2d;" u2="&#x33;" k="33" />
-<hkern u1="&#x2d;" u2="&#x32;" k="31" />
-<hkern u1="&#x2d;" u2="&#x31;" k="47" />
-<hkern u1="&#x2e;" u2="&#x2019;" k="264" />
-<hkern u1="&#x2e;" u2="&#x2018;" k="264" />
-<hkern u1="&#x2e;" u2="y" k="70" />
-<hkern u1="&#x2e;" u2="w" k="53" />
-<hkern u1="&#x2e;" u2="v" k="68" />
-<hkern u1="&#x2e;" u2="t" k="29" />
-<hkern u1="&#x2e;" u2="f" k="16" />
-<hkern u1="&#x2e;" u2="Y" k="111" />
-<hkern u1="&#x2e;" u2="W" k="90" />
-<hkern u1="&#x2e;" u2="V" k="113" />
-<hkern u1="&#x2e;" u2="U" k="27" />
-<hkern u1="&#x2e;" u2="T" k="111" />
-<hkern u1="&#x2e;" u2="O" k="31" />
-<hkern u1="&#x2e;" u2="&#x37;" k="29" />
-<hkern u1="&#x2e;" u2="&#x31;" k="57" />
-<hkern u1="&#x2e;" u2="&#x27;" k="236" />
-<hkern u1="&#x2f;" u2="&#xf0;" k="43" />
-<hkern u1="&#x2f;" u2="&#xec;" k="-55" />
-<hkern u1="&#x2f;" u2="&#xce;" k="-78" />
-<hkern u1="&#x2f;" u2="&#xc6;" k="129" />
-<hkern u1="&#x2f;" u2="z" k="49" />
-<hkern u1="&#x2f;" u2="x" k="27" />
-<hkern u1="&#x2f;" u2="u" k="49" />
-<hkern u1="&#x2f;" u2="s" k="84" />
-<hkern u1="&#x2f;" u2="q" k="88" />
-<hkern u1="&#x2f;" u2="o" k="88" />
-<hkern u1="&#x2f;" u2="n" k="51" />
-<hkern u1="&#x2f;" u2="f" k="27" />
-<hkern u1="&#x2f;" u2="d" k="86" />
-<hkern u1="&#x2f;" u2="a" k="74" />
-<hkern u1="&#x2f;" u2="S" k="35" />
-<hkern u1="&#x2f;" u2="O" k="49" />
-<hkern u1="&#x2f;" u2="J" k="27" />
-<hkern u1="&#x2f;" u2="A" k="121" />
-<hkern u1="&#x2f;" u2="&#x39;" k="23" />
-<hkern u1="&#x2f;" u2="&#x38;" k="37" />
-<hkern u1="&#x2f;" u2="&#x36;" k="43" />
-<hkern u1="&#x2f;" u2="&#x34;" k="82" />
-<hkern u1="&#x2f;" u2="&#x30;" k="41" />
-<hkern u1="&#x2f;" u2="&#x2f;" k="580" />
-<hkern u1="&#x3a;" u2="&#x2019;" k="20" />
-<hkern u1="&#x3a;" u2="y" k="16" />
-<hkern u1="&#x3a;" u2="Y" k="70" />
-<hkern u1="&#x3a;" u2="W" k="37" />
-<hkern u1="&#x3a;" u2="V" k="49" />
-<hkern u1="&#x3a;" u2="T" k="102" />
-<hkern u1="&#x40;" u2="Y" k="45" />
-<hkern u1="&#x40;" u2="W" k="20" />
-<hkern u1="&#x40;" u2="V" k="31" />
-<hkern u1="&#x40;" u2="T" k="41" />
-<hkern u1="A" u2="&#x2122;" k="86" />
-<hkern u1="A" u2="&#x2019;" k="96" />
-<hkern u1="A" u2="&#x2018;" k="96" />
-<hkern u1="A" u2="&#xf0;" k="23" />
-<hkern u1="A" u2="&#xae;" k="23" />
-<hkern u1="A" u2="y" k="63" />
-<hkern u1="A" u2="w" k="57" />
-<hkern u1="A" u2="v" k="63" />
-<hkern u1="A" u2="u" k="20" />
-<hkern u1="A" u2="t" k="57" />
-<hkern u1="A" u2="q" k="25" />
-<hkern u1="A" u2="o" k="27" />
-<hkern u1="A" u2="f" k="23" />
-<hkern u1="A" u2="d" k="27" />
-<hkern u1="A" u2="a" k="10" />
-<hkern u1="A" u2="\" k="111" />
-<hkern u1="A" u2="Y" k="100" />
-<hkern u1="A" u2="W" k="76" />
-<hkern u1="A" u2="V" k="88" />
-<hkern u1="A" u2="U" k="39" />
-<hkern u1="A" u2="T" k="104" />
-<hkern u1="A" u2="S" k="10" />
-<hkern u1="A" u2="O" k="43" />
-<hkern u1="A" u2="&#x3f;" k="39" />
-<hkern u1="A" u2="&#x31;" k="39" />
-<hkern u1="A" u2="&#x2d;" k="25" />
-<hkern u1="A" u2="&#x2a;" k="82" />
-<hkern u1="A" u2="&#x27;" k="84" />
-<hkern u1="B" u2="&#xf0;" k="10" />
-<hkern u1="B" u2="z" k="12" />
-<hkern u1="B" u2="y" k="20" />
-<hkern u1="B" u2="x" k="31" />
-<hkern u1="B" u2="w" k="18" />
-<hkern u1="B" u2="v" k="18" />
-<hkern u1="B" u2="u" k="10" />
-<hkern u1="B" u2="t" k="23" />
-<hkern u1="B" u2="s" k="18" />
-<hkern u1="B" u2="o" k="10" />
-<hkern u1="B" u2="f" k="20" />
-<hkern u1="B" u2="d" k="10" />
-<hkern u1="B" u2="]" k="33" />
-<hkern u1="B" u2="\" k="29" />
-<hkern u1="B" u2="Z" k="12" />
-<hkern u1="B" u2="Y" k="41" />
-<hkern u1="B" u2="X" k="25" />
-<hkern u1="B" u2="W" k="20" />
-<hkern u1="B" u2="V" k="31" />
-<hkern u1="B" u2="T" k="37" />
-<hkern u1="B" u2="J" k="18" />
-<hkern u1="B" u2="A" k="16" />
-<hkern u1="B" u2="&#x2f;" k="25" />
-<hkern u1="B" u2="&#x29;" k="33" />
-<hkern u1="C" u2="&#x2122;" k="-45" />
-<hkern u1="C" u2="&#xf0;" k="33" />
-<hkern u1="C" u2="&#xef;" k="-14" />
-<hkern u1="C" u2="&#xee;" k="-27" />
-<hkern u1="C" u2="u" k="16" />
-<hkern u1="C" u2="t" k="10" />
-<hkern u1="C" u2="s" k="23" />
-<hkern u1="C" u2="q" k="41" />
-<hkern u1="C" u2="o" k="43" />
-<hkern u1="C" u2="n" k="14" />
-<hkern u1="C" u2="f" k="10" />
-<hkern u1="C" u2="d" k="43" />
-<hkern u1="C" u2="a" k="12" />
-<hkern u1="C" u2="O" k="31" />
-<hkern u1="C" u2="A" k="10" />
-<hkern u1="C" u2="&#x2d;" k="16" />
-<hkern u1="C" u2="&#x2a;" k="-29" />
-<hkern u1="D" u2="&#xf0;" k="12" />
-<hkern u1="D" u2="&#xc6;" k="41" />
-<hkern u1="D" u2="z" k="16" />
-<hkern u1="D" u2="x" k="31" />
-<hkern u1="D" u2="u" k="10" />
-<hkern u1="D" u2="t" k="10" />
-<hkern u1="D" u2="s" k="18" />
-<hkern u1="D" u2="n" k="12" />
-<hkern u1="D" u2="l" k="12" />
-<hkern u1="D" u2="i" k="12" />
-<hkern u1="D" u2="h" k="12" />
-<hkern u1="D" u2="f" k="10" />
-<hkern u1="D" u2="a" k="14" />
-<hkern u1="D" u2="]" k="43" />
-<hkern u1="D" u2="\" k="37" />
-<hkern u1="D" u2="Z" k="27" />
-<hkern u1="D" u2="Y" k="49" />
-<hkern u1="D" u2="X" k="53" />
-<hkern u1="D" u2="W" k="23" />
-<hkern u1="D" u2="V" k="33" />
-<hkern u1="D" u2="T" k="37" />
-<hkern u1="D" u2="S" k="10" />
-<hkern u1="D" u2="J" k="41" />
-<hkern u1="D" u2="A" k="41" />
-<hkern u1="D" u2="&#x2f;" k="53" />
-<hkern u1="D" u2="&#x2e;" k="23" />
-<hkern u1="D" u2="&#x29;" k="45" />
-<hkern u1="E" u2="&#xf0;" k="25" />
-<hkern u1="E" u2="&#xee;" k="-14" />
-<hkern u1="E" u2="u" k="14" />
-<hkern u1="E" u2="t" k="16" />
-<hkern u1="E" u2="s" k="10" />
-<hkern u1="E" u2="q" k="25" />
-<hkern u1="E" u2="o" k="25" />
-<hkern u1="E" u2="n" k="10" />
-<hkern u1="E" u2="f" k="12" />
-<hkern u1="E" u2="d" k="25" />
-<hkern u1="E" u2="a" k="14" />
-<hkern u1="E" u2="O" k="23" />
-<hkern u1="F" u2="&#xf0;" k="29" />
-<hkern u1="F" u2="&#xef;" k="-18" />
-<hkern u1="F" u2="&#xee;" k="-51" />
-<hkern u1="F" u2="&#xec;" k="-18" />
-<hkern u1="F" u2="&#xc6;" k="94" />
-<hkern u1="F" u2="z" k="25" />
-<hkern u1="F" u2="x" k="14" />
-<hkern u1="F" u2="u" k="16" />
-<hkern u1="F" u2="t" k="10" />
-<hkern u1="F" u2="s" k="35" />
-<hkern u1="F" u2="q" k="23" />
-<hkern u1="F" u2="o" k="23" />
-<hkern u1="F" u2="n" k="20" />
-<hkern u1="F" u2="f" k="10" />
-<hkern u1="F" u2="d" k="23" />
-<hkern u1="F" u2="a" k="31" />
-<hkern u1="F" u2="S" k="10" />
-<hkern u1="F" u2="J" k="39" />
-<hkern u1="F" u2="A" k="78" />
-<hkern u1="F" u2="&#x2f;" k="80" />
-<hkern u1="F" u2="&#x2e;" k="82" />
-<hkern u1="G" u2="z" k="10" />
-<hkern u1="G" u2="y" k="18" />
-<hkern u1="G" u2="x" k="18" />
-<hkern u1="G" u2="w" k="18" />
-<hkern u1="G" u2="v" k="16" />
-<hkern u1="G" u2="t" k="18" />
-<hkern u1="G" u2="s" k="10" />
-<hkern u1="G" u2="f" k="16" />
-<hkern u1="G" u2="Y" k="25" />
-<hkern u1="G" u2="X" k="12" />
-<hkern u1="G" u2="W" k="12" />
-<hkern u1="G" u2="V" k="20" />
-<hkern u1="G" u2="T" k="23" />
-<hkern u1="G" u2="A" k="12" />
-<hkern u1="G" u2="&#x29;" k="23" />
-<hkern u1="I" u2="&#xf0;" k="25" />
-<hkern u1="I" u2="z" k="12" />
-<hkern u1="I" u2="u" k="10" />
-<hkern u1="I" u2="t" k="18" />
-<hkern u1="I" u2="s" k="14" />
-<hkern u1="I" u2="q" k="20" />
-<hkern u1="I" u2="o" k="20" />
-<hkern u1="I" u2="n" k="10" />
-<hkern u1="I" u2="l" k="10" />
-<hkern u1="I" u2="i" k="10" />
-<hkern u1="I" u2="h" k="10" />
-<hkern u1="I" u2="f" k="16" />
-<hkern u1="I" u2="d" k="20" />
-<hkern u1="I" u2="a" k="14" />
-<hkern u1="J" u2="&#xf0;" k="25" />
-<hkern u1="J" u2="&#xc6;" k="23" />
-<hkern u1="J" u2="z" k="18" />
-<hkern u1="J" u2="x" k="12" />
-<hkern u1="J" u2="u" k="16" />
-<hkern u1="J" u2="t" k="14" />
-<hkern u1="J" u2="s" k="23" />
-<hkern u1="J" u2="q" k="18" />
-<hkern u1="J" u2="o" k="18" />
-<hkern u1="J" u2="n" k="10" />
-<hkern u1="J" u2="l" k="12" />
-<hkern u1="J" u2="i" k="12" />
-<hkern u1="J" u2="h" k="12" />
-<hkern u1="J" u2="f" k="14" />
-<hkern u1="J" u2="d" k="18" />
-<hkern u1="J" u2="a" k="18" />
-<hkern u1="J" u2="J" k="16" />
-<hkern u1="J" u2="A" k="20" />
-<hkern u1="J" u2="&#x2f;" k="41" />
-<hkern u1="K" u2="&#x2039;" k="29" />
-<hkern u1="K" u2="&#xf0;" k="82" />
-<hkern u1="K" u2="&#xef;" k="-84" />
-<hkern u1="K" u2="&#xee;" k="-31" />
-<hkern u1="K" u2="&#xec;" k="-88" />
-<hkern u1="K" u2="&#xae;" k="20" />
-<hkern u1="K" u2="y" k="53" />
-<hkern u1="K" u2="w" k="59" />
-<hkern u1="K" u2="v" k="53" />
-<hkern u1="K" u2="u" k="49" />
-<hkern u1="K" u2="t" k="31" />
-<hkern u1="K" u2="s" k="14" />
-<hkern u1="K" u2="q" k="90" />
-<hkern u1="K" u2="o" k="96" />
-<hkern u1="K" u2="n" k="14" />
-<hkern u1="K" u2="f" k="23" />
-<hkern u1="K" u2="d" k="94" />
-<hkern u1="K" u2="a" k="33" />
-<hkern u1="K" u2="S" k="39" />
-<hkern u1="K" u2="O" k="74" />
-<hkern u1="K" u2="&#x2d;" k="55" />
-<hkern u1="L" u2="&#x2122;" k="162" />
-<hkern u1="L" u2="&#x2019;" k="168" />
-<hkern u1="L" u2="&#x2018;" k="168" />
-<hkern u1="L" u2="&#xb7;" k="123" />
-<hkern u1="L" u2="y" k="98" />
-<hkern u1="L" u2="w" k="82" />
-<hkern u1="L" u2="v" k="100" />
-<hkern u1="L" u2="u" k="14" />
-<hkern u1="L" u2="t" k="55" />
-<hkern u1="L" u2="q" k="14" />
-<hkern u1="L" u2="o" k="14" />
-<hkern u1="L" u2="f" k="31" />
-<hkern u1="L" u2="d" k="14" />
-<hkern u1="L" u2="\" k="131" />
-<hkern u1="L" u2="Y" k="125" />
-<hkern u1="L" u2="W" k="102" />
-<hkern u1="L" u2="V" k="121" />
-<hkern u1="L" u2="U" k="31" />
-<hkern u1="L" u2="T" k="127" />
-<hkern u1="L" u2="O" k="39" />
-<hkern u1="L" u2="&#x3f;" k="45" />
-<hkern u1="L" u2="&#x31;" k="41" />
-<hkern u1="L" u2="&#x2d;" k="100" />
-<hkern u1="L" u2="&#x2a;" k="170" />
-<hkern u1="L" u2="&#x27;" k="166" />
-<hkern u1="O" u2="&#xf0;" k="14" />
-<hkern u1="O" u2="&#xc6;" k="47" />
-<hkern u1="O" u2="z" k="18" />
-<hkern u1="O" u2="x" k="33" />
-<hkern u1="O" u2="t" k="12" />
-<hkern u1="O" u2="s" k="16" />
-<hkern u1="O" u2="n" k="12" />
-<hkern u1="O" u2="l" k="12" />
-<hkern u1="O" u2="i" k="12" />
-<hkern u1="O" u2="h" k="12" />
-<hkern u1="O" u2="f" k="10" />
-<hkern u1="O" u2="a" k="14" />
-<hkern u1="O" u2="]" k="43" />
-<hkern u1="O" u2="\" k="37" />
-<hkern u1="O" u2="Z" k="29" />
-<hkern u1="O" u2="Y" k="51" />
-<hkern u1="O" u2="X" k="55" />
-<hkern u1="O" u2="W" k="23" />
-<hkern u1="O" u2="V" k="33" />
-<hkern u1="O" u2="T" k="39" />
-<hkern u1="O" u2="S" k="12" />
-<hkern u1="O" u2="J" k="45" />
-<hkern u1="O" u2="A" k="43" />
-<hkern u1="O" u2="&#x2f;" k="55" />
-<hkern u1="O" u2="&#x2e;" k="31" />
-<hkern u1="O" u2="&#x29;" k="45" />
-<hkern u1="P" u2="&#xf0;" k="25" />
-<hkern u1="P" u2="&#xc6;" k="104" />
-<hkern u1="P" u2="z" k="10" />
-<hkern u1="P" u2="s" k="16" />
-<hkern u1="P" u2="q" k="12" />
-<hkern u1="P" u2="o" k="14" />
-<hkern u1="P" u2="d" k="12" />
-<hkern u1="P" u2="a" k="18" />
-<hkern u1="P" u2="]" k="25" />
-<hkern u1="P" u2="Z" k="16" />
-<hkern u1="P" u2="Y" k="10" />
-<hkern u1="P" u2="X" k="43" />
-<hkern u1="P" u2="J" k="59" />
-<hkern u1="P" u2="A" k="84" />
-<hkern u1="P" u2="&#x2f;" k="90" />
-<hkern u1="P" u2="&#x2e;" k="106" />
-<hkern u1="P" u2="&#x29;" k="37" />
-<hkern u1="Q" u2="&#x201e;" k="6" />
-<hkern u1="Q" u2="&#x201a;" k="6" />
-<hkern u1="Q" u2="&#xc6;" k="29" />
-<hkern u1="Q" u2="j" k="-172" />
-<hkern u1="Q" u2="]" k="-6" />
-<hkern u1="Q" u2="&#x2f;" k="31" />
-<hkern u1="R" u2="&#x2039;" k="29" />
-<hkern u1="R" u2="&#xf0;" k="45" />
-<hkern u1="R" u2="y" k="14" />
-<hkern u1="R" u2="w" k="12" />
-<hkern u1="R" u2="v" k="12" />
-<hkern u1="R" u2="u" k="23" />
-<hkern u1="R" u2="t" k="20" />
-<hkern u1="R" u2="q" k="37" />
-<hkern u1="R" u2="o" k="41" />
-<hkern u1="R" u2="n" k="10" />
-<hkern u1="R" u2="l" k="10" />
-<hkern u1="R" u2="i" k="10" />
-<hkern u1="R" u2="h" k="10" />
-<hkern u1="R" u2="f" k="14" />
-<hkern u1="R" u2="d" k="37" />
-<hkern u1="R" u2="a" k="27" />
-<hkern u1="R" u2="\" k="33" />
-<hkern u1="R" u2="Y" k="37" />
-<hkern u1="R" u2="W" k="18" />
-<hkern u1="R" u2="V" k="27" />
-<hkern u1="R" u2="T" k="29" />
-<hkern u1="R" u2="O" k="14" />
-<hkern u1="R" u2="J" k="16" />
-<hkern u1="S" u2="&#xf0;" k="10" />
-<hkern u1="S" u2="&#xee;" k="-31" />
-<hkern u1="S" u2="z" k="18" />
-<hkern u1="S" u2="y" k="25" />
-<hkern u1="S" u2="x" k="23" />
-<hkern u1="S" u2="w" k="25" />
-<hkern u1="S" u2="v" k="20" />
-<hkern u1="S" u2="u" k="14" />
-<hkern u1="S" u2="t" k="29" />
-<hkern u1="S" u2="s" k="20" />
-<hkern u1="S" u2="q" k="10" />
-<hkern u1="S" u2="o" k="10" />
-<hkern u1="S" u2="n" k="16" />
-<hkern u1="S" u2="f" k="29" />
-<hkern u1="S" u2="d" k="10" />
-<hkern u1="S" u2="Y" k="10" />
-<hkern u1="S" u2="X" k="10" />
-<hkern u1="S" u2="V" k="10" />
-<hkern u1="S" u2="T" k="12" />
-<hkern u1="S" u2="A" k="16" />
-<hkern u1="S" u2="&#x2f;" k="25" />
-<hkern u1="T" u2="&#x203a;" k="98" />
-<hkern u1="T" u2="&#x2039;" k="115" />
-<hkern u1="T" u2="&#xf1;" k="78" />
-<hkern u1="T" u2="&#xf0;" k="82" />
-<hkern u1="T" u2="&#xef;" k="-53" />
-<hkern u1="T" u2="&#xee;" k="-88" />
-<hkern u1="T" u2="&#xed;" k="27" />
-<hkern u1="T" u2="&#xec;" k="-57" />
-<hkern u1="T" u2="&#xdf;" k="27" />
-<hkern u1="T" u2="&#xc6;" k="113" />
-<hkern u1="T" u2="z" k="137" />
-<hkern u1="T" u2="y" k="135" />
-<hkern u1="T" u2="x" k="131" />
-<hkern u1="T" u2="w" k="125" />
-<hkern u1="T" u2="v" k="133" />
-<hkern u1="T" u2="u" k="100" />
-<hkern u1="T" u2="s" k="131" />
-<hkern u1="T" u2="q" k="119" />
-<hkern u1="T" u2="o" k="123" />
-<hkern u1="T" u2="n" k="43" />
-<hkern u1="T" u2="l" k="10" />
-<hkern u1="T" u2="i" k="10" />
-<hkern u1="T" u2="h" k="10" />
-<hkern u1="T" u2="f" k="14" />
-<hkern u1="T" u2="d" k="119" />
-<hkern u1="T" u2="a" k="131" />
-<hkern u1="T" u2="S" k="12" />
-<hkern u1="T" u2="O" k="39" />
-<hkern u1="T" u2="J" k="31" />
-<hkern u1="T" u2="A" k="104" />
-<hkern u1="T" u2="&#x40;" k="45" />
-<hkern u1="T" u2="&#x3a;" k="102" />
-<hkern u1="T" u2="&#x34;" k="57" />
-<hkern u1="T" u2="&#x2f;" k="102" />
-<hkern u1="T" u2="&#x2e;" k="111" />
-<hkern u1="T" u2="&#x2d;" k="109" />
-<hkern u1="T" u2="&#x26;" k="25" />
-<hkern u1="U" u2="&#xf0;" k="27" />
-<hkern u1="U" u2="&#xc6;" k="43" />
-<hkern u1="U" u2="z" k="23" />
-<hkern u1="U" u2="x" k="14" />
-<hkern u1="U" u2="u" k="16" />
-<hkern u1="U" u2="t" k="14" />
-<hkern u1="U" u2="s" k="29" />
-<hkern u1="U" u2="q" k="20" />
-<hkern u1="U" u2="o" k="20" />
-<hkern u1="U" u2="n" k="16" />
-<hkern u1="U" u2="l" k="12" />
-<hkern u1="U" u2="i" k="12" />
-<hkern u1="U" u2="h" k="12" />
-<hkern u1="U" u2="f" k="14" />
-<hkern u1="U" u2="d" k="20" />
-<hkern u1="U" u2="a" k="23" />
-<hkern u1="U" u2="J" k="27" />
-<hkern u1="U" u2="A" k="37" />
-<hkern u1="U" u2="&#x2f;" k="51" />
-<hkern u1="U" u2="&#x2e;" k="27" />
-<hkern u1="V" u2="&#x2122;" k="-29" />
-<hkern u1="V" u2="&#x203a;" k="31" />
-<hkern u1="V" u2="&#x2039;" k="70" />
-<hkern u1="V" u2="&#xf0;" k="61" />
-<hkern u1="V" u2="&#xef;" k="-115" />
-<hkern u1="V" u2="&#xee;" k="-86" />
-<hkern u1="V" u2="&#xed;" k="23" />
-<hkern u1="V" u2="&#xec;" k="-117" />
-<hkern u1="V" u2="&#xdf;" k="27" />
-<hkern u1="V" u2="&#xc6;" k="96" />
-<hkern u1="V" u2="z" k="49" />
-<hkern u1="V" u2="x" k="16" />
-<hkern u1="V" u2="u" k="49" />
-<hkern u1="V" u2="t" k="12" />
-<hkern u1="V" u2="s" k="98" />
-<hkern u1="V" u2="q" k="94" />
-<hkern u1="V" u2="o" k="94" />
-<hkern u1="V" u2="n" k="57" />
-<hkern u1="V" u2="f" k="16" />
-<hkern u1="V" u2="d" k="94" />
-<hkern u1="V" u2="a" k="84" />
-<hkern u1="V" u2="S" k="18" />
-<hkern u1="V" u2="O" k="33" />
-<hkern u1="V" u2="J" k="31" />
-<hkern u1="V" u2="A" k="88" />
-<hkern u1="V" u2="&#x40;" k="31" />
-<hkern u1="V" u2="&#x3a;" k="49" />
-<hkern u1="V" u2="&#x34;" k="39" />
-<hkern u1="V" u2="&#x31;" k="-16" />
-<hkern u1="V" u2="&#x2f;" k="111" />
-<hkern u1="V" u2="&#x2e;" k="113" />
-<hkern u1="V" u2="&#x2d;" k="49" />
-<hkern u1="V" u2="&#x26;" k="27" />
-<hkern u1="W" u2="&#x2122;" k="-12" />
-<hkern u1="W" u2="&#x2039;" k="55" />
-<hkern u1="W" u2="&#xf0;" k="57" />
-<hkern u1="W" u2="&#xef;" k="-98" />
-<hkern u1="W" u2="&#xee;" k="-74" />
-<hkern u1="W" u2="&#xed;" k="18" />
-<hkern u1="W" u2="&#xec;" k="-100" />
-<hkern u1="W" u2="&#xdf;" k="25" />
-<hkern u1="W" u2="&#xc6;" k="86" />
-<hkern u1="W" u2="z" k="41" />
-<hkern u1="W" u2="x" k="12" />
-<hkern u1="W" u2="u" k="41" />
-<hkern u1="W" u2="s" k="88" />
-<hkern u1="W" u2="q" k="82" />
-<hkern u1="W" u2="o" k="86" />
-<hkern u1="W" u2="n" k="47" />
-<hkern u1="W" u2="f" k="12" />
-<hkern u1="W" u2="d" k="80" />
-<hkern u1="W" u2="a" k="70" />
-<hkern u1="W" u2="S" k="10" />
-<hkern u1="W" u2="O" k="23" />
-<hkern u1="W" u2="J" k="27" />
-<hkern u1="W" u2="A" k="76" />
-<hkern u1="W" u2="&#x40;" k="20" />
-<hkern u1="W" u2="&#x3a;" k="37" />
-<hkern u1="W" u2="&#x34;" k="25" />
-<hkern u1="W" u2="&#x2f;" k="94" />
-<hkern u1="W" u2="&#x2e;" k="90" />
-<hkern u1="W" u2="&#x2d;" k="37" />
-<hkern u1="X" u2="&#x2039;" k="35" />
-<hkern u1="X" u2="&#xf0;" k="66" />
-<hkern u1="X" u2="&#xef;" k="-49" />
-<hkern u1="X" u2="&#xec;" k="-53" />
-<hkern u1="X" u2="&#xae;" k="23" />
-<hkern u1="X" u2="y" k="53" />
-<hkern u1="X" u2="w" k="59" />
-<hkern u1="X" u2="v" k="53" />
-<hkern u1="X" u2="u" k="49" />
-<hkern u1="X" u2="t" k="41" />
-<hkern u1="X" u2="q" k="74" />
-<hkern u1="X" u2="o" k="74" />
-<hkern u1="X" u2="n" k="16" />
-<hkern u1="X" u2="f" k="31" />
-<hkern u1="X" u2="d" k="74" />
-<hkern u1="X" u2="a" k="25" />
-<hkern u1="X" u2="S" k="12" />
-<hkern u1="X" u2="O" k="59" />
-<hkern u1="X" u2="&#x2d;" k="55" />
-<hkern u1="Y" u2="&#x2122;" k="-43" />
-<hkern u1="Y" u2="&#x203a;" k="51" />
-<hkern u1="Y" u2="&#x2039;" k="94" />
-<hkern u1="Y" u2="&#xf0;" k="68" />
-<hkern u1="Y" u2="&#xef;" k="-129" />
-<hkern u1="Y" u2="&#xee;" k="-80" />
-<hkern u1="Y" u2="&#xed;" k="25" />
-<hkern u1="Y" u2="&#xec;" k="-131" />
-<hkern u1="Y" u2="&#xdf;" k="31" />
-<hkern u1="Y" u2="&#xc6;" k="109" />
-<hkern u1="Y" u2="&#xae;" k="25" />
-<hkern u1="Y" u2="z" k="76" />
-<hkern u1="Y" u2="y" k="12" />
-<hkern u1="Y" u2="x" k="31" />
-<hkern u1="Y" u2="w" k="20" />
-<hkern u1="Y" u2="v" k="12" />
-<hkern u1="Y" u2="u" k="82" />
-<hkern u1="Y" u2="t" k="14" />
-<hkern u1="Y" u2="s" k="98" />
-<hkern u1="Y" u2="q" k="106" />
-<hkern u1="Y" u2="o" k="109" />
-<hkern u1="Y" u2="n" k="84" />
-<hkern u1="Y" u2="f" k="27" />
-<hkern u1="Y" u2="d" k="104" />
-<hkern u1="Y" u2="a" k="92" />
-<hkern u1="Y" u2="]" k="-12" />
-<hkern u1="Y" u2="S" k="23" />
-<hkern u1="Y" u2="O" k="51" />
-<hkern u1="Y" u2="J" k="20" />
-<hkern u1="Y" u2="A" k="100" />
-<hkern u1="Y" u2="&#x40;" k="49" />
-<hkern u1="Y" u2="&#x3a;" k="70" />
-<hkern u1="Y" u2="&#x34;" k="57" />
-<hkern u1="Y" u2="&#x31;" k="-33" />
-<hkern u1="Y" u2="&#x2f;" k="102" />
-<hkern u1="Y" u2="&#x2e;" k="111" />
-<hkern u1="Y" u2="&#x2d;" k="78" />
-<hkern u1="Y" u2="&#x26;" k="31" />
-<hkern u1="Z" u2="&#xf0;" k="27" />
-<hkern u1="Z" u2="&#xee;" k="-29" />
-<hkern u1="Z" u2="y" k="16" />
-<hkern u1="Z" u2="w" k="18" />
-<hkern u1="Z" u2="v" k="14" />
-<hkern u1="Z" u2="u" k="23" />
-<hkern u1="Z" u2="t" k="23" />
-<hkern u1="Z" u2="q" k="29" />
-<hkern u1="Z" u2="o" k="31" />
-<hkern u1="Z" u2="n" k="16" />
-<hkern u1="Z" u2="f" k="23" />
-<hkern u1="Z" u2="d" k="31" />
-<hkern u1="Z" u2="a" k="12" />
-<hkern u1="Z" u2="O" k="29" />
-<hkern u1="Z" u2="&#x2d;" k="25" />
-<hkern u1="[" u2="&#xf0;" k="31" />
-<hkern u1="[" u2="&#xef;" k="-35" />
-<hkern u1="[" u2="&#xee;" k="-35" />
-<hkern u1="[" u2="&#xec;" k="-102" />
-<hkern u1="[" u2="u" k="33" />
-<hkern u1="[" u2="s" k="27" />
-<hkern u1="[" u2="q" k="51" />
-<hkern u1="[" u2="o" k="51" />
-<hkern u1="[" u2="j" k="-193" />
-<hkern u1="[" u2="d" k="51" />
-<hkern u1="[" u2="a" k="35" />
-<hkern u1="[" u2="Y" k="-12" />
-<hkern u1="[" u2="S" k="20" />
-<hkern u1="[" u2="O" k="43" />
-<hkern u1="[" u2="&#x38;" k="20" />
-<hkern u1="[" u2="&#x36;" k="33" />
-<hkern u1="[" u2="&#x34;" k="49" />
-<hkern u1="[" u2="&#x30;" k="33" />
-<hkern u1="\" u2="&#x2019;" k="117" />
-<hkern u1="\" u2="&#xc6;" k="-49" />
-<hkern u1="\" u2="y" k="47" />
-<hkern u1="\" u2="w" k="39" />
-<hkern u1="\" u2="v" k="47" />
-<hkern u1="\" u2="t" k="23" />
-<hkern u1="\" u2="Y" k="78" />
-<hkern u1="\" u2="W" k="63" />
-<hkern u1="\" u2="V" k="80" />
-<hkern u1="\" u2="U" k="25" />
-<hkern u1="\" u2="T" k="78" />
-<hkern u1="\" u2="O" k="23" />
-<hkern u1="\" u2="A" k="-27" />
-<hkern u1="\" u2="&#x31;" k="39" />
-<hkern u1="\" u2="&#x27;" k="100" />
-<hkern u1="a" u2="&#x2122;" k="41" />
-<hkern u1="a" u2="&#x2019;" k="16" />
-<hkern u1="a" u2="&#x2018;" k="16" />
-<hkern u1="a" u2="y" k="14" />
-<hkern u1="a" u2="w" k="16" />
-<hkern u1="a" u2="v" k="14" />
-<hkern u1="a" u2="t" k="12" />
-<hkern u1="a" u2="f" k="8" />
-<hkern u1="a" u2="\" k="68" />
-<hkern u1="a" u2="Z" k="23" />
-<hkern u1="a" u2="Y" k="84" />
-<hkern u1="a" u2="X" k="14" />
-<hkern u1="a" u2="W" k="59" />
-<hkern u1="a" u2="V" k="76" />
-<hkern u1="a" u2="U" k="23" />
-<hkern u1="a" u2="T" k="100" />
-<hkern u1="a" u2="S" k="12" />
-<hkern u1="a" u2="O" k="14" />
-<hkern u1="a" u2="J" k="16" />
-<hkern u1="a" u2="I" k="10" />
-<hkern u1="a" u2="&#x29;" k="31" />
-<hkern u1="b" u2="&#x2122;" k="47" />
-<hkern u1="b" u2="&#x2019;" k="43" />
-<hkern u1="b" u2="&#x2018;" k="43" />
-<hkern u1="b" u2="&#xc6;" k="25" />
-<hkern u1="b" u2="&#x7d;" k="29" />
-<hkern u1="b" u2="z" k="14" />
-<hkern u1="b" u2="y" k="23" />
-<hkern u1="b" u2="x" k="45" />
-<hkern u1="b" u2="w" k="18" />
-<hkern u1="b" u2="v" k="23" />
-<hkern u1="b" u2="t" k="18" />
-<hkern u1="b" u2="s" k="10" />
-<hkern u1="b" u2="f" k="16" />
-<hkern u1="b" u2="]" k="51" />
-<hkern u1="b" u2="\" k="74" />
-<hkern u1="b" u2="Z" k="47" />
-<hkern u1="b" u2="Y" k="104" />
-<hkern u1="b" u2="X" k="72" />
-<hkern u1="b" u2="W" k="80" />
-<hkern u1="b" u2="V" k="94" />
-<hkern u1="b" u2="U" k="20" />
-<hkern u1="b" u2="T" k="119" />
-<hkern u1="b" u2="S" k="23" />
-<hkern u1="b" u2="J" k="35" />
-<hkern u1="b" u2="I" k="20" />
-<hkern u1="b" u2="A" k="27" />
-<hkern u1="b" u2="&#x2f;" k="41" />
-<hkern u1="b" u2="&#x2a;" k="23" />
-<hkern u1="b" u2="&#x29;" k="53" />
-<hkern u1="b" u2="&#x27;" k="23" />
-<hkern u1="c" u2="&#x2122;" k="25" />
-<hkern u1="c" u2="&#x2039;" k="20" />
-<hkern u1="c" u2="&#xf0;" k="23" />
-<hkern u1="c" u2="q" k="16" />
-<hkern u1="c" u2="o" k="18" />
-<hkern u1="c" u2="d" k="16" />
-<hkern u1="c" u2="]" k="20" />
-<hkern u1="c" u2="\" k="45" />
-<hkern u1="c" u2="Y" k="86" />
-<hkern u1="c" u2="X" k="10" />
-<hkern u1="c" u2="W" k="43" />
-<hkern u1="c" u2="V" k="55" />
-<hkern u1="c" u2="U" k="16" />
-<hkern u1="c" u2="T" k="106" />
-<hkern u1="c" u2="S" k="12" />
-<hkern u1="c" u2="O" k="20" />
-<hkern u1="c" u2="&#x2d;" k="20" />
-<hkern u1="c" u2="&#x29;" k="29" />
-<hkern u1="d" u2="&#xec;" k="-31" />
-<hkern u1="d" u2="Z" k="12" />
-<hkern u1="d" u2="U" k="14" />
-<hkern u1="d" u2="T" k="10" />
-<hkern u1="d" u2="O" k="12" />
-<hkern u1="d" u2="J" k="18" />
-<hkern u1="d" u2="I" k="10" />
-<hkern u1="e" u2="&#x2122;" k="35" />
-<hkern u1="e" u2="&#x2019;" k="20" />
-<hkern u1="e" u2="&#x2018;" k="20" />
-<hkern u1="e" u2="&#xc6;" k="14" />
-<hkern u1="e" u2="&#x7d;" k="20" />
-<hkern u1="e" u2="z" k="10" />
-<hkern u1="e" u2="y" k="16" />
-<hkern u1="e" u2="x" k="31" />
-<hkern u1="e" u2="w" k="10" />
-<hkern u1="e" u2="v" k="16" />
-<hkern u1="e" u2="t" k="12" />
-<hkern u1="e" u2="f" k="10" />
-<hkern u1="e" u2="]" k="43" />
-<hkern u1="e" u2="\" k="66" />
-<hkern u1="e" u2="Z" k="33" />
-<hkern u1="e" u2="Y" k="100" />
-<hkern u1="e" u2="X" k="47" />
-<hkern u1="e" u2="W" k="78" />
-<hkern u1="e" u2="V" k="96" />
-<hkern u1="e" u2="U" k="14" />
-<hkern u1="e" u2="T" k="141" />
-<hkern u1="e" u2="S" k="16" />
-<hkern u1="e" u2="J" k="27" />
-<hkern u1="e" u2="I" k="14" />
-<hkern u1="e" u2="A" k="18" />
-<hkern u1="e" u2="&#x2f;" k="35" />
-<hkern u1="e" u2="&#x29;" k="47" />
-<hkern u1="f" u2="&#x2122;" k="-63" />
-<hkern u1="f" u2="&#x2039;" k="43" />
-<hkern u1="f" u2="&#xf0;" k="51" />
-<hkern u1="f" u2="&#xef;" k="-164" />
-<hkern u1="f" u2="&#xee;" k="-106" />
-<hkern u1="f" u2="&#xec;" k="-172" />
-<hkern u1="f" u2="&#xc6;" k="88" />
-<hkern u1="f" u2="&#x7d;" k="-20" />
-<hkern u1="f" u2="s" k="12" />
-<hkern u1="f" u2="q" k="25" />
-<hkern u1="f" u2="o" k="27" />
-<hkern u1="f" u2="d" k="23" />
-<hkern u1="f" u2="a" k="12" />
-<hkern u1="f" u2="]" k="-39" />
-<hkern u1="f" u2="\" k="-27" />
-<hkern u1="f" u2="Y" k="-135" />
-<hkern u1="f" u2="X" k="-61" />
-<hkern u1="f" u2="W" k="-104" />
-<hkern u1="f" u2="V" k="-123" />
-<hkern u1="f" u2="T" k="-59" />
-<hkern u1="f" u2="J" k="14" />
-<hkern u1="f" u2="A" k="82" />
-<hkern u1="f" u2="&#x2f;" k="55" />
-<hkern u1="f" u2="&#x2e;" k="57" />
-<hkern u1="f" u2="&#x2d;" k="29" />
-<hkern u1="f" u2="&#x2a;" k="-12" />
-<hkern u1="f" u2="&#x29;" k="-25" />
-<hkern u1="g" u2="j" k="-14" />
-<hkern u1="i" u2="&#xec;" k="-35" />
-<hkern u1="i" u2="Z" k="14" />
-<hkern u1="i" u2="U" k="12" />
-<hkern u1="i" u2="T" k="10" />
-<hkern u1="i" u2="O" k="12" />
-<hkern u1="i" u2="J" k="18" />
-<hkern u1="i" u2="I" k="10" />
-<hkern u1="j" u2="j" k="-61" />
-<hkern u1="k" u2="&#x2039;" k="41" />
-<hkern u1="k" u2="&#xf0;" k="63" />
-<hkern u1="k" u2="s" k="23" />
-<hkern u1="k" u2="q" k="55" />
-<hkern u1="k" u2="o" k="57" />
-<hkern u1="k" u2="d" k="53" />
-<hkern u1="k" u2="a" k="29" />
-<hkern u1="k" u2="Y" k="23" />
-<hkern u1="k" u2="V" k="10" />
-<hkern u1="k" u2="T" k="135" />
-<hkern u1="k" u2="S" k="12" />
-<hkern u1="k" u2="O" k="45" />
-<hkern u1="k" u2="&#x2d;" k="51" />
-<hkern u1="k" u2="&#x2a;" k="-27" />
-<hkern u1="l" u2="&#xec;" k="-31" />
-<hkern u1="l" u2="&#xb7;" k="152" />
-<hkern u1="l" u2="Z" k="12" />
-<hkern u1="l" u2="U" k="14" />
-<hkern u1="l" u2="T" k="10" />
-<hkern u1="l" u2="O" k="12" />
-<hkern u1="l" u2="J" k="18" />
-<hkern u1="l" u2="I" k="10" />
-<hkern u1="n" u2="&#x2122;" k="43" />
-<hkern u1="n" u2="&#x2019;" k="20" />
-<hkern u1="n" u2="&#x2018;" k="20" />
-<hkern u1="n" u2="y" k="18" />
-<hkern u1="n" u2="w" k="18" />
-<hkern u1="n" u2="v" k="18" />
-<hkern u1="n" u2="t" k="16" />
-<hkern u1="n" u2="f" k="10" />
-<hkern u1="n" u2="\" k="72" />
-<hkern u1="n" u2="Z" k="25" />
-<hkern u1="n" u2="Y" k="84" />
-<hkern u1="n" u2="X" k="14" />
-<hkern u1="n" u2="W" k="59" />
-<hkern u1="n" u2="V" k="76" />
-<hkern u1="n" u2="U" k="23" />
-<hkern u1="n" u2="T" k="102" />
-<hkern u1="n" u2="S" k="12" />
-<hkern u1="n" u2="O" k="14" />
-<hkern u1="n" u2="J" k="16" />
-<hkern u1="n" u2="I" k="10" />
-<hkern u1="n" u2="&#x29;" k="31" />
-<hkern u1="o" u2="&#x2122;" k="43" />
-<hkern u1="o" u2="&#x2019;" k="35" />
-<hkern u1="o" u2="&#x2018;" k="35" />
-<hkern u1="o" u2="&#xc6;" k="25" />
-<hkern u1="o" u2="&#x7d;" k="29" />
-<hkern u1="o" u2="z" k="14" />
-<hkern u1="o" u2="y" k="27" />
-<hkern u1="o" u2="x" k="45" />
-<hkern u1="o" u2="w" k="20" />
-<hkern u1="o" u2="v" k="25" />
-<hkern u1="o" u2="t" k="20" />
-<hkern u1="o" u2="s" k="10" />
-<hkern u1="o" u2="f" k="18" />
-<hkern u1="o" u2="]" k="51" />
-<hkern u1="o" u2="\" k="74" />
-<hkern u1="o" u2="Z" k="47" />
-<hkern u1="o" u2="Y" k="109" />
-<hkern u1="o" u2="X" k="74" />
-<hkern u1="o" u2="W" k="84" />
-<hkern u1="o" u2="V" k="94" />
-<hkern u1="o" u2="U" k="20" />
-<hkern u1="o" u2="T" k="123" />
-<hkern u1="o" u2="S" k="25" />
-<hkern u1="o" u2="J" k="35" />
-<hkern u1="o" u2="I" k="20" />
-<hkern u1="o" u2="A" k="27" />
-<hkern u1="o" u2="&#x2f;" k="41" />
-<hkern u1="o" u2="&#x2a;" k="16" />
-<hkern u1="o" u2="&#x29;" k="53" />
-<hkern u1="p" u2="&#x2122;" k="43" />
-<hkern u1="p" u2="&#x2019;" k="31" />
-<hkern u1="p" u2="&#x2018;" k="31" />
-<hkern u1="p" u2="&#xc6;" k="23" />
-<hkern u1="p" u2="&#x7d;" k="31" />
-<hkern u1="p" u2="z" k="14" />
-<hkern u1="p" u2="y" k="23" />
-<hkern u1="p" u2="x" k="43" />
-<hkern u1="p" u2="w" k="18" />
-<hkern u1="p" u2="v" k="23" />
-<hkern u1="p" u2="t" k="18" />
-<hkern u1="p" u2="s" k="10" />
-<hkern u1="p" u2="f" k="16" />
-<hkern u1="p" u2="]" k="51" />
-<hkern u1="p" u2="\" k="74" />
-<hkern u1="p" u2="Z" k="47" />
-<hkern u1="p" u2="Y" k="104" />
-<hkern u1="p" u2="X" k="68" />
-<hkern u1="p" u2="W" k="80" />
-<hkern u1="p" u2="V" k="94" />
-<hkern u1="p" u2="U" k="20" />
-<hkern u1="p" u2="T" k="119" />
-<hkern u1="p" u2="S" k="23" />
-<hkern u1="p" u2="J" k="33" />
-<hkern u1="p" u2="I" k="18" />
-<hkern u1="p" u2="A" k="25" />
-<hkern u1="p" u2="&#x2f;" k="41" />
-<hkern u1="p" u2="&#x29;" k="53" />
-<hkern u1="q" u2="j" k="-141" />
-<hkern u1="r" u2="&#x2039;" k="41" />
-<hkern u1="r" u2="&#xf0;" k="39" />
-<hkern u1="r" u2="&#xc6;" k="92" />
-<hkern u1="r" u2="s" k="8" />
-<hkern u1="r" u2="q" k="14" />
-<hkern u1="r" u2="o" k="16" />
-<hkern u1="r" u2="d" k="14" />
-<hkern u1="r" u2="a" k="10" />
-<hkern u1="r" u2="]" k="27" />
-<hkern u1="r" u2="Z" k="25" />
-<hkern u1="r" u2="Y" k="12" />
-<hkern u1="r" u2="X" k="63" />
-<hkern u1="r" u2="T" k="129" />
-<hkern u1="r" u2="J" k="74" />
-<hkern u1="r" u2="I" k="10" />
-<hkern u1="r" u2="A" k="94" />
-<hkern u1="r" u2="&#x2f;" k="80" />
-<hkern u1="r" u2="&#x2e;" k="84" />
-<hkern u1="r" u2="&#x29;" k="35" />
-<hkern u1="r" u2="&#x26;" k="20" />
-<hkern u1="s" u2="&#x2122;" k="31" />
-<hkern u1="s" u2="y" k="10" />
-<hkern u1="s" u2="x" k="14" />
-<hkern u1="s" u2="v" k="8" />
-<hkern u1="s" u2="t" k="8" />
-<hkern u1="s" u2="]" k="35" />
-<hkern u1="s" u2="\" k="55" />
-<hkern u1="s" u2="Z" k="12" />
-<hkern u1="s" u2="Y" k="96" />
-<hkern u1="s" u2="X" k="25" />
-<hkern u1="s" u2="W" k="55" />
-<hkern u1="s" u2="V" k="68" />
-<hkern u1="s" u2="U" k="20" />
-<hkern u1="s" u2="T" k="111" />
-<hkern u1="s" u2="O" k="14" />
-<hkern u1="s" u2="J" k="10" />
-<hkern u1="s" u2="I" k="14" />
-<hkern u1="s" u2="A" k="12" />
-<hkern u1="s" u2="&#x2f;" k="23" />
-<hkern u1="s" u2="&#x29;" k="41" />
-<hkern u1="t" u2="&#x2122;" k="20" />
-<hkern u1="t" u2="&#xf0;" k="8" />
-<hkern u1="t" u2="q" k="10" />
-<hkern u1="t" u2="o" k="12" />
-<hkern u1="t" u2="d" k="10" />
-<hkern u1="t" u2="\" k="37" />
-<hkern u1="t" u2="Y" k="70" />
-<hkern u1="t" u2="W" k="37" />
-<hkern u1="t" u2="V" k="45" />
-<hkern u1="t" u2="U" k="18" />
-<hkern u1="t" u2="T" k="47" />
-<hkern u1="t" u2="O" k="16" />
-<hkern u1="u" u2="&#x2122;" k="16" />
-<hkern u1="u" u2="\" k="39" />
-<hkern u1="u" u2="Z" k="16" />
-<hkern u1="u" u2="Y" k="84" />
-<hkern u1="u" u2="X" k="16" />
-<hkern u1="u" u2="W" k="47" />
-<hkern u1="u" u2="V" k="57" />
-<hkern u1="u" u2="U" k="16" />
-<hkern u1="u" u2="T" k="43" />
-<hkern u1="u" u2="S" k="10" />
-<hkern u1="u" u2="O" k="12" />
-<hkern u1="u" u2="J" k="18" />
-<hkern u1="u" u2="I" k="10" />
-<hkern u1="u" u2="&#x29;" k="29" />
-<hkern u1="v" u2="&#x2039;" k="35" />
-<hkern u1="v" u2="&#xf0;" k="39" />
-<hkern u1="v" u2="&#xc6;" k="72" />
-<hkern u1="v" u2="s" k="18" />
-<hkern u1="v" u2="q" k="23" />
-<hkern u1="v" u2="o" k="25" />
-<hkern u1="v" u2="d" k="23" />
-<hkern u1="v" u2="a" k="14" />
-<hkern u1="v" u2="Y" k="12" />
-<hkern u1="v" u2="X" k="51" />
-<hkern u1="v" u2="T" k="133" />
-<hkern u1="v" u2="J" k="43" />
-<hkern u1="v" u2="A" k="63" />
-<hkern u1="v" u2="&#x2f;" k="78" />
-<hkern u1="v" u2="&#x2e;" k="68" />
-<hkern u1="v" u2="&#x29;" k="23" />
-<hkern u1="w" u2="&#x2039;" k="27" />
-<hkern u1="w" u2="&#xf0;" k="35" />
-<hkern u1="w" u2="&#xc6;" k="66" />
-<hkern u1="w" u2="s" k="16" />
-<hkern u1="w" u2="q" k="18" />
-<hkern u1="w" u2="o" k="20" />
-<hkern u1="w" u2="d" k="18" />
-<hkern u1="w" u2="a" k="12" />
-<hkern u1="w" u2="Z" k="12" />
-<hkern u1="w" u2="Y" k="20" />
-<hkern u1="w" u2="X" k="57" />
-<hkern u1="w" u2="T" k="125" />
-<hkern u1="w" u2="J" k="51" />
-<hkern u1="w" u2="A" k="57" />
-<hkern u1="w" u2="&#x2f;" k="70" />
-<hkern u1="w" u2="&#x2e;" k="53" />
-<hkern u1="w" u2="&#x29;" k="29" />
-<hkern u1="x" u2="&#x2039;" k="43" />
-<hkern u1="x" u2="&#xf0;" k="53" />
-<hkern u1="x" u2="s" k="12" />
-<hkern u1="x" u2="q" k="49" />
-<hkern u1="x" u2="o" k="51" />
-<hkern u1="x" u2="d" k="47" />
-<hkern u1="x" u2="a" k="20" />
-<hkern u1="x" u2="Y" k="29" />
-<hkern u1="x" u2="V" k="14" />
-<hkern u1="x" u2="U" k="12" />
-<hkern u1="x" u2="T" k="131" />
-<hkern u1="x" u2="O" k="35" />
-<hkern u1="x" u2="&#x2d;" k="45" />
-<hkern u1="y" u2="&#x2039;" k="35" />
-<hkern u1="y" u2="&#xf0;" k="39" />
-<hkern u1="y" u2="&#xc6;" k="72" />
-<hkern u1="y" u2="s" k="20" />
-<hkern u1="y" u2="q" k="25" />
-<hkern u1="y" u2="o" k="27" />
-<hkern u1="y" u2="d" k="23" />
-<hkern u1="y" u2="a" k="16" />
-<hkern u1="y" u2="Y" k="12" />
-<hkern u1="y" u2="X" k="51" />
-<hkern u1="y" u2="T" k="135" />
-<hkern u1="y" u2="J" k="47" />
-<hkern u1="y" u2="A" k="63" />
-<hkern u1="y" u2="&#x2f;" k="72" />
-<hkern u1="y" u2="&#x2e;" k="70" />
-<hkern u1="y" u2="&#x2a;" k="-33" />
-<hkern u1="y" u2="&#x29;" k="23" />
-<hkern u1="z" u2="&#x2122;" k="16" />
-<hkern u1="z" u2="&#x2039;" k="23" />
-<hkern u1="z" u2="&#xf0;" k="16" />
-<hkern u1="z" u2="q" k="14" />
-<hkern u1="z" u2="o" k="14" />
-<hkern u1="z" u2="d" k="14" />
-<hkern u1="z" u2="\" k="37" />
-<hkern u1="z" u2="Y" k="72" />
-<hkern u1="z" u2="W" k="37" />
-<hkern u1="z" u2="V" k="45" />
-<hkern u1="z" u2="U" k="20" />
-<hkern u1="z" u2="T" k="143" />
-<hkern u1="z" u2="O" k="14" />
-<hkern u1="z" u2="I" k="12" />
-<hkern u1="z" u2="&#x2d;" k="20" />
-<hkern u1="&#x7b;" u2="&#xef;" k="-14" />
-<hkern u1="&#x7b;" u2="&#xee;" k="-31" />
-<hkern u1="&#x7b;" u2="&#xec;" k="-82" />
-<hkern u1="&#x7b;" u2="q" k="31" />
-<hkern u1="&#x7b;" u2="o" k="29" />
-<hkern u1="&#x7b;" u2="j" k="-182" />
-<hkern u1="&#x7b;" u2="d" k="29" />
-<hkern u1="&#x7b;" u2="O" k="20" />
-<hkern u1="&#x7c;" u2="&#xec;" k="-27" />
-<hkern u1="&#x7c;" u2="j" k="-133" />
-<hkern u1="&#x7d;" u2="&#x29;" k="20" />
-<hkern u1="&#xae;" u2="&#xc6;" k="23" />
-<hkern u1="&#xae;" u2="Y" k="25" />
-<hkern u1="&#xae;" u2="X" k="25" />
-<hkern u1="&#xae;" u2="A" k="23" />
-<hkern u1="&#xb0;" u2="&#x34;" k="43" />
-<hkern u1="&#xb7;" u2="l" k="152" />
-<hkern u1="&#xb7;" u2="&#x37;" k="31" />
-<hkern u1="&#xb7;" u2="&#x33;" k="45" />
-<hkern u1="&#xb7;" u2="&#x32;" k="43" />
-<hkern u1="&#xb7;" u2="&#x31;" k="49" />
-<hkern u1="&#xbf;" u2="Y" k="35" />
-<hkern u1="&#xbf;" u2="W" k="25" />
-<hkern u1="&#xbf;" u2="V" k="33" />
-<hkern u1="&#xbf;" u2="T" k="39" />
-<hkern u1="&#xde;" u2="&#x2122;" k="18" />
-<hkern u1="&#xde;" u2="&#xf0;" k="14" />
-<hkern u1="&#xde;" u2="&#xc6;" k="51" />
-<hkern u1="&#xde;" u2="z" k="16" />
-<hkern u1="&#xde;" u2="x" k="25" />
-<hkern u1="&#xde;" u2="s" k="14" />
-<hkern u1="&#xde;" u2="n" k="12" />
-<hkern u1="&#xde;" u2="l" k="12" />
-<hkern u1="&#xde;" u2="i" k="12" />
-<hkern u1="&#xde;" u2="h" k="12" />
-<hkern u1="&#xde;" u2="a" k="14" />
-<hkern u1="&#xde;" u2="]" k="47" />
-<hkern u1="&#xde;" u2="\" k="39" />
-<hkern u1="&#xde;" u2="Z" k="33" />
-<hkern u1="&#xde;" u2="Y" k="57" />
-<hkern u1="&#xde;" u2="X" k="72" />
-<hkern u1="&#xde;" u2="W" k="25" />
-<hkern u1="&#xde;" u2="V" k="35" />
-<hkern u1="&#xde;" u2="T" k="37" />
-<hkern u1="&#xde;" u2="S" k="10" />
-<hkern u1="&#xde;" u2="J" k="53" />
-<hkern u1="&#xde;" u2="A" k="49" />
-<hkern u1="&#xde;" u2="&#x2f;" k="59" />
-<hkern u1="&#xde;" u2="&#x2e;" k="53" />
-<hkern u1="&#xde;" u2="&#x29;" k="49" />
-<hkern u1="&#xdf;" u2="&#xc6;" k="12" />
-<hkern u1="&#xdf;" u2="z" k="8" />
-<hkern u1="&#xdf;" u2="y" k="18" />
-<hkern u1="&#xdf;" u2="x" k="25" />
-<hkern u1="&#xdf;" u2="w" k="14" />
-<hkern u1="&#xdf;" u2="v" k="16" />
-<hkern u1="&#xdf;" u2="t" k="16" />
-<hkern u1="&#xdf;" u2="s" k="10" />
-<hkern u1="&#xdf;" u2="f" k="16" />
-<hkern u1="&#xdf;" u2="\" k="20" />
-<hkern u1="&#xdf;" u2="Z" k="18" />
-<hkern u1="&#xdf;" u2="Y" k="37" />
-<hkern u1="&#xdf;" u2="X" k="37" />
-<hkern u1="&#xdf;" u2="W" k="31" />
-<hkern u1="&#xdf;" u2="V" k="35" />
-<hkern u1="&#xdf;" u2="U" k="20" />
-<hkern u1="&#xdf;" u2="T" k="33" />
-<hkern u1="&#xdf;" u2="S" k="14" />
-<hkern u1="&#xdf;" u2="O" k="12" />
-<hkern u1="&#xdf;" u2="J" k="16" />
-<hkern u1="&#xdf;" u2="I" k="18" />
-<hkern u1="&#xdf;" u2="A" k="16" />
-<hkern u1="&#xdf;" u2="&#x2f;" k="29" />
-<hkern u1="&#xdf;" u2="&#x29;" k="31" />
-<hkern u1="&#xed;" u2="&#x2122;" k="-74" />
-<hkern u1="&#xed;" u2="&#x7d;" k="-96" />
-<hkern u1="&#xed;" u2="&#x7c;" k="-41" />
-<hkern u1="&#xed;" u2="l" k="-45" />
-<hkern u1="&#xed;" u2="i" k="-43" />
-<hkern u1="&#xed;" u2="h" k="-45" />
-<hkern u1="&#xed;" u2="]" k="-117" />
-<hkern u1="&#xed;" u2="\" k="-111" />
-<hkern u1="&#xed;" u2="&#x2a;" k="-14" />
-<hkern u1="&#xed;" u2="&#x29;" k="-106" />
-<hkern u1="&#xee;" u2="&#x2122;" k="-88" />
-<hkern u1="&#xee;" u2="&#x7d;" k="-29" />
-<hkern u1="&#xee;" u2="]" k="-33" />
-<hkern u1="&#xee;" u2="&#x2a;" k="-57" />
-<hkern u1="&#xef;" u2="&#x2122;" k="-59" />
-<hkern u1="&#xef;" u2="&#x7d;" k="-16" />
-<hkern u1="&#xef;" u2="]" k="-37" />
-<hkern u1="&#xef;" u2="\" k="-16" />
-<hkern u1="&#xef;" u2="&#x2a;" k="-23" />
-<hkern u1="&#xef;" u2="&#x29;" k="-25" />
-<hkern u1="&#xf0;" u2="&#x2122;" k="20" />
-<hkern u1="&#xf0;" u2="&#x2019;" k="23" />
-<hkern u1="&#xf0;" u2="&#x2018;" k="23" />
-<hkern u1="&#xf0;" u2="&#xc6;" k="20" />
-<hkern u1="&#xf0;" u2="z" k="10" />
-<hkern u1="&#xf0;" u2="y" k="18" />
-<hkern u1="&#xf0;" u2="x" k="35" />
-<hkern u1="&#xf0;" u2="w" k="14" />
-<hkern u1="&#xf0;" u2="v" k="16" />
-<hkern u1="&#xf0;" u2="t" k="14" />
-<hkern u1="&#xf0;" u2="s" k="8" />
-<hkern u1="&#xf0;" u2="f" k="14" />
-<hkern u1="&#xf0;" u2="]" k="33" />
-<hkern u1="&#xf0;" u2="\" k="29" />
-<hkern u1="&#xf0;" u2="Z" k="57" />
-<hkern u1="&#xf0;" u2="Y" k="68" />
-<hkern u1="&#xf0;" u2="X" k="66" />
-<hkern u1="&#xf0;" u2="W" k="53" />
-<hkern u1="&#xf0;" u2="V" k="59" />
-<hkern u1="&#xf0;" u2="U" k="20" />
-<hkern u1="&#xf0;" u2="T" k="90" />
-<hkern u1="&#xf0;" u2="S" k="18" />
-<hkern u1="&#xf0;" u2="J" k="31" />
-<hkern u1="&#xf0;" u2="I" k="16" />
-<hkern u1="&#xf0;" u2="A" k="23" />
-<hkern u1="&#xf0;" u2="&#x2f;" k="37" />
-<hkern u1="&#xf0;" u2="&#x29;" k="37" />
-<hkern u1="&#x2018;" u2="&#xf0;" k="27" />
-<hkern u1="&#x2018;" u2="&#xef;" k="-27" />
-<hkern u1="&#x2018;" u2="&#xec;" k="-29" />
-<hkern u1="&#x2018;" u2="&#xc6;" k="125" />
-<hkern u1="&#x2018;" u2="s" k="43" />
-<hkern u1="&#x2018;" u2="q" k="55" />
-<hkern u1="&#x2018;" u2="o" k="59" />
-<hkern u1="&#x2018;" u2="d" k="68" />
-<hkern u1="&#x2018;" u2="a" k="27" />
-<hkern u1="&#x2018;" u2="O" k="18" />
-<hkern u1="&#x2018;" u2="J" k="27" />
-<hkern u1="&#x2018;" u2="A" k="115" />
-<hkern u1="&#x2018;" u2="&#x2e;" k="287" />
-<hkern u1="&#x2019;" u2="&#x2039;" k="45" />
-<hkern u1="&#x2019;" u2="&#xf0;" k="27" />
-<hkern u1="&#x2019;" u2="&#xef;" k="-27" />
-<hkern u1="&#x2019;" u2="&#xec;" k="-29" />
-<hkern u1="&#x2019;" u2="&#xc6;" k="125" />
-<hkern u1="&#x2019;" u2="s" k="43" />
-<hkern u1="&#x2019;" u2="q" k="55" />
-<hkern u1="&#x2019;" u2="o" k="59" />
-<hkern u1="&#x2019;" u2="d" k="68" />
-<hkern u1="&#x2019;" u2="a" k="27" />
-<hkern u1="&#x2019;" u2="O" k="18" />
-<hkern u1="&#x2019;" u2="J" k="27" />
-<hkern u1="&#x2019;" u2="A" k="115" />
-<hkern u1="&#x2019;" u2="&#x40;" k="49" />
-<hkern u1="&#x2019;" u2="&#x3a;" k="47" />
-<hkern u1="&#x2019;" u2="&#x2f;" k="164" />
-<hkern u1="&#x2019;" u2="&#x2e;" k="287" />
-<hkern u1="&#x2019;" u2="&#x26;" k="41" />
-<hkern u1="&#x2039;" u2="Y" k="51" />
-<hkern u1="&#x2039;" u2="V" k="31" />
-<hkern u1="&#x2039;" u2="T" k="98" />
-<hkern u1="&#x203a;" u2="z" k="20" />
-<hkern u1="&#x203a;" u2="y" k="35" />
-<hkern u1="&#x203a;" u2="x" k="43" />
-<hkern u1="&#x203a;" u2="w" k="27" />
-<hkern u1="&#x203a;" u2="v" k="35" />
-<hkern u1="&#x203a;" u2="t" k="23" />
-<hkern u1="&#x203a;" u2="f" k="20" />
-<hkern u1="&#x203a;" u2="Z" k="20" />
-<hkern u1="&#x203a;" u2="Y" k="94" />
-<hkern u1="&#x203a;" u2="X" k="35" />
-<hkern u1="&#x203a;" u2="W" k="55" />
-<hkern u1="&#x203a;" u2="V" k="70" />
-<hkern u1="&#x203a;" u2="T" k="115" />
-<hkern u1="&#x203a;" u2="J" k="23" />
-<hkern u1="&#x203a;" u2="&#x27;" k="35" />
-<hkern u1="&#x2122;" u2="&#xef;" k="-18" />
-<hkern u1="&#x2122;" u2="&#xee;" k="-51" />
-<hkern u1="&#x2122;" u2="&#xec;" k="-20" />
-<hkern u1="&#x2122;" u2="&#xc6;" k="55" />
-<hkern u1="&#x2122;" u2="J" k="29" />
-<hkern u1="&#x2122;" u2="A" k="49" />
-</font>
-</defs></svg> -162 -186q96 -25 148.5 -95.5t52.5 -158.5q0 -137 -95 -217t-243.5 -80t-308.5 110l94 170q117 -88 219 -88q49 0 81 24.5t32 74t-44 75t-111.5 25.5t-119.5 -25v154l150 178h-250zM1491 537h186v-172h95v-164 h-95v-201h-186v201h-367v157l301 506h226l-299 -499h139v172z" />
-<glyph unicode="&#xbf;" horiz-adv-x="1077" d="M399 1022h312v-154q0 -84 -21.5 -126t-91.5 -113l-139 -144q-31 -37 -31 -95t33 -97t86 -39t89 46t44 122h326q-23 -205 -150 -321.5t-318.5 -116.5t-311.5 104.5t-120 288.5q0 82 20.5 122t29 57t38 52t39.5 43q49 51 93.5 94t58.5 71t14 83v123zM731 1284 q0 -76 -52 -128t-128 -52t-128 52t-52 128t52 128t128 52t128 -52t52 -128z" />
-<glyph unicode="&#xc0;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM918 1575h-293l-285 229l315 135z" />
-<glyph unicode="&#xc1;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM899 1579h-293l260 363l318 -134z" />
-<glyph unicode="&#xc2;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM580 1575h-252l231 323h383l232 -323h-252l-172 166z" />
-<glyph unicode="&#xc3;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM633 1681q-63 0 -62 -106h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xc4;" d="M1196 0l-133 309h-600l-133 -309h-340l618 1432h310l618 -1432h-340zM764 1006l-180 -416h358zM420 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM815 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5 t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xc5;" d="M606 1430q-61 66 -61 154.5t64.5 153t154.5 64.5t154.5 -64.5t64.5 -154.5t-65 -156l618 -1427h-340l-133 309h-600l-133 -309h-340zM764 1006l-180 -416h358zM692 1583q0 -29 21.5 -50.5t50.5 -21.5t50.5 21.5t21.5 50.5t-21.5 50.5t-50.5 21.5t-50.5 -21.5t-21.5 -50.5 z" />
-<glyph unicode="&#xc6;" horiz-adv-x="2095" d="M1966 1432v-281h-715v-309h641v-269h-641v-292h738v-281h-1078v309h-405l-162 -309h-377l735 1432h1264zM911 598v504l-260 -504h260z" />
-<glyph unicode="&#xc7;" horiz-adv-x="1499" d="M834 283q236 0 385 186l204 -211q-207 -233 -495 -268l-54 -99q133 -45 134 -155q0 -88 -73 -153.5t-183.5 -65.5t-214.5 65l77 176q45 -39 80 -39t54.5 18.5t19.5 46.5t-24.5 49.5t-58.5 21.5t-73 -19l84 160q-266 45 -436 244.5t-170 498.5t218 512t534 213 q352 0 590 -268l-199 -225q-152 188 -377 188q-180 0 -308 -117.5t-128 -317.5t121 -320.5t293 -120.5z" />
-<glyph unicode="&#xc8;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM827 1575h-292l-285 229l315 135z" />
-<glyph unicode="&#xc9;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM809 1579h-293l260 363l318 -134z" />
-<glyph unicode="&#xca;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM489 1575h-251l231 323h383l231 -323h-252l-172 166z" />
-<glyph unicode="&#xcb;" horiz-adv-x="1339" d="M1208 1432v-285h-712v-295h641v-272h-641v-297h735v-283h-1055v1432h1032zM348 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM743 1734.5q0 63.5 44 107.5t107.5 44t108 -44t44.5 -107.5t-44.5 -107.5t-108 -44 t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xcc;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM502 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xcd;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM483 1579h-293l261 363l317 -134z" />
-<glyph unicode="&#xce;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM166 1577h-252l231 324h383l232 -324h-252l-172 166z" />
-<glyph unicode="&#xcf;" horiz-adv-x="671" d="M176 1432h320v-1432h-320v1432zM-14 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM381 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xd0;" horiz-adv-x="1605" d="M53 573v273h152v586h506q383 0 587.5 -187.5t204.5 -521.5t-199.5 -528.5t-609.5 -194.5h-489v573h-152zM1064 393.5q118 110.5 118 321.5t-118 324.5t-362 113.5h-178v-307h480v-273h-480v-290h203q219 0 337 110.5z" />
-<glyph unicode="&#xd1;" horiz-adv-x="1673" d="M1178 1432h319v-1432h-319l-682 897v-897h-320v1432h299l703 -922v922zM717 1679q-63 0 -62 -106h-217q0 154 66.5 242t171.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xd2;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM1012 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xd3;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM993 1579h-293l261 363l317 -134z" />
-<glyph unicode="&#xd4;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM674 1575h-252l231 323h383l232 -323h-252 l-172 166z" />
-<glyph unicode="&#xd5;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM727 1679q-63 0 -61 -106h-217q0 154 66.5 242 t170.5 88q66 0 159 -56.5t113 -56.5q63 0 62 106h217q0 -154 -66.5 -241.5t-171.5 -87.5q-63 0 -159.5 56t-112.5 56z" />
-<glyph unicode="&#xd6;" horiz-adv-x="1691" d="M1149 1050.5q-123 135.5 -302 135.5t-302 -135.5t-123 -327t123 -325.5t302 -134t302 134t123 325.5t-123 327zM845.5 -14q-317.5 0 -534.5 212t-217 527t217 527t534.5 212t534.5 -212t217 -527t-217 -527t-534.5 -212zM494 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44 t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5zM889 1734.5q0 63.5 44 107.5t107.5 44t107.5 -44t44 -107.5t-44 -107.5t-107.5 -44t-107.5 44t-44 107.5z" />
-<glyph unicode="&#xd7;" horiz-adv-x="1206" d="M604 924l326 333l176 -182l-322 -330l324 -333l-176 -183l-328 334l-325 -334l-181 183l328 333l-326 330l181 182z" />
-<glyph unicode="&#xd8;" horiz-adv-x="1691" d="M1597 725q0 -315 -217 -527t-534 -212q-80 0 -162 16l-106 -231h-289l149 327q-160 98 -252 263t-92 364q0 315 217 527t535 212q98 0 205 -26l96 211h291l-148 -322q143 -100 225 -258t82 -344zM846 1186q-178 0 -301 -135.5t-123 -338t143 -335.5l367 799 q-47 10 -86 10zM1149 398q123 134 123 320.5t-115 321.5l-352 -774q12 -2 41 -2q180 0 303 134z" />
-<glyph unicode="&#xd9;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM932 1575h-293l-285 229l316 135z" />
-<glyph unicode="&#xda;" horiz-adv-x="1538" d="M770 270q135 0 214 99.5t79 271.5v791h319v-801q0 -311 -172 -478t-440 -167t-441 168t-173 477v801h319v-791q0 -172 80 -271.5t215 -99.5zM915 1579h-292l260 363l317 -134 \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.ttf b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.ttf
deleted file mode 100644
index a1df9e5..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.woff b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.woff
deleted file mode 100644
index 381aedc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.eot b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.eot
deleted file mode 100644
index baf7032..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.eot
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.svg b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.svg
deleted file mode 100644
index 6bc82bd..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.svg
+++ /dev/null
@@ -1,1365 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
-<svg xmlns="http://www.w3.org/2000/svg">
-<metadata></metadata>
-<defs>
-<font id="montserratregular" horiz-adv-x="561" >
-<font-face units-per-em="2048" ascent="1638" descent="-410" />
-<missing-glyph horiz-adv-x="500" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="682" />
-<glyph horiz-adv-x="0" />
-<glyph horiz-adv-x="0" />
-<glyph unicode="&#xd;" horiz-adv-x="681" />
-<glyph unicode=" " />
-<glyph unicode="!" horiz-adv-x="604" d="M160 1466h286v-264l-61 -739h-164l-61 739v264zM197 29q-45 45 -45 107.5t45 107.5t107.5 45t107.5 -45t45 -107.5t-45 -107.5t-107.5 -45t-107.5 45z" />
-<glyph unicode="&#x22;" horiz-adv-x="765" d="M158 928v504h159v-504h-159zM449 928v504h159v-504h-159z" />
-<glyph unicode="#" horiz-adv-x="1505" d="M1374 893h-221l-59 -340h252l-46 -225h-243l-58 -328h-227l57 328h-301l-57 -328h-229l57 328h-211l45 225h205l59 340h-233l45 225h227l60 348h227l-59 -348h301l59 348h229l-63 -348h229zM928 893h-301l-62 -340h301z" />
-<glyph unicode="$" horiz-adv-x="1267" d="M580 -147v149q-281 29 -504 223l149 178q172 -150 355 -178v398q-231 55 -339 145t-108 267t124 290t323 123v102h131v-104q225 -16 426 -154l-133 -188q-135 96 -293 119v-385h6q236 -55 346.5 -149.5t110.5 -273.5t-127 -292t-336 -123v-147h-131zM866.5 276.5 q57.5 47.5 57.5 119t-45 113.5t-168 79v-369q98 10 155.5 57.5zM435 1174.5q-52 -46.5 -52 -115t41 -108.5t156 -77v355q-93 -8 -145 -54.5z" />
-<glyph unicode="%" horiz-adv-x="1609" d="M709 1141q0 -135 -89.5 -231.5t-221.5 -96.5t-220 95.5t-88 230.5t89 231t221 96t220.5 -95t88.5 -230zM1454 1432l-1048 -1432h-265l1049 1432h264zM516 1136.5q0 61.5 -35 103.5t-85 42t-82.5 -42t-32.5 -103.5t34.5 -103.5t85 -42t83 42t32.5 103.5zM1522 311 q0 -135 -89.5 -231t-221.5 -96t-220 95t-88 230t89 231.5t221.5 96.5t220.5 -95.5t88 -230.5zM1333 303.5q0 61.5 -34.5 103.5t-85 42t-83 -42t-32.5 -103.5t34.5 -103.5t85 -42t83 42t32.5 103.5z" />
-<glyph unicode="&#x26;" horiz-adv-x="1421" d="M584 -16q-201 0 -342.5 111.5t-141.5 305.5q0 231 336 412q-84 96 -117.5 157.5t-33.5 155.5q0 164 120.5 252t284.5 88t278.5 -84t114.5 -235q0 -203 -327 -383q164 -201 266 -307q63 94 98 219l168 -119q-53 -141 -121 -248q82 -84 209 -203l-153 -143l-189 187 q-180 -166 -450 -166zM405.5 240.5q77.5 -58.5 206.5 -58.5t275 119q-207 217 -328 365q-231 -125 -231 -275q0 -92 77.5 -150.5zM566.5 1241q-54.5 -43 -54.5 -100.5t27.5 -103.5t95.5 -128q231 115 231 213q0 82 -54 122t-122.5 40t-123 -43z" />
-<glyph unicode="'" horiz-adv-x="475" d="M158 928v504h159v-504h-159z" />
-<glyph unicode="(" horiz-adv-x="679" d="M330 638.5q0 -235.5 82 -490t200 -420.5h-243q-100 139 -183.5 397t-83.5 514t83 514t184 397h243q-119 -166 -200.5 -421t-81.5 -490.5z" />
-<glyph unicode=")" horiz-adv-x="679" d="M350 638.5q0 235.5 -82 490.5t-200 421h243q100 -139 183.5 -397t83.5 -514t-83 -514t-184 -397h-243q119 166 200.5 420.5t81.5 490z" />
-<glyph unicode="*" horiz-adv-x="884" d="M690 881l-194 131l16 -234h-139l16 236l-194 -131l-70 118l209 105l-209 102l70 121l192 -129l-14 232h139l-14 -232l192 127l70 -119l-211 -102l211 -105z" />
-<glyph unicode="+" horiz-adv-x="1163" d="M489 307v389h-391v193h391v385h185v-385h391v-193h-391v-389h-185z" />
-<glyph unicode="," horiz-adv-x="575" d="M135 133q0 66 45 110t106.5 44t107.5 -44t46 -105.5t-55 -149.5l-123 -203h-119l76 213q-84 39 -84 135z" />
-<glyph unicode="-" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="." horiz-adv-x="573" d="M135 137.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5z" />
-<glyph unicode="/" horiz-adv-x="1202" d="M944 1661h205l-887 -1901h-205z" />
-<glyph unicode="0" horiz-adv-x="1409" d="M354 725q0 -240 85 -387.5t265.5 -147.5t263.5 146.5t83 388.5t-83 388.5t-263.5 146.5t-265.5 -147.5t-85 -387.5zM121 725q0 338 145.5 539.5t438 201.5t438 -201.5t145.5 -539.5t-145.5 -539.5t-438 -201.5t-438 201.5t-145.5 539.5z" />
-<glyph unicode="1" horiz-adv-x="780" d="M59 1432h521v-1432h-230v1217h-291v215z" />
-<glyph unicode="2" horiz-adv-x="1206" d="M759.5 872q61.5 84 61.5 170t-65.5 146.5t-165.5 60.5q-176 0 -293 -180l-195 113q94 141 208 212.5t293 71.5t314.5 -113.5t135.5 -310.5q0 -111 -57.5 -211t-211.5 -258l-335 -342h649v-231h-979v205l434 436q145 147 206.5 231z" />
-<glyph unicode="3" horiz-adv-x="1183" d="M158 1217v215h837v-189l-346 -387q197 -6 307.5 -124t110.5 -281q0 -219 -148.5 -344t-382 -125t-456.5 149l102 195q176 -123 369 -123q125 0 206 58t81 168t-90.5 175.5t-249.5 65.5q-80 0 -154 -23v184l332 386h-518z" />
-<glyph unicode="4" horiz-adv-x="1171" d="M690 580v262h230v-262h172v-220h-172v-360h-230v360h-614v213l526 859h264l-518 -852h342z" />
-<glyph unicode="5" horiz-adv-x="1185" d="M995 1434v-220h-604v-352q90 49 205 49q201 0 346 -120.5t145 -327.5t-151.5 -343t-372.5 -136q-289 0 -461 192l129 176q16 -16 44 -38.5t114 -60.5t188.5 -38t186.5 61.5t84 179t-89 182t-225.5 64.5t-259.5 -67l-102 110v689h823z" />
-<glyph unicode="6" horiz-adv-x="1269" d="M725 1241q-190 0 -280.5 -129t-92.5 -348q51 57 147.5 107.5t213.5 50.5q193 0 322.5 -128t129.5 -340t-140 -341t-353 -129q-344 0 -475 307q-74 176 -74 397t47 368.5t129 233.5q160 168 392.5 168t420.5 -145l-121 -178q-47 41 -126 73.5t-140 32.5zM474 640 q-83 -69 -83 -178.5t80 -188t201 -78.5t200.5 70.5t79.5 180t-73.5 186.5t-197.5 77t-207 -69z" />
-<glyph unicode="7" horiz-adv-x="1159" d="M94 1020v412h1008v-215l-606 -1217h-267l592 1212h-508v-192h-219z" />
-<glyph unicode="8" horiz-adv-x="1302" d="M651 1460q207 0 344.5 -108.5t137.5 -273.5t-154 -292q207 -131 207 -368q0 -184 -147.5 -309t-387 -125t-387 124.5t-147.5 309.5q0 238 207 368q-154 127 -154 292t137 273.5t344 108.5zM651.5 193q106.5 0 200.5 60t94 173t-90 174.5t-204.5 61.5t-205 -61.5 t-90.5 -174.5t94.5 -173t201 -60zM651.5 842q104.5 0 181 62.5t76.5 153.5t-76.5 152.5t-181 61.5t-181.5 -61.5t-77 -152.5t77 -153.5t181.5 -62.5z" />
-<glyph unicode="9" horiz-adv-x="1267" d="M545 201q190 0 280 129t93 348q-51 -57 -147.5 -107.5t-213.5 -50.5q-193 0 -323 128t-130 340t140.5 341t353.5 129q344 0 475 -307q74 -176 74 -397.5t-47 -368.5t-129 -233q-160 -168 -392.5 -168t-420.5 145l121 178q47 -41 126 -73.5t140 -32.5zM796 801.5 q83 68.5 83 178.5t-80 188.5t-200 78.5t-197.5 -70.5t-77.5 -181t70.5 -186.5t194.5 -76t207 68.5z" />
-<glyph unicode=":" horiz-adv-x="600" d="M147 137.5q0 63.5 44.5 107.5t107.5 44t108.5 -44t45.5 -107.5t-45.5 -108.5t-108.5 -45t-107.5 45t-44.5 108.5zM147 638.5q0 63.5 44.5 108t107.5 44.5t108.5 -44.5t45.5 -108t-45.5 -108.5t-108.5 -45t-107.5 45t-44.5 108.5z" />
-<glyph unicode=";" horiz-adv-x="606" d="M150 135q0 66 45 110t107.5 44t108.5 -44t46 -103.5t-56 -153.5l-125 -203h-118l75 213q-83 43 -83 137zM150 638.5q0 63.5 44 108t107.5 44.5t108.5 -44.5t45 -108t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5z" />
-<glyph unicode="&#x3c;" horiz-adv-x="1212" d="M92 684v258l965 447v-234l-721 -326v-22l721 -334v-233z" />
-<glyph unicode="=" horiz-adv-x="1277" d="M123 1081h1032v-192h-1032v192zM123 696h1032v-192h-1032v192z" />
-<glyph unicode="&#x3e;" horiz-adv-x="1212" d="M1120 942v-258l-964 -444v233l721 334v22l-721 326v234z" />
-<glyph unicode="?" horiz-adv-x="1040" d="M618 444h-231v125q0 82 19.5 122t85.5 106l149 149q47 51 47 127t-49 126t-127 50t-130 -48t-60 -128h-248q20 182 142 285.5t304 103.5t297 -99t115 -278q0 -123 -68 -204q-39 -49 -59.5 -69.5t-54 -52.5t-57 -55.5t-38.5 -39.5q-37 -45 -37 -127v-93zM395 34 q-47 44 -47 106.5t46 107.5t110.5 45t112 -44t47.5 -106.5t-46.5 -107.5t-111 -45t-111.5 44z" />
-<glyph unicode="@" horiz-adv-x="1851" d="M913 -258q-344 0 -576.5 229.5t-232.5 573.5t244 588.5t589 244.5t581.5 -244.5t236.5 -596.5q0 -221 -84 -357.5t-223 -136.5q-100 0 -159.5 68.5t-63.5 195.5q-115 -264 -367 -264q-176 0 -310 141.5t-134 358.5t127 364.5t336 147.5q94 0 178 -49.5t121 -116.5v137 h196v-715q0 -143 113 -143q63 0 115.5 93t52.5 245q0 328 -198 555t-510 227t-531 -219t-219 -524t206.5 -509t511.5 -204q246 0 377 123l45 -76q-72 -61 -190.5 -99t-231.5 -38zM1100 770q-78 86 -203 86t-200.5 -88t-75.5 -216t74.5 -223.5t203.5 -95.5t204 93.5t75 225.5 t-78 218z" />
-<glyph unicode="A" horiz-adv-x="1519" d="M401 326l-143 -326h-258l631 1432h258l631 -1432h-258l-144 326h-717zM1020 549l-260 590l-260 -590h520z" />
-<glyph unicode="B" horiz-adv-x="1445" d="M825 0h-626v1432h557q145 0 250.5 -35t156.5 -94q98 -111 99 -250q0 -168 -107 -250q-39 -29 -53.5 -36t-50.5 -24q133 -29 211.5 -120t78.5 -226q0 -150 -102 -264q-121 -133 -414 -133zM440 838h308q262 0 262 178q0 102 -63.5 147t-196.5 45h-310v-370zM440 223h379 q133 0 204 42t71 159q0 190 -306 190h-348v-391z" />
-<glyph unicode="C" horiz-adv-x="1507" d="M852 219q125 0 215 42t188 134l156 -159q-227 -252 -551.5 -252t-539 208.5t-214.5 528t218.5 532.5t551 213t556.5 -245l-154 -168q-102 98 -193.5 137t-214.5 39q-217 0 -364.5 -140.5t-147.5 -358.5t146.5 -364.5t347.5 -146.5z" />
-<glyph unicode="D" horiz-adv-x="1601" d="M1282 1244.5q207 -187.5 207 -521.5t-201 -528.5t-614 -194.5h-475v1432h491q385 0 592 -187.5zM1245 717q0 492 -563 491h-242v-981h269q260 0 398 124t138 366z" />
-<glyph unicode="E" horiz-adv-x="1339" d="M1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="F" horiz-adv-x="1236" d="M440 1206v-393h635v-223h-635v-590h-241v1432h954l-2 -226h-711z" />
-<glyph unicode="G" horiz-adv-x="1550" d="M1190 696h242v-489q-203 -223 -580 -223q-317 0 -531.5 208.5t-214.5 528t218.5 532.5t527.5 213t514 -180l-129 -184q-84 72 -169 99.5t-198 27.5q-217 0 -364.5 -140.5t-147.5 -368.5t143.5 -366.5t347.5 -138.5t341 88v393z" />
-<glyph unicode="H" horiz-adv-x="1591" d="M199 0v1432h241v-621h711v621h242v-1432h-242v586h-711v-586h-241z" />
-<glyph unicode="I" horiz-adv-x="638" d="M199 1432h241v-1432h-241v1432z" />
-<glyph unicode="J" horiz-adv-x="1128" d="M246 1214v218h696v-945q0 -250 -127 -374.5t-326 -124.5q-250 0 -426 176l138 190q139 -133 272 -133q94 0 160.5 63.5t66.5 190.5v739h-454z" />
-<glyph unicode="K" horiz-adv-x="1441" d="M199 1432h241v-699l656 699h307l-576 -627l584 -805h-287l-475 627l-209 -226v-401h-241v1432z" />
-<glyph unicode="L" horiz-adv-x="1159" d="M199 0v1432h241v-1203h654v-229h-895z" />
-<glyph unicode="M" horiz-adv-x="2013" d="M440 0h-241v1432h376l433 -900l432 900h375v-1432h-242v1118l-500 -993h-135l-498 993v-1118z" />
-<glyph unicode="N" horiz-adv-x="1712" d="M1272 1432h241v-1432h-262l-811 1044v-1044h-241v1432h241l832 -1070v1070z" />
-<glyph unicode="O" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212z" />
-<glyph unicode="P" horiz-adv-x="1400" d="M1165.5 1307q149.5 -125 149.5 -385t-152.5 -381t-468.5 -121h-254v-420h-241v1432h491q326 0 475.5 -125zM994.5 716q72.5 77 72.5 225.5t-92 209.5t-289 61h-246v-573h281q201 0 273.5 77z" />
-<glyph unicode="Q" horiz-adv-x="1720" d="M891 -12l-31 -2q-319 0 -536.5 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -527q0 -240 -129 -425t-344 -267q70 -92 176 -92q78 0 152.5 41t113.5 106l137 -190q-178 -188 -407 -189q-131 0 -252 74t-170 203zM860 1245q-213 0 -359.5 -151.5t-146.5 -367.5 t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5z" />
-<glyph unicode="R" horiz-adv-x="1490" d="M1341 967q0 -354 -309 -447l375 -520h-307l-342 481h-318v-481h-241v1432h532q328 0 469 -110.5t141 -354.5zM1020 763.5q74 63.5 74 204t-76 192.5t-270 52h-308v-512h301q205 0 279 63.5z" />
-<glyph unicode="S" horiz-adv-x="1290" d="M458.5 1200q-67.5 -43 -67.5 -130t67.5 -133t288 -99.5t332 -149.5t111.5 -283.5t-141.5 -304t-370.5 -116.5q-336 0 -596 231l151 182q217 -188 451 -188q117 0 185.5 50t68.5 133t-64.5 129t-222 84t-239.5 70t-146 83q-127 96 -127 294.5t144.5 306t357.5 107.5 q137 0 272.5 -45t233.5 -127l-129 -182q-63 57 -172 94t-214.5 37t-173 -43z" />
-<glyph unicode="T" horiz-adv-x="1236" d="M739 1210v-1210h-241v1210h-435v222h1111v-222h-435z" />
-<glyph unicode="U" horiz-adv-x="1572" d="M786 213q168 0 266.5 114.5t98.5 311.5v793h242v-803q0 -309 -170 -476t-436.5 -167t-436.5 166.5t-170 476.5v803h242v-793q0 -197 98 -311.5t266 -114.5z" />
-<glyph unicode="V" horiz-adv-x="1433" d="M852 0h-270l-576 1432h270l441 -1070l440 1070h270z" />
-<glyph unicode="W" horiz-adv-x="2146" d="M645 401l320 1031h217l319 -1031l361 1031h260l-500 -1432h-240l-301 981h-16l-301 -981h-240l-499 1432h260z" />
-<glyph unicode="X" horiz-adv-x="1378" d="M1047 0l-353 539h-10l-352 -539h-301l491 735l-456 697h299l319 -484h10l320 484h299l-457 -697l492 -735h-301z" />
-<glyph unicode="Y" horiz-adv-x="1277" d="M762 0h-246v565l-532 867h264l391 -652l391 652h264l-532 -867v-565z" />
-<glyph unicode="Z" horiz-adv-x="1382" d="M930 1210h-807v222h1143v-189l-832 -1014v-6h844v-223h-1182v186l834 1018v6z" />
-<glyph unicode="[" horiz-adv-x="727" d="M643 1550v-172h-283v-1493h283v-172h-463v1837h463z" />
-<glyph unicode="\" horiz-adv-x="1069" d="M57 1550h205l746 -1550h-205z" />
-<glyph unicode="]" horiz-adv-x="727" d="M84 1378v172h463v-1837h-463v172h283v1493h-283z" />
-<glyph unicode="^" horiz-adv-x="806" d="M559 1520l-158 170l-157 -170h-199l250 319h209l248 -319h-193z" />
-<glyph unicode="_" horiz-adv-x="1478" d="M147 -283v117h1184v-117h-1184z" />
-<glyph unicode="`" horiz-adv-x="1705" d="M1106 1229h-209l-250 196l242 101z" />
-<glyph unicode="a" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166z" />
-<glyph unicode="b" horiz-adv-x="1376" d="M1124.5 954.5q155.5 -151.5 155.5 -403.5t-154.5 -409.5t-360.5 -157.5t-370 180v-164h-229v1520h229v-621q135 207 354.5 207t375 -151.5zM485.5 287.5q94.5 -99.5 229.5 -99.5t235.5 98.5t100.5 255t-98.5 260t-235.5 103.5t-231.5 -103.5t-94.5 -259t94.5 -255z" />
-<glyph unicode="c" horiz-adv-x="1179" d="M649 -16q-227 0 -391 154.5t-164 404.5t171 406.5t417 156.5t416 -170l-135 -166q-141 123 -284.5 123t-249 -95.5t-105.5 -246t104 -254.5t257 -104t288 139l135 -148q-199 -200 -459 -200z" />
-<glyph unicode="d" horiz-adv-x="1376" d="M249.5 139.5q-153.5 155.5 -153.5 409.5t158 405.5t376 151.5t351 -184v598h229v-1520h-229v164q-127 -180 -371 -180q-207 0 -360.5 155.5zM426 284.5q100 -98.5 235.5 -98.5t229.5 99.5t94 255t-94 260t-231.5 104.5t-235.5 -104.5t-98 -261t100 -255z" />
-<glyph unicode="e" horiz-adv-x="1265" d="M1180 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -459 -182q-229 0 -390 152.5t-161 409.5t164 408.5t386 151.5t378 -134t156 -370v-158zM326 625h624q0 137 -86 210.5t-212 73.5t-226 -76.5t-100 -207.5z" />
-<glyph unicode="f" horiz-adv-x="790" d="M449 1180v-90h286v-185h-286v-905h-230v905h-137v185h137v84q0 172 103.5 273t250 101t267.5 -108l-95 -162q-68 72 -141.5 72t-114 -46t-40.5 -124z" />
-<glyph unicode="g" horiz-adv-x="1339" d="M1174 1090v-951q0 -289 -157 -433t-402.5 -144t-444.5 153l109 174q160 -121 322.5 -120.5t257.5 84.5t95 268v139q-51 -96 -146 -153.5t-214 -57.5q-217 0 -356.5 151.5t-139.5 377t139.5 377t355.5 151.5t351 -178v162h230zM406.5 355.5q82.5 -97.5 223 -97.5t227.5 94 t87 234.5t-88 238t-227.5 97.5t-222 -100.5t-82.5 -234.5t82.5 -231.5z" />
-<glyph unicode="h" horiz-adv-x="1323" d="M395 590v-590h-229v1518h229v-627q49 100 148.5 157.5t214.5 57.5q184 0 297.5 -112.5t113.5 -325.5v-668h-229v598q0 301 -250 301q-119 0 -207 -78.5t-88 -230.5z" />
-<glyph unicode="i" d="M395 0h-229v1090h229v-1090zM137 1409q0 59 43 102t102.5 43t102.5 -43t43 -102t-43 -102t-102.5 -43t-102.5 43t-43 102z" />
-<glyph unicode="j" d="M166 -51v1141h229v-1149q0 -172 -103.5 -273.5t-249.5 -101.5t-267 108l106 172q70 -68 140.5 -67.5t107.5 45.5t37 125zM133 1409q0 59 43 102t102.5 43t102.5 -43t43 -102t-43 -102t-102.5 -43t-102.5 43t-43 102z" />
-<glyph unicode="k" horiz-adv-x="1189" d="M395 0h-229v1520h229v-893l443 463h295l-414 -433l444 -657h-278l-324 477l-166 -168v-309z" />
-<glyph unicode="l" d="M395 0h-229v1520h229v-1520z" />
-<glyph unicode="m" horiz-adv-x="2076" d="M395 590v-590h-229v1090h229v-199q49 100 148.5 157.5t214.5 57.5q258 0 350 -213q162 213 403 213q184 0 298 -112.5t114 -325.5v-668h-229v598q0 301 -250 301q-117 0 -204 -74.5t-91 -218.5v-606h-229v598q0 156 -55.5 228.5t-174.5 72.5t-207 -78.5t-88 -230.5z" />
-<glyph unicode="n" horiz-adv-x="1323" d="M395 590v-590h-229v1090h229v-199q55 100 152.5 157.5t210.5 57.5q184 0 297.5 -112.5t113.5 -325.5v-668h-229v598q0 301 -250 301q-119 0 -207 -78.5t-88 -230.5z" />
-<glyph unicode="o" horiz-adv-x="1335" d="M667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5z" />
-<glyph unicode="p" horiz-adv-x="1376" d="M1124.5 954.5q155.5 -151.5 155.5 -403.5t-154.5 -409.5t-360.5 -157.5t-370 180v-561h-229v1487h229v-191q135 207 354.5 207t375 -151.5zM485.5 287.5q94.5 -99.5 229.5 -99.5t235.5 98.5t100.5 255t-98.5 260t-235.5 103.5t-231.5 -103.5t-94.5 -259t94.5 -255z" />
-<glyph unicode="q" horiz-adv-x="1376" d="M251 141.5q-155 157.5 -155 409.5t156 403.5t375 151.5t354 -207v191h229v-1487h-229v561q-164 -180 -369.5 -180t-360.5 157.5zM426 286.5q100 -98.5 235.5 -98.5t229.5 99.5t94 255t-94 259t-231.5 103.5t-235.5 -103.5t-98 -260t100 -255z" />
-<glyph unicode="r" horiz-adv-x="813" d="M737 874q-170 0 -256 -110.5t-86 -296.5v-467h-229v1090h229v-220q55 102 150.5 168t202.5 68l2 -232h-13z" />
-<glyph unicode="s" horiz-adv-x="1036" d="M829.5 77q-112.5 -93 -288.5 -93q-119 0 -247 43t-226 120l110 179q190 -143 369 -144q78 0 123 36t45 91q0 82 -217 148q-16 6 -25 8q-340 92 -340 307q0 152 118 243t306 91t356 -111l-86 -170q-133 88 -288 88q-82 0 -133.5 -29.5t-51.5 -88.5q0 -53 54 -78 q37 -18 103.5 -34.5t117.5 -33t99 -37t103 -57.5q111 -74 111 -229.5t-112.5 -248.5z" />
-<glyph unicode="t" horiz-adv-x="856" d="M449 905v-553q0 -78 40.5 -124t114.5 -46t141 72l95 -162q-121 -109 -267.5 -108.5t-250 101.5t-103.5 273v547h-137v185h137v342h230v-342h286v-185h-286z" />
-<glyph unicode="u" horiz-adv-x="1323" d="M928 500v590h229v-1090h-229v199q-55 -100 -152.5 -157.5t-210.5 -57.5q-184 0 -297.5 112.5t-113.5 325.5v668h229v-598q0 -301 250 -302q119 0 207 79t88 231z" />
-<glyph unicode="v" horiz-adv-x="1171" d="M455 0l-439 1090h238l332 -824l332 824h237l-438 -1090h-262z" />
-<glyph unicode="w" horiz-adv-x="1867" d="M676 0h-262l-377 1090h237l271 -824l270 824h238l270 -824l270 824h238l-377 -1090h-262l-258 745z" />
-<glyph unicode="x" horiz-adv-x="1142" d="M340 1090l233 -359l242 359h272l-380 -533l397 -557h-283l-260 362l-254 -362h-268l387 555l-367 535h281z" />
-<glyph unicode="y" horiz-adv-x="1175" d="M303 -434q-150 0 -270 108l104 187q72 -68 148.5 -68t125 55.5t48.5 120.5q0 29 -441 1121h246l326 -803l325 803h246l-528 -1295q-47 -106 -135.5 -167.5t-194.5 -61.5z" />
-<glyph unicode="z" horiz-adv-x="1107" d="M131 889v196h852v-206l-612 -680h645v-199h-926v223l596 666h-555z" />
-<glyph unicode="{" horiz-adv-x="688" d="M565 1362q-127 0 -127 -117v-444q0 -143 -135 -168q135 -23 135 -166v-481q0 -53 30 -74t114 -21v-190h-70q-279 0 -279 270v443q0 68 -24.5 95.5t-77.5 27.5h-49v190h49q53 0 77.5 28.5t24.5 98.5v426q0 270 279 270h70v-190q-7 2 -17 2z" />
-<glyph unicode="|" horiz-adv-x="526" d="M178 -313v1915h170v-1915h-170z" />
-<glyph unicode="}" horiz-adv-x="688" d="M176 -299h-70v190q84 0 114 20.5t30 74.5v481q0 143 135 166q-135 25 -135 168v444q0 63 -34 91t-66 28h-7l-37 -4v190h70q279 0 279 -270v-426q0 -70 24.5 -98.5t77.5 -28.5h49v-190h-49q-53 0 -77.5 -28t-24.5 -95v-443q0 -270 -279 -270z" />
-<glyph unicode="~" horiz-adv-x="1157" d="M377 758q-82 0 -96 -133l-179 51q12 143 86 216t191 73q92 0 248 -84q102 -53 151 -54q82 0 96 134l181 -52q-12 -143 -87 -217t-192 -74q-88 0 -248 87q-102 53 -151 53z" />
-<glyph unicode="&#xa0;" />
-<glyph unicode="&#xa1;" horiz-adv-x="602" d="M442 -16h-284v258l61 739h164l59 -739v-258zM195 1200q-45 45 -45 107.5t45 107.5t107.5 45t107.5 -45t45 -107.5t-45 -107.5t-107.5 -45t-107.5 45z" />
-<glyph unicode="&#xa2;" horiz-adv-x="1200" d="M592 -250v238q-207 23 -349.5 173t-142.5 379.5t141.5 380t350.5 179.5v243h131v-239q231 -18 381 -168l-135 -166q-125 106 -246 119v-694q135 14 256 137l135 -148q-170 -174 -391 -196v-238h-131zM404.5 765q-74.5 -89 -74.5 -215t72.5 -220t189.5 -125v676 q-113 -27 -187.5 -116z" />
-<glyph unicode="&#xa3;" horiz-adv-x="1261" d="M539 1057v-269h342v-200h-342v-373h610v-215h-1020v215h168v373h-176v200h176v256q0 248 125 362t328 114q268 0 403 -230l-170 -135q-84 139 -217 139q-98 0 -162.5 -56t-64.5 -181z" />
-<glyph unicode="&#xa4;" horiz-adv-x="1546" d="M307 311q-109 147 -108.5 336t104.5 332l-180 180l145 144l185 -183q139 90 317 90t324 -92l184 185l145 -144l-182 -182q104 -147 104.5 -330.5t-110.5 -333.5l188 -186l-143 -143l-195 190q-137 -86 -313 -86t-313 86l-193 -190l-143 143zM772 305q143 0 237.5 96.5 t94.5 248t-94.5 246.5t-237.5 95t-237.5 -95t-94.5 -246.5t94.5 -248t237.5 -96.5z" />
-<glyph unicode="&#xa5;" horiz-adv-x="1464" d="M209 434h389v111l-8 12h-381v180h274l-411 695h264l387 -658h14l402 658h260l-426 -695h268v-180h-379l-6 -12v-111h385v-180h-387v-254h-256v254h-389v180z" />
-<glyph unicode="&#xa6;" horiz-adv-x="565" d="M186 881v669h193v-669h-193zM186 -49v670h193v-670h-193z" />
-<glyph unicode="&#xa7;" horiz-adv-x="1249" d="M297 649q0 -96 120 -159.5t306 -63.5q106 0 177 45t71 111.5t-47 109.5t-121 66q-147 43 -261 43t-179.5 -40t-65.5 -112zM468 1284q-54 -43 -54 -111.5t59 -109.5t269 -91t314.5 -130t104.5 -230q0 -102 -65.5 -185t-204.5 -116q94 -35 141 -106.5t47 -147.5 q0 -141 -119.5 -240.5t-320.5 -99.5q-293 0 -518 201l131 156q201 -166 393 -166q219 0 219 139q0 66 -68.5 109t-268 101t-311.5 141t-112 243q0 98 68 180t188 105q-166 66 -165.5 229.5t120 264t306.5 100.5q133 0 233 -33t205 -109l-117 -164q-152 113 -326 113 q-94 0 -148 -43z" />
-<glyph unicode="&#xa8;" horiz-adv-x="1249" d="M376 1268q-36 37 -36 89t37 89t89 37t89 -36t37 -88t-38 -90t-90 -38t-88 37zM756 1268q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-37 -90t-89 -38t-89 37z" />
-<glyph unicode="&#xa9;" horiz-adv-x="1703" d="M1593 719q0 -305 -217 -524.5t-526 -219.5t-524 217.5t-215 522.5t217 524t524 219t524 -217t217 -522zM1503 717q0 268 -187.5 458.5t-459.5 190.5t-460.5 -191.5t-188.5 -461t186.5 -460t458.5 -190.5t461.5 193t189.5 461zM1194 459q-139 -145 -317.5 -145.5 t-297 111.5t-118.5 294t123 294.5t305 112.5t299 -122l-98 -121q-106 90 -209 90t-179.5 -68.5t-76.5 -178.5t76.5 -185.5t188 -75.5t206.5 100z" />
-<glyph unicode="&#xaa;" horiz-adv-x="720" d="M567 954h-96v68q-63 -76 -154.5 -76t-143.5 45t-52 119q0 150 203 150h139v18q0 100 -113 100q-68 0 -145 -51l-47 68q90 72 194 71q215 0 215 -186v-326zM461 1143v43h-119q-115 0 -115 -74q0 -37 29 -56.5t79 -19.5t88 30t38 77z" />
-<glyph unicode="&#xab;" horiz-adv-x="1120" d="M580 852l-236 -360l236 -361h-222l-243 361l243 360h222zM985 852l-235 -360l235 -361h-221l-244 361l244 360h221z" />
-<glyph unicode="&#xac;" horiz-adv-x="1695" d="M137 911h1370v-731h-168v551h-1202v180z" />
-<glyph unicode="&#xad;" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="&#xae;" horiz-adv-x="1703" d="M1593 719q0 -305 -217 -524.5t-526 -219.5t-524 217.5t-215 522.5t217 524t524 219t524 -217t217 -522zM1503 717q0 268 -187.5 458.5t-459.5 190.5t-460.5 -191.5t-188.5 -461t186.5 -460t458.5 -190.5t461.5 193t189.5 461zM1210 860q0 -199 -174 -250l213 -288h-172 l-192 268h-176v-268h-140v800h301q182 0 261 -62.5t79 -199.5zM1031 747.5q42 34.5 42 113.5t-43 109.5t-151 30.5h-170v-288h165q115 0 157 34.5z" />
-<glyph unicode="&#xaf;" horiz-adv-x="868" d="M750 1407v-178h-629v178h629z" />
-<glyph unicode="&#xb0;" horiz-adv-x="851" d="M426 1464q131 0 223 -92t92 -223t-92 -222t-223 -91t-223 91t-92 222t92 223t223 92zM277.5 1001.5q60.5 -61.5 147.5 -61.5t147.5 61.5t60.5 147.5t-60.5 146.5t-147.5 60.5t-147.5 -60.5t-60.5 -146.5t60.5 -147.5z" />
-<glyph unicode="&#xb1;" horiz-adv-x="1163" d="M489 565v277h-391v192h391v273h185v-273h391v-192h-391v-277h-185zM98 451h967v-172h-967v172z" />
-<glyph unicode="&#xb2;" horiz-adv-x="858" d="M519 1120q36 49 36 99.5t-38 85t-97 34.5q-104 0 -172 -104l-113 65q109 166 287 166q111 0 189.5 -66.5t78.5 -180.5q0 -63 -33.5 -122t-124.5 -153l-194 -199h379v-135h-572v119l252 256q86 86 122 135z" />
-<glyph unicode="&#xb3;" horiz-adv-x="811" d="M158 1305v127h495v-113l-204 -229q117 -2 181 -73t64 -183.5t-87 -186.5t-226 -74t-270 89l61 114q100 -72 217 -71q74 0 122 33.5t48 99t-53 104.5t-124 39t-116 -14v108l197 230h-305z" />
-<glyph unicode="&#xb4;" horiz-adv-x="1705" d="M901 1286h-209l217 297l242 -100z" />
-<glyph unicode="&#xb5;" horiz-adv-x="1314" d="M176 -397v1487h230v-598q0 -301 249 -302q119 0 207 79t88 231v590h230v-1090h-230v199q-55 -100 -152.5 -157.5t-204 -57.5t-187.5 34v-415h-230z" />
-<glyph unicode="&#xb6;" horiz-adv-x="1374" d="M72 1139q0 174 120.5 292.5t366.5 118.5h612v-1779h-190v1585h-229v-1585h-185v981q-49 -6 -94 -7q-113 0 -196.5 39t-124.5 101q-80 119 -80 254z" />
-<glyph unicode="&#xb7;" horiz-adv-x="595" d="M145 653.5q0 63.5 44 107.5t107.5 44t109 -44t45.5 -107.5t-45.5 -108.5t-109 -45t-107.5 45t-44 108.5z" />
-<glyph unicode="&#xb8;" horiz-adv-x="575" d="M481 -240q0 -78 -63.5 -136t-160.5 -58t-171 45l53 117q39 -20 79 -20.5t62.5 23t22.5 56.5t-23.5 58.5t-59.5 25.5t-60 -10l73 139h146l-41 -78q143 -19 143 -162z" />
-<glyph unicode="&#xb9;" horiz-adv-x="548" d="M84 1432h303v-838h-133v713h-170v125z" />
-<glyph unicode="&#xba;" horiz-adv-x="774" d="M387 1032q72 0 118 47t46 122t-46 122t-118 47t-118 -47t-46 -122t46 -122t118 -47zM387 934q-117 0 -194.5 76.5t-77.5 189.5t77.5 189.5t194.5 76.5t194.5 -76.5t77.5 -189.5t-77.5 -189.5t-194.5 -76.5z" />
-<glyph unicode="&#xbb;" horiz-adv-x="1120" d="M776 492l-235 360h221l244 -360l-244 -361h-221zM371 492l-236 360h221l244 -360l-244 -361h-221z" />
-<glyph unicode="&#xbc;" horiz-adv-x="1767" d="M1210 1550h148l-764 -1566h-148zM1452 340v154h133v-154h103v-129h-103v-211h-133v211h-358v125l305 502h155l-303 -498h201zM72 1432h303v-838h-133v713h-170v125z" />
-<glyph unicode="&#xbd;" horiz-adv-x="1900" d="M1276 1550h147l-764 -1566h-147zM1613 510q36 49 36 99t-38 85t-98 35q-100 0 -172 -104l-110 65q109 166 285 166q111 0 190.5 -66.5t79.5 -181.5q0 -63 -34 -122.5t-124 -151.5l-196 -199h378v-135h-571v119l254 256q84 86 120 135zM72 1432h303v-838h-133v713h-170 v125z" />
-<glyph unicode="&#xbe;" horiz-adv-x="1845" d="M1294 1550h148l-764 -1566h-148zM1536 340v154h133v-154h103v-129h-103v-211h-133v211h-358v125l305 502h155l-303 -498h201zM129 1305v127h496v-113l-205 -229q117 -2 181.5 -73t64.5 -183.5t-87 -186.5t-226.5 -74t-270.5 89l61 114q100 -72 217 -71q74 0 122 33.5 t48 99t-53 104.5t-123.5 39t-115.5 -14v108l196 230h-305z" />
-<glyph unicode="&#xbf;" horiz-adv-x="1040" d="M422 1004h231v-125q0 -82 -19.5 -122t-84.5 -106l-150 -149q-47 -51 -47 -127t49.5 -126t127 -50t130 48t60.5 128h248q-20 -182 -142.5 -285.5t-304.5 -103.5t-296.5 99t-114.5 277q0 123 67 205q39 49 59.5 69.5t54.5 52.5t57.5 55.5t37.5 41.5q37 43 37 125v93z M645 1414q47 -44 47 -106.5t-46 -107.5t-110.5 -45t-111.5 44t-47 106.5t46 107.5t110.5 45t111.5 -44z" />
-<glyph unicode="&#xc0;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM860 1550h-209l-250 197l242 100z" />
-<glyph unicode="&#xc1;" horiz-adv-x="1519" d="M401 326l-143 -326h-258l631 1432h258l631 -1432h-258l-144 326h-717zM1020 549l-260 590l-260 -590h520zM870 1552h-208l217 297l241 -100z" />
-<glyph unicode="&#xc2;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM633 1825h213l250 -275h-199l-158 115l-157 -115h-199z" />
-<glyph unicode="&#xc3;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM897 1544q-53 0 -148.5 48t-121.5 48q-68 0 -70 -90h-151q0 119 48 193t134 74q55 0 153.5 -48.5t128.5 -48.5q61 0 62 90h153q-6 -266 -188 -266z" />
-<glyph unicode="&#xc4;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM468 1579q-36 37 -36 89t36 89t89 37t90 -36t37 -88t-37 -90t-90 -38t-89 37zM848 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-38 -90t-89 -38t-88 37z" />
-<glyph unicode="&#xc5;" horiz-adv-x="1495" d="M903.5 1729.5q67.5 -64.5 67.5 -162t-97 -162.5l621 -1405h-266l-146 326h-686l-139 -326h-258l618 1407q-92 66 -92 162t66.5 160.5t155 64.5t156 -64.5zM987 549l-246 551l-243 -551h489zM829.5 1498q30.5 32 30.5 82t-30.5 82t-81 32t-82 -32t-31.5 -82t31.5 -82 t82 -32t81 32z" />
-<glyph unicode="&#xc6;" horiz-adv-x="2129" d="M1995 1432v-226h-764v-393h686v-211h-686v-377h788v-225h-1052v326h-518l-175 -326h-297l750 1432h1268zM967 557v649h-60l-342 -649h402z" />
-<glyph unicode="&#xc7;" horiz-adv-x="1507" d="M852 219q125 0 215 42t188 134l156 -159q-213 -238 -520 -250l-33 -64q143 -18 143 -162q0 -78 -63.5 -136t-160.5 -58t-171 45l53 117q39 -20 79 -20.5t62.5 23t22.5 56.5t-23.5 58.5t-59 25.5t-60.5 -10l68 129q-281 35 -461.5 237.5t-180.5 507.5t218.5 518t551 213 t556.5 -245l-154 -168q-102 98 -193.5 137t-214.5 39q-217 0 -364.5 -140.5t-147.5 -358.5t146.5 -364.5t347.5 -146.5z" />
-<glyph unicode="&#xc8;" horiz-adv-x="1339" d="M862 1550h-209l-250 197l242 100zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xc9;" horiz-adv-x="1339" d="M1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005zM811 1550h-209l217 297l242 -100z" />
-<glyph unicode="&#xca;" horiz-adv-x="1339" d="M596 1825h213l250 -275h-199l-158 115l-157 -115h-199zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xcb;" horiz-adv-x="1339" d="M425 1579q-36 37 -36 89t37 89t89 37t89 -36t37 -88t-38 -90t-90 -38t-88 37zM805 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-37 -90t-89 -38t-89 37zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xcc;" horiz-adv-x="638" d="M428 1550h-209l-250 197l242 100zM199 1432h241v-1432h-241v1432z" />
-<glyph unicode="&#xcd;" horiz-adv-x="638" d="M199 1432h241v-1432h-241v1432zM420 1550h-209l217 297l242 -100z" />
-<glyph unicode="&#xce;" horiz-adv-x="638" d="M199 1432h241v-1432h-241v1432zM236 1825h213l249 -275h-198l-158 115l-158 -115h-198z" />
-<glyph unicode="&#xcf;" horiz-adv-x="638" d="M42 1579q-36 37 -36 89t36 89t89 37t90 -36t37 -88t-37 -90t-90 -38t-89 37zM422 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-38 -90t-89 -38t-88 37zM199 1432h241v-1432h-241v1432z" />
-<glyph unicode="&#xd0;" horiz-adv-x="1617" d="M53 602v215h162v615h492q385 0 591.5 -187.5t206.5 -521.5t-200.5 -528.5t-614.5 -194.5h-475v602h-162zM1262 717q0 492 -564 491h-241v-391h512v-215h-512v-375h268q260 0 398.5 124t138.5 366z" />
-<glyph unicode="&#xd1;" horiz-adv-x="1712" d="M1272 1432h241v-1432h-262l-811 1044v-1044h-241v1432h241l832 -1070v1070zM1001 1544q-53 0 -148 48t-122 48q-68 0 -69 -90h-152q0 119 48 193t134 74q55 0 153.5 -48.5t129.5 -48.5q61 0 61 90h154q-7 -266 -189 -266z" />
-<glyph unicode="&#xd2;" horiz-adv-x="1720" d="M1016 1550h-209l-250 197l242 100zM860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528 t-536.5 -212z" />
-<glyph unicode="&#xd3;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM897 1550h-209l217 297 l242 -100z" />
-<glyph unicode="&#xd4;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM750 1825h213l249 -275h-198 l-158 115l-158 -115h-198z" />
-<glyph unicode="&#xd5;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM1008 1544q-53 0 -148.5 48 t-122.5 48q-68 0 -69 -90h-152q0 119 48 193t134 74q55 0 153.5 -48.5t129.5 -48.5q61 0 61 90h154q-6 -266 -188 -266z" />
-<glyph unicode="&#xd6;" horiz-adv-x="1720" d="M570.5 1579q-35.5 37 -35.5 89t35.5 89t89 37t90 -36t36.5 -88t-36.5 -90t-90 -38t-89 37zM950 1579q-37 37 -37 89t37 89t89.5 37t89 -36t36.5 -88t-37.5 -90t-89 -38t-88.5 37zM860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5 t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212z" />
-<glyph unicode="&#xd7;" horiz-adv-x="1157" d="M580 907l348 350l129 -131l-346 -346l348 -350l-129 -131l-350 350l-351 -350l-131 131l351 350l-349 346l131 131z" />
-<glyph unicode="&#xd8;" horiz-adv-x="1720" d="M1614 727q0 -317 -217 -529t-537 -212q-109 0 -207 24l-116 -250h-205l149 320q-174 94 -274.5 265t-100.5 382q0 315 217.5 527t536.5 212q125 0 248 -39l111 234h204l-145 -313q156 -98 246 -261t90 -360zM860 1245q-213 0 -359.5 -151.5t-146.5 -368.5 q0 -133 60.5 -248t165.5 -186l434 930q-74 24 -154 24zM1366 725q0 250 -188 408l-428 -916q57 -10 110 -10q213 0 359.5 151.5t146.5 366.5z" />
-<glyph unicode="&#xd9;" horiz-adv-x="1572" d="M969 1550h-209l-250 197l242 100zM786 213q168 0 266.5 114.5t98.5 311.5v793h242v-803q0 -309 -170 -476t-436.5 -167t-436.5 166.5t-170 476.5v803h242v-793q0 -197 98 -311.5t266 -114.5z" />
-<glyph unicode="&#xda;" horiz-adv-x="1572" d="M786 213q168 0 266.5 114.5t98.5 311.5v793h242v-803q0 -309 -170 -476t-436.5 -167t-436.5 166.5t-170 476.5v803h242v-793q0 -197 98 -311.5t266 -114.5zM852 1552h-209l217 297l242 -100z" />
-<glyph unicode="&#xdb;" horiz-adv-x="1572" d="M786 213q168 0 266.5 114.5t98.5 311.5v793h242v-803q0 -309 -170 -476t-436.5 -167t-436.5 166.5t-170 476.5v803h242v-793q0 -197 98 -311.5t266 -114.5zM688 1825h213l250 -275h-199l-157 115l-158 -115h-199z" />
-<glyph unicode="&#xdc;" horiz-adv-x="1572" d="M511 1579q-36 37 -36 89t37 89t89 37t89 -36t37 -88t-38 -90t-90 -38t-88 37zM891 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-37 -90t-89 -38t-89 37zM786 213q168 0 266.5 114.5t98.5 311.5v793h242v-803q0 -309 -170 -476t-436.5 -167t-436.5 166.5t-170 476.5 v803h242v-793q0 -197 98 -311.5t266 -114.5z" />
-<glyph unicode="&#xdd;" horiz-adv-x="1277" d="M762 0h-246v565l-532 867h264l391 -652l391 652h264l-532 -867v-565zM797 1520h-209l217 297l242 -101z" />
-<glyph unicode="&#xde;" horiz-adv-x="1404" d="M1315 756q0 -272 -162 -394t-479 -122h-234v-240h-241v1432h241v-181h230q645 1 645 -495zM985 537.5q82 78.5 82 224t-100.5 208t-300.5 62.5h-226v-573h260q203 0 285 78.5z" />
-<glyph unicode="&#xdf;" horiz-adv-x="1333" d="M843.5 943q71.5 71 71.5 164t-54 160.5t-171 67.5q-156 0 -219 -96t-63 -285v-954h-242v934q0 147 13.5 207.5t30.5 114t41.5 91t63.5 78.5t86 66q111 59 258.5 59t248 -41t149.5 -108q92 -123 92 -266q0 -211 -213 -344q152 -16 227.5 -123t75.5 -246 q0 -193 -135 -307.5t-387 -114.5h-84v201h45q154 0 236.5 50t82.5 172t-81.5 180.5t-219.5 58.5q-47 0 -71 -3v191q147 22 218.5 93z" />
-<glyph unicode="&#xe0;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166zM786 1229h-208l-250 196l241 101z" />
-<glyph unicode="&#xe1;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166zM719 1229h-209l217 297l242 -101z" />
-<glyph unicode="&#xe2;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166zM489 1503h213l250 -274h-198l-158 114l-158 -114h-198z" />
-<glyph unicode="&#xe3;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166zM748 1223q-53 0 -148.5 48t-122.5 48q-68 0 -69 -90h-152q0 119 48 192.5t134 73.5q55 0 153.5 -48t129.5 -48q61 0 61 90h154q-6 -266 -188 -266z" />
-<glyph unicode="&#xe4;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62 t82 166zM285 1356q0 53 35.5 89t89 36t90.5 -36t37 -89t-37 -90t-90.5 -37t-89 37t-35.5 90zM700.5 1266q-36.5 37 -36.5 89t36.5 89t89 37t89 -36t36.5 -89t-37.5 -90t-89 -37t-88 37z" />
-<glyph unicode="&#xe5;" horiz-adv-x="1202" d="M1049 0h-209v145q-135 -162 -363 -161q-170 0 -281.5 96t-111.5 257t119 240.5t321 79.5h297v41q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450 158q193 0 315 -97.5t122 -306.5v-702zM825 1407q0 -86 -67.5 -149.5t-155.5 -63.5t-154.5 63.5t-66.5 149.5 t66.5 150.5t154.5 64.5t155.5 -64.5t67.5 -150.5zM819 406v92h-258q-248 0 -248 -156q0 -80 61.5 -122t171 -42t191.5 62t82 166zM684 1326q31 32 31 82t-31 82t-81 32t-82 -32t-32 -82t32 -82t82 -32t81 32z" />
-<glyph unicode="&#xe6;" horiz-adv-x="1949" d="M1864 471h-813q2 -131 95 -211t222 -80q184 0 291 129l131 -143q-176 -182 -441.5 -182t-414.5 196q-164 -197 -436 -196q-172 0 -293 97t-121 257t117.5 235.5t322.5 75.5h297v49q0 217 -241 217q-152 0 -316 -110l-102 143q199 158 450.5 158t362.5 -152 q147 152 371.5 152t371 -134t146.5 -370v-131zM819 406v65h-258q-190 0 -229 -57q-18 -29 -19 -72q0 -80 61.5 -122t171 -42t191.5 62t82 166zM1550.5 842.5q-75.5 66.5 -192.5 66.5t-206 -69.5t-99 -190.5l581 -2q-8 129 -83.5 195.5z" />
-<glyph unicode="&#xe7;" horiz-adv-x="1181" d="M838 -240q0 -78 -63.5 -136t-161 -58t-171.5 45l54 117q39 -20 78.5 -20.5t62 23t22.5 56.5t-23.5 58.5t-59 25.5t-60.5 -10l68 127q-207 25 -347.5 175t-140.5 390t171 396.5t417 156.5t416 -170l-135 -166q-141 123 -284.5 123t-249 -95.5t-105.5 -246t103 -254.5 t257 -104t289 139l135 -148q-168 -168 -381 -194l-35 -68q144 -19 144 -162z" />
-<glyph unicode="&#xe8;" horiz-adv-x="1265" d="M844 1229h-209l-250 196l242 101zM1180 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -459 -182q-229 0 -390 152.5t-161 409.5t164 408.5t386 151.5t378 -134t156 -370v-158zM326 625h624q0 137 -86 210.5t-212 73.5t-226 -76.5 t-100 -207.5z" />
-<glyph unicode="&#xe9;" horiz-adv-x="1265" d="M1180 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -459 -182q-229 0 -390 152.5t-161 409.5t164 408.5t386 151.5t378 -134t156 -370v-158zM326 625h624q0 137 -86 210.5t-212 73.5t-226 -76.5t-100 -207.5zM770 1233h-209l217 297 l242 -100z" />
-<glyph unicode="&#xea;" horiz-adv-x="1265" d="M1180 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -459 -182q-229 0 -390 152.5t-161 409.5t164 408.5t386 151.5t378 -134t156 -370v-158zM326 625h624q0 137 -86 210.5t-212 73.5t-226 -76.5t-100 -207.5zM543 1503h213l250 -274h-199 l-158 114l-157 -114h-199z" />
-<glyph unicode="&#xeb;" horiz-adv-x="1265" d="M332 1356q0 53 37 89t89 36t89 -36t37 -89t-38 -90t-90.5 -37t-88 37t-35.5 90zM747.5 1266q-36.5 37 -36.5 89t36.5 89t89 37t89.5 -36t37 -89t-37 -90t-89.5 -37t-89 37zM1180 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -459 -182 q-229 0 -390 152.5t-161 409.5t164 408.5t386 151.5t378 -134t156 -370v-158zM326 625h624q0 137 -86 210.5t-212 73.5t-226 -76.5t-100 -207.5z" />
-<glyph unicode="&#xec;" d="M410 1229h-209l-250 196l242 101zM166 1090h229v-1090h-229v1090z" />
-<glyph unicode="&#xed;" d="M389 1229h-192l217 287l225 -101zM166 1090h229v-1090h-229v1090z" />
-<glyph unicode="&#xee;" d="M166 1090h229v-1090h-229v1090zM184 1503h213l250 -274h-198l-158 114l-158 -114h-199z" />
-<glyph unicode="&#xef;" d="M-16 1356q0 53 36.5 89t89 36t89.5 -36t37 -89t-38 -90t-90.5 -37t-88 37t-35.5 90zM399 1266q-37 37 -37 89t37 89t89.5 37t89 -36t36.5 -89t-36.5 -90t-89 -37t-89.5 37zM166 1090h229v-1090h-229v1090z" />
-<glyph unicode="&#xf0;" horiz-adv-x="1220" d="M817 895q-78 129 -252 303l-190 -121l-117 111l193 123q-4 6 -150 127l195 112q74 -57 149 -129l174 111l121 -111l-180 -116q360 -391 360 -758q0 -252 -133 -407.5t-362.5 -155.5t-376 137t-146.5 353t143.5 354.5t346.5 138.5q145 0 221 -76zM404.5 269 q78.5 -85 206.5 -85t207 85t79 205t-79 206t-207 86t-206.5 -86t-78.5 -206t78.5 -205z" />
-<glyph unicode="&#xf1;" horiz-adv-x="1323" d="M395 590v-590h-229v1090h229v-199q55 100 152.5 157.5t210.5 57.5q184 0 297.5 -112.5t113.5 -325.5v-668h-229v598q0 301 -250 301q-119 0 -207 -78.5t-88 -230.5zM829 1223q-53 0 -148 48t-122 48q-68 0 -70 -90h-151q0 119 48 192.5t134 73.5q55 0 153.5 -48 t129.5 -48q61 0 61 90h154q-7 -266 -189 -266z" />
-<glyph unicode="&#xf2;" horiz-adv-x="1335" d="M809 1229h-209l-250 196l242 101zM667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5z" />
-<glyph unicode="&#xf3;" horiz-adv-x="1335" d="M667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5zM772 1229h-209l217 297l242 -101z" />
-<glyph unicode="&#xf4;" horiz-adv-x="1335" d="M667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5zM563 1503h213l250 -274h-199l-157 114 l-158 -114h-199z" />
-<glyph unicode="&#xf5;" horiz-adv-x="1335" d="M667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5zM819 1223q-53 0 -148.5 48t-121.5 48 q-68 0 -70 -90h-151q0 119 48 192.5t134 73.5q55 0 153.5 -48t129.5 -48q61 0 61 90h154q-7 -266 -189 -266z" />
-<glyph unicode="&#xf6;" horiz-adv-x="1335" d="M344 1356q0 53 37 89t89 36t89 -36t37 -89t-38 -90t-90 -37t-88 37t-36 90zM760 1266q-37 37 -37 89t37 89t89 37t89 -36t37 -89t-37 -90t-89 -37t-89 37zM667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5z M667.5 -16q-245.5 0 -409.5 162.5t-164 398t164 398.5t409.5 163t409.5 -163t164 -398.5t-164 -398t-409.5 -162.5z" />
-<glyph unicode="&#xf7;" horiz-adv-x="1163" d="M430 432.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5zM430 1159.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5zM98 889h967v-193h-967v193z" />
-<glyph unicode="&#xf8;" horiz-adv-x="1335" d="M668 -16q-57 0 -133 14l-99 -213h-205l131 281q-125 74 -196.5 200.5t-71.5 278.5q0 236 164 398.5t410 162.5q90 0 170 -25l90 193h205l-127 -270q111 -78 173 -198t62 -261q0 -236 -163.5 -398.5t-409.5 -162.5zM421 801.5q-97 -99.5 -97 -270.5t129 -273l297 635 q-35 8 -82 8q-150 0 -247 -99.5zM668 188q150 0 247 99.5t97 259.5t-101 256l-286 -613q14 -2 43 -2z" />
-<glyph unicode="&#xf9;" horiz-adv-x="1323" d="M805 1229h-209l-250 196l242 101zM928 500v590h229v-1090h-229v199q-55 -100 -152.5 -157.5t-210.5 -57.5q-184 0 -297.5 112.5t-113.5 325.5v668h229v-598q0 -301 250 -302q119 0 207 79t88 231z" />
-<glyph unicode="&#xfa;" horiz-adv-x="1323" d="M928 500v590h229v-1090h-229v199q-55 -100 -152.5 -157.5t-210.5 -57.5q-184 0 -297.5 112.5t-113.5 325.5v668h229v-598q0 -301 250 -302q119 0 207 79t88 231zM717 1233h-209l217 297l242 -100z" />
-<glyph unicode="&#xfb;" horiz-adv-x="1323" d="M928 500v590h229v-1090h-229v199q-55 -100 -152.5 -157.5t-210.5 -57.5q-184 0 -297.5 112.5t-113.5 325.5v668h229v-598q0 -301 250 -302q119 0 207 79t88 231zM553 1503h213l250 -274h-199l-158 114l-157 -114h-199z" />
-<glyph unicode="&#xfc;" horiz-adv-x="1323" d="M332 1356q0 53 37 89t89 36t89 -36t37 -89t-38 -90t-90.5 -37t-88 37t-35.5 90zM747.5 1266q-36.5 37 -36.5 89t36.5 89t89 37t89.5 -36t37 -89t-37 -90t-89.5 -37t-89 37zM928 500v590h229v-1090h-229v199q-55 -100 -152.5 -157.5t-210.5 -57.5q-184 0 -297.5 112.5 t-113.5 325.5v668h229v-598q0 -301 250 -302q119 0 207 79t88 231z" />
-<glyph unicode="&#xfd;" horiz-adv-x="1175" d="M303 -434q-150 0 -270 108l104 187q72 -68 148.5 -68t125 55.5t48.5 120.5q0 29 -441 1121h246l326 -803l325 803h246l-528 -1295q-47 -106 -135.5 -167.5t-194.5 -61.5zM680 1286h-209l217 297l242 -100z" />
-<glyph unicode="&#xfe;" horiz-adv-x="1376" d="M1132.5 946q147.5 -160 147.5 -404.5t-146.5 -401t-390.5 -156.5q-168 0 -292 106q-29 25 -41 41l-15 19v-547h-229v1917h229v-580q6 6 15.5 17.5t44 40t73.5 51.5q102 57 220 57q237 0 384.5 -160zM939 293.5q95 107.5 95 252t-94 252t-233.5 107.5t-227.5 -106.5 t-88 -254t88 -253t226.5 -105.5t233.5 107.5z" />
-<glyph unicode="&#xff;" horiz-adv-x="1175" d="M283 1356q0 53 36.5 89t89 36t89.5 -36t37 -89t-38 -90t-90.5 -37t-88 37t-35.5 90zM698.5 1266q-36.5 37 -36.5 89t36.5 89t89 37t89 -36t36.5 -89t-36.5 -90t-89 -37t-89 37zM303 -434q-150 0 -270 108l104 187q72 -68 148.5 -68t125 55.5t48.5 120.5q0 29 -441 1121 h246l326 -803l325 803h246l-528 -1295q-47 -106 -135.5 -167.5t-194.5 -61.5z" />
-<glyph unicode="&#x152;" horiz-adv-x="2183" d="M2048 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1235q-309 0 -519 205t-210 511t209.5 511t519.5 205h1210zM371 717q0 -209 142 -357.5t347 -148.5h182v1010h-182q-207 0 -348 -147.5t-141 -356.5z" />
-<glyph unicode="&#x153;" horiz-adv-x="2183" d="M2097 444h-854q8 -119 108.5 -191.5t229.5 -72.5q205 0 311 129l131 -143q-176 -182 -458 -182q-133 0 -250 55t-193 158q-166 -213 -454 -213q-246 0 -410 162.5t-164 398t164 398.5t410 163q287 0 454 -215q76 104 194 159.5t245 55.5q225 0 380.5 -134t155.5 -370 v-158zM667.5 188q149.5 0 247 99.5t97.5 257t-97.5 257t-247 99.5t-246.5 -99.5t-97 -257t97 -257t246.5 -99.5zM1243 625h625q0 137 -86 210.5t-212 73.5t-226.5 -76.5t-100.5 -207.5z" />
-<glyph unicode="&#x2c6;" horiz-adv-x="1380" d="M590 1503h213l250 -274h-199l-158 114l-157 -114h-199z" />
-<glyph unicode="&#x2dc;" horiz-adv-x="1062" d="M686 1513q-53 0 -148.5 48.5t-121.5 48.5q-68 0 -70 -90h-151q0 119 48 192.5t134 73.5q55 0 153.5 -48t128.5 -48q61 0 62 90h153q-6 -267 -188 -267z" />
-<glyph unicode="&#x2000;" horiz-adv-x="924" />
-<glyph unicode="&#x2001;" horiz-adv-x="1849" />
-<glyph unicode="&#x2002;" horiz-adv-x="924" />
-<glyph unicode="&#x2003;" horiz-adv-x="1849" />
-<glyph unicode="&#x2004;" horiz-adv-x="616" />
-<glyph unicode="&#x2005;" horiz-adv-x="462" />
-<glyph unicode="&#x2006;" horiz-adv-x="308" />
-<glyph unicode="&#x2007;" horiz-adv-x="308" />
-<glyph unicode="&#x2008;" horiz-adv-x="231" />
-<glyph unicode="&#x2009;" horiz-adv-x="369" />
-<glyph unicode="&#x200a;" horiz-adv-x="102" />
-<glyph unicode="&#x2010;" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="&#x2011;" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="&#x2012;" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="&#x2013;" horiz-adv-x="1101" d="M168 463v137h766v-137h-766z" />
-<glyph unicode="&#x2014;" horiz-adv-x="1484" d="M168 465v135h1149v-135h-1149z" />
-<glyph unicode="&#x2018;" horiz-adv-x="442" d="M274 1268q57 -37 57.5 -99.5t-36.5 -98.5t-92.5 -36t-93 35t-37.5 91.5t37 109.5l120 174h125z" />
-<glyph unicode="&#x2019;" horiz-adv-x="444" d="M150 1200q-55 33 -55.5 97.5t36.5 100.5t92.5 36t93 -35t37.5 -91.5t-37 -109.5l-120 -174h-125z" />
-<glyph unicode="&#x201a;" horiz-adv-x="444" d="M150 10q-55 35 -55.5 98.5t36.5 99.5t92.5 36t93 -35t37.5 -91.5t-37 -109.5l-120 -174h-125z" />
-<glyph unicode="&#x201c;" horiz-adv-x="757" d="M274 1268q57 -37 57.5 -99.5t-36.5 -98.5t-92.5 -36t-93 35t-37.5 91.5t37 109.5l120 174h125zM588 1268q57 -37 57 -99.5t-37 -98.5t-92 -36t-93 35t-38 91.5t37 109.5l121 174h125z" />
-<glyph unicode="&#x201d;" horiz-adv-x="755" d="M150 1200q-55 33 -55.5 97.5t36.5 100.5t92.5 36t93 -35t37.5 -91.5t-37 -109.5l-120 -174h-125zM461 1200q-55 33 -55 97.5t36.5 100.5t92 36t93.5 -35t38 -91.5t-37 -109.5l-121 -174h-125z" />
-<glyph unicode="&#x201e;" horiz-adv-x="755" d="M150 10q-55 35 -55.5 98.5t36.5 99.5t92.5 36t93 -35t37.5 -91.5t-37 -109.5l-120 -174h-125zM461 10q-55 35 -55 98.5t36.5 99.5t92 36t93.5 -35t38 -91.5t-37 -109.5l-121 -174h-125z" />
-<glyph unicode="&#x2022;" horiz-adv-x="876" d="M174 647.5q0 108.5 78 186t186.5 77.5t186 -77.5t77.5 -186t-77.5 -186.5t-186 -78t-186.5 78t-78 186.5z" />
-<glyph unicode="&#x2026;" horiz-adv-x="1429" d="M135 137.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5zM563 137.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5zM991 137.5q0 63.5 44 107.5t107.5 44t108.5 -44t45 -107.5 t-45 -108.5t-108.5 -45t-107.5 45t-44 108.5z" />
-<glyph unicode="&#x202f;" horiz-adv-x="369" />
-<glyph unicode="&#x2039;" horiz-adv-x="714" d="M580 852l-236 -360l236 -361h-222l-243 361l243 360h222z" />
-<glyph unicode="&#x203a;" horiz-adv-x="714" d="M371 492l-236 360h221l244 -360l-244 -361h-221z" />
-<glyph unicode="&#x205f;" horiz-adv-x="462" />
-<glyph unicode="&#x20ac;" horiz-adv-x="1558" d="M106 805v176h213q68 219 240 352t391 133q326 0 516 -235l-145 -184q-90 96 -171 135t-200 39t-214 -62.5t-142 -177.5h487v-176h-530q-2 -25 -2 -75t6 -95h526v-176h-471q111 -213 334 -213q111 0 189.5 42t166.5 132l146 -176q-190 -236 -502 -236q-213 0 -378 122 t-236 329h-224v176h185q-6 49 -6 98t2 72h-181z" />
-<glyph unicode="&#x2122;" horiz-adv-x="2048" d="M516 1303v-709h-141v709h-254v129h649v-129h-254zM1069 594h-141v838h221l252 -527l254 527h219v-838h-141v653l-293 -581h-80l-291 581v-653z" />
-<glyph unicode="&#xe000;" horiz-adv-x="1085" d="M0 1085h1085v-1085h-1085v1085z" />
-<glyph unicode="&#xfb01;" horiz-adv-x="1351" d="M449 1180v-90h286v-185h-286v-905h-230v905h-137v185h137v84q0 172 103.5 273t250 101t267.5 -108l-95 -162q-68 72 -141.5 72t-114 -46t-40.5 -124zM1186 0h-230v1090h230v-1090zM928 1409q0 59 43 102t102.5 43t102.5 -43t43 -102t-43 -102t-102.5 -43t-102.5 43 t-43 102z" />
-<glyph unicode="&#xfb02;" horiz-adv-x="1351" d="M449 1180v-90h286v-185h-286v-905h-230v905h-137v185h137v84q0 172 103.5 273t250 101t267.5 -108l-95 -162q-68 72 -141.5 72t-114 -46t-40.5 -124zM1186 0h-230v1520h230v-1520z" />
-<hkern u1="&#x26;" u2="&#x2019;" k="59" />
-<hkern u1="&#x26;" u2="&#xc6;" k="-27" />
-<hkern u1="&#x26;" u2="Y" k="51" />
-<hkern u1="&#x26;" u2="W" k="35" />
-<hkern u1="&#x26;" u2="V" k="45" />
-<hkern u1="&#x26;" u2="T" k="45" />
-<hkern u1="&#x26;" u2="A" k="-12" />
-<hkern u1="&#x26;" u2="&#x27;" k="59" />
-<hkern u1="&#x27;" u2="&#x2039;" k="29" />
-<hkern u1="&#x27;" u2="&#xf0;" k="33" />
-<hkern u1="&#x27;" u2="&#xc6;" k="106" />
-<hkern u1="&#x27;" u2="o" k="23" />
-<hkern u1="&#x27;" u2="J" k="35" />
-<hkern u1="&#x27;" u2="A" k="94" />
-<hkern u1="&#x27;" u2="&#x3a;" k="18" />
-<hkern u1="&#x27;" u2="&#x34;" k="45" />
-<hkern u1="&#x27;" u2="&#x2f;" k="150" />
-<hkern u1="&#x27;" u2="&#x2e;" k="258" />
-<hkern u1="&#x27;" u2="&#x26;" k="39" />
-<hkern u1="&#x28;" u2="&#xf0;" k="41" />
-<hkern u1="&#x28;" u2="&#x7b;" k="20" />
-<hkern u1="&#x28;" u2="w" k="31" />
-<hkern u1="&#x28;" u2="v" k="27" />
-<hkern u1="&#x28;" u2="u" k="43" />
-<hkern u1="&#x28;" u2="t" k="27" />
-<hkern u1="&#x28;" u2="s" k="35" />
-<hkern u1="&#x28;" u2="o" k="55" />
-<hkern u1="&#x28;" u2="n" k="31" />
-<hkern u1="&#x28;" u2="j" k="-188" />
-<hkern u1="&#x28;" u2="f" k="25" />
-<hkern u1="&#x28;" u2="a" k="39" />
-<hkern u1="&#x28;" u2="S" k="23" />
-<hkern u1="&#x28;" u2="O" k="45" />
-<hkern u1="&#x28;" u2="&#x39;" k="20" />
-<hkern u1="&#x28;" u2="&#x38;" k="33" />
-<hkern u1="&#x28;" u2="&#x36;" k="41" />
-<hkern u1="&#x28;" u2="&#x34;" k="45" />
-<hkern u1="&#x28;" u2="&#x30;" k="39" />
-<hkern u1="&#x28;" u2="&#x28;" k="20" />
-<hkern u1="&#x29;" u2="&#x29;" k="20" />
-<hkern u1="&#x2a;" u2="&#xf0;" k="35" />
-<hkern u1="&#x2a;" u2="&#xef;" k="-31" />
-<hkern u1="&#x2a;" u2="&#xee;" k="-66" />
-<hkern u1="&#x2a;" u2="&#xec;" k="-16" />
-<hkern u1="&#x2a;" u2="&#xc6;" k="102" />
-<hkern u1="&#x2a;" u2="y" k="-14" />
-<hkern u1="&#x2a;" u2="v" k="-18" />
-<hkern u1="&#x2a;" u2="o" k="23" />
-<hkern u1="&#x2a;" u2="J" k="41" />
-<hkern u1="&#x2a;" u2="A" k="90" />
-<hkern u1="&#x2b;" u2="&#x33;" k="20" />
-<hkern u1="&#x2d;" u2="&#xc6;" k="18" />
-<hkern u1="&#x2d;" u2="z" k="35" />
-<hkern u1="&#x2d;" u2="x" k="47" />
-<hkern u1="&#x2d;" u2="t" k="18" />
-<hkern u1="&#x2d;" u2="f" k="18" />
-<hkern u1="&#x2d;" u2="Z" k="39" />
-<hkern u1="&#x2d;" u2="Y" k="92" />
-<hkern u1="&#x2d;" u2="X" k="57" />
-<hkern u1="&#x2d;" u2="W" k="39" />
-<hkern u1="&#x2d;" u2="V" k="53" />
-<hkern u1="&#x2d;" u2="T" k="117" />
-<hkern u1="&#x2d;" u2="S" k="16" />
-<hkern u1="&#x2d;" u2="J" k="59" />
-<hkern u1="&#x2d;" u2="A" k="25" />
-<hkern u1="&#x2d;" u2="&#x37;" k="39" />
-<hkern u1="&#x2d;" u2="&#x33;" k="39" />
-<hkern u1="&#x2d;" u2="&#x32;" k="39" />
-<hkern u1="&#x2d;" u2="&#x31;" k="55" />
-<hkern u1="&#x2e;" u2="&#x2019;" k="289" />
-<hkern u1="&#x2e;" u2="&#x2018;" k="289" />
-<hkern u1="&#x2e;" u2="y" k="74" />
-<hkern u1="&#x2e;" u2="w" k="57" />
-<hkern u1="&#x2e;" u2="v" k="74" />
-<hkern u1="&#x2e;" u2="t" k="33" />
-<hkern u1="&#x2e;" u2="f" k="16" />
-<hkern u1="&#x2e;" u2="Y" k="127" />
-<hkern u1="&#x2e;" u2="W" k="96" />
-<hkern u1="&#x2e;" u2="V" k="119" />
-<hkern u1="&#x2e;" u2="U" k="31" />
-<hkern u1="&#x2e;" u2="T" k="119" />
-<hkern u1="&#x2e;" u2="O" k="39" />
-<hkern u1="&#x2e;" u2="&#x37;" k="35" />
-<hkern u1="&#x2e;" u2="&#x36;" k="20" />
-<hkern u1="&#x2e;" u2="&#x31;" k="63" />
-<hkern u1="&#x2e;" u2="&#x30;" k="23" />
-<hkern u1="&#x2e;" u2="&#x27;" k="258" />
-<hkern u1="&#x2f;" u2="&#xf0;" k="49" />
-<hkern u1="&#x2f;" u2="&#xcf;" k="-16" />
-<hkern u1="&#x2f;" u2="&#xc6;" k="135" />
-<hkern u1="&#x2f;" u2="z" k="53" />
-<hkern u1="&#x2f;" u2="x" k="35" />
-<hkern u1="&#x2f;" u2="w" k="23" />
-<hkern u1="&#x2f;" u2="v" k="20" />
-<hkern u1="&#x2f;" u2="u" k="53" />
-<hkern u1="&#x2f;" u2="s" k="88" />
-<hkern u1="&#x2f;" u2="o" k="94" />
-<hkern u1="&#x2f;" u2="n" k="57" />
-<hkern u1="&#x2f;" u2="f" k="27" />
-<hkern u1="&#x2f;" u2="a" k="84" />
-<hkern u1="&#x2f;" u2="S" k="33" />
-<hkern u1="&#x2f;" u2="O" k="51" />
-<hkern u1="&#x2f;" u2="J" k="31" />
-<hkern u1="&#x2f;" u2="A" k="125" />
-<hkern u1="&#x2f;" u2="&#x39;" k="20" />
-<hkern u1="&#x2f;" u2="&#x38;" k="39" />
-<hkern u1="&#x2f;" u2="&#x36;" k="45" />
-<hkern u1="&#x2f;" u2="&#x34;" k="86" />
-<hkern u1="&#x2f;" u2="&#x30;" k="43" />
-<hkern u1="&#x2f;" u2="&#x2f;" k="575" />
-<hkern u1="&#x30;" u2="]" k="43" />
-<hkern u1="&#x30;" u2="\" k="27" />
-<hkern u1="&#x30;" u2="A" k="20" />
-<hkern u1="&#x30;" u2="&#x2f;" k="49" />
-<hkern u1="&#x30;" u2="&#x2e;" k="23" />
-<hkern u1="&#x30;" u2="&#x29;" k="39" />
-<hkern u1="&#x32;" u2="&#xb7;" k="35" />
-<hkern u1="&#x32;" u2="&#x2d;" k="23" />
-<hkern u1="&#x33;" u2="&#x2f;" k="33" />
-<hkern u1="&#x34;" u2="&#xb0;" k="49" />
-<hkern u1="&#x34;" u2="]" k="31" />
-<hkern u1="&#x34;" u2="\" k="37" />
-<hkern u1="&#x34;" u2="Y" k="31" />
-<hkern u1="&#x34;" u2="V" k="27" />
-<hkern u1="&#x34;" u2="T" k="41" />
-<hkern u1="&#x34;" u2="&#x37;" k="27" />
-<hkern u1="&#x34;" u2="&#x31;" k="25" />
-<hkern u1="&#x34;" u2="&#x29;" k="31" />
-<hkern u1="&#x34;" u2="&#x27;" k="43" />
-<hkern u1="&#x35;" u2="&#x2f;" k="29" />
-<hkern u1="&#x36;" u2="&#x2f;" k="27" />
-<hkern u1="&#x37;" u2="&#xc6;" k="90" />
-<hkern u1="&#x37;" u2="&#xb7;" k="53" />
-<hkern u1="&#x37;" u2="&#xa2;" k="41" />
-<hkern u1="&#x37;" u2="Y" k="-33" />
-<hkern u1="&#x37;" u2="V" k="-12" />
-<hkern u1="&#x37;" u2="A" k="82" />
-<hkern u1="&#x37;" u2="&#x34;" k="41" />
-<hkern u1="&#x37;" u2="&#x2f;" k="123" />
-<hkern u1="&#x37;" u2="&#x2e;" k="135" />
-<hkern u1="&#x37;" u2="&#x2d;" k="53" />
-<hkern u1="&#x38;" u2="]" k="33" />
-<hkern u1="&#x38;" u2="\" k="20" />
-<hkern u1="&#x38;" u2="&#x2f;" k="31" />
-<hkern u1="&#x38;" u2="&#x29;" k="33" />
-<hkern u1="&#x39;" u2="]" k="41" />
-<hkern u1="&#x39;" u2="\" k="25" />
-<hkern u1="&#x39;" u2="A" k="20" />
-<hkern u1="&#x39;" u2="&#x2f;" k="49" />
-<hkern u1="&#x39;" u2="&#x2e;" k="25" />
-<hkern u1="&#x39;" u2="&#x29;" k="39" />
-<hkern u1="&#x3a;" u2="&#x2019;" k="127" />
-<hkern u1="&#x3a;" u2="y" k="18" />
-<hkern u1="&#x3a;" u2="v" k="20" />
-<hkern u1="&#x3a;" u2="t" k="16" />
-<hkern u1="&#x3a;" u2="Y" k="92" />
-<hkern u1="&#x3a;" u2="W" k="43" />
-<hkern u1="&#x3a;" u2="V" k="57" />
-<hkern u1="&#x3a;" u2="T" k="113" />
-<hkern u1="&#x3a;" u2="&#x27;" k="18" />
-<hkern u1="&#x40;" u2="&#x2019;" k="37" />
-<hkern u1="&#x40;" u2="Y" k="53" />
-<hkern u1="&#x40;" u2="W" k="20" />
-<hkern u1="&#x40;" u2="V" k="33" />
-<hkern u1="&#x40;" u2="T" k="51" />
-<hkern u1="A" u2="&#x2122;" k="96" />
-<hkern u1="A" u2="&#x2019;" k="109" />
-<hkern u1="A" u2="&#x2018;" k="109" />
-<hkern u1="A" u2="&#xf0;" k="18" />
-<hkern u1="A" u2="&#xae;" k="25" />
-<hkern u1="A" u2="y" k="59" />
-<hkern u1="A" u2="w" k="51" />
-<hkern u1="A" u2="v" k="59" />
-<hkern u1="A" u2="u" k="16" />
-<hkern u1="A" u2="t" k="49" />
-<hkern u1="A" u2="o" k="23" />
-<hkern u1="A" u2="f" k="18" />
-<hkern u1="A" u2="]" k="27" />
-<hkern u1="A" u2="\" k="113" />
-<hkern u1="A" u2="Y" k="104" />
-<hkern u1="A" u2="W" k="68" />
-<hkern u1="A" u2="V" k="82" />
-<hkern u1="A" u2="U" k="35" />
-<hkern u1="A" u2="T" k="113" />
-<hkern u1="A" u2="O" k="37" />
-<hkern u1="A" u2="&#x3f;" k="43" />
-<hkern u1="A" u2="&#x36;" k="20" />
-<hkern u1="A" u2="&#x31;" k="43" />
-<hkern u1="A" u2="&#x30;" k="20" />
-<hkern u1="A" u2="&#x2d;" k="25" />
-<hkern u1="A" u2="&#x2a;" k="90" />
-<hkern u1="A" u2="&#x27;" k="94" />
-<hkern u1="B" u2="z" k="10" />
-<hkern u1="B" u2="y" k="16" />
-<hkern u1="B" u2="x" k="27" />
-<hkern u1="B" u2="w" k="14" />
-<hkern u1="B" u2="v" k="16" />
-<hkern u1="B" u2="t" k="18" />
-<hkern u1="B" u2="s" k="14" />
-<hkern u1="B" u2="f" k="16" />
-<hkern u1="B" u2="]" k="41" />
-<hkern u1="B" u2="\" k="29" />
-<hkern u1="B" u2="Y" k="39" />
-<hkern u1="B" u2="X" k="20" />
-<hkern u1="B" u2="W" k="14" />
-<hkern u1="B" u2="V" k="25" />
-<hkern u1="B" u2="T" k="35" />
-<hkern u1="B" u2="J" k="14" />
-<hkern u1="B" u2="A" k="16" />
-<hkern u1="B" u2="&#x2f;" k="27" />
-<hkern u1="B" u2="&#x29;" k="35" />
-<hkern u1="C" u2="&#xf0;" k="27" />
-<hkern u1="C" u2="&#xee;" k="-47" />
-<hkern u1="C" u2="u" k="14" />
-<hkern u1="C" u2="s" k="14" />
-<hkern u1="C" u2="o" k="31" />
-<hkern u1="C" u2="n" k="10" />
-<hkern u1="C" u2="S" k="10" />
-<hkern u1="C" u2="O" k="31" />
-<hkern u1="C" u2="&#x2d;" k="20" />
-<hkern u1="E" u2="&#xf0;" k="20" />
-<hkern u1="E" u2="u" k="14" />
-<hkern u1="E" u2="t" k="16" />
-<hkern u1="E" u2="o" k="20" />
-<hkern u1="E" u2="f" k="12" />
-<hkern u1="E" u2="O" k="20" />
-<hkern u1="F" u2="&#xf0;" k="41" />
-<hkern u1="F" u2="&#xee;" k="-43" />
-<hkern u1="F" u2="&#xed;" k="20" />
-<hkern u1="F" u2="&#xec;" k="-29" />
-<hkern u1="F" u2="&#xdf;" k="16" />
-<hkern u1="F" u2="&#xc6;" k="100" />
-<hkern u1="F" u2="z" k="33" />
-<hkern u1="F" u2="x" k="18" />
-<hkern u1="F" u2="u" k="25" />
-<hkern u1="F" u2="t" k="10" />
-<hkern u1="F" u2="s" k="43" />
-<hkern u1="F" u2="o" k="31" />
-<hkern u1="F" u2="n" k="31" />
-<hkern u1="F" u2="f" k="14" />
-<hkern u1="F" u2="a" k="45" />
-<hkern u1="F" u2="J" k="35" />
-<hkern u1="F" u2="A" k="88" />
-<hkern u1="F" u2="&#x2f;" k="94" />
-<hkern u1="F" u2="&#x2e;" k="115" />
-<hkern u1="G" u2="y" k="16" />
-<hkern u1="G" u2="x" k="12" />
-<hkern u1="G" u2="w" k="16" />
-<hkern u1="G" u2="v" k="18" />
-<hkern u1="G" u2="t" k="18" />
-<hkern u1="G" u2="f" k="18" />
-<hkern u1="G" u2="]" k="20" />
-<hkern u1="G" u2="Y" k="23" />
-<hkern u1="G" u2="X" k="10" />
-<hkern u1="G" u2="V" k="16" />
-<hkern u1="G" u2="T" k="16" />
-<hkern u1="G" u2="A" k="14" />
-<hkern u1="G" u2="&#x29;" k="20" />
-<hkern u1="I" u2="&#xf0;" k="18" />
-<hkern u1="I" u2="z" k="10" />
-<hkern u1="I" u2="u" k="10" />
-<hkern u1="I" u2="t" k="16" />
-<hkern u1="I" u2="s" k="12" />
-<hkern u1="I" u2="o" k="18" />
-<hkern u1="I" u2="n" k="10" />
-<hkern u1="I" u2="l" k="10" />
-<hkern u1="I" u2="h" k="10" />
-<hkern u1="I" u2="f" k="14" />
-<hkern u1="I" u2="a" k="12" />
-<hkern u1="J" u2="&#xf0;" k="23" />
-<hkern u1="J" u2="&#xc6;" k="18" />
-<hkern u1="J" u2="z" k="16" />
-<hkern u1="J" u2="x" k="12" />
-<hkern u1="J" u2="u" k="12" />
-<hkern u1="J" u2="t" k="14" />
-<hkern u1="J" u2="s" k="20" />
-<hkern u1="J" u2="o" k="16" />
-<hkern u1="J" u2="n" k="10" />
-<hkern u1="J" u2="l" k="10" />
-<hkern u1="J" u2="h" k="10" />
-<hkern u1="J" u2="f" k="14" />
-<hkern u1="J" u2="a" k="14" />
-<hkern u1="J" u2="J" k="16" />
-<hkern u1="J" u2="A" k="18" />
-<hkern u1="J" u2="&#x2f;" k="43" />
-<hkern u1="J" u2="&#x2e;" k="18" />
-<hkern u1="K" u2="&#x2039;" k="27" />
-<hkern u1="K" u2="&#xf0;" k="68" />
-<hkern u1="K" u2="&#xef;" k="-39" />
-<hkern u1="K" u2="&#xec;" k="-70" />
-<hkern u1="K" u2="&#xae;" k="20" />
-<hkern u1="K" u2="y" k="53" />
-<hkern u1="K" u2="w" k="59" />
-<hkern u1="K" u2="v" k="53" />
-<hkern u1="K" u2="u" k="45" />
-<hkern u1="K" u2="t" k="27" />
-<hkern u1="K" u2="o" k="84" />
-<hkern u1="K" u2="n" k="10" />
-<hkern u1="K" u2="f" k="18" />
-<hkern u1="K" u2="a" k="18" />
-<hkern u1="K" u2="S" k="25" />
-<hkern u1="K" u2="O" k="63" />
-<hkern u1="K" u2="&#x2d;" k="55" />
-<hkern u1="L" u2="&#x2122;" k="176" />
-<hkern u1="L" u2="&#x2019;" k="178" />
-<hkern u1="L" u2="&#x2018;" k="178" />
-<hkern u1="L" u2="&#xf0;" k="10" />
-<hkern u1="L" u2="&#xb7;" k="152" />
-<hkern u1="L" u2="&#xae;" k="20" />
-<hkern u1="L" u2="y" k="123" />
-<hkern u1="L" u2="w" k="100" />
-<hkern u1="L" u2="v" k="123" />
-<hkern u1="L" u2="u" k="14" />
-<hkern u1="L" u2="t" k="63" />
-<hkern u1="L" u2="o" k="18" />
-<hkern u1="L" u2="f" k="27" />
-<hkern u1="L" u2="\" k="139" />
-<hkern u1="L" u2="Y" k="135" />
-<hkern u1="L" u2="W" k="115" />
-<hkern u1="L" u2="V" k="123" />
-<hkern u1="L" u2="U" k="35" />
-<hkern u1="L" u2="T" k="147" />
-<hkern u1="L" u2="O" k="41" />
-<hkern u1="L" u2="&#x3f;" k="49" />
-<hkern u1="L" u2="&#x31;" k="45" />
-<hkern u1="L" u2="&#x2d;" k="133" />
-<hkern u1="L" u2="&#x2a;" k="180" />
-<hkern u1="L" u2="&#x27;" k="178" />
-<hkern u1="O" u2="&#x2122;" k="20" />
-<hkern u1="O" u2="&#xf0;" k="10" />
-<hkern u1="O" u2="&#xc6;" k="39" />
-<hkern u1="O" u2="&#x7d;" k="23" />
-<hkern u1="O" u2="z" k="14" />
-<hkern u1="O" u2="x" k="25" />
-<hkern u1="O" u2="s" k="12" />
-<hkern u1="O" u2="n" k="10" />
-<hkern u1="O" u2="l" k="10" />
-<hkern u1="O" u2="i" k="10" />
-<hkern u1="O" u2="h" k="10" />
-<hkern u1="O" u2="a" k="10" />
-<hkern u1="O" u2="]" k="51" />
-<hkern u1="O" u2="\" k="37" />
-<hkern u1="O" u2="Z" k="25" />
-<hkern u1="O" u2="Y" k="47" />
-<hkern u1="O" u2="X" k="51" />
-<hkern u1="O" u2="W" k="14" />
-<hkern u1="O" u2="V" k="25" />
-<hkern u1="O" u2="T" k="39" />
-<hkern u1="O" u2="J" k="43" />
-<hkern u1="O" u2="A" k="37" />
-<hkern u1="O" u2="&#x2f;" k="57" />
-<hkern u1="O" u2="&#x2e;" k="39" />
-<hkern u1="O" u2="&#x29;" k="45" />
-<hkern u1="P" u2="&#x2039;" k="20" />
-<hkern u1="P" u2="&#xf0;" k="27" />
-<hkern u1="P" u2="&#xc6;" k="100" />
-<hkern u1="P" u2="s" k="12" />
-<hkern u1="P" u2="o" k="12" />
-<hkern u1="P" u2="a" k="20" />
-<hkern u1="P" u2="]" k="39" />
-<hkern u1="P" u2="Z" k="14" />
-<hkern u1="P" u2="Y" k="16" />
-<hkern u1="P" u2="X" k="39" />
-<hkern u1="P" u2="J" k="63" />
-<hkern u1="P" u2="A" k="78" />
-<hkern u1="P" u2="&#x2f;" k="98" />
-<hkern u1="P" u2="&#x2e;" k="129" />
-<hkern u1="P" u2="&#x29;" k="37" />
-<hkern u1="Q" u2="&#x7d;" k="10" />
-<hkern u1="Q" u2="j" k="-125" />
-<hkern u1="Q" u2="]" k="25" />
-<hkern u1="R" u2="&#x2039;" k="31" />
-<hkern u1="R" u2="&#xf0;" k="41" />
-<hkern u1="R" u2="u" k="18" />
-<hkern u1="R" u2="t" k="12" />
-<hkern u1="R" u2="o" k="31" />
-<hkern u1="R" u2="n" k="10" />
-<hkern u1="R" u2="f" k="10" />
-<hkern u1="R" u2="a" k="20" />
-<hkern u1="R" u2="\" k="25" />
-<hkern u1="R" u2="Y" k="27" />
-<hkern u1="R" u2="V" k="18" />
-<hkern u1="R" u2="T" k="20" />
-<hkern u1="R" u2="J" k="10" />
-<hkern u1="S" u2="z" k="12" />
-<hkern u1="S" u2="y" k="20" />
-<hkern u1="S" u2="x" k="18" />
-<hkern u1="S" u2="w" k="20" />
-<hkern u1="S" u2="v" k="20" />
-<hkern u1="S" u2="u" k="12" />
-<hkern u1="S" u2="t" k="25" />
-<hkern u1="S" u2="s" k="12" />
-<hkern u1="S" u2="n" k="12" />
-<hkern u1="S" u2="f" k="23" />
-<hkern u1="S" u2="Y" k="12" />
-<hkern u1="S" u2="V" k="10" />
-<hkern u1="S" u2="A" k="14" />
-<hkern u1="S" u2="&#x2f;" k="23" />
-<hkern u1="T" u2="&#x203a;" k="111" />
-<hkern u1="T" u2="&#x2039;" k="127" />
-<hkern u1="T" u2="&#xf0;" k="82" />
-<hkern u1="T" u2="&#xef;" k="-16" />
-<hkern u1="T" u2="&#xee;" k="-66" />
-<hkern u1="T" u2="&#xed;" k="41" />
-<hkern u1="T" u2="&#xec;" k="-49" />
-<hkern u1="T" u2="&#xdf;" k="27" />
-<hkern u1="T" u2="&#xc6;" k="111" />
-<hkern u1="T" u2="&#xae;" k="20" />
-<hkern u1="T" u2="z" k="147" />
-<hkern u1="T" u2="y" k="139" />
-<hkern u1="T" u2="x" k="137" />
-<hkern u1="T" u2="w" k="133" />
-<hkern u1="T" u2="v" k="139" />
-<hkern u1="T" u2="u" k="106" />
-<hkern u1="T" u2="t" k="20" />
-<hkern u1="T" u2="s" k="147" />
-<hkern u1="T" u2="o" k="131" />
-<hkern u1="T" u2="n" k="100" />
-<hkern u1="T" u2="l" k="10" />
-<hkern u1="T" u2="i" k="10" />
-<hkern u1="T" u2="h" k="10" />
-<hkern u1="T" u2="f" k="43" />
-<hkern u1="T" u2="a" k="150" />
-<hkern u1="T" u2="O" k="39" />
-<hkern u1="T" u2="J" k="27" />
-<hkern u1="T" u2="A" k="113" />
-<hkern u1="T" u2="&#x40;" k="55" />
-<hkern u1="T" u2="&#x3a;" k="113" />
-<hkern u1="T" u2="&#x34;" k="66" />
-<hkern u1="T" u2="&#x2f;" k="113" />
-<hkern u1="T" u2="&#x2e;" k="119" />
-<hkern u1="T" u2="&#x2d;" k="117" />
-<hkern u1="T" u2="&#x26;" k="29" />
-<hkern u1="U" u2="&#xf0;" k="27" />
-<hkern u1="U" u2="&#xc6;" k="39" />
-<hkern u1="U" u2="z" k="20" />
-<hkern u1="U" u2="x" k="12" />
-<hkern u1="U" u2="u" k="18" />
-<hkern u1="U" u2="t" k="14" />
-<hkern u1="U" u2="s" k="27" />
-<hkern u1="U" u2="o" k="18" />
-<hkern u1="U" u2="n" k="10" />
-<hkern u1="U" u2="l" k="12" />
-<hkern u1="U" u2="i" k="12" />
-<hkern u1="U" u2="h" k="12" />
-<hkern u1="U" u2="f" k="12" />
-<hkern u1="U" u2="a" k="20" />
-<hkern u1="U" u2="J" k="29" />
-<hkern u1="U" u2="A" k="35" />
-<hkern u1="U" u2="&#x2f;" k="53" />
-<hkern u1="U" u2="&#x2e;" k="33" />
-<hkern u1="V" u2="&#x2122;" k="-27" />
-<hkern u1="V" u2="&#x203a;" k="35" />
-<hkern u1="V" u2="&#x2039;" k="72" />
-<hkern u1="V" u2="&#xf0;" k="78" />
-<hkern u1="V" u2="&#xef;" k="-55" />
-<hkern u1="V" u2="&#xee;" k="-55" />
-<hkern u1="V" u2="&#xed;" k="29" />
-<hkern u1="V" u2="&#xec;" k="-104" />
-<hkern u1="V" u2="&#xdf;" k="25" />
-<hkern u1="V" u2="&#xc6;" k="92" />
-<hkern u1="V" u2="z" k="45" />
-<hkern u1="V" u2="x" k="18" />
-<hkern u1="V" u2="u" k="51" />
-<hkern u1="V" u2="t" k="10" />
-<hkern u1="V" u2="s" k="90" />
-<hkern u1="V" u2="o" k="88" />
-<hkern u1="V" u2="n" k="61" />
-<hkern u1="V" u2="f" k="12" />
-<hkern u1="V" u2="a" k="88" />
-<hkern u1="V" u2="S" k="12" />
-<hkern u1="V" u2="O" k="25" />
-<hkern u1="V" u2="J" k="27" />
-<hkern u1="V" u2="A" k="82" />
-<hkern u1="V" u2="&#x40;" k="33" />
-<hkern u1="V" u2="&#x3a;" k="57" />
-<hkern u1="V" u2="&#x34;" k="41" />
-<hkern u1="V" u2="&#x31;" k="-10" />
-<hkern u1="V" u2="&#x2f;" k="117" />
-<hkern u1="V" u2="&#x2e;" k="119" />
-<hkern u1="V" u2="&#x2d;" k="53" />
-<hkern u1="V" u2="&#x26;" k="29" />
-<hkern u1="W" u2="&#x203a;" k="23" />
-<hkern u1="W" u2="&#x2039;" k="57" />
-<hkern u1="W" u2="&#xf0;" k="72" />
-<hkern u1="W" u2="&#xef;" k="-51" />
-<hkern u1="W" u2="&#xee;" k="-49" />
-<hkern u1="W" u2="&#xed;" k="25" />
-<hkern u1="W" u2="&#xec;" k="-88" />
-<hkern u1="W" u2="&#xdf;" k="23" />
-<hkern u1="W" u2="&#xc6;" k="80" />
-<hkern u1="W" u2="z" k="35" />
-<hkern u1="W" u2="x" k="10" />
-<hkern u1="W" u2="u" k="43" />
-<hkern u1="W" u2="s" k="80" />
-<hkern u1="W" u2="o" k="78" />
-<hkern u1="W" u2="n" k="51" />
-<hkern u1="W" u2="a" k="76" />
-<hkern u1="W" u2="O" k="14" />
-<hkern u1="W" u2="J" k="25" />
-<hkern u1="W" u2="A" k="68" />
-<hkern u1="W" u2="&#x40;" k="20" />
-<hkern u1="W" u2="&#x3a;" k="43" />
-<hkern u1="W" u2="&#x34;" k="27" />
-<hkern u1="W" u2="&#x2f;" k="98" />
-<hkern u1="W" u2="&#x2e;" k="96" />
-<hkern u1="W" u2="&#x2d;" k="39" />
-<hkern u1="W" u2="&#x26;" k="20" />
-<hkern u1="X" u2="&#x2039;" k="31" />
-<hkern u1="X" u2="&#xf0;" k="51" />
-<hkern u1="X" u2="&#xef;" k="-16" />
-<hkern u1="X" u2="&#xec;" k="-41" />
-<hkern u1="X" u2="&#xae;" k="20" />
-<hkern u1="X" u2="y" k="49" />
-<hkern u1="X" u2="w" k="55" />
-<hkern u1="X" u2="v" k="49" />
-<hkern u1="X" u2="u" k="43" />
-<hkern u1="X" u2="t" k="33" />
-<hkern u1="X" u2="o" k="66" />
-<hkern u1="X" u2="n" k="12" />
-<hkern u1="X" u2="f" k="25" />
-<hkern u1="X" u2="a" k="14" />
-<hkern u1="X" u2="O" k="51" />
-<hkern u1="X" u2="&#x2d;" k="55" />
-<hkern u1="Y" u2="&#x2122;" k="-47" />
-<hkern u1="Y" u2="&#x203a;" k="66" />
-<hkern u1="Y" u2="&#x2039;" k="109" />
-<hkern u1="Y" u2="&#xf0;" k="90" />
-<hkern u1="Y" u2="&#xef;" k="-78" />
-<hkern u1="Y" u2="&#xee;" k="-45" />
-<hkern u1="Y" u2="&#xed;" k="39" />
-<hkern u1="Y" u2="&#xec;" k="-125" />
-<hkern u1="Y" u2="&#xdf;" k="29" />
-<hkern u1="Y" u2="&#xc6;" k="113" />
-<hkern u1="Y" u2="&#xae;" k="31" />
-<hkern u1="Y" u2="z" k="82" />
-<hkern u1="Y" u2="y" k="18" />
-<hkern u1="Y" u2="x" k="43" />
-<hkern u1="Y" u2="w" k="27" />
-<hkern u1="Y" u2="v" k="16" />
-<hkern u1="Y" u2="u" k="74" />
-<hkern u1="Y" u2="t" k="14" />
-<hkern u1="Y" u2="s" k="106" />
-<hkern u1="Y" u2="o" k="123" />
-<hkern u1="Y" u2="n" k="72" />
-<hkern u1="Y" u2="f" k="23" />
-<hkern u1="Y" u2="a" k="100" />
-<hkern u1="Y" u2="S" k="18" />
-<hkern u1="Y" u2="O" k="47" />
-<hkern u1="Y" u2="J" k="20" />
-<hkern u1="Y" u2="A" k="104" />
-<hkern u1="Y" u2="&#x40;" k="57" />
-<hkern u1="Y" u2="&#x3a;" k="90" />
-<hkern u1="Y" u2="&#x36;" k="20" />
-<hkern u1="Y" u2="&#x34;" k="66" />
-<hkern u1="Y" u2="&#x31;" k="-31" />
-<hkern u1="Y" u2="&#x2f;" k="119" />
-<hkern u1="Y" u2="&#x2e;" k="127" />
-<hkern u1="Y" u2="&#x2d;" k="92" />
-<hkern u1="Y" u2="&#x26;" k="37" />
-<hkern u1="Z" u2="&#xf0;" k="25" />
-<hkern u1="Z" u2="&#xee;" k="-37" />
-<hkern u1="Z" u2="y" k="16" />
-<hkern u1="Z" u2="w" k="20" />
-<hkern u1="Z" u2="v" k="16" />
-<hkern u1="Z" u2="u" k="23" />
-<hkern u1="Z" u2="t" k="20" />
-<hkern u1="Z" u2="o" k="29" />
-<hkern u1="Z" u2="n" k="14" />
-<hkern u1="Z" u2="f" k="18" />
-<hkern u1="Z" u2="O" k="25" />
-<hkern u1="Z" u2="&#x2d;" k="35" />
-<hkern u1="[" u2="&#xf0;" k="41" />
-<hkern u1="[" u2="&#xec;" k="-33" />
-<hkern u1="[" u2="&#xc6;" k="23" />
-<hkern u1="[" u2="z" k="37" />
-<hkern u1="[" u2="w" k="33" />
-<hkern u1="[" u2="v" k="29" />
-<hkern u1="[" u2="u" k="43" />
-<hkern u1="[" u2="t" k="20" />
-<hkern u1="[" u2="s" k="49" />
-<hkern u1="[" u2="o" k="59" />
-<hkern u1="[" u2="n" k="37" />
-<hkern u1="[" u2="j" k="-184" />
-<hkern u1="[" u2="f" k="20" />
-<hkern u1="[" u2="a" k="45" />
-<hkern u1="[" u2="S" k="27" />
-<hkern u1="[" u2="O" k="51" />
-<hkern u1="[" u2="A" k="27" />
-<hkern u1="[" u2="&#x39;" k="20" />
-<hkern u1="[" u2="&#x38;" k="33" />
-<hkern u1="[" u2="&#x36;" k="43" />
-<hkern u1="[" u2="&#x34;" k="55" />
-<hkern u1="[" u2="&#x30;" k="43" />
-<hkern u1="\" u2="&#x2019;" k="127" />
-<hkern u1="\" u2="&#xc6;" k="-39" />
-<hkern u1="\" u2="y" k="47" />
-<hkern u1="\" u2="w" k="37" />
-<hkern u1="\" u2="v" k="47" />
-<hkern u1="\" u2="t" k="23" />
-<hkern u1="\" u2="Y" k="90" />
-<hkern u1="\" u2="W" k="63" />
-<hkern u1="\" u2="V" k="82" />
-<hkern u1="\" u2="U" k="25" />
-<hkern u1="\" u2="T" k="84" />
-<hkern u1="\" u2="O" k="23" />
-<hkern u1="\" u2="A" k="-14" />
-<hkern u1="\" u2="&#x31;" k="41" />
-<hkern u1="\" u2="&#x27;" k="109" />
-<hkern u1="a" u2="&#x2122;" k="47" />
-<hkern u1="a" u2="&#x2019;" k="33" />
-<hkern u1="a" u2="&#x2018;" k="33" />
-<hkern u1="a" u2="&#x7d;" k="23" />
-<hkern u1="a" u2="y" k="12" />
-<hkern u1="a" u2="w" k="10" />
-<hkern u1="a" u2="v" k="12" />
-<hkern u1="a" u2="t" k="12" />
-<hkern u1="a" u2="f" k="8" />
-<hkern u1="a" u2="]" k="47" />
-<hkern u1="a" u2="\" k="70" />
-<hkern u1="a" u2="Z" k="18" />
-<hkern u1="a" u2="Y" k="96" />
-<hkern u1="a" u2="X" k="10" />
-<hkern u1="a" u2="W" k="53" />
-<hkern u1="a" u2="V" k="72" />
-<hkern u1="a" u2="U" k="16" />
-<hkern u1="a" u2="T" k="109" />
-<hkern u1="a" u2="S" k="10" />
-<hkern u1="a" u2="O" k="12" />
-<hkern u1="a" u2="J" k="14" />
-<hkern u1="a" u2="I" k="10" />
-<hkern u1="a" u2="&#x29;" k="33" />
-<hkern u1="c" u2="&#x2122;" k="35" />
-<hkern u1="c" u2="&#x2039;" k="27" />
-<hkern u1="c" u2="&#xf0;" k="25" />
-<hkern u1="c" u2="s" k="8" />
-<hkern u1="c" u2="o" k="23" />
-<hkern u1="c" u2="a" k="8" />
-<hkern u1="c" u2="]" k="33" />
-<hkern u1="c" u2="\" k="41" />
-<hkern u1="c" u2="Y" k="90" />
-<hkern u1="c" u2="W" k="35" />
-<hkern u1="c" u2="V" k="45" />
-<hkern u1="c" u2="U" k="12" />
-<hkern u1="c" u2="T" k="164" />
-<hkern u1="c" u2="S" k="12" />
-<hkern u1="c" u2="O" k="20" />
-<hkern u1="c" u2="&#x2d;" k="31" />
-<hkern u1="c" u2="&#x29;" k="27" />
-<hkern u1="d" u2="Z" k="12" />
-<hkern u1="d" u2="U" k="12" />
-<hkern u1="d" u2="T" k="10" />
-<hkern u1="d" u2="O" k="10" />
-<hkern u1="d" u2="J" k="16" />
-<hkern u1="d" u2="I" k="10" />
-<hkern u1="e" u2="&#x2122;" k="41" />
-<hkern u1="e" u2="&#x2019;" k="37" />
-<hkern u1="e" u2="&#x2018;" k="37" />
-<hkern u1="e" u2="&#x7d;" k="25" />
-<hkern u1="e" u2="y" k="12" />
-<hkern u1="e" u2="x" k="23" />
-<hkern u1="e" u2="v" k="12" />
-<hkern u1="e" u2="t" k="8" />
-<hkern u1="e" u2="f" k="8" />
-<hkern u1="e" u2="]" k="51" />
-<hkern u1="e" u2="\" k="68" />
-<hkern u1="e" u2="Z" k="29" />
-<hkern u1="e" u2="Y" k="117" />
-<hkern u1="e" u2="X" k="35" />
-<hkern u1="e" u2="W" k="74" />
-<hkern u1="e" u2="V" k="88" />
-<hkern u1="e" u2="U" k="14" />
-<hkern u1="e" u2="T" k="158" />
-<hkern u1="e" u2="S" k="14" />
-<hkern u1="e" u2="J" k="18" />
-<hkern u1="e" u2="I" k="12" />
-<hkern u1="e" u2="A" k="14" />
-<hkern u1="e" u2="&#x2f;" k="35" />
-<hkern u1="e" u2="&#x29;" k="47" />
-<hkern u1="f" u2="&#x2122;" k="-57" />
-<hkern u1="f" u2="&#x2039;" k="55" />
-<hkern u1="f" u2="&#xf0;" k="63" />
-<hkern u1="f" u2="&#xef;" k="-100" />
-<hkern u1="f" u2="&#xee;" k="-37" />
-<hkern u1="f" u2="&#xec;" k="-152" />
-<hkern u1="f" u2="&#xc6;" k="90" />
-<hkern u1="f" u2="s" k="8" />
-<hkern u1="f" u2="o" k="27" />
-<hkern u1="f" u2="a" k="10" />
-<hkern u1="f" u2="]" k="-29" />
-<hkern u1="f" u2="Y" k="-117" />
-<hkern u1="f" u2="X" k="-33" />
-<hkern u1="f" u2="W" k="-78" />
-<hkern u1="f" u2="V" k="-94" />
-<hkern u1="f" u2="T" k="-39" />
-<hkern u1="f" u2="J" k="12" />
-<hkern u1="f" u2="A" k="82" />
-<hkern u1="f" u2="&#x3a;" k="41" />
-<hkern u1="f" u2="&#x2f;" k="63" />
-<hkern u1="f" u2="&#x2e;" k="66" />
-<hkern u1="f" u2="&#x2d;" k="63" />
-<hkern u1="i" u2="Z" k="12" />
-<hkern u1="i" u2="U" k="12" />
-<hkern u1="i" u2="T" k="10" />
-<hkern u1="i" u2="O" k="10" />
-<hkern u1="i" u2="J" k="16" />
-<hkern u1="i" u2="I" k="10" />
-<hkern u1="j" u2="j" k="-33" />
-<hkern u1="k" u2="&#x2122;" k="33" />
-<hkern u1="k" u2="&#x2039;" k="41" />
-<hkern u1="k" u2="&#xf0;" k="53" />
-<hkern u1="k" u2="s" k="10" />
-<hkern u1="k" u2="o" k="51" />
-<hkern u1="k" u2="a" k="18" />
-<hkern u1="k" u2="Y" k="39" />
-<hkern u1="k" u2="V" k="16" />
-<hkern u1="k" u2="U" k="10" />
-<hkern u1="k" u2="T" k="133" />
-<hkern u1="k" u2="O" k="35" />
-<hkern u1="k" u2="&#x2d;" k="57" />
-<hkern u1="l" u2="&#xb7;" k="150" />
-<hkern u1="l" u2="Z" k="12" />
-<hkern u1="l" u2="U" k="12" />
-<hkern u1="l" u2="T" k="10" />
-<hkern u1="l" u2="O" k="10" />
-<hkern u1="l" u2="J" k="16" />
-<hkern u1="l" u2="I" k="10" />
-<hkern u1="n" u2="&#x2122;" k="49" />
-<hkern u1="n" u2="&#x2019;" k="35" />
-<hkern u1="n" u2="&#x2018;" k="35" />
-<hkern u1="n" u2="&#x7d;" k="23" />
-<hkern u1="n" u2="y" k="14" />
-<hkern u1="n" u2="w" k="12" />
-<hkern u1="n" u2="v" k="12" />
-<hkern u1="n" u2="t" k="14" />
-<hkern u1="n" u2="f" k="10" />
-<hkern u1="n" u2="]" k="47" />
-<hkern u1="n" u2="\" k="72" />
-<hkern u1="n" u2="Z" k="20" />
-<hkern u1="n" u2="Y" k="96" />
-<hkern u1="n" u2="X" k="10" />
-<hkern u1="n" u2="W" k="53" />
-<hkern u1="n" u2="V" k="72" />
-<hkern u1="n" u2="U" k="16" />
-<hkern u1="n" u2="T" k="109" />
-<hkern u1="n" u2="S" k="10" />
-<hkern u1="n" u2="O" k="12" />
-<hkern u1="n" u2="J" k="14" />
-<hkern u1="n" u2="I" k="10" />
-<hkern u1="n" u2="&#x2a;" k="16" />
-<hkern u1="n" u2="&#x29;" k="33" />
-<hkern u1="o" u2="&#x2122;" k="49" />
-<hkern u1="o" u2="&#x2019;" k="53" />
-<hkern u1="o" u2="&#x2018;" k="53" />
-<hkern u1="o" u2="&#xc6;" k="20" />
-<hkern u1="o" u2="&#x7d;" k="35" />
-<hkern u1="o" u2="z" k="12" />
-<hkern u1="o" u2="y" k="20" />
-<hkern u1="o" u2="x" k="39" />
-<hkern u1="o" u2="w" k="14" />
-<hkern u1="o" u2="v" k="18" />
-<hkern u1="o" u2="t" k="16" />
-<hkern u1="o" u2="f" k="16" />
-<hkern u1="o" u2="]" k="59" />
-<hkern u1="o" u2="\" k="76" />
-<hkern u1="o" u2="Z" k="41" />
-<hkern u1="o" u2="Y" k="123" />
-<hkern u1="o" u2="X" k="66" />
-<hkern u1="o" u2="W" k="78" />
-<hkern u1="o" u2="V" k="88" />
-<hkern u1="o" u2="U" k="18" />
-<hkern u1="o" u2="T" k="131" />
-<hkern u1="o" u2="S" k="23" />
-<hkern u1="o" u2="J" k="29" />
-<hkern u1="o" u2="I" k="18" />
-<hkern u1="o" u2="A" k="23" />
-<hkern u1="o" u2="&#x3f;" k="20" />
-<hkern u1="o" u2="&#x2f;" k="43" />
-<hkern u1="o" u2="&#x2a;" k="23" />
-<hkern u1="o" u2="&#x29;" k="55" />
-<hkern u1="o" u2="&#x27;" k="23" />
-<hkern u1="q" u2="j" k="-119" />
-<hkern u1="r" u2="&#x2122;" k="16" />
-<hkern u1="r" u2="&#x2039;" k="55" />
-<hkern u1="r" u2="&#xf0;" k="57" />
-<hkern u1="r" u2="&#xc6;" k="92" />
-<hkern u1="r" u2="&#x7d;" k="20" />
-<hkern u1="r" u2="o" k="20" />
-<hkern u1="r" u2="a" k="10" />
-<hkern u1="r" u2="]" k="39" />
-<hkern u1="r" u2="Z" k="29" />
-<hkern u1="r" u2="Y" k="14" />
-<hkern u1="r" u2="X" k="61" />
-<hkern u1="r" u2="T" k="139" />
-<hkern u1="r" u2="J" k="86" />
-<hkern u1="r" u2="A" k="90" />
-<hkern u1="r" u2="&#x3a;" k="33" />
-<hkern u1="r" u2="&#x2f;" k="88" />
-<hkern u1="r" u2="&#x2e;" k="92" />
-<hkern u1="r" u2="&#x2d;" k="57" />
-<hkern u1="r" u2="&#x29;" k="37" />
-<hkern u1="r" u2="&#x26;" k="27" />
-<hkern u1="s" u2="&#x2122;" k="47" />
-<hkern u1="s" u2="&#x7d;" k="20" />
-<hkern u1="s" u2="x" k="8" />
-<hkern u1="s" u2="v" k="8" />
-<hkern u1="s" u2="]" k="43" />
-<hkern u1="s" u2="\" k="53" />
-<hkern u1="s" u2="Y" k="92" />
-<hkern u1="s" u2="X" k="16" />
-<hkern u1="s" u2="W" k="51" />
-<hkern u1="s" u2="V" k="61" />
-<hkern u1="s" u2="U" k="18" />
-<hkern u1="s" u2="T" k="145" />
-<hkern u1="s" u2="O" k="10" />
-<hkern u1="s" u2="I" k="12" />
-<hkern u1="s" u2="A" k="10" />
-<hkern u1="s" u2="&#x2f;" k="20" />
-<hkern u1="s" u2="&#x29;" k="41" />
-<hkern u1="t" u2="&#x2122;" k="39" />
-<hkern u1="t" u2="o" k="8" />
-<hkern u1="t" u2="]" k="25" />
-<hkern u1="t" u2="\" k="33" />
-<hkern u1="t" u2="Y" k="68" />
-<hkern u1="t" u2="W" k="25" />
-<hkern u1="t" u2="V" k="37" />
-<hkern u1="t" u2="U" k="12" />
-<hkern u1="t" u2="T" k="119" />
-<hkern u1="u" u2="&#x2122;" k="37" />
-<hkern u1="u" u2="]" k="37" />
-<hkern u1="u" u2="\" k="41" />
-<hkern u1="u" u2="Z" k="14" />
-<hkern u1="u" u2="Y" k="72" />
-<hkern u1="u" u2="X" k="14" />
-<hkern u1="u" u2="W" k="51" />
-<hkern u1="u" u2="V" k="61" />
-<hkern u1="u" u2="U" k="10" />
-<hkern u1="u" u2="T" k="100" />
-<hkern u1="u" u2="O" k="10" />
-<hkern u1="u" u2="J" k="16" />
-<hkern u1="u" u2="I" k="10" />
-<hkern u1="u" u2="&#x29;" k="31" />
-<hkern u1="v" u2="&#x2039;" k="37" />
-<hkern u1="v" u2="&#xf0;" k="35" />
-<hkern u1="v" u2="&#xc6;" k="66" />
-<hkern u1="v" u2="s" k="14" />
-<hkern u1="v" u2="o" k="18" />
-<hkern u1="v" u2="a" k="14" />
-<hkern u1="v" u2="]" k="29" />
-<hkern u1="v" u2="Z" k="12" />
-<hkern u1="v" u2="Y" k="16" />
-<hkern u1="v" u2="X" k="49" />
-<hkern u1="v" u2="T" k="139" />
-<hkern u1="v" u2="J" k="53" />
-<hkern u1="v" u2="A" k="59" />
-<hkern u1="v" u2="&#x3a;" k="18" />
-<hkern u1="v" u2="&#x2f;" k="82" />
-<hkern u1="v" u2="&#x2e;" k="74" />
-<hkern u1="v" u2="&#x2a;" k="-18" />
-<hkern u1="v" u2="&#x29;" k="27" />
-<hkern u1="w" u2="&#x2039;" k="29" />
-<hkern u1="w" u2="&#xf0;" k="29" />
-<hkern u1="w" u2="&#xc6;" k="59" />
-<hkern u1="w" u2="s" k="8" />
-<hkern u1="w" u2="o" k="14" />
-<hkern u1="w" u2="a" k="10" />
-<hkern u1="w" u2="]" k="33" />
-<hkern u1="w" u2="Z" k="16" />
-<hkern u1="w" u2="Y" k="27" />
-<hkern u1="w" u2="X" k="53" />
-<hkern u1="w" u2="T" k="133" />
-<hkern u1="w" u2="J" k="57" />
-<hkern u1="w" u2="A" k="51" />
-<hkern u1="w" u2="&#x2f;" k="72" />
-<hkern u1="w" u2="&#x2e;" k="59" />
-<hkern u1="w" u2="&#x29;" k="31" />
-<hkern u1="x" u2="&#x2122;" k="27" />
-<hkern u1="x" u2="&#x2039;" k="45" />
-<hkern u1="x" u2="&#xf0;" k="45" />
-<hkern u1="x" u2="o" k="41" />
-<hkern u1="x" u2="a" k="10" />
-<hkern u1="x" u2="Y" k="39" />
-<hkern u1="x" u2="V" k="16" />
-<hkern u1="x" u2="U" k="12" />
-<hkern u1="x" u2="T" k="135" />
-<hkern u1="x" u2="O" k="25" />
-<hkern u1="x" u2="&#x2d;" k="49" />
-<hkern u1="y" u2="&#x2039;" k="37" />
-<hkern u1="y" u2="&#xf0;" k="35" />
-<hkern u1="y" u2="&#xc6;" k="66" />
-<hkern u1="y" u2="s" k="12" />
-<hkern u1="y" u2="o" k="18" />
-<hkern u1="y" u2="a" k="14" />
-<hkern u1="y" u2="]" k="23" />
-<hkern u1="y" u2="Z" k="12" />
-<hkern u1="y" u2="Y" k="16" />
-<hkern u1="y" u2="X" k="47" />
-<hkern u1="y" u2="T" k="139" />
-<hkern u1="y" u2="J" k="49" />
-<hkern u1="y" u2="A" k="59" />
-<hkern u1="y" u2="&#x3a;" k="18" />
-<hkern u1="y" u2="&#x2f;" k="76" />
-<hkern u1="y" u2="&#x2e;" k="74" />
-<hkern u1="y" u2="&#x2a;" k="-12" />
-<hkern u1="y" u2="&#x29;" k="23" />
-<hkern u1="z" u2="&#x2122;" k="43" />
-<hkern u1="z" u2="&#x2039;" k="31" />
-<hkern u1="z" u2="&#xf0;" k="14" />
-<hkern u1="z" u2="o" k="14" />
-<hkern u1="z" u2="]" k="33" />
-<hkern u1="z" u2="\" k="37" />
-<hkern u1="z" u2="Y" k="78" />
-<hkern u1="z" u2="W" k="33" />
-<hkern u1="z" u2="V" k="41" />
-<hkern u1="z" u2="U" k="20" />
-<hkern u1="z" u2="T" k="150" />
-<hkern u1="z" u2="O" k="12" />
-<hkern u1="z" u2="I" k="10" />
-<hkern u1="z" u2="&#x2d;" k="35" />
-<hkern u1="&#x7b;" u2="&#xf0;" k="23" />
-<hkern u1="&#x7b;" u2="u" k="25" />
-<hkern u1="&#x7b;" u2="s" k="20" />
-<hkern u1="&#x7b;" u2="o" k="35" />
-<hkern u1="&#x7b;" u2="j" k="-168" />
-<hkern u1="&#x7b;" u2="a" k="20" />
-<hkern u1="&#x7b;" u2="O" k="25" />
-<hkern u1="&#x7c;" u2="j" k="-104" />
-<hkern u1="&#x7d;" u2="&#x29;" k="20" />
-<hkern u1="&#xae;" u2="&#xc6;" k="25" />
-<hkern u1="&#xae;" u2="Y" k="33" />
-<hkern u1="&#xae;" u2="X" k="25" />
-<hkern u1="&#xae;" u2="T" k="25" />
-<hkern u1="&#xae;" u2="J" k="25" />
-<hkern u1="&#xae;" u2="A" k="27" />
-<hkern u1="&#xb0;" u2="&#x34;" k="49" />
-<hkern u1="&#xb7;" u2="l" k="150" />
-<hkern u1="&#xb7;" u2="&#x37;" k="41" />
-<hkern u1="&#xb7;" u2="&#x33;" k="53" />
-<hkern u1="&#xb7;" u2="&#x32;" k="51" />
-<hkern u1="&#xb7;" u2="&#x31;" k="59" />
-<hkern u1="&#xbf;" u2="Y" k="39" />
-<hkern u1="&#xbf;" u2="W" k="31" />
-<hkern u1="&#xbf;" u2="V" k="37" />
-<hkern u1="&#xbf;" u2="T" k="41" />
-<hkern u1="&#xce;" u2="&#x7d;" k="-20" />
-<hkern u1="&#xde;" u2="&#x2122;" k="25" />
-<hkern u1="&#xde;" u2="&#xc6;" k="39" />
-<hkern u1="&#xde;" u2="z" k="10" />
-<hkern u1="&#xde;" u2="x" k="14" />
-<hkern u1="&#xde;" u2="]" k="51" />
-<hkern u1="&#xde;" u2="\" k="35" />
-<hkern u1="&#xde;" u2="Z" k="27" />
-<hkern u1="&#xde;" u2="Y" k="49" />
-<hkern u1="&#xde;" u2="X" k="61" />
-<hkern u1="&#xde;" u2="W" k="12" />
-<hkern u1="&#xde;" u2="V" k="25" />
-<hkern u1="&#xde;" u2="T" k="37" />
-<hkern u1="&#xde;" u2="J" k="49" />
-<hkern u1="&#xde;" u2="A" k="39" />
-<hkern u1="&#xde;" u2="&#x2f;" k="61" />
-<hkern u1="&#xde;" u2="&#x2e;" k="66" />
-<hkern u1="&#xde;" u2="&#x29;" k="45" />
-<hkern u1="&#xdf;" u2="y" k="14" />
-<hkern u1="&#xdf;" u2="x" k="18" />
-<hkern u1="&#xdf;" u2="w" k="10" />
-<hkern u1="&#xdf;" u2="v" k="14" />
-<hkern u1="&#xdf;" u2="t" k="14" />
-<hkern u1="&#xdf;" u2="f" k="12" />
-<hkern u1="&#xdf;" u2="]" k="25" />
-<hkern u1="&#xdf;" u2="\" k="20" />
-<hkern u1="&#xdf;" u2="Z" k="14" />
-<hkern u1="&#xdf;" u2="Y" k="37" />
-<hkern u1="&#xdf;" u2="X" k="31" />
-<hkern u1="&#xdf;" u2="W" k="27" />
-<hkern u1="&#xdf;" u2="V" k="33" />
-<hkern u1="&#xdf;" u2="U" k="20" />
-<hkern u1="&#xdf;" u2="T" k="31" />
-<hkern u1="&#xdf;" u2="S" k="10" />
-<hkern u1="&#xdf;" u2="O" k="10" />
-<hkern u1="&#xdf;" u2="J" k="14" />
-<hkern u1="&#xdf;" u2="I" k="16" />
-<hkern u1="&#xdf;" u2="A" k="14" />
-<hkern u1="&#xdf;" u2="&#x2f;" k="31" />
-<hkern u1="&#xdf;" u2="&#x29;" k="33" />
-<hkern u1="&#xed;" u2="&#x2122;" k="-90" />
-<hkern u1="&#xed;" u2="&#x7d;" k="-33" />
-<hkern u1="&#xed;" u2="]" k="-55" />
-<hkern u1="&#xed;" u2="\" k="-18" />
-<hkern u1="&#xed;" u2="&#x2a;" k="-37" />
-<hkern u1="&#xee;" u2="&#x2122;" k="-72" />
-<hkern u1="&#xee;" u2="&#x3f;" k="-35" />
-<hkern u1="&#xee;" u2="&#x2a;" k="-84" />
-<hkern u1="&#xef;" u2="&#x2122;" k="-70" />
-<hkern u1="&#xef;" u2="&#x7d;" k="-12" />
-<hkern u1="&#xef;" u2="]" k="-33" />
-<hkern u1="&#xef;" u2="&#x2a;" k="-43" />
-<hkern u1="&#xf0;" u2="&#x2122;" k="31" />
-<hkern u1="&#xf0;" u2="&#x2019;" k="37" />
-<hkern u1="&#xf0;" u2="&#x2018;" k="37" />
-<hkern u1="&#xf0;" u2="&#xc6;" k="14" />
-<hkern u1="&#xf0;" u2="&#x7d;" k="20" />
-<hkern u1="&#xf0;" u2="z" k="8" />
-<hkern u1="&#xf0;" u2="y" k="12" />
-<hkern u1="&#xf0;" u2="x" k="27" />
-<hkern u1="&#xf0;" u2="w" k="8" />
-<hkern u1="&#xf0;" u2="v" k="14" />
-<hkern u1="&#xf0;" u2="t" k="12" />
-<hkern u1="&#xf0;" u2="f" k="10" />
-<hkern u1="&#xf0;" u2="]" k="39" />
-<hkern u1="&#xf0;" u2="\" k="33" />
-<hkern u1="&#xf0;" u2="Z" k="37" />
-<hkern u1="&#xf0;" u2="Y" k="80" />
-<hkern u1="&#xf0;" u2="X" k="61" />
-<hkern u1="&#xf0;" u2="W" k="59" />
-<hkern u1="&#xf0;" u2="V" k="70" />
-<hkern u1="&#xf0;" u2="U" k="18" />
-<hkern u1="&#xf0;" u2="T" k="82" />
-<hkern u1="&#xf0;" u2="S" k="16" />
-<hkern u1="&#xf0;" u2="J" k="25" />
-<hkern u1="&#xf0;" u2="I" k="12" />
-<hkern u1="&#xf0;" u2="A" k="20" />
-<hkern u1="&#xf0;" u2="&#x2f;" k="39" />
-<hkern u1="&#xf0;" u2="&#x2a;" k="18" />
-<hkern u1="&#xf0;" u2="&#x29;" k="39" />
-<hkern u1="&#xf0;" u2="&#x27;" k="18" />
-<hkern u1="&#x2018;" u2="&#xf0;" k="39" />
-<hkern u1="&#x2018;" u2="&#xc6;" k="133" />
-<hkern u1="&#x2018;" u2="s" k="49" />
-<hkern u1="&#x2018;" u2="o" k="74" />
-<hkern u1="&#x2018;" u2="a" k="43" />
-<hkern u1="&#x2018;" u2="O" k="23" />
-<hkern u1="&#x2018;" u2="J" k="29" />
-<hkern u1="&#x2018;" u2="A" k="125" />
-<hkern u1="&#x2018;" u2="&#x2e;" k="309" />
-<hkern u1="&#x2019;" u2="&#x2039;" k="33" />
-<hkern u1="&#x2019;" u2="&#xf0;" k="39" />
-<hkern u1="&#x2019;" u2="&#xc6;" k="133" />
-<hkern u1="&#x2019;" u2="&#xae;" k="25" />
-<hkern u1="&#x2019;" u2="s" k="49" />
-<hkern u1="&#x2019;" u2="o" k="74" />
-<hkern u1="&#x2019;" u2="a" k="43" />
-<hkern u1="&#x2019;" u2="O" k="23" />
-<hkern u1="&#x2019;" u2="J" k="29" />
-<hkern u1="&#x2019;" u2="A" k="125" />
-<hkern u1="&#x2019;" u2="&#x40;" k="57" />
-<hkern u1="&#x2019;" u2="&#x3a;" k="156" />
-<hkern u1="&#x2019;" u2="&#x2f;" k="172" />
-<hkern u1="&#x2019;" u2="&#x2e;" k="309" />
-<hkern u1="&#x2019;" u2="&#x26;" k="45" />
-<hkern u1="&#x2039;" u2="Y" k="66" />
-<hkern u1="&#x2039;" u2="W" k="23" />
-<hkern u1="&#x2039;" u2="V" k="35" />
-<hkern u1="&#x2039;" u2="T" k="111" />
-<hkern u1="&#x203a;" u2="z" k="25" />
-<hkern u1="&#x203a;" u2="y" k="37" />
-<hkern u1="&#x203a;" u2="x" k="43" />
-<hkern u1="&#x203a;" u2="w" k="29" />
-<hkern u1="&#x203a;" u2="v" k="37" />
-<hkern u1="&#x203a;" u2="t" k="27" />
-<hkern u1="&#x203a;" u2="s" k="20" />
-<hkern u1="&#x203a;" u2="f" k="27" />
-<hkern u1="&#x203a;" u2="Z" k="23" />
-<hkern u1="&#x203a;" u2="Y" k="109" />
-<hkern u1="&#x203a;" u2="X" k="33" />
-<hkern u1="&#x203a;" u2="W" k="57" />
-<hkern u1="&#x203a;" u2="V" k="72" />
-<hkern u1="&#x203a;" u2="T" k="127" />
-<hkern u1="&#x203a;" u2="J" k="27" />
-<hkern u1="&#x203a;" u2="&#x27;" k="29" />
-<hkern u1="&#x2122;" u2="&#xee;" k="-31" />
-<hkern u1="&#x2122;" u2="&#xec;" k="-14" />
-<hkern u1="&#x2122;" u2="&#xc6;" k="61" />
-<hkern u1="&#x2122;" u2="J" k="35" />
-<hkern u1="&#x2122;" u2="A" k="55" />
-</font>
-</defs></svg> -88t-37 -90t-89 -38t-89 37z" />
-<glyph unicode="&#xa9;" horiz-adv-x="1703" d="M1593 719q0 -305 -217 -524.5t-526 -219.5t-524 217.5t-215 522.5t217 524t524 219t524 -217t217 -522zM1503 717q0 268 -187.5 458.5t-459.5 190.5t-460.5 -191.5t-188.5 -461t186.5 -460t458.5 -190.5t461.5 193t189.5 461zM1194 459q-139 -145 -317.5 -145.5 t-297 111.5t-118.5 294t123 294.5t305 112.5t299 -122l-98 -121q-106 90 -209 90t-179.5 -68.5t-76.5 -178.5t76.5 -185.5t188 -75.5t206.5 100z" />
-<glyph unicode="&#xaa;" horiz-adv-x="720" d="M567 954h-96v68q-63 -76 -154.5 -76t-143.5 45t-52 119q0 150 203 150h139v18q0 100 -113 100q-68 0 -145 -51l-47 68q90 72 194 71q215 0 215 -186v-326zM461 1143v43h-119q-115 0 -115 -74q0 -37 29 -56.5t79 -19.5t88 30t38 77z" />
-<glyph unicode="&#xab;" horiz-adv-x="1120" d="M580 852l-236 -360l236 -361h-222l-243 361l243 360h222zM985 852l-235 -360l235 -361h-221l-244 361l244 360h221z" />
-<glyph unicode="&#xac;" horiz-adv-x="1695" d="M137 911h1370v-731h-168v551h-1202v180z" />
-<glyph unicode="&#xad;" horiz-adv-x="974" d="M147 504v215h680v-215h-680z" />
-<glyph unicode="&#xae;" horiz-adv-x="1703" d="M1593 719q0 -305 -217 -524.5t-526 -219.5t-524 217.5t-215 522.5t217 524t524 219t524 -217t217 -522zM1503 717q0 268 -187.5 458.5t-459.5 190.5t-460.5 -191.5t-188.5 -461t186.5 -460t458.5 -190.5t461.5 193t189.5 461zM1210 860q0 -199 -174 -250l213 -288h-172 l-192 268h-176v-268h-140v800h301q182 0 261 -62.5t79 -199.5zM1031 747.5q42 34.5 42 113.5t-43 109.5t-151 30.5h-170v-288h165q115 0 157 34.5z" />
-<glyph unicode="&#xaf;" horiz-adv-x="868" d="M750 1407v-178h-629v178h629z" />
-<glyph unicode="&#xb0;" horiz-adv-x="851" d="M426 1464q131 0 223 -92t92 -223t-92 -222t-223 -91t-223 91t-92 222t92 223t223 92zM277.5 1001.5q60.5 -61.5 147.5 -61.5t147.5 61.5t60.5 147.5t-60.5 146.5t-147.5 60.5t-147.5 -60.5t-60.5 -146.5t60.5 -147.5z" />
-<glyph unicode="&#xb1;" horiz-adv-x="1163" d="M489 565v277h-391v192h391v273h185v-273h391v-192h-391v-277h-185zM98 451h967v-172h-967v172z" />
-<glyph unicode="&#xb2;" horiz-adv-x="858" d="M519 1120q36 49 36 99.5t-38 85t-97 34.5q-104 0 -172 -104l-113 65q109 166 287 166q111 0 189.5 -66.5t78.5 -180.5q0 -63 -33.5 -122t-124.5 -153l-194 -199h379v-135h-572v119l252 256q86 86 122 135z" />
-<glyph unicode="&#xb3;" horiz-adv-x="811" d="M158 1305v127h495v-113l-204 -229q117 -2 181 -73t64 -183.5t-87 -186.5t-226 -74t-270 89l61 114q100 -72 217 -71q74 0 122 33.5t48 99t-53 104.5t-124 39t-116 -14v108l197 230h-305z" />
-<glyph unicode="&#xb4;" horiz-adv-x="1705" d="M901 1286h-209l217 297l242 -100z" />
-<glyph unicode="&#xb5;" horiz-adv-x="1314" d="M176 -397v1487h230v-598q0 -301 249 -302q119 0 207 79t88 231v590h230v-1090h-230v199q-55 -100 -152.5 -157.5t-204 -57.5t-187.5 34v-415h-230z" />
-<glyph unicode="&#xb6;" horiz-adv-x="1374" d="M72 1139q0 174 120.5 292.5t366.5 118.5h612v-1779h-190v1585h-229v-1585h-185v981q-49 -6 -94 -7q-113 0 -196.5 39t-124.5 101q-80 119 -80 254z" />
-<glyph unicode="&#xb7;" horiz-adv-x="595" d="M145 653.5q0 63.5 44 107.5t107.5 44t109 -44t45.5 -107.5t-45.5 -108.5t-109 -45t-107.5 45t-44 108.5z" />
-<glyph unicode="&#xb8;" horiz-adv-x="575" d="M481 -240q0 -78 -63.5 -136t-160.5 -58t-171 45l53 117q39 -20 79 -20.5t62.5 23t22.5 56.5t-23.5 58.5t-59.5 25.5t-60 -10l73 139h146l-41 -78q143 -19 143 -162z" />
-<glyph unicode="&#xb9;" horiz-adv-x="548" d="M84 1432h303v-838h-133v713h-170v125z" />
-<glyph unicode="&#xba;" horiz-adv-x="774" d="M387 1032q72 0 118 47t46 122t-46 122t-118 47t-118 -47t-46 -122t46 -122t118 -47zM387 934q-117 0 -194.5 76.5t-77.5 189.5t77.5 189.5t194.5 76.5t194.5 -76.5t77.5 -189.5t-77.5 -189.5t-194.5 -76.5z" />
-<glyph unicode="&#xbb;" horiz-adv-x="1120" d="M776 492l-235 360h221l244 -360l-244 -361h-221zM371 492l-236 360h221l244 -360l-244 -361h-221z" />
-<glyph unicode="&#xbc;" horiz-adv-x="1767" d="M1210 1550h148l-764 -1566h-148zM1452 340v154h133v-154h103v-129h-103v-211h-133v211h-358v125l305 502h155l-303 -498h201zM72 1432h303v-838h-133v713h-170v125z" />
-<glyph unicode="&#xbd;" horiz-adv-x="1900" d="M1276 1550h147l-764 -1566h-147zM1613 510q36 49 36 99t-38 85t-98 35q-100 0 -172 -104l-110 65q109 166 285 166q111 0 190.5 -66.5t79.5 -181.5q0 -63 -34 -122.5t-124 -151.5l-196 -199h378v-135h-571v119l254 256q84 86 120 135zM72 1432h303v-838h-133v713h-170 v125z" />
-<glyph unicode="&#xbe;" horiz-adv-x="1845" d="M1294 1550h148l-764 -1566h-148zM1536 340v154h133v-154h103v-129h-103v-211h-133v211h-358v125l305 502h155l-303 -498h201zM129 1305v127h496v-113l-205 -229q117 -2 181.5 -73t64.5 -183.5t-87 -186.5t-226.5 -74t-270.5 89l61 114q100 -72 217 -71q74 0 122 33.5 t48 99t-53 104.5t-123.5 39t-115.5 -14v108l196 230h-305z" />
-<glyph unicode="&#xbf;" horiz-adv-x="1040" d="M422 1004h231v-125q0 -82 -19.5 -122t-84.5 -106l-150 -149q-47 -51 -47 -127t49.5 -126t127 -50t130 48t60.5 128h248q-20 -182 -142.5 -285.5t-304.5 -103.5t-296.5 99t-114.5 277q0 123 67 205q39 49 59.5 69.5t54.5 52.5t57.5 55.5t37.5 41.5q37 43 37 125v93z M645 1414q47 -44 47 -106.5t-46 -107.5t-110.5 -45t-111.5 44t-47 106.5t46 107.5t110.5 45t111.5 -44z" />
-<glyph unicode="&#xc0;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM860 1550h-209l-250 197l242 100z" />
-<glyph unicode="&#xc1;" horiz-adv-x="1519" d="M401 326l-143 -326h-258l631 1432h258l631 -1432h-258l-144 326h-717zM1020 549l-260 590l-260 -590h520zM870 1552h-208l217 297l241 -100z" />
-<glyph unicode="&#xc2;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM633 1825h213l250 -275h-199l-158 115l-157 -115h-199z" />
-<glyph unicode="&#xc3;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM897 1544q-53 0 -148.5 48t-121.5 48q-68 0 -70 -90h-151q0 119 48 193t134 74q55 0 153.5 -48.5t128.5 -48.5q61 0 62 90h153q-6 -266 -188 -266z" />
-<glyph unicode="&#xc4;" horiz-adv-x="1495" d="M864 1432l631 -1432h-266l-146 326h-686l-139 -326h-258l631 1432h233zM987 549l-246 551l-243 -551h489zM468 1579q-36 37 -36 89t36 89t89 37t90 -36t37 -88t-37 -90t-90 -38t-89 37zM848 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-38 -90t-89 -38t-88 37z" />
-<glyph unicode="&#xc5;" horiz-adv-x="1495" d="M903.5 1729.5q67.5 -64.5 67.5 -162t-97 -162.5l621 -1405h-266l-146 326h-686l-139 -326h-258l618 1407q-92 66 -92 162t66.5 160.5t155 64.5t156 -64.5zM987 549l-246 551l-243 -551h489zM829.5 1498q30.5 32 30.5 82t-30.5 82t-81 32t-82 -32t-31.5 -82t31.5 -82 t82 -32t81 32z" />
-<glyph unicode="&#xc6;" horiz-adv-x="2129" d="M1995 1432v-226h-764v-393h686v-211h-686v-377h788v-225h-1052v326h-518l-175 -326h-297l750 1432h1268zM967 557v649h-60l-342 -649h402z" />
-<glyph unicode="&#xc7;" horiz-adv-x="1507" d="M852 219q125 0 215 42t188 134l156 -159q-213 -238 -520 -250l-33 -64q143 -18 143 -162q0 -78 -63.5 -136t-160.5 -58t-171 45l53 117q39 -20 79 -20.5t62.5 23t22.5 56.5t-23.5 58.5t-59 25.5t-60.5 -10l68 129q-281 35 -461.5 237.5t-180.5 507.5t218.5 518t551 213 t556.5 -245l-154 -168q-102 98 -193.5 137t-214.5 39q-217 0 -364.5 -140.5t-147.5 -358.5t146.5 -364.5t347.5 -146.5z" />
-<glyph unicode="&#xc8;" horiz-adv-x="1339" d="M862 1550h-209l-250 197l242 100zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xc9;" horiz-adv-x="1339" d="M1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005zM811 1550h-209l217 297l242 -100z" />
-<glyph unicode="&#xca;" horiz-adv-x="1339" d="M596 1825h213l250 -275h-199l-158 115l-157 -115h-199zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xcb;" horiz-adv-x="1339" d="M425 1579q-36 37 -36 89t37 89t89 37t89 -36t37 -88t-38 -90t-90 -38t-88 37zM805 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-37 -90t-89 -38t-89 37zM1204 1432v-228h-764v-379h686v-215h-686v-383h789v-227h-1030v1432h1005z" />
-<glyph unicode="&#xcc;" horiz-adv-x="638" d="M428 1550h-209l-250 197l242 100zM199 1432h241v-1432h-241v1432z" />
-<glyph unicode="&#xcd;" horiz-adv-x="638" d="M199 1432h241v-1432h-241v1432zM420 1550h-209l217 297l242 -100z" />
-<glyph unicode="&#xce;" horiz-adv-x="638" d="M199 1432h241v-1432h-241v1432zM236 1825h213l249 -275h-198l-158 115l-158 -115h-198z" />
-<glyph unicode="&#xcf;" horiz-adv-x="638" d="M42 1579q-36 37 -36 89t36 89t89 37t90 -36t37 -88t-37 -90t-90 -38t-89 37zM422 1579q-37 37 -37 89t37 89t89 37t89 -36t37 -88t-38 -90t-89 -38t-88 37zM199 1432h241v-1432h-241v1432z" />
-<glyph unicode="&#xd0;" horiz-adv-x="1617" d="M53 602v215h162v615h492q385 0 591.5 -187.5t206.5 -521.5t-200.5 -528.5t-614.5 -194.5h-475v602h-162zM1262 717q0 492 -564 491h-241v-391h512v-215h-512v-375h268q260 0 398.5 124t138.5 366z" />
-<glyph unicode="&#xd1;" horiz-adv-x="1712" d="M1272 1432h241v-1432h-262l-811 1044v-1044h-241v1432h241l832 -1070v1070zM1001 1544q-53 0 -148 48t-122 48q-68 0 -69 -90h-152q0 119 48 193t134 74q55 0 153.5 -48.5t129.5 -48.5q61 0 61 90h154q-7 -266 -189 -266z" />
-<glyph unicode="&#xd2;" horiz-adv-x="1720" d="M1016 1550h-209l-250 197l242 100zM860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528 t-536.5 -212z" />
-<glyph unicode="&#xd3;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM897 1550h-209l217 297 l242 -100z" />
-<glyph unicode="&#xd4;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM750 1825h213l249 -275h-198 l-158 115l-158 -115h-198z" />
-<glyph unicode="&#xd5;" horiz-adv-x="1720" d="M860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212zM1008 1544q-53 0 -148.5 48 t-122.5 48q-68 0 -69 -90h-152q0 119 48 193t134 74q55 0 153.5 -48.5t129.5 -48.5q61 0 61 90h154q-6 -266 -188 -266z" />
-<glyph unicode="&#xd6;" horiz-adv-x="1720" d="M570.5 1579q-35.5 37 -35.5 89t35.5 89t89 37t90 -36t36.5 -88t-36.5 -90t-90 -38t-89 37zM950 1579q-37 37 -37 89t37 89t89.5 37t89 -36t36.5 -88t-37.5 -90t-89 -38t-88.5 37zM860 1245q-213 0 -359.5 -151.5t-146.5 -367.5t146.5 -367.5t359.5 -151.5t359.5 151.5 t146.5 367.5t-146.5 367.5t-359.5 151.5zM860.5 -14q-319.5 0 -537 212t-217.5 528t217.5 528t537 212t536.5 -212t217 -528t-217 -528t-536.5 -212z" />
-<glyph unicode="&#xd7;" horiz-adv-x="1157" d="M580 907l348 350l129 -131l-346 -346l348 -350l-129 -131l-350 350l-351 -350l-131 131l351 350l-349 346l131 131z" />
-<glyph unicode="&#xd8;" horiz-adv-x="1720" d="M1614 727q0 -317 -217 -529t-537 -212q-109 0 -207 24l-116 -250h-205l149 320q-174 94 -274.5 265t-100.5 382q0 315 217.5 527t536.5 212q125 0 248 -39l111 234h204l-145 -313q156 -98 246 -261t90 -360zM860 1245q-213 0 -359.5 -151.5t-146.5 -368.5 q0 -133 60.5 -248t165.5 -186l434 930q-74 24 -154 24zM1366 725q0 250 -188 408l-428 -916q57 -10 110 -10q213 0 359.5 151.5t \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.ttf b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.ttf
deleted file mode 100644
index e3985ca..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.ttf
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.woff b/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.woff
deleted file mode 100644
index 2e1467b..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.woff
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/css/normalize.css b/common/src/main/webapp/thirdparty/icheck/demo/css/normalize.css
deleted file mode 100644
index 4d4d01d..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/css/normalize.css
+++ /dev/null
@@ -1,527 +0,0 @@
-/*! normalize.css v1.1.0 | MIT License | git.io/normalize */
-
-/* ==========================================================================
- HTML5 display definitions
- ========================================================================== */
-
-/**
- * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
- */
-
-article,
-aside,
-details,
-figcaption,
-figure,
-footer,
-header,
-hgroup,
-main,
-nav,
-section,
-summary {
- display: block;
-}
-
-/**
- * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
- */
-
-audio,
-canvas,
-video {
- display: inline-block;
- *display: inline;
- *zoom: 1;
-}
-
-/**
- * Prevent modern browsers from displaying `audio` without controls.
- * Remove excess height in iOS 5 devices.
- */
-
-audio:not([controls]) {
- display: none;
- height: 0;
-}
-
-/**
- * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
- * Known issue: no IE 6 support.
- */
-
-[hidden] {
- display: none;
-}
-
-/* ==========================================================================
- Base
- ========================================================================== */
-
-/**
- * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
- * `em` units.
- * 2. Prevent iOS text size adjust after orientation change, without disabling
- * user zoom.
- */
-
-html {
- font-size: 100%; /* 1 */
- -webkit-text-size-adjust: 100%; /* 2 */
- -ms-text-size-adjust: 100%; /* 2 */
-}
-
-/**
- * Address `font-family` inconsistency between `textarea` and other form
- * elements.
- */
-
-html,
-button,
-input,
-select,
-textarea {
- font-family: sans-serif;
-}
-
-/**
- * Address margins handled incorrectly in IE 6/7.
- */
-
-body {
- margin: 0;
-}
-
-/* ==========================================================================
- Links
- ========================================================================== */
-
-/**
- * Address `outline` inconsistency between Chrome and other browsers.
- */
-
-a:focus {
- outline: thin dotted;
-}
-
-/**
- * Improve readability when focused and also mouse hovered in all browsers.
- */
-
-a:active,
-a:hover {
- outline: 0;
-}
-
-/* ==========================================================================
- Typography
- ========================================================================== */
-
-/**
- * Address font sizes and margins set differently in IE 6/7.
- * Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
- * and Chrome.
- */
-
-h1 {
- font-size: 2em;
- margin: 0.67em 0;
-}
-
-h2 {
- font-size: 1.5em;
- margin: 0.83em 0;
-}
-
-h3 {
- font-size: 1.17em;
- margin: 1em 0;
-}
-
-h4 {
- font-size: 1em;
- margin: 1.33em 0;
-}
-
-h5 {
- font-size: 0.83em;
- margin: 1.67em 0;
-}
-
-h6 {
- font-size: 0.67em;
- margin: 2.33em 0;
-}
-
-/**
- * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
- */
-
-abbr[title] {
- border-bottom: 1px dotted;
-}
-
-/**
- * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
- */
-
-b,
-strong {
- font-weight: bold;
-}
-
-blockquote {
- margin: 1em 40px;
-}
-
-/**
- * Address styling not present in Safari 5 and Chrome.
- */
-
-dfn {
- font-style: italic;
-}
-
-/**
- * Address differences between Firefox and other browsers.
- * Known issue: no IE 6/7 normalization.
- */
-
-hr {
- -moz-box-sizing: content-box;
- box-sizing: content-box;
- height: 0;
-}
-
-/**
- * Address styling not present in IE 6/7/8/9.
- */
-
-mark {
- background: #ff0;
- color: #000;
-}
-
-/**
- * Address margins set differently in IE 6/7.
- */
-
-p,
-pre {
- margin: 1em 0;
-}
-
-/**
- * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
- */
-
-code,
-kbd,
-pre,
-samp {
- font-family: monospace, serif;
- _font-family: 'courier new', monospace;
- font-size: 1em;
-}
-
-/**
- * Improve readability of pre-formatted text in all browsers.
- */
-
-pre {
- white-space: pre;
- white-space: pre-wrap;
- word-wrap: break-word;
-}
-
-/**
- * Address CSS quotes not supported in IE 6/7.
- */
-
-q {
- quotes: none;
-}
-
-/**
- * Address `quotes` property not supported in Safari 4.
- */
-
-q:before,
-q:after {
- content: '';
- content: none;
-}
-
-/**
- * Address inconsistent and variable font size in all browsers.
- */
-
-small {
- font-size: 80%;
-}
-
-/**
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
- */
-
-sub,
-sup {
- font-size: 75%;
- line-height: 0;
- position: relative;
- vertical-align: baseline;
-}
-
-sup {
- top: -0.5em;
-}
-
-sub {
- bottom: -0.25em;
-}
-
-/* ==========================================================================
- Lists
- ========================================================================== */
-
-/**
- * Address margins set differently in IE 6/7.
- */
-
-dl,
-menu,
-ol,
-ul {
- margin: 1em 0;
-}
-
-dd {
- margin: 0 0 0 40px;
-}
-
-/**
- * Address paddings set differently in IE 6/7.
- */
-
-menu,
-ol,
-ul {
- padding: 0 0 0 40px;
-}
-
-/**
- * Correct list images handled incorrectly in IE 7.
- */
-
-nav ul,
-nav ol {
- list-style: none;
- list-style-image: none;
-}
-
-/* ==========================================================================
- Embedded content
- ========================================================================== */
-
-/**
- * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
- * 2. Improve image quality when scaled in IE 7.
- */
-
-img {
- border: 0; /* 1 */
- -ms-interpolation-mode: bicubic; /* 2 */
-}
-
-/**
- * Correct overflow displayed oddly in IE 9.
- */
-
-svg:not(:root) {
- overflow: hidden;
-}
-
-/* ==========================================================================
- Figures
- ========================================================================== */
-
-/**
- * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
- */
-
-figure {
- margin: 0;
-}
-
-/* ==========================================================================
- Forms
- ========================================================================== */
-
-/**
- * Correct margin displayed oddly in IE 6/7.
- */
-
-form {
- margin: 0;
-}
-
-/**
- * Define consistent border, margin, and padding.
- */
-
-fieldset {
- border: 1px solid #c0c0c0;
- margin: 0 2px;
- padding: 0.35em 0.625em 0.75em;
-}
-
-/**
- * 1. Correct color not being inherited in IE 6/7/8/9.
- * 2. Correct text not wrapping in Firefox 3.
- * 3. Correct alignment displayed oddly in IE 6/7.
- */
-
-legend {
- border: 0; /* 1 */
- padding: 0;
- white-space: normal; /* 2 */
- *margin-left: -7px; /* 3 */
-}
-
-/**
- * 1. Correct font size not being inherited in all browsers.
- * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
- * and Chrome.
- * 3. Improve appearance and consistency in all browsers.
- */
-
-button,
-input,
-select,
-textarea {
- font-size: 100%; /* 1 */
- margin: 0; /* 2 */
- vertical-align: baseline; /* 3 */
- *vertical-align: middle; /* 3 */
-}
-
-/**
- * Address Firefox 3+ setting `line-height` on `input` using `!important` in
- * the UA stylesheet.
- */
-
-button,
-input {
- line-height: normal;
-}
-
-/**
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
- * All other form control elements do not inherit `text-transform` values.
- * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
- * Correct `select` style inheritance in Firefox 4+ and Opera.
- */
-
-button,
-select {
- text-transform: none;
-}
-
-/**
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
- * and `video` controls.
- * 2. Correct inability to style clickable `input` types in iOS.
- * 3. Improve usability and consistency of cursor style between image-type
- * `input` and others.
- * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
- * Known issue: inner spacing remains in IE 6.
- */
-
-button,
-html input[type="button"], /* 1 */
-input[type="reset"],
-input[type="submit"] {
- -webkit-appearance: button; /* 2 */
- cursor: pointer; /* 3 */
- *overflow: visible; /* 4 */
-}
-
-/**
- * Re-set default cursor for disabled elements.
- */
-
-button[disabled],
-html input[disabled] {
- cursor: default;
-}
-
-/**
- * 1. Address box sizing set to content-box in IE 8/9.
- * 2. Remove excess padding in IE 8/9.
- * 3. Remove excess padding in IE 7.
- * Known issue: excess padding remains in IE 6.
- */
-
-input[type="checkbox"],
-input[type="radio"] {
- box-sizing: border-box; /* 1 */
- padding: 0; /* 2 */
- *height: 13px; /* 3 */
- *width: 13px; /* 3 */
-}
-
-/**
- * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
- * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
- * (include `-moz` to future-proof).
- */
-
-input[type="search"] {
- -webkit-appearance: textfield; /* 1 */
- -moz-box-sizing: content-box;
- -webkit-box-sizing: content-box; /* 2 */
- box-sizing: content-box;
-}
-
-/**
- * Remove inner padding and search cancel button in Safari 5 and Chrome
- * on OS X.
- */
-
-input[type="search"]::-webkit-search-cancel-button,
-input[type="search"]::-webkit-search-decoration {
- -webkit-appearance: none;
-}
-
-/**
- * Remove inner padding and border in Firefox 3+.
- */
-
-button::-moz-focus-inner,
-input::-moz-focus-inner {
- border: 0;
- padding: 0;
-}
-
-/**
- * 1. Remove default vertical scrollbar in IE 6/7/8/9.
- * 2. Improve readability and alignment in all browsers.
- */
-
-textarea {
- overflow: auto; /* 1 */
- vertical-align: top; /* 2 */
-}
-
-/* ==========================================================================
- Tables
- ========================================================================== */
-
-/**
- * Remove most spacing between table cells.
- */
-
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/index.html b/common/src/main/webapp/thirdparty/icheck/demo/index.html
deleted file mode 100644
index 6792088..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/index.html
+++ /dev/null
@@ -1,1544 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <title>Checkboxes and radio buttons customization (jQuery and Zepto) plugin</title>
- <meta charset="utf-8">
- <meta content="width=device-width" name="viewport">
- <link href="./css/custom.css?v=1.0.2" rel="stylesheet">
- <link href="../skins/all.css?v=1.0.2" rel="stylesheet">
- <script src="./js/jquery.js"></script>
- <script src="../icheck.js?v=1.0.2"></script>
- <script src="./js/custom.min.js?v=1.0.2"></script>
-</head>
-<body>
- <div class="layout clear">
- <div class="header">
- <h1>super customized checkboxes and radio buttons for jQuery &amp; Zepto</h1>
- <h3>iCheck <span>v1.0.2</span></h3>
- <strong>@<a href="http://twitter.com/fronteed/">Fronteed</a></strong>
- </div>
- <div class="features">
- <div class="arrows">
- <div class="bottom" data-to="demo"></div>
- </div>
- <h2>Plugin features</h2>
- <ul>
- <li>
- <strong>Identical inputs across different browsers and devices</strong> &mdash; both <span class="self" data-to="download">desktop and mobile</span>
- </li>
- <li>
- <strong>Touch devices support</strong> &mdash; iOS, Android, BlackBerry, Windows Phone, Amazon Kindle
- </li>
- <li>
- <strong>Keyboard accessible inputs</strong> &mdash; <span class="mark">Tab</span>, <span class="mark">Spacebar</span>, <span class="mark">Arrow up/down</span> and other shortcuts
- </li>
- <li>
- <strong>Screenreader accessible inputs</strong> &mdash; <a href="https://developer.mozilla.org/en-US/docs/Accessibility/ARIA" target="blank">ARIA</a> attributes for VoiceOver and others
- </li>
- <li>
- <strong>Customization freedom</strong> &mdash; use any HTML and CSS to style inputs (try <span class="self" data-to="skins">6 Retina-ready skins</span>)
- </li>
- <li>
- <strong>jQuery and Zepto</strong> JavaScript libraries support from single file
- </li>
- <li>
- <strong>Lightweight size</strong> &mdash; 1 kb gzipped
- </li>
- <li class="offset">
- <strong class="self" data-to="options">32 options</strong> to customize checkboxes and radio buttons
- </li>
- <li>
- <strong class="self" data-to="callbacks">11 callbacks</strong> to handle changes
- </li>
- <li>
- <strong class="self" data-to="methods">9 methods</strong> to make changes programmatically
- </li>
- <li>
- Saves changes to original inputs, <span class="self" data-to="init">works carefully</span> with any selectors
- </li>
- </ul>
- </div>
- <div class="social clear">
- <ul class="left">
- <li>
- <a href="http://github.com/fronteed/iCheck/">Download latest version</a>
- </li>
- </ul>
- <ul class="right local">
- <li>
- <a href="http://twitter.com/fronteed/">Follow @fronteed</a>
- </li>
- <li>
- <a href="https://twitter.com/intent/tweet?text=Highly customizable checkboxes and radio buttons&amp;url=http://fronteed.com/iCheck/&amp;via=fronteed&amp;hashtags=jQuery,Zepto">Share on Twitter</a>
- </li>
- <li>
- <a href="https://github.com/fronteed/iCheck">Star on GitHub</a>
- </li>
- </ul>
- </div>
- <div class="demo-holder">
- <h2 class="demo-title">Demo</h2>
- <div class="demo">
- <div class="arrows">
- <div class="top" data-to="features"></div>
- <div class="bottom" data-to="skins"></div>
- </div>
- <div class="demo-list clear">
- <ul>
- <li>
- <input tabindex="1" type="checkbox" id="input-1">
- <label for="input-1">Checkbox, <span>#input-1</span></label>
- </li>
- <li>
- <input tabindex="2" type="checkbox" id="input-2" checked>
- <label for="input-2">Checkbox, <span>#input-2</span></label>
- </li>
- </ul>
- <ul>
- <li>
- <input tabindex="3" type="radio" id="input-3" name="demo-radio">
- <label for="input-3">Radio button, <span>#input-3</span></label>
- </li>
- <li>
- <input tabindex="4" type="radio" id="input-4" name="demo-radio" checked>
- <label for="input-4">Radio button, <span>#input-4</span></label>
- </li>
- </ul>
- <script>
- $(document).ready(function(){
- var callbacks_list = $('.demo-callbacks ul');
- $('.demo-list input').on('ifCreated ifClicked ifChanged ifChecked ifUnchecked ifDisabled ifEnabled ifDestroyed', function(event){
- callbacks_list.prepend('<li><span>#' + this.id + '</span> is ' + event.type.replace('if', '').toLowerCase() + '</li>');
- }).iCheck({
- checkboxClass: 'icheckbox_square-blue',
- radioClass: 'iradio_square-blue',
- increaseArea: '20%'
- });
- });
- </script>
- </div>
- <dl class="demo-methods">
- <dt>
- <span class="self do-check">Add <span class="mark">checked</span> state to 1 and 3 inputs</span>
- <span class="code">
- <span class="self">show code</span>
- </span>
- </dt>
- <dd>
-<pre class="markup">
-$('#input-1, #input-3').iCheck('check');
-</pre>
- </dd>
- <dt>
- <span class="self do-uncheck">Remove <span class="mark">checked</span> state from 1 and 3 inputs</span>
- <span class="code">
- <span class="self">show code</span>
- </span>
- </dt>
- <dd>
-<pre class="markup">
-$('#input-1, #input-3').iCheck('uncheck');
-</pre>
- </dd>
- <dt>
- <span class="self do-disable">Add <span class="mark">disabled</span> state to 2 and 4 inputs</span>
- <span class="code">
- <span class="self">show code</span>
- </span>
- </dt>
- <dd>
-<pre class="markup">
-$('#input-2, #input-4').iCheck('disable');
-</pre>
- </dd>
- <dt>
- <span class="self do-enable">Remove <span class="mark">disabled</span> state from 2 and 4 inputs</span>
- <span class="code">
- <span class="self">show code</span>
- </span>
- </dt>
- <dd>
-<pre class="markup">
-$('#input-2, #input-4').iCheck('enable');
-</pre>
- </dd>
- <dt>
- <span class="self do-destroy">Remove all traces of iCheck</span>
- <span class="code">
- <span class="self">show code</span>
- </span>
- </dt>
- <dd>
-<pre class="markup">
-$('input').iCheck('destroy');
-</pre>
- </dd>
- </dl>
- <div class="demo-callbacks">
- <h2>Callbacks</h2>
- <ul></ul>
- </div>
- </div>
- </div>
- <div class="skins">
- <h2>Skins</h2>
- <div class="skin skin-minimal">
- <div class="arrows">
- <div class="top" data-to="demo"></div>
- <div class="bottom" data-to="skin-square"></div>
- </div>
- <h3>Minimal skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="5" type="checkbox" id="minimal-checkbox-1">
- <label for="minimal-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="6" type="checkbox" id="minimal-checkbox-2" checked>
- <label for="minimal-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="minimal-checkbox-disabled" disabled>
- <label for="minimal-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="minimal-checkbox-disabled-checked" checked disabled>
- <label for="minimal-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="7" type="radio" id="minimal-radio-1" name="minimal-radio">
- <label for="minimal-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="8" type="radio" id="minimal-radio-2" name="minimal-radio" checked>
- <label for="minimal-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="minimal-radio-disabled" disabled>
- <label for="minimal-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="minimal-radio-disabled-checked" checked disabled>
- <label for="minimal-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <div class="colors clear">
- <strong>Color schemes</strong>
- <ul>
- <li class="active" title="Black"></li>
- <li class="red" title="Red"></li>
- <li class="green" title="Green"></li>
- <li class="blue" title="Blue"></li>
- <li class="aero" title="Aero"></li>
- <li class="grey" title="Grey"></li>
- <li class="orange" title="Orange"></li>
- <li class="yellow" title="Yellow"></li>
- <li class="pink" title="Pink"></li>
- <li class="purple" title="Purple"></li>
- </ul>
- </div>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_minimal"></div>
- <div class="state iradio_minimal"></div>
- Normal
- </li>
- <li>
- <div class="state icheckbox_minimal hover"></div>
- <div class="state iradio_minimal hover"></div>
- Hover
- </li>
- <li>
- <div class="state icheckbox_minimal checked"></div>
- <div class="state iradio_minimal checked"></div>
- Checked
- </li>
- <li>
- <div class="state icheckbox_minimal disabled"></div>
- <div class="state iradio_minimal disabled"></div>
- Disabled
- </li>
- <li>
- <div class="state icheckbox_minimal checked disabled"></div>
- <div class="state iradio_minimal checked disabled"></div>
- Disabled &amp; checked
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-minimal input').iCheck({
- checkboxClass: 'icheckbox_minimal',
- radioClass: 'iradio_minimal',
- increaseArea: '20%'
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Choose a color scheme, there are 10 different styles available:
- <div class="schemes clear">
- <ul>
- <li><strong>Black</strong> &mdash; minimal.css</li>
- <li><strong>Red</strong> &mdash; red.css</li>
- <li><strong>Green</strong> &mdash; green.css</li>
- <li><strong>Blue</strong> &mdash; blue.css</li>
- <li><strong>Aero</strong> &mdash; aero.css</li>
- </ul>
- <ul>
- <li><strong>Grey</strong> &mdash; grey.css</li>
- <li><strong>Orange</strong> &mdash; orange.css</li>
- <li><strong>Yellow</strong> &mdash; yellow.css</li>
- <li><strong>Pink</strong> &mdash; pink.css</li>
- <li><strong>Purple</strong> &mdash; purple.css</li>
- </ul>
- </div>
- </li>
- <li>
- Copy <span class="mark">/skins/minimal/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/minimal/color-scheme.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- <p>Example for a <strong>Red</strong> color scheme:</p>
-<pre class="markup">
-&lt;link href="your-path/minimal/red.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes and radio buttons to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;input type="checkbox" checked>
-&lt;input type="radio" name="iCheck">
-&lt;input type="radio" name="iCheck" checked>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_minimal',
- radioClass: 'iradio_minimal',
- increaseArea: '20%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- <p>For different from black color schemes use this code (example for <strong>Red</strong>):</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_minimal-red',
- radioClass: 'iradio_minimal-red',
- increaseArea: '20%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skin skin-square">
- <div class="arrows">
- <div class="top" data-to="skin-minimal"></div>
- <div class="bottom" data-to="skin-flat"></div>
- </div>
- <h3>Square skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="9" type="checkbox" id="square-checkbox-1">
- <label for="square-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="10" type="checkbox" id="square-checkbox-2" checked>
- <label for="square-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="square-checkbox-disabled" disabled>
- <label for="square-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="square-checkbox-disabled-checked" checked disabled>
- <label for="square-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="11" type="radio" id="square-radio-1" name="square-radio">
- <label for="square-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="12" type="radio" id="square-radio-2" name="square-radio" checked>
- <label for="square-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="square-radio-disabled" disabled>
- <label for="square-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="square-radio-disabled-checked" checked disabled>
- <label for="square-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <div class="colors clear">
- <strong>Color schemes</strong>
- <ul>
- <li title="Black"></li>
- <li class="red" title="Red"></li>
- <li class="green active" title="Green"></li>
- <li class="blue" title="Blue"></li>
- <li class="aero" title="Aero"></li>
- <li class="grey" title="Grey"></li>
- <li class="orange" title="Orange"></li>
- <li class="yellow" title="Yellow"></li>
- <li class="pink" title="Pink"></li>
- <li class="purple" title="Purple"></li>
- </ul>
- </div>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_square-green"></div>
- <div class="state iradio_square-green"></div>
- Normal
- </li>
- <li>
- <div class="state icheckbox_square-green hover"></div>
- <div class="state iradio_square-green hover"></div>
- Hover
- </li>
- <li>
- <div class="state icheckbox_square-green checked"></div>
- <div class="state iradio_square-green checked"></div>
- Checked
- </li>
- <li>
- <div class="state icheckbox_square-green disabled"></div>
- <div class="state iradio_square-green disabled"></div>
- Disabled
- </li>
- <li>
- <div class="state icheckbox_square-green checked disabled"></div>
- <div class="state iradio_square-green checked disabled"></div>
- Disabled &amp; checked
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-square input').iCheck({
- checkboxClass: 'icheckbox_square-green',
- radioClass: 'iradio_square-green',
- increaseArea: '20%'
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Choose a color scheme, there are 10 different styles available:
- <div class="schemes clear">
- <ul>
- <li><strong>Black</strong> &mdash; square.css</li>
- <li><strong>Red</strong> &mdash; red.css</li>
- <li><strong>Green</strong> &mdash; green.css</li>
- <li><strong>Blue</strong> &mdash; blue.css</li>
- <li><strong>Aero</strong> &mdash; aero.css</li>
- </ul>
- <ul>
- <li><strong>Grey</strong> &mdash; grey.css</li>
- <li><strong>Orange</strong> &mdash; orange.css</li>
- <li><strong>Yellow</strong> &mdash; yellow.css</li>
- <li><strong>Pink</strong> &mdash; pink.css</li>
- <li><strong>Purple</strong> &mdash; purple.css</li>
- </ul>
- </div>
- </li>
- <li>
- Copy <span class="mark">/skins/square/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/square/color-scheme.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- <p>Example for a <strong>Red</strong> color scheme:</p>
-<pre class="markup">
-&lt;link href="your-path/square/red.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes and radio buttons to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;input type="checkbox" checked>
-&lt;input type="radio" name="iCheck">
-&lt;input type="radio" name="iCheck" checked>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_square',
- radioClass: 'iradio_square',
- increaseArea: '20%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- <p>For different from black color schemes use this code (example for <strong>Red</strong>):</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_square-red',
- radioClass: 'iradio_square-red',
- increaseArea: '20%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skin skin-flat">
- <div class="arrows">
- <div class="top" data-to="skin-square"></div>
- <div class="bottom" data-to="skin-line"></div>
- </div>
- <h3>Flat skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="13" type="checkbox" id="flat-checkbox-1">
- <label for="flat-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="14" type="checkbox" id="flat-checkbox-2" checked>
- <label for="flat-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="flat-checkbox-disabled" disabled>
- <label for="flat-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="flat-checkbox-disabled-checked" checked disabled>
- <label for="flat-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="15" type="radio" id="flat-radio-1" name="flat-radio">
- <label for="flat-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="16" type="radio" id="flat-radio-2" name="flat-radio" checked>
- <label for="flat-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="flat-radio-disabled" disabled>
- <label for="flat-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="flat-radio-disabled-checked" checked disabled>
- <label for="flat-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <div class="colors clear">
- <strong>Color schemes</strong>
- <ul>
- <li title="Black"></li>
- <li class="red active" title="Red"></li>
- <li class="green" title="Green"></li>
- <li class="blue" title="Blue"></li>
- <li class="aero" title="Aero"></li>
- <li class="grey" title="Grey"></li>
- <li class="orange" title="Orange"></li>
- <li class="yellow" title="Yellow"></li>
- <li class="pink" title="Pink"></li>
- <li class="purple" title="Purple"></li>
- </ul>
- </div>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_flat-red"></div>
- <div class="state iradio_flat-red"></div>
- Normal
- </li>
- <li>
- <div class="state icheckbox_flat-red checked"></div>
- <div class="state iradio_flat-red checked"></div>
- Checked
- </li>
- <li>
- <div class="state icheckbox_flat-red disabled"></div>
- <div class="state iradio_flat-red disabled"></div>
- Disabled
- </li>
- <li>
- <div class="state icheckbox_flat-red checked disabled"></div>
- <div class="state iradio_flat-red checked disabled"></div>
- Disabled &amp; checked
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-flat input').iCheck({
- checkboxClass: 'icheckbox_flat-red',
- radioClass: 'iradio_flat-red'
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Choose a color scheme, there are 10 different styles available:
- <div class="schemes clear">
- <ul>
- <li><strong>Black</strong> &mdash; flat.css</li>
- <li><strong>Red</strong> &mdash; red.css</li>
- <li><strong>Green</strong> &mdash; green.css</li>
- <li><strong>Blue</strong> &mdash; blue.css</li>
- <li><strong>Aero</strong> &mdash; aero.css</li>
- </ul>
- <ul>
- <li><strong>Grey</strong> &mdash; grey.css</li>
- <li><strong>Orange</strong> &mdash; orange.css</li>
- <li><strong>Yellow</strong> &mdash; yellow.css</li>
- <li><strong>Pink</strong> &mdash; pink.css</li>
- <li><strong>Purple</strong> &mdash; purple.css</li>
- </ul>
- </div>
- </li>
- <li>
- Copy <span class="mark">/skins/flat/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/flat/color-scheme.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- <p>Example for a <strong>Red</strong> color scheme:</p>
-<pre class="markup">
-&lt;link href="your-path/flat/red.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes and radio buttons to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;input type="checkbox" checked>
-&lt;input type="radio" name="iCheck">
-&lt;input type="radio" name="iCheck" checked>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_flat',
- radioClass: 'iradio_flat'
- });
-});
-&lt;/script>
-</pre>
- <p>For different from black color schemes use this code (example for <strong>Red</strong>):</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_flat-red',
- radioClass: 'iradio_flat-red'
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skin skin-line">
- <div class="arrows">
- <div class="top" data-to="skin-flat"></div>
- <div class="bottom" data-to="skin-polaris"></div>
- </div>
- <h3>Line skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="17" type="checkbox" id="line-checkbox-1">
- <label for="line-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="18" type="checkbox" id="line-checkbox-2" checked>
- <label for="line-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="line-checkbox-disabled" disabled>
- <label for="line-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="line-checkbox-disabled-checked" checked disabled>
- <label for="line-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="19" type="radio" id="line-radio-1" name="line-radio">
- <label for="line-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="20" type="radio" id="line-radio-2" name="line-radio" checked>
- <label for="line-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="line-radio-disabled" disabled>
- <label for="line-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="line-radio-disabled-checked" checked disabled>
- <label for="line-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <div class="colors clear">
- <strong>Color schemes</strong>
- <ul>
- <li title="Black"></li>
- <li class="red" title="Red"></li>
- <li class="green" title="Green"></li>
- <li class="blue active" title="Blue"></li>
- <li class="aero" title="Aero"></li>
- <li class="grey" title="Grey"></li>
- <li class="orange" title="Orange"></li>
- <li class="yellow" title="Yellow"></li>
- <li class="pink" title="Pink"></li>
- <li class="purple" title="Purple"></li>
- </ul>
- </div>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_line-blue">
- <div class="icheck_line-icon"></div>
- Normal
- </div>
- </li>
- <li>
- <div class="state icheckbox_line-blue hover">
- <div class="icheck_line-icon"></div>
- Hover
- </div>
- </li>
- <li>
- <div class="state icheckbox_line-blue checked">
- <div class="icheck_line-icon"></div>
- Checked
- </div>
- </li>
- <li>
- <div class="state icheckbox_line-blue disabled">
- <div class="icheck_line-icon"></div>
- Disabled
- </div>
- </li>
- <li>
- <div class="state icheckbox_line-blue checked disabled">
- <div class="icheck_line-icon"></div>
- Disabled &amp; checked
- </div>
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-line input').each(function(){
- var self = $(this),
- label = self.next(),
- label_text = label.text();
-
- label.remove();
- self.iCheck({
- checkboxClass: 'icheckbox_line-blue',
- radioClass: 'iradio_line-blue',
- insert: '<div class="icheck_line-icon"></div>' + label_text
- });
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Choose a color scheme, there are 10 different styles available:
- <div class="schemes clear">
- <ul>
- <li><strong>Black</strong> &mdash; line.css</li>
- <li><strong>Red</strong> &mdash; red.css</li>
- <li><strong>Green</strong> &mdash; green.css</li>
- <li><strong>Blue</strong> &mdash; blue.css</li>
- <li><strong>Aero</strong> &mdash; aero.css</li>
- </ul>
- <ul>
- <li><strong>Grey</strong> &mdash; grey.css</li>
- <li><strong>Orange</strong> &mdash; orange.css</li>
- <li><strong>Yellow</strong> &mdash; yellow.css</li>
- <li><strong>Pink</strong> &mdash; pink.css</li>
- <li><strong>Purple</strong> &mdash; purple.css</li>
- </ul>
- </div>
- </li>
- <li>
- Copy <span class="mark">/skins/line/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/line/color-scheme.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- <p>Example for a <strong>Red</strong> color scheme:</p>
-<pre class="markup">
-&lt;link href="your-path/line/red.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes, radio buttons and labels to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;label>Checkbox 1&lt;/label>
-
-&lt;input type="checkbox" checked>
-&lt;label>Checkbox 2&lt;/label>
-
-&lt;input type="radio" name="iCheck">
-&lt;label>Radio button 1&lt;/label>
-
-&lt;input type="radio" name="iCheck" checked>
-&lt;label>Radio button 2&lt;/label>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').each(function(){
- var self = $(this),
- label = self.next(),
- label_text = label.text();
-
- label.remove();
- self.iCheck({
- checkboxClass: 'icheckbox_line',
- radioClass: 'iradio_line',
- insert: '&lt;div class="icheck_line-icon">&lt;/div>' + label_text
- });
- });
-});
-&lt;/script>
-</pre>
- <p>For different from black color schemes use this code (example for <strong>Red</strong>):</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').each(function(){
- var self = $(this),
- label = self.next(),
- label_text = label.text();
-
- label.remove();
- self.iCheck({
- checkboxClass: 'icheckbox_line-red',
- radioClass: 'iradio_line-red',
- insert: '&lt;div class="icheck_line-icon">&lt;/div>' + label_text
- });
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skin skin-polaris">
- <div class="arrows">
- <div class="top" data-to="skin-line"></div>
- <div class="bottom" data-to="skin-futurico"></div>
- </div>
- <h3>Polaris skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="21" type="checkbox" id="polaris-checkbox-1">
- <label for="polaris-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="22" type="checkbox" id="polaris-checkbox-2" checked>
- <label for="polaris-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="polaris-checkbox-disabled" disabled>
- <label for="polaris-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="polaris-checkbox-disabled-checked" checked disabled>
- <label for="polaris-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="23" type="radio" id="polaris-radio-1" name="polaris-radio">
- <label for="polaris-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="24" type="radio" id="polaris-radio-2" name="polaris-radio" checked>
- <label for="polaris-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="polaris-radio-disabled" disabled>
- <label for="polaris-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="polaris-radio-disabled-checked" checked disabled>
- <label for="polaris-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_polaris"></div>
- <div class="state iradio_polaris"></div>
- Normal
- </li>
- <li>
- <div class="state icheckbox_polaris hover"></div>
- <div class="state iradio_polaris hover"></div>
- Hover
- </li>
- <li>
- <div class="state icheckbox_polaris checked"></div>
- <div class="state iradio_polaris checked"></div>
- Checked
- </li>
- <li>
- <div class="state icheckbox_polaris disabled"></div>
- <div class="state iradio_polaris disabled"></div>
- Disabled
- </li>
- <li>
- <div class="state icheckbox_polaris checked disabled"></div>
- <div class="state iradio_polaris checked disabled"></div>
- Disabled &amp; checked
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-polaris input').iCheck({
- checkboxClass: 'icheckbox_polaris',
- radioClass: 'iradio_polaris',
- increaseArea: '-10%'
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Copy <span class="mark">/skins/polaris/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/polaris/polaris.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes and radio buttons to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;input type="checkbox" checked>
-&lt;input type="radio" name="iCheck">
-&lt;input type="radio" name="iCheck" checked>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_polaris',
- radioClass: 'iradio_polaris',
- increaseArea: '-10%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skin skin-futurico">
- <div class="arrows">
- <div class="top" data-to="skin-polaris"></div>
- <div class="bottom" data-to="usage"></div>
- </div>
- <h3>Futurico skin</h3>
- <dl class="clear">
- <dd class="selected">
- <div class="skin-section">
- <h4>Live</h4>
- <ul class="list">
- <li>
- <input tabindex="25" type="checkbox" id="futurico-checkbox-1">
- <label for="futurico-checkbox-1">Checkbox 1</label>
- </li>
- <li>
- <input tabindex="26" type="checkbox" id="futurico-checkbox-2" checked>
- <label for="futurico-checkbox-2">Checkbox 2</label>
- </li>
- <li>
- <input type="checkbox" id="futurico-checkbox-disabled" disabled>
- <label for="futurico-checkbox-disabled">Disabled</label>
- </li>
- <li>
- <input type="checkbox" id="futurico-checkbox-disabled-checked" checked disabled>
- <label for="futurico-checkbox-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- <ul class="list">
- <li>
- <input tabindex="27" type="radio" id="futurico-radio-1" name="futurico-radio">
- <label for="futurico-radio-1">Radio button 1</label>
- </li>
- <li>
- <input tabindex="28" type="radio" id="futurico-radio-2" name="futurico-radio" checked>
- <label for="futurico-radio-2">Radio button 2</label>
- </li>
- <li>
- <input type="radio" id="futurico-radio-disabled" disabled>
- <label for="futurico-radio-disabled">Disabled</label>
- </li>
- <li>
- <input type="radio" id="futurico-radio-disabled-checked" checked disabled>
- <label for="futurico-radio-disabled-checked">Disabled &amp; checked</label>
- </li>
- </ul>
- </div>
- <div class="skin-section skin-states">
- <h4>States</h4>
- <ul class="list">
- <li>
- <div class="state icheckbox_futurico"></div>
- <div class="state iradio_futurico"></div>
- Normal
- </li>
- <li>
- <div class="state icheckbox_futurico checked"></div>
- <div class="state iradio_futurico checked"></div>
- Checked
- </li>
- <li>
- <div class="state icheckbox_futurico disabled"></div>
- <div class="state iradio_futurico disabled"></div>
- Disabled
- </li>
- <li>
- <div class="state icheckbox_futurico checked disabled"></div>
- <div class="state iradio_futurico checked disabled"></div>
- Disabled &amp; checked
- </li>
- </ul>
- </div>
- <script>
- $(document).ready(function(){
- $('.skin-futurico input').iCheck({
- checkboxClass: 'icheckbox_futurico',
- radioClass: 'iradio_futurico',
- increaseArea: '20%'
- });
- });
- </script>
- </dd>
- <dt class="selected">Demo</dt>
- <dd>
- <div class="skin-pre">
- <p>
- Make sure <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]) is loaded before the <span class="mark">icheck.js</span>.
- </p>
- </div>
- <ol class="skin-usage">
- <li>
- Copy <span class="mark">/skins/futurico/</span> folder and <span class="mark">icheck.js</span> file to your site.
- </li>
- <li>
- <p>Insert before <span class="mark">&lt;/head></span> in your HTML (replace <span class="mark">your-path</span> and <span class="mark">color-scheme</span>):</p>
-<pre class="markup">
-&lt;link href="your-path/futurico/futurico.css" rel="stylesheet">
-&lt;script src="your-path/icheck.js">&lt;/script>
-</pre>
- </li>
- <li>
- <p>Add some checkboxes and radio buttons to your HTML:</p>
-<pre class="markup">
-&lt;input type="checkbox">
-&lt;input type="checkbox" checked>
-&lt;input type="radio" name="iCheck">
-&lt;input type="radio" name="iCheck" checked>
-</pre>
- </li>
- <li>
- <p>Add JavaScript to your HTML to launch iCheck plugin:</p>
-<pre class="markup">
-&lt;script>
-$(document).ready(function(){
- $('input').iCheck({
- checkboxClass: 'icheckbox_futurico',
- radioClass: 'iradio_futurico',
- increaseArea: '20%' <span class="comment">// optional</span>
- });
-});
-&lt;/script>
-</pre>
- </li>
- <li>Done.</li>
- </ol>
- </dd>
- <dt>Usage</dt>
- </dl>
- </div>
- <div class="skins-info">
- <p>All skins (except Line) are transparent, you may use them on any background.</p>
- <p><a href="http://designmodo.com/square/?u=718" target="blank">Square</a>, <a href="http://designmodo.com/flat/?u=718" target="blank">Flat</a>, <a href="http://designmodo.com/?u=718" target="blank">Polaris</a> and <a href="http://designmodo.com/futuricopro/?u=718" target="blank">Futurico</a> skins are based on <a href="http://designmodo.com/shop/?u=718" target="blank">Designmodo's UI packs</a>.</p>
- <p class="skins-banner">
- <a href="http://designmodo.com/shop/?u=718" target="blank">Awesome UI packs</a>
- </p>
- </div>
- </div>
- <div class="usage">
- <div class="arrows">
- <div class="top" data-to="skin-futurico"></div>
- <div class="bottom" data-to="comparison"></div>
- </div>
- <h2>Simple usage</h2>
- <div class="usage-inner">
- <p>
- iCheck plugin works with checkboxes and radio buttons like a constructor.
- <br><strong>It wraps each input with a div</strong>, which may be customized by you or using one of the <span class="self" data-to="skins">available skins</span>.
- <br>You may also place inside that div some HTML code or text using <span class="mark">insert</span> option.
- </p>
- <p class="offset">For this HTML:</p>
-<pre class="markup">
-&lt;label>
- &lt;input type="checkbox" name="quux[1]" disabled>
- Foo
-&lt;/label>
-
-&lt;label for="baz[1]">Bar&lt;/label>
-&lt;input type="radio" name="quux[2]" id="baz[1]" checked>
-
-&lt;label for="baz[2]">Bar&lt;/label>
-&lt;input type="radio" name="quux[2]" id="baz[2]">
-</pre>
- <p class="offset">With default options you'll get nearly this:</p>
-<pre class="markup">
-&lt;label>
- &lt;div class="icheckbox disabled">
- &lt;input type="checkbox" name="quux[1]" disabled>
- &lt;/div>
- Foo
-&lt;/label>
-
-&lt;label for="baz[1]">Bar&lt;/label>
-&lt;div class="iradio checked">
- &lt;input type="radio" name="quux[2]" id="baz[1]" checked>
-&lt;/div>
-
-&lt;label for="baz[2]">Bar&lt;/label>
-&lt;div class="iradio">
- &lt;input type="radio" name="quux[2]" id="baz[2]">
-&lt;/div>
-</pre>
- <p><strong>By default, iCheck doesn't provide any CSS styles for wrapper divs</strong> (if you don't use <span class="self" data-to="skins">skins</span>).</p>
- <h4 class="options">Options</h4>
- <p>These options are default:</p>
-<pre class="markup">
-{
- <span class="comment">// 'checkbox' or 'radio' to style only checkboxes or radio buttons, both by default</span>
- handle: '',
-
- <span class="comment">// base class added to customized checkboxes</span>
- checkboxClass: 'icheckbox',
-
- <span class="comment">// base class added to customized radio buttons</span>
- radioClass: 'iradio',
-
- <span class="comment">// class added on checked state (input.checked = true)</span>
- checkedClass: 'checked',
-
- <span class="comment">// if not empty, used instead of 'checkedClass' option (input type specific)</span>
- checkedCheckboxClass: '',
- checkedRadioClass: '',
-
- <span class="comment">// if not empty, added as class name on unchecked state (input.checked = false)</span>
- uncheckedClass: '',
-
- <span class="comment">// if not empty, used instead of 'uncheckedClass' option (input type specific)</span>
- uncheckedCheckboxClass: '',
- uncheckedRadioClass: '',
-
- <span class="comment">// class added on disabled state (input.disabled = true)</span>
- disabledClass: 'disabled',
-
- <span class="comment">// if not empty, used instead of 'disabledClass' option (input type specific)</span>
- disabledCheckboxClass: '',
- disabledRadioClass: '',
-
- <span class="comment">// if not empty, added as class name on enabled state (input.disabled = false)</span>
- enabledClass: '',
-
- <span class="comment">// if not empty, used instead of 'enabledClass' option (input type specific)</span>
- enabledCheckboxClass: '',
- enabledRadioClass: '',
-
- <span class="comment">// class added on <span class="self" data-to="indeterminate">indeterminate state</span> (input.indeterminate = true)</span>
- indeterminateClass: 'indeterminate',
-
- <span class="comment">// if not empty, used instead of 'indeterminateClass' option (input type specific)</span>
- indeterminateCheckboxClass: '',
- indeterminateRadioClass: '',
-
- <span class="comment">// if not empty, added as class name on determinate state (input.indeterminate = false)</span>
- determinateClass: '',
-
- <span class="comment">// if not empty, used instead of 'determinateClass' option (input type specific)</span>
- determinateCheckboxClass: '',
- determinateRadioClass: '',
-
- <span class="comment">// class added on hover state (pointer is moved onto input)</span>
- hoverClass: 'hover',
-
- <span class="comment">// class added on focus state (input has gained focus)</span>
- focusClass: 'focus',
-
- <span class="comment">// class added on active state (mouse button is pressed on input)</span>
- activeClass: 'active',
-
- <span class="comment">// adds hoverClass to customized input on label hover and labelHoverClass to label on input hover</span>
- labelHover: true,
-
- <span class="comment">// class added to label if labelHover set to true</span>
- labelHoverClass: 'hover',
-
- <span class="comment">// increase clickable area by given % (negative number to decrease)</span>
- increaseArea: '',
-
- <span class="comment">// true to set 'pointer' CSS cursor over enabled inputs and 'default' over disabled</span>
- cursor: false,
-
- <span class="comment">// set true to inherit original input's class name</span>
- inheritClass: false,
-
- <span class="comment">// if set to true, input's id is prefixed with 'iCheck-' and attached</span>
- inheritID: false,
-
- <span class="comment">// set true to activate ARIA support</span>
- aria: false,
-
- <span class="comment">// add HTML code or text inside customized input</span>
- insert: ''
-}
-</pre>
- <p>There's no need to copy and paste all of them, you can just mention the ones you need:</p>
-<pre class="markup">
-$('input').iCheck({
- labelHover: false,
- cursor: true
-});
-</pre>
- <p>You can choose any class names and slyle them as you want.</p>
- <h4 class="init">Initialize</h4>
- <p>Just include <span class="mark">icheck.js</span> after <a href="http://jquery.com" target="blank">jQuery v1.7+</a> (or <a href="http://github.com/madrobby/zepto#zepto-modules" target="blank">Zepto</a> [polyfill, event, data]).</p>
- <p>iCheck supports any selectors, but handles only checkboxes and radio buttons:</p>
-<pre class="markup">
-<span class="comment">// customize all inputs (will search for checkboxes and radio buttons)</span>
-$('input').iCheck();
-
-<span class="comment">// handle inputs only inside $('.block')</span>
-$('.block input').iCheck();
-
-<span class="comment">// handle only checkboxes inside $('.test')</span>
-$('.test input').iCheck({
- handle: 'checkbox'
-});
-
-<span class="comment">// handle .vote class elements (will search inside the element, if it's not an input)</span>
-$('.vote').iCheck();
-
-<span class="comment">// you can also change options after inputs are customized</span>
-$('input.some').iCheck({
- <span class="comment">// different options</span>
-});
-</pre>
- <h4 class="indeterminate">Indeterminate</h4>
- <p>HTML5 allows specifying <a href="http://css-tricks.com/indeterminate-checkboxes/" target="blank">indeterminate</a> ("partially" checked) state for checkboxes. iCheck supports it for both checkboxes and radio buttons.</p>
- <p>You can make an input indeterminate through HTML using additional attributes (supported by iCheck). Both do the same job, but <span class="mark">indeterminate="true"</span> may not work in some browsers (like IE7):</p>
-<pre class="markup">
-<span class="comment">&lt;!-- indeterminate="true" --></span>
-&lt;input type="checkbox" indeterminate="true">
-&lt;input type="radio" indeterminate="true">
-
-<span class="comment">&lt;!-- determinate="false" --></span>
-&lt;input type="checkbox" determinate="false">
-&lt;input type="radio" determinate="false">
-</pre>
- <p><span class="mark">indeterminate</span> and <span class="mark">determinate</span> <span class="self" data-to="methods">methods</span> can be used to toggle indeterminate state.</p>
- <h4 class="callbacks">Callbacks</h4>
- <p class="callbacks-info">iCheck provides plenty callbacks, which may be used to handle changes.</p>
- <table>
- <thead>
- <tr>
- <th>Callback name</th>
- <td>When used</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>ifClicked</th>
- <td>user clicked on a customized input or an assigned label</td>
- </tr>
- <tr>
- <th>ifChanged</th>
- <td>input's <span class="mark">checked</span>, <span class="mark">disabled</span> or <span class="mark">indeterminate</span> state is changed</td>
- </tr>
- <tr>
- <th>ifChecked</th>
- <td>input's state is changed to <span class="mark">checked</span></td>
- </tr>
- <tr>
- <th>ifUnchecked</th>
- <td><span class="mark">checked</span> state is removed</td>
- </tr>
- <tr>
- <th>ifToggled</th>
- <td>input's <span class="mark">checked</span> state is changed</td>
- </tr>
- <tr>
- <th>ifDisabled</th>
- <td>input's state is changed to <span class="mark">disabled</span></td>
- </tr>
- <tr>
- <th>ifEnabled</th>
- <td><span class="mark">disabled</span> state is removed</td>
- </tr>
- <tr>
- <th>ifIndeterminate</th>
- <td>input's state is changed to <span class="mark">indeterminate</span></td>
- </tr>
- <tr>
- <th>ifDeterminate</th>
- <td><span class="mark">indeterminate</span> state is removed</td>
- </tr>
- <tr>
- <th>ifCreated</th>
- <td>input is just customized</td>
- </tr>
- <tr>
- <th>ifDestroyed</th>
- <td>customization is just removed</td>
- </tr>
- </tbody>
- </table>
- <p>Use <span class="mark">on()</span> method to bind them to inputs:<p>
-<pre class="markup">
-$('input').on('ifChecked', function(event){
- alert(event.type + ' callback');
-});
-</pre>
- <p><span class="mark">ifCreated</span> callback should be binded before plugin init.</p>
- <h4 class="methods">Methods</h4>
- <p class="methods-info">These methods can be used to make changes programmatically (any selectors can be used):</p>
- <p><span class="mark">$('input').iCheck('check');</span> &mdash; change input's state to <span class="mark">checked</span></p>
- <p><span class="mark">$('input').iCheck('uncheck');</span> &mdash; remove <span class="mark">checked</span> state</p>
- <p><span class="mark">$('input').iCheck('toggle');</span> &mdash; toggle <span class="mark">checked</span> state</p>
- <p><span class="mark">$('input').iCheck('disable');</span> &mdash; change input's state to <span class="mark">disabled</span></p>
- <p><span class="mark">$('input').iCheck('enable');</span> &mdash; remove <span class="mark">disabled</span> state</p>
- <p><span class="mark">$('input').iCheck('indeterminate');</span> &mdash; change input's state to <span class="mark">indeterminate</span></p>
- <p><span class="mark">$('input').iCheck('determinate');</span> &mdash; remove <span class="mark">indeterminate</span> state</p>
- <p><span class="mark">$('input').iCheck('update');</span> &mdash; apply input changes, which were done outside the plugin</p>
- <p><span class="mark">$('input').iCheck('destroy');</span> &mdash; remove all traces of iCheck</p>
- <p class="methods-callback">You may also specify some function, that will be executed on each method call:</p>
-<pre class="markup">
-$('input').iCheck('check', function(){
- alert('Well done, Sir');
-});
-</pre>
- <p class="issue-tracker">Feel free to <a href="http://github.com/fronteed/iCheck/">fork and submit pull-request</a> or <a href="http://github.com/fronteed/iCheck/issues">submit an issue</a> if you find something not working.</p>
- </div>
- </div>
- <div class="benefits comparison">
- <div class="arrows">
- <div class="top" data-to="usage"></div>
- <div class="bottom" data-to="download"></div>
- </div>
- <h2>Comparison</h2>
- <div class="benefits-inner">
- <p>iCheck is created to avoid routine of reinventing the wheel when working with checkboxes and radio buttons. It provides an expected identical result for the huge number of browsers, devices and their versions. Callbacks and methods can be used to easily handle and make changes at customized inputs.</p>
- <p>There are some CSS3 ways available to style checkboxes and radio buttons, like <a href="http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-easy-css3-checkboxes-and-radio-buttons/" target="blank">this one</a>. You have to know about some of the disadvantages of similar methods:</p>
- <ul>
- <li>
- &mdash; inputs are keyboard inaccessible, since <span class="mark">display: none</span> or <span class="mark">visibility: hidden</span> used to hide them
- </li>
- <li>
- &mdash; poor browser support
- </li>
- <li>
- &mdash; multiple bugs on mobile devices
- </li>
- <li>
- &mdash; tricky, harder to maintain CSS code
- </li>
- <li>
- &mdash; JavaScript is still needed to fix specific issues
- </li>
- </ul>
- <p>While CSS3 method is quite limited solution, iCheck is made to be an everyday replacement covering most of the tasks.</p>
- </div>
- </div>
- <div class="browsers">
- <h2>Browser support</h2>
- <div class="browsers-inner">
- <p>iCheck is verified to work in Internet Explorer 6+, Firefox 2+, Opera 9+, Google Chrome and Safari browsers. Should also work in many others.</p>
- <p>Mobile browsers (like Opera mini, Chrome mobile, Safari mobile, Android browser, Silk and others) are also supported. Tested on iOS (iPad, iPhone, iPod), Android, BlackBerry and Windows Phone devices.</p>
- </div>
- </div>
- <div class="download">
- <a href="http://github.com/fronteed/iCheck/">Download plugin</a>
- </div>
- <div class="license">iCheck plugin is released under the <a href="http://en.wikipedia.org/wiki/MIT_License" target="blank">MIT License</a>. Feel free to use it in personal and commercial projects.</div>
- </div>
- <div class="footer">
- <div class="footer-inner clear">
- <ul class="local">
- <li>
- <a href="https://github.com/fronteed/iCheck">Star on Github</a>
- </li>
- <li>
- <a href="https://twitter.com/intent/tweet?text=Highly customizable checkboxes and radio buttons&amp;url=http://fronteed.com/iCheck/&amp;via=fronteed&amp;hashtags=jQuery,Zepto">Share on Twitter</a>
- </li>
- <li>
- <a href="http://twitter.com/fronteed/">Follow @fronteed</a>
- </li>
- </ul>
- <div class="code">
- Created by <a href="http://fronteed.com/">Damir Sultanov</a>
- </div>
- </div>
- </div>
- <a href="http://github.com/fronteed/iCheck/" class="fork-me">Fork me on GitHub</a>
-</body>
-</html>
-
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/js/custom.js b/common/src/main/webapp/thirdparty/icheck/demo/js/custom.js
deleted file mode 100644
index eace30e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/js/custom.js
+++ /dev/null
@@ -1,109 +0,0 @@
-$(document).ready(function() {
- var hash = window.location.hash.replace('#', '');
-
- if (hash && $('.' + hash).length) {
- var point = $('.' + hash).offset().top - 40;
-
- if (window.Zepto) {
- window.scrollTo(0, point);
- } else {
- $(window).scrollTop($('.' + hash).offset().top - 40);
- };
- };
-
- $('.skin dt').click(function() {
- $(this).siblings().removeClass('selected').end().prev('dd').andSelf().addClass('selected');
- });
-
- $('.arrows .top, .arrows .bottom, .features .self, .skins-info .self, .usage .self').click(function(event) {
- var target = $(this).data('to'),
- target_offset = $('.' + target).offset().top;
-
- event.preventDefault();
- window.location.hash = target;
-
- if (window.Zepto) {
- window.scrollTo(0, target_offset - 40);
- } else {
- $('html, body').stop().animate({scrollTop: target_offset - 40}, 600);
- };
- });
-
- $('.colors li').click(function() {
- var self = $(this);
-
- if (!self.hasClass('active')) {
- self.siblings().removeClass('active');
-
- var skin = self.closest('.skin'),
- color = self.attr('class') ? '-' + self.attr('class') : '',
- checkbox = skin.data('icheckbox'),
- radio = skin.data('iradio'),
- checkbox_default = 'icheckbox_minimal',
- radio_default = 'iradio_minimal';
-
- if (skin.hasClass('skin-square')) {
- checkbox_default = 'icheckbox_square', radio_default = 'iradio_square';
- checkbox == undefined && (checkbox = 'icheckbox_square-green', radio = 'iradio_square-green');
- };
-
- if (skin.hasClass('skin-flat')) {
- checkbox_default = 'icheckbox_flat', radio_default = 'iradio_flat';
- checkbox == undefined && (checkbox = 'icheckbox_flat-red', radio = 'iradio_flat-red');
- };
-
- if (skin.hasClass('skin-line')) {
- checkbox_default = 'icheckbox_line', radio_default = 'iradio_line';
- checkbox == undefined && (checkbox = 'icheckbox_line-blue', radio = 'iradio_line-blue');
- };
-
- checkbox == undefined && (checkbox = checkbox_default, radio = radio_default);
-
- skin.find('input, .skin-states .state').each(function() {
- var element = $(this).hasClass('state') ? $(this) : $(this).parent(),
- element_class = element.attr('class').replace(checkbox, checkbox_default + color).replace(radio, radio_default + color);
-
- element.attr('class', element_class);
- });
-
- skin.data('icheckbox', checkbox_default + color);
- skin.data('iradio', radio_default + color);
- self.addClass('active');
- };
- });
-
- $('.demo-methods dt .self').click(function() {
- var self = $(this),
- self_class = self.attr('class').replace('self ', '');
-
- switch (self_class) {
- case 'do-check':
- $('#input-1, #input-3').iCheck('check');
- break;
- case 'do-uncheck':
- $('#input-1, #input-3').iCheck('uncheck');
- break;
- case 'do-disable':
- $('#input-2, #input-4').iCheck('disable');
- break;
- case 'do-enable':
- $('#input-2, #input-4').iCheck('enable');
- break;
- case 'do-destroy':
- $('.demo-list input').iCheck('destroy');
- break;
- default:
- var text = self.hasClass('active') ? 'show code' : 'hide code';
-
- self.toggleClass('active').text(text);
-
- if (window.Zepto) {
- $(this).closest('dt').next().toggle();
- } else {
- $(this).closest('dt').next().slideToggle(200);
- };
-
- break;
- };
- });
-}); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/js/custom.min.js b/common/src/main/webapp/thirdparty/icheck/demo/js/custom.min.js
deleted file mode 100644
index cd9ab21..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/js/custom.min.js
+++ /dev/null
@@ -1,5 +0,0 @@
-$(document).ready(function(){var h=window.location.hash.replace("#","");if(h&&$("."+h).length){var k=$("."+h).offset().top-40;window.Zepto?window.scrollTo(0,k):$(window).scrollTop($("."+h).offset().top-40)}$(".skin dt").click(function(){$(this).siblings().removeClass("selected").end().prev("dd").andSelf().addClass("selected")});$(".arrows .top, .arrows .bottom, .features .self, .skins-info .self, .usage .self").click(function(b){var a=$(this).data("to"),d=$("."+a).offset().top;b.preventDefault();
-window.location.hash=a;window.Zepto?window.scrollTo(0,d-40):$("html, body").stop().animate({scrollTop:d-40},600)});$(".colors li").click(function(){var b=$(this);if(!b.hasClass("active")){b.siblings().removeClass("active");var a=b.closest(".skin"),d=b.attr("class")?"-"+b.attr("class"):"",c=a.data("icheckbox"),g=a.data("iradio"),e="icheckbox_minimal",f="iradio_minimal";a.hasClass("skin-square")&&(e="icheckbox_square",f="iradio_square",void 0==c&&(c="icheckbox_square-green",g="iradio_square-green"));
-a.hasClass("skin-flat")&&(e="icheckbox_flat",f="iradio_flat",void 0==c&&(c="icheckbox_flat-red",g="iradio_flat-red"));a.hasClass("skin-line")&&(e="icheckbox_line",f="iradio_line",void 0==c&&(c="icheckbox_line-blue",g="iradio_line-blue"));void 0==c&&(c=e,g=f);a.find("input, .skin-states .state").each(function(){var a=$(this).hasClass("state")?$(this):$(this).parent(),b=a.attr("class").replace(c,e+d).replace(g,f+d);a.attr("class",b)});a.data("icheckbox",e+d);a.data("iradio",f+d);b.addClass("active")}});
-$(".demo-methods dt .self").click(function(){var b=$(this);switch(b.attr("class").replace("self ","")){case "do-check":$("#input-1, #input-3").iCheck("check");break;case "do-uncheck":$("#input-1, #input-3").iCheck("uncheck");break;case "do-disable":$("#input-2, #input-4").iCheck("disable");break;case "do-enable":$("#input-2, #input-4").iCheck("enable");break;case "do-destroy":$(".demo-list input").iCheck("destroy");break;default:var a=b.hasClass("active")?"show code":"hide code";b.toggleClass("active").text(a);
-window.Zepto?$(this).closest("dt").next().toggle():$(this).closest("dt").next().slideToggle(200)}})}); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/js/jquery.js b/common/src/main/webapp/thirdparty/icheck/demo/js/jquery.js
deleted file mode 100644
index 569f77d..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/js/jquery.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/*!
- * jQuery v1.8.3 jquery.com | jquery.org/license
- */
-(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else r=t}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function et(){return!1}function tt(){return!0}function ut(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t))return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return v.grep(e,function(e,r){return e===t===n});if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t))return v.filter(t,r,!n);t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e))return;var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)v.event.add(t,n,u[n][r])}o.data&&(o.data=v.extend({},o.data))}function Ot(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase(),n==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),v.support.html5Clone&&e.innerHTML&&!v.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):n==="input"&&Et.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):n==="option"?t.selected=e.defaultSelected:n==="input"||n==="textarea"?t.defaultValue=e.defaultValue:n==="script"&&t.text!==e.text&&(t.text=e.text),t.removeAttribute(v.expando)}function Mt(e){return typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName("*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll("*"):[]}function _t(e){Et.test(e.type)&&(e.defaultChecked=e.checked)}function Qt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Jt.length;while(i--){t=Jt[i]+n;if(t in e)return t}return r}function Gt(e,t){return e=t||e,v.css(e,"display")==="none"||!v.contains(e.ownerDocument,e)}function Yt(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){n=e[s];if(!n.style)continue;i[s]=v._data(n,"olddisplay"),t?(!i[s]&&n.style.display==="none"&&(n.style.display=""),n.style.display===""&&Gt(n)&&(i[s]=v._data(n,"olddisplay",nn(n.nodeName)))):(r=Dt(n,"display"),!i[s]&&r!=="none"&&v._data(n,"olddisplay",r))}for(s=0;s<o;s++){n=e[s];if(!n.style)continue;if(!t||n.style.display==="none"||n.style.display==="")n.style.display=t?i[s]||"":"none"}return e}function Zt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function en(e,t,n,r){var i=n===(r?"border":"content")?4:t==="width"?1:0,s=0;for(;i<4;i+=2)n==="margin"&&(s+=v.css(e,n+$t[i],!0)),r?(n==="content"&&(s-=parseFloat(Dt(e,"padding"+$t[i]))||0),n!=="margin"&&(s-=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0)):(s+=parseFloat(Dt(e,"padding"+$t[i]))||0,n!=="padding"&&(s+=parseFloat(Dt(e,"border"+$t[i]+"Width"))||0));return s}function tn(e,t,n){var r=t==="width"?e.offsetWidth:e.offsetHeight,i=!0,s=v.support.boxSizing&&v.css(e,"boxSizing")==="border-box";if(r<=0||r==null){r=Dt(e,t);if(r<0||r==null)r=e.style[t];if(Ut.test(r))return r;i=s&&(v.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+en(e,t,n||(s?"border":"content"),i)+"px"}function nn(e){if(Wt[e])return Wt[e];var t=v("<"+e+">").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement)Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write("<!doctype html><html><body>"),Ht.close();t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t))v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&v.type(t)==="object")for(i in t)fn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n))for(;u<a;u++)r=o[u],s=/^\+/.test(r),s&&(r=r.substr(1)||"*"),i=e[r]=e[r]||[],i[s?"unshift":"push"](n)}}function kn(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u,a=e[s],f=0,l=a?a.length:0,c=e===Sn;for(;f<l&&(c||!u);f++)u=a[f](n,r,i),typeof u=="string"&&(!c||o[u]?u=t:(n.dataTypes.unshift(u),u=kn(e,n,r,i,u,o)));return(c||!u)&&!o["*"]&&(u=kn(e,n,r,i,"*",o)),u}function Ln(e,n){var r,i,s=v.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((s[r]?e:i||(i={}))[r]=n[r]);i&&v.extend(!0,e,i)}function An(e,n,r){var i,s,o,u,a=e.contents,f=e.dataTypes,l=e.responseFields;for(s in l)s in r&&(n[l[s]]=r[s]);while(f[0]==="*")f.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){f.unshift(s);break}if(f[0]in r)o=f[0];else{for(s in r){if(!f[0]||e.converters[s+" "+f[0]]){o=s;break}u||(u=s)}o=o||u}if(o)return o!==f[0]&&f.unshift(o),r[o]}function On(e,t){var n,r,i,s,o=e.dataTypes.slice(),u=o[0],a={},f=0;e.dataFilter&&(t=e.dataFilter(t,e.dataType));if(o[1])for(n in e.converters)a[n.toLowerCase()]=e.converters[n];for(;i=o[++f];)if(i!=="*"){if(u!=="*"&&u!==i){n=a[u+" "+i]||a["* "+i];if(!n)for(r in a){s=r.split(" ");if(s[1]===i){n=a[u+" "+s[0]]||a["* "+s[0]];if(n){n===!0?n=a[r]:a[r]!==!0&&(i=s[0],o.splice(f--,0,i));break}}}if(n!==!0)if(n&&e["throws"])t=n(t);else try{t=n(t)}catch(l){return{state:"parsererror",error:n?l:"No conversion from "+u+" to "+i}}}u=i}return{state:"success",data:t}}function Fn(){try{return new e.XMLHttpRequest}catch(t){}}function In(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function $n(){return setTimeout(function(){qn=t},0),qn=v.now()}function Jn(e,t){v.each(t,function(t,n){var r=(Vn[t]||[]).concat(Vn["*"]),i=0,s=r.length;for(;i<s;i++)if(r[i].call(e,t,n))return})}function Kn(e,t,n){var r,i=0,s=0,o=Xn.length,u=v.Deferred().always(function(){delete a.elem}),a=function(){var t=qn||$n(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,i=1-r,s=0,o=f.tweens.length;for(;s<o;s++)f.tweens[s].run(i);return u.notifyWith(e,[f,i,n]),i<1&&o?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:qn||$n(),duration:n.duration,tweens:[],createTween:function(t,n,r){var i=v.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(i),i},stop:function(t){var n=0,r=t?f.tweens.length:0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;Qn(l,f.opts.specialEasing);for(;i<o;i++){r=Xn[i].call(f,e,l,f.opts);if(r)return r}return Jn(f,l),v.isFunction(f.opts.start)&&f.opts.start.call(e,f),v.fx.timer(v.extend(a,{anim:f,queue:f.opts.queue,elem:e})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Qn(e,t){var n,r,i,s,o;for(n in e){r=v.camelCase(n),i=t[r],s=e[n],v.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=v.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function Gn(e,t,n){var r,i,s,o,u,a,f,l,c,h=this,p=e.style,d={},m=[],g=e.nodeType&&Gt(e);n.queue||(l=v._queueHooks(e,"fx"),l.unqueued==null&&(l.unqueued=0,c=l.empty.fire,l.empty.fire=function(){l.unqueued||c()}),l.unqueued++,h.always(function(){h.always(function(){l.unqueued--,v.queue(e,"fx").length||l.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],v.css(e,"display")==="inline"&&v.css(e,"float")==="none"&&(!v.support.inlineBlockNeedsLayout||nn(e.nodeName)==="inline"?p.display="inline-block":p.zoom=1)),n.overflow&&(p.overflow="hidden",v.support.shrinkWrapBlocks||h.done(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t){s=t[r];if(Un.exec(s)){delete t[r],a=a||s==="toggle";if(s===(g?"hide":"show"))continue;m.push(r)}}o=m.length;if(o){u=v._data(e,"fxshow")||v._data(e,"fxshow",{}),"hidden"in u&&(g=u.hidden),a&&(u.hidden=!g),g?v(e).show():h.done(function(){v(e).hide()}),h.done(function(){var t;v.removeData(e,"fxshow",!0);for(t in d)v.style(e,t,d[t])});for(r=0;r<o;r++)i=m[r],f=h.createTween(i,g?u[i]:0),d[i]=u[i]||v.style(e,i),i in u||(u[i]=f.start,g&&(f.end=f.start,f.start=i==="width"||i==="height"?1:0))}}function Yn(e,t,n,r,i){return new Yn.prototype.init(e,t,n,r,i)}function Zn(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=$t[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function tr(e){return v.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n,r,i=e.document,s=e.location,o=e.navigator,u=e.jQuery,a=e.$,f=Array.prototype.push,l=Array.prototype.slice,c=Array.prototype.indexOf,h=Object.prototype.toString,p=Object.prototype.hasOwnProperty,d=String.prototype.trim,v=function(e,t){return new v.fn.init(e,t,n)},m=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,g=/\S/,y=/\s+/,b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1])return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e);o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2])return r.find(e);this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a<f;a++)if((e=arguments[a])!=null)for(n in e){r=u[n],i=e[n];if(u===i)continue;l&&i&&(v.isPlainObject(i)||(s=v.isArray(i)))?(s?(s=!1,o=r&&v.isArray(r)?r:[]):o=r&&v.isPlainObject(r)?r:{},u[n]=v.extend(l,o,i)):i!==t&&(u[n]=i)}return u},v.extend({noConflict:function(t){return e.$===v&&(e.$=a),t&&e.jQuery===v&&(e.jQuery=u),v},isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){if(e===!0?--v.readyWait:v.isReady)return;if(!i.body)return setTimeout(v.ready,1);v.isReady=!0;if(e!==!0&&--v.readyWait>0)return;r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e))return!1;try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return!e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string")return null;t=v.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(S.test(t.replace(T,"@").replace(N,"]").replace(x,"")))return(new Function("return "+t))();v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string")return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e)if(n.apply(e[i],r)===!1)break}else for(;s<o;)if(n.apply(e[s++],r)===!1)break}else if(u){for(i in e)if(n.call(e[i],i,e[i])===!1)break}else for(;s<o;)if(n.call(e[s],s,e[s++])===!1)break;return e},trim:d&&!d.call("\ufeff\u00a0")?function(e){return e==null?"":d.call(e)}:function(e){return e==null?"":(e+"").replace(b,"")},makeArray:function(e,t){var n,r=t||[];return e!=null&&(n=v.type(e),e.length==null||n==="string"||n==="function"||n==="regexp"||v.isWindow(e)?f.call(r,e):v.merge(r,e)),r},inArray:function(e,t,n){var r;if(t){if(c)return c.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,s=0;if(typeof r=="number")for(;s<r;s++)e[i++]=n[s];else while(n[s]!==t)e[i++]=n[s++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length;n=!!n;for(;s<o;s++)r=!!t(e[s],s),n!==r&&i.push(e[s]);return i},map:function(e,n,r){var i,s,o=[],u=0,a=e.length,f=e instanceof v||a!==t&&typeof a=="number"&&(a>0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f)for(;u<a;u++)i=n(e[u],u,r),i!=null&&(o[o.length]=i);else for(s in e)i=n(e[s],s,r),i!=null&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,n){var r,i,s;return typeof n=="string"&&(r=e[n],n=e,e=r),v.isFunction(e)?(i=l.call(arguments,2),s=function(){return e.apply(n,i.concat(l.call(arguments)))},s.guid=e.guid=e.guid||v.guid++,s):t},access:function(e,n,r,i,s,o,u){var a,f=r==null,l=0,c=e.length;if(r&&typeof r=="object"){for(l in r)v.access(e,n,l,r[l],1,o,i);s=1}else if(i!==t){a=u===t&&v.isFunction(i),f&&(a?(a=n,n=function(e,t,n){return a.call(v(e),n)}):(n.call(e,i),n=null));if(n)for(;l<c;l++)n(e[l],r,a?i.call(e[l],l,n(e[l],r)):i,u);s=1}return s?e:f?n.call(e):c?n(e[0],r):o},now:function(){return(new Date).getTime()}}),v.ready.promise=function(t){if(!r){r=v.Deferred();if(i.readyState==="complete")setTimeout(v.ready,1);else if(i.addEventListener)i.addEventListener("DOMContentLoaded",A,!1),e.addEventListener("load",v.ready,!1);else{i.attachEvent("onreadystatechange",A),e.attachEvent("onload",v.ready);var n=!1;try{n=e.frameElement==null&&i.documentElement}catch(s){}n&&n.doScroll&&function o(){if(!v.isReady){try{n.doScroll("left")}catch(e){return setTimeout(o,50)}v.ready()}}()}}return r.promise(t)},v.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){O["[object "+t+"]"]=t.toLowerCase()}),n=v(i);var M={};v.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):v.extend({},e);var n,r,i,s,o,u,a=[],f=!e.once&&[],l=function(t){n=e.memory&&t,r=!0,u=s||0,s=0,o=a.length,i=!0;for(;a&&u<o;u++)if(a[u].apply(t[0],t[1])===!1&&e.stopOnFalse){n=!1;break}i=!1,a&&(f?f.length&&l(f.shift()):n?a=[]:c.disable())},c={add:function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var i=v.type(n);i==="function"?(!e.unique||!c.has(n))&&a.push(n):n&&n.length&&i!=="string"&&r(n)})})(arguments),i?o=a.length:n&&(s=t,l(n))}return this},remove:function(){return a&&v.each(arguments,function(e,t){var n;while((n=v.inArray(t,a,n))>-1)a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return!a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return!f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t<r;t++)n[t]&&v.isFunction(n[t].promise)?n[t].promise().done(o(t,f,n)).fail(s.reject).progress(o(t,a,u)):--i}return i||s.resolveWith(f,n),s.promise()}}),v.support=function(){var t,n,r,s,o,u,a,f,l,c,h,p=i.createElement("div");p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length)return{};s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent)for(l in{submit:!0,change:!0,focusin:!0})f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c;return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a)return;n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="<table><tr><td></td><td>t</td></tr></table>",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="<div></div>",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e))return;var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t)return;c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function")i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n);return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e))return;var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a])return;if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i<s;i++)delete r[t[i]];if(!(n?B:v.isEmptyObject)(r))return}}if(!n){delete u[a].data;if(!B(u[a]))return}o?v.cleanData([e],!0):v.support.deleteExpando||u!=u.window?delete u[a]:u[a]=null},_data:function(e,t,n){return v.data(e,t,n,!0)},acceptData:function(e){var t=e.nodeName&&v.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),v.fn.extend({data:function(e,n){var r,i,s,o,u,a=this[0],f=0,l=null;if(e===t){if(this.length){l=v.data(a);if(a.nodeType===1&&!v._data(a,"parsedAttrs")){s=a.attributes;for(u=s.length;f<u;f++)o=s[f].name,o.indexOf("data-")||(o=v.camelCase(o.substring(5)),H(a,o,l[o]));v._data(a,"parsedAttrs",!0)}}return l}return typeof e=="object"?this.each(function(){v.data(this,e)}):(r=e.split(".",2),r[1]=r[1]?"."+r[1]:"",i=r[1]+"!",v.access(this,function(n){if(n===t)return l=this.triggerHandler("getData"+i,[r[0]]),l===t&&a&&(l=v.data(a,e),l=H(a,e,l)),l===t&&r[1]?this.data(r[0]):l;r[1]=n,this.each(function(){var t=v(this);t.triggerHandler("setData"+i,r),v.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length<r?v.queue(this[0],e):n===t?this:this.each(function(){var t=v.queue(this,e,n);v._queueHooks(this,e),e==="fx"&&t[0]!=="inprogress"&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},delay:function(e,t){return e=v.fx?v.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,s=v.Deferred(),o=this,u=this.length,a=function(){--i||s.resolveWith(o,[o])};typeof e!="string"&&(n=e,e=t),e=e||"fx";while(u--)r=v._data(o[u],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(a));return a(),s.promise(n)}});var j,F,I,q=/[\t\r\n]/g,R=/\r/g,U=/^(?:button|input)$/i,z=/^(?:button|input|object|select|textarea)$/i,W=/^a(?:rea|)$/i,X=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=v.support.getSetAttribute;v.fn.extend({attr:function(e,t){return v.access(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,this.className))});if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{s=" "+i.className+" ";for(o=0,u=t.length;o<u;o++)s.indexOf(" "+t[o]+" ")<0&&(s+=t[o]+" ");i.className=v.trim(s)}}}return this},removeClass:function(e){var n,r,i,s,o,u,a;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e=="string"||e===t){n=(e||"").split(y);for(u=0,a=this.length;u<a;u++){i=this[u];if(i.nodeType===1&&i.className){r=(" "+i.className+" ").replace(q," ");for(s=0,o=n.length;s<o;s++)while(r.indexOf(" "+n[s]+" ")>=0)r=r.replace(" "+n[s]+" "," ");i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=t+""}}),v.support.optSelected||(v.propHooks.selected=v.extend(v.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),v.support.enctype||(v.propFix.enctype="encoding"),v.support.checkOn||v.each(["radio","checkbox"],function(){v.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]=v.extend(v.valHooks[this],{set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>=0}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e)))return;r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f<n.length;f++){l=J.exec(n[f])||[],c=l[1],h=(l[2]||"").split(".").sort(),g=v.event.special[c]||{},c=(s?g.delegateType:g.bindType)||c,g=v.event.special[c]||{},p=v.extend({type:c,origType:l[1],data:i,handler:r,guid:r.guid,selector:s,needsContext:s&&v.expr.match.needsContext.test(s),namespace:h.join(".")},d),m=a[c];if(!m){m=a[c]=[],m.delegateCount=0;if(!g.setup||g.setup.call(e,i,h,u)===!1)e.addEventListener?e.addEventListener(c,u,!1):e.attachEvent&&e.attachEvent("on"+c,u)}g.add&&(g.add.call(e,p),p.handler.guid||(p.handler.guid=r.guid)),s?m.splice(m.delegateCount++,0,p):m.push(p),v.event.global[c]=!0}e=null},global:{},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,m,g=v.hasData(e)&&v._data(e);if(!g||!(h=g.events))return;t=v.trim(Z(t||"")).split(" ");for(s=0;s<t.length;s++){o=J.exec(t[s])||[],u=a=o[1],f=o[2];if(!u){for(u in h)v.event.remove(e,u+t[s],n,r,!0);continue}p=v.event.special[u]||{},u=(r?p.delegateType:p.bindType)||u,d=h[u]||[],l=d.length,f=f?new RegExp("(^|\\.)"+f.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(c=0;c<d.length;c++)m=d[c],(i||a===m.origType)&&(!n||n.guid===m.guid)&&(!f||f.test(m.namespace))&&(!r||r===m.selector||r==="**"&&m.selector)&&(d.splice(c--,1),m.selector&&d.delegateCount--,p.remove&&p.remove.call(e,m));d.length===0&&l!==d.length&&((!p.teardown||p.teardown.call(e,f,g.handle)===!1)&&v.removeEvent(e,u,g.handle),delete h[u])}v.isEmptyObject(h)&&(delete g.handle,v.removeData(e,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,s,o){if(!s||s.nodeType!==3&&s.nodeType!==8){var u,a,f,l,c,h,p,d,m,g,y=n.type||n,b=[];if(Y.test(y+v.event.triggered))return;y.indexOf("!")>=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y])return;n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u)u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0);return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1)return;m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode)m.push([l,g]),c=l;c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f<m.length&&!n.isPropagationStopped();f++)l=m[f][0],n.type=m[f][1],d=(v._data(l,"events")||{})[n.type]&&v._data(l,"handle"),d&&d.apply(l,r),d=h&&l[h],d&&v.acceptData(l)&&d.apply&&d.apply(l,r)===!1&&n.preventDefault();return n.type=y,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(s.ownerDocument,r)===!1)&&(y!=="click"||!v.nodeName(s,"a"))&&v.acceptData(s)&&h&&s[y]&&(y!=="focus"&&y!=="blur"||n.target.offsetWidth!==0)&&!v.isWindow(s)&&(c=s[h],c&&(s[h]=null),v.event.triggered=y,s[y](),v.event.triggered=t,c&&(s[h]=c)),n.result}return},dispatch:function(n){n=v.event.fix(n||e.event);var r,i,s,o,u,a,f,c,h,p,d=(v._data(this,"events")||{})[n.type]||[],m=d.delegateCount,g=l.call(arguments),y=!n.exclusive&&!n.namespace,b=v.event.special[n.type]||{},w=[];g[0]=n,n.delegateTarget=this;if(b.preDispatch&&b.preDispatch.call(this,n)===!1)return;if(m&&(!n.button||n.type!=="click"))for(s=n.target;s!=this;s=s.parentNode||this)if(s.disabled!==!0||n.type!=="click"){u={},f=[];for(r=0;r<m;r++)c=d[r],h=c.selector,u[h]===t&&(u[h]=c.needsContext?v(h,this).index(s)>=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c);f.length&&w.push({elem:s,matches:f})}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r<w.length&&!n.isPropagationStopped();r++){a=w[r],n.currentTarget=a.elem;for(i=0;i<a.matches.length&&!n.isImmediatePropagationStopped();i++){c=a.matches[i];if(y||!n.namespace&&!c.namespace||n.namespace_re&&n.namespace_re.test(c.namespace))n.data=c.data,n.handleObj=c,o=((v.event.special[c.origType]||{}).handle||c.handler).apply(a.elem,g),o!==t&&(n.result=o,o===!1&&(n.preventDefault(),n.stopPropagation()))}}return b.postDispatch&&b.postDispatch.call(this,n),n.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,s,o,u=n.button,a=n.fromElement;return e.pageX==null&&n.clientX!=null&&(r=e.target.ownerDocument||i,s=r.documentElement,o=r.body,e.pageX=n.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?n.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,r=e,s=v.event.fixHooks[e.type]||{},o=s.props?this.props.concat(s.props):this.props;e=v.Event(r);for(t=o.length;t;)n=o[--t],e[n]=r[n];return e.target||(e.target=r.srcElement||i),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){v.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?v.event.trigger(i,null,t):v.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},v.event.handle=v.event.dispatch,v.removeEvent=i.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]=="undefined"&&(e[r]=null),e.detachEvent(r,n))},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?tt:et):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={preventDefault:function(){this.isDefaultPrevented=tt;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=tt;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=tt,this.stopPropagation()},isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et},v.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj,o=s.selector;if(!i||i!==r&&!v.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),v.support.submitBubbles||(v.event.special.submit={setup:function(){if(v.nodeName(this,"form"))return!1;v.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=v.nodeName(n,"input")||v.nodeName(n,"button")?n.form:t;r&&!v._data(r,"_submit_attached")&&(v.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),v._data(r,"_submit_attached",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&v.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(v.nodeName(this,"form"))return!1;v.event.remove(this,"._submit")}}),v.support.changeBubbles||(v.event.special.change={setup:function(){if($.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")v.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),v.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),v.event.simulate("change",this,e,!0)});return!1}v.event.add(this,"beforeactivate._change",function(e){var t=e.target;$.test(t.nodeName)&&!v._data(t,"_change_attached")&&(v.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&v.event.simulate("change",this.parentNode,e,!0)}),v._data(t,"_change_attached",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return v.event.remove(this,"._change"),!$.test(this.nodeName)}}),v.support.focusinBubbles||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){v.event.simulate(t,e.target,v.event.fix(e),!0)};v.event.special[t]={setup:function(){n++===0&&i.addEventListener(e,r,!0)},teardown:function(){--n===0&&i.removeEventListener(e,r,!0)}}}),v.fn.extend({on:function(e,n,r,i,s){var o,u;if(typeof e=="object"){typeof n!="string"&&(r=r||n,n=t);for(u in e)this.on(u,n,r,e[u],s);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n=="string"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=et;else if(!i)return this;return s===1&&(o=i,i=function(e){return v().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=v.guid++)),this.each(function(){v.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if(typeof e=="object"){for(s in e)this.off(s,n,e[s]);return this}if(n===!1||typeof n=="function")r=n,n=t;return r===!1&&(r=et),this.each(function(){v.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return v(this.context).on(e,this.selector,t,n),this},die:function(e,t){return v(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return v.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||v.guid++,r=0,i=function(n){var i=(v._data(this,"lastToggle"+e.guid)||0)%r;return v._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string")return n;if(l!==1&&l!==9)return[];a=o(t);if(!a&&!r)if(i=R.exec(e))if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode)return n;if(s.id===f)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f)return n.push(s),n}else{if(i[2])return S.apply(n,x.call(t.getElementsByTagName(e),0)),n;if((f=i[3])&&Z&&t.getElementsByClassName)return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function ot(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u)))r&&(u=u.slice(r[0].length)||u),a.push(s=[]);n=!1;if(r=I.exec(u))s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ");for(o in i.filter)(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r);if(!n)break}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i])if(s||t.nodeType===1)return e(t,n,r)}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i])if(s||t.nodeType===1){if((a=t[d])===l)return t.sizset;if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset)return t}else{t[d]=l;if(e(t,r,u))return t.sizset=!0,t;t.sizset=!1}}}else while(t=t[i])if(s||t.nodeType===1)if(e(t,r,u))return t}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function ct(e,t,n,r,i,s){return r&&!r[d]&&(r=ct(r)),i&&!i[d]&&(i=ct(i,s)),N(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||dt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?lt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=lt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?T.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a<s;a++)if(n=i.relative[e[a].type])h=[at(ft(h),n)];else{n=i.filter[e[a].type].apply(null,e[a].matches);if(n[d]){r=++a;for(;r<s;r++)if(i.relative[e[r].type])break;return ct(a>1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a<r&&ht(e.slice(a,r)),r<s&&ht(e=e.slice(r)),r<s&&e.join(""))}h.push(n)}return ft(h)}function pt(e,t){var r=t.length>0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++)if(v(p,a,f)){l.push(p);break}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++)v(x,m,a,f);if(u){if(y>0)while(w--)!x[w]&&!m[w]&&(m[w]=E.call(l));m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r<i;r++)nt(e,t[r],n);return n}function vt(e,t,n,r,s){var o,u,f,l,c,h=ut(e),p=h.length;if(!r&&h.length===1){u=h[0]=h[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t)return n;e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type])break;if(c=i.find[l])if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e)return S.apply(n,x.call(r,0)),n;break}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},N=function(e,t){return e[d]=t==null||t,e},C=function(){var e={},t=[];return N(function(n,r){return t.push(n)>i.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="<select></select>";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="<a name='"+d+"'></a><div name='"+d+"'></div>",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++)n.push(t);return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(i===3||i===4)return e.nodeValue}else for(;t=e[r];r++)n+=s(t);return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++)r.nodeType===1&&i.push(r);return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p)return t.getElementsByName(name)},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0]))return null;if(e[3])e[2]=e[3];else if(t=e[4])q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t;return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return!0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0)return!0;if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling)if(t.nodeType===1){i++;if(e===t)break}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(n.nodeType===1)return!1;if(e==="first")return!0;n=t;case"last":while(n=n.nextSibling)if(n.nodeType===1)return!1;return!0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--)i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4)return!1;e=e.nextSibling}return!0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:st(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:st(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},f=y.compareDocumentPosition?function(e,t){return e===t?(l=!0,0):(!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition:e.compareDocumentPosition(t)&4)?-1:1}:function(e,t){if(e===t)return l=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,u=t.parentNode,a=o;if(o===u)return ot(e,t);if(!o)return-1;if(!u)return 1;while(a)i.unshift(a),a=a.parentNode;a=u;while(a)s.unshift(a),a=a.parentNode;n=i.length,r=s.length;for(var f=0;f<n&&f<r;f++)if(i[f]!==s[f])return ot(i[f],s[f]);return f===n?ot(e,s[f],-1):ot(i[f],t,1)},[0,0].sort(f),h=!l,nt.uniqueSort=function(e){var t,n=[],r=1,i=0;l=h,e.sort(f);if(l){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e},nt.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},a=nt.compile=function(e,t){var n,r=[],i=[],s=A[d][e+" "];if(!s){t||(t=ut(e)),n=t.length;while(n--)s=ht(t[n]),s[d]?r.push(s):i.push(s);s=A(e,pt(i,r))}return s},g.querySelectorAll&&function(){var e,t=vt,n=/'|\\/g,r=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,i=[":focus"],s=[":active"],u=y.matchesSelector||y.mozMatchesSelector||y.webkitMatchesSelector||y.oMatchesSelector||y.msMatchesSelector;K(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="<p test=''></p>",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="<input type='hidden'/>",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--)a[f]=c+a[f].join("");h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p)try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n))try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11)return a}catch(f){}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string")return v(e).filter(function(){for(t=0,n=u.length;t<n;t++)if(v.contains(u[t],this))return!0});o=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++){r=o.length,v.find(e,this[t],o);if(t>0)for(i=r;i<o.length;i++)for(s=0;s<r;s++)if(o[s]===o[i]){o.splice(i--,1);break}}return o},has:function(e){var t,n=v(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(v.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1),"not",e)},filter:function(e){return this.pushStack(ft(this,e,!0),"filter",e)},is:function(e){return!!e&&(typeof e=="string"?st.test(e)?v(e,this.context).index(this[0])>=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r<i;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&n.nodeType!==11){if(o?o.index(n)>-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r)))s.nodeType===1&&i.push(s),s=s[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/<tbody/i,gt=/<|&#?\w+;/,yt=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,wt=new RegExp("<(?:"+ct+")[\\s/>]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,Nt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X<div>","</div>"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e))return this.each(function(t){v(this).wrapAll(e.call(this,t))});if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0]))return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++)if(!e||v.filter(e,[n]).length)!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n);return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return n.nodeType===1?n.innerHTML.replace(ht,""):t;if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1></$2>");try{for(;r<i;r++)n=this[r]||{},n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(s){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return ut(this[0])?this.length?this.pushStack(v(v.isFunction(e)?e():e),"replaceWith",e):this:v.isFunction(e)?this.each(function(t){var n=v(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!="string"&&(e=v(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;v(this).remove(),t?v(t).before(e):v(n).append(e)}))},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=[].concat.apply([],e);var i,s,o,u,a=0,f=e[0],l=[],c=this.length;if(!v.support.checkClone&&c>1&&typeof f=="string"&&St.test(f))return this.each(function(){v(this).domManip(e,n,r)});if(v.isFunction(f))return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)});if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a<c;a++)r.call(n&&v.nodeName(this[a],"table")?Lt(this[a],"tbody"):this[a],a===u?o:v.clone(o,!0,!0))}o=s=null,l.length&&v.each(l,function(e,t){t.src?v.ajax?v.ajax({url:t.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):v.error("no ajax"):v.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Tt,"")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),v.buildFragment=function(e,n,r){var s,o,u,a=e[0];return n=n||i,n=!n.nodeType&&n[0]||n,n=n.ownerDocument||n,e.length===1&&typeof a=="string"&&a.length<512&&n===i&&a.charAt(0)==="<"&&!bt.test(a)&&(v.support.checkClone||!St.test(a))&&(v.support.html5Clone||!wt.test(a))&&(o=!0,s=v.fragments[a],u=s!==t),s||(s=n.createDocumentFragment(),v.clean(e,n,s,r),o&&(v.fragments[a]=u&&s)),{fragment:s,cacheable:o}},v.fragments={},v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(n){var r,i=0,s=[],o=v(n),u=o.length,a=this.length===1&&this[0].parentNode;if((a==null||a&&a.nodeType===11&&a.childNodes.length===1)&&u===1)return o[t](this[0]),this;for(;i<u;i++)r=(i>0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r);return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s)i[s]&&Ot(r[s],i[s])}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s)At(r[s],i[s])}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined")t=i;for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u)continue;if(typeof u=="string")if(!gt.test(u))u=t.createTextNode(u);else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1></$2>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--)c=c.lastChild;if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]==="<table>"&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o)v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked)for(s=0;(u=b[s])!=null;s++)v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t);if(n){m=function(e){if(!e.type||xt.test(e.type))return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)};for(s=0;(u=b[s])!=null;s++)if(!v.nodeName(u,"script")||!m(u))n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++)if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events)for(s in n.events)l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle);a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t)return u&&"get"in u&&(s=u.get(e,!1,i))!==t?s:f[n];o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r))return;o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set"in u)||(r=u.set(e,r,i))!==t)try{f[n]=r}catch(l){}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get"in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];r=n.call(e);for(i in t)e.style[i]=s[i];return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter)return}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t)return Dt(e,"marginRight")})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return!v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++)s[e+$t[r]+t]=i[r]||i[r-2]||i[0];return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){s(this.name,this.value)});else for(r in e)fn(r,e[r],n,s);return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En)return En.apply(this,arguments);if(!this.length)return this;var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("<div>").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2)return;E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304)c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b);else{b=T;if(!T||e)T="error",e<0&&(e=0)}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i))s[n[1].toLowerCase()]=n[2]}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2)for(t in e)g[t]=[g[t],e[t]];else t=e[x.status],x.always(t)}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2)return x;f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)x.setRequestHeader(l,c.headers[l]);if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in{success:1,error:1,complete:1})x[l](c[l]);o=kn(xn,c,n,x);if(!o)T(-1,"No Transport");else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2))throw k;T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h)return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState))n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn)Hn[e](0,1)}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields)for(u in n.xhrFields)a[u]=n.xhrFields[u];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i)a.setRequestHeader(u,i[u])}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i)a.readyState!==4&&a.abort();else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do a=a||".5",u/=a,v.style(i.elem,e,u+r);while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],Vn[n]=Vn[n]||[],Vn[n].unshift(t)},prefilter:function(e,t){t?Xn.unshift(e):Xn.push(e)}}),v.Tween=Yn,Yn.prototype={constructor:Yn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Yn.propHooks[this.prop];return e&&e.get?e.get(this):Yn.propHooks._default.get(this)},run:function(e){var t,n=Yn.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Yn.propHooks._default.set(this),this}},Yn.prototype.init.prototype=Yn.prototype,Yn.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=v.css(e.elem,e.prop,!1,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):e.elem.style&&(e.elem.style[v.cssProps[e.prop]]!=null||v.cssHooks[e.prop])?v.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Yn.propHooks.scrollTop=Yn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(r,i,s){return r==null||typeof r=="boolean"||!e&&v.isFunction(r)&&v.isFunction(i)?n.apply(this,arguments):this.animate(Zn(t,!0),r,i,s)}}),v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Gt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),s=v.speed(t,n,r),o=function(){var t=Kn(this,v.extend({},e),s);i&&t.stop(!0)};return i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return typeof e!="string"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=e!=null&&e+"queueHooks",s=v.timers,o=v._data(this);if(n)o[n]&&o[n].stop&&i(o[n]);else for(n in o)o[n]&&o[n].stop&&Wn.test(n)&&i(o[n]);for(n=s.length;n--;)s[n].elem===this&&(e==null||s[n].queue===e)&&(s[n].anim.stop(r),t=!1,s.splice(n,1));(t||!r)&&v.dequeue(this,e)})}}),v.each({slideDown:Zn("show"),slideUp:Zn("hide"),slideToggle:Zn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.speed=function(e,t,n){var r=e&&typeof e=="object"?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};r.duration=v.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in v.fx.speeds?v.fx.speeds[r.duration]:v.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},v.timers=[],v.fx=Yn.prototype.init,v.fx.tick=function(){var e,n=v.timers,r=0;qn=v.now();for(;r<n.length;r++)e=n[r],!e()&&n[r]===e&&n.splice(r--,1);n.length||v.fx.stop(),qn=t},v.fx.timer=function(e){e()&&v.timers.push(e)&&!Rn&&(Rn=setInterval(v.fx.tick,v.fx.interval))},v.fx.interval=13,v.fx.stop=function(){clearInterval(Rn),Rn=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fx.step={},v.expr&&v.expr.filters&&(v.expr.filters.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length});var er=/^(?:body|html)$/i;v.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){v.offset.setOffset(this,e,t)});var n,r,i,s,o,u,a,f={top:0,left:0},l=this[0],c=l&&l.ownerDocument;if(!c)return;return(r=c.body)===l?v.offset.bodyOffset(l):(n=c.documentElement,v.contains(n,l)?(typeof l.getBoundingClientRect!="undefined"&&(f=l.getBoundingClientRect()),i=tr(c),s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,u=i.pageYOffset||n.scrollTop,a=i.pageXOffset||n.scrollLeft,{top:f.top+u-s,left:f.left+a-o}):f)},v.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return v.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(v.css(e,"marginTop"))||0,n+=parseFloat(v.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=v.css(e,"position");r==="static"&&(e.style.position="relative");var i=v(e),s=i.offset(),o=v.css(e,"top"),u=v.css(e,"left"),a=(r==="absolute"||r==="fixed")&&v.inArray("auto",[o,u])>-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using"in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0])return;var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static")e=e.offsetParent;return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t)return o?n in o?o[n]:o.document.documentElement[i]:e[i];o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window);Function(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++])u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}else if(n==="undefined"||n==="boolean")this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(q," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s)return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get"in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r);return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1)return;i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set"in n)||n.set(this,s,"value")===t)this.value=s})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(v.support.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){t=v(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n=v.makeArray(t);return v(e).find("option").each(function(){this.selected=v.inArray(v(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;if(i&&v.isFunction(v.fn[n]))return v(e)[n](r);if(typeof e.getAttribute=="undefined")return v.prop(e,n,r);u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set"in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get"in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o<r.length;o++)i=r[o],i&&(n=v.propFix[i]||i,s=X.test(i),s||v.attr(e,i,""),e.removeAttribute(V?i:n),s&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)v.error("type property can't be changed");else if(!v.support.radioValue&&t==="radio"&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return j&&v.nodeName(e,"button")?j.get(e,t):t in e?e.value:null},set:function(e,t,n){if(j&&v.nodeName(e,"button"))return j.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,s,o,u=e.nodeType;if(!e||u===3||u===8||u===2)return;return o=u!==1||!v.isXMLDoc(e),o&&(n=v.propFix[n]||n,s=v.propHooks[n]),r!==t?s&&"set"in s&&(i=s.set(e,r,n))!==t?i:e[n]=r:s&&"get"in s&&(i=s.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):z.test(e.nodeName)||W.test(e.nodeName)&&e.href?0:t}}}}),F={get:function(e,n){var r,i=v.prop(e,n);return i===!0||typeof i!="boolean"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?v.removeAttr(e,n):(r=v.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},V||(I={name:!0,id:!0,coords:!0},j=v.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(I[n]?r.value!=="":r.specified)?r.value:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=i.createAttribute(n),e.setAttributeNode(r)),r.value=t+""}},v.each(["width","height"],function(e,t){v.attrHooks[t]=v.extend(v.attrHooks[t],{set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}})}),v.attrHooks.contenteditable={get:j.get,set:function(e,t,n){t===""&&(t="false"),j.set(e,t,n)}}),v.support.hrefNormalized||v.each(["href","src","width","height"],function(e,n){v.attrHooks[n]=v.extend(v.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),v.support.style||(v.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()| \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/demo/js/zepto.js b/common/src/main/webapp/thirdparty/icheck/demo/js/zepto.js
deleted file mode 100644
index ef1e61f..0000000
--- a/common/src/main/webapp/thirdparty/icheck/demo/js/zepto.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/*!
- * Zepto v1.0 zeptojs.com | MIT licensed
- * Modules: zepto, polyfill, event, data, stack
- */
-var Zepto=function(){function h(a){return null==a?String(a):G[S.call(a)]||"object"}function m(a){return"function"==h(a)}function p(a){return null!=a&&a==a.window}function s(a){return null!=a&&a.nodeType==a.DOCUMENT_NODE}function q(a){return"object"==h(a)}function k(a){return q(a)&&!p(a)&&a.__proto__==Object.prototype}function t(a){return a instanceof Array}function l(a){return"number"==typeof a.length}function j(a){return a.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,
-"$1_$2").replace(/_/g,"-").toLowerCase()}function r(a){return a in H?H[a]:H[a]=RegExp("(^|\\s)"+a+"(\\s|$)")}function A(a){return"children"in a?B.call(a.children):c.map(a.childNodes,function(a){if(1==a.nodeType)return a})}function C(a,b,d){for(g in b)d&&(k(b[g])||t(b[g]))?(k(b[g])&&!k(a[g])&&(a[g]={}),t(b[g])&&!t(a[g])&&(a[g]=[]),C(a[g],b[g],d)):b[g]!==f&&(a[g]=b[g])}function y(a,b){return b===f?c(a):c(a).filter(b)}function x(a,b,d,c){return m(b)?b.call(a,d,c):b}function z(a,b){var d=a.className,
-c=d&&d.baseVal!==f;if(b===f)return c?d.baseVal:d;c?d.baseVal=b:a.className=b}function E(a){var b;try{return a?"true"==a||("false"==a?!1:"null"==a?null:!isNaN(b=Number(a))?b:/^[\[\{]/.test(a)?c.parseJSON(a):a):a}catch(d){return a}}function e(a,b){b(a);for(var d in a.childNodes)e(a.childNodes[d],b)}var f,g,c,u,w=[],B=w.slice,D=w.filter,v=window.document,I={},H={},J=v.defaultView.getComputedStyle,M={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},N=/^\s*<(\w+|!)[^>]*>/,
-T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,O=/^(?:body|html)$/i,U="val css html text data width height offset".split(" "),K=v.createElement("table"),P=v.createElement("tr"),Q={tr:v.createElement("tbody"),tbody:K,thead:K,tfoot:K,td:P,th:P,"*":v.createElement("div")},V=/complete|loaded|interactive/,W=/^\.([\w-]+)$/,X=/^#([\w-]*)$/,Y=/^[\w-]+$/,G={},S=G.toString,n={},L,F,R=v.createElement("div");n.matches=function(a,b){if(!a||1!==a.nodeType)return!1;var d=a.webkitMatchesSelector||
-a.mozMatchesSelector||a.oMatchesSelector||a.matchesSelector;if(d)return d.call(a,b);var c;c=a.parentNode;(d=!c)&&(c=R).appendChild(a);c=~n.qsa(c,b).indexOf(a);d&&R.removeChild(a);return c};L=function(a){return a.replace(/-+(.)?/g,function(a,d){return d?d.toUpperCase():""})};F=function(a){return D.call(a,function(b,d){return a.indexOf(b)==d})};n.fragment=function(a,b,d){a.replace&&(a=a.replace(T,"<$1></$2>"));b===f&&(b=N.test(a)&&RegExp.$1);b in Q||(b="*");var e,g=Q[b];g.innerHTML=""+a;a=c.each(B.call(g.childNodes),
-function(){g.removeChild(this)});k(d)&&(e=c(a),c.each(d,function(a,b){if(-1<U.indexOf(a))e[a](b);else e.attr(a,b)}));return a};n.Z=function(a,b){a=a||[];a.__proto__=c.fn;a.selector=b||"";return a};n.isZ=function(a){return a instanceof n.Z};n.init=function(a,b){if(a){if(m(a))return c(v).ready(a);if(n.isZ(a))return a;var d;if(t(a))d=D.call(a,function(a){return null!=a});else if(q(a))d=[k(a)?c.extend({},a):a],a=null;else if(N.test(a))d=n.fragment(a.trim(),RegExp.$1,b),a=null;else{if(b!==f)return c(b).find(a);
-d=n.qsa(v,a)}return n.Z(d,a)}return n.Z()};c=function(a,b){return n.init(a,b)};c.extend=function(a){var b,d=B.call(arguments,1);"boolean"==typeof a&&(b=a,a=d.shift());d.forEach(function(d){C(a,d,b)});return a};n.qsa=function(a,b){var d;return s(a)&&X.test(b)?(d=a.getElementById(RegExp.$1))?[d]:[]:1!==a.nodeType&&9!==a.nodeType?[]:B.call(W.test(b)?a.getElementsByClassName(RegExp.$1):Y.test(b)?a.getElementsByTagName(b):a.querySelectorAll(b))};c.contains=function(a,b){return a!==b&&a.contains(b)};c.type=
-h;c.isFunction=m;c.isWindow=p;c.isArray=t;c.isPlainObject=k;c.isEmptyObject=function(a){for(var b in a)return!1;return!0};c.inArray=function(a,b,d){return w.indexOf.call(b,a,d)};c.camelCase=L;c.trim=function(a){return a.trim()};c.uuid=0;c.support={};c.expr={};c.map=function(a,b){var d,e=[],f;if(l(a))for(f=0;f<a.length;f++)d=b(a[f],f),null!=d&&e.push(d);else for(f in a)d=b(a[f],f),null!=d&&e.push(d);return 0<e.length?c.fn.concat.apply([],e):e};c.each=function(a,b){var d;if(l(a))for(d=0;d<a.length&&
-!1!==b.call(a[d],d,a[d]);d++);else for(d in a)if(!1===b.call(a[d],d,a[d]))break;return a};c.grep=function(a,b){return D.call(a,b)};window.JSON&&(c.parseJSON=JSON.parse);c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){G["[object "+b+"]"]=b.toLowerCase()});c.fn={forEach:w.forEach,reduce:w.reduce,push:w.push,sort:w.sort,indexOf:w.indexOf,concat:w.concat,map:function(a){return c(c.map(this,function(b,d){return a.call(b,d,b)}))},slice:function(){return c(B.apply(this,
-arguments))},ready:function(a){V.test(v.readyState)?a(c):v.addEventListener("DOMContentLoaded",function(){a(c)},!1);return this},get:function(a){return a===f?B.call(this):this[0<=a?a:a+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(a){w.every.call(this,function(b,d){return!1!==a.call(b,d,b)});return this},filter:function(a){return m(a)?this.not(this.not(a)):
-c(D.call(this,function(b){return n.matches(b,a)}))},add:function(a,b){return c(F(this.concat(c(a,b))))},is:function(a){return 0<this.length&&n.matches(this[0],a)},not:function(a){var b=[];if(m(a)&&a.call!==f)this.each(function(d){a.call(this,d)||b.push(this)});else{var d="string"==typeof a?this.filter(a):l(a)&&m(a.item)?B.call(a):c(a);this.forEach(function(a){0>d.indexOf(a)&&b.push(a)})}return c(b)},has:function(a){return this.filter(function(){return q(a)?c.contains(this,a):c(this).find(a).size()})},
-eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!q(a)?a:c(a)},last:function(){var a=this[this.length-1];return a&&!q(a)?a:c(a)},find:function(a){var b=this;return"object"==typeof a?c(a).filter(function(){var a=this;return w.some.call(b,function(b){return c.contains(b,a)})}):1==this.length?c(n.qsa(this[0],a)):this.map(function(){return n.qsa(this,a)})},closest:function(a,b){var d=this[0],e=!1;for("object"==typeof a&&(e=c(a));d&&!(e?0<=e.indexOf(d):
-n.matches(d,a));)d=d!==b&&!s(d)&&d.parentNode;return c(d)},parents:function(a){for(var b=[],d=this;0<d.length;)d=c.map(d,function(a){if((a=a.parentNode)&&!s(a)&&0>b.indexOf(a))return b.push(a),a});return y(b,a)},parent:function(a){return y(F(this.pluck("parentNode")),a)},children:function(a){return y(this.map(function(){return A(this)}),a)},contents:function(){return this.map(function(){return B.call(this.childNodes)})},siblings:function(a){return y(this.map(function(a,d){return D.call(A(d.parentNode),
-function(a){return a!==d})}),a)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(a){return c.map(this,function(b){return b[a]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=null);if("none"==J(this,"").getPropertyValue("display")){var a=this.style,b=this.nodeName,d,c;I[b]||(d=v.createElement(b),v.body.appendChild(d),c=J(d,"").getPropertyValue("display"),d.parentNode.removeChild(d),"none"==c&&(c="block"),I[b]=c);a.display=
-I[b]}})},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){var b=m(a);if(this[0]&&!b)var d=c(a).get(0),e=d.parentNode||1<this.length;return this.each(function(f){c(this).wrapAll(b?a.call(this,f):e?d.cloneNode(!0):d)})},wrapAll:function(a){if(this[0]){c(this[0]).before(a=c(a));for(var b;(b=a.children()).length;)a=b.first();c(a).append(this)}return this},wrapInner:function(a){var b=m(a);return this.each(function(d){var e=c(this),f=e.contents();d=b?a.call(this,d):a;f.length?f.wrapAll(d):
-e.append(d)})},unwrap:function(){this.parent().each(function(){c(this).replaceWith(c(this).children())});return this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(a){return this.each(function(){var b=c(this);(a===f?"none"==b.css("display"):a)?b.show():b.hide()})},prev:function(a){return c(this.pluck("previousElementSibling")).filter(a||"*")},next:function(a){return c(this.pluck("nextElementSibling")).filter(a||
-"*")},html:function(a){return a===f?0<this.length?this[0].innerHTML:null:this.each(function(b){var d=this.innerHTML;c(this).empty().append(x(this,a,b,d))})},text:function(a){return a===f?0<this.length?this[0].textContent:null:this.each(function(){this.textContent=a})},attr:function(a,b){var d;return"string"==typeof a&&b===f?0==this.length||1!==this[0].nodeType?f:"value"==a&&"INPUT"==this[0].nodeName?this.val():!(d=this[0].getAttribute(a))&&a in this[0]?this[0][a]:d:this.each(function(d){if(1===this.nodeType)if(q(a))for(g in a){d=
-g;var c=a[g];null==c?this.removeAttribute(d):this.setAttribute(d,c)}else d=x(this,b,d,this.getAttribute(a)),null==d?this.removeAttribute(a):this.setAttribute(a,d)})},removeAttr:function(a){return this.each(function(){1===this.nodeType&&this.removeAttribute(a)})},prop:function(a,b){return b===f?this[0]&&this[0][a]:this.each(function(d){this[a]=x(this,b,d,this[a])})},data:function(a,b){var d=this.attr("data-"+j(a),b);return null!==d?E(d):f},val:function(a){return a===f?this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):
-this[0].value):this.each(function(b){this.value=x(this,a,b,this.value)})},offset:function(a){if(a)return this.each(function(b){var e=c(this);b=x(this,a,b,e.offset());var f=e.offsetParent().offset();b={top:b.top-f.top,left:b.left-f.left};"static"==e.css("position")&&(b.position="relative");e.css(b)});if(0==this.length)return null;var b=this[0].getBoundingClientRect();return{left:b.left+window.pageXOffset,top:b.top+window.pageYOffset,width:Math.round(b.width),height:Math.round(b.height)}},css:function(a,
-b){if(2>arguments.length&&"string"==typeof a)return this[0]&&(this[0].style[L(a)]||J(this[0],"").getPropertyValue(a));var d="";if("string"==h(a))!b&&0!==b?this.each(function(){this.style.removeProperty(j(a))}):d=j(a)+":"+("number"==typeof b&&!M[j(a)]?b+"px":b);else for(g in a)!a[g]&&0!==a[g]?this.each(function(){this.style.removeProperty(j(g))}):d+=j(g)+":"+("number"==typeof a[g]&&!M[j(g)]?a[g]+"px":a[g])+";";return this.each(function(){this.style.cssText+=";"+d})},index:function(a){return a?this.indexOf(c(a)[0]):
-this.parent().children().indexOf(this[0])},hasClass:function(a){return w.some.call(this,function(a){return this.test(z(a))},r(a))},addClass:function(a){return this.each(function(b){u=[];var d=z(this);x(this,a,b,d).split(/\s+/g).forEach(function(a){c(this).hasClass(a)||u.push(a)},this);u.length&&z(this,d+(d?" ":"")+u.join(" "))})},removeClass:function(a){return this.each(function(b){if(a===f)return z(this,"");u=z(this);x(this,a,b,u).split(/\s+/g).forEach(function(a){u=u.replace(r(a)," ")});z(this,
-u.trim())})},toggleClass:function(a,b){return this.each(function(d){var e=c(this);x(this,a,d,z(this)).split(/\s+/g).forEach(function(a){(b===f?!e.hasClass(a):b)?e.addClass(a):e.removeClass(a)})})},scrollTop:function(){if(this.length)return"scrollTop"in this[0]?this[0].scrollTop:this[0].scrollY},position:function(){if(this.length){var a=this[0],b=this.offsetParent(),d=this.offset(),e=O.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c(a).css("margin-top"))||0;d.left-=parseFloat(c(a).css("margin-left"))||
-0;e.top+=parseFloat(c(b[0]).css("border-top-width"))||0;e.left+=parseFloat(c(b[0]).css("border-left-width"))||0;return{top:d.top-e.top,left:d.left-e.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||v.body;a&&!O.test(a.nodeName)&&"static"==c(a).css("position");)a=a.offsetParent;return a})}};c.fn.detach=c.fn.remove;["width","height"].forEach(function(a){c.fn[a]=function(b){var d,e=this[0],g=a.replace(/./,function(a){return a[0].toUpperCase()});return b===f?p(e)?
-e["inner"+g]:s(e)?e.documentElement["offset"+g]:(d=this.offset())&&d[a]:this.each(function(d){e=c(this);e.css(a,x(this,b,d,e[a]()))})}});["after","prepend","before","append"].forEach(function(a,b){var d=b%2;c.fn[a]=function(){var a,f=c.map(arguments,function(b){a=h(b);return"object"==a||"array"==a||null==b?b:n.fragment(b)}),g,u=1<this.length;return 1>f.length?this:this.each(function(a,h){g=d?h:h.parentNode;h=0==b?h.nextSibling:1==b?h.firstChild:2==b?h:null;f.forEach(function(a){if(u)a=a.cloneNode(!0);
-else if(!g)return c(a).remove();e(g.insertBefore(a,h),function(a){null!=a.nodeName&&("SCRIPT"===a.nodeName.toUpperCase()&&(!a.type||"text/javascript"===a.type)&&!a.src)&&window.eval.call(window,a.innerHTML)})})})};c.fn[d?a+"To":"insert"+(b?"Before":"After")]=function(b){c(b)[a](this);return this}});n.Z.prototype=c.fn;n.uniq=F;n.deserializeValue=E;c.zepto=n;return c}();window.Zepto=Zepto;"$"in window||(window.$=Zepto);
-(function(h){String.prototype.trim===h&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});Array.prototype.reduce===h&&(Array.prototype.reduce=function(m){if(void 0===this||null===this)throw new TypeError;var p=Object(this),s=p.length>>>0,q=0,k;if("function"!=typeof m)throw new TypeError;if(0==s&&1==arguments.length)throw new TypeError;if(2<=arguments.length)k=arguments[1];else{do{if(q in p){k=p[q++];break}if(++q>=s)throw new TypeError;}while(1)}for(;q<s;)q in p&&(k=m.call(h,
-k,p[q],q,p)),q++;return k})})();
-(function(h){function m(e){return e._zid||(e._zid=r++)}function p(e,f,g,c){f=s(f);if(f.ns)var h=RegExp("(?:^| )"+f.ns.replace(" "," .* ?")+"(?: |$)");return(j[m(e)]||[]).filter(function(e){return e&&(!f.e||e.e==f.e)&&(!f.ns||h.test(e.ns))&&(!g||m(e.fn)===m(g))&&(!c||e.sel==c)})}function s(e){e=(""+e).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function q(e,f,g){"string"!=h.type(e)?h.each(e,g):e.split(/\s/).forEach(function(e){g(e,f)})}function k(e,f,g,c,u,l){var k=m(e),r=j[k]||(j[k]=
-[]);q(f,g,function(f,g){var j=s(f);j.fn=g;j.sel=c;j.e in C&&(g=function(e){var c=e.relatedTarget;if(!c||c!==this&&!h.contains(this,c))return j.fn.apply(this,arguments)});j.del=u&&u(g,f);var k=j.del||g;j.proxy=function(c){var f=k.apply(e,[c].concat(c.data));!1===f&&(c.preventDefault(),c.stopPropagation());return f};j.i=r.length;r.push(j);e.addEventListener(C[j.e]||j.e,j.proxy,j.del&&("focus"==j.e||"blur"==j.e)||!!l)})}function t(e,f,g,c,h){var l=m(e);q(f||"",g,function(f,g){p(e,f,g,c).forEach(function(c){delete j[l][c.i];
-e.removeEventListener(C[c.e]||c.e,c.proxy,c.del&&("focus"==c.e||"blur"==c.e)||!!h)})})}function l(e){var f,g={originalEvent:e};for(f in e)!z.test(f)&&void 0!==e[f]&&(g[f]=e[f]);h.each(E,function(c,f){g[c]=function(){this[f]=y;return e[c].apply(e,arguments)};g[f]=x});return g}var j={},r=1,A={},C={mouseenter:"mouseover",mouseleave:"mouseout"};A.click=A.mousedown=A.mouseup=A.mousemove="MouseEvents";h.event={add:k,remove:t};h.proxy=function(e,f){if(h.isFunction(e)){var g=function(){return e.apply(f,arguments)};
-g._zid=m(e);return g}if("string"==typeof f)return h.proxy(e[f],e);throw new TypeError("expected function");};h.fn.bind=function(e,f){return this.each(function(){k(this,e,f)})};h.fn.unbind=function(e,f){return this.each(function(){t(this,e,f)})};h.fn.one=function(e,f){return this.each(function(g,c){k(this,e,f,null,function(e,f){return function(){var g=e.apply(c,arguments);t(c,f,e);return g}})})};var y=function(){return!0},x=function(){return!1},z=/^([A-Z]|layer[XY]$)/,E={preventDefault:"isDefaultPrevented",
-stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};h.fn.delegate=function(e,f,g){return this.each(function(c,j){k(j,f,g,e,function(c){return function(f){var g,k=h(f.target).closest(e,j).get(0);if(k)return g=h.extend(l(f),{currentTarget:k,liveFired:j}),c.apply(k,[g].concat([].slice.call(arguments,1)))}})})};h.fn.undelegate=function(e,f,g){return this.each(function(){t(this,f,g,e)})};h.fn.live=function(e,f){h(document.body).delegate(this.selector,e,f);return this};
-h.fn.die=function(e,f){h(document.body).undelegate(this.selector,e,f);return this};h.fn.on=function(e,f,g){return!f||h.isFunction(f)?this.bind(e,f||g):this.delegate(f,e,g)};h.fn.off=function(e,f,g){return!f||h.isFunction(f)?this.unbind(e,f||g):this.undelegate(f,e,g)};h.fn.trigger=function(e,f){if("string"==typeof e||h.isPlainObject(e))e=h.Event(e);var g=e;if(!("defaultPrevented"in g)){g.defaultPrevented=!1;var c=g.preventDefault;g.preventDefault=function(){this.defaultPrevented=!0;c.call(this)}}e.data=
-f;return this.each(function(){"dispatchEvent"in this&&this.dispatchEvent(e)})};h.fn.triggerHandler=function(e,f){var g,c;this.each(function(j,k){g=l("string"==typeof e?h.Event(e):e);g.data=f;g.target=k;h.each(p(k,e.type||e),function(e,f){c=f.proxy(g);if(g.isImmediatePropagationStopped())return!1})});return c};"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){h.fn[e]=
-function(f){return f?this.bind(e,f):this.trigger(e)}});["focus","blur"].forEach(function(e){h.fn[e]=function(f){f?this.bind(e,f):this.each(function(){try{this[e]()}catch(f){}});return this}});h.Event=function(e,f){"string"!=typeof e&&(f=e,e=f.type);var g=document.createEvent(A[e]||"Events"),c=!0;if(f)for(var h in f)"bubbles"==h?c=!!f[h]:g[h]=f[h];g.initEvent(e,c,!0,null,null,null,null,null,null,null,null,null,null,null,null);g.isDefaultPrevented=function(){return this.defaultPrevented};return g}})(Zepto);
-(function(h){function m(l,j){var r=l[t],r=r&&s[r];if(void 0===j)return r||p(l);if(r){if(j in r)return r[j];var m=k(j);if(m in r)return r[m]}return q.call(h(l),j)}function p(l,j,m){var q=l[t]||(l[t]=++h.uuid),p;if(!(p=s[q])){p=s;var y={};h.each(l.attributes,function(j,l){0==l.name.indexOf("data-")&&(y[k(l.name.replace("data-",""))]=h.zepto.deserializeValue(l.value))});p=p[q]=y}l=p;void 0!==j&&(l[k(j)]=m);return l}var s={},q=h.fn.data,k=h.camelCase,t=h.expando="Zepto"+ +new Date;h.fn.data=function(l,
-j){return void 0===j?h.isPlainObject(l)?this.each(function(j,k){h.each(l,function(h,j){p(k,h,j)})}):0==this.length?void 0:m(this[0],l):this.each(function(){p(this,l,j)})};h.fn.removeData=function(l){"string"==typeof l&&(l=l.split(/\s+/));return this.each(function(){var j=this[t],m=j&&s[j];m&&h.each(l,function(){delete m[k(this)]})})}})(Zepto);(function(a){a.fn.end=function(){return this.prevObject||a()};a.fn.andSelf=function(){return this.add(this.prevObject||a())};"filter add not eq first last find closest parents parent children siblings".split(" ").forEach(function(b){var c=a.fn[b];a.fn[b]=function(){var a=c.apply(this,arguments);a.prevObject=this;return a}})})(Zepto);
diff --git a/common/src/main/webapp/thirdparty/icheck/icheck.jquery.json b/common/src/main/webapp/thirdparty/icheck/icheck.jquery.json
deleted file mode 100644
index e7018a6..0000000
--- a/common/src/main/webapp/thirdparty/icheck/icheck.jquery.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "icheck",
- "version": "1.0.2",
- "title": "iCheck",
- "author": {
- "name": "Damir Sultanov",
- "email": "info@fronteed.com",
- "homepage": "http://fronteed.com/"
- },
- "licenses": [
- {
- "type": "MIT",
- "url": "http://en.wikipedia.org/wiki/MIT_License"
- }
- ],
- "dependencies": {
- "jquery": ">=1.7"
- },
- "description": "Highly customizable checkboxes and radio buttons (jQuery and Zepto). Features: identical inputs across different browsers and devices (both desktop and mobile), touch devices support (iOS, Android, BlackBerry, Windows Phone, Amazon Kindle), keyboard accessible inputs (Tab, Spacebar, Arrow up/down and other shortcuts), screenreader accessible inputs — (ARIA attributes for VoiceOver and others), customization freedom (use any HTML and CSS to style inputs or try 6 Retina-ready skins), lightweight size (1 kb gzipped). Provides 32 options to customize checkboxes and radio buttons, 11 callbacks to handle changes, 9 methods to make changes programmatically. Saves changes to original inputs, works carefully with any selectors.",
- "keywords": [
- "checkbox",
- "radio",
- "input",
- "field",
- "form",
- "desktop",
- "mobile",
- "custom",
- "replacement",
- "accessibility",
- "skins",
- "ui",
- "checked",
- "disabled",
- "indeterminate",
- "css3",
- "html5",
- "tiny",
- "lightweight",
- "jquery",
- "zepto"
- ],
- "homepage": "http://fronteed.com/iCheck/",
- "docs": "https://github.com/fronteed/iCheck",
- "demo": "http://fronteed.com/iCheck/",
- "download": "http://fronteed.com/iCheck/",
- "bugs": "https://github.com/fronteed/iCheck/issues/"
-}
diff --git a/common/src/main/webapp/thirdparty/icheck/icheck.js b/common/src/main/webapp/thirdparty/icheck/icheck.js
deleted file mode 100644
index 7bf2768..0000000
--- a/common/src/main/webapp/thirdparty/icheck/icheck.js
+++ /dev/null
@@ -1,509 +0,0 @@
-/*!
- * iCheck v1.0.2, http://git.io/arlzeA
- * ===================================
- * Powerful jQuery and Zepto plugin for checkboxes and radio buttons customization
- *
- * (c) 2013 Damir Sultanov, http://fronteed.com
- * MIT Licensed
- */
-
-(function($) {
-
- // Cached vars
- var _iCheck = 'iCheck',
- _iCheckHelper = _iCheck + '-helper',
- _checkbox = 'checkbox',
- _radio = 'radio',
- _checked = 'checked',
- _unchecked = 'un' + _checked,
- _disabled = 'disabled',
- _determinate = 'determinate',
- _indeterminate = 'in' + _determinate,
- _update = 'update',
- _type = 'type',
- _click = 'click',
- _touch = 'touchbegin.i touchend.i',
- _add = 'addClass',
- _remove = 'removeClass',
- _callback = 'trigger',
- _label = 'label',
- _cursor = 'cursor',
- _mobile = /ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);
-
- // Plugin init
- $.fn[_iCheck] = function(options, fire) {
-
- // Walker
- var handle = 'input[type="' + _checkbox + '"], input[type="' + _radio + '"]',
- stack = $(),
- walker = function(object) {
- object.each(function() {
- var self = $(this);
-
- if (self.is(handle)) {
- stack = stack.add(self);
- } else {
- stack = stack.add(self.find(handle));
- }
- });
- };
-
- // Check if we should operate with some method
- if (/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(options)) {
-
- // Normalize method's name
- options = options.toLowerCase();
-
- // Find checkboxes and radio buttons
- walker(this);
-
- return stack.each(function() {
- var self = $(this);
-
- if (options == 'destroy') {
- tidy(self, 'ifDestroyed');
- } else {
- operate(self, true, options);
- }
-
- // Fire method's callback
- if ($.isFunction(fire)) {
- fire();
- }
- });
-
- // Customization
- } else if (typeof options == 'object' || !options) {
-
- // Check if any options were passed
- var settings = $.extend({
- checkedClass: _checked,
- disabledClass: _disabled,
- indeterminateClass: _indeterminate,
- labelHover: true
- }, options),
-
- selector = settings.handle,
- hoverClass = settings.hoverClass || 'hover',
- focusClass = settings.focusClass || 'focus',
- activeClass = settings.activeClass || 'active',
- labelHover = !!settings.labelHover,
- labelHoverClass = settings.labelHoverClass || 'hover',
-
- // Setup clickable area
- area = ('' + settings.increaseArea).replace('%', '') | 0;
-
- // Selector limit
- if (selector == _checkbox || selector == _radio) {
- handle = 'input[type="' + selector + '"]';
- }
-
- // Clickable area limit
- if (area < -50) {
- area = -50;
- }
-
- // Walk around the selector
- walker(this);
-
- return stack.each(function() {
- var self = $(this);
-
- // If already customized
- tidy(self);
-
- var node = this,
- id = node.id,
-
- // Layer styles
- offset = -area + '%',
- size = 100 + (area * 2) + '%',
- layer = {
- position: 'absolute',
- top: offset,
- left: offset,
- display: 'block',
- width: size,
- height: size,
- margin: 0,
- padding: 0,
- background: '#fff',
- border: 0,
- opacity: 0
- },
-
- // Choose how to hide input
- hide = _mobile ? {
- position: 'absolute',
- visibility: 'hidden'
- } : area ? layer : {
- position: 'absolute',
- opacity: 0
- },
-
- // Get proper class
- className = node[_type] == _checkbox ? settings.checkboxClass || 'i' + _checkbox : settings.radioClass || 'i' + _radio,
-
- // Find assigned labels
- label = $(_label + '[for="' + id + '"]').add(self.closest(_label)),
-
- // Check ARIA option
- aria = !!settings.aria,
-
- // Set ARIA placeholder
- ariaID = _iCheck + '-' + Math.random().toString(36).substr(2,6),
-
- // Parent & helper
- parent = '<div class="' + className + '" ' + (aria ? 'role="' + node[_type] + '" ' : ''),
- helper;
-
- // Set ARIA "labelledby"
- if (aria) {
- label.each(function() {
- parent += 'aria-labelledby="';
-
- if (this.id) {
- parent += this.id;
- } else {
- this.id = ariaID;
- parent += ariaID;
- }
-
- parent += '"';
- });
- }
-
- // Wrap input
- parent = self.wrap(parent + '/>')[_callback]('ifCreated').parent().append(settings.insert);
-
- // Layer addition
- helper = $('<ins class="' + _iCheckHelper + '"/>').css(layer).appendTo(parent);
-
- // Finalize customization
- self.data(_iCheck, {o: settings, s: self.attr('style')}).css(hide);
- !!settings.inheritClass && parent[_add](node.className || '');
- !!settings.inheritID && id && parent.attr('id', _iCheck + '-' + id);
- parent.css('position') == 'static' && parent.css('position', 'relative');
- operate(self, true, _update);
-
- // Label events
- if (label.length) {
- label.on(_click + '.i mouseover.i mouseout.i ' + _touch, function(event) {
- var type = event[_type],
- item = $(this);
-
- // Do nothing if input is disabled
- if (!node[_disabled]) {
-
- // Click
- if (type == _click) {
- if ($(event.target).is('a')) {
- return;
- }
- operate(self, false, true);
-
- // Hover state
- } else if (labelHover) {
-
- // mouseout|touchend
- if (/ut|nd/.test(type)) {
- parent[_remove](hoverClass);
- item[_remove](labelHoverClass);
- } else {
- parent[_add](hoverClass);
- item[_add](labelHoverClass);
- }
- }
-
- if (_mobile) {
- event.stopPropagation();
- } else {
- return false;
- }
- }
- });
- }
-
- // Input events
- self.on(_click + '.i focus.i blur.i keyup.i keydown.i keypress.i', function(event) {
- var type = event[_type],
- key = event.keyCode;
-
- // Click
- if (type == _click) {
- return false;
-
- // Keydown
- } else if (type == 'keydown' && key == 32) {
- if (!(node[_type] == _radio && node[_checked])) {
- if (node[_checked]) {
- off(self, _checked);
- } else {
- on(self, _checked);
- }
- }
-
- return false;
-
- // Keyup
- } else if (type == 'keyup' && node[_type] == _radio) {
- !node[_checked] && on(self, _checked);
-
- // Focus/blur
- } else if (/us|ur/.test(type)) {
- parent[type == 'blur' ? _remove : _add](focusClass);
- }
- });
-
- // Helper events
- helper.on(_click + ' mousedown mouseup mouseover mouseout ' + _touch, function(event) {
- var type = event[_type],
-
- // mousedown|mouseup
- toggle = /wn|up/.test(type) ? activeClass : hoverClass;
-
- // Do nothing if input is disabled
- if (!node[_disabled]) {
-
- // Click
- if (type == _click) {
- operate(self, false, true);
-
- // Active and hover states
- } else {
-
- // State is on
- if (/wn|er|in/.test(type)) {
-
- // mousedown|mouseover|touchbegin
- parent[_add](toggle);
-
- // State is off
- } else {
- parent[_remove](toggle + ' ' + activeClass);
- }
-
- // Label hover
- if (label.length && labelHover && toggle == hoverClass) {
-
- // mouseout|touchend
- label[/ut|nd/.test(type) ? _remove : _add](labelHoverClass);
- }
- }
-
- if (_mobile) {
- event.stopPropagation();
- } else {
- return false;
- }
- }
- });
- });
- } else {
- return this;
- }
- };
-
- // Do something with inputs
- function operate(input, direct, method) {
- var node = input[0],
- state = /er/.test(method) ? _indeterminate : /bl/.test(method) ? _disabled : _checked,
- active = method == _update ? {
- checked: node[_checked],
- disabled: node[_disabled],
- indeterminate: input.attr(_indeterminate) == 'true' || input.attr(_determinate) == 'false'
- } : node[state];
-
- // Check, disable or indeterminate
- if (/^(ch|di|in)/.test(method) && !active) {
- on(input, state);
-
- // Uncheck, enable or determinate
- } else if (/^(un|en|de)/.test(method) && active) {
- off(input, state);
-
- // Update
- } else if (method == _update) {
-
- // Handle states
- for (var each in active) {
- if (active[each]) {
- on(input, each, true);
- } else {
- off(input, each, true);
- }
- }
-
- } else if (!direct || method == 'toggle') {
-
- // Helper or label was clicked
- if (!direct) {
- input[_callback]('ifClicked');
- }
-
- // Toggle checked state
- if (active) {
- if (node[_type] !== _radio) {
- off(input, state);
- }
- } else {
- on(input, state);
- }
- }
- }
-
- // Add checked, disabled or indeterminate state
- function on(input, state, keep) {
- var node = input[0],
- parent = input.parent(),
- checked = state == _checked,
- indeterminate = state == _indeterminate,
- disabled = state == _disabled,
- callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled',
- regular = option(input, callback + capitalize(node[_type])),
- specific = option(input, state + capitalize(node[_type]));
-
- // Prevent unnecessary actions
- if (node[state] !== true) {
-
- // Toggle assigned radio buttons
- if (!keep && state == _checked && node[_type] == _radio && node.name) {
- var form = input.closest('form'),
- inputs = 'input[name="' + node.name + '"]';
-
- inputs = form.length ? form.find(inputs) : $(inputs);
-
- inputs.each(function() {
- if (this !== node && $(this).data(_iCheck)) {
- off($(this), state);
- }
- });
- }
-
- // Indeterminate state
- if (indeterminate) {
-
- // Add indeterminate state
- node[state] = true;
-
- // Remove checked state
- if (node[_checked]) {
- off(input, _checked, 'force');
- }
-
- // Checked or disabled state
- } else {
-
- // Add checked or disabled state
- if (!keep) {
- node[state] = true;
- }
-
- // Remove indeterminate state
- if (checked && node[_indeterminate]) {
- off(input, _indeterminate, false);
- }
- }
-
- // Trigger callbacks
- callbacks(input, checked, state, keep);
- }
-
- // Add proper cursor
- if (node[_disabled] && !!option(input, _cursor, true)) {
- parent.find('.' + _iCheckHelper).css(_cursor, 'default');
- }
-
- // Add state class
- parent[_add](specific || option(input, state) || '');
-
- // Set ARIA attribute
- if (!!parent.attr('role') && !indeterminate) {
- parent.attr('aria-' + (disabled ? _disabled : _checked), 'true');
- }
-
- // Remove regular state class
- parent[_remove](regular || option(input, callback) || '');
- }
-
- // Remove checked, disabled or indeterminate state
- function off(input, state, keep) {
- var node = input[0],
- parent = input.parent(),
- checked = state == _checked,
- indeterminate = state == _indeterminate,
- disabled = state == _disabled,
- callback = indeterminate ? _determinate : checked ? _unchecked : 'enabled',
- regular = option(input, callback + capitalize(node[_type])),
- specific = option(input, state + capitalize(node[_type]));
-
- // Prevent unnecessary actions
- if (node[state] !== false) {
-
- // Toggle state
- if (indeterminate || !keep || keep == 'force') {
- node[state] = false;
- }
-
- // Trigger callbacks
- callbacks(input, checked, callback, keep);
- }
-
- // Add proper cursor
- if (!node[_disabled] && !!option(input, _cursor, true)) {
- parent.find('.' + _iCheckHelper).css(_cursor, 'pointer');
- }
-
- // Remove state class
- parent[_remove](specific || option(input, state) || '');
-
- // Set ARIA attribute
- if (!!parent.attr('role') && !indeterminate) {
- parent.attr('aria-' + (disabled ? _disabled : _checked), 'false');
- }
-
- // Add regular state class
- parent[_add](regular || option(input, callback) || '');
- }
-
- // Remove all traces
- function tidy(input, callback) {
- if (input.data(_iCheck)) {
-
- // Remove everything except input
- input.parent().html(input.attr('style', input.data(_iCheck).s || ''));
-
- // Callback
- if (callback) {
- input[_callback](callback);
- }
-
- // Unbind events
- input.off('.i').unwrap();
- $(_label + '[for="' + input[0].id + '"]').add(input.closest(_label)).off('.i');
- }
- }
-
- // Get some option
- function option(input, state, regular) {
- if (input.data(_iCheck)) {
- return input.data(_iCheck).o[state + (regular ? '' : 'Class')];
- }
- }
-
- // Capitalize some string
- function capitalize(string) {
- return string.charAt(0).toUpperCase() + string.slice(1);
- }
-
- // Executable handlers
- function callbacks(input, checked, callback, keep) {
- if (!keep) {
- if (checked) {
- input[_callback]('ifToggled');
- }
-
- input[_callback]('ifChanged')[_callback]('if' + capitalize(callback));
- }
- }
-})(window.jQuery || window.Zepto);
diff --git a/common/src/main/webapp/thirdparty/icheck/icheck.min.js b/common/src/main/webapp/thirdparty/icheck/icheck.min.js
deleted file mode 100644
index 7cdb17e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/icheck.min.js
+++ /dev/null
@@ -1,11 +0,0 @@
-/*! iCheck v1.0.2 by Damir Sultanov, http://git.io/arlzeA, MIT Licensed */
-(function(f){function A(a,b,d){var c=a[0],g=/er/.test(d)?_indeterminate:/bl/.test(d)?n:k,e=d==_update?{checked:c[k],disabled:c[n],indeterminate:"true"==a.attr(_indeterminate)||"false"==a.attr(_determinate)}:c[g];if(/^(ch|di|in)/.test(d)&&!e)x(a,g);else if(/^(un|en|de)/.test(d)&&e)q(a,g);else if(d==_update)for(var f in e)e[f]?x(a,f,!0):q(a,f,!0);else if(!b||"toggle"==d){if(!b)a[_callback]("ifClicked");e?c[_type]!==r&&q(a,g):x(a,g)}}function x(a,b,d){var c=a[0],g=a.parent(),e=b==k,u=b==_indeterminate,
-v=b==n,s=u?_determinate:e?y:"enabled",F=l(a,s+t(c[_type])),B=l(a,b+t(c[_type]));if(!0!==c[b]){if(!d&&b==k&&c[_type]==r&&c.name){var w=a.closest("form"),p='input[name="'+c.name+'"]',p=w.length?w.find(p):f(p);p.each(function(){this!==c&&f(this).data(m)&&q(f(this),b)})}u?(c[b]=!0,c[k]&&q(a,k,"force")):(d||(c[b]=!0),e&&c[_indeterminate]&&q(a,_indeterminate,!1));D(a,e,b,d)}c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"default");g[_add](B||l(a,b)||"");g.attr("role")&&!u&&g.attr("aria-"+(v?n:k),"true");
-g[_remove](F||l(a,s)||"")}function q(a,b,d){var c=a[0],g=a.parent(),e=b==k,f=b==_indeterminate,m=b==n,s=f?_determinate:e?y:"enabled",q=l(a,s+t(c[_type])),r=l(a,b+t(c[_type]));if(!1!==c[b]){if(f||!d||"force"==d)c[b]=!1;D(a,e,s,d)}!c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"pointer");g[_remove](r||l(a,b)||"");g.attr("role")&&!f&&g.attr("aria-"+(m?n:k),"false");g[_add](q||l(a,s)||"")}function E(a,b){if(a.data(m)){a.parent().html(a.attr("style",a.data(m).s||""));if(b)a[_callback](b);a.off(".i").unwrap();
-f(_label+'[for="'+a[0].id+'"]').add(a.closest(_label)).off(".i")}}function l(a,b,f){if(a.data(m))return a.data(m).o[b+(f?"":"Class")]}function t(a){return a.charAt(0).toUpperCase()+a.slice(1)}function D(a,b,f,c){if(!c){if(b)a[_callback]("ifToggled");a[_callback]("ifChanged")[_callback]("if"+t(f))}}var m="iCheck",C=m+"-helper",r="radio",k="checked",y="un"+k,n="disabled";_determinate="determinate";_indeterminate="in"+_determinate;_update="update";_type="type";_click="click";_touch="touchbegin.i touchend.i";
-_add="addClass";_remove="removeClass";_callback="trigger";_label="label";_cursor="cursor";_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);f.fn[m]=function(a,b){var d='input[type="checkbox"], input[type="'+r+'"]',c=f(),g=function(a){a.each(function(){var a=f(this);c=a.is(d)?c.add(a):c.add(a.find(d))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(a))return a=a.toLowerCase(),g(this),c.each(function(){var c=
-f(this);"destroy"==a?E(c,"ifDestroyed"):A(c,!0,a);f.isFunction(b)&&b()});if("object"!=typeof a&&a)return this;var e=f.extend({checkedClass:k,disabledClass:n,indeterminateClass:_indeterminate,labelHover:!0},a),l=e.handle,v=e.hoverClass||"hover",s=e.focusClass||"focus",t=e.activeClass||"active",B=!!e.labelHover,w=e.labelHoverClass||"hover",p=(""+e.increaseArea).replace("%","")|0;if("checkbox"==l||l==r)d='input[type="'+l+'"]';-50>p&&(p=-50);g(this);return c.each(function(){var a=f(this);E(a);var c=this,
-b=c.id,g=-p+"%",d=100+2*p+"%",d={position:"absolute",top:g,left:g,display:"block",width:d,height:d,margin:0,padding:0,background:"#fff",border:0,opacity:0},g=_mobile?{position:"absolute",visibility:"hidden"}:p?d:{position:"absolute",opacity:0},l="checkbox"==c[_type]?e.checkboxClass||"icheckbox":e.radioClass||"i"+r,z=f(_label+'[for="'+b+'"]').add(a.closest(_label)),u=!!e.aria,y=m+"-"+Math.random().toString(36).substr(2,6),h='<div class="'+l+'" '+(u?'role="'+c[_type]+'" ':"");u&&z.each(function(){h+=
-'aria-labelledby="';this.id?h+=this.id:(this.id=y,h+=y);h+='"'});h=a.wrap(h+"/>")[_callback]("ifCreated").parent().append(e.insert);d=f('<ins class="'+C+'"/>').css(d).appendTo(h);a.data(m,{o:e,s:a.attr("style")}).css(g);e.inheritClass&&h[_add](c.className||"");e.inheritID&&b&&h.attr("id",m+"-"+b);"static"==h.css("position")&&h.css("position","relative");A(a,!0,_update);if(z.length)z.on(_click+".i mouseover.i mouseout.i "+_touch,function(b){var d=b[_type],e=f(this);if(!c[n]){if(d==_click){if(f(b.target).is("a"))return;
-A(a,!1,!0)}else B&&(/ut|nd/.test(d)?(h[_remove](v),e[_remove](w)):(h[_add](v),e[_add](w)));if(_mobile)b.stopPropagation();else return!1}});a.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(b){var d=b[_type];b=b.keyCode;if(d==_click)return!1;if("keydown"==d&&32==b)return c[_type]==r&&c[k]||(c[k]?q(a,k):x(a,k)),!1;if("keyup"==d&&c[_type]==r)!c[k]&&x(a,k);else if(/us|ur/.test(d))h["blur"==d?_remove:_add](s)});d.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(b){var d=
-b[_type],e=/wn|up/.test(d)?t:v;if(!c[n]){if(d==_click)A(a,!1,!0);else{if(/wn|er|in/.test(d))h[_add](e);else h[_remove](e+" "+t);if(z.length&&B&&e==v)z[/ut|nd/.test(d)?_remove:_add](w)}if(_mobile)b.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/all.css b/common/src/main/webapp/thirdparty/icheck/skins/all.css
deleted file mode 100644
index 6439b74..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/all.css
+++ /dev/null
@@ -1,61 +0,0 @@
-/* iCheck plugin skins
------------------------------------ */
-@import url("minimal/_all.css");
-/*
-@import url("minimal/minimal.css");
-@import url("minimal/red.css");
-@import url("minimal/green.css");
-@import url("minimal/blue.css");
-@import url("minimal/aero.css");
-@import url("minimal/grey.css");
-@import url("minimal/orange.css");
-@import url("minimal/yellow.css");
-@import url("minimal/pink.css");
-@import url("minimal/purple.css");
-*/
-
-@import url("square/_all.css");
-/*
-@import url("square/square.css");
-@import url("square/red.css");
-@import url("square/green.css");
-@import url("square/blue.css");
-@import url("square/aero.css");
-@import url("square/grey.css");
-@import url("square/orange.css");
-@import url("square/yellow.css");
-@import url("square/pink.css");
-@import url("square/purple.css");
-*/
-
-@import url("flat/_all.css");
-/*
-@import url("flat/flat.css");
-@import url("flat/red.css");
-@import url("flat/green.css");
-@import url("flat/blue.css");
-@import url("flat/aero.css");
-@import url("flat/grey.css");
-@import url("flat/orange.css");
-@import url("flat/yellow.css");
-@import url("flat/pink.css");
-@import url("flat/purple.css");
-*/
-
-@import url("line/_all.css");
-/*
-@import url("line/line.css");
-@import url("line/red.css");
-@import url("line/green.css");
-@import url("line/blue.css");
-@import url("line/aero.css");
-@import url("line/grey.css");
-@import url("line/orange.css");
-@import url("line/yellow.css");
-@import url("line/pink.css");
-@import url("line/purple.css");
-*/
-
-@import url("polaris/polaris.css");
-
-@import url("futurico/futurico.css"); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/_all.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/_all.css
deleted file mode 100644
index cf5ea76..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/_all.css
+++ /dev/null
@@ -1,530 +0,0 @@
-/* iCheck plugin Flat skin
------------------------------------ */
-.icheckbox_flat,
-.iradio_flat {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(flat.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat {
- background-position: 0 0;
-}
- .icheckbox_flat.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat {
- background-position: -88px 0;
-}
- .iradio_flat.checked {
- background-position: -110px 0;
- }
- .iradio_flat.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat,
- .iradio_flat {
- background-image: url(flat@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* red */
-.icheckbox_flat-red,
-.iradio_flat-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-red {
- background-position: 0 0;
-}
- .icheckbox_flat-red.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-red.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-red.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-red {
- background-position: -88px 0;
-}
- .iradio_flat-red.checked {
- background-position: -110px 0;
- }
- .iradio_flat-red.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-red.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-red,
- .iradio_flat-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* green */
-.icheckbox_flat-green,
-.iradio_flat-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-green {
- background-position: 0 0;
-}
- .icheckbox_flat-green.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-green.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-green.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-green {
- background-position: -88px 0;
-}
- .iradio_flat-green.checked {
- background-position: -110px 0;
- }
- .iradio_flat-green.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-green.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-green,
- .iradio_flat-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* blue */
-.icheckbox_flat-blue,
-.iradio_flat-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-blue {
- background-position: 0 0;
-}
- .icheckbox_flat-blue.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-blue.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-blue.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-blue {
- background-position: -88px 0;
-}
- .iradio_flat-blue.checked {
- background-position: -110px 0;
- }
- .iradio_flat-blue.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-blue.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-blue,
- .iradio_flat-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* aero */
-.icheckbox_flat-aero,
-.iradio_flat-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-aero {
- background-position: 0 0;
-}
- .icheckbox_flat-aero.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-aero.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-aero.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-aero {
- background-position: -88px 0;
-}
- .iradio_flat-aero.checked {
- background-position: -110px 0;
- }
- .iradio_flat-aero.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-aero.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-aero,
- .iradio_flat-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* grey */
-.icheckbox_flat-grey,
-.iradio_flat-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-grey {
- background-position: 0 0;
-}
- .icheckbox_flat-grey.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-grey.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-grey.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-grey {
- background-position: -88px 0;
-}
- .iradio_flat-grey.checked {
- background-position: -110px 0;
- }
- .iradio_flat-grey.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-grey.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-grey,
- .iradio_flat-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* orange */
-.icheckbox_flat-orange,
-.iradio_flat-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-orange {
- background-position: 0 0;
-}
- .icheckbox_flat-orange.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-orange.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-orange.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-orange {
- background-position: -88px 0;
-}
- .iradio_flat-orange.checked {
- background-position: -110px 0;
- }
- .iradio_flat-orange.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-orange.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-orange,
- .iradio_flat-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* yellow */
-.icheckbox_flat-yellow,
-.iradio_flat-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-yellow {
- background-position: 0 0;
-}
- .icheckbox_flat-yellow.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-yellow.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-yellow.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-yellow {
- background-position: -88px 0;
-}
- .iradio_flat-yellow.checked {
- background-position: -110px 0;
- }
- .iradio_flat-yellow.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-yellow.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-yellow,
- .iradio_flat-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* pink */
-.icheckbox_flat-pink,
-.iradio_flat-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-pink {
- background-position: 0 0;
-}
- .icheckbox_flat-pink.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-pink.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-pink.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-pink {
- background-position: -88px 0;
-}
- .iradio_flat-pink.checked {
- background-position: -110px 0;
- }
- .iradio_flat-pink.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-pink.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_flat-pink,
- .iradio_flat-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-}
-
-/* purple */
-.icheckbox_flat-purple,
-.iradio_flat-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-purple {
- background-position: 0 0;
-}
- .icheckbox_flat-purple.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-purple.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-purple.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-purple {
- background-position: -88px 0;
-}
- .iradio_flat-purple.checked {
- background-position: -110px 0;
- }
- .iradio_flat-purple.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-purple.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-purple,
- .iradio_flat-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.css
deleted file mode 100644
index dc769c7..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, aero
------------------------------------ */
-.icheckbox_flat-aero,
-.iradio_flat-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-aero {
- background-position: 0 0;
-}
- .icheckbox_flat-aero.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-aero.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-aero.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-aero {
- background-position: -88px 0;
-}
- .iradio_flat-aero.checked {
- background-position: -110px 0;
- }
- .iradio_flat-aero.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-aero.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-aero,
- .iradio_flat-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.png
deleted file mode 100644
index f4277aa..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/aero@2x.png
deleted file mode 100644
index a9a7494..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/aero@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.css
deleted file mode 100644
index af091c8..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, blue
------------------------------------ */
-.icheckbox_flat-blue,
-.iradio_flat-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-blue {
- background-position: 0 0;
-}
- .icheckbox_flat-blue.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-blue.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-blue.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-blue {
- background-position: -88px 0;
-}
- .iradio_flat-blue.checked {
- background-position: -110px 0;
- }
- .iradio_flat-blue.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-blue.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-blue,
- .iradio_flat-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.png
deleted file mode 100644
index 4b6ef98..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/blue@2x.png
deleted file mode 100644
index d52da05..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/blue@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.css
deleted file mode 100644
index 665bc7b..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin flat skin, black
------------------------------------ */
-.icheckbox_flat,
-.iradio_flat {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(flat.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat {
- background-position: 0 0;
-}
- .icheckbox_flat.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat {
- background-position: -88px 0;
-}
- .iradio_flat.checked {
- background-position: -110px 0;
- }
- .iradio_flat.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat,
- .iradio_flat {
- background-image: url(flat@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.png
deleted file mode 100644
index 15af826..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/flat@2x.png
deleted file mode 100644
index e70e438..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/flat@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/green.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/green.css
deleted file mode 100644
index cce7a7f..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/green.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, green
------------------------------------ */
-.icheckbox_flat-green,
-.iradio_flat-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-green {
- background-position: 0 0;
-}
- .icheckbox_flat-green.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-green.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-green.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-green {
- background-position: -88px 0;
-}
- .iradio_flat-green.checked {
- background-position: -110px 0;
- }
- .iradio_flat-green.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-green.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-green,
- .iradio_flat-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/green.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/green.png
deleted file mode 100644
index 6b303fb..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/green.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/green@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/green@2x.png
deleted file mode 100644
index 92b4411..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/green@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.css
deleted file mode 100644
index 46305d0..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, grey
------------------------------------ */
-.icheckbox_flat-grey,
-.iradio_flat-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-grey {
- background-position: 0 0;
-}
- .icheckbox_flat-grey.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-grey.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-grey.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-grey {
- background-position: -88px 0;
-}
- .iradio_flat-grey.checked {
- background-position: -110px 0;
- }
- .iradio_flat-grey.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-grey.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-grey,
- .iradio_flat-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.png
deleted file mode 100644
index c6e2873..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/grey@2x.png
deleted file mode 100644
index 0b47b1c..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/grey@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.css
deleted file mode 100644
index c8d3caf..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, orange
------------------------------------ */
-.icheckbox_flat-orange,
-.iradio_flat-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-orange {
- background-position: 0 0;
-}
- .icheckbox_flat-orange.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-orange.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-orange.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-orange {
- background-position: -88px 0;
-}
- .iradio_flat-orange.checked {
- background-position: -110px 0;
- }
- .iradio_flat-orange.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-orange.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-orange,
- .iradio_flat-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.png
deleted file mode 100644
index ec2532e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/orange@2x.png
deleted file mode 100644
index 9350b50..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/orange@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.css
deleted file mode 100644
index e4ca254..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, pink
------------------------------------ */
-.icheckbox_flat-pink,
-.iradio_flat-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-pink {
- background-position: 0 0;
-}
- .icheckbox_flat-pink.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-pink.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-pink.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-pink {
- background-position: -88px 0;
-}
- .iradio_flat-pink.checked {
- background-position: -110px 0;
- }
- .iradio_flat-pink.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-pink.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-pink,
- .iradio_flat-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.png
deleted file mode 100644
index 3e65d9d..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/pink@2x.png
deleted file mode 100644
index 281ba06..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/pink@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.css
deleted file mode 100644
index 15408bc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, purple
------------------------------------ */
-.icheckbox_flat-purple,
-.iradio_flat-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-purple {
- background-position: 0 0;
-}
- .icheckbox_flat-purple.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-purple.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-purple.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-purple {
- background-position: -88px 0;
-}
- .iradio_flat-purple.checked {
- background-position: -110px 0;
- }
- .iradio_flat-purple.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-purple.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-purple,
- .iradio_flat-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.png
deleted file mode 100644
index 3699fd5..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/purple@2x.png
deleted file mode 100644
index 7f4be74..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/purple@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/red.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/red.css
deleted file mode 100644
index d2e240d..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/red.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, red
------------------------------------ */
-.icheckbox_flat-red,
-.iradio_flat-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-red {
- background-position: 0 0;
-}
- .icheckbox_flat-red.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-red.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-red.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-red {
- background-position: -88px 0;
-}
- .iradio_flat-red.checked {
- background-position: -110px 0;
- }
- .iradio_flat-red.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-red.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-red,
- .iradio_flat-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/red.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/red.png
deleted file mode 100644
index 0d5ac38..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/red.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/red@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/red@2x.png
deleted file mode 100644
index 38590d9..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/red@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.css b/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.css
deleted file mode 100644
index ce130af..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Flat skin, yellow
------------------------------------ */
-.icheckbox_flat-yellow,
-.iradio_flat-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 20px;
- height: 20px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_flat-yellow {
- background-position: 0 0;
-}
- .icheckbox_flat-yellow.checked {
- background-position: -22px 0;
- }
- .icheckbox_flat-yellow.disabled {
- background-position: -44px 0;
- cursor: default;
- }
- .icheckbox_flat-yellow.checked.disabled {
- background-position: -66px 0;
- }
-
-.iradio_flat-yellow {
- background-position: -88px 0;
-}
- .iradio_flat-yellow.checked {
- background-position: -110px 0;
- }
- .iradio_flat-yellow.disabled {
- background-position: -132px 0;
- cursor: default;
- }
- .iradio_flat-yellow.checked.disabled {
- background-position: -154px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_flat-yellow,
- .iradio_flat-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 176px 22px;
- background-size: 176px 22px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.png
deleted file mode 100644
index 909dadc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow@2x.png
deleted file mode 100644
index 9fd5d73..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/flat/yellow@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.css b/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.css
deleted file mode 100644
index 23649a7..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.css
+++ /dev/null
@@ -1,53 +0,0 @@
-/* iCheck plugin Futurico skin
------------------------------------ */
-.icheckbox_futurico,
-.iradio_futurico {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 16px;
- height: 17px;
- background: url(futurico.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_futurico {
- background-position: 0 0;
-}
- .icheckbox_futurico.checked {
- background-position: -18px 0;
- }
- .icheckbox_futurico.disabled {
- background-position: -36px 0;
- cursor: default;
- }
- .icheckbox_futurico.checked.disabled {
- background-position: -54px 0;
- }
-
-.iradio_futurico {
- background-position: -72px 0;
-}
- .iradio_futurico.checked {
- background-position: -90px 0;
- }
- .iradio_futurico.disabled {
- background-position: -108px 0;
- cursor: default;
- }
- .iradio_futurico.checked.disabled {
- background-position: -126px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_futurico,
- .iradio_futurico {
- background-image: url(futurico@2x.png);
- -webkit-background-size: 144px 19px;
- background-size: 144px 19px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.png b/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.png
deleted file mode 100644
index 50d62b5..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico@2x.png
deleted file mode 100644
index f7eb45a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/Thumbs.db b/common/src/main/webapp/thirdparty/icheck/skins/line/Thumbs.db
deleted file mode 100644
index a598050..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/Thumbs.db
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/_all.css b/common/src/main/webapp/thirdparty/icheck/skins/line/_all.css
deleted file mode 100644
index 14ff6cc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/_all.css
+++ /dev/null
@@ -1,710 +0,0 @@
-/* iCheck plugin Line skin
------------------------------------ */
-.icheckbox_line,
-.iradio_line {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #000;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line .icheck_line-icon,
- .iradio_line .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line.hover,
- .icheckbox_line.checked.hover,
- .iradio_line.hover {
- background: #444;
- }
- .icheckbox_line.checked,
- .iradio_line.checked {
- background: #000;
- }
- .icheckbox_line.checked .icheck_line-icon,
- .iradio_line.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line.disabled,
- .iradio_line.disabled {
- background: #ccc;
- cursor: default;
- }
- .icheckbox_line.disabled .icheck_line-icon,
- .iradio_line.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line.checked.disabled,
- .iradio_line.checked.disabled {
- background: #ccc;
- }
- .icheckbox_line.checked.disabled .icheck_line-icon,
- .iradio_line.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line .icheck_line-icon,
- .iradio_line .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* red */
-.icheckbox_line-red,
-.iradio_line-red {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #e56c69;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-red .icheck_line-icon,
- .iradio_line-red .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-red.hover,
- .icheckbox_line-red.checked.hover,
- .iradio_line-red.hover {
- background: #E98582;
- }
- .icheckbox_line-red.checked,
- .iradio_line-red.checked {
- background: #e56c69;
- }
- .icheckbox_line-red.checked .icheck_line-icon,
- .iradio_line-red.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-red.disabled,
- .iradio_line-red.disabled {
- background: #F7D3D2;
- cursor: default;
- }
- .icheckbox_line-red.disabled .icheck_line-icon,
- .iradio_line-red.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-red.checked.disabled,
- .iradio_line-red.checked.disabled {
- background: #F7D3D2;
- }
- .icheckbox_line-red.checked.disabled .icheck_line-icon,
- .iradio_line-red.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-red .icheck_line-icon,
- .iradio_line-red .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* green */
-.icheckbox_line-green,
-.iradio_line-green {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #1b7e5a;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-green .icheck_line-icon,
- .iradio_line-green .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-green.hover,
- .icheckbox_line-green.checked.hover,
- .iradio_line-green.hover {
- background: #24AA7A;
- }
- .icheckbox_line-green.checked,
- .iradio_line-green.checked {
- background: #1b7e5a;
- }
- .icheckbox_line-green.checked .icheck_line-icon,
- .iradio_line-green.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-green.disabled,
- .iradio_line-green.disabled {
- background: #89E6C4;
- cursor: default;
- }
- .icheckbox_line-green.disabled .icheck_line-icon,
- .iradio_line-green.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-green.checked.disabled,
- .iradio_line-green.checked.disabled {
- background: #89E6C4;
- }
- .icheckbox_line-green.checked.disabled .icheck_line-icon,
- .iradio_line-green.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-green .icheck_line-icon,
- .iradio_line-green .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* blue */
-.icheckbox_line-blue,
-.iradio_line-blue {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #2489c5;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-blue .icheck_line-icon,
- .iradio_line-blue .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-blue.hover,
- .icheckbox_line-blue.checked.hover,
- .iradio_line-blue.hover {
- background: #3DA0DB;
- }
- .icheckbox_line-blue.checked,
- .iradio_line-blue.checked {
- background: #2489c5;
- }
- .icheckbox_line-blue.checked .icheck_line-icon,
- .iradio_line-blue.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-blue.disabled,
- .iradio_line-blue.disabled {
- background: #ADD7F0;
- cursor: default;
- }
- .icheckbox_line-blue.disabled .icheck_line-icon,
- .iradio_line-blue.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-blue.checked.disabled,
- .iradio_line-blue.checked.disabled {
- background: #ADD7F0;
- }
- .icheckbox_line-blue.checked.disabled .icheck_line-icon,
- .iradio_line-blue.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-blue .icheck_line-icon,
- .iradio_line-blue .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* aero */
-.icheckbox_line-aero,
-.iradio_line-aero {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #9cc2cb;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-aero .icheck_line-icon,
- .iradio_line-aero .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-aero.hover,
- .icheckbox_line-aero.checked.hover,
- .iradio_line-aero.hover {
- background: #B5D1D8;
- }
- .icheckbox_line-aero.checked,
- .iradio_line-aero.checked {
- background: #9cc2cb;
- }
- .icheckbox_line-aero.checked .icheck_line-icon,
- .iradio_line-aero.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-aero.disabled,
- .iradio_line-aero.disabled {
- background: #D2E4E8;
- cursor: default;
- }
- .icheckbox_line-aero.disabled .icheck_line-icon,
- .iradio_line-aero.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-aero.checked.disabled,
- .iradio_line-aero.checked.disabled {
- background: #D2E4E8;
- }
- .icheckbox_line-aero.checked.disabled .icheck_line-icon,
- .iradio_line-aero.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-aero .icheck_line-icon,
- .iradio_line-aero .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* grey */
-.icheckbox_line-grey,
-.iradio_line-grey {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #73716e;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-grey .icheck_line-icon,
- .iradio_line-grey .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-grey.hover,
- .icheckbox_line-grey.checked.hover,
- .iradio_line-grey.hover {
- background: #8B8986;
- }
- .icheckbox_line-grey.checked,
- .iradio_line-grey.checked {
- background: #73716e;
- }
- .icheckbox_line-grey.checked .icheck_line-icon,
- .iradio_line-grey.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-grey.disabled,
- .iradio_line-grey.disabled {
- background: #D5D4D3;
- cursor: default;
- }
- .icheckbox_line-grey.disabled .icheck_line-icon,
- .iradio_line-grey.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-grey.checked.disabled,
- .iradio_line-grey.checked.disabled {
- background: #D5D4D3;
- }
- .icheckbox_line-grey.checked.disabled .icheck_line-icon,
- .iradio_line-grey.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-grey .icheck_line-icon,
- .iradio_line-grey .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* orange */
-.icheckbox_line-orange,
-.iradio_line-orange {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #f70;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-orange .icheck_line-icon,
- .iradio_line-orange .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-orange.hover,
- .icheckbox_line-orange.checked.hover,
- .iradio_line-orange.hover {
- background: #FF9233;
- }
- .icheckbox_line-orange.checked,
- .iradio_line-orange.checked {
- background: #f70;
- }
- .icheckbox_line-orange.checked .icheck_line-icon,
- .iradio_line-orange.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-orange.disabled,
- .iradio_line-orange.disabled {
- background: #FFD6B3;
- cursor: default;
- }
- .icheckbox_line-orange.disabled .icheck_line-icon,
- .iradio_line-orange.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-orange.checked.disabled,
- .iradio_line-orange.checked.disabled {
- background: #FFD6B3;
- }
- .icheckbox_line-orange.checked.disabled .icheck_line-icon,
- .iradio_line-orange.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-orange .icheck_line-icon,
- .iradio_line-orange .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* yellow */
-.icheckbox_line-yellow,
-.iradio_line-yellow {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #FFC414;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-yellow .icheck_line-icon,
- .iradio_line-yellow .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-yellow.hover,
- .icheckbox_line-yellow.checked.hover,
- .iradio_line-yellow.hover {
- background: #FFD34F;
- }
- .icheckbox_line-yellow.checked,
- .iradio_line-yellow.checked {
- background: #FFC414;
- }
- .icheckbox_line-yellow.checked .icheck_line-icon,
- .iradio_line-yellow.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-yellow.disabled,
- .iradio_line-yellow.disabled {
- background: #FFE495;
- cursor: default;
- }
- .icheckbox_line-yellow.disabled .icheck_line-icon,
- .iradio_line-yellow.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-yellow.checked.disabled,
- .iradio_line-yellow.checked.disabled {
- background: #FFE495;
- }
- .icheckbox_line-yellow.checked.disabled .icheck_line-icon,
- .iradio_line-yellow.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-yellow .icheck_line-icon,
- .iradio_line-yellow .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* pink */
-.icheckbox_line-pink,
-.iradio_line-pink {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #a77a94;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-pink .icheck_line-icon,
- .iradio_line-pink .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-pink.hover,
- .icheckbox_line-pink.checked.hover,
- .iradio_line-pink.hover {
- background: #B995A9;
- }
- .icheckbox_line-pink.checked,
- .iradio_line-pink.checked {
- background: #a77a94;
- }
- .icheckbox_line-pink.checked .icheck_line-icon,
- .iradio_line-pink.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-pink.disabled,
- .iradio_line-pink.disabled {
- background: #E0D0DA;
- cursor: default;
- }
- .icheckbox_line-pink.disabled .icheck_line-icon,
- .iradio_line-pink.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-pink.checked.disabled,
- .iradio_line-pink.checked.disabled {
- background: #E0D0DA;
- }
- .icheckbox_line-pink.checked.disabled .icheck_line-icon,
- .iradio_line-pink.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_line-pink .icheck_line-icon,
- .iradio_line-pink .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
-
-/* purple */
-.icheckbox_line-purple,
-.iradio_line-purple {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #6a5a8c;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-purple .icheck_line-icon,
- .iradio_line-purple .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-purple.hover,
- .icheckbox_line-purple.checked.hover,
- .iradio_line-purple.hover {
- background: #8677A7;
- }
- .icheckbox_line-purple.checked,
- .iradio_line-purple.checked {
- background: #6a5a8c;
- }
- .icheckbox_line-purple.checked .icheck_line-icon,
- .iradio_line-purple.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-purple.disabled,
- .iradio_line-purple.disabled {
- background: #D2CCDE;
- cursor: default;
- }
- .icheckbox_line-purple.disabled .icheck_line-icon,
- .iradio_line-purple.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-purple.checked.disabled,
- .iradio_line-purple.checked.disabled {
- background: #D2CCDE;
- }
- .icheckbox_line-purple.checked.disabled .icheck_line-icon,
- .iradio_line-purple.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-purple .icheck_line-icon,
- .iradio_line-purple .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-}
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/aero.css b/common/src/main/webapp/thirdparty/icheck/skins/line/aero.css
deleted file mode 100644
index e6dd82a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/aero.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, aero
------------------------------------ */
-.icheckbox_line-aero,
-.iradio_line-aero {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #9cc2cb;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-aero .icheck_line-icon,
- .iradio_line-aero .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-aero.hover,
- .icheckbox_line-aero.checked.hover,
- .iradio_line-aero.hover {
- background: #B5D1D8;
- }
- .icheckbox_line-aero.checked,
- .iradio_line-aero.checked {
- background: #9cc2cb;
- }
- .icheckbox_line-aero.checked .icheck_line-icon,
- .iradio_line-aero.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-aero.disabled,
- .iradio_line-aero.disabled {
- background: #D2E4E8;
- cursor: default;
- }
- .icheckbox_line-aero.disabled .icheck_line-icon,
- .iradio_line-aero.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-aero.checked.disabled,
- .iradio_line-aero.checked.disabled {
- background: #D2E4E8;
- }
- .icheckbox_line-aero.checked.disabled .icheck_line-icon,
- .iradio_line-aero.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-aero .icheck_line-icon,
- .iradio_line-aero .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/blue.css b/common/src/main/webapp/thirdparty/icheck/skins/line/blue.css
deleted file mode 100644
index 8f105d9..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/blue.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, blue
------------------------------------ */
-.icheckbox_line-blue,
-.iradio_line-blue {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #2489c5;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-blue .icheck_line-icon,
- .iradio_line-blue .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-blue.hover,
- .icheckbox_line-blue.checked.hover,
- .iradio_line-blue.hover {
- background: #3DA0DB;
- }
- .icheckbox_line-blue.checked,
- .iradio_line-blue.checked {
- background: #2489c5;
- }
- .icheckbox_line-blue.checked .icheck_line-icon,
- .iradio_line-blue.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-blue.disabled,
- .iradio_line-blue.disabled {
- background: #ADD7F0;
- cursor: default;
- }
- .icheckbox_line-blue.disabled .icheck_line-icon,
- .iradio_line-blue.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-blue.checked.disabled,
- .iradio_line-blue.checked.disabled {
- background: #ADD7F0;
- }
- .icheckbox_line-blue.checked.disabled .icheck_line-icon,
- .iradio_line-blue.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-blue .icheck_line-icon,
- .iradio_line-blue .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/green.css b/common/src/main/webapp/thirdparty/icheck/skins/line/green.css
deleted file mode 100644
index 9535c7c..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/green.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, green
------------------------------------ */
-.icheckbox_line-green,
-.iradio_line-green {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #1b7e5a;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-green .icheck_line-icon,
- .iradio_line-green .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-green.hover,
- .icheckbox_line-green.checked.hover,
- .iradio_line-green.hover {
- background: #24AA7A;
- }
- .icheckbox_line-green.checked,
- .iradio_line-green.checked {
- background: #1b7e5a;
- }
- .icheckbox_line-green.checked .icheck_line-icon,
- .iradio_line-green.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-green.disabled,
- .iradio_line-green.disabled {
- background: #89E6C4;
- cursor: default;
- }
- .icheckbox_line-green.disabled .icheck_line-icon,
- .iradio_line-green.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-green.checked.disabled,
- .iradio_line-green.checked.disabled {
- background: #89E6C4;
- }
- .icheckbox_line-green.checked.disabled .icheck_line-icon,
- .iradio_line-green.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-green .icheck_line-icon,
- .iradio_line-green .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/grey.css b/common/src/main/webapp/thirdparty/icheck/skins/line/grey.css
deleted file mode 100644
index 9e34053..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/grey.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, grey
------------------------------------ */
-.icheckbox_line-grey,
-.iradio_line-grey {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #73716e;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-grey .icheck_line-icon,
- .iradio_line-grey .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-grey.hover,
- .icheckbox_line-grey.checked.hover,
- .iradio_line-grey.hover {
- background: #8B8986;
- }
- .icheckbox_line-grey.checked,
- .iradio_line-grey.checked {
- background: #73716e;
- }
- .icheckbox_line-grey.checked .icheck_line-icon,
- .iradio_line-grey.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-grey.disabled,
- .iradio_line-grey.disabled {
- background: #D5D4D3;
- cursor: default;
- }
- .icheckbox_line-grey.disabled .icheck_line-icon,
- .iradio_line-grey.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-grey.checked.disabled,
- .iradio_line-grey.checked.disabled {
- background: #D5D4D3;
- }
- .icheckbox_line-grey.checked.disabled .icheck_line-icon,
- .iradio_line-grey.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-grey .icheck_line-icon,
- .iradio_line-grey .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/line.css b/common/src/main/webapp/thirdparty/icheck/skins/line/line.css
deleted file mode 100644
index 2173a25..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/line.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, black
------------------------------------ */
-.icheckbox_line,
-.iradio_line {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #000;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line .icheck_line-icon,
- .iradio_line .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line.hover,
- .icheckbox_line.checked.hover,
- .iradio_line.hover {
- background: #444;
- }
- .icheckbox_line.checked,
- .iradio_line.checked {
- background: #000;
- }
- .icheckbox_line.checked .icheck_line-icon,
- .iradio_line.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line.disabled,
- .iradio_line.disabled {
- background: #ccc;
- cursor: default;
- }
- .icheckbox_line.disabled .icheck_line-icon,
- .iradio_line.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line.checked.disabled,
- .iradio_line.checked.disabled {
- background: #ccc;
- }
- .icheckbox_line.checked.disabled .icheck_line-icon,
- .iradio_line.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line .icheck_line-icon,
- .iradio_line .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/line.png b/common/src/main/webapp/thirdparty/icheck/skins/line/line.png
deleted file mode 100644
index d21d7a7..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/line.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/line@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/line/line@2x.png
deleted file mode 100644
index 62900a2..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/line@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/orange.css b/common/src/main/webapp/thirdparty/icheck/skins/line/orange.css
deleted file mode 100644
index e408a6a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/orange.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, orange
------------------------------------ */
-.icheckbox_line-orange,
-.iradio_line-orange {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #f70;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-orange .icheck_line-icon,
- .iradio_line-orange .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-orange.hover,
- .icheckbox_line-orange.checked.hover,
- .iradio_line-orange.hover {
- background: #FF9233;
- }
- .icheckbox_line-orange.checked,
- .iradio_line-orange.checked {
- background: #f70;
- }
- .icheckbox_line-orange.checked .icheck_line-icon,
- .iradio_line-orange.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-orange.disabled,
- .iradio_line-orange.disabled {
- background: #FFD6B3;
- cursor: default;
- }
- .icheckbox_line-orange.disabled .icheck_line-icon,
- .iradio_line-orange.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-orange.checked.disabled,
- .iradio_line-orange.checked.disabled {
- background: #FFD6B3;
- }
- .icheckbox_line-orange.checked.disabled .icheck_line-icon,
- .iradio_line-orange.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-orange .icheck_line-icon,
- .iradio_line-orange .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/pink.css b/common/src/main/webapp/thirdparty/icheck/skins/line/pink.css
deleted file mode 100644
index d19459e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/pink.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, pink
------------------------------------ */
-.icheckbox_line-pink,
-.iradio_line-pink {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #a77a94;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-pink .icheck_line-icon,
- .iradio_line-pink .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-pink.hover,
- .icheckbox_line-pink.checked.hover,
- .iradio_line-pink.hover {
- background: #B995A9;
- }
- .icheckbox_line-pink.checked,
- .iradio_line-pink.checked {
- background: #a77a94;
- }
- .icheckbox_line-pink.checked .icheck_line-icon,
- .iradio_line-pink.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-pink.disabled,
- .iradio_line-pink.disabled {
- background: #E0D0DA;
- cursor: default;
- }
- .icheckbox_line-pink.disabled .icheck_line-icon,
- .iradio_line-pink.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-pink.checked.disabled,
- .iradio_line-pink.checked.disabled {
- background: #E0D0DA;
- }
- .icheckbox_line-pink.checked.disabled .icheck_line-icon,
- .iradio_line-pink.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-pink .icheck_line-icon,
- .iradio_line-pink .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/purple.css b/common/src/main/webapp/thirdparty/icheck/skins/line/purple.css
deleted file mode 100644
index ecca700..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/purple.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, purple
------------------------------------ */
-.icheckbox_line-purple,
-.iradio_line-purple {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #6a5a8c;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-purple .icheck_line-icon,
- .iradio_line-purple .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-purple.hover,
- .icheckbox_line-purple.checked.hover,
- .iradio_line-purple.hover {
- background: #8677A7;
- }
- .icheckbox_line-purple.checked,
- .iradio_line-purple.checked {
- background: #6a5a8c;
- }
- .icheckbox_line-purple.checked .icheck_line-icon,
- .iradio_line-purple.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-purple.disabled,
- .iradio_line-purple.disabled {
- background: #D2CCDE;
- cursor: default;
- }
- .icheckbox_line-purple.disabled .icheck_line-icon,
- .iradio_line-purple.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-purple.checked.disabled,
- .iradio_line-purple.checked.disabled {
- background: #D2CCDE;
- }
- .icheckbox_line-purple.checked.disabled .icheck_line-icon,
- .iradio_line-purple.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-purple .icheck_line-icon,
- .iradio_line-purple .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/red.css b/common/src/main/webapp/thirdparty/icheck/skins/line/red.css
deleted file mode 100644
index 3a8aee2..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/red.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, red
------------------------------------ */
-.icheckbox_line-red,
-.iradio_line-red {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #e56c69;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-red .icheck_line-icon,
- .iradio_line-red .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-red.hover,
- .icheckbox_line-red.checked.hover,
- .iradio_line-red.hover {
- background: #E98582;
- }
- .icheckbox_line-red.checked,
- .iradio_line-red.checked {
- background: #e56c69;
- }
- .icheckbox_line-red.checked .icheck_line-icon,
- .iradio_line-red.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-red.disabled,
- .iradio_line-red.disabled {
- background: #F7D3D2;
- cursor: default;
- }
- .icheckbox_line-red.disabled .icheck_line-icon,
- .iradio_line-red.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-red.checked.disabled,
- .iradio_line-red.checked.disabled {
- background: #F7D3D2;
- }
- .icheckbox_line-red.checked.disabled .icheck_line-icon,
- .iradio_line-red.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-red .icheck_line-icon,
- .iradio_line-red .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/line/yellow.css b/common/src/main/webapp/thirdparty/icheck/skins/line/yellow.css
deleted file mode 100644
index c6eaccf..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/line/yellow.css
+++ /dev/null
@@ -1,71 +0,0 @@
-/* iCheck plugin Line skin, yellow
------------------------------------ */
-.icheckbox_line-yellow,
-.iradio_line-yellow {
- position: relative;
- display: block;
- margin: 0;
- padding: 5px 15px 5px 38px;
- font-size: 13px;
- line-height: 17px;
- color: #fff;
- background: #FFC414;
- border: none;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- border-radius: 3px;
- cursor: pointer;
-}
- .icheckbox_line-yellow .icheck_line-icon,
- .iradio_line-yellow .icheck_line-icon {
- position: absolute;
- top: 50%;
- left: 13px;
- width: 13px;
- height: 11px;
- margin: -5px 0 0 0;
- padding: 0;
- overflow: hidden;
- background: url(line.png) no-repeat;
- border: none;
- }
- .icheckbox_line-yellow.hover,
- .icheckbox_line-yellow.checked.hover,
- .iradio_line-yellow.hover {
- background: #FFD34F;
- }
- .icheckbox_line-yellow.checked,
- .iradio_line-yellow.checked {
- background: #FFC414;
- }
- .icheckbox_line-yellow.checked .icheck_line-icon,
- .iradio_line-yellow.checked .icheck_line-icon {
- background-position: -15px 0;
- }
- .icheckbox_line-yellow.disabled,
- .iradio_line-yellow.disabled {
- background: #FFE495;
- cursor: default;
- }
- .icheckbox_line-yellow.disabled .icheck_line-icon,
- .iradio_line-yellow.disabled .icheck_line-icon {
- background-position: -30px 0;
- }
- .icheckbox_line-yellow.checked.disabled,
- .iradio_line-yellow.checked.disabled {
- background: #FFE495;
- }
- .icheckbox_line-yellow.checked.disabled .icheck_line-icon,
- .iradio_line-yellow.checked.disabled .icheck_line-icon {
- background-position: -45px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_line-yellow .icheck_line-icon,
- .iradio_line-yellow .icheck_line-icon {
- background-image: url(line@2x.png);
- -webkit-background-size: 60px 13px;
- background-size: 60px 13px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/_all.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/_all.css
deleted file mode 100644
index 61043e3..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/_all.css
+++ /dev/null
@@ -1,590 +0,0 @@
-/* iCheck plugin Minimal skin
------------------------------------ */
-.icheckbox_minimal,
-.iradio_minimal {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(minimal.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal {
- background-position: 0 0;
-}
- .icheckbox_minimal.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal {
- background-position: -100px 0;
-}
- .iradio_minimal.hover {
- background-position: -120px 0;
- }
- .iradio_minimal.checked {
- background-position: -140px 0;
- }
- .iradio_minimal.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal,
- .iradio_minimal {
- background-image: url(minimal@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* red */
-.icheckbox_minimal-red,
-.iradio_minimal-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-red {
- background-position: 0 0;
-}
- .icheckbox_minimal-red.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-red.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-red.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-red.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-red {
- background-position: -100px 0;
-}
- .iradio_minimal-red.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-red.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-red.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-red.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-red,
- .iradio_minimal-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* green */
-.icheckbox_minimal-green,
-.iradio_minimal-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-green {
- background-position: 0 0;
-}
- .icheckbox_minimal-green.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-green.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-green.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-green.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-green {
- background-position: -100px 0;
-}
- .iradio_minimal-green.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-green.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-green.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-green.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-green,
- .iradio_minimal-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* blue */
-.icheckbox_minimal-blue,
-.iradio_minimal-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-blue {
- background-position: 0 0;
-}
- .icheckbox_minimal-blue.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-blue.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-blue.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-blue.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-blue {
- background-position: -100px 0;
-}
- .iradio_minimal-blue.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-blue.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-blue.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-blue.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-blue,
- .iradio_minimal-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* aero */
-.icheckbox_minimal-aero,
-.iradio_minimal-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-aero {
- background-position: 0 0;
-}
- .icheckbox_minimal-aero.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-aero.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-aero.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-aero.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-aero {
- background-position: -100px 0;
-}
- .iradio_minimal-aero.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-aero.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-aero.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-aero.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-aero,
- .iradio_minimal-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* grey */
-.icheckbox_minimal-grey,
-.iradio_minimal-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-grey {
- background-position: 0 0;
-}
- .icheckbox_minimal-grey.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-grey.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-grey.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-grey.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-grey {
- background-position: -100px 0;
-}
- .iradio_minimal-grey.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-grey.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-grey.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-grey.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-grey,
- .iradio_minimal-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* orange */
-.icheckbox_minimal-orange,
-.iradio_minimal-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-orange {
- background-position: 0 0;
-}
- .icheckbox_minimal-orange.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-orange.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-orange.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-orange.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-orange {
- background-position: -100px 0;
-}
- .iradio_minimal-orange.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-orange.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-orange.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-orange.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-orange,
- .iradio_minimal-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* yellow */
-.icheckbox_minimal-yellow,
-.iradio_minimal-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-yellow {
- background-position: 0 0;
-}
- .icheckbox_minimal-yellow.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-yellow.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-yellow.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-yellow.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-yellow {
- background-position: -100px 0;
-}
- .iradio_minimal-yellow.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-yellow.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-yellow.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-yellow.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-yellow,
- .iradio_minimal-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* pink */
-.icheckbox_minimal-pink,
-.iradio_minimal-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-pink {
- background-position: 0 0;
-}
- .icheckbox_minimal-pink.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-pink.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-pink.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-pink.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-pink {
- background-position: -100px 0;
-}
- .iradio_minimal-pink.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-pink.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-pink.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-pink.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_minimal-pink,
- .iradio_minimal-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-}
-
-/* purple */
-.icheckbox_minimal-purple,
-.iradio_minimal-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-purple {
- background-position: 0 0;
-}
- .icheckbox_minimal-purple.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-purple.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-purple.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-purple.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-purple {
- background-position: -100px 0;
-}
- .iradio_minimal-purple.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-purple.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-purple.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-purple.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-purple,
- .iradio_minimal-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.css
deleted file mode 100644
index c0ddf79..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, aero
------------------------------------ */
-.icheckbox_minimal-aero,
-.iradio_minimal-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-aero {
- background-position: 0 0;
-}
- .icheckbox_minimal-aero.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-aero.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-aero.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-aero.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-aero {
- background-position: -100px 0;
-}
- .iradio_minimal-aero.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-aero.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-aero.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-aero.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-aero,
- .iradio_minimal-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.png
deleted file mode 100644
index dccf774..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero@2x.png
deleted file mode 100644
index 5537ee3..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/aero@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.css
deleted file mode 100644
index 7205ac9..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, blue
------------------------------------ */
-.icheckbox_minimal-blue,
-.iradio_minimal-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-blue {
- background-position: 0 0;
-}
- .icheckbox_minimal-blue.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-blue.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-blue.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-blue.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-blue {
- background-position: -100px 0;
-}
- .iradio_minimal-blue.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-blue.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-blue.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-blue.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-blue,
- .iradio_minimal-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.png
deleted file mode 100644
index af04cee..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue@2x.png
deleted file mode 100644
index f19210a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/blue@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.css
deleted file mode 100644
index ad005c1..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, green
------------------------------------ */
-.icheckbox_minimal-green,
-.iradio_minimal-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-green {
- background-position: 0 0;
-}
- .icheckbox_minimal-green.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-green.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-green.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-green.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-green {
- background-position: -100px 0;
-}
- .iradio_minimal-green.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-green.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-green.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-green.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-green,
- .iradio_minimal-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.png
deleted file mode 100644
index 9171ebc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/green@2x.png
deleted file mode 100644
index 7f18f96..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/green@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.css
deleted file mode 100644
index 157bbd3..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, grey
------------------------------------ */
-.icheckbox_minimal-grey,
-.iradio_minimal-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-grey {
- background-position: 0 0;
-}
- .icheckbox_minimal-grey.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-grey.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-grey.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-grey.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-grey {
- background-position: -100px 0;
-}
- .iradio_minimal-grey.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-grey.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-grey.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-grey.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-grey,
- .iradio_minimal-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.png
deleted file mode 100644
index 22dcdbc..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey@2x.png
deleted file mode 100644
index 85e82dd..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/grey@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.css
deleted file mode 100644
index f344ea6..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, black
------------------------------------ */
-.icheckbox_minimal,
-.iradio_minimal {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(minimal.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal {
- background-position: 0 0;
-}
- .icheckbox_minimal.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal {
- background-position: -100px 0;
-}
- .iradio_minimal.hover {
- background-position: -120px 0;
- }
- .iradio_minimal.checked {
- background-position: -140px 0;
- }
- .iradio_minimal.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal,
- .iradio_minimal {
- background-image: url(minimal@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.png
deleted file mode 100644
index 943be16..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal@2x.png
deleted file mode 100644
index d62291d..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.css
deleted file mode 100644
index 04779eb..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, orange
------------------------------------ */
-.icheckbox_minimal-orange,
-.iradio_minimal-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-orange {
- background-position: 0 0;
-}
- .icheckbox_minimal-orange.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-orange.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-orange.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-orange.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-orange {
- background-position: -100px 0;
-}
- .iradio_minimal-orange.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-orange.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-orange.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-orange.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-orange,
- .iradio_minimal-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.png
deleted file mode 100644
index f2a3149..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange@2x.png
deleted file mode 100644
index 68c8359..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/orange@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.css
deleted file mode 100644
index 1e2f0e4..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, pink
------------------------------------ */
-.icheckbox_minimal-pink,
-.iradio_minimal-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-pink {
- background-position: 0 0;
-}
- .icheckbox_minimal-pink.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-pink.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-pink.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-pink.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-pink {
- background-position: -100px 0;
-}
- .iradio_minimal-pink.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-pink.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-pink.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-pink.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-pink,
- .iradio_minimal-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.png
deleted file mode 100644
index 660553c..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink@2x.png
deleted file mode 100644
index 7d7b385..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/pink@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.css
deleted file mode 100644
index f3f8cf4..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, purple
------------------------------------ */
-.icheckbox_minimal-purple,
-.iradio_minimal-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-purple {
- background-position: 0 0;
-}
- .icheckbox_minimal-purple.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-purple.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-purple.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-purple.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-purple {
- background-position: -100px 0;
-}
- .iradio_minimal-purple.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-purple.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-purple.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-purple.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-purple,
- .iradio_minimal-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.png
deleted file mode 100644
index 48dec79..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple@2x.png
deleted file mode 100644
index 3bb7041..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/purple@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.css
deleted file mode 100644
index 0530c91..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, red
------------------------------------ */
-.icheckbox_minimal-red,
-.iradio_minimal-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-red {
- background-position: 0 0;
-}
- .icheckbox_minimal-red.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-red.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-red.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-red.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-red {
- background-position: -100px 0;
-}
- .iradio_minimal-red.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-red.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-red.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-red.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-red,
- .iradio_minimal-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.png
deleted file mode 100644
index 4443f80..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/red@2x.png
deleted file mode 100644
index 2eb55a6..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/red@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.css b/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.css
deleted file mode 100644
index fbd567f..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Minimal skin, yellow
------------------------------------ */
-.icheckbox_minimal-yellow,
-.iradio_minimal-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 18px;
- height: 18px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_minimal-yellow {
- background-position: 0 0;
-}
- .icheckbox_minimal-yellow.hover {
- background-position: -20px 0;
- }
- .icheckbox_minimal-yellow.checked {
- background-position: -40px 0;
- }
- .icheckbox_minimal-yellow.disabled {
- background-position: -60px 0;
- cursor: default;
- }
- .icheckbox_minimal-yellow.checked.disabled {
- background-position: -80px 0;
- }
-
-.iradio_minimal-yellow {
- background-position: -100px 0;
-}
- .iradio_minimal-yellow.hover {
- background-position: -120px 0;
- }
- .iradio_minimal-yellow.checked {
- background-position: -140px 0;
- }
- .iradio_minimal-yellow.disabled {
- background-position: -160px 0;
- cursor: default;
- }
- .iradio_minimal-yellow.checked.disabled {
- background-position: -180px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_minimal-yellow,
- .iradio_minimal-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 200px 20px;
- background-size: 200px 20px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.png
deleted file mode 100644
index 0999b7e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow@2x.png
deleted file mode 100644
index c16f2b7..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.css b/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.css
deleted file mode 100644
index 8427bf2..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Polaris skin
------------------------------------ */
-.icheckbox_polaris,
-.iradio_polaris {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 29px;
- height: 29px;
- background: url(polaris.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_polaris {
- background-position: 0 0;
-}
- .icheckbox_polaris.hover {
- background-position: -31px 0;
- }
- .icheckbox_polaris.checked {
- background-position: -62px 0;
- }
- .icheckbox_polaris.disabled {
- background-position: -93px 0;
- cursor: default;
- }
- .icheckbox_polaris.checked.disabled {
- background-position: -124px 0;
- }
-
-.iradio_polaris {
- background-position: -155px 0;
-}
- .iradio_polaris.hover {
- background-position: -186px 0;
- }
- .iradio_polaris.checked {
- background-position: -217px 0;
- }
- .iradio_polaris.disabled {
- background-position: -248px 0;
- cursor: default;
- }
- .iradio_polaris.checked.disabled {
- background-position: -279px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_polaris,
- .iradio_polaris {
- background-image: url(polaris@2x.png);
- -webkit-background-size: 310px 31px;
- background-size: 310px 31px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.png b/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.png
deleted file mode 100644
index 60c14e6..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris@2x.png
deleted file mode 100644
index ed943da..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/Thumbs.db b/common/src/main/webapp/thirdparty/icheck/skins/square/Thumbs.db
deleted file mode 100644
index 95f0906..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/Thumbs.db
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/_all.css b/common/src/main/webapp/thirdparty/icheck/skins/square/_all.css
deleted file mode 100644
index 6b150ba..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/_all.css
+++ /dev/null
@@ -1,590 +0,0 @@
-/* iCheck plugin Square skin
------------------------------------ */
-.icheckbox_square,
-.iradio_square {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(square.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square {
- background-position: 0 0;
-}
- .icheckbox_square.hover {
- background-position: -24px 0;
- }
- .icheckbox_square.checked {
- background-position: -48px 0;
- }
- .icheckbox_square.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square {
- background-position: -120px 0;
-}
- .iradio_square.hover {
- background-position: -144px 0;
- }
- .iradio_square.checked {
- background-position: -168px 0;
- }
- .iradio_square.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square,
- .iradio_square {
- background-image: url(square@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* red */
-.icheckbox_square-red,
-.iradio_square-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-red {
- background-position: 0 0;
-}
- .icheckbox_square-red.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-red.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-red.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-red.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-red {
- background-position: -120px 0;
-}
- .iradio_square-red.hover {
- background-position: -144px 0;
- }
- .iradio_square-red.checked {
- background-position: -168px 0;
- }
- .iradio_square-red.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-red.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-red,
- .iradio_square-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* green */
-.icheckbox_square-green,
-.iradio_square-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-green {
- background-position: 0 0;
-}
- .icheckbox_square-green.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-green.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-green.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-green.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-green {
- background-position: -120px 0;
-}
- .iradio_square-green.hover {
- background-position: -144px 0;
- }
- .iradio_square-green.checked {
- background-position: -168px 0;
- }
- .iradio_square-green.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-green.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-green,
- .iradio_square-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* blue */
-.icheckbox_square-blue,
-.iradio_square-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-blue {
- background-position: 0 0;
-}
- .icheckbox_square-blue.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-blue.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-blue.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-blue.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-blue {
- background-position: -120px 0;
-}
- .iradio_square-blue.hover {
- background-position: -144px 0;
- }
- .iradio_square-blue.checked {
- background-position: -168px 0;
- }
- .iradio_square-blue.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-blue.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-blue,
- .iradio_square-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* aero */
-.icheckbox_square-aero,
-.iradio_square-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin-right: 10px;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-aero {
- background-position: 0 0;
-}
- .icheckbox_square-aero.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-aero.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-aero.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-aero.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-aero {
- background-position: -120px 0;
-}
- .iradio_square-aero.hover {
- background-position: -144px 0;
- }
- .iradio_square-aero.checked {
- background-position: -168px 0;
- }
- .iradio_square-aero.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-aero.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-aero,
- .iradio_square-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* grey */
-.icheckbox_square-grey,
-.iradio_square-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-grey {
- background-position: 0 0;
-}
- .icheckbox_square-grey.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-grey.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-grey.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-grey.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-grey {
- background-position: -120px 0;
-}
- .iradio_square-grey.hover {
- background-position: -144px 0;
- }
- .iradio_square-grey.checked {
- background-position: -168px 0;
- }
- .iradio_square-grey.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-grey.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-grey,
- .iradio_square-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* orange */
-.icheckbox_square-orange,
-.iradio_square-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-orange {
- background-position: 0 0;
-}
- .icheckbox_square-orange.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-orange.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-orange.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-orange.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-orange {
- background-position: -120px 0;
-}
- .iradio_square-orange.hover {
- background-position: -144px 0;
- }
- .iradio_square-orange.checked {
- background-position: -168px 0;
- }
- .iradio_square-orange.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-orange.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-orange,
- .iradio_square-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* yellow */
-.icheckbox_square-yellow,
-.iradio_square-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-yellow {
- background-position: 0 0;
-}
- .icheckbox_square-yellow.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-yellow.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-yellow.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-yellow.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-yellow {
- background-position: -120px 0;
-}
- .iradio_square-yellow.hover {
- background-position: -144px 0;
- }
- .iradio_square-yellow.checked {
- background-position: -168px 0;
- }
- .iradio_square-yellow.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-yellow.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-yellow,
- .iradio_square-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* pink */
-.icheckbox_square-pink,
-.iradio_square-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-pink {
- background-position: 0 0;
-}
- .icheckbox_square-pink.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-pink.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-pink.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-pink.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-pink {
- background-position: -120px 0;
-}
- .iradio_square-pink.hover {
- background-position: -144px 0;
- }
- .iradio_square-pink.checked {
- background-position: -168px 0;
- }
- .iradio_square-pink.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-pink.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
- .icheckbox_square-pink,
- .iradio_square-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-}
-
-/* purple */
-.icheckbox_square-purple,
-.iradio_square-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-purple {
- background-position: 0 0;
-}
- .icheckbox_square-purple.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-purple.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-purple.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-purple.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-purple {
- background-position: -120px 0;
-}
- .iradio_square-purple.hover {
- background-position: -144px 0;
- }
- .iradio_square-purple.checked {
- background-position: -168px 0;
- }
- .iradio_square-purple.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-purple.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-purple,
- .iradio_square-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/aero.css b/common/src/main/webapp/thirdparty/icheck/skins/square/aero.css
deleted file mode 100644
index 6c4d075..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/aero.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, aero
------------------------------------ */
-.icheckbox_square-aero,
-.iradio_square-aero {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(aero.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-aero {
- background-position: 0 0;
-}
- .icheckbox_square-aero.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-aero.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-aero.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-aero.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-aero {
- background-position: -120px 0;
-}
- .iradio_square-aero.hover {
- background-position: -144px 0;
- }
- .iradio_square-aero.checked {
- background-position: -168px 0;
- }
- .iradio_square-aero.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-aero.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-aero,
- .iradio_square-aero {
- background-image: url(aero@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/aero.png b/common/src/main/webapp/thirdparty/icheck/skins/square/aero.png
deleted file mode 100644
index 8271ca9..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/aero.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/aero@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/aero@2x.png
deleted file mode 100644
index 07c5a02..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/aero@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/blue.css b/common/src/main/webapp/thirdparty/icheck/skins/square/blue.css
deleted file mode 100644
index 455761b..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/blue.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, blue
------------------------------------ */
-.icheckbox_square-blue,
-.iradio_square-blue {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(blue.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-blue {
- background-position: 0 0;
-}
- .icheckbox_square-blue.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-blue.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-blue.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-blue.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-blue {
- background-position: -120px 0;
-}
- .iradio_square-blue.hover {
- background-position: -144px 0;
- }
- .iradio_square-blue.checked {
- background-position: -168px 0;
- }
- .iradio_square-blue.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-blue.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-blue,
- .iradio_square-blue {
- background-image: url(blue@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/blue.png b/common/src/main/webapp/thirdparty/icheck/skins/square/blue.png
deleted file mode 100644
index a3e040f..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/blue.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/blue@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/blue@2x.png
deleted file mode 100644
index 8fdea12..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/blue@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/green.css b/common/src/main/webapp/thirdparty/icheck/skins/square/green.css
deleted file mode 100644
index 0f4409c..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/green.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, green
------------------------------------ */
-.icheckbox_square-green,
-.iradio_square-green {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(green.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-green {
- background-position: 0 0;
-}
- .icheckbox_square-green.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-green.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-green.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-green.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-green {
- background-position: -120px 0;
-}
- .iradio_square-green.hover {
- background-position: -144px 0;
- }
- .iradio_square-green.checked {
- background-position: -168px 0;
- }
- .iradio_square-green.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-green.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-green,
- .iradio_square-green {
- background-image: url(green@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/green.png b/common/src/main/webapp/thirdparty/icheck/skins/square/green.png
deleted file mode 100644
index 465824e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/green.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/green@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/green@2x.png
deleted file mode 100644
index 784e874..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/green@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/grey.css b/common/src/main/webapp/thirdparty/icheck/skins/square/grey.css
deleted file mode 100644
index 4c06d58..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/grey.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, grey
------------------------------------ */
-.icheckbox_square-grey,
-.iradio_square-grey {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(grey.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-grey {
- background-position: 0 0;
-}
- .icheckbox_square-grey.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-grey.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-grey.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-grey.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-grey {
- background-position: -120px 0;
-}
- .iradio_square-grey.hover {
- background-position: -144px 0;
- }
- .iradio_square-grey.checked {
- background-position: -168px 0;
- }
- .iradio_square-grey.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-grey.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-grey,
- .iradio_square-grey {
- background-image: url(grey@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/grey.png b/common/src/main/webapp/thirdparty/icheck/skins/square/grey.png
deleted file mode 100644
index f693758..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/grey.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/grey@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/grey@2x.png
deleted file mode 100644
index 5d6341c..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/grey@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/orange.css b/common/src/main/webapp/thirdparty/icheck/skins/square/orange.css
deleted file mode 100644
index 55b4589..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/orange.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, orange
------------------------------------ */
-.icheckbox_square-orange,
-.iradio_square-orange {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(orange.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-orange {
- background-position: 0 0;
-}
- .icheckbox_square-orange.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-orange.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-orange.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-orange.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-orange {
- background-position: -120px 0;
-}
- .iradio_square-orange.hover {
- background-position: -144px 0;
- }
- .iradio_square-orange.checked {
- background-position: -168px 0;
- }
- .iradio_square-orange.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-orange.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-orange,
- .iradio_square-orange {
- background-image: url(orange@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/orange.png b/common/src/main/webapp/thirdparty/icheck/skins/square/orange.png
deleted file mode 100644
index 8460850..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/orange.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/orange@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/orange@2x.png
deleted file mode 100644
index b1f2319..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/orange@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/pink.css b/common/src/main/webapp/thirdparty/icheck/skins/square/pink.css
deleted file mode 100644
index b3823b2..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/pink.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, pink
------------------------------------ */
-.icheckbox_square-pink,
-.iradio_square-pink {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(pink.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-pink {
- background-position: 0 0;
-}
- .icheckbox_square-pink.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-pink.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-pink.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-pink.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-pink {
- background-position: -120px 0;
-}
- .iradio_square-pink.hover {
- background-position: -144px 0;
- }
- .iradio_square-pink.checked {
- background-position: -168px 0;
- }
- .iradio_square-pink.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-pink.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-pink,
- .iradio_square-pink {
- background-image: url(pink@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/pink.png b/common/src/main/webapp/thirdparty/icheck/skins/square/pink.png
deleted file mode 100644
index 9c8b4e2..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/pink.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/pink@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/pink@2x.png
deleted file mode 100644
index b1f3a6e..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/pink@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/purple.css b/common/src/main/webapp/thirdparty/icheck/skins/square/purple.css
deleted file mode 100644
index 39d9b3b..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/purple.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, purple
------------------------------------ */
-.icheckbox_square-purple,
-.iradio_square-purple {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(purple.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-purple {
- background-position: 0 0;
-}
- .icheckbox_square-purple.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-purple.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-purple.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-purple.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-purple {
- background-position: -120px 0;
-}
- .iradio_square-purple.hover {
- background-position: -144px 0;
- }
- .iradio_square-purple.checked {
- background-position: -168px 0;
- }
- .iradio_square-purple.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-purple.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-purple,
- .iradio_square-purple {
- background-image: url(purple@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/purple.png b/common/src/main/webapp/thirdparty/icheck/skins/square/purple.png
deleted file mode 100644
index 6bfc16a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/purple.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/purple@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/purple@2x.png
deleted file mode 100644
index 6d3c8b1..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/purple@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/red.css b/common/src/main/webapp/thirdparty/icheck/skins/square/red.css
deleted file mode 100644
index 43399b8..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/red.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, red
------------------------------------ */
-.icheckbox_square-red,
-.iradio_square-red {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(red.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-red {
- background-position: 0 0;
-}
- .icheckbox_square-red.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-red.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-red.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-red.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-red {
- background-position: -120px 0;
-}
- .iradio_square-red.hover {
- background-position: -144px 0;
- }
- .iradio_square-red.checked {
- background-position: -168px 0;
- }
- .iradio_square-red.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-red.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-red,
- .iradio_square-red {
- background-image: url(red@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/red.png b/common/src/main/webapp/thirdparty/icheck/skins/square/red.png
deleted file mode 100644
index 749675a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/red.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/red@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/red@2x.png
deleted file mode 100644
index c05700a..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/red@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/square.css b/common/src/main/webapp/thirdparty/icheck/skins/square/square.css
deleted file mode 100644
index 2f3e5bf..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/square.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, black
------------------------------------ */
-.icheckbox_square,
-.iradio_square {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(square.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square {
- background-position: 0 0;
-}
- .icheckbox_square.hover {
- background-position: -24px 0;
- }
- .icheckbox_square.checked {
- background-position: -48px 0;
- }
- .icheckbox_square.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square {
- background-position: -120px 0;
-}
- .iradio_square.hover {
- background-position: -144px 0;
- }
- .iradio_square.checked {
- background-position: -168px 0;
- }
- .iradio_square.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square,
- .iradio_square {
- background-image: url(square@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/square.png b/common/src/main/webapp/thirdparty/icheck/skins/square/square.png
deleted file mode 100644
index 2a3c881..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/square.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/square@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/square@2x.png
deleted file mode 100644
index 9b56c44..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/square@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.css b/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.css
deleted file mode 100644
index 65ef0ba..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.css
+++ /dev/null
@@ -1,59 +0,0 @@
-/* iCheck plugin Square skin, yellow
------------------------------------ */
-.icheckbox_square-yellow,
-.iradio_square-yellow {
- display: inline-block;
- *display: inline;
- vertical-align: middle;
- margin: 0;
- padding: 0;
- width: 22px;
- height: 22px;
- background: url(yellow.png) no-repeat;
- border: none;
- cursor: pointer;
-}
-
-.icheckbox_square-yellow {
- background-position: 0 0;
-}
- .icheckbox_square-yellow.hover {
- background-position: -24px 0;
- }
- .icheckbox_square-yellow.checked {
- background-position: -48px 0;
- }
- .icheckbox_square-yellow.disabled {
- background-position: -72px 0;
- cursor: default;
- }
- .icheckbox_square-yellow.checked.disabled {
- background-position: -96px 0;
- }
-
-.iradio_square-yellow {
- background-position: -120px 0;
-}
- .iradio_square-yellow.hover {
- background-position: -144px 0;
- }
- .iradio_square-yellow.checked {
- background-position: -168px 0;
- }
- .iradio_square-yellow.disabled {
- background-position: -192px 0;
- cursor: default;
- }
- .iradio_square-yellow.checked.disabled {
- background-position: -216px 0;
- }
-
-/* HiDPI support */
-@media (-o-min-device-pixel-ratio: 5/4), (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx) {
- .icheckbox_square-yellow,
- .iradio_square-yellow {
- background-image: url(yellow@2x.png);
- -webkit-background-size: 240px 24px;
- background-size: 240px 24px;
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.png b/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.png
deleted file mode 100644
index b6c0330..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow@2x.png b/common/src/main/webapp/thirdparty/icheck/skins/square/yellow@2x.png
deleted file mode 100644
index 6b8e328..0000000
--- a/common/src/main/webapp/thirdparty/icheck/skins/square/yellow@2x.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/css/jquery.fileupload.css b/common/src/main/webapp/thirdparty/jQuery-File-Upload/css/jquery.fileupload.css
deleted file mode 100644
index ce7e422..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/css/jquery.fileupload.css
+++ /dev/null
@@ -1,37 +0,0 @@
-@charset "UTF-8";
-/*
- * jQuery File Upload Plugin CSS
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2013, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
-
-.fileinput-button {
- position: relative;
- overflow: hidden;
- display: inline-block;
-}
-.fileinput-button input {
- position: absolute;
- top: 0;
- right: 0;
- margin: 0;
- opacity: 0;
- -ms-filter: 'alpha(opacity=0)';
- font-size: 200px;
- direction: ltr;
- cursor: pointer;
-}
-
-/* Fixes for IE < 8 */
-@media screen\9 {
- .fileinput-button input {
- filter: alpha(opacity=0);
- font-size: 100%;
- height: 100%;
- }
-}
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/loading.gif b/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/loading.gif
deleted file mode 100644
index 90f28cb..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/loading.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/progressbar.gif b/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/progressbar.gif
deleted file mode 100644
index fbcce6b..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/img/progressbar.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.fileupload.js b/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.fileupload.js
deleted file mode 100644
index 91b7254..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.fileupload.js
+++ /dev/null
@@ -1,1477 +0,0 @@
-/*
- * jQuery File Upload Plugin
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2010, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
-
-/* jshint nomen:false */
-/* global define, require, window, document, location, Blob, FormData */
-
-(function (factory) {
- 'use strict';
- if (typeof define === 'function' && define.amd) {
- // Register as an anonymous AMD module:
- define([
- 'jquery',
- 'jquery.ui.widget'
- ], factory);
- } else if (typeof exports === 'object') {
- // Node/CommonJS:
- factory(
- require('jquery'),
- require('./vendor/jquery.ui.widget')
- );
- } else {
- // Browser globals:
- factory(window.jQuery);
- }
-}(function ($) {
- 'use strict';
-
- // Detect file input support, based on
- // http://viljamis.com/blog/2012/file-upload-support-on-mobile/
- $.support.fileInput = !(new RegExp(
- // Handle devices which give false positives for the feature detection:
- '(Android (1\\.[0156]|2\\.[01]))' +
- '|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)' +
- '|(w(eb)?OSBrowser)|(webOS)' +
- '|(Kindle/(1\\.0|2\\.[05]|3\\.0))'
- ).test(window.navigator.userAgent) ||
- // Feature detection for all other devices:
- $('<input type="file">').prop('disabled'));
-
- // The FileReader API is not actually used, but works as feature detection,
- // as some Safari versions (5?) support XHR file uploads via the FormData API,
- // but not non-multipart XHR file uploads.
- // window.XMLHttpRequestUpload is not available on IE10, so we check for
- // window.ProgressEvent instead to detect XHR2 file upload capability:
- $.support.xhrFileUpload = !!(window.ProgressEvent && window.FileReader);
- $.support.xhrFormDataFileUpload = !!window.FormData;
-
- // Detect support for Blob slicing (required for chunked uploads):
- $.support.blobSlice = window.Blob && (Blob.prototype.slice ||
- Blob.prototype.webkitSlice || Blob.prototype.mozSlice);
-
- // Helper function to create drag handlers for dragover/dragenter/dragleave:
- function getDragHandler(type) {
- var isDragOver = type === 'dragover';
- return function (e) {
- e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
- var dataTransfer = e.dataTransfer;
- if (dataTransfer && $.inArray('Files', dataTransfer.types) !== -1 &&
- this._trigger(
- type,
- $.Event(type, {delegatedEvent: e})
- ) !== false) {
- e.preventDefault();
- if (isDragOver) {
- dataTransfer.dropEffect = 'copy';
- }
- }
- };
- }
-
- // The fileupload widget listens for change events on file input fields defined
- // via fileInput setting and paste or drop events of the given dropZone.
- // In addition to the default jQuery Widget methods, the fileupload widget
- // exposes the "add" and "send" methods, to add or directly send files using
- // the fileupload API.
- // By default, files added via file input selection, paste, drag & drop or
- // "add" method are uploaded immediately, but it is possible to override
- // the "add" callback option to queue file uploads.
- $.widget('blueimp.fileupload', {
-
- options: {
- // The drop target element(s), by the default the complete document.
- // Set to null to disable drag & drop support:
- dropZone: $(document),
- // The paste target element(s), by the default undefined.
- // Set to a DOM node or jQuery object to enable file pasting:
- pasteZone: undefined,
- // The file input field(s), that are listened to for change events.
- // If undefined, it is set to the file input fields inside
- // of the widget element on plugin initialization.
- // Set to null to disable the change listener.
- fileInput: undefined,
- // By default, the file input field is replaced with a clone after
- // each input field change event. This is required for iframe transport
- // queues and allows change events to be fired for the same file
- // selection, but can be disabled by setting the following option to false:
- replaceFileInput: true,
- // The parameter name for the file form data (the request argument name).
- // If undefined or empty, the name property of the file input field is
- // used, or "files[]" if the file input name property is also empty,
- // can be a string or an array of strings:
- paramName: undefined,
- // By default, each file of a selection is uploaded using an individual
- // request for XHR type uploads. Set to false to upload file
- // selections in one request each:
- singleFileUploads: true,
- // To limit the number of files uploaded with one XHR request,
- // set the following option to an integer greater than 0:
- limitMultiFileUploads: undefined,
- // The following option limits the number of files uploaded with one
- // XHR request to keep the request size under or equal to the defined
- // limit in bytes:
- limitMultiFileUploadSize: undefined,
- // Multipart file uploads add a number of bytes to each uploaded file,
- // therefore the following option adds an overhead for each file used
- // in the limitMultiFileUploadSize configuration:
- limitMultiFileUploadSizeOverhead: 512,
- // Set the following option to true to issue all file upload requests
- // in a sequential order:
- sequentialUploads: false,
- // To limit the number of concurrent uploads,
- // set the following option to an integer greater than 0:
- limitConcurrentUploads: undefined,
- // Set the following option to true to force iframe transport uploads:
- forceIframeTransport: false,
- // Set the following option to the location of a redirect url on the
- // origin server, for cross-domain iframe transport uploads:
- redirect: undefined,
- // The parameter name for the redirect url, sent as part of the form
- // data and set to 'redirect' if this option is empty:
- redirectParamName: undefined,
- // Set the following option to the location of a postMessage window,
- // to enable postMessage transport uploads:
- postMessage: undefined,
- // By default, XHR file uploads are sent as multipart/form-data.
- // The iframe transport is always using multipart/form-data.
- // Set to false to enable non-multipart XHR uploads:
- multipart: true,
- // To upload large files in smaller chunks, set the following option
- // to a preferred maximum chunk size. If set to 0, null or undefined,
- // or the browser does not support the required Blob API, files will
- // be uploaded as a whole.
- maxChunkSize: undefined,
- // When a non-multipart upload or a chunked multipart upload has been
- // aborted, this option can be used to resume the upload by setting
- // it to the size of the already uploaded bytes. This option is most
- // useful when modifying the options object inside of the "add" or
- // "send" callbacks, as the options are cloned for each file upload.
- uploadedBytes: undefined,
- // By default, failed (abort or error) file uploads are removed from the
- // global progress calculation. Set the following option to false to
- // prevent recalculating the global progress data:
- recalculateProgress: true,
- // Interval in milliseconds to calculate and trigger progress events:
- progressInterval: 100,
- // Interval in milliseconds to calculate progress bitrate:
- bitrateInterval: 500,
- // By default, uploads are started automatically when adding files:
- autoUpload: true,
-
- // Error and info messages:
- messages: {
- uploadedBytes: 'Uploaded bytes exceed file size'
- },
-
- // Translation function, gets the message key to be translated
- // and an object with context specific data as arguments:
- i18n: function (message, context) {
- message = this.messages[message] || message.toString();
- if (context) {
- $.each(context, function (key, value) {
- message = message.replace('{' + key + '}', value);
- });
- }
- return message;
- },
-
- // Additional form data to be sent along with the file uploads can be set
- // using this option, which accepts an array of objects with name and
- // value properties, a function returning such an array, a FormData
- // object (for XHR file uploads), or a simple object.
- // The form of the first fileInput is given as parameter to the function:
- formData: function (form) {
- return form.serializeArray();
- },
-
- // The add callback is invoked as soon as files are added to the fileupload
- // widget (via file input selection, drag & drop, paste or add API call).
- // If the singleFileUploads option is enabled, this callback will be
- // called once for each file in the selection for XHR file uploads, else
- // once for each file selection.
- //
- // The upload starts when the submit method is invoked on the data parameter.
- // The data object contains a files property holding the added files
- // and allows you to override plugin options as well as define ajax settings.
- //
- // Listeners for this callback can also be bound the following way:
- // .bind('fileuploadadd', func);
- //
- // data.submit() returns a Promise object and allows to attach additional
- // handlers using jQuery's Deferred callbacks:
- // data.submit().done(func).fail(func).always(func);
- add: function (e, data) {
- if (e.isDefaultPrevented()) {
- return false;
- }
- if (data.autoUpload || (data.autoUpload !== false &&
- $(this).fileupload('option', 'autoUpload'))) {
- data.process().done(function () {
- data.submit();
- });
- }
- },
-
- // Other callbacks:
-
- // Callback for the submit event of each file upload:
- // submit: function (e, data) {}, // .bind('fileuploadsubmit', func);
-
- // Callback for the start of each file upload request:
- // send: function (e, data) {}, // .bind('fileuploadsend', func);
-
- // Callback for successful uploads:
- // done: function (e, data) {}, // .bind('fileuploaddone', func);
-
- // Callback for failed (abort or error) uploads:
- // fail: function (e, data) {}, // .bind('fileuploadfail', func);
-
- // Callback for completed (success, abort or error) requests:
- // always: function (e, data) {}, // .bind('fileuploadalways', func);
-
- // Callback for upload progress events:
- // progress: function (e, data) {}, // .bind('fileuploadprogress', func);
-
- // Callback for global upload progress events:
- // progressall: function (e, data) {}, // .bind('fileuploadprogressall', func);
-
- // Callback for uploads start, equivalent to the global ajaxStart event:
- // start: function (e) {}, // .bind('fileuploadstart', func);
-
- // Callback for uploads stop, equivalent to the global ajaxStop event:
- // stop: function (e) {}, // .bind('fileuploadstop', func);
-
- // Callback for change events of the fileInput(s):
- // change: function (e, data) {}, // .bind('fileuploadchange', func);
-
- // Callback for paste events to the pasteZone(s):
- // paste: function (e, data) {}, // .bind('fileuploadpaste', func);
-
- // Callback for drop events of the dropZone(s):
- // drop: function (e, data) {}, // .bind('fileuploaddrop', func);
-
- // Callback for dragover events of the dropZone(s):
- // dragover: function (e) {}, // .bind('fileuploaddragover', func);
-
- // Callback for the start of each chunk upload request:
- // chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
-
- // Callback for successful chunk uploads:
- // chunkdone: function (e, data) {}, // .bind('fileuploadchunkdone', func);
-
- // Callback for failed (abort or error) chunk uploads:
- // chunkfail: function (e, data) {}, // .bind('fileuploadchunkfail', func);
-
- // Callback for completed (success, abort or error) chunk upload requests:
- // chunkalways: function (e, data) {}, // .bind('fileuploadchunkalways', func);
-
- // The plugin options are used as settings object for the ajax calls.
- // The following are jQuery ajax settings required for the file uploads:
- processData: false,
- contentType: false,
- cache: false,
- timeout: 0
- },
-
- // A list of options that require reinitializing event listeners and/or
- // special initialization code:
- _specialOptions: [
- 'fileInput',
- 'dropZone',
- 'pasteZone',
- 'multipart',
- 'forceIframeTransport'
- ],
-
- _blobSlice: $.support.blobSlice && function () {
- var slice = this.slice || this.webkitSlice || this.mozSlice;
- return slice.apply(this, arguments);
- },
-
- _BitrateTimer: function () {
- this.timestamp = ((Date.now) ? Date.now() : (new Date()).getTime());
- this.loaded = 0;
- this.bitrate = 0;
- this.getBitrate = function (now, loaded, interval) {
- var timeDiff = now - this.timestamp;
- if (!this.bitrate || !interval || timeDiff > interval) {
- this.bitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
- this.loaded = loaded;
- this.timestamp = now;
- }
- return this.bitrate;
- };
- },
-
- _isXHRUpload: function (options) {
- return !options.forceIframeTransport &&
- ((!options.multipart && $.support.xhrFileUpload) ||
- $.support.xhrFormDataFileUpload);
- },
-
- _getFormData: function (options) {
- var formData;
- if ($.type(options.formData) === 'function') {
- return options.formData(options.form);
- }
- if ($.isArray(options.formData)) {
- return options.formData;
- }
- if ($.type(options.formData) === 'object') {
- formData = [];
- $.each(options.formData, function (name, value) {
- formData.push({name: name, value: value});
- });
- return formData;
- }
- return [];
- },
-
- _getTotal: function (files) {
- var total = 0;
- $.each(files, function (index, file) {
- total += file.size || 1;
- });
- return total;
- },
-
- _initProgressObject: function (obj) {
- var progress = {
- loaded: 0,
- total: 0,
- bitrate: 0
- };
- if (obj._progress) {
- $.extend(obj._progress, progress);
- } else {
- obj._progress = progress;
- }
- },
-
- _initResponseObject: function (obj) {
- var prop;
- if (obj._response) {
- for (prop in obj._response) {
- if (obj._response.hasOwnProperty(prop)) {
- delete obj._response[prop];
- }
- }
- } else {
- obj._response = {};
- }
- },
-
- _onProgress: function (e, data) {
- if (e.lengthComputable) {
- var now = ((Date.now) ? Date.now() : (new Date()).getTime()),
- loaded;
- if (data._time && data.progressInterval &&
- (now - data._time < data.progressInterval) &&
- e.loaded !== e.total) {
- return;
- }
- data._time = now;
- loaded = Math.floor(
- e.loaded / e.total * (data.chunkSize || data._progress.total)
- ) + (data.uploadedBytes || 0);
- // Add the difference from the previously loaded state
- // to the global loaded counter:
- this._progress.loaded += (loaded - data._progress.loaded);
- this._progress.bitrate = this._bitrateTimer.getBitrate(
- now,
- this._progress.loaded,
- data.bitrateInterval
- );
- data._progress.loaded = data.loaded = loaded;
- data._progress.bitrate = data.bitrate = data._bitrateTimer.getBitrate(
- now,
- loaded,
- data.bitrateInterval
- );
- // Trigger a custom progress event with a total data property set
- // to the file size(s) of the current upload and a loaded data
- // property calculated accordingly:
- this._trigger(
- 'progress',
- $.Event('progress', {delegatedEvent: e}),
- data
- );
- // Trigger a global progress event for all current file uploads,
- // including ajax calls queued for sequential file uploads:
- this._trigger(
- 'progressall',
- $.Event('progressall', {delegatedEvent: e}),
- this._progress
- );
- }
- },
-
- _initProgressListener: function (options) {
- var that = this,
- xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
- // Accesss to the native XHR object is required to add event listeners
- // for the upload progress event:
- if (xhr.upload) {
- $(xhr.upload).bind('progress', function (e) {
- var oe = e.originalEvent;
- // Make sure the progress event properties get copied over:
- e.lengthComputable = oe.lengthComputable;
- e.loaded = oe.loaded;
- e.total = oe.total;
- that._onProgress(e, options);
- });
- options.xhr = function () {
- return xhr;
- };
- }
- },
-
- _isInstanceOf: function (type, obj) {
- // Cross-frame instanceof check
- return Object.prototype.toString.call(obj) === '[object ' + type + ']';
- },
-
- _initXHRData: function (options) {
- var that = this,
- formData,
- file = options.files[0],
- // Ignore non-multipart setting if not supported:
- multipart = options.multipart || !$.support.xhrFileUpload,
- paramName = $.type(options.paramName) === 'array' ?
- options.paramName[0] : options.paramName;
- options.headers = $.extend({}, options.headers);
- if (options.contentRange) {
- options.headers['Content-Range'] = options.contentRange;
- }
- if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
- options.headers['Content-Disposition'] = 'attachment; filename="' +
- encodeURI(file.name) + '"';
- }
- if (!multipart) {
- options.contentType = file.type || 'application/octet-stream';
- options.data = options.blob || file;
- } else if ($.support.xhrFormDataFileUpload) {
- if (options.postMessage) {
- // window.postMessage does not allow sending FormData
- // objects, so we just add the File/Blob objects to
- // the formData array and let the postMessage window
- // create the FormData object out of this array:
- formData = this._getFormData(options);
- if (options.blob) {
- formData.push({
- name: paramName,
- value: options.blob
- });
- } else {
- $.each(options.files, function (index, file) {
- formData.push({
- name: ($.type(options.paramName) === 'array' &&
- options.paramName[index]) || paramName,
- value: file
- });
- });
- }
- } else {
- if (that._isInstanceOf('FormData', options.formData)) {
- formData = options.formData;
- } else {
- formData = new FormData();
- $.each(this._getFormData(options), function (index, field) {
- formData.append(field.name, field.value);
- });
- }
- if (options.blob) {
- formData.append(paramName, options.blob, file.name);
- } else {
- $.each(options.files, function (index, file) {
- // This check allows the tests to run with
- // dummy objects:
- if (that._isInstanceOf('File', file) ||
- that._isInstanceOf('Blob', file)) {
- formData.append(
- ($.type(options.paramName) === 'array' &&
- options.paramName[index]) || paramName,
- file,
- file.uploadName || file.name
- );
- }
- });
- }
- }
- options.data = formData;
- }
- // Blob reference is not needed anymore, free memory:
- options.blob = null;
- },
-
- _initIframeSettings: function (options) {
- var targetHost = $('<a></a>').prop('href', options.url).prop('host');
- // Setting the dataType to iframe enables the iframe transport:
- options.dataType = 'iframe ' + (options.dataType || '');
- // The iframe transport accepts a serialized array as form data:
- options.formData = this._getFormData(options);
- // Add redirect url to form data on cross-domain uploads:
- if (options.redirect && targetHost && targetHost !== location.host) {
- options.formData.push({
- name: options.redirectParamName || 'redirect',
- value: options.redirect
- });
- }
- },
-
- _initDataSettings: function (options) {
- if (this._isXHRUpload(options)) {
- if (!this._chunkedUpload(options, true)) {
- if (!options.data) {
- this._initXHRData(options);
- }
- this._initProgressListener(options);
- }
- if (options.postMessage) {
- // Setting the dataType to postmessage enables the
- // postMessage transport:
- options.dataType = 'postmessage ' + (options.dataType || '');
- }
- } else {
- this._initIframeSettings(options);
- }
- },
-
- _getParamName: function (options) {
- var fileInput = $(options.fileInput),
- paramName = options.paramName;
- if (!paramName) {
- paramName = [];
- fileInput.each(function () {
- var input = $(this),
- name = input.prop('name') || 'files[]',
- i = (input.prop('files') || [1]).length;
- while (i) {
- paramName.push(name);
- i -= 1;
- }
- });
- if (!paramName.length) {
- paramName = [fileInput.prop('name') || 'files[]'];
- }
- } else if (!$.isArray(paramName)) {
- paramName = [paramName];
- }
- return paramName;
- },
-
- _initFormSettings: function (options) {
- // Retrieve missing options from the input field and the
- // associated form, if available:
- if (!options.form || !options.form.length) {
- options.form = $(options.fileInput.prop('form'));
- // If the given file input doesn't have an associated form,
- // use the default widget file input's form:
- if (!options.form.length) {
- options.form = $(this.options.fileInput.prop('form'));
- }
- }
- options.paramName = this._getParamName(options);
- if (!options.url) {
- options.url = options.form.prop('action') || location.href;
- }
- // The HTTP request method must be "POST" or "PUT":
- options.type = (options.type ||
- ($.type(options.form.prop('method')) === 'string' &&
- options.form.prop('method')) || ''
- ).toUpperCase();
- if (options.type !== 'POST' && options.type !== 'PUT' &&
- options.type !== 'PATCH') {
- options.type = 'POST';
- }
- if (!options.formAcceptCharset) {
- options.formAcceptCharset = options.form.attr('accept-charset');
- }
- },
-
- _getAJAXSettings: function (data) {
- var options = $.extend({}, this.options, data);
- this._initFormSettings(options);
- this._initDataSettings(options);
- return options;
- },
-
- // jQuery 1.6 doesn't provide .state(),
- // while jQuery 1.8+ removed .isRejected() and .isResolved():
- _getDeferredState: function (deferred) {
- if (deferred.state) {
- return deferred.state();
- }
- if (deferred.isResolved()) {
- return 'resolved';
- }
- if (deferred.isRejected()) {
- return 'rejected';
- }
- return 'pending';
- },
-
- // Maps jqXHR callbacks to the equivalent
- // methods of the given Promise object:
- _enhancePromise: function (promise) {
- promise.success = promise.done;
- promise.error = promise.fail;
- promise.complete = promise.always;
- return promise;
- },
-
- // Creates and returns a Promise object enhanced with
- // the jqXHR methods abort, success, error and complete:
- _getXHRPromise: function (resolveOrReject, context, args) {
- var dfd = $.Deferred(),
- promise = dfd.promise();
- context = context || this.options.context || promise;
- if (resolveOrReject === true) {
- dfd.resolveWith(context, args);
- } else if (resolveOrReject === false) {
- dfd.rejectWith(context, args);
- }
- promise.abort = dfd.promise;
- return this._enhancePromise(promise);
- },
-
- // Adds convenience methods to the data callback argument:
- _addConvenienceMethods: function (e, data) {
- var that = this,
- getPromise = function (args) {
- return $.Deferred().resolveWith(that, args).promise();
- };
- data.process = function (resolveFunc, rejectFunc) {
- if (resolveFunc || rejectFunc) {
- data._processQueue = this._processQueue =
- (this._processQueue || getPromise([this])).pipe(
- function () {
- if (data.errorThrown) {
- return $.Deferred()
- .rejectWith(that, [data]).promise();
- }
- return getPromise(arguments);
- }
- ).pipe(resolveFunc, rejectFunc);
- }
- return this._processQueue || getPromise([this]);
- };
- data.submit = function () {
- if (this.state() !== 'pending') {
- data.jqXHR = this.jqXHR =
- (that._trigger(
- 'submit',
- $.Event('submit', {delegatedEvent: e}),
- this
- ) !== false) && that._onSend(e, this);
- }
- return this.jqXHR || that._getXHRPromise();
- };
- data.abort = function () {
- if (this.jqXHR) {
- return this.jqXHR.abort();
- }
- this.errorThrown = 'abort';
- that._trigger('fail', null, this);
- return that._getXHRPromise(false);
- };
- data.state = function () {
- if (this.jqXHR) {
- return that._getDeferredState(this.jqXHR);
- }
- if (this._processQueue) {
- return that._getDeferredState(this._processQueue);
- }
- };
- data.processing = function () {
- return !this.jqXHR && this._processQueue && that
- ._getDeferredState(this._processQueue) === 'pending';
- };
- data.progress = function () {
- return this._progress;
- };
- data.response = function () {
- return this._response;
- };
- },
-
- // Parses the Range header from the server response
- // and returns the uploaded bytes:
- _getUploadedBytes: function (jqXHR) {
- var range = jqXHR.getResponseHeader('Range'),
- parts = range && range.split('-'),
- upperBytesPos = parts && parts.length > 1 &&
- parseInt(parts[1], 10);
- return upperBytesPos && upperBytesPos + 1;
- },
-
- // Uploads a file in multiple, sequential requests
- // by splitting the file up in multiple blob chunks.
- // If the second parameter is true, only tests if the file
- // should be uploaded in chunks, but does not invoke any
- // upload requests:
- _chunkedUpload: function (options, testOnly) {
- options.uploadedBytes = options.uploadedBytes || 0;
- var that = this,
- file = options.files[0],
- fs = file.size,
- ub = options.uploadedBytes,
- mcs = options.maxChunkSize || fs,
- slice = this._blobSlice,
- dfd = $.Deferred(),
- promise = dfd.promise(),
- jqXHR,
- upload;
- if (!(this._isXHRUpload(options) && slice && (ub || mcs < fs)) ||
- options.data) {
- return false;
- }
- if (testOnly) {
- return true;
- }
- if (ub >= fs) {
- file.error = options.i18n('uploadedBytes');
- return this._getXHRPromise(
- false,
- options.context,
- [null, 'error', file.error]
- );
- }
- // The chunk upload method:
- upload = function () {
- // Clone the options object for each chunk upload:
- var o = $.extend({}, options),
- currentLoaded = o._progress.loaded;
- o.blob = slice.call(
- file,
- ub,
- ub + mcs,
- file.type
- );
- // Store the current chunk size, as the blob itself
- // will be dereferenced after data processing:
- o.chunkSize = o.blob.size;
- // Expose the chunk bytes position range:
- o.contentRange = 'bytes ' + ub + '-' +
- (ub + o.chunkSize - 1) + '/' + fs;
- // Process the upload data (the blob and potential form data):
- that._initXHRData(o);
- // Add progress listeners for this chunk upload:
- that._initProgressListener(o);
- jqXHR = ((that._trigger('chunksend', null, o) !== false && $.ajax(o)) ||
- that._getXHRPromise(false, o.context))
- .done(function (result, textStatus, jqXHR) {
- ub = that._getUploadedBytes(jqXHR) ||
- (ub + o.chunkSize);
- // Create a progress event if no final progress event
- // with loaded equaling total has been triggered
- // for this chunk:
- if (currentLoaded + o.chunkSize - o._progress.loaded) {
- that._onProgress($.Event('progress', {
- lengthComputable: true,
- loaded: ub - o.uploadedBytes,
- total: ub - o.uploadedBytes
- }), o);
- }
- options.uploadedBytes = o.uploadedBytes = ub;
- o.result = result;
- o.textStatus = textStatus;
- o.jqXHR = jqXHR;
- that._trigger('chunkdone', null, o);
- that._trigger('chunkalways', null, o);
- if (ub < fs) {
- // File upload not yet complete,
- // continue with the next chunk:
- upload();
- } else {
- dfd.resolveWith(
- o.context,
- [result, textStatus, jqXHR]
- );
- }
- })
- .fail(function (jqXHR, textStatus, errorThrown) {
- o.jqXHR = jqXHR;
- o.textStatus = textStatus;
- o.errorThrown = errorThrown;
- that._trigger('chunkfail', null, o);
- that._trigger('chunkalways', null, o);
- dfd.rejectWith(
- o.context,
- [jqXHR, textStatus, errorThrown]
- );
- });
- };
- this._enhancePromise(promise);
- promise.abort = function () {
- return jqXHR.abort();
- };
- upload();
- return promise;
- },
-
- _beforeSend: function (e, data) {
- if (this._active === 0) {
- // the start callback is triggered when an upload starts
- // and no other uploads are currently running,
- // equivalent to the global ajaxStart event:
- this._trigger('start');
- // Set timer for global bitrate progress calculation:
- this._bitrateTimer = new this._BitrateTimer();
- // Reset the global progress values:
- this._progress.loaded = this._progress.total = 0;
- this._progress.bitrate = 0;
- }
- // Make sure the container objects for the .response() and
- // .progress() methods on the data object are available
- // and reset to their initial state:
- this._initResponseObject(data);
- this._initProgressObject(data);
- data._progress.loaded = data.loaded = data.uploadedBytes || 0;
- data._progress.total = data.total = this._getTotal(data.files) || 1;
- data._progress.bitrate = data.bitrate = 0;
- this._active += 1;
- // Initialize the global progress values:
- this._progress.loaded += data.loaded;
- this._progress.total += data.total;
- },
-
- _onDone: function (result, textStatus, jqXHR, options) {
- var total = options._progress.total,
- response = options._response;
- if (options._progress.loaded < total) {
- // Create a progress event if no final progress event
- // with loaded equaling total has been triggered:
- this._onProgress($.Event('progress', {
- lengthComputable: true,
- loaded: total,
- total: total
- }), options);
- }
- response.result = options.result = result;
- response.textStatus = options.textStatus = textStatus;
- response.jqXHR = options.jqXHR = jqXHR;
- this._trigger('done', null, options);
- },
-
- _onFail: function (jqXHR, textStatus, errorThrown, options) {
- var response = options._response;
- if (options.recalculateProgress) {
- // Remove the failed (error or abort) file upload from
- // the global progress calculation:
- this._progress.loaded -= options._progress.loaded;
- this._progress.total -= options._progress.total;
- }
- response.jqXHR = options.jqXHR = jqXHR;
- response.textStatus = options.textStatus = textStatus;
- response.errorThrown = options.errorThrown = errorThrown;
- this._trigger('fail', null, options);
- },
-
- _onAlways: function (jqXHRorResult, textStatus, jqXHRorError, options) {
- // jqXHRorResult, textStatus and jqXHRorError are added to the
- // options object via done and fail callbacks
- this._trigger('always', null, options);
- },
-
- _onSend: function (e, data) {
- if (!data.submit) {
- this._addConvenienceMethods(e, data);
- }
- var that = this,
- jqXHR,
- aborted,
- slot,
- pipe,
- options = that._getAJAXSettings(data),
- send = function () {
- that._sending += 1;
- // Set timer for bitrate progress calculation:
- options._bitrateTimer = new that._BitrateTimer();
- jqXHR = jqXHR || (
- ((aborted || that._trigger(
- 'send',
- $.Event('send', {delegatedEvent: e}),
- options
- ) === false) &&
- that._getXHRPromise(false, options.context, aborted)) ||
- that._chunkedUpload(options) || $.ajax(options)
- ).done(function (result, textStatus, jqXHR) {
- that._onDone(result, textStatus, jqXHR, options);
- }).fail(function (jqXHR, textStatus, errorThrown) {
- that._onFail(jqXHR, textStatus, errorThrown, options);
- }).always(function (jqXHRorResult, textStatus, jqXHRorError) {
- that._onAlways(
- jqXHRorResult,
- textStatus,
- jqXHRorError,
- options
- );
- that._sending -= 1;
- that._active -= 1;
- if (options.limitConcurrentUploads &&
- options.limitConcurrentUploads > that._sending) {
- // Start the next queued upload,
- // that has not been aborted:
- var nextSlot = that._slots.shift();
- while (nextSlot) {
- if (that._getDeferredState(nextSlot) === 'pending') {
- nextSlot.resolve();
- break;
- }
- nextSlot = that._slots.shift();
- }
- }
- if (that._active === 0) {
- // The stop callback is triggered when all uploads have
- // been completed, equivalent to the global ajaxStop event:
- that._trigger('stop');
- }
- });
- return jqXHR;
- };
- this._beforeSend(e, options);
- if (this.options.sequentialUploads ||
- (this.options.limitConcurrentUploads &&
- this.options.limitConcurrentUploads <= this._sending)) {
- if (this.options.limitConcurrentUploads > 1) {
- slot = $.Deferred();
- this._slots.push(slot);
- pipe = slot.pipe(send);
- } else {
- this._sequence = this._sequence.pipe(send, send);
- pipe = this._sequence;
- }
- // Return the piped Promise object, enhanced with an abort method,
- // which is delegated to the jqXHR object of the current upload,
- // and jqXHR callbacks mapped to the equivalent Promise methods:
- pipe.abort = function () {
- aborted = [undefined, 'abort', 'abort'];
- if (!jqXHR) {
- if (slot) {
- slot.rejectWith(options.context, aborted);
- }
- return send();
- }
- return jqXHR.abort();
- };
- return this._enhancePromise(pipe);
- }
- return send();
- },
-
- _onAdd: function (e, data) {
- var that = this,
- result = true,
- options = $.extend({}, this.options, data),
- files = data.files,
- filesLength = files.length,
- limit = options.limitMultiFileUploads,
- limitSize = options.limitMultiFileUploadSize,
- overhead = options.limitMultiFileUploadSizeOverhead,
- batchSize = 0,
- paramName = this._getParamName(options),
- paramNameSet,
- paramNameSlice,
- fileSet,
- i,
- j = 0;
- if (!filesLength) {
- return false;
- }
- if (limitSize && files[0].size === undefined) {
- limitSize = undefined;
- }
- if (!(options.singleFileUploads || limit || limitSize) ||
- !this._isXHRUpload(options)) {
- fileSet = [files];
- paramNameSet = [paramName];
- } else if (!(options.singleFileUploads || limitSize) && limit) {
- fileSet = [];
- paramNameSet = [];
- for (i = 0; i < filesLength; i += limit) {
- fileSet.push(files.slice(i, i + limit));
- paramNameSlice = paramName.slice(i, i + limit);
- if (!paramNameSlice.length) {
- paramNameSlice = paramName;
- }
- paramNameSet.push(paramNameSlice);
- }
- } else if (!options.singleFileUploads && limitSize) {
- fileSet = [];
- paramNameSet = [];
- for (i = 0; i < filesLength; i = i + 1) {
- batchSize += files[i].size + overhead;
- if (i + 1 === filesLength ||
- ((batchSize + files[i + 1].size + overhead) > limitSize) ||
- (limit && i + 1 - j >= limit)) {
- fileSet.push(files.slice(j, i + 1));
- paramNameSlice = paramName.slice(j, i + 1);
- if (!paramNameSlice.length) {
- paramNameSlice = paramName;
- }
- paramNameSet.push(paramNameSlice);
- j = i + 1;
- batchSize = 0;
- }
- }
- } else {
- paramNameSet = paramName;
- }
- data.originalFiles = files;
- $.each(fileSet || files, function (index, element) {
- var newData = $.extend({}, data);
- newData.files = fileSet ? element : [element];
- newData.paramName = paramNameSet[index];
- that._initResponseObject(newData);
- that._initProgressObject(newData);
- that._addConvenienceMethods(e, newData);
- result = that._trigger(
- 'add',
- $.Event('add', {delegatedEvent: e}),
- newData
- );
- return result;
- });
- return result;
- },
-
- _replaceFileInput: function (data) {
- var input = data.fileInput,
- inputClone = input.clone(true),
- restoreFocus = input.is(document.activeElement);
- // Add a reference for the new cloned file input to the data argument:
- data.fileInputClone = inputClone;
- $('<form></form>').append(inputClone)[0].reset();
- // Detaching allows to insert the fileInput on another form
- // without loosing the file input value:
- input.after(inputClone).detach();
- // If the fileInput had focus before it was detached,
- // restore focus to the inputClone.
- if (restoreFocus) {
- inputClone.focus();
- }
- // Avoid memory leaks with the detached file input:
- $.cleanData(input.unbind('remove'));
- // Replace the original file input element in the fileInput
- // elements set with the clone, which has been copied including
- // event handlers:
- this.options.fileInput = this.options.fileInput.map(function (i, el) {
- if (el === input[0]) {
- return inputClone[0];
- }
- return el;
- });
- // If the widget has been initialized on the file input itself,
- // override this.element with the file input clone:
- if (input[0] === this.element[0]) {
- this.element = inputClone;
- }
- },
-
- _handleFileTreeEntry: function (entry, path) {
- var that = this,
- dfd = $.Deferred(),
- errorHandler = function (e) {
- if (e && !e.entry) {
- e.entry = entry;
- }
- // Since $.when returns immediately if one
- // Deferred is rejected, we use resolve instead.
- // This allows valid files and invalid items
- // to be returned together in one set:
- dfd.resolve([e]);
- },
- successHandler = function (entries) {
- that._handleFileTreeEntries(
- entries,
- path + entry.name + '/'
- ).done(function (files) {
- dfd.resolve(files);
- }).fail(errorHandler);
- },
- readEntries = function () {
- dirReader.readEntries(function (results) {
- if (!results.length) {
- successHandler(entries);
- } else {
- entries = entries.concat(results);
- readEntries();
- }
- }, errorHandler);
- },
- dirReader, entries = [];
- path = path || '';
- if (entry.isFile) {
- if (entry._file) {
- // Workaround for Chrome bug #149735
- entry._file.relativePath = path;
- dfd.resolve(entry._file);
- } else {
- entry.file(function (file) {
- file.relativePath = path;
- dfd.resolve(file);
- }, errorHandler);
- }
- } else if (entry.isDirectory) {
- dirReader = entry.createReader();
- readEntries();
- } else {
- // Return an empy list for file system items
- // other than files or directories:
- dfd.resolve([]);
- }
- return dfd.promise();
- },
-
- _handleFileTreeEntries: function (entries, path) {
- var that = this;
- return $.when.apply(
- $,
- $.map(entries, function (entry) {
- return that._handleFileTreeEntry(entry, path);
- })
- ).pipe(function () {
- return Array.prototype.concat.apply(
- [],
- arguments
- );
- });
- },
-
- _getDroppedFiles: function (dataTransfer) {
- dataTransfer = dataTransfer || {};
- var items = dataTransfer.items;
- if (items && items.length && (items[0].webkitGetAsEntry ||
- items[0].getAsEntry)) {
- return this._handleFileTreeEntries(
- $.map(items, function (item) {
- var entry;
- if (item.webkitGetAsEntry) {
- entry = item.webkitGetAsEntry();
- if (entry) {
- // Workaround for Chrome bug #149735:
- entry._file = item.getAsFile();
- }
- return entry;
- }
- return item.getAsEntry();
- })
- );
- }
- return $.Deferred().resolve(
- $.makeArray(dataTransfer.files)
- ).promise();
- },
-
- _getSingleFileInputFiles: function (fileInput) {
- fileInput = $(fileInput);
- var entries = fileInput.prop('webkitEntries') ||
- fileInput.prop('entries'),
- files,
- value;
- if (entries && entries.length) {
- return this._handleFileTreeEntries(entries);
- }
- files = $.makeArray(fileInput.prop('files'));
- if (!files.length) {
- value = fileInput.prop('value');
- if (!value) {
- return $.Deferred().resolve([]).promise();
- }
- // If the files property is not available, the browser does not
- // support the File API and we add a pseudo File object with
- // the input value as name with path information removed:
- files = [{name: value.replace(/^.*\\/, '')}];
- } else if (files[0].name === undefined && files[0].fileName) {
- // File normalization for Safari 4 and Firefox 3:
- $.each(files, function (index, file) {
- file.name = file.fileName;
- file.size = file.fileSize;
- });
- }
- return $.Deferred().resolve(files).promise();
- },
-
- _getFileInputFiles: function (fileInput) {
- if (!(fileInput instanceof $) || fileInput.length === 1) {
- return this._getSingleFileInputFiles(fileInput);
- }
- return $.when.apply(
- $,
- $.map(fileInput, this._getSingleFileInputFiles)
- ).pipe(function () {
- return Array.prototype.concat.apply(
- [],
- arguments
- );
- });
- },
-
- _onChange: function (e) {
- var that = this,
- data = {
- fileInput: $(e.target),
- form: $(e.target.form)
- };
- this._getFileInputFiles(data.fileInput).always(function (files) {
- data.files = files;
- if (that.options.replaceFileInput) {
- that._replaceFileInput(data);
- }
- if (that._trigger(
- 'change',
- $.Event('change', {delegatedEvent: e}),
- data
- ) !== false) {
- that._onAdd(e, data);
- }
- });
- },
-
- _onPaste: function (e) {
- var items = e.originalEvent && e.originalEvent.clipboardData &&
- e.originalEvent.clipboardData.items,
- data = {files: []};
- if (items && items.length) {
- $.each(items, function (index, item) {
- var file = item.getAsFile && item.getAsFile();
- if (file) {
- data.files.push(file);
- }
- });
- if (this._trigger(
- 'paste',
- $.Event('paste', {delegatedEvent: e}),
- data
- ) !== false) {
- this._onAdd(e, data);
- }
- }
- },
-
- _onDrop: function (e) {
- e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
- var that = this,
- dataTransfer = e.dataTransfer,
- data = {};
- if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
- e.preventDefault();
- this._getDroppedFiles(dataTransfer).always(function (files) {
- data.files = files;
- if (that._trigger(
- 'drop',
- $.Event('drop', {delegatedEvent: e}),
- data
- ) !== false) {
- that._onAdd(e, data);
- }
- });
- }
- },
-
- _onDragOver: getDragHandler('dragover'),
-
- _onDragEnter: getDragHandler('dragenter'),
-
- _onDragLeave: getDragHandler('dragleave'),
-
- _initEventHandlers: function () {
- if (this._isXHRUpload(this.options)) {
- this._on(this.options.dropZone, {
- dragover: this._onDragOver,
- drop: this._onDrop,
- // event.preventDefault() on dragenter is required for IE10+:
- dragenter: this._onDragEnter,
- // dragleave is not required, but added for completeness:
- dragleave: this._onDragLeave
- });
- this._on(this.options.pasteZone, {
- paste: this._onPaste
- });
- }
- if ($.support.fileInput) {
- this._on(this.options.fileInput, {
- change: this._onChange
- });
- }
- },
-
- _destroyEventHandlers: function () {
- this._off(this.options.dropZone, 'dragenter dragleave dragover drop');
- this._off(this.options.pasteZone, 'paste');
- this._off(this.options.fileInput, 'change');
- },
-
- _setOption: function (key, value) {
- var reinit = $.inArray(key, this._specialOptions) !== -1;
- if (reinit) {
- this._destroyEventHandlers();
- }
- this._super(key, value);
- if (reinit) {
- this._initSpecialOptions();
- this._initEventHandlers();
- }
- },
-
- _initSpecialOptions: function () {
- var options = this.options;
- if (options.fileInput === undefined) {
- options.fileInput = this.element.is('input[type="file"]') ?
- this.element : this.element.find('input[type="file"]');
- } else if (!(options.fileInput instanceof $)) {
- options.fileInput = $(options.fileInput);
- }
- if (!(options.dropZone instanceof $)) {
- options.dropZone = $(options.dropZone);
- }
- if (!(options.pasteZone instanceof $)) {
- options.pasteZone = $(options.pasteZone);
- }
- },
-
- _getRegExp: function (str) {
- var parts = str.split('/'),
- modifiers = parts.pop();
- parts.shift();
- return new RegExp(parts.join('/'), modifiers);
- },
-
- _isRegExpOption: function (key, value) {
- return key !== 'url' && $.type(value) === 'string' &&
- /^\/.*\/[igm]{0,3}$/.test(value);
- },
-
- _initDataAttributes: function () {
- var that = this,
- options = this.options,
- data = this.element.data();
- // Initialize options set via HTML5 data-attributes:
- $.each(
- this.element[0].attributes,
- function (index, attr) {
- var key = attr.name.toLowerCase(),
- value;
- if (/^data-/.test(key)) {
- // Convert hyphen-ated key to camelCase:
- key = key.slice(5).replace(/-[a-z]/g, function (str) {
- return str.charAt(1).toUpperCase();
- });
- value = data[key];
- if (that._isRegExpOption(key, value)) {
- value = that._getRegExp(value);
- }
- options[key] = value;
- }
- }
- );
- },
-
- _create: function () {
- this._initDataAttributes();
- this._initSpecialOptions();
- this._slots = [];
- this._sequence = this._getXHRPromise(true);
- this._sending = this._active = 0;
- this._initProgressObject(this);
- this._initEventHandlers();
- },
-
- // This method is exposed to the widget API and allows to query
- // the number of active uploads:
- active: function () {
- return this._active;
- },
-
- // This method is exposed to the widget API and allows to query
- // the widget upload progress.
- // It returns an object with loaded, total and bitrate properties
- // for the running uploads:
- progress: function () {
- return this._progress;
- },
-
- // This method is exposed to the widget API and allows adding files
- // using the fileupload API. The data parameter accepts an object which
- // must have a files property and can contain additional options:
- // .fileupload('add', {files: filesList});
- add: function (data) {
- var that = this;
- if (!data || this.options.disabled) {
- return;
- }
- if (data.fileInput && !data.files) {
- this._getFileInputFiles(data.fileInput).always(function (files) {
- data.files = files;
- that._onAdd(null, data);
- });
- } else {
- data.files = $.makeArray(data.files);
- this._onAdd(null, data);
- }
- },
-
- // This method is exposed to the widget API and allows sending files
- // using the fileupload API. The data parameter accepts an object which
- // must have a files or fileInput property and can contain additional options:
- // .fileupload('send', {files: filesList});
- // The method returns a Promise object for the file upload call.
- send: function (data) {
- if (data && !this.options.disabled) {
- if (data.fileInput && !data.files) {
- var that = this,
- dfd = $.Deferred(),
- promise = dfd.promise(),
- jqXHR,
- aborted;
- promise.abort = function () {
- aborted = true;
- if (jqXHR) {
- return jqXHR.abort();
- }
- dfd.reject(null, 'abort', 'abort');
- return promise;
- };
- this._getFileInputFiles(data.fileInput).always(
- function (files) {
- if (aborted) {
- return;
- }
- if (!files.length) {
- dfd.reject();
- return;
- }
- data.files = files;
- jqXHR = that._onSend(null, data);
- jqXHR.then(
- function (result, textStatus, jqXHR) {
- dfd.resolve(result, textStatus, jqXHR);
- },
- function (jqXHR, textStatus, errorThrown) {
- dfd.reject(jqXHR, textStatus, errorThrown);
- }
- );
- }
- );
- return this._enhancePromise(promise);
- }
- data.files = $.makeArray(data.files);
- if (data.files.length) {
- return this._onSend(null, data);
- }
- }
- return this._getXHRPromise(false, data && data.context);
- }
-
- });
-
-}));
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.iframe-transport.js b/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.iframe-transport.js
deleted file mode 100644
index a7d34e0..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.iframe-transport.js
+++ /dev/null
@@ -1,217 +0,0 @@
-/*
- * jQuery Iframe Transport Plugin
- * https://github.com/blueimp/jQuery-File-Upload
- *
- * Copyright 2011, Sebastian Tschan
- * https://blueimp.net
- *
- * Licensed under the MIT license:
- * http://www.opensource.org/licenses/MIT
- */
-
-/* global define, require, window, document */
-
-(function (factory) {
- 'use strict';
- if (typeof define === 'function' && define.amd) {
- // Register as an anonymous AMD module:
- define(['jquery'], factory);
- } else if (typeof exports === 'object') {
- // Node/CommonJS:
- factory(require('jquery'));
- } else {
- // Browser globals:
- factory(window.jQuery);
- }
-}(function ($) {
- 'use strict';
-
- // Helper variable to create unique names for the transport iframes:
- var counter = 0;
-
- // The iframe transport accepts four additional options:
- // options.fileInput: a jQuery collection of file input fields
- // options.paramName: the parameter name for the file form data,
- // overrides the name property of the file input field(s),
- // can be a string or an array of strings.
- // options.formData: an array of objects with name and value properties,
- // equivalent to the return data of .serializeArray(), e.g.:
- // [{name: 'a', value: 1}, {name: 'b', value: 2}]
- // options.initialIframeSrc: the URL of the initial iframe src,
- // by default set to "javascript:false;"
- $.ajaxTransport('iframe', function (options) {
- if (options.async) {
- // javascript:false as initial iframe src
- // prevents warning popups on HTTPS in IE6:
- /*jshint scripturl: true */
- var initialIframeSrc = options.initialIframeSrc || 'javascript:false;',
- /*jshint scripturl: false */
- form,
- iframe,
- addParamChar;
- return {
- send: function (_, completeCallback) {
- form = $('<form style="display:none;"></form>');
- form.attr('accept-charset', options.formAcceptCharset);
- addParamChar = /\?/.test(options.url) ? '&' : '?';
- // XDomainRequest only supports GET and POST:
- if (options.type === 'DELETE') {
- options.url = options.url + addParamChar + '_method=DELETE';
- options.type = 'POST';
- } else if (options.type === 'PUT') {
- options.url = options.url + addParamChar + '_method=PUT';
- options.type = 'POST';
- } else if (options.type === 'PATCH') {
- options.url = options.url + addParamChar + '_method=PATCH';
- options.type = 'POST';
- }
- // IE versions below IE8 cannot set the name property of
- // elements that have already been added to the DOM,
- // so we set the name along with the iframe HTML markup:
- counter += 1;
- iframe = $(
- '<iframe src="' + initialIframeSrc +
- '" name="iframe-transport-' + counter + '"></iframe>'
- ).bind('load', function () {
- var fileInputClones,
- paramNames = $.isArray(options.paramName) ?
- options.paramName : [options.paramName];
- iframe
- .unbind('load')
- .bind('load', function () {
- var response;
- // Wrap in a try/catch block to catch exceptions thrown
- // when trying to access cross-domain iframe contents:
- try {
- response = iframe.contents();
- // Google Chrome and Firefox do not throw an
- // exception when calling iframe.contents() on
- // cross-domain requests, so we unify the response:
- if (!response.length || !response[0].firstChild) {
- throw new Error();
- }
- } catch (e) {
- response = undefined;
- }
- // The complete callback returns the
- // iframe content document as response object:
- completeCallback(
- 200,
- 'success',
- {'iframe': response}
- );
- // Fix for IE endless progress bar activity bug
- // (happens on form submits to iframe targets):
- $('<iframe src="' + initialIframeSrc + '"></iframe>')
- .appendTo(form);
- window.setTimeout(function () {
- // Removing the form in a setTimeout call
- // allows Chrome's developer tools to display
- // the response result
- form.remove();
- }, 0);
- });
- form
- .prop('target', iframe.prop('name'))
- .prop('action', options.url)
- .prop('method', options.type);
- if (options.formData) {
- $.each(options.formData, function (index, field) {
- $('<input type="hidden"/>')
- .prop('name', field.name)
- .val(field.value)
- .appendTo(form);
- });
- }
- if (options.fileInput && options.fileInput.length &&
- options.type === 'POST') {
- fileInputClones = options.fileInput.clone();
- // Insert a clone for each file input field:
- options.fileInput.after(function (index) {
- return fileInputClones[index];
- });
- if (options.paramName) {
- options.fileInput.each(function (index) {
- $(this).prop(
- 'name',
- paramNames[index] || options.paramName
- );
- });
- }
- // Appending the file input fields to the hidden form
- // removes them from their original location:
- form
- .append(options.fileInput)
- .prop('enctype', 'multipart/form-data')
- // enctype must be set as encoding for IE:
- .prop('encoding', 'multipart/form-data');
- // Remove the HTML5 form attribute from the input(s):
- options.fileInput.removeAttr('form');
- }
- form.submit();
- // Insert the file input fields at their original location
- // by replacing the clones with the originals:
- if (fileInputClones && fileInputClones.length) {
- options.fileInput.each(function (index, input) {
- var clone = $(fileInputClones[index]);
- // Restore the original name and form properties:
- $(input)
- .prop('name', clone.prop('name'))
- .attr('form', clone.attr('form'));
- clone.replaceWith(input);
- });
- }
- });
- form.append(iframe).appendTo(document.body);
- },
- abort: function () {
- if (iframe) {
- // javascript:false as iframe src aborts the request
- // and prevents warning popups on HTTPS in IE6.
- // concat is used to avoid the "Script URL" JSLint error:
- iframe
- .unbind('load')
- .prop('src', initialIframeSrc);
- }
- if (form) {
- form.remove();
- }
- }
- };
- }
- });
-
- // The iframe transport returns the iframe content document as response.
- // The following adds converters from iframe to text, json, html, xml
- // and script.
- // Please note that the Content-Type for JSON responses has to be text/plain
- // or text/html, if the browser doesn't include application/json in the
- // Accept header, else IE will show a download dialog.
- // The Content-Type for XML responses on the other hand has to be always
- // application/xml or text/xml, so IE properly parses the XML response.
- // See also
- // https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation
- $.ajaxSetup({
- converters: {
- 'iframe text': function (iframe) {
- return iframe && $(iframe[0].body).text();
- },
- 'iframe json': function (iframe) {
- return iframe && $.parseJSON($(iframe[0].body).text());
- },
- 'iframe html': function (iframe) {
- return iframe && $(iframe[0].body).html();
- },
- 'iframe xml': function (iframe) {
- var xmlDoc = iframe && iframe[0];
- return xmlDoc && $.isXMLDoc(xmlDoc) ? xmlDoc :
- $.parseXML((xmlDoc.XMLDocument && xmlDoc.XMLDocument.xml) ||
- $(xmlDoc.body).html());
- },
- 'iframe script': function (iframe) {
- return iframe && $.globalEval($(iframe[0].body).text());
- }
- }
- });
-
-}));
diff --git a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/vendor/jquery.ui.widget.js b/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/vendor/jquery.ui.widget.js
deleted file mode 100644
index e08df3f..0000000
--- a/common/src/main/webapp/thirdparty/jQuery-File-Upload/js/vendor/jquery.ui.widget.js
+++ /dev/null
@@ -1,572 +0,0 @@
-/*! jQuery UI - v1.11.4+CommonJS - 2015-08-28
-* http://jqueryui.com
-* Includes: widget.js
-* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
-
-(function( factory ) {
- if ( typeof define === "function" && define.amd ) {
-
- // AMD. Register as an anonymous module.
- define([ "jquery" ], factory );
-
- } else if ( typeof exports === "object" ) {
-
- // Node/CommonJS
- factory( require( "jquery" ) );
-
- } else {
-
- // Browser globals
- factory( jQuery );
- }
-}(function( $ ) {
-/*!
- * jQuery UI Widget 1.11.4
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- * http://api.jqueryui.com/jQuery.widget/
- */
-
-
-var widget_uuid = 0,
- widget_slice = Array.prototype.slice;
-
-$.cleanData = (function( orig ) {
- return function( elems ) {
- var events, elem, i;
- for ( i = 0; (elem = elems[i]) != null; i++ ) {
- try {
-
- // Only trigger remove when necessary to save time
- events = $._data( elem, "events" );
- if ( events && events.remove ) {
- $( elem ).triggerHandler( "remove" );
- }
-
- // http://bugs.jquery.com/ticket/8235
- } catch ( e ) {}
- }
- orig( elems );
- };
-})( $.cleanData );
-
-$.widget = function( name, base, prototype ) {
- var fullName, existingConstructor, constructor, basePrototype,
- // proxiedPrototype allows the provided prototype to remain unmodified
- // so that it can be used as a mixin for multiple widgets (#8876)
- proxiedPrototype = {},
- namespace = name.split( "." )[ 0 ];
-
- name = name.split( "." )[ 1 ];
- fullName = namespace + "-" + name;
-
- if ( !prototype ) {
- prototype = base;
- base = $.Widget;
- }
-
- // create selector for plugin
- $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {
- return !!$.data( elem, fullName );
- };
-
- $[ namespace ] = $[ namespace ] || {};
- existingConstructor = $[ namespace ][ name ];
- constructor = $[ namespace ][ name ] = function( options, element ) {
- // allow instantiation without "new" keyword
- if ( !this._createWidget ) {
- return new constructor( options, element );
- }
-
- // allow instantiation without initializing for simple inheritance
- // must use "new" keyword (the code above always passes args)
- if ( arguments.length ) {
- this._createWidget( options, element );
- }
- };
- // extend with the existing constructor to carry over any static properties
- $.extend( constructor, existingConstructor, {
- version: prototype.version,
- // copy the object used to create the prototype in case we need to
- // redefine the widget later
- _proto: $.extend( {}, prototype ),
- // track widgets that inherit from this widget in case this widget is
- // redefined after a widget inherits from it
- _childConstructors: []
- });
-
- basePrototype = new base();
- // we need to make the options hash a property directly on the new instance
- // otherwise we'll modify the options hash on the prototype that we're
- // inheriting from
- basePrototype.options = $.widget.extend( {}, basePrototype.options );
- $.each( prototype, function( prop, value ) {
- if ( !$.isFunction( value ) ) {
- proxiedPrototype[ prop ] = value;
- return;
- }
- proxiedPrototype[ prop ] = (function() {
- var _super = function() {
- return base.prototype[ prop ].apply( this, arguments );
- },
- _superApply = function( args ) {
- return base.prototype[ prop ].apply( this, args );
- };
- return function() {
- var __super = this._super,
- __superApply = this._superApply,
- returnValue;
-
- this._super = _super;
- this._superApply = _superApply;
-
- returnValue = value.apply( this, arguments );
-
- this._super = __super;
- this._superApply = __superApply;
-
- return returnValue;
- };
- })();
- });
- constructor.prototype = $.widget.extend( basePrototype, {
- // TODO: remove support for widgetEventPrefix
- // always use the name + a colon as the prefix, e.g., draggable:start
- // don't prefix for widgets that aren't DOM-based
- widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
- }, proxiedPrototype, {
- constructor: constructor,
- namespace: namespace,
- widgetName: name,
- widgetFullName: fullName
- });
-
- // If this widget is being redefined then we need to find all widgets that
- // are inheriting from it and redefine all of them so that they inherit from
- // the new version of this widget. We're essentially trying to replace one
- // level in the prototype chain.
- if ( existingConstructor ) {
- $.each( existingConstructor._childConstructors, function( i, child ) {
- var childPrototype = child.prototype;
-
- // redefine the child widget using the same prototype that was
- // originally used, but inherit from the new version of the base
- $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );
- });
- // remove the list of existing child constructors from the old constructor
- // so the old child constructors can be garbage collected
- delete existingConstructor._childConstructors;
- } else {
- base._childConstructors.push( constructor );
- }
-
- $.widget.bridge( name, constructor );
-
- return constructor;
-};
-
-$.widget.extend = function( target ) {
- var input = widget_slice.call( arguments, 1 ),
- inputIndex = 0,
- inputLength = input.length,
- key,
- value;
- for ( ; inputIndex < inputLength; inputIndex++ ) {
- for ( key in input[ inputIndex ] ) {
- value = input[ inputIndex ][ key ];
- if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {
- // Clone objects
- if ( $.isPlainObject( value ) ) {
- target[ key ] = $.isPlainObject( target[ key ] ) ?
- $.widget.extend( {}, target[ key ], value ) :
- // Don't extend strings, arrays, etc. with objects
- $.widget.extend( {}, value );
- // Copy everything else by reference
- } else {
- target[ key ] = value;
- }
- }
- }
- }
- return target;
-};
-
-$.widget.bridge = function( name, object ) {
- var fullName = object.prototype.widgetFullName || name;
- $.fn[ name ] = function( options ) {
- var isMethodCall = typeof options === "string",
- args = widget_slice.call( arguments, 1 ),
- returnValue = this;
-
- if ( isMethodCall ) {
- this.each(function() {
- var methodValue,
- instance = $.data( this, fullName );
- if ( options === "instance" ) {
- returnValue = instance;
- return false;
- }
- if ( !instance ) {
- return $.error( "cannot call methods on " + name + " prior to initialization; " +
- "attempted to call method '" + options + "'" );
- }
- if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {
- return $.error( "no such method '" + options + "' for " + name + " widget instance" );
- }
- methodValue = instance[ options ].apply( instance, args );
- if ( methodValue !== instance && methodValue !== undefined ) {
- returnValue = methodValue && methodValue.jquery ?
- returnValue.pushStack( methodValue.get() ) :
- methodValue;
- return false;
- }
- });
- } else {
-
- // Allow multiple hashes to be passed on init
- if ( args.length ) {
- options = $.widget.extend.apply( null, [ options ].concat(args) );
- }
-
- this.each(function() {
- var instance = $.data( this, fullName );
- if ( instance ) {
- instance.option( options || {} );
- if ( instance._init ) {
- instance._init();
- }
- } else {
- $.data( this, fullName, new object( options, this ) );
- }
- });
- }
-
- return returnValue;
- };
-};
-
-$.Widget = function( /* options, element */ ) {};
-$.Widget._childConstructors = [];
-
-$.Widget.prototype = {
- widgetName: "widget",
- widgetEventPrefix: "",
- defaultElement: "<div>",
- options: {
- disabled: false,
-
- // callbacks
- create: null
- },
- _createWidget: function( options, element ) {
- element = $( element || this.defaultElement || this )[ 0 ];
- this.element = $( element );
- this.uuid = widget_uuid++;
- this.eventNamespace = "." + this.widgetName + this.uuid;
-
- this.bindings = $();
- this.hoverable = $();
- this.focusable = $();
-
- if ( element !== this ) {
- $.data( element, this.widgetFullName, this );
- this._on( true, this.element, {
- remove: function( event ) {
- if ( event.target === element ) {
- this.destroy();
- }
- }
- });
- this.document = $( element.style ?
- // element within the document
- element.ownerDocument :
- // element is window or document
- element.document || element );
- this.window = $( this.document[0].defaultView || this.document[0].parentWindow );
- }
-
- this.options = $.widget.extend( {},
- this.options,
- this._getCreateOptions(),
- options );
-
- this._create();
- this._trigger( "create", null, this._getCreateEventData() );
- this._init();
- },
- _getCreateOptions: $.noop,
- _getCreateEventData: $.noop,
- _create: $.noop,
- _init: $.noop,
-
- destroy: function() {
- this._destroy();
- // we can probably remove the unbind calls in 2.0
- // all event bindings should go through this._on()
- this.element
- .unbind( this.eventNamespace )
- .removeData( this.widgetFullName )
- // support: jquery <1.6.3
- // http://bugs.jquery.com/ticket/9413
- .removeData( $.camelCase( this.widgetFullName ) );
- this.widget()
- .unbind( this.eventNamespace )
- .removeAttr( "aria-disabled" )
- .removeClass(
- this.widgetFullName + "-disabled " +
- "ui-state-disabled" );
-
- // clean up events and states
- this.bindings.unbind( this.eventNamespace );
- this.hoverable.removeClass( "ui-state-hover" );
- this.focusable.removeClass( "ui-state-focus" );
- },
- _destroy: $.noop,
-
- widget: function() {
- return this.element;
- },
-
- option: function( key, value ) {
- var options = key,
- parts,
- curOption,
- i;
-
- if ( arguments.length === 0 ) {
- // don't return a reference to the internal hash
- return $.widget.extend( {}, this.options );
- }
-
- if ( typeof key === "string" ) {
- // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }
- options = {};
- parts = key.split( "." );
- key = parts.shift();
- if ( parts.length ) {
- curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );
- for ( i = 0; i < parts.length - 1; i++ ) {
- curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};
- curOption = curOption[ parts[ i ] ];
- }
- key = parts.pop();
- if ( arguments.length === 1 ) {
- return curOption[ key ] === undefined ? null : curOption[ key ];
- }
- curOption[ key ] = value;
- } else {
- if ( arguments.length === 1 ) {
- return this.options[ key ] === undefined ? null : this.options[ key ];
- }
- options[ key ] = value;
- }
- }
-
- this._setOptions( options );
-
- return this;
- },
- _setOptions: function( options ) {
- var key;
-
- for ( key in options ) {
- this._setOption( key, options[ key ] );
- }
-
- return this;
- },
- _setOption: function( key, value ) {
- this.options[ key ] = value;
-
- if ( key === "disabled" ) {
- this.widget()
- .toggleClass( this.widgetFullName + "-disabled", !!value );
-
- // If the widget is becoming disabled, then nothing is interactive
- if ( value ) {
- this.hoverable.removeClass( "ui-state-hover" );
- this.focusable.removeClass( "ui-state-focus" );
- }
- }
-
- return this;
- },
-
- enable: function() {
- return this._setOptions({ disabled: false });
- },
- disable: function() {
- return this._setOptions({ disabled: true });
- },
-
- _on: function( suppressDisabledCheck, element, handlers ) {
- var delegateElement,
- instance = this;
-
- // no suppressDisabledCheck flag, shuffle arguments
- if ( typeof suppressDisabledCheck !== "boolean" ) {
- handlers = element;
- element = suppressDisabledCheck;
- suppressDisabledCheck = false;
- }
-
- // no element argument, shuffle and use this.element
- if ( !handlers ) {
- handlers = element;
- element = this.element;
- delegateElement = this.widget();
- } else {
- element = delegateElement = $( element );
- this.bindings = this.bindings.add( element );
- }
-
- $.each( handlers, function( event, handler ) {
- function handlerProxy() {
- // allow widgets to customize the disabled handling
- // - disabled as an array instead of boolean
- // - disabled class as method for disabling individual parts
- if ( !suppressDisabledCheck &&
- ( instance.options.disabled === true ||
- $( this ).hasClass( "ui-state-disabled" ) ) ) {
- return;
- }
- return ( typeof handler === "string" ? instance[ handler ] : handler )
- .apply( instance, arguments );
- }
-
- // copy the guid so direct unbinding works
- if ( typeof handler !== "string" ) {
- handlerProxy.guid = handler.guid =
- handler.guid || handlerProxy.guid || $.guid++;
- }
-
- var match = event.match( /^([\w:-]*)\s*(.*)$/ ),
- eventName = match[1] + instance.eventNamespace,
- selector = match[2];
- if ( selector ) {
- delegateElement.delegate( selector, eventName, handlerProxy );
- } else {
- element.bind( eventName, handlerProxy );
- }
- });
- },
-
- _off: function( element, eventName ) {
- eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) +
- this.eventNamespace;
- element.unbind( eventName ).undelegate( eventName );
-
- // Clear the stack to avoid memory leaks (#10056)
- this.bindings = $( this.bindings.not( element ).get() );
- this.focusable = $( this.focusable.not( element ).get() );
- this.hoverable = $( this.hoverable.not( element ).get() );
- },
-
- _delay: function( handler, delay ) {
- function handlerProxy() {
- return ( typeof handler === "string" ? instance[ handler ] : handler )
- .apply( instance, arguments );
- }
- var instance = this;
- return setTimeout( handlerProxy, delay || 0 );
- },
-
- _hoverable: function( element ) {
- this.hoverable = this.hoverable.add( element );
- this._on( element, {
- mouseenter: function( event ) {
- $( event.currentTarget ).addClass( "ui-state-hover" );
- },
- mouseleave: function( event ) {
- $( event.currentTarget ).removeClass( "ui-state-hover" );
- }
- });
- },
-
- _focusable: function( element ) {
- this.focusable = this.focusable.add( element );
- this._on( element, {
- focusin: function( event ) {
- $( event.currentTarget ).addClass( "ui-state-focus" );
- },
- focusout: function( event ) {
- $( event.currentTarget ).removeClass( "ui-state-focus" );
- }
- });
- },
-
- _trigger: function( type, event, data ) {
- var prop, orig,
- callback = this.options[ type ];
-
- data = data || {};
- event = $.Event( event );
- event.type = ( type === this.widgetEventPrefix ?
- type :
- this.widgetEventPrefix + type ).toLowerCase();
- // the original event may come from any element
- // so we need to reset the target on the new event
- event.target = this.element[ 0 ];
-
- // copy original event properties over to the new event
- orig = event.originalEvent;
- if ( orig ) {
- for ( prop in orig ) {
- if ( !( prop in event ) ) {
- event[ prop ] = orig[ prop ];
- }
- }
- }
-
- this.element.trigger( event, data );
- return !( $.isFunction( callback ) &&
- callback.apply( this.element[0], [ event ].concat( data ) ) === false ||
- event.isDefaultPrevented() );
- }
-};
-
-$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {
- $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {
- if ( typeof options === "string" ) {
- options = { effect: options };
- }
- var hasOptions,
- effectName = !options ?
- method :
- options === true || typeof options === "number" ?
- defaultEffect :
- options.effect || defaultEffect;
- options = options || {};
- if ( typeof options === "number" ) {
- options = { duration: options };
- }
- hasOptions = !$.isEmptyObject( options );
- options.complete = callback;
- if ( options.delay ) {
- element.delay( options.delay );
- }
- if ( hasOptions && $.effects && $.effects.effect[ effectName ] ) {
- element[ method ]( options );
- } else if ( effectName !== method && element[ effectName ] ) {
- element[ effectName ]( options.duration, options.easing, callback );
- } else {
- element.queue(function( next ) {
- $( this )[ method ]();
- if ( callback ) {
- callback.call( element[ 0 ] );
- }
- next();
- });
- }
- };
-});
-
-var widget = $.widget;
-
-
-
-}));
diff --git a/common/src/main/webapp/thirdparty/jquery-cokie/jquery.cokie.min.js b/common/src/main/webapp/thirdparty/jquery-cokie/jquery.cokie.min.js
deleted file mode 100644
index 0f1b501..0000000
--- a/common/src/main/webapp/thirdparty/jquery-cokie/jquery.cokie.min.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- * jQuery Cookie Plugin v1.3.1
- * https://github.com/carhartl/jquery-cookie
- * Plugin file name changed to jquery.cokie.min to prevent blocking by ModSecurity module
- *
- * Copyright 2013 Klaus Hartl
- * Released under the MIT license
- */
-(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{a(jQuery)}}(function(e){var a=/\+/g;function d(g){return g}function b(g){return decodeURIComponent(g.replace(a," "))}function f(g){if(g.indexOf('"')===0){g=g.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}try{return c.json?JSON.parse(g):g}catch(h){}}var c=e.cookie=function(p,o,u){if(o!==undefined){u=e.extend({},c.defaults,u);if(typeof u.expires==="number"){var q=u.expires,s=u.expires=new Date();s.setDate(s.getDate()+q)}o=c.json?JSON.stringify(o):String(o);return(document.cookie=[c.raw?p:encodeURIComponent(p),"=",c.raw?o:encodeURIComponent(o),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join(""))}var g=c.raw?d:b;var r=document.cookie.split("; ");var v=p?undefined:{};for(var n=0,k=r.length;n<k;n++){var m=r[n].split("=");var h=g(m.shift());var j=g(m.join("="));if(p&&p===h){v=f(j);break}if(!p){v[h]=f(j)}}return v};c.defaults={};e.removeCookie=function(h,g){if(e.cookie(h)!==undefined){e.cookie(h,"",e.extend({},g,{expires:-1}));return true}return false}})); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/API_cn.html b/common/src/main/webapp/thirdparty/zTree/api/API_cn.html
deleted file mode 100644
index 1fe011d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/API_cn.html
+++ /dev/null
@@ -1,103 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>API 文档 [zTree -- jQuery 树插件]</title>
- <link rel="stylesheet" href="apiCss/common.css" type="text/css">
- <link rel='stylesheet' href='apiCss/zTreeStyleForApi.css' type='text/css'>
- <script type="text/javascript">
- var ie = (function(){
- var undef,
- v = 3,
- div = document.createElement('div'),
- all = div.getElementsByTagName('i');
- while (
- div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
- all[0]
- );
- return v > 4 ? v : undef;
- }()), ie6 = (ie === 6),
- path = window.location.pathname.replace(/.*\/([^\/\.]*)\..*/g,"$1"),
- langLib = [];
- ie = ie<9;
- if(ie) {
- document.write('<link rel="stylesheet" href="apiCss/common_ie6.css" type="text/css">');
- }
- var lang = "cn",
- ajaxMsg = "如果你使用的是 Chrome 浏览器,那么请把 API 文档发布到 web 服务目录下访问。\n\n(Chrome 浏览器不支持本地 ajax 访问, 即:file://)";
-
- </script>
- </head>
- <body>
- <div id="header_wrap" class="header_wrap" style="padding-top: 30px;">
- <div id="header" class="header round">
- <div class="light-bulb" alt=""></div>
- <div class="ieSuggest">浏览本网站建议您使用 Chrome、FireFox、Opera、IE9 等浏览器(只要不是 IE6 7 8 就行), 速度会更快,画面会更炫!</div>
- <div class="google_plus"><g:plusone></g:plusone></div>
- <div class="header-text">
- <h1><em>zTree v3.5.16 API 文档</em></h1><p></p>
- <p>all.js = core + excheck + exedit ( 不包括 exhide ); 发现错误请及时通知,谢谢。</p>
- </div>
- <ul class="shortcuts language" style="top:0;">
- <li><a href="API_en.html" onclick="window.location.href='API_en.html'"><button class="ico en" title="英文版" type="button"></button><span class=""></span></a></li>
- </ul>
- </div>
- </div>
- <div id="content_wrap" class="content_wrap">
- <div id="content" class="content">
- <div class="nav_section">
- <ul>
- <li class="first">注释:</li>
- <li><button class="ico16 z_core" onfocus="this.blur();"></button><span>core 核心包</span></li>
- <li><button class="ico16 z_check" onfocus="this.blur();"></button><span>excheck 扩展</span></li>
- <li><button class="ico16 z_edit" onfocus="this.blur();"></button><span>exedit 扩展</span></li>
- <li><button class="ico16 z_hide" onfocus="this.blur();"></button><span>exhide 扩展</span></li>
- <li class="noline">
- <button class="ico16 z_search" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button>
- <input type="text" class="searchKey search empty" value=""><input type="text" class="searchResult search" value="">
- <button class="ico16 searchPrev disabled" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button><button class="ico16 searchNext disabled" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button>
- </li>
- </ul>
- </div>
-
- <div id="contentBox" class="contentBox round clearfix">
- <div id="apiContent" class="apiContent">
- <div id="api_setting" class="api_setting left">
- <ul class="api_content_title"><li>setting 配置详解</li></ul>
- <ul id="settingTree" class="ztree"></ul>
- </div>
- <div id="api_function" class="api_function right">
- <ul class="api_content_title"><li>zTree 方法详解</li></ul>
- <ul id="functionTree" class="ztree"></ul>
- <ul class="api_content_title"><li>treeNode 节点数据详解</li></ul>
- <ul id="treenodeTree" class="ztree"></ul>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
-
- <!-- overlayed -->
- <div id="overlayDiv" class="baby_overlay">
- <div id="overlayContent" class="content round clearfix">
- <div class="overlaySearch">
- <button class="ico16 z_search" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button>
- <input type="text" class="searchKey search empty" value=""><input type="text" class="searchResult search" value="">
- <button class="ico16 searchPrev disabled" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button><button class="ico16 searchNext disabled" onfocus="this.blur();" title="Enter 以及 左、右键可以快速定位查找结果"></button>
- </div>
- <a id="overlayDivCloseBtn" class="close"></a>
- <div id="overlayDetailDiv" class="details"></div>
- </div>
- <div id="overlayDivArrow" class="baby_overlay_arrow"></div>
- </div>
- <script type="text/javascript" src="apiCss/jquery-1.6.2.min.js"></script>
- <script type='text/javascript' src='apiCss/jquery.ztree.core-3.5.js'></script>
- <script type='text/javascript' src='apiCss/api.js'></script>
- <script type="text/javascript">
- $(document).ready(function(){
- apiContent._init();
- });
- </script>
- </body>
-</html> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/API_en.html b/common/src/main/webapp/thirdparty/zTree/api/API_en.html
deleted file mode 100644
index fc7488b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/API_en.html
+++ /dev/null
@@ -1,102 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>API Document [zTree -- jQuery tree plug-ins.]</title>
- <link rel="stylesheet" href="apiCss/common.css" type="text/css">
- <link rel='stylesheet' href='apiCss/zTreeStyleForApi.css' type='text/css'>
- <script type="text/javascript">
- var ie = (function(){
- var undef,
- v = 3,
- div = document.createElement('div'),
- all = div.getElementsByTagName('i');
- while (
- div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
- all[0]
- );
- return v > 4 ? v : undef;
- }()), ie6 = (ie === 6),
- path = window.location.pathname.replace(/.*\/([^\/\.]*)\..*/g,"$1"),
- langLib = [];
- ie = ie<9;
- if(ie) {
- document.write('<link rel="stylesheet" href="apiCss/common_ie6.css" type="text/css">');
- }
- var lang = "en",
- ajaxMsg = "If you use chrome browser, please copy the API files to local webserver. \n\n( because chrome browser can't allow AJAX access to 'file://' )";
- </script>
- </head>
- <body>
- <div id="header_wrap" class="header_wrap" style="padding-top: 30px;">
- <div id="header" class="header round">
- <div class="light-bulb" alt=""></div>
- <div class="ieSuggest">If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!</div>
- <div class="google_plus"><g:plusone></g:plusone></div>
- <div class="header-text">
- <h1><em>zTree v3.5.16 API Document</em></h1><p></p>
- <p>all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.</p>
- </div>
- <ul class="shortcuts language" style="top:0;">
- <li><a href="API_cn.html" onclick="window.location.href='API_cn.html'"><button class="ico cn" title="Chinese" type="button"></button><span class=""></span></a></li>
- </ul>
- </div>
- </div>
- <div id="content_wrap" class="content_wrap">
- <div id="content" class="content">
- <div class="nav_section">
- <ul>
- <li class="first">Notes: </li>
- <li><button class="ico16 z_core" onfocus="this.blur();"></button><span>core package</span></li>
- <li><button class="ico16 z_check" onfocus="this.blur();"></button><span>excheck pack</span></li>
- <li><button class="ico16 z_edit" onfocus="this.blur();"></button><span>exedit pack</span></li>
- <li><button class="ico16 z_hide" onfocus="this.blur();"></button><span>exhide pack</span></li>
- <li class="noline">
- <button class="ico16 z_search" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button>
- <input type="text" class="searchKey search empty" value=""><input type="text" class="searchResult search" value="">
- <button class="ico16 searchPrev disabled" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button><button class="ico16 searchNext disabled" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button>
- </li>
- </ul>
- </div>
-
- <div id="contentBox" class="contentBox round clearfix">
- <div id="apiContent" class="apiContent">
- <div id="api_setting" class="api_setting left">
- <ul class="api_content_title"><li>setting details</li></ul>
- <ul id="settingTree" class="ztree"></ul>
- </div>
- <div id="api_function" class="api_function right">
- <ul class="api_content_title"><li>zTree method details</li></ul>
- <ul id="functionTree" class="ztree"></ul>
- <ul class="api_content_title"><li>treeNode data details</li></ul>
- <ul id="treenodeTree" class="ztree"></ul>
- </div>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- </div>
-
- <!-- overlayed -->
- <div id="overlayDiv" class="baby_overlay">
- <div id="overlayContent" class="content round clearfix">
- <div class="overlaySearch">
- <button class="ico16 z_search" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button>
- <input type="text" class="searchKey search empty" value=""><input type="text" class="searchResult search" value="">
- <button class="ico16 searchPrev disabled" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button><button class="ico16 searchNext disabled" onfocus="this.blur();" title="'Enter', 'left' and 'right' key can locate the search results quickly."></button>
- </div>
- <a id="overlayDivCloseBtn" class="close"></a>
- <div id="overlayDetailDiv" class="details"></div>
- </div>
- <div id="overlayDivArrow" class="baby_overlay_arrow"></div>
- </div>
- <script type="text/javascript" src="apiCss/jquery-1.6.2.min.js"></script>
- <script type='text/javascript' src='apiCss/jquery.ztree.core-3.5.js'></script>
- <script type='text/javascript' src='apiCss/api.js'></script>
- <script type="text/javascript">
- $(document).ready(function(){
- apiContent._init();
- });
- </script>
- </body>
-</html> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/api.js b/common/src/main/webapp/thirdparty/zTree/api/apiCss/api.js
deleted file mode 100644
index 37dd4ba..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/api.js
+++ /dev/null
@@ -1,592 +0,0 @@
-var apiContent = {
- zTree_Setting: null,
- zTree_Node: null,
- zTree_Function: null,
- overlayDiv : null,
- overlayContent : null,
- overlayDetailDiv : null,
- overlayCloseBtn: null,
- overlayArrow: null,
- contentBoxDiv : null,
- settingDiv : null,
- functionDiv : null,
- overlaySearch: null,
- searchKey: null,
- searchResultInput: null,
- searchPrevBtn: null,
- searchNextBtn: null,
- apiCache: {},
- lastValue: "",
- searchNodes: [],
- searchNodesCur: 0,
-
- _init: function() {
- this.overlayDiv = $("#overlayDiv");
- this.overlayContent = $("#overlayContent");
- this.overlayDetailDiv = $("#overlayDetailDiv");
- this.overlayCloseBtn = $("#overlayDivCloseBtn");
- this.overlayArrow = $("#overlayDivArrow");
- this.contentBoxDiv = $("#contentBox");
- this.settingDiv = $("#api_setting");
- this.functionDiv = $("#api_function");
- this.searchKey = $(".searchKey");
- this.overlaySearch = $(".overlaySearch");
- this.searchResultInput = $(".searchResult");
- this.searchPrevBtn = $(".searchPrev");
- this.searchNextBtn = $(".searchNext");
- var setting = {
- view: {
- fontCss: this.getFontCss,
- showLine: false,
- showIcon: this.showIcon,
- showTitle: this.getTitle,
- selectedMulti: false,
- dblClickExpand: false
- },
- data: {
- key: {
- title: "tt"
- },
- simpleData: {
- enable:true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: ""
- }
- },
- callback: {
- onNodeCreated: this.onNodeCreated,
- beforeClick: this.beforeClick
- }
- };
- var setting_nodes =[
- {id:1, pId:0, t:"setting", name:"var setting = {", open:true},
- {id:11, pId:1, t:"treeId", name:"treeId : \"\",", iconSkin:"core", showAPI:true},
- {id:12, pId:1, t:"treeObj", name:"treeObj : null,", iconSkin:"core", showAPI:true},
- {id:121, pId:1, name:""},
-
- {id:20, pId:1, t:"async", name:"async : {", open:true},
- {id:201, pId:20, t:"autoParam", name:"autoParam : [],", iconSkin:"core", showAPI:true},
- {id:208, pId:20, t:"contentType", name:"contentType : \"application...\",", iconSkin:"core", showAPI:true},
- {id:202, pId:20, t:"dataFilter", name:"dataFilter : null,", iconSkin:"core", showAPI:true},
- {id:203, pId:20, t:"dataType", name:"dataType : \"text\",", iconSkin:"core", showAPI:true},
- {id:204, pId:20, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true},
- {id:205, pId:20, t:"otherParam", name:"otherParam : [],", iconSkin:"core", showAPI:true},
- {id:206, pId:20, t:"type", name:"type : \"post\",", iconSkin:"core", showAPI:true},
- {id:207, pId:20, t:"url", name:"url : \"\"", iconSkin:"core", showAPI:true},
- {id:21, pId:1, name:"},"},
- {id:22, pId:1, name:""},
-
- {id:30, pId:1, t:"callback", name:"callback : {", open:true},
- {id:3001, pId:30, t:"beforeAsync", name:"beforeAsync : null,", iconSkin:"core", showAPI:true},
- {id:3002, pId:30, t:"beforeCheck", name:"beforeCheck : null,", iconSkin:"check", showAPI:true},
- {id:3003, pId:30, t:"beforeClick", name:"beforeClick : null,", iconSkin:"core", showAPI:true},
- {id:3004, pId:30, t:"beforeCollapse", name:"beforeCollapse : null,", iconSkin:"core", showAPI:true},
- {id:3004, pId:30, t:"beforeDblClick", name:"beforeDblClick : null,", iconSkin:"core", showAPI:true},
- {id:3005, pId:30, t:"beforeDrag", name:"beforeDrag : null,", iconSkin:"edit", showAPI:true},
- {id:3006, pId:30, t:"beforeDragOpen", name:"beforeDragOpen : null,", iconSkin:"edit", showAPI:true},
- {id:3007, pId:30, t:"beforeDrop", name:"beforeDrop : null,", iconSkin:"edit", showAPI:true},
- {id:3029, pId:30, t:"beforeEditName", name:"beforeEditName : null,", iconSkin:"edit", showAPI:true},
- {id:3008, pId:30, t:"beforeExpand", name:"beforeExpand : null,", iconSkin:"core", showAPI:true},
- {id:3009, pId:30, t:"beforeMouseDown", name:"beforeMouseDown : null,", iconSkin:"core", showAPI:true},
- {id:3010, pId:30, t:"beforeMouseUp", name:"beforeMouseUp : null,", iconSkin:"core", showAPI:true},
- {id:3011, pId:30, t:"beforeRemove", name:"beforeRemove : null,", iconSkin:"edit", showAPI:true},
- {id:3012, pId:30, t:"beforeRename", name:"beforeRename : null,", iconSkin:"edit", showAPI:true},
- {id:3013, pId:30, t:"beforeRightClick", name:"beforeRightClick : null,", iconSkin:"core", showAPI:true},
- {id:3014, pId:30, name:""},
- {id:3015, pId:30, t:"onAsyncError", name:"onAsyncError : null,", iconSkin:"core", showAPI:true},
- {id:3016, pId:30, t:"onAsyncSuccess", name:"onAsyncSuccess : null,", iconSkin:"core", showAPI:true},
- {id:3017, pId:30, t:"onCheck", name:"onCheck : null,", iconSkin:"check", showAPI:true},
- {id:3018, pId:30, t:"onClick", name:"onClick : null,", iconSkin:"core", showAPI:true},
- {id:3019, pId:30, t:"onCollapse", name:"onCollapse : null,", iconSkin:"core", showAPI:true},
- {id:3029, pId:30, t:"onDblClick", name:"onDblClick : null,", iconSkin:"core", showAPI:true},
- {id:3020, pId:30, t:"onDrag", name:"onDrag : null,", iconSkin:"edit", showAPI:true},
- {id:3030, pId:30, t:"onDragMove", name:"onDragMove : null,", iconSkin:"edit", showAPI:true},
- {id:3021, pId:30, t:"onDrop", name:"onDrop : null,", iconSkin:"edit", showAPI:true},
- {id:3022, pId:30, t:"onExpand", name:"onExpand : null,", iconSkin:"core", showAPI:true},
- {id:3023, pId:30, t:"onMouseDown", name:"onMouseDown : null,", iconSkin:"core", showAPI:true},
- {id:3024, pId:30, t:"onMouseUp", name:"onMouseUp : null,", iconSkin:"core", showAPI:true},
- {id:3025, pId:30, t:"onNodeCreated", name:"onNodeCreated : null,", iconSkin:"core", showAPI:true},
- {id:3026, pId:30, t:"onRemove", name:"onRemove : null,", iconSkin:"edit", showAPI:true},
- {id:3027, pId:30, t:"onRename", name:"onRename : null,", iconSkin:"edit", showAPI:true},
- {id:3028, pId:30, t:"onRightClick", name:"onRightClick : null", iconSkin:"core", showAPI:true},
- {id:31, pId:1, name:"},"},
- {id:32, pId:1, name:""},
-
- {id:40, pId:1, t:"check", name:"check : {", open:true},
- {id:405, pId:40, t:"autoCheckTrigger", name:"autoCheckTrigger : false,", iconSkin:"check", showAPI:true},
- {id:401, pId:40, t:"chkboxType", name:"chkboxType : {\"Y\": \"ps\", \"N\": \"ps\"},", iconSkin:"check", showAPI:true},
- {id:402, pId:40, t:"chkStyle", name:"chkStyle : \"checkbox\",", iconSkin:"check", showAPI:true},
- {id:403, pId:40, t:"enable", name:"enable : false,", iconSkin:"check", showAPI:true},
- {id:406, pId:40, t:"nocheckInherit", name:"nocheckInherit : false", iconSkin:"check", showAPI:true},
- {id:407, pId:40, t:"chkDisabledInherit", name:"chkDisabledInherit : false", iconSkin:"check", showAPI:true},
- {id:404, pId:40, t:"radioType", name:"radioType : \"level\"", iconSkin:"check", showAPI:true},
- {id:41, pId:1, name:"},"},
- {id:42, pId:1, name:""},
-
- {id:50, pId:1, t:"data", name:"data : {", open:true},
- {id:500, pId:50, t:"keep", name:"keep : {", open:true},
- {id:5001, pId:500, t:"leaf", name:"leaf : false,", iconSkin:"core", showAPI:true},
- {id:5002, pId:500, t:"parent", name:"parent : false", iconSkin:"core", showAPI:true},
- {id:501, pId:50, name:"},"},
-
- {id:510, pId:50, t:"key", name:"key : {", open:true},
- {id:5101, pId:510, t:"checked", name:"checked : \"checked\",", iconSkin:"check", showAPI:true},
- {id:5102, pId:510, t:"children", name:"children : \"children\",", iconSkin:"core", showAPI:true},
- {id:5103, pId:510, t:"name", name:"name : \"name\",", iconSkin:"core", showAPI:true},
- {id:5104, pId:510, t:"title", name:"title : \"\"", iconSkin:"core", showAPI:true},
- {id:5105, pId:510, t:"url", name:"url : \"url\"", iconSkin:"core", showAPI:true},
- {id:511, pId:50, name:"},"},
-
- {id:520, pId:50, t:"simpleData", name:"simpleData : {", open:true},
- {id:5201, pId:520, t:"enable", name:"enable : false,", iconSkin:"core", showAPI:true},
- {id:5202, pId:520, t:"idKey", name:"idKey : \"id\",", iconSkin:"core", showAPI:true},
- {id:5203, pId:520, t:"pIdKey", name:"pIdKey : \"pId\",", iconSkin:"core", showAPI:true},
- {id:5204, pId:520, t:"rootPId", name:"rootPId : null", iconSkin:"core", showAPI:true},
- {id:521, pId:50, name:"}"},
- {id:51, pId:1, name:"},"},
- {id:52, pId:1, name:""},
-
- {id:60, pId:1, t:"edit", name:"edit : {", open:true},
- {id:601, pId:60, t:"drag", name:"drag : {", open:true},
- {id:60111, pId:601, t:"autoExpandTrigger", name:"autoExpandTrigger : true,", iconSkin:"edit", showAPI:true},
- {id:60101, pId:601, t:"isCopy", name:"isCopy : true,", iconSkin:"edit", showAPI:true},
- {id:60102, pId:601, t:"isMove", name:"isMove : true,", iconSkin:"edit", showAPI:true},
- {id:60103, pId:601, t:"prev", name:"prev : true,", iconSkin:"edit", showAPI:true},
- {id:60104, pId:601, t:"next", name:"next : true,", iconSkin:"edit", showAPI:true},
- {id:60105, pId:601, t:"inner", name:"inner : true,", iconSkin:"edit", showAPI:true},
- {id:60107, pId:601, t:"borderMax", name:"borderMax : 10,", iconSkin:"edit", showAPI:true},
- {id:60108, pId:601, t:"borderMin", name:"borderMin : -5,", iconSkin:"edit", showAPI:true},
- {id:60106, pId:601, t:"minMoveSize", name:"minMoveSize : 5,", iconSkin:"edit", showAPI:true},
- {id:60109, pId:601, t:"maxShowNodeNum", name:"maxShowNodeNum : 5,", iconSkin:"edit", showAPI:true},
- {id:60110, pId:601, t:"autoOpenTime", name:"autoOpenTime : 500", iconSkin:"edit", showAPI:true},
- {id:602, pId:60, name:"},"},
- {id:608, pId:60, t:"editNameSelectAll", name:"editNameSelectAll : false,", iconSkin:"edit", showAPI:true},
- {id:603, pId:60, t:"enable", name:"enable : false,", iconSkin:"edit", showAPI:true},
- {id:604, pId:60, t:"removeTitle", name:"removeTitle : \"remove\",", iconSkin:"edit", showAPI:true},
- {id:605, pId:60, t:"renameTitle", name:"renameTitle : \"rename\",", iconSkin:"edit", showAPI:true},
- {id:606, pId:60, t:"showRemoveBtn", name:"showRemoveBtn : true,", iconSkin:"edit", showAPI:true},
- {id:607, pId:60, t:"showRenameBtn", name:"showRenameBtn : true", iconSkin:"edit", showAPI:true},
- {id:61, pId:1, name:"},"},
- {id:62, pId:1, name:""},
-
- {id:70, pId:1, t:"view", name:"view : {", open:true},
- {id:7001, pId:70, t:"addDiyDom", name:"addDiyDom : null,", iconSkin:"core", showAPI:true},
- {id:7002, pId:70, t:"addHoverDom", name:"addHoverDom : null,", iconSkin:"edit", showAPI:true},
- {id:7003, pId:70, t:"autoCancelSelected", name:"autoCancelSelected : true,", iconSkin:"core", showAPI:true},
- {id:7004, pId:70, t:"dblClickExpand", name:"dblClickExpand : true,", iconSkin:"core", showAPI:true},
- {id:7005, pId:70, t:"expandSpeed", name:"expandSpeed : \"fast\",", iconSkin:"core", showAPI:true},
- {id:7006, pId:70, t:"fontCss", name:"fontCss : {},", iconSkin:"core", showAPI:true},
- {id:7012, pId:70, t:"nameIsHTML", name:"nameIsHTML : false,", iconSkin:"core", showAPI:true},
- {id:7007, pId:70, t:"removeHoverDom", name:"removeHoverDom : null,", iconSkin:"edit", showAPI:true},
- {id:7008, pId:70, t:"selectedMulti", name:"selectedMulti : true,", iconSkin:"core", showAPI:true},
- {id:7009, pId:70, t:"showIcon", name:"showIcon : true,", iconSkin:"core", showAPI:true},
- {id:7010, pId:70, t:"showLine", name:"showLine : true,", iconSkin:"core", showAPI:true},
- {id:7011, pId:70, t:"showTitle", name:"showTitle : true,", iconSkin:"core", showAPI:true},
- {id:7012, pId:70, t:"txtSelectedEnable", name:"txtSelectedEnable : false", iconSkin:"core", showAPI:true},
- {id:71, pId:1, name:"}"},
-
- {id:2, pId:0, name:"}"}
- ];
-
- var treenode_nodes =[
- {id:1, pId:0, t:"treeNode", name:"treeNode : {", open:true},
- {id:101, pId:1, t:"checked", name:"checked", iconSkin:"check", showAPI:true},
- {id:102, pId:1, t:"children", name:"children", iconSkin:"core", showAPI:true},
- {id:128, pId:1, t:"chkDisabled", name:"chkDisabled", iconSkin:"check", showAPI:true},
- {id:127, pId:1, t:"click", name:"click", iconSkin:"core", showAPI:true},
- {id:103, pId:1, t:"getCheckStatus", name:"getCheckStatus ()", iconSkin:"check", showAPI:true},
- {id:104, pId:1, t:"getNextNode", name:"getNextNode ()", iconSkin:"core", showAPI:true},
- {id:105, pId:1, t:"getParentNode", name:"getParentNode ()", iconSkin:"core", showAPI:true},
- {id:106, pId:1, t:"getPreNode", name:"getPreNode ()", iconSkin:"core", showAPI:true},
- {id:129, pId:1, t:"halfCheck", name:"halfCheck", iconSkin:"check", showAPI:true},
- {id:107, pId:1, t:"icon", name:"icon", iconSkin:"core", showAPI:true},
- {id:108, pId:1, t:"iconClose", name:"iconClose", iconSkin:"core", showAPI:true},
- {id:109, pId:1, t:"iconOpen", name:"iconOpen", iconSkin:"core", showAPI:true},
- {id:110, pId:1, t:"iconSkin", name:"iconSkin", iconSkin:"core", showAPI:true},
- {id:131, pId:1, t:"isHidden", name:"isHidden", iconSkin:"hide", showAPI:true},
- {id:111, pId:1, t:"isParent", name:"isParent", iconSkin:"core", showAPI:true},
- {id:132, pId:1, t:"name", name:"name", iconSkin:"core", showAPI:true},
- {id:112, pId:1, t:"nocheck", name:"nocheck", iconSkin:"check", showAPI:true},
- {id:113, pId:1, t:"open", name:"open", iconSkin:"core", showAPI:true},
- {id:133, pId:1, t:"target", name:"target", iconSkin:"core", showAPI:true},
- {id:134, pId:1, t:"url", name:"url", iconSkin:"core", showAPI:true},
- {id:114, pId:1, t:"diy", name:"*DIY*", iconSkin:"core", showAPI:true},
- {id:115, pId:1, name:""},
- {id:116, pId:1, t:"check_Child_State", name:"[check_Child_State]", iconSkin:"check", showAPI:true},
- {id:117, pId:1, t:"check_Focus", name:"[check_Focus]", iconSkin:"check", showAPI:true},
- {id:118, pId:1, t:"checkedOld", name:"[checkedOld]", iconSkin:"check", showAPI:true},
- {id:119, pId:1, t:"editNameFlag", name:"[editNameFlag]", iconSkin:"edit", showAPI:true},
- {id:120, pId:1, t:"isAjaxing", name:"[isAjaxing]", iconSkin:"core", showAPI:true},
- {id:121, pId:1, t:"isFirstNode", name:"[isFirstNode]", iconSkin:"core", showAPI:true},
- {id:122, pId:1, t:"isHover", name:"[isHover]", iconSkin:"edit", showAPI:true},
- {id:123, pId:1, t:"isLastNode", name:"[isLastNode]", iconSkin:"core", showAPI:true},
- {id:124, pId:1, t:"level", name:"[level]", iconSkin:"core", showAPI:true},
- {id:125, pId:1, t:"parentTId", name:"[parentTId]", iconSkin:"core", showAPI:true},
- {id:126, pId:1, t:"tId", name:"[tId]", iconSkin:"core", showAPI:true},
- {id:130, pId:1, t:"zAsync", name:"[zAsync]", iconSkin:"core", showAPI:true},
- {id:2, pId:0, name:"}"}
- ];
-
- var function_nodes =[
- {id:1, pId:0, t:"$.fn.zTree", name:"$.fn.zTree : {", open:true},
- {id:11, pId:1, t:"init", name:"init (obj, zSetting, zNodes)", iconSkin:"core", showAPI:true},
- {id:12, pId:1, t:"getZTreeObj", name:"getZTreeObj (treeId)", iconSkin:"core", showAPI:true},
- {id:14, pId:1, t:"destroy", name:"destroy (treeId)", iconSkin:"core", showAPI:true},
- {id:13, pId:1, t:"_z", name:"_z : {tools, view, event, data}", iconSkin:"core", showAPI:true},
- {id:2, pId:0, name:"}"},
- {id:3, pId:0, name:""},
- {id:4, pId:0, t:"zTreeObj", name:"zTreeObj : {", open:true},
- {id:401, pId:4, t:"setting", name:"setting", iconSkin:"core", showAPI:true},
- {id:402, pId:4, t:"addNodes", name:"addNodes (parentNode, newNodes, isSilent)", iconSkin:"core", showAPI:true},
- {id:403, pId:4, t:"cancelEditName", name:"cancelEditName (newName)", iconSkin:"edit", showAPI:true},
- {id:404, pId:4, t:"cancelSelectedNode", name:"cancelSelectedNode (node)", iconSkin:"core", showAPI:true},
- {id:405, pId:4, t:"checkAllNodes", name:"checkAllNodes (checked)", iconSkin:"check", showAPI:true},
- {id:406, pId:4, t:"checkNode", name:"checkNode (node, checked, checkTypeFlag, callbackFlag)", iconSkin:"check", showAPI:true},
- {id:407, pId:4, t:"copyNode", name:"copyNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true},
- {id:436, pId:4, t:"destroy", name:"destroy ()", iconSkin:"core", showAPI:true},
- {id:408, pId:4, t:"editName", name:"editName (node)", iconSkin:"edit", showAPI:true},
- {id:409, pId:4, t:"expandAll", name:"expandAll (expandFlag)", iconSkin:"core", showAPI:true},
- {id:410, pId:4, t:"expandNode", name:"expandNode (node, expandFlag, sonSign, focus, callbackFlag)", iconSkin:"core", showAPI:true},
- {id:411, pId:4, t:"getChangeCheckedNodes", name:"getChangeCheckedNodes ()", iconSkin:"check", showAPI:true},
- {id:412, pId:4, t:"getCheckedNodes", name:"getCheckedNodes (checked)", iconSkin:"check", showAPI:true},
- {id:413, pId:4, t:"getNodeByParam", name:"getNodeByParam (key, value, parentNode)", iconSkin:"core", showAPI:true},
- {id:414, pId:4, t:"getNodeByTId", name:"getNodeByTId (tId)", iconSkin:"core", showAPI:true},
- {id:415, pId:4, t:"getNodeIndex", name:"getNodeIndex (node)", iconSkin:"core", showAPI:true},
- {id:416, pId:4, t:"getNodes", name:"getNodes ()", iconSkin:"core", showAPI:true},
- {id:431, pId:4, t:"getNodesByFilter", name:"getNodesByFilter (filter, isSingle, parentNode, invokeParam)", iconSkin:"core", showAPI:true},
- {id:417, pId:4, t:"getNodesByParam", name:"getNodesByParam (key, value, parentNode)", iconSkin:"core", showAPI:true},
- {id:418, pId:4, t:"getNodesByParamFuzzy", name:"getNodesByParamFuzzy (key, value, parentNode)", iconSkin:"core", showAPI:true},
- {id:419, pId:4, t:"getSelectedNodes", name:"getSelectedNodes ()", iconSkin:"core", showAPI:true},
- {id:432, pId:4, t:"hideNode", name:"hideNode (node)", iconSkin:"hide", showAPI:true},
- {id:433, pId:4, t:"hideNodes", name:"hideNodes (nodes)", iconSkin:"hide", showAPI:true},
- {id:420, pId:4, t:"moveNode", name:"moveNode (targetNode, node, moveType, isSilent)", iconSkin:"edit", showAPI:true},
- {id:421, pId:4, t:"reAsyncChildNodes", name:"reAsyncChildNodes (parentNode, reloadType, isSilent)", iconSkin:"core", showAPI:true},
- {id:422, pId:4, t:"refresh", name:"refresh ()", iconSkin:"core", showAPI:true},
- {id:423, pId:4, t:"removeChildNodes", name:"removeChildNodes (parentNode)", iconSkin:"core", showAPI:true},
- {id:424, pId:4, t:"removeNode", name:"removeNode (node, callbackFlag)", iconSkin:"core", showAPI:true},
- {id:425, pId:4, t:"selectNode", name:"selectNode (node, addFlag)", iconSkin:"core", showAPI:true},
- {id:430, pId:4, t:"setChkDisabled", name:"setChkDisabled (node, disabled, inheritParent, inheritChildren)", iconSkin:"check", showAPI:true},
- {id:426, pId:4, t:"setEditable", name:"setEditable (editable)", iconSkin:"edit", showAPI:true},
- {id:434, pId:4, t:"showNode", name:"showNode (node)", iconSkin:"hide", showAPI:true},
- {id:435, pId:4, t:"showNodes", name:"showNodes (nodes)", iconSkin:"hide", showAPI:true},
- {id:427, pId:4, t:"transformToArray", name:"transformToArray (nodes)", iconSkin:"core", showAPI:true},
- {id:428, pId:4, t:"transformTozTreeNodes", name:"transformTozTreeNodes (simpleNodes)", iconSkin:"core", showAPI:true},
- {id:429, pId:4, t:"updateNode", name:"updateNode (node, checkTypeFlag)", iconSkin:"core", showAPI:true},
- {id:5, pId:0, name:"}"}
- ];
-
- apiContent.zTree_Setting = $.fn.zTree.init($("#settingTree"), $.fn.zTree._z.tools.clone(setting), setting_nodes);
- apiContent.zTree_Node = $.fn.zTree.init($("#treenodeTree"), $.fn.zTree._z.tools.clone(setting), treenode_nodes);
- apiContent.zTree_Function = $.fn.zTree.init($("#functionTree"), $.fn.zTree._z.tools.clone(setting), function_nodes);
- this.bindEvent();
-
- },
- bindEvent: function() {
- $(document).bind("keydown", this.listenKeyDown)
- this.overlayCloseBtn.bind("click", apiContent.overlayClose);
- this.searchResultInput.bind("click", function(e) {
- $(this).prev().get(0).focus();
- this.blur();
- }).bind("focus", function(e) {
- this.blur();
- });
- this.searchKey.bind("focus", this.focusKey)
- .bind("blur", this.blurKey)
- .bind("propertychange", this.searchNode)
- .bind("input", this.searchNode);
- this.searchPrevBtn.bind("click", this.searchPrev);
- this.searchNextBtn.bind("click", this.searchNext);
- },
- setSameKey: function(value) {
- apiContent.searchKey.attr("value", value);
- },
- focusKey: function(e) {
- if (apiContent.searchKey.hasClass("empty")) {
- apiContent.searchKey.removeClass("empty");
- }
- },
- blurKey: function(e) {
- apiContent.setSameKey(e.target.value);
- if (e.target.value === "") {
- apiContent.searchKey.addClass("empty");
- }
- },
- listenKeyDown: function(e) {
- if (e.keyCode=="13" && apiContent.overlayDiv.is(":hidden")) {
- apiContent.openAPI();
- } else if (e.keyCode=="37") {
- apiContent.searchPrev();
- } else if (e.keyCode=="13" || e.keyCode=="39") {
- apiContent.searchNext();
- }
- },
- openAPI: function() {
- if (apiContent.searchNodes.length > 0) {
- var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"),
- treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"),
- function_zTree = $.fn.zTree.getZTreeObj("functionTree");
- if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) {
- apiContent.searchNodesCur = 0;
- }
- var node = apiContent.searchNodes[apiContent.searchNodesCur];
-
- if (node.tId.indexOf("setting") > -1) {
- setting_zTree.selectNode(node);
- } else if (node.tId.indexOf("treenode") > -1) {
- treenode_zTree.selectNode(node);
- } else {
- function_zTree.selectNode(node);
- }
- apiContent.beforeClick(node.tId.substring(0, node.tId.indexOf("_")), node, true);
- apiContent.searchCur();
- }
- },
- searchNode: function(e) {
- var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"),
- treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"),
- function_zTree = $.fn.zTree.getZTreeObj("functionTree");
- if (apiContent.curKey == e.target.value) return;
- apiContent.curKey = e.target.value;
- var value = $.trim(apiContent.curKey);
- apiContent.setSameKey(apiContent.curKey);
- if (apiContent.searchKey.hasClass("empty")) {
- value = "";
- apiContent.searchResultInput.removeClass("noResult").attr("value","");
- }
- if (apiContent.lastValue === value) return;
-
- apiContent.updateNodes(false);
- apiContent.lastValue = value;
- if (value === "" || value.length < 2) {
- apiContent.searchNodes = [];
- apiContent.searchNodesCur = -1;
- apiContent.searchCur(true);
- return;
- }
-
- var settingNodeList = setting_zTree.getNodesByFilter(apiContent.searchFilter);
- var functionNodeList = function_zTree.getNodesByFilter(apiContent.searchFilter);
- var treenodeNodeList = treenode_zTree.getNodesByFilter(apiContent.searchFilter);
- apiContent.searchNodes = settingNodeList.concat(functionNodeList).concat(treenodeNodeList);
- apiContent.searchNodesCur = -1;
- apiContent.searchCur();
- apiContent.updateNodes(true);
- },
- searchFilter: function(node) {
- var value = $.trim(apiContent.searchKey.get(0).value).toLowerCase();
- return (node.showAPI && node.name.toLowerCase().indexOf(value) > -1);
- },
- searchPrev: function(e) {
- if (apiContent.searchPrevBtn.hasClass("disabled")) return;
- apiContent.searchNodesCur--;
- if (apiContent.searchNodesCur < 0 || apiContent.searchNodesCur > apiContent.searchNodes.length -1) {
- apiContent.searchNodesCur = apiContent.searchNodes.length -1;
- }
- apiContent.openAPI();
- },
- searchNext: function(e) {
- if (apiContent.searchNextBtn.hasClass("disabled")) return;
- apiContent.searchNodesCur++;
- apiContent.openAPI();
- },
- searchCur: function(init) {
- var result = apiContent.searchNodes;
- if (init) {
- apiContent.searchResultInput.removeClass("noResult").attr("value","");
- } else if (result.length == 0) {
- apiContent.searchResultInput.addClass("noResult").attr("value"," [ 0 / 0 ] ");
- } else {
- apiContent.searchResultInput.removeClass("noResult").attr("value"," [ " + (apiContent.searchNodesCur > -1 ? apiContent.searchNodesCur+1 : "?")+ " / " + result.length + " ] ");
- }
- if (result.length > 0) {
- apiContent.searchPrevBtn.removeClass("disabled");
- apiContent.searchNextBtn.removeClass("disabled");
- } else {
- apiContent.searchPrevBtn.addClass("disabled");
- apiContent.searchNextBtn.addClass("disabled");
- }
- },
- updateNodes: function(highlight) {
- var setting_zTree = $.fn.zTree.getZTreeObj("settingTree"),
- treenode_zTree = $.fn.zTree.getZTreeObj("treenodeTree"),
- function_zTree = $.fn.zTree.getZTreeObj("functionTree"),
- node = null;
- for( var i=0, l=apiContent.searchNodes.length; i<l; i++) {
- node = apiContent.searchNodes[i];
- if (node.level > 0) {
- node.highlight = highlight;
- if (node.tId.indexOf("setting") > -1) {
- setting_zTree.updateNode(node);
- } else if (node.tId.indexOf("treenode") > -1) {
- treenode_zTree.updateNode(node);
- } else {
- function_zTree.updateNode(node);
- }
- }
- }
- },
- getFontCss: function(treeId, treeNode) {
- return (!!treeNode.highlight) ? {color:"#A60000", "font-weight":"bold"} : {color:"#333", "font-weight":"normal"};
- },
- getTitle: function(treeId, node) {
- var t = [], n = node;
- while (n && !!n.t) {
- t.push(n.t);
- n = n.getParentNode();
- }
- t = t.reverse();
- node.tt = t.join('.');
- return true;
- },
- showIcon: function(treeId, node) {
- return (!!node.iconSkin);
- },
- onNodeCreated: function (e, treeId, node) {
- var a = $("#" + node.tId + "_a");
- if (node.showAPI) {
- a.attr("rel", "#overlayDiv");
- } else {
- a.css({cursor: "default"});
- }
- },
- beforeClick: function (treeId, node, noClear) {
- if (!node.showAPI) return false;
- var o = $("#" + node.tId + "_a");
- if (!!apiContent.apiCache[node.tId]) {
- apiContent.tmpDiv.html(apiContent.apiCache[node.tId]);
- apiContent.overlayShow(o, (apiContent.lastNode === node));
- } else {
- apiContent.overlayAjax(treeId, node);
- }
- apiContent.lastNode = node;
- if (node.tId.indexOf("settingTree")>-1) {
- apiContent.settingDiv.removeClass("right").addClass("left");
- apiContent.functionDiv.removeClass("left").addClass("right");
- } else {
- apiContent.settingDiv.removeClass("left").addClass("right");
- apiContent.functionDiv.removeClass("right").addClass("left");
- }
-
- if (!noClear) {
- apiContent.clearSelectedNode();
- }
- return true;
- },
- clearSelectedNode: function() {
- apiContent.zTree_Setting.cancelSelectedNode();
- apiContent.zTree_Node.cancelSelectedNode();
- apiContent.zTree_Function.cancelSelectedNode();
- },
- overlayAutoClose: function(e) {
- var eId = e.target.id, eRel = e.target.getAttribute("rel"), eClass = e.target.className;
- if (eId === "overlayDiv" || eId === "overlayDivArrow" || eClass.indexOf("searchPrev") > -1 || eClass.indexOf("searchNext") > -1 || !!eRel) return;
- if (!$(e.target).parents("[rel]").length && !$(e.target).parents("#overlayDiv").length) {
- apiContent.overlayClose();
- }
- },
- overlayClose: function() {
- var o = apiContent.overlayDiv;
- o.stop();
- apiContent.clearSelectedNode();
- if (ie) {
- o.hide();
- } else {
- setTimeout(function() {o.fadeTo("fast", 0, function(){o.hide();})}, 200);
- }
- $(document).unbind("click", apiContent.overlayAutoClose);
- },
- overlayShow: function(target, isSameNode) {
- var w = $(window), o = apiContent.overlayDiv, a = apiContent.overlayArrow,
- oc = apiContent.overlayContent, c = apiContent.contentBoxDiv,
- t = target.offset().top - 30,
- cMaxLeft = c.offset().left + c.outerWidth({margin:true}) - o.outerWidth({margin:true}) - 10,
- l = Math.min(cMaxLeft, target.offset().left + target.width() + 40),
- arrowT = target.offset().top + 16,
- wMinTop = 100, footerHeight = 50, onlyFade = false,
- wHeight = w.height(), wScrollTop=w.scrollTop(), wMaxTop = wHeight + wScrollTop - footerHeight;
- if (!apiContent.overlayMaxTop) {
- apiContent.overlayMaxTop = apiContent.contentBoxDiv.offset().top + apiContent.contentBoxDiv.height();
- }
- o.stop();
- if (o.css("display") !== "block") {
- o.css({top: t, left: l});
- a.css({top:arrowT - t});
- $(document).bind("click", apiContent.overlayAutoClose);
- }
- if (ie) {
- onlyFade = true;
- o.show();
- } else {
- o.fadeTo("fast", 1);
- }
-
- var h = apiContent.tmpDiv.outerHeight({margin:true}) + apiContent.overlaySearch.outerHeight();
- if ((t + h) > wMaxTop) {
- t = wMaxTop - h;
- }
- if ((t + h) > apiContent.overlayMaxTop) {
- t = apiContent.overlayMaxTop - h;
- }
- t = Math.max(t, wScrollTop, wMinTop);
- if ((t + h) > ($("body").height()-footerHeight-20)) {
- o.css("padding-bottom", footerHeight + "px");
- } else {
- o.css("padding-bottom", "0");
- }
- apiContent.overlayDetailDiv.empty();
- apiContent.overlayDetailDiv.append(apiContent.tmpDiv.children());
- if (!onlyFade) {
- onlyFade = (isSameNode && t === parseInt(o.css("top").replace("px", "")));
- }
-
- a.removeClass("reverse");
- if ( (arrowT - t) > (h-55) ) {
- a.addClass("reverse");
- arrowT -= 55;
- }
-
- if (onlyFade) {
- o.css({top: t, left: l});
- oc.css({height: h});
- a.css({top:arrowT - t});
- } else {
- o.animate({top: t, left: l}, {duration: "normal",easing: "swing", complete:null});
- oc.animate({height: h}, {duration: "fast",easing: "swing", complete:null});
- a.animate({top:arrowT - t}, {duration: "normal",easing: "linear", complete:null});
- }
- },
- overlayAjax: function(treeId, node) {
- var o = $("#" + node.tId + "_a");
- if (node.isAjax) return;
- node.isAjax = true;
- $.ajax({
- type: "get",
- url: "" + lang + "/" + node.tt.replace("$.", "") + ".html",
- data: null,
- dataType: "text",
- success: function(msg) {
- if (!apiContent.tmpDiv) {
- var tmpDiv = $(document.createElement("div"));
- tmpDiv.addClass("baby_overlay_tmp");
- $("body").append(tmpDiv)
- apiContent.tmpDiv = $(document.createElement("div"));
- apiContent.tmpDiv.addClass("details");
- tmpDiv.append(apiContent.tmpDiv);
-
- } else {
- apiContent.tmpDiv.empty();
- }
- apiContent.tmpDiv.html(msg);
- apiContent.overlayShow(o, false);
- apiContent.apiCache[node.tId] = msg;
- node.isAjax = false;
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- alert(ajaxMsg)
- if (apiContent.tmpDiv) apiContent.tmpDiv.empty();
- node.isAjax = false;
- }
- });
- }
-} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/common.css b/common/src/main/webapp/thirdparty/zTree/api/apiCss/common.css
deleted file mode 100644
index 78f910c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/common.css
+++ /dev/null
@@ -1,219 +0,0 @@
-/* Resets */
-html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;}
-:focus {outline: 0;}
-body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #528036 url(img/background.jpg) no-repeat fixed 0 0;}
-p {padding-bottom: 20px;}
-ol, ul {list-style: none;}
-table {border-collapse: separate;border-spacing: 0;}
-caption, th, td {text-align: left;font-weight: normal;}
-strong {font-weight: bold;}
-em {font-style: italic;}
-hr {display: none;}
-.font1 {color: white;background-color: #528036;}
-.right {float: right;}
-.left {float: left;}
-.hide {display: none;}
-.round {-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}
-.clear {clear: both;}
-.clearfix {display: block;}
-.clearfix:after {content: ".";display: block;clear: both;visibility: hidden;line-height: 0;height: 0;}
-html[xmlns] .clearfix {display: block;}
-* html .clearfix {height: 1%;}
-
-/* Link Styles */
-a {color: #528036;}
-a:link, a:visited {text-decoration: none;}
-a:hover {color: #000;text-decoration: none;}
-a:active {text-decoration: none;}
-
-/* Headings */
-h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;}
-h1 {font-size: 36px;line-height: 44px;}
-h2 {font-size: 20px;line-height: 20px;}
-h3 {font-size: 14px;line-height: 14px;}
-h4 {font-size: 14px;font-weight: normal;line-height: 25px;}
-
-/* Wraps */
-.header_wrap {position: relative;min-width: 940px;padding: 100px 30px 0 30px;}
-.content_wrap {position: relative;min-width: 940px;padding: 0 30px 50px 30px;}
-.footer_wrap {bottom: 0;height: 47px;width: 100%;background-color: #1b1b1b;border-top: 1px solid #749e58;}
-
-/* Header */
-.header {position: relative;width: 940px;margin: 0 auto;height: 160px;border: 1px solid white;background: transparent url(img/header-bg.png) repeat-x 0 -50px;}
-.header-text {padding: 40px 25px 15px 120px;font-size: 18px;line-height: 24px;color: #747d67;font-family: Helvetica, sans-serif;}
-.header-text img {padding-bottom: 5px;}
-.shortcuts {white-space: nowrap;text-align: right;position: absolute;top: -45px;right: 5px;}
-.shortcuts.language {top: -85px;right:0px;}
-.shortcuts li {display: inline;font-size: 18px;line-height: 28px;font-family: Helvetica, Arial, simsun, sans-serif;padding-bottom: 5px;margin-left: 30px;cursor: pointer;}
-.shortcuts li button {cursor: pointer;}
-.shortcuts li span {border-bottom: 1px dotted white;}
-.shortcuts li span.selected {padding: 2px;background-color: #528036;}
-.shortcuts li a {color: #fff;}
-.ieSuggest {display:none;font-size: 12px;color: silver;position: absolute;left: 10px;top: 2px;}
-.google_plus {position: absolute;right: 10px; top:10px;}
-.light-bulb {position: absolute;left: -20px;bottom: -35px;width:116px;height:180px;background-image:url(img/lightbulb.png);background-repeat: no-repeat;}
-
-/* Content */
-.content {position: relative;width: 940px;margin: 0 auto;}
-.nav_section {position: relative;height: 20px;font-family: "Myriad Pro", "Trebuchet MS", sans-serif;font-size: 15px;color: #253;padding: 20px 0;}
-.nav_section ul {position: absolute;right: 10px;}
-.nav_section ul li {display: inline;line-height: 20px;margin: 0 5px 0 20px;border-bottom: 1px dotted white;}
-.nav_section ul li.noline {border-bottom: 0;}
-.nav_section ul li a {color: #fff;}
-.nav_section ul li a.selected {padding: 2px;background-color: #528036;}
-.nav_section ul li.first {border: none;}
-.content .title {margin: 50px 30px 20px 70px;}
-.content li {margin-bottom: 5px;}
-.contentBox {position: relative;overflow: hidden;border: 1px solid white;min-height: 200px;line-height: 25px;background: transparent url(img/contact-bg.png) repeat-x 0 0;}
-
-.zTreeInfo {display:none;width: 940px;position: absolute;}
-.zTreeInfo p {padding-bottom: 50px;}
-.zTreeInfo-left {float: left;width: 280px;height:300px;padding: 0 50px 60px 75px;background:url(img/zTreeIntroduction.jpg) no-repeat 30px 30px;}
-.zTreeInfo-right {position: relative;float: right;width: 475px;padding: 0 50px 60px 0;}
-.zTreeInfo-right li {font-size: 12px;list-style-type: disc;}
-
-.license {display:none;width: 940px;position: absolute;}
-
-.donateInfo {display:block;width: 940px;position: absolute;}
-
-.links {display:none;width: 940px;position: absolute;}
-.links .content {float: left;width: 160px;height:200px;padding: 0 10px 10px 2px;text-align: center;}
-.links .content.first {margin-left: 30px;}
-
-.contact {display:none;width: 940px;position: absolute;}
-.contact .myhome { position: absolute; top:10px; left:620px; width:300px; height:266px; background: transparent url(img/myhome.gif) scroll no-repeat 0 0;}
-
-.siteTag {position: absolute;left: -16px;top: 109px;z-index: 10;width: 65px;height: 46px;padding:0;margin:0 10px 0 0;
- vertical-align:middle;border:0 none;background: transparent url(img/siteTag.png) scroll no-repeat 0 0;}
-.siteTag.tag_zTreeInfo {background-position: 0 0}
-.siteTag.tag_license {background-position: 0 -46px}
-.siteTag.tag_donate {background-position: 0 -92px}
-.siteTag.tag_contact {background-position: 0 -138px}
-
-.apiContent {width: 940px;}
-.apiContent .right {float: right;padding-right: 100px;}
-.apiContent .left {float: left;padding-right: 20px;border-right: 1px dotted silver;}
-.api_setting {position: relative;margin:20px 0 20px 20px;}
-.api_function {position: relative;margin:20px 0 20px 30px;padding-right: 10px;}
-.api_content_title {text-align: center;font-weight: bold;}
-
-.demoContent {width: 940px;}
-.demoContent .right {float: right;padding: 20px;width: 600px;}
-.demoContent .left {float: left;padding: 20px;}
-.demoContent iframe {width:600px;min-height: 530px;}
-
-.faqContent {width: 940px;}
-.faqContent .right {float: right;padding: 20px;width: 600px;}
-.faqContent .left {float: left;padding: 20px;}
-.faqContent iframe {width:600px;min-height: 300px;}
-
-.baby_overlay_tmp {position: absolute;top:0; left:-5000px;display:block;visibility: hidden;width:640px;font-size:11px;}
-.baby_overlay_tmp .details {padding: 20px;}
-.baby_overlay {display:none;position:absolute;z-index:99;left:0; top:0;width:640px;color:#fff;font-size:11px;}
-.baby_overlay .content {width:100%; height:100px;overflow: hidden;background: transparent url(img/overlay_bg.png) scroll repeat 0 0;}
-.baby_overlay .details {padding:0 20px 20px 20px;}
-.baby_overlay .close {background-image:url(img/close.png);position:absolute; right:5px; top:5px;cursor:pointer;height:36px;width:36px;}
-.baby_overlay_arrow {background-image:url(img/overlay_arrow.png);background-position:0 0;position:absolute;height:40px;width:40px;left: -40px;}
-.baby_overlay_arrow.reverse {background-position:0 -40px;}
-
-/* Footer */
-.footer {position: relative;min-width: 1000px;font: 14px/24px arial, helvetica, sans-serif;}
-.footer ul {position:absolute;left: 0px;border:1px solid #393939;background:#262626;padding:12px 0px;line-height: 18px;display: none;list-style: none;}
-.footer ul li a {display:block;padding: 2px 15px;color: #9c9c9c;text-indent: 0;}
-.footer ul li a:hover {text-decoration:none;color: #fff;}
-.footer-logo {position:absolute;margin: 10px 0 0 30px;width:122px; height:24px;top:0; left:0;background: transparent url(img/footer-logo.png) no-repeat 0 0;}
-.footer_mii {position: absolute;right: 558px;top: 8px;z-index: 10;padding: 4px 0;}
-.footer_mii a {font-size:10px;color:#649140}
-.footer_mii a:hover {color:#B6D76F}
-.footer_siteMap {position: absolute;right: 358px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;}
-.footer_siteMap .footer_siteMap_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_siteMap.gif) no-repeat 0 0;}
-.footer_siteMap ul {top:-202px;width:180px;}
-.footer_siteMap:hover ul {left: 0}
-.footer_contact {position: absolute;right: 193px;top: 8px;width: 155px;z-index: 10;padding: 4px 0;}
-.footer_contact .footer_contact_header {width:155px;text-indent: -9999px;background: transparent url(img/footer_contact.gif) no-repeat 0px 0px;}
-.footer_contact ul {top:-113px;width:153px;}
-.footer_contact:hover ul {left: 0}
-.footer_download {position: absolute;right: 60px;top: 8px;width: 123px;z-index: 10;padding: 4px 0;}
-.footer_download .footer_download_header {width:123px;text-indent: -9999px;background: transparent url(img/footer_download.png) no-repeat 0px 0px;}
-.footer_download ul {top:-113px;width:140px;}
-.footer_download:hover ul {left: 0}
-
-/* button icon */
-button {vertical-align:middle;border:0 none;background: transparent no-repeat 0 0 scroll;}
-
-.shortcuts button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/menuIcon.png)}
-.shortcuts button.home {background-position: 0 0}
-.shortcuts button.demo {background-position: 0 -24px}
-.shortcuts button.api {background-position: 0 -48px}
-.shortcuts button.faq {background-position: 0 -72px}
-.shortcuts button.donate {background-position: 0 -144px}
-.shortcuts button.download {background-position: 0 -96px}
-.shortcuts button.face {background-position: 0 -120px}
-.shortcuts button.cn {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/chinese.png)}
-.shortcuts button.en {width:48px; height:24px;padding:0; margin:0 10px 0 0;background-image:url(img/english.png)}
-
-.content button.ico {width:24px; height:24px;padding:0; margin:0 10px 0 0;}
-
-.content button.ico16 {width:16px; height:16px;padding:0; margin:0 5px 0 0;background-image:url("img/apiMenu.png");}
-button.z_core {margin-top: -4px;background-position:0 0;}
-button.z_check {margin-top: -4px;background-position:0 -16px;}
-button.z_edit {margin-top: -4px;background-position:0 -32px;}
-button.z_hide {margin-top: -4px;background-position:0 -64px;}
-button.z_search {margin-top: -4px;background-position:0 -48px;}
-button.searchPrev {margin-top: -4px;background-position:-16px 0;cursor:pointer}
-button.searchNext {margin-top: -4px;background-position:-16px -16px;cursor:pointer}
-button.searchPrev.disabled {margin-top: -4px;background-position:-16px -32px;cursor:auto}
-button.searchNext.disabled {margin-top: -4px;background-position:-16px -48px;cursor:auto}
-input.search {margin:0;padding:2px 0; border:0;}
-input.searchKey {width:150px;}
-input.searchResult {margin-left:-3px;width:65px;text-align:right;background-color:white;color:#707070}
-input.searchResult.noResult {background-color:#ff6666;color:black}
-.baby_overlay div.overlaySearch {text-align:right;padding-right:50px;padding-top:12px;}
-
-/* api overlay*/
-.apiDetail .topLine {border-top: 1px dashed #376B29;margin-top: 5px;padding-top: 5px;}
-.apiDetail .highlight_red {color:#A60000;}
-.apiDetail .highlight_green {color:#A7F43D;}
-.apiDetail h1, .apiDetail h2, .apiDetail h3, .apiDetail h4, .apiDetail h5, .apiDetail h6 {color: white;padding: 0;}
-.apiDetail h2 {color: #A7F43D;margin: 5px auto;padding: 5px;font-size: 20px;}
-.apiDetail h2 span {font-size: 14px;float: right;font-weight: normal;margin: 2px 20px 0 0;vertical-align: bottom;}
-.apiDetail h2 span.path {float: left;margin: 2px 0 0 0;vertical-align: bottom;}
-.apiDetail h3 {margin: 5px auto;padding: 5px;font-size: 14px;font-weight: normal;}
-.apiDetail h3 span.h3_info {margin-left: 20px;font-size: 12px;}
-.apiDetail h4 {margin: 0 auto;padding: 0 5px;font-size: 12px;font-weight: normal;line-height: 16px;}
-.apiDetail .desc h4 {color: black;}
-.apiDetail h4 b{width: 150px;display:inline-block;}
-.apiDetail h4 span{width: 230px;display:inline-block;}
-
-.apiDetail pre, .apiDetail .desc {background: #E8FCD6;color: black;margin: 10px;padding: 10px;display: block;}
-.apiDetail pre {word-wrap: break-word;}
-.apiDetail p{margin-left: 5px;padding: 0;}
-.apiDetail .longdesc {margin-top: 5px;}
-.apiDetail .longdesc p{font-size: 12px;line-height:1.5;margin:3px 0;}
-.apiDetail .longdesc b{font-size: 14px;}
-.apiDetail table {border-collapse:collapse;}
-.apiDetail table td {border:1px solid silver;text-align: center;vertical-align: middle;}
-.apiDetail table thead td {font-weight: bold}
-
-.apiDetail button {width:16px; height:16px; vertical-align:middle; border:0 none; cursor: pointer;
- background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
- background-image:url("zTreeStyle/img/zTreeStandard.png");}
-
-.apiDetail button.chk {width:13px; height:13px; margin:0 3px 2px 0; cursor: auto}
-.apiDetail button.chk.checkbox_false_full {background-position:0 0}
-.apiDetail button.chk.checkbox_false_full_focus {background-position:0 -14px}
-.apiDetail button.chk.checkbox_false_part {background-position:0 -28px}
-.apiDetail button.chk.checkbox_false_part_focus {background-position:0 -42px}
-.apiDetail button.chk.checkbox_true_full {background-position:-14px 0}
-.apiDetail button.chk.checkbox_true_full_focus {background-position:-14px -14px}
-.apiDetail button.chk.checkbox_true_part {background-position:-14px -28px}
-.apiDetail button.chk.checkbox_true_part_focus {background-position:-14px -42px}
-.apiDetail button.chk.radio_false_full {background-position:-28px 0}
-.apiDetail button.chk.radio_false_full_focus {background-position:-28px -14px}
-.apiDetail button.chk.radio_false_part {background-position:-28px -28px}
-.apiDetail button.chk.radio_false_part_focus {background-position:-28px -42px}
-.apiDetail button.chk.radio_true_full {background-position:-42px 0}
-.apiDetail button.chk.radio_true_full_focus {background-position:-42px -14px}
-.apiDetail button.chk.radio_true_part {background-position:-42px -28px}
-.apiDetail button.chk.radio_true_part_focus {background-position:-42px -42px} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/common_ie6.css b/common/src/main/webapp/thirdparty/zTree/api/apiCss/common_ie6.css
deleted file mode 100644
index aacaf59..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/common_ie6.css
+++ /dev/null
@@ -1,23 +0,0 @@
-* html{
-/* background-image:url(about:blank);*/
- background-attachment:fixed;
-}
-html pre {word-wrap: break-word}
-.header {background-image: none;background-color: #F0F6E4;}
-
-.ieSuggest {display:block;}
-.shortcuts button.cn {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/chinese.png');background-image: none;}
-.shortcuts button.en {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/english.png');background-image: none;}
-
-.light-bulb {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/lightbulb.png');background-image: none;}
-.contentBox {background-image: none;background-color: #F0F6E4;}
-.zTreeInfo {background-image: none;background-color: #F0F6E4;}
-
-.content button.ico16 {*background-image:url("img/apiMenu.gif")}
-.siteTag {background-image: none;}
-.apiContent .right {float: right;padding-right: 50px;}
-
-div.baby_overlay {background-color: #3C6E31;background-image:none;color:#fff;}
-div.baby_overlay .close {filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='apiCss/img/overlay_close_IE6.gif');background-image: none;}
-.baby_overlay_arrow {background-image:url(img/overlay_arrow.gif);}
-.apiDetail button {background-image:url("img/zTreeStandard.gif")} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.gif b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.gif
deleted file mode 100644
index 066fc8e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.png
deleted file mode 100644
index 9acec50..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/background.jpg b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/background.jpg
deleted file mode 100644
index 003375f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/background.jpg
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/chinese.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/chinese.png
deleted file mode 100644
index d3b57fc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/chinese.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/close.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/close.png
deleted file mode 100644
index 69e41e3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/close.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/contact-bg.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/contact-bg.png
deleted file mode 100644
index a3d7a5f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/contact-bg.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/english.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/english.png
deleted file mode 100644
index 2ad2d7d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/english.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/header-bg.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/header-bg.png
deleted file mode 100644
index a2baacf..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/header-bg.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/lightbulb.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/lightbulb.png
deleted file mode 100644
index c99357a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/lightbulb.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.gif b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.gif
deleted file mode 100644
index e7c3e6d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.png
deleted file mode 100644
index d790a11..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_bg.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_bg.png
deleted file mode 100644
index 5f81ee6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_bg.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_close_IE6.gif b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_close_IE6.gif
deleted file mode 100644
index 42cb8d8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_close_IE6.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.gif b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.gif
deleted file mode 100644
index 3f69a5b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.png b/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.png
deleted file mode 100644
index 33c9e84..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery-1.6.2.min.js b/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery-1.6.2.min.js
deleted file mode 100644
index 8cdc80e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery-1.6.2.min.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.6.2
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Thu Jun 30 14:16:56 2011 -0400
- */
-(function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bC.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bR,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bX(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bX(a,c,d,e,"*",g));return l}function bW(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bN),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bA(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bv:bw;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bg(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function W(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(R.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(x,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(H)return H.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g](h)}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u=/\:|^on/,v,w;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if((" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.
-shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,N(a.origType,a.selector),f.extend({},a,{handler:M,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,N(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?E:D):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=E;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=E;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=E,this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var F=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},G=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?G:F,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?G:F)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=b.type;(c==="submit"||c==="image")&&f(b).closest("form").length&&K("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=b.type;(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&K("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var H,I=function(a){var b=a.type,c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var L={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||D,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=x.exec(h),k="",j&&(k=j[0],h=h.replace(x,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,L[h]?(a.push(L[h]+k),h=h+k):h=(L[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+N(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+N(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var O=/Until$/,P=/^(?:parents|prevUntil|prevAll)/,Q=/,/,R=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,T=f.expr.match.POS,U={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(W(this,a,!1),"not",a)},filter:function(a){return this.pushStack(W(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=T.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/<tbody/i,ba=/<|&#?\w+;/,bb=/<(?:script|object|embed|option|style)/i,bc=/checked\s*(?:[^=]|=\s*.checked.)/i,bd=/\/(java|ecma)script/i,be=/^\s*<!(?:\[CDATA\[|\-\-)/,bf={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bc.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bg(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bm)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!bb.test(a[0])&&(f.support.checkClone||!bc.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j
-)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1></$2>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bl(k[i]);else bl(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bd.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bn=/alpha\([^)]*\)/i,bo=/opacity=([^)]*)/,bp=/([A-Z]|^ms)/g,bq=/^-?\d+(?:px)?$/i,br=/^-?\d/,bs=/^[+\-]=/,bt=/[^+\-\.\de]+/g,bu={position:"absolute",visibility:"hidden",display:"block"},bv=["Left","Right"],bw=["Top","Bottom"],bx,by,bz;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bx(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d;if(h==="number"&&isNaN(d)||d==null)return;h==="string"&&bs.test(d)&&(d=+d.replace(bt,"")+parseFloat(f.css(a,c)),h="number"),h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bx)return bx(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return bA(a,b,d);f.swap(a,bu,function(){e=bA(a,b,d)});return e}},set:function(a,b){if(!bq.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cs(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cr("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cr("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cs(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cr("show",1),slideUp:cr("hide",1),slideToggle:cr("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function h(a){return d.step(a)}var d=this,e=f.fx,g;this.startTime=cn||cp(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&f.timers.push(h)&&!cl&&(co?(cl=!0,g=function(){cl&&(co(g),e.tick())},co(g)):cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||cp(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var ct=/^t(?:able|d|h)$/i,cu=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cv(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!ct.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery.ztree.core-3.5.js b/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery.ztree.core-3.5.js
deleted file mode 100644
index 705bdb4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery.ztree.core-3.5.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * JQuery zTree core v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(p){var G,H,I,J,K,L,r={},u={},v={},M={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],
-otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},w=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,g){j.apply(b.callback.onNodeCreated,
-[a,c,g])});a.bind(c.CLICK,function(a,c,g,l,h){j.apply(b.callback.onClick,[c,g,l,h])});a.bind(c.EXPAND,function(a,c,g){j.apply(b.callback.onExpand,[a,c,g])});a.bind(c.COLLAPSE,function(a,c,g){j.apply(b.callback.onCollapse,[a,c,g])});a.bind(c.ASYNC_SUCCESS,function(a,c,g,l){j.apply(b.callback.onAsyncSuccess,[a,c,g,l])});a.bind(c.ASYNC_ERROR,function(a,c,g,l,h,e){j.apply(b.callback.onAsyncError,[a,c,g,l,h,e])});a.bind(c.REMOVE,function(a,c,g){j.apply(b.callback.onRemove,[a,c,g])})}],x=[function(b){var a=
-e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR).unbind(a.REMOVE)}],y=[function(b){var a=h.getCache(b);a||(a={},h.setCache(b,a));a.nodes=[];a.doms=[]}],z=[function(b,a,c,d,f,g){if(c){var l=h.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?j.eqs(c.open,"true"):!!c.open;c[e]&&c[e].length>0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent==
-"string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode=g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,
-"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&
-(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,
-treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},
-addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)},addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=
-h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)},exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d<f;d++)C[d].apply(this,arguments)},
-getBeforeA:function(b,a,c){for(var d=0,f=B.length;d<f;d++)B[d].apply(this,arguments)},getInnerAfterA:function(b,a,c){for(var d=0,f=E.length;d<f;d++)E[d].apply(this,arguments)},getInnerBeforeA:function(b,a,c){for(var d=0,f=D.length;d<f;d++)D[d].apply(this,arguments)},getCache:function(b){return v[b.treeId]},getNextNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length-1;f<=g;f++)if(d[c][f]===a)return f==g?null:d[c][f+1];return null},
-getNodeByParam:function(b,a,c,d){if(!a||!c)return null;for(var f=b.data.key.children,g=0,l=a.length;g<l;g++){if(a[g][c]==d)return a[g];var e=h.getNodeByParam(b,a[g][f],c,d);if(e)return e}return null},getNodeCache:function(b,a){if(!a)return null;var c=v[b.treeId].nodes[h.getNodeCacheId(a)];return c?c:null},getNodeName:function(b,a){return""+a[b.data.key.name]},getNodeTitle:function(b,a){return""+a[b.data.key.title===""?b.data.key.name:b.data.key.title]},getNodes:function(b){return h.getRoot(b)[b.data.key.children]},
-getNodesByParam:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],l=0,e=a.length;l<e;l++)a[l][c]==d&&g.push(a[l]),g=g.concat(h.getNodesByParam(b,a[l][f],c,d));return g},getNodesByParamFuzzy:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],d=d.toLowerCase(),l=0,e=a.length;l<e;l++)typeof a[l][c]=="string"&&a[l][c].toLowerCase().indexOf(d)>-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?
-null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i<n;i++){if(j.apply(c,[a[i],f],!1)){if(d)return a[i];e.push(a[i])}var k=h.getNodesByFilter(b,a[i][g],c,d,f);if(d&&k)return k;e=d?k:e.concat(k)}return e},getPreNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length;f<g;f++)if(d[c][f]===a)return f==0?null:d[c][f-1];return null},getRoot:function(b){return b?u[b.treeId]:null},getRoots:function(){return u},getSetting:function(b){return r[b]},
-getSettings:function(){return r},getZTreeTools:function(b){return(b=this.getRoot(this.getSetting(b)))?b.treeTools:null},initCache:function(b){for(var a=0,c=y.length;a<c;a++)y[a].apply(this,arguments)},initNode:function(b,a,c,d,f,g){for(var e=0,h=z.length;e<h;e++)z[e].apply(this,arguments)},initRoot:function(b){for(var a=0,c=A.length;a<c;a++)A[a].apply(this,arguments)},isSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d])return!0;return!1},
-removeNodeCache:function(b,a){var c=b.data.key.children;if(a[c])for(var d=0,f=a[c].length;d<f;d++)arguments.callee(b,a[c][d]);h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=null},removeSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d]||!h.getNodeCache(b,c.curSelectedList[d].tId))c.curSelectedList.splice(d,1),d--,f--},setCache:function(b,a){v[b.treeId]=a},setRoot:function(b,a){u[b.treeId]=a},setZTreeTools:function(b,a){for(var c=0,d=
-F.length;c<d;c++)F[c].apply(this,arguments)},transformToArrayFormat:function(b,a){if(!a)return[];var c=b.data.key.children,d=[];if(j.isArray(a))for(var f=0,g=a.length;f<g;f++)d.push(a[f]),a[f][c]&&(d=d.concat(h.transformToArrayFormat(b,a[f][c])));else d.push(a),a[c]&&(d=d.concat(h.transformToArrayFormat(b,a[c])));return d},transformTozTreeFormat:function(b,a){var c,d,f=b.data.simpleData.idKey,g=b.data.simpleData.pIdKey,e=b.data.key.children;if(!f||f==""||!a)return[];if(j.isArray(a)){var h=[],i=[];
-for(c=0,d=a.length;c<d;c++)i[a[c][f]]=a[c];for(c=0,d=a.length;c<d;c++)i[a[c][g]]&&a[c][f]!=a[c][g]?(i[a[c][g]][e]||(i[a[c][g]][e]=[]),i[a[c][g]][e].push(a[c])):h.push(a[c]);return h}else return[a]}},m={bindEvent:function(b){for(var a=0,c=w.length;a<c;a++)w[a].apply(this,arguments)},unbindEvent:function(b){for(var a=0,c=x.length;a<c;a++)x[a].apply(this,arguments)},bindTree:function(b){var a={treeId:b.treeId},c=b.treeObj;b.view.txtSelectedEnable||c.bind("selectstart",function(a){a=a.originalEvent.srcElement.nodeName.toLowerCase();
-return a==="input"||a==="textarea"}).css({"-moz-user-select":"-moz-none"});c.bind("click",a,m.proxy);c.bind("dblclick",a,m.proxy);c.bind("mouseover",a,m.proxy);c.bind("mouseout",a,m.proxy);c.bind("mousedown",a,m.proxy);c.bind("mouseup",a,m.proxy);c.bind("contextmenu",a,m.proxy)},unbindTree:function(b){b.treeObj.unbind("click",m.proxy).unbind("dblclick",m.proxy).unbind("mouseover",m.proxy).unbind("mouseout",m.proxy).unbind("mousedown",m.proxy).unbind("mouseup",m.proxy).unbind("contextmenu",m.proxy)},
-doProxy:function(b){for(var a=[],c=0,d=s.length;c<d;c++){var f=s[c].apply(this,arguments);a.push(f);if(f.stop)break}return a},proxy:function(b){var a=h.getSetting(b.data.treeId);if(!j.uCanDo(a,b))return!0;for(var a=m.doProxy(b),c=!0,d=0,f=a.length;d<f;d++){var g=a[d];g.nodeEventCallback&&(c=g.nodeEventCallback.apply(g,[b,g.node])&&c);g.treeEventCallback&&(c=g.treeEventCallback.apply(g,[b,g.node])&&c)}return c}};G=function(b,a){var c=h.getSetting(b.data.treeId);if(a.open){if(j.apply(c.callback.beforeCollapse,
-[c.treeId,a],!0)==!1)return!0}else if(j.apply(c.callback.beforeExpand,[c.treeId,a],!0)==!1)return!0;h.getRoot(c).expandTriggerFlag=!0;i.switchNode(c,a);return!0};H=function(b,a){var c=h.getSetting(b.data.treeId),d=c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&h.isSelectedNode(c,a)?0:c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&c.view.selectedMulti?2:1;if(j.apply(c.callback.beforeClick,[c.treeId,a,d],!0)==!1)return!0;d===0?i.cancelPreSelectedNode(c,a):i.selectNode(c,a,d===2);c.treeObj.trigger(e.event.CLICK,
-[b,c.treeId,a,d]);return!0};I=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseDown,[c.treeId,a],!0)&&j.apply(c.callback.onMouseDown,[b,c.treeId,a]);return!0};J=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseUp,[c.treeId,a],!0)&&j.apply(c.callback.onMouseUp,[b,c.treeId,a]);return!0};K=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeDblClick,[c.treeId,a],!0)&&j.apply(c.callback.onDblClick,[b,c.treeId,a]);return!0};
-L=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeRightClick,[c.treeId,a],!0)&&j.apply(c.callback.onRightClick,[b,c.treeId,a]);return typeof c.callback.onRightClick!="function"};var j={apply:function(b,a,c){return typeof b=="function"?b.apply(N,a?a:[]):c},canAsync:function(b,a){var c=b.data.key.children;return b.async.enable&&a&&a.isParent&&!(a.zAsync||a[c]&&a[c].length>0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof
-Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a,c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d<f;d++)if(j.eqs(a.tagName,
-c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}return null},getNodeMainDom:function(b){return p(b).parent("li").get(0)||p(b).parentsUntil("li").parent().get(0)},isChildOrSelf:function(b,a){return p(b).closest("#"+a).length>0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,
-f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b),c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k<m;k++){var o=c[k];if(f){var t=(d?d:h.getRoot(b))[j].length==c.length&&k==0;h.initNode(b,a,o,d,t,k==c.length-1,g);h.addNodeCache(b,o)}t=[];o[j]&&o[j].length>
-0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),
-d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&
-f<g;f++){var q=b.async.autoParam[f].split("="),n=q;q.length>1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f<g;f+=2)l[b.async.otherParam[f]]=b.async.otherParam[f+1];else for(var m in b.async.otherParam)l[m]=b.async.otherParam[m];var o=h.getRoot(b)._ver;p.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:l,dataType:b.async.dataType,success:function(f){if(o==h.getRoot(b)._ver){var g=[];try{g=
-!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){g=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);g&&g!==""?(g=j.apply(b.async.dataFilter,[b.treeId,a,g],g),i.addNodes(b,a,g?j.clone(g):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]);j.apply(d)}},error:function(c,d,f){if(o==h.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,
-a){for(var c=h.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a=h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,
-a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b),h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty(),delete r[b.treeId])},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,
-f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c=k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,
-g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,
-a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k<m;k++)g[k]&&i.expandCollapseSonNode(b,g[k],c,e);h.getRoot(b).expandTriggerFlag=j;i.expandCollapseNode(b,a,c,d,f)},makeDOMNodeIcon:function(b,a,c){var d=h.getNodeName(a,c),d=a.view.nameIsHTML?
-d:d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");b.push("<span id='",c.tId,e.id.ICON,"' title='' treeNode",e.id.ICON," class='",i.makeNodeIcoClass(a,c),"' style='",i.makeNodeIcoStyle(a,c),"'></span><span id='",c.tId,e.id.SPAN,"'>",d,"</span>")},makeDOMNodeLine:function(b,a,c){b.push("<span id='",c.tId,e.id.SWITCH,"' title='' class='",i.makeNodeLineClass(a,c),"' treeNode",e.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(b){b.push("</li>")},makeDOMNodeMainBefore:function(b,
-a,c){b.push("<li id='",c.tId,"' class='",e.className.LEVEL,c.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(b){b.push("</a>")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("<a id='",c.tId,e.id.A,"' class='",e.className.LEVEL,c.level,"' treeNode",e.id.A,' onclick="',c.click||"",'" ',f!=null&&f.length>0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),
-"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b,a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+
-" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b,a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):
-c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("<ul id='",a.tId,e.id.UL,"' class='",e.className.LEVEL,a.level,
-" ",i.makeUlLineClass(b,a),"' style='display:",a.open?"block":"none","'>");c.push(d);c.push("</ul>")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f<g;f++)h.removeNodeCache(b,d[f]);h.removeSelectedNode(b);delete a[c];b.data.keep.parent?k(a,e.id.UL,b).empty():(a.isParent=!1,a.open=!1,c=k(a,e.id.SWITCH,b),d=k(a,e.id.ICON,b),i.replaceSwitchClass(a,c,e.folder.DOCU),
-i.replaceIcoClass(a,d,e.folder.DOCU),k(a,e.id.UL,b).remove())}}},setFirstNode:function(b,a){var c=b.data.key.children;if(a[c].length>0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();
-h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g<l;g++)if(f[d][g].tId==a.tId){f[d].splice(g,1);break}i.setFirstNode(b,f);i.setLastNode(b,f);var j,g=f[d].length;if(!b.data.keep.parent&&g==0)f.isParent=!1,f.open=!1,g=k(f,e.id.UL,b),l=k(f,e.id.SWITCH,b),j=k(f,e.id.ICON,b),i.replaceSwitchClass(f,l,e.folder.DOCU),i.replaceIcoClass(f,j,e.folder.DOCU),g.css("display","none");else if(b.view.showLine&&g>0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);
-f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=
-a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A,b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,
-a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=
-k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,
-a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",
-NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight==="undefined")d.view.expandSpeed=
-"";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d,
-a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d,
-a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d),
-a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e<i;e++)if(c[b][e]==a)return e;return-1},getSelectedNodes:function(){for(var a=[],b=h.getRoot(d).curSelectedList,
-c=0,e=b.length;c<e;c++)a.push(b[c]);return a},isSelectedNode:function(a){return h.isSelectedNode(d,a)},reAsyncChildNodes:function(a,b,c){if(this.setting.async.enable){var j=!a;j&&(a=h.getRoot(d));if(b=="refresh"){for(var b=this.setting.data.key.children,m=0,p=a[b]?a[b].length:0;m<p;m++)h.removeNodeCache(d,a[b][m]);h.removeSelectedNode(d);a[b]=[];j?this.setting.treeObj.empty():k(a,e.id.UL,d).empty()}i.asyncNode(this.setting,j?null:a,!!c)}},refresh:function(){this.setting.treeObj.empty();var a=h.getRoot(d),
-b=a[d.data.key.children];h.initRoot(d);a[d.data.key.children]=b;h.initCache(d);i.createNodes(d,0,a[d.data.key.children])},removeChildNodes:function(a){if(!a)return null;var b=a[d.data.key.children];i.removeChildNodes(d,a);return b?b:null},removeNode:function(a,b){a&&(b=!!b,b&&j.apply(d.callback.beforeRemove,[d.treeId,a],!0)==!1||(i.removeNode(d,a),b&&this.setting.treeObj.trigger(e.event.REMOVE,[d.treeId,a])))},selectNode:function(a,b){if(a&&j.uCanDo(d)){b=d.view.selectedMulti&&b;if(a.parentTId)i.expandCollapseParentNode(d,
-a.getParentNode(),!0,!1,function(){try{k(a,d).focus().blur()}catch(b){}});else try{k(a,d).focus().blur()}catch(c){}i.selectNode(d,a,b)}},transformTozTreeNodes:function(a){return h.transformTozTreeFormat(d,a)},transformToArray:function(a){return h.transformToArrayFormat(d,a)},updateNode:function(a){a&&k(a,d).get(0)&&j.uCanDo(d)&&(i.setNodeName(d,a),i.setNodeTarget(d,a),i.setNodeUrl(d,a),i.setNodeLineIcos(d,a),i.setNodeFontCss(d,a))}};b.treeTools=c;h.setZTreeTools(d,c);b[a]&&b[a].length>0?i.createNodes(d,
-0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/api/apiCss/zTreeStyleForApi.css b/common/src/main/webapp/thirdparty/zTree/api/apiCss/zTreeStyleForApi.css
deleted file mode 100644
index bb4717b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/apiCss/zTreeStyleForApi.css
+++ /dev/null
@@ -1,49 +0,0 @@
-/*-------------------------------------
-zTree Style
-
-version: 3.0
-author: Hunter.z
-email: hunter.z@263.net
-website: http://code.google.com/p/jquerytree/
-
--------------------------------------*/
-
-.ztree * {padding:0; margin:0; font-size:12px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
-.ztree {margin:0; padding:5px; color:#333}
-.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap}
-.ztree li ul{ margin:0; padding:0 0 0 18px}
-.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;}
-
-.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; color:#333; height:17px; text-decoration:none; vertical-align:top; display: inline-block}
-.ztree li a:hover {text-decoration:none}
-.ztree li a.curSelectedNode {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid;}
-.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#FFE6B0; color:black; height:16px; border:1px #FFB951 solid; opacity:0.8; filter:alpha(opacity=80)}
-.ztree li a.tmpTargetNode_inner {padding-top:0px; background-color:#316AC5; color:white; height:16px; border:1px #316AC5 solid; opacity:0.8; filter:alpha(opacity=80)}
-.ztree li a.tmpTargetNode_prev {}
-.ztree li a.tmpTargetNode_next {}
-.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
- font-size:12px; border:1px #7EC4CC solid; *border:0px}
-.ztree li span {line-height:16px; margin-right: 2px}
-.ztree li span.button {line-height:0; margin:0;width:16px; height:16px; display: inline-block; vertical-align:middle;
- border:0 none; cursor: pointer;
- background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
- background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
-
-.ztree li span.button.switch {width:1px; height:18px; visibility: hidden}
-
-.zTreeDragUL {margin:0; padding:0; position:absolute; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
-.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
-
-/* level 等级样式*/
-/*.ztree li button.level0 {
- display:none;
-}
-.ztree li ul.level0 {
- padding:0;
- background:none;
-}*/
-
-.ztree li span.button.core_ico_docu{margin-right:2px; background-position:-126px 0; vertical-align:top; *vertical-align:middle}
-.ztree li span.button.check_ico_docu{margin-right:2px; background-position:-126px -16px; vertical-align:top; *vertical-align:middle}
-.ztree li span.button.edit_ico_docu{margin-right:2px; background-position:-126px -32px; vertical-align:top; *vertical-align:middle}
-.ztree li span.button.hide_ico_docu{margin-right:2px; background-position:-160px 0; vertical-align:top; *vertical-align:middle}
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html
deleted file mode 100644
index 7af3e40..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree v3.x 内部的全部方法都可以通过 $.fn.zTree._z 进行调用,开放出来是为了更便于大家开发制作自己的 zTree 插件。 </p>
- <p class="highlight_red">如无特殊需求请勿使用此对象,以及修改此对象内部的各个函数。</p>
- </div>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html
deleted file mode 100644
index 7105807..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>destroy</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>从 zTree v3.4 开始提供销毁 zTree 的方法。 </p>
- <p>1、用此方法可以销毁指定 treeId 的 zTree,也可以销毁当前页面全部的 zTree。</p>
- <p class="highlight_red">2、销毁指定 treeId 的 zTree 也可以使用 zTreeObj.destroy() 方法。</p>
- <p class="highlight_red">3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree 的 DOM 容器的 id</p>
- <p class="highlight_red">省略 treeId,表示销毁当前页面全部的 zTree</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 销毁 id 为 "treeDemo" 的 zTree</h4>
- <pre xmlns=""><code>$.fn.zTree.destroy("treeDemo");</code></pre>
- <h4>2. 销毁全部 的 zTree</h4>
- <pre xmlns=""><code>$.fn.zTree.destroy();</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html
deleted file mode 100644
index b1d1db4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>getZTreeObj</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree v3.x 专门提供的根据 treeId 获取 zTree 对象的方法。 </p>
- <p class="highlight_red">必须在初始化 zTree 以后才可以使用此方法。</p>
- <p>有了这个方法,用户不再需要自己设定全局变量来保存 zTree 初始化后得到的对象了,而且在所有回调函数中全都会返回 treeId 属性,用户可以随时使用此方法获取需要进行操作的 zTree 对象</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree 的 DOM 容器的 id</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取 id 为 tree 的 zTree 对象</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html b/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html
deleted file mode 100644
index 8db6d2c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html
+++ /dev/null
@@ -1,74 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(obj, zSetting, zNodes)</span><span class="path">$.fn.zTree.</span>init</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 初始化方法,创建 zTree 必须使用此方法</p>
- <p>1、页面需要进行 W3C 申明,例如:&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"&nbsp;&nbsp; &nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;。</p>
- <p>2、需要首先加载 jquery-1.4.2.js 或其他更高版本的 jQuery 。</p>
- <p>3、需要加载 jquery-ztree.core-3.0.js,如果需要用到 编辑功能 或 checkbox / radio 还需要分别加载 jquery-ztree.exedit-3.0.js 和 jquery-ztree.excheck-3.0.js 。</p>
- <p>4、需要加载 zTreeStyle.css 以及 zTreeStyle 目录下的 img 文件。</p>
- <p>5、如果需要使用自定义图标请参考相应的Demo。</p>
- <p>6、请注意设置 zTree 的容器样式 class="ztree",其中 "ztree" 这个 className,可以根据需要随意修改,别忘了修改 css 中对应名字就是了,对于容器如果需要增加其他特殊样式,可根据自己的需要进行修改。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>obj</b><span>jQuery Object</span></h4>
- <p>用于展现 zTree 的 DOM 容器</p>
- <h4 class="topLine"><b>zSetting</b><span>JSON</span></h4>
- <p>zTree 的配置数据,具体请参考 “setting 配置详解”中的各个属性详细说明</p>
- <h4 class="topLine"><b>zNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>zTree 的节点数据,具体请参考 “treeNode 节点数据详解”中的各个属性详细说明</p>
- <p class="highlight_red">1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中</p>
- <p class="highlight_red">2、如果需要异步加载根节点,可以设置为 null 或 [ ]</p>
- <p class="highlight_red">3、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>zTree 对象,提供操作 zTree 的各种方法,对于通过 js 操作 zTree 来说必须通过此对象</p>
- <p class="highlight_red">如果不需要自行设定全局变量保存,可以利用 $.fn.zTree.getZTreeObj 方法随时获取</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 简单创建 zTree 演示</h4>
- <pre xmlns=""><code>&lt;!DOCTYPE html&gt;
-&lt;HTML&gt;
- &lt;HEAD&gt;
- &lt;TITLE&gt; ZTREE DEMO &lt;/TITLE&gt;
- &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
- &lt;link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css"&gt;
- &lt;script type="text/javascript" src="jquery-1.4.2.js"&gt;&lt;/script&gt;
- &lt;script type="text/javascript" src="jquery.ztree.core-3.5.js"&gt;&lt;/script&gt;
-&lt;!--
- &lt;script type="text/javascript" src="jquery.ztree.excheck-3.5.js"&gt;&lt;/script&gt;
- &lt;script type="text/javascript" src="jquery.ztree.exedit-3.5.js"&gt;&lt;/script&gt;
---&gt;
- &lt;SCRIPT type="text/javascript" &gt;
- var zTreeObj,
- setting = {
- view: {
- selectedMulti: false
- }
- },
- zTreeNodes = [
- {"name":"网站导航", open:true, children: [
- { "name":"google", "url":"http://g.cn", "target":"_blank"},
- { "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
- { "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
- ]
- }
- ];
-
- $(document).ready(function(){
- zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
-
- });
- &lt;/SCRIPT&gt;
- &lt;/HEAD&gt;
-
-&lt;BODY&gt;
-&lt;ul id="tree" class="ztree" style="width:230px; overflow:auto;"&gt;&lt;/ul&gt;
- &lt;/BODY&gt;
-&lt;/HTML&gt;</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html
deleted file mode 100644
index cf0f4d2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>异步加载时需要自动提交父节点属性的参数。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:[ ]</p>
- </div>
- </div>
- <h3>Array(String) 格式说明</h3>
- <div class="desc">
- <p>1、将需要作为参数提交的属性名称,制作成 Array 即可,例如:["id", "name"]</p>
- <p>2、可以设置提交时的参数名称,例如 server 只接受 zId : ["id=zId"]</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 id 属性为自动提交的参数</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id"]
- }
-};
-假设 异步加载 父节点(node = {id:1, name:"test"}) 的子节点时,将提交参数 id=1
-......</code></pre>
- <h4>2. 设置 id 属性作为 zId 成为自动提交的参数</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id=zId"]
- }
-};
-假设 对父节点 node = {id:1, name:"test"},进行异步加载时,将提交参数 zId=1
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html
deleted file mode 100644
index db0c92f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>contentType</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Ajax 提交参数的数据类型。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:"application/x-www-form-urlencoded"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p> contentType = "application/x-www-form-urlencoded" 可以满足绝大部分请求,按照标准的 Form 格式提交参数</p>
- <p> contentType = "application/json" 可以满足 .Net 的编程需要,按照 JSON 格式提交参数</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 Ajax 提交参数的数据类型为 JSON 格式</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- contentType: "application/json",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html
deleted file mode 100644
index f174bf0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, parentNode, responseData)</span><span class="path">setting.async.</span>dataFilter</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于对 Ajax 返回数据进行预处理的函数。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>进行异步加载的父节点 JSON 数据对象</p>
- <p class="highlight_red">对根进行异步加载时,parentNode = null</p>
- <h4 class="topLine"><b>responseData</b><span>Array(JSON) / JSON / String</span></h4>
- <p>异步加载获取到的数据转换后的 Array(JSON) / JSON / String 数据对象</p>
- <p class="highlight_red">v3.4开始 支持 XML 数据格式的 String</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON) / JSON</span></h4>
- <p>返回值是 zTree 支持的JSON 数据结构即可。</p>
- <p class="highlight_red">v3.x 支持单个 JSON 节点数据进行加载</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 修改异步获取到的节点name属性</h4>
- <pre xmlns=""><code>function ajaxDataFilter(treeId, parentNode, responseData) {
- if (responseData) {
- for(var i =0; i < responseData.length; i++) {
- responseData[i].name += "_filter";
- }
- }
- return responseData;
-};
-var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- dataFilter: ajaxDataFilter
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html
deleted file mode 100644
index 6d639b7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>dataType</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Ajax 获取的数据类型。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:"text"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p> dataType = "text" 可以满足绝大部分请求</p>
- <p class="highlight_red">其余 dataType 类型请参考 jQuery ajax 中的 dataType 参数</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 Ajax 获取的数据类型为 纯文本</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- dataType: "text",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html
deleted file mode 100644
index 9079ae1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.async.</span>enable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否开启异步加载模式</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示 开启 异步加载模式</p>
- <p> false 表示 关闭 异步加载模式</p>
- <p class="highlight_red">如果设置为 true,请务必设置 setting.async 内的其它参数。</p>
- <p class="highlight_red">如果需要根节点也异步加载,初始化时 treeNodes 参数设置为 null 即可。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要开启异步加载模式</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html
deleted file mode 100644
index 981715f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(String) / JSON</span><span class="path">setting.async.</span>otherParam</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Ajax 请求提交的静态参数键值对。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:[ ]</p>
- </div>
- </div>
- <h3>Array(String) 格式说明</h3>
- <div class="desc">
- <p>可以为空[ ],如果有 key,则必须存在 value。 例如:[key, value]</p>
- </div>
- <h3>JSON 格式说明</h3>
- <div class="desc">
- <p>直接用 JSON 格式制作键值对,例如:{ key1:value1, key2:value2 }</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 Array(String) 格式的参数</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- otherParam: ["id", "1", "name", "test"]
- }
-};
-进行异步加载时,将提交参数 id=1&name=test</code></pre>
- <h4>2. 设置 JSON 格式的参数</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- otherParam: { "id":"1", "name":"test"}
- }
-};
-进行异步加载时,将提交参数 id=1&name=test</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html
deleted file mode 100644
index 20d9a6b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>type</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Ajax 的 http 请求模式。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:"post"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p> type = "post" 表示异步加载采用 post 方法请求</p>
- <p> type = "get" 表示异步加载采用 get 方法请求</p>
- <p class="highlight_red">对应于 jQuery ajax 中的 type 参数</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置使用 get 方式请求数据</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- type: "get",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html
deleted file mode 100644
index a5209af..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.async.</span>url</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Ajax 获取数据的 URL 地址。<span class="highlight_red">[setting.async.enable = true 时生效]</span></p>
- <p>默认值:""</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>设置固定的异步加载 url 字符串,请注意地址的路径,确保页面能正常加载</p>
- <p class="highlight_red">url 内也可以带参数,这些参数就只能是通过 get 方式提交了,并且请注意进行转码</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要异步加载子节点的的父节点 JSON 数据对象</p>
- <p class="highlight_red">针对根进行异步加载时,treeNode = null</p>
- <h4 class="topLine"><b>返回值</b><span>String</span></h4>
- <p>返回值同 String 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置异步获取节点的 URL 为 nodes.php</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "nodes.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
- <h4>2. 设置异步获取节点的 URL 为 function 动态获取</h4>
- <pre xmlns=""><code>function getAsyncUrl(treeId, treeNode) {
- return treeNode.isParent ? "nodes1.php" : "nodes2.php";
-};
-var setting = {
- async: {
- enable: true,
- url: getAsyncUrl,
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html
deleted file mode 100644
index 70ba0fc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeAsync</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获异步加载之前的事件回调函数,zTree 根据返回值确定是否允许进行异步加载</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>进行异步加载的父节点 JSON 数据对象</p>
- <p class="highlight_red">针对根进行异步加载时,treeNode = null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将不进行异步加载,也无法触发 onAsyncSuccess / onAsyncError 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止 id 为 1 的父节点进行异步加载操作</h4>
- <pre xmlns=""><code>function zTreeBeforeAsync(treeId, treeNode) {
- return (treeNode.id !== 1);
-};
-var setting = {
- callback: {
- beforeAsync: zTreeBeforeAsync
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html
deleted file mode 100644
index a0e1f42..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCheck</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 勾选 或 取消勾选 之前的事件回调函数,并且根据返回值确定是否允许 勾选 或 取消勾选 </p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>进行 勾选 或 取消勾选 的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,将不会改变勾选状态,并且无法触发 onCheck 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止所有勾选操作,保持初始化的勾选状态</h4>
- <pre xmlns=""><code>function zTreeBeforeCheck(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeCheck: zTreeBeforeCheck
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html
deleted file mode 100644
index 6efe928..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获单击节点之前的事件回调函数,并且根据返回值确定是否允许单击操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被单击的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
- <p>节点被点击后的选中操作类型,详细看下表</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead><tr><td>clickFlag</td><td title="是否允许多点选中">selectedMulti</td><td title="是否按下 Ctrl 或 Cmd 键">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="节点当前选择状态">isSelected</td><td>选中操作</td></tr></thead>
- <tbody>
- <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>普通选中</td></tr>
- <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>普通选中</td></tr>
- <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>追加选中</td></tr>
- <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>取消选中</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>普通选中</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>普通选中</td></tr>
- <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>普通选中</td></tr>
- <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>取消选中</td></tr>
- </tbody>
- </table>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将不会选中节点,也无法触发 onClick 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止节点被选中</h4>
- <pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) {
- return (treeNode.id !== 1);
-};
-var setting = {
- callback: {
- beforeClick: zTreeBeforeClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html
deleted file mode 100644
index d778e9c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCollapse</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获父节点折叠之前的事件回调函数,并且根据返回值确定是否允许折叠操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>要折叠的父节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将不会折叠节点,也无法触发 onCollapse 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止所有已展开的父节点折叠</h4>
- <pre xmlns=""><code>function zTreeBeforeCollapse(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeCollapse: zTreeBeforeCollapse
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html
deleted file mode 100644
index ed7e4dc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标双击之前的事件回调函数,并且根据返回值确定触发 onDblClick 事件回调函数</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标双击时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,将仅仅无法触发 onDblClick 事件回调函数,对其他操作无任何影响</p>
- <p class="highlight_red">此事件回调函数对双击节点展开功能无任何影响,如果需要设置请参考 setting.view.dblClickExpand 属性</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止 onDblClick 事件</h4>
- <pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeDblClick: zTreeBeforeDblClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html
deleted file mode 100644
index 1e783a3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNodes)</span><span class="path">setting.callback.</span>beforeDrag</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被拖拽之前的事件回调函数,并且根据返回值确定是否允许开启拖拽操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>要被拖拽的节点 JSON 数据集合</p>
- <p class="highlight_red">v3.x 允许多个同级节点同时被拖拽,因此将此参数修改为 Array(JSON)</p>
- <p class="highlight_red">如果拖拽时多个被选择的节点不是同级关系,则只能拖拽鼠标当前所在位置的节点</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将终止拖拽,也无法触发 onDrag / beforeDrop / onDrop 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止全部拖拽操作</h4>
- <pre xmlns=""><code>function zTreeBeforeDrag(treeId, treeNodes) {
- return false;
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDrag: zTreeBeforeDrag
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html
deleted file mode 100644
index ceab2d3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDragOpen</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获拖拽节点移动到折叠状态的父节点后,即将自动展开该父节点之前的事件回调函数,并且根据返回值确定是否允许自动展开操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>需要被展开的父节点 treeNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>要被自动展开的父节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将无法进行自动展开操作</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止全部拖拽时的自动展开操作</h4>
- <pre xmlns=""><code>function zTreeBeforeDragOpen(treeId, treeNode) {
- return false;
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDragOpen: zTreeBeforeDragOpen
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html
deleted file mode 100644
index 4123743..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>beforeDrop</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点拖拽操作结束之前的事件回调函数,并且根据返回值确定是否允许此拖拽操作</p>
- <p>默认值:null</p>
- <p class="highlight_red">如未拖拽到有效位置,则不触发此回调函数,直接将节点恢复原位置</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>目标节点 targetNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>被拖拽的节点 JSON 数据集合</p>
- <p class="highlight_red">无论拖拽操作为 复制 还是 移动,treeNodes 都是当前被拖拽节点的数据集合。</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>treeNodes 被拖拽放开的目标节点 JSON 数据对象。</p>
- <p class="highlight_red">如果拖拽成为根节点,则 targetNode = null</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>指定移动到目标节点的相对位置</p>
- <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p>
- <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
- <p>拖拽节点操作是 复制 或 移动</p>
- <p class="highlight_red">true:复制;false:移动</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将恢复被拖拽的节点,也无法触发 onDrop 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止将节点拖拽成为根节点</h4>
- <pre xmlns=""><code>function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
- return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDrop: zTreeBeforeDrop
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html
deleted file mode 100644
index 9df3ca2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeEditName</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点编辑按钮的 click 事件,并且根据返回值确定是否允许进入名称编辑状态</p>
- <p class="highlight_red">此事件回调函数最主要是用于捕获编辑按钮的点击事件,然后触发自定义的编辑界面操作。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>将要进入编辑名称状态的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,节点将无法进入 zTree 默认的编辑名称状态</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止修改父节点的名称</h4>
- <pre xmlns=""><code>function zTreeBeforeEditName(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeEditName: zTreeBeforeEditName
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html
deleted file mode 100644
index 350972b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeExpand</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获父节点展开之前的事件回调函数,并且根据返回值确定是否允许展开操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>要展开的父节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将不会展开节点,也无法触发 onExpand 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止所有已折叠的父节点展开</h4>
- <pre xmlns=""><code>function zTreeBeforeExpand(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeExpand: zTreeBeforeExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html
deleted file mode 100644
index 2c3f28d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标按键按下之前的事件回调函数,并且根据返回值确定触发 onMouseDown 事件回调函数</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标按键按下时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,将仅仅无法触发 onMouseDown 事件回调函数,对其他操作无任何影响</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止 onMouseDown 事件</h4>
- <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeMouseDown: zTreeBeforeMouseDown
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html
deleted file mode 100644
index f0b01b9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseUp</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标按键松开之前的事件回调函数,并且根据返回值确定触发 onMouseUp 事件回调函数</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标按键松开时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,将仅仅无法触发 onMouseUp 事件回调函数,对其他操作无任何影响</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止 onMouseUp 事件</h4>
- <pre xmlns=""><code>function zTreeBeforeMouseUp(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeMouseUp: zTreeBeforeMouseUp
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html
deleted file mode 100644
index 0edb3fd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRemove</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被删除之前的事件回调函数,并且根据返回值确定是否允许删除操作</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>将要删除的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将不删除节点,也无法触发 onRemove 事件回调函数</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止全部删除操作</h4>
- <pre xmlns=""><code>function zTreeBeforeRemove(treeId, treeNode) {
- return false;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeRemove: zTreeBeforeRemove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html
deleted file mode 100644
index 0709961..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode, newName, isCancel)</span><span class="path">setting.callback.</span>beforeRename</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点编辑名称结束(Input 失去焦点 或 按下 Enter 键)之后,更新节点名称数据之前的事件回调函数,并且根据返回值确定是否允许更改名称的操作</p>
- <p class="highlight_red">节点进入编辑名称状态后,按 ESC 键可以放弃当前修改,恢复原名称,取消编辑名称状态</p>
- <p class="highlight_red">从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>将要更改名称的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>newName</b><span>String</span></h4>
- <p>修改后的新名称</p>
- <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
- <p>是否取消操作 (v3.5.13+)</p>
- <p class="highlight_red">isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)</p>
- <p class="highlight_red">isCancel = false 表示确认修改操作</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,zTree 将保持名称编辑状态,无法触发 onRename 事件回调函数,并且会导致屏蔽其它事件,直到修改名称使得 beforeRename 返回 true</p>
- <p class="highlight_red">如果返回 false,不会让 input 输入框获取焦点,避免由于警告信息而导致反复触发 beforeRename。 请在关闭提示警告信息后,利用 editName 方法让 input 重新获取焦点。</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止修改的名称的长度小于 5</h4>
- <pre xmlns=""><code>function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
- return newName.length > 5;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeRename: zTreeBeforeRename
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html
deleted file mode 100644
index 1a5bdaa..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRightClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标右键点击之前的事件回调函数,并且根据返回值确定触发 onRightClick 事件回调函数</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标右键点击时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值是 true / false</p>
- <p class="highlight_red">如果返回 false,将仅仅无法触发 onRightClick 事件回调函数,对其他操作无任何影响</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止 onRightClick 事件</h4>
- <pre xmlns=""><code>function zTreeBeforeRightClick(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeRightClick: zTreeBeforeRightClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html
deleted file mode 100644
index c469e11..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span class="path">setting.callback.</span>onAsyncError</h2>
- <h2><span>Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown)</span>&nbsp;</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获异步加载出现异常错误的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>进行异步加载的父节点 JSON 数据对象</p>
- <p class="highlight_red">针对根进行异步加载时,treeNode = null</p>
- <h4 class="topLine"><b>XMLHttpRequest</b><span>String</span></h4>
- <p>标准 XMLHttpRequest 对象,请参考 JQuery API 文档。</p>
- <h4 class="topLine"><b>textStatus</b><span>String</span></h4>
- <p>请求状态:success,error,请参考 JQuery API 文档。</p>
- <h4 class="topLine"><b>errorThrown</b><span>String</span></h4>
- <p>errorThrown 只有当异常发生时才会被传递,请参考 JQuery API 文档。</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 异步加载出现异常后,弹出错误信息</h4>
- <pre xmlns=""><code>function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
- alert(XMLHttpRequest);
-};
-var setting = {
- callback: {
- onAsyncError: zTreeOnAsyncError
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html
deleted file mode 100644
index 081e9d7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, msg)</span><span class="path">setting.callback.</span>onAsyncSuccess</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获异步加载正常结束的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeAsync 方法,且返回 false,将无法触发 onAsyncSuccess / onAsyncError 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>进行异步加载的父节点 JSON 数据对象</p>
- <p class="highlight_red">针对根进行异步加载时,treeNode = null</p>
- <h4 class="topLine"><b>msg</b><span>String / Object</span></h4>
- <p>异步获取的节点数据字符串,主要便于用户调试使用。</p>
- <p class="highlight_red">实际数据类型会受 setting.async.dataType 的设置影响,请参考 JQuery API 文档。</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 异步加载成功后,弹出提示信息</h4>
- <pre xmlns=""><code>function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
- alert(msg);
-};
-var setting = {
- callback: {
- onAsyncSuccess: zTreeOnAsyncSuccess
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html
deleted file mode 100644
index 113eee9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCheck</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 checkbox / radio 被勾选 或 取消勾选的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeCheck 方法,且返回 false,将无法触发 onCheck 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被勾选 或 取消勾选的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次点击 checkbox 或 radio 后, 弹出该节点的 tId、name 以及当前勾选状态的信息</h4>
- <pre xmlns=""><code>function zTreeOnCheck(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
-};
-var setting = {
- callback: {
- onCheck: zTreeOnCheck
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html
deleted file mode 100644
index 1f7a266..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>onClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被点击的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeClick 方法,且返回 false,将无法触发 onClick 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被点击的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
- <p>节点被点击后的选中操作类型,详细看下表</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead><tr><td>clickFlag</td><td title="是否允许多点选中">selectedMulti</td><td title="是否按下 Ctrl 或 Cmd 键">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="节点当前选择状态">isSelected</td><td>选中操作</td></tr></thead>
- <tbody>
- <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>普通选中</td></tr>
- <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>普通选中</td></tr>
- <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>追加选中</td></tr>
- <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>取消选中</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>普通选中</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>普通选中</td></tr>
- <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>普通选中</td></tr>
- <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>取消选中</td></tr>
- </tbody>
- </table>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次点击节点后, 弹出该节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnClick(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onClick: zTreeOnClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html
deleted file mode 100644
index 1c816c2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCollapse</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被折叠的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeCollapse 方法,且返回 false,将无法触发 onCollapse 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被折叠的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次折叠节点后, 弹出该节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnCollapse(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onCollapse: zTreeOnCollapse
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html
deleted file mode 100644
index deb8e62..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onDblClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标双击之后的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeDblClick 方法,且返回 false,将无法触发 onDblClick 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标双击时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次鼠标双击后, 弹出鼠标所在节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnDblClick(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onDblClick: zTreeOnDblClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html
deleted file mode 100644
index efd115b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDrag</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被拖拽的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeDrag 方法,且返回 false,将无法触发 onDragMove 和 onDrag 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>要被拖拽的节点 JSON 数据集合</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次开始进行拖拽节点后, 弹出被拖拽节点的个数信息</h4>
- <pre xmlns=""><code>function zTreeOnDrag(event, treeId, treeNodes) {
- alert(treeNodes.length);
-};
-var setting = {
- callback: {
- onDrag: zTreeOnDrag
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html
deleted file mode 100644
index e6a8dd9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDragMove</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被拖拽过程中移动的事件回调函数</p>
- <p class="highlight_red">主要用于捕获 zTree 节点拖拽到的 DOM,从而操作对应的 DOM。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>被拖拽的节点 treeNodes 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>要被拖拽的节点 JSON 数据集合</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 拖拽节点时,随时输出 当前拖拽到的目标 DOM</h4>
- <pre xmlns=""><code>function zTreeOnDragMove(event, treeId, treeNodes) {
- console.log(event.target);
-};
-var setting = {
- callback: {
- onDragMove: zTreeOnDragMove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html
deleted file mode 100644
index c6773a8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>onDrop</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点拖拽操作结束的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeDrop 方法,且返回 false,将无法触发 onDrop 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>目标节点 targetNode 所在 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>被拖拽的节点 JSON 数据集合</p>
- <p class="highlight_red">如果拖拽操作为 移动,treeNodes 是当前被拖拽节点的数据集合。</p>
- <p class="highlight_red">如果拖拽操作为 复制,treeNodes 是复制后 clone 得到的新节点数据。</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>成为 treeNodes 拖拽结束的目标节点 JSON 数据对象。</p>
- <p class="highlight_red">如果拖拽成为根节点,则 targetNode = null</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>指定移动到目标节点的相对位置</p>
- <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p>
- <p class="highlight_red">如果 moveType = null,表明拖拽无效</p>
- <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
- <p>拖拽节点操作是 复制 或 移动</p>
- <p class="highlight_red">true:复制;false:移动</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次拖拽操作结束后, 弹出该被拖拽节点的个数以及目标节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
- alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
-};
-var setting = {
- callback: {
- onDrop: zTreeOnDrop
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html
deleted file mode 100644
index 791c5f6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点被展开的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeExpand 方法,且返回 false,将无法触发 onExpand 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被展开的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次展开节点后, 弹出该节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onExpand: zTreeOnExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html
deleted file mode 100644
index bc9d0ea..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseDown</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标按键按下后的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeMouseDown 方法,且返回 false,将无法触发 onMouseDown 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标按键按下时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次鼠标按键按下后, 弹出鼠标所在节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnMouseDown(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onMouseDown: zTreeOnMouseDown
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html
deleted file mode 100644
index a969fef..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标按键松开后的事件回调函数</p>
- <p class="highlight_red">如果设置了 setting.callback.beforeMouseUp 方法,且返回 false,将无法触发 onMouseUp 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标按键松开时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次鼠标按键松开后, 弹出鼠标所在节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onMouseUp: zTreeOnMouseUp
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html
deleted file mode 100644
index 2ebaee6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onNodeCreated</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点生成 DOM 后的事件回调函数</p>
- <p class="highlight_red">v3.x 采用了延迟加载技术,因此对于父节点未展开的子节点来说,初始化后是不会触发此回调函数,直到其父节点被展开</p>
- <p class="highlight_red">大数据量的节点加载请注意:不设置 onNodeCreated,可以提升一部分初始化性能</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>生成 DOM 完毕的节点的 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 创建节点 DOM 后, 弹出该节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnNodeCreated(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onNodeCreated: zTreeOnNodeCreated
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html
deleted file mode 100644
index e7e625d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRemove</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获删除节点之后的事件回调函数。</p>
- <p class="highlight_red">如果用户设置了 beforeRemove 回调函数,并返回 false,将无法触发 onRemove 事件回调函数。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>将要删除的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 删除节点时,弹出被删除的节点的 tId 以及 name 信息</h4>
- <pre xmlns=""><code>function zTreeOnRemove(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-}
-var setting = {
- callback: {
- onRemove: zTreeOnRemove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html
deleted file mode 100644
index f225463..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, isCancel)</span><span class="path">setting.callback.</span>onRename</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获节点编辑名称结束之后的事件回调函数。</p>
- <p>1、节点进入编辑名称状态,并且修改节点名称后触发此回调函数。<span class="highlight_red">如果用户设置了 beforeRename 回调函数,并返回 false,将无法触发 onRename 事件回调函数。</span></p>
- <p>2、<span class="highlight_red">如果通过直接修改 treeNode 的数据,并且利用 updateNode 方法更新,是不会触发此回调函数的。</span></p>
- <p class="highlight_red">3、从 v3.5.13 开始,取消编辑状态也会触发此回调,根据 isCancel 参数判断</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>被修改名称的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
- <p>是否取消操作 (v3.5.13+)</p>
- <p class="highlight_red">isCancel = true 表示取消编辑操作(按下 ESC 或 使用 cancelEditName 方法)</p>
- <p class="highlight_red">isCancel = false 表示确认修改操作</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 修改名称后,弹出被修改名称的节点的 tId 以及 name 信息</h4>
- <pre xmlns=""><code>function zTreeOnRename(event, treeId, treeNode, isCancel) {
- alert(treeNode.tId + ", " + treeNode.name);
-}
-var setting = {
- callback: {
- onRename: zTreeOnRename
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html
deleted file mode 100644
index d51c68d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRightClick</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于捕获 zTree 上鼠标右键点击之后的事件回调函数</p>
- <p class="highlight_red">1、如果设置了 setting.callback.beforeRightClick 方法,且返回 false,将无法触发 onRightClick 事件回调函数。</p>
- <p class="highlight_red">2、只要将 function 的引用赋给 onRightClick 属性,则右键点击 zTree 时,将屏蔽浏览器的右键菜单。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>event</b><span>js event 对象</span></h4>
- <p>标准的 js event 对象</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>鼠标右键点击时所在节点的 JSON 数据对象</p>
- <p class="highlight_red">如果不在节点上,则返回 null</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 每次鼠标右键点击后, 弹出鼠标所在节点的 tId、name 的信息</h4>
- <pre xmlns=""><code>function zTreeOnRightClick(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onRightClick: zTreeOnRightClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html
deleted file mode 100644
index d1efd77..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置自动关联勾选时是否触发 beforeCheck / onCheck 事件回调函数。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]</span></p>
- <p class="highlight_red">1、如果设置 setting.check.chkboxType = { "Y": "", "N": "" },将不会有任何自动关联勾选的操作。</p>
- <p class="highlight_red">2、如果开启触发,对于节点较多的树将会影响性能,因为所有被联动勾选的操作都会触发事件回调函数,请根据需要决定是否使用此功能。</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 触发 / 不触发 事件回调函数</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要触发自动关联勾选操作</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- autoCheckTrigger: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html
deleted file mode 100644
index 8af1c2c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>chkDisabledInherit</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>当父节点设置 chkDisabled = true 时,设置子节点是否自动继承 chkDisabled = true 。<span class="highlight_red">[setting.check.enable = true 时生效]</span></p>
- <p class="highlight_red">1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 setChkDisabled 方法单个节点设置。</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示 新加入子节点时,自动继承父节点 chkDisabled = true 的属性。</p>
- <p> false 表示 新加入子节点时,不继承父节点 chkDisabled 的属性。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要子节点自动继承 chkDisabled = true</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkDisabledInherit: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html
deleted file mode 100644
index 9706c13..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>勾选框类型(checkbox 或 radio)<span class="highlight_red">[setting.check.enable = true 时生效]</span></p>
- <p>默认值:"checkbox"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>chkStyle = "checkbox" 时,显示 checkbox 选择框,<span class="highlight_red">setting.check.chkboxType</span> 属性有效。
-<br/>chkStyle = "radio" 时,显示 radio 选择框, <span class="highlight_red">setting.check.radioType</span> 属性有效。</p>
- <p class="highlight_red">请注意大小写,不要改变</p>
- </div>
- <h3>checkbox 状态说明</h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p><button type="button" class="chk checkbox_false_full"></button>未勾选;<span class="highlight_red">如果是父节点,则无子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_false_full_focus"></button></p>
- <p><button type="button" class="chk checkbox_false_part"></button>未勾选;(只有父节点存在此状态)<span class="highlight_red">存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_false_part_focus"></button></p>
- <p><button type="button" class="chk checkbox_true_full"></button>被勾选;<span class="highlight_red">如果是父节点,则全部子节点都被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_true_full_focus"></button></p>
- <p><button type="button" class="chk checkbox_true_part"></button>被勾选;(只有父节点存在此状态)<span class="highlight_red">且部分或无子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk checkbox_true_part_focus"></button></p>
- </div>
- </div>
- <h3>radio 状态说明</h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p><button type="button" class="chk radio_false_full"></button>未勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_false_full_focus"></button></p>
- <p><button type="button" class="chk radio_false_part"></button>未勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_false_part_focus"></button></p>
- <p><button type="button" class="chk radio_true_full"></button>被勾选;<span class="highlight_red">如果是父节点,则没有子节点被勾选</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_true_full_focus"></button></p>
- <p><button type="button" class="chk radio_true_part"></button>被勾选;(只有父节点存在此状态)<span class="highlight_red">且存在被勾选的子节点</span>。鼠标移到该节点上显示为:<button type="button" class="chk radio_true_part_focus"></button></p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置选择框为 radio</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "radio"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html
deleted file mode 100644
index da06b6c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>勾选 checkbox 对于父子节点的关联关系。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时生效]</span></p>
- <p>默认值:{ "Y": "ps", "N": "ps" }</p>
- </div>
- </div>
- <h3>JSON 格式说明</h3>
- <div class="desc">
- <p>Y 属性定义 checkbox 被勾选后的情况;
-<br/>N 属性定义 checkbox 取消勾选后的情况;
-<br/>"p" 表示操作会影响父级节点;
-<br/>"s" 表示操作会影响子级节点。</p>
- <p class="highlight_red">请注意大小写,不要改变</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. checkbox 勾选操作,只影响父级节点;取消勾选操作,只影响子级节点</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "checkbox",
- chkboxType: { "Y": "p", "N": "s" }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html
deleted file mode 100644
index 8b1387e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>enable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 的节点上是否显示 checkbox / radio</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 不显示 复选框或单选框</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要显示 checkbox</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html
deleted file mode 100644
index caf9902..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>nocheckInherit</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>当父节点设置 nocheck = true 时,设置子节点是否自动继承 nocheck = true 。<span class="highlight_red">[setting.check.enable = true 时生效]</span></p>
- <p class="highlight_red">1、只使用于初始化节点时,便于批量操作。 对于已存在的节点请利用 updateNode 方法单个节点设置。</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示 新加入子节点时,自动继承父节点 nocheck = true 的属性。</p>
- <p> false 表示 新加入子节点时,不继承父节点 nocheck 的属性。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要子节点自动继承 nocheck = true</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- nocheckInherit: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html
deleted file mode 100644
index 19f84ca..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.check.</span>radioType</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>radio 的分组范围。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "radio" 时生效]</span></p>
- <p>默认值:"level"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>radioType = "level" 时,在每一级节点范围内当做一个分组。
-<br/>radioType = "all" 时,在整棵树范围内当做一个分组。</p>
- <p class="highlight_red">请注意大小写,不要改变</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 radio 的判别规则为整棵树内</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "radio",
- radioType: "all"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html
deleted file mode 100644
index af3a721..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 的节点叶子节点属性锁,是否始终保持 isParent = false</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 锁定 / 不锁定 叶子节点属性</p>
- <p class="highlight_red">如果设置为 true,则所有 isParent = false 的节点,都无法添加子节点。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要锁定叶子节点状态</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- keep: {
- leaf: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html
deleted file mode 100644
index c4975df..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 的节点父节点属性锁,是否始终保持 isParent = true</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 锁定 / 不锁定 父节点属性</p>
- <p class="highlight_red">如果设置为 true,则所有 isParent = true 的节点,即使该节点的子节点被全部删除或移走,依旧保持父节点状态。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 需要锁定父节点状态</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- keep: {
- parent: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html
deleted file mode 100644
index ac9fdc1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>checked</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点数据中保存 check 状态的属性名称。</p>
- <p>默认值:"checked"</p>
- <p class="highlight_red">请勿与 zTree 节点数据的其他参数冲突,例如:checkedOld</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 显示节点时,将 treeNode 的 isChecked 属性当做节点名称</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- checked: "isChecked"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html
deleted file mode 100644
index 66a49a7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>children</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点数据中保存子节点数据的属性名称。</p>
- <p>默认值:"children"</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 显示节点时,将 treeNode 的 nodes 属性当做节点名称</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- children: "nodes"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html
deleted file mode 100644
index c25d250..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>name</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点数据保存节点名称的属性名称。</p>
- <p>默认值:"name"</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 显示节点时,将 treeNode 的 ename 属性当做节点名称</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- name: "ename"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html
deleted file mode 100644
index 43e6855..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>title</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点数据保存节点提示信息的属性名称。<span class="highlight_red">[setting.view.showTitle = true 时生效]</span></p>
- <p class="highlight_red">如果设置为 "" ,则自动与 setting.data.key.name 保持一致,避免用户反复设置</p>
- <p>默认值:""</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 显示节点时,将 treeNode 的 fullName 属性当做节点名称</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- title: "fullName"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html
deleted file mode 100644
index e534d98..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>url</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点数据保存节点链接的目标 URL 的属性名称。</p>
- <p class="highlight_red">特殊用途:当后台数据只能生成 url 属性,又不想实现点击节点跳转的功能时,可以直接修改此属性为其他不存在的属性名称</p>
- <p>默认值:"url"</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 显示节点时,将 treeNode 的 xUrl 属性当做节点链接的目标 URL</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- url: "xUrl"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html
deleted file mode 100644
index 65bd407..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.simpleData.</span>enable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>确定 zTree 初始化时的节点数据、异步加载时的节点数据、或 <span class="highlight_red">addNodes</span> 方法中输入的 newNodes 数据是否采用简单数据模式 (Array)</p>
- <p>不需要用户再把数据库中取出的 List 强行转换为复杂的 JSON 嵌套格式</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 使用 / 不使用 简单数据模式</p>
- <p class="highlight_red">如果设置为 true,请务必设置 setting.data.simpleData 内的其他参数: idKey / pIdKey / rootPId,并且让数据满足父子关系。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 使用简单 Array 格式的数据</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html
deleted file mode 100644
index 81129e9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.simpleData.</span>idKey</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点数据中保存唯一标识的属性名称。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p>
- <p>默认值:"id"</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 使用简单 Array 格式的数据</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html
deleted file mode 100644
index d434bc3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.simpleData.</span>pIdKey</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点数据中保存其父节点唯一标识的属性名称。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p>
- <p>默认值:"pId"</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 使用简单 Array 格式的数据</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html
deleted file mode 100644
index 8cff82d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Number</span><span class="path">setting.data.simpleData.</span>rootPId</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于修正根节点父节点数据,即 pIdKey 指定的属性值。<span class="highlight_red">[setting.data.simpleData.enable = true 时生效]</span></p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 使用简单 Array 格式的数据</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html
deleted file mode 100644
index 126b8a8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>autoExpandTrigger</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽时父节点自动展开是否触发 onExpand 事件回调函数。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 触发 / 不触发 onExpand 事件回调函数。</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置拖拽时父节点自动展开触发 onExpand 事件回调函数</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- autoExpandTrigger: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html
deleted file mode 100644
index df78339..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>autoOpenTime</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽时父节点自动展开的延时间隔。 (单位:ms)<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:500</p>
- <p class="highlight_red">请根据自己的需求适当调整此值</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置拖拽到父节点上立刻自动展开</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- autoOpenTime: 0
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html
deleted file mode 100644
index 1d4dd68..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMax</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽节点成为根节点时的 Tree 内边界范围 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:10</p>
- <p class="highlight_red">请根据自己的需求适当调整此值</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 更改拖拽操作节点成为根节点时的 Tree 内边界范围为20px</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- borderMax: 20
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html
deleted file mode 100644
index 463eb2b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMin</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽节点成为根节点时的 Tree 外边界范围 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:-5</p>
- <p class="highlight_red">请根据自己的需求适当调整此值</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 更改拖拽操作节点成为根节点时的 Tree 外边界范围为10px</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- borderMin: -10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html
deleted file mode 100644
index 06679e1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>inner</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽到目标节点时,设置是否允许成为目标节点的子节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p>
- <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、next 一起使用,才能实现完整功能。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 允许 / 不允许 成为目标节点的子节点</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>被拖拽的节点 JSON 数据集合</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>拖拽时的目标节点 JSON 数据对象</p>
- <p class="highlight_red">如果拖拽的节点要成为根节点,则 targetNode = null</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止拖拽成为目标节点的子节点</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: true,
- inner: false
- }
- }
-};
-......</code></pre>
- <h4>2. 禁止拖拽成为根节点的子节点</h4>
- <pre xmlns=""><code>function canInner(treeId, nodes, targetNode) {
- return !(targetNode && targetNode.level === 0);
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: true,
- inner: canInner
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html
deleted file mode 100644
index cff17af..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽时, 设置是否允许复制节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>规则说明</h3>
- <div class="desc">
- <p>1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move</p>
- <p>2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy</p>
- <p>3、isCopy = false; isMove = true 时,所有拖拽操作都是 move</p>
- <p>4、isCopy = false; isMove = false 时,禁止拖拽操作</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置所有拖拽操作都是 copy</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- isCopy: true,
- isMove: false
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html
deleted file mode 100644
index 7fdadd1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽时, 设置是否允许移动节点。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>规则说明</h3>
- <div class="desc">
- <p>1、isCopy = true; isMove = true 时,拖拽节点按下 Ctrl 或 Cmd 键表示 copy; 否则为 move</p>
- <p>2、isCopy = true; isMove = false 时,所有拖拽操作都是 copy</p>
- <p>3、isCopy = false; isMove = true 时,所有拖拽操作都是 move</p>
- <p>4、isCopy = false; isMove = false 时,禁止拖拽操作</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置所有拖拽操作都是 move</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- isCopy: false,
- isMove: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html
deleted file mode 100644
index 3e7a3d2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>maxShowNodeNum</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽多个兄弟节点时,浮动图层中显示的最大节点数。 多余的节点用...代替。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值:5</p>
- <p class="highlight_red">请根据自己的需求适当调整此值</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置拖拽时最多可显示10个节点</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- maxShowNodeNum: 10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html
deleted file mode 100644
index 904be41..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>minMoveSize</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>判定是否拖拽操作的最小位移值 (单位:px)。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p class="highlight_red">根据自己的需求可适当调整此值,如果太小容易导致点击鼠标时误操作进行拖拽</p>
- <p>默认值:5</p>
- </div>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 更改拖拽操作启动位移值为10px</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- minMoveSize: 10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html
deleted file mode 100644
index ffc874a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>next</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽到目标节点时,设置是否允许移动到目标节点后面的操作。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p>
- <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 prev、inner 一起使用,才能实现完整功能。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 允许 / 不允许 移动到目标节点后面</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>被拖拽的节点 JSON 数据集合</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>拖拽时的目标节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止拖拽到节点后面的操作</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: false,
- inner: true
- }
- }
-};
-......</code></pre>
- <h4>2. 禁止拖拽到父节点后面的操作</h4>
- <pre xmlns=""><code>function canNext(treeId, nodes, targetNode) {
- return !targetNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: canNext,
- inner: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html
deleted file mode 100644
index bd05361..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html
+++ /dev/null
@@ -1,58 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>prev</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>拖拽到目标节点时,设置是否允许移动到目标节点前面的操作。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p class="highlight_red">拖拽目标是 根 的时候,不触发 prev 和 next,只会触发 inner</p>
- <p class="highlight_red">此功能主要作用是对拖拽进行适当限制(辅助箭头),需要结合 next、inner 一起使用,才能实现完整功能。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 允许 / 不允许 移动到目标节点前面</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控(多棵树拖拽时,是目标节点所在树的 treeId)</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>被拖拽的节点 JSON 数据集合</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>拖拽时的目标节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 禁止拖拽到节点前面的操作</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: false,
- next: true,
- inner: true
- }
- }
-};
-......</code></pre>
- <h4>2. 禁止拖拽到父节点前面的操作</h4>
- <pre xmlns=""><code>function canPrev(treeId, nodes, targetNode) {
- return !targetNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: canPrev,
- next: true,
- inner: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html
deleted file mode 100644
index 30784f3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.</span>editNameSelectAll</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点编辑名称 input 初次显示时,设置 txt 内容是否为全选状态。 <span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示 全选状态</p>
- <p> false 表示 不是全选状态,光标默认在最后</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置节点编辑名称 input 初次显示时,txt内容为全选状态</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- editNameSelectAll: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html
deleted file mode 100644
index de1afea..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否处于编辑状态</p>
- <p class="highlight_red">请在初始化之前设置,初始化后需要改变编辑状态请使用 zTreeObj.setEditable() 方法</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 可以 / 不可以 编辑</p>
- </div>
- <h3>编辑状态规则说明</h3>
- <div class="desc">
- <p>1、点击节点时,不会打开 <span class="highlight_red">node.url</span> 指定的 URL。
-<br/>2、全面支持 编辑 与 异步加载 状态共存。
-<br/>3、可以对节点进行拖拽,且支持多棵树之间进行拖拽。
-<br/>4、支持拖拽时 复制/移动 节点。(参考: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>)
-<br/>5、可以通过编辑按钮修改 name 属性。
-<br/>6、可以通过删除按钮删除节点。
-<br/>
-</p>
- <p class="highlight_red">请注意大小写,不要改变</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 进入编辑状态</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html
deleted file mode 100644
index 55257da..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>删除按钮的 Title 辅助信息。<span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true 时生效]</span></p>
- <p>默认值:"remove"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>鼠标移动到 删除按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置删除按钮 Title 信息的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>String</span></h4>
- <p>返回值同 String 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置删除按钮的 Title 辅助信息为: "删除节点"</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRemoveBtn: true,
- removeTitle: "删除节点"
- }
-};
-......</code></pre>
- <h4>2. 设置父节点删除按钮的 Title 辅助信息为: "删除父节点"</h4>
- <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) {
- return treeNode.isParent ? "删除父节点":"删除叶子节点";
-}
-var setting = {
- edit: {
- enable: true,
- showRemoveBtn: true,
- removeTitle: setRemoveTitle
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html
deleted file mode 100644
index 2dfbcca..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>renameTitle</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>编辑名称按钮的 Title 辅助信息。<span class="highlight_red">[setting.edit.enable = true & setting.edit.showRenameBtn = true 时生效]</span></p>
- <p>默认值:"rename"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>设置鼠标移动到 编辑名称按钮 上时,浏览器自动弹出的辅助信息内容,可根据用户需要自行修改</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置编辑名称按钮 Title 信息的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>String</span></h4>
- <p>返回值同 String 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置编辑名称按钮的 Title 辅助信息为: "编辑节点名称"</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRenameBtn: true,
- renameTitle: "编辑节点名称"
- }
-};
-......</code></pre>
- <h4>2. 设置父节点编辑名称按钮的 Title 辅助信息为: "编辑父节点名称"</h4>
- <pre xmlns=""><code>function setRenameTitle(treeId, treeNode) {
- return treeNode.isParent ? "编辑父节点名称":"编辑叶子节点名称";
-}
-var setting = {
- edit: {
- enable: true,
- showRenameBtn: true,
- renameTitle: setRenameTitle
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html
deleted file mode 100644
index db62053..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRemoveBtn</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置是否显示删除按钮。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>当点击某节点的删除按钮时:</p>
- <p>1、首先触发 <span class="highlight_red">setting.callback.beforeRemove</span> 回调函数,用户可判定是否进行删除操作。</p>
- <p>2、如果未设置 beforeRemove 或 beforeRemove 返回 true,则删除节点并触发 <span class="highlight_red">setting.callback.onRemove</span> 回调函数。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 隐藏 删除按钮</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置是否显示删除按钮的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 不显示删除按钮</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRemoveBtn: false
- }
-};
-......</code></pre>
- <h4>2. 设置所有的父节点不显示删除按钮</h4>
- <pre xmlns=""><code>function setRemoveBtn(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- showRemoveBtn: setRemoveBtn
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html
deleted file mode 100644
index 33dd37a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRenameBtn</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置是否显示编辑名称按钮。<span class="highlight_red">[setting.edit.enable = true 时生效]</span></p>
- <p>当点击某节点的编辑名称按钮时:</p>
- <p>1、进入节点编辑名称状态。</p>
- <p>2、编辑名称完毕(Input 失去焦点 或 按下 Enter 键),会触发 <span class="highlight_red">setting.callback.beforeRename</span> 回调函数,用户可根据自己的规则判定是否允许修改名称。</p>
- <p>3、如果 beforeRename 返回 false,则继续保持编辑名称状态,直到名称符合规则位置 (按下 ESC 键可取消编辑名称状态,恢复原名称)。</p>
- <p>4、如果未设置 beforeRename 或 beforeRename 返回 true,则结束节点编辑名称状态,更新节点名称,并触发 <span class="highlight_red">setting.callback.onRename</span> 回调函数。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 隐藏 编辑名称按钮</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置是否显示编辑名称按钮的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 不显示编辑名称按钮</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRenameBtn: false
- }
-};
-......</code></pre>
- <h4>2. 设置所有的父节点不显示编辑名称按钮</h4>
- <pre xmlns=""><code>function setRenameBtn(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- showRenameBtn: setRenameBtn
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html
deleted file mode 100644
index 819743e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.</span>treeId</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 的唯一标识,初始化后,等于 用户定义的 zTree 容器的 id 属性值。</p>
- <p class="highlight_red">请勿进行初始化 或 修改,属于内部参数。</p>
- </div>
- </div>
-
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html
deleted file mode 100644
index 37684a1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Object</span><span class="path">setting.</span>treeObj</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 容器的 jQuery 对象,主要功能:便于操作。</p>
- <p class="highlight_red">请勿进行初始化 或 修改,属于内部参数。</p>
- </div>
- </div>
-
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html
deleted file mode 100644
index 0a508ac..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addDiyDom</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于在节点上固定显示用户自定义控件</p>
- <p class="highlight_red">1. 大数据量的节点加载请注意:在 addDiyDom 中针对每个节点 查找 DOM 对象并且添加新 DOM 控件,肯定会影响初始化性能;如果不是必须使用,建议不使用此功能</p>
- <p class="highlight_red">2. 属于高级应用,使用时请确保对 zTree 比较了解。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要显示自定义控件的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置节点后面显示一个按钮</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addDiyDom: addDiyDom
- }
-};
-function addDiyDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt; &lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
deleted file mode 100644
index f073e79..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮</p>
- <p class="highlight_red">请务必与 <span class="highlight_red">setting.view.removeHoverDom</span> 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要显示自定义控件的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置鼠标移到节点上,在后面显示一个按钮</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addHoverDom: addHoverDom,
- removeHoverDom: removeHoverDom,
- ......
- }
-};
-function addHoverDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt;&nbsp;&lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-function removeHoverDom(treeId, treeNode) {
- $("#diyBtn_"+treeNode.id).unbind().remove();
- $("#diyBtn_space_" +treeNode.id).unbind().remove();
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html
deleted file mode 100644
index 4890f78..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>autoCancelSelected</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。</p>
- <p class="highlight_red">如果不需要此功能,请设置为 false。</p>
- <p>默认值: true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 支持 / 不支持 配合 Ctrl 或 Cmd 键进行取消节点选择的操作</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 禁止配合 Ctrl 或 Cmd 键进行取消节点选择的操作</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- autoCancelSelected: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html
deleted file mode 100644
index 5f3db96..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>双击节点时,是否自动展开父节点的标识</p>
- <p>默认值: true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示双击节点 切换 / 不切换 展开状态</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置是否双击切换展开状态的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 取消默认双击展开父节点的功能</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- dblClickExpand: false
- }
-};
-......</code></pre>
- <h4>2. 设置 zTree 仅仅 level=0 的父节点取消双击展开的功能</h4>
- <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) {
- return treeNode.level > 0;
-};
-var setting = {
- view: {
- dblClickExpand: dblClickExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html
deleted file mode 100644
index 3b799c3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 节点展开、折叠时的动画速度,设置方法同 JQuery 动画效果中 speed 参数。</p>
- <p class="highlight_red">IE6 下会自动关闭动画效果,以保证 zTree 的操作速度</p>
- <p>默认值:"fast"</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>三种预定速度之一的字符串("slow", "normal", or "fast")</p>
- <p class="highlight_red">设置为 "" 时,不显示动画效果</p>
- </div>
- <h3>Number 格式说明</h3>
- <div class="desc">
- <p>表示动画时长的毫秒数值 (如:1000)</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置为慢速显示动画效果</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- expandSpeed: "slow"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html
deleted file mode 100644
index 54efb1b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON / Function(treeId, treeNode)</span><span class="path">setting.view.</span>fontCss</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>个性化文字样式,只针对 zTree 在节点上显示的&lt;A&gt;对象。</p>
- <p>默认值:{}</p>
- </div>
- </div>
- <h3>JSON 格式说明</h3>
- <div class="desc">
- <p>JSON 格式为 JQuery css方法中的 JSON 对象格式,例如:<span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置自定义样式的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>返回值同 JSON 格式的数据,例如:<span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 不修改CSS,设置全部节点 name 显示为红色</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- fontCss : {color:"red"}
- }
-};</code></pre>
- <h4>2. 设置 level=0 的节点 name 显示为红色</h4>
- <pre xmlns=""><code>function setFontCss(treeId, treeNode) {
- return treeNode.level == 0 ? {color:"red"} : {};
-};
-var setting = {
- view: {
- fontCss: setFontCss
- }
-};</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html
deleted file mode 100644
index a1d916c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 name 属性是否支持 HTML 脚本</p>
- <p class="highlight_red">如果允许 HTML 脚本,请根据自己的需求做校验,避免出现 js 注入等安全问题。</p>
- <p>默认值: false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 支持 / 不支持 HTML 脚本</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 name 属性支持 HTML 脚本</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- nameIsHTML: true
- }
-};
-var node = {"name":"&lt;font color='red'&gt;test&lt;/font&gt;"};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html
deleted file mode 100644
index bb1a9aa..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>removeHoverDom</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于当鼠标移出节点时,隐藏用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮</p>
- <p class="highlight_red">请务必与 <span class="highlight_red">addHoverDom</span> 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要隐藏自定义控件的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置鼠标移到节点上,在后面显示一个按钮</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addHoverDom: addHoverDom,
- removeHoverDom: removeHoverDom,
- ......
- }
-};
-function addHoverDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt;&nbsp;&lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-function removeHoverDom(treeId, treeNode) {
- $("#diyBtn_"+treeNode.id).unbind().remove();
- $("#diyBtn_space_" +treeNode.id).unbind().remove();
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html
deleted file mode 100644
index 2cc65a2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>selectedMulti</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置是否允许同时选中多个节点。</p>
- <p>默认值: true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 支持 / 不支持 同时选中多个节点</p>
- <p class="highlight_red">1、设置为 true时,按下 Ctrl 或 Cmd 键可以选中多个节点</p>
- <p class="highlight_red">2、设置为 true / false 都不影响按下 Ctrl 或 Cmd 键可以让已选中的节点取消选中状态( 取消选中状态可以参考 setting.view.autoCancelSelected )</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 禁止多点同时选中的功能</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- selectedMulti: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html
deleted file mode 100644
index ebe423c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showIcon</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否显示节点的图标。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 隐藏 图标</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置是否显示图标的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置 zTree 不显示图标</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showIcon: false
- }
-};
-......</code></pre>
- <h4>2. 设置 zTree 仅仅 level=2 的节点不显示图标</h4>
- <pre xmlns=""><code>function showIconForTree(treeId, treeNode) {
- return treeNode.level != 2;
-};
-var setting = {
- view: {
- showIcon: showIconForTree
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html
deleted file mode 100644
index 02ab5eb..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>showLine</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否显示节点之间的连线。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 不显示 连线</p>
- </div>
- <h3>setting 举例</h3>
- <h4>1. 设置 zTree 不显示节点之间的连线</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showLine: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html
deleted file mode 100644
index 5bcb860..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showTitle</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否显示节点的 title 提示信息(即节点 DOM 的 title 属性)。</p>
- <p class="highlight_red">请务必与 <span class="highlight_red">setting.data.key.title</span> 同时使用。</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 显示 / 隐藏 提示信息</p>
- <p class="highlight_red">如果 setting.view.showTitle = true & setting.data.key.title = '',zTree 会自动使用 setting.data.key.name 指定的节点名称当做 title</p>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要设置是否显示提示信息的节点 JSON 数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值同 Boolean 格式的数据</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置 zTree 不显示提示信息</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showTitle: false
- }
-};
-......</code></pre>
- <h4>2. 设置 zTree 仅仅 level=2 的节点不显示提示信息</h4>
- <pre xmlns=""><code>function showTitleForTree(treeId, treeNode) {
- return treeNode.level != 2;
-};
-var setting = {
- view: {
- showTitle: showTitleForTree
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html
deleted file mode 100644
index c22a8c0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>txtSelectedEnable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 是否允许可以选择 zTree DOM 内的文本。</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true / false 分别表示 允许 / 不允许 选择 zTree Dom 内的文本</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置 zTree 允许选择文本</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- txtSelectedEnable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html
deleted file mode 100644
index fa37899..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于设置节点的子节点的 checkBox / radio 的半选状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">v3.x 针对节点数据对象提供 treeNode.getCheckStatus() 方法获取标准的半选状态</p>
- <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p>
- <p>默认值:true</p>
- </div>
- </div>
- <h3>Number 格式说明</h3>
- <div class="desc">
- <p>规则如下:</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
- <tr><td>treeNode.check_Child_State</td><td>勾选状态说明</td></tr>
- </thead>
- <tbody>
- <tr><td>-1</td><td>不存在子节点 或 子节点全部设置为 nocheck = true</td></tr>
- <tr><td>0</td><td>无 子节点被勾选</td></tr>
- <tr><td>1</td><td>部分 子节点被勾选</td></tr>
- <tr><td>2</td><td>全部 子节点被勾选</td></tr>
- </tbody>
- </table>
- <br/>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
- <tr><td>treeNode.check_Child_State</td><td>勾选状态说明</td></tr>
- </thead>
- <tbody>
- <tr><td>-1</td><td>不存在子节点 或 子节点全部设置为 nocheck = true</td></tr>
- <tr><td>0</td><td>无 子节点被勾选</td></tr>
- <tr><td>2</td><td>有 子节点被勾选</td></tr>
- </tbody>
- </table>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html
deleted file mode 100644
index 785aec9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>check_Focus</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于设置节点的 checkBox / radio 的 focus 状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示当前鼠标移动到输入框内</p>
- <p>false 表示当前鼠标移动到输入框外</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html
deleted file mode 100644
index 049d6ba..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>checked</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点的 checkBox / radio 的 勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p>
- <p class="highlight_red">1、如果不使用 checked 属性设置勾选状态,请修改 setting.data.key.checked </p>
- <p class="highlight_red">2、建立 treeNode 数据时设置 treeNode.checked = true 可以让节点的输入框默认为勾选状态</p>
- <p class="highlight_red">3、修改节点勾选状态,可以使用 treeObj.checkNode / checkAllNodes / updateNode 方法,具体使用哪种请根据自己的需求而定</p>
- <p class="highlight_red">4、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示节点的输入框被勾选</p>
- <p>false 表示节点的输入框未勾选</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 初始化的数据设置 默认为勾选状态</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1", checked:true },
-{ "id":2, "name":"test2", checked:true }
-]</code></pre>
- <h4>2. 获取第一个根节点的勾选状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var checked = treeObj.getNodes()[0].checked;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html
deleted file mode 100644
index cab717e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点的 checkBox / radio 在初始化时的 勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p>
- <p class="highlight_red">1、zTree 初始化节点数据时会对此属性进行赋值,因此请勿对此属性初始化</p>
- <p class="highlight_red">2、如需配合 zTreeObj.getChangeCheckedNodes 方法实现特殊功能,可以根据需求在使用中自行修改 checkedOld 数据</p>
- <p>默认值:checked的初始化值</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示节点初始化时 输入框被勾选</p>
- <p>false 表示节点初始化时 输入框未勾选</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 获取第一个根节点的初始勾选状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var checkedOld = treeObj.getNodes()[0].checkedOld;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html
deleted file mode 100644
index 4bab835..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(JSON)</span><span class="path">treeNode.</span>children</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点的子节点数据集合。</p>
- <p class="highlight_red">1、如果不使用 children 属性保存子节点数据,请修改 setting.data.key.children </p>
- <p class="highlight_red">2、异步加载时,对于设置了 isParent = true 的节点,在展开时将进行异步加载</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>Array(JSON) 格式说明</h3>
- <div class="desc">
- <p>标准的 JSON 数据对象</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 初始化的标准嵌套格式的 JSON 数据对象</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1",
- children: [
- { "id":3, "name":"test3"},
- { "id":4, "name":"test4"},
- { "id":5, "name":"test5"}
- ]
-},
-{ "id":2, "name":"test2" }
-]</code></pre>
- <h4>2. 获取第一个根节点的子节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes()[0].children;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html
deleted file mode 100644
index e6bb032..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>1、设置节点的 checkbox / radio 是否禁用 <span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- <p class="highlight_red">3、请勿对已加载的节点修改此属性,禁止 或 取消禁止 请使用 setChkDisabled() 方法</p>
- <p class="highlight_red">4、初始化时,如果需要子孙节点继承父节点的 chkDisabled 属性,请设置 setting.check.chkDisabledInherit 属性</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p class="highlight_red">true 表示此节点的 checkbox / radio 被禁用。</p>
- <p class="highlight_red">false 表示此节点的 checkbox / radio 可以使用。</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 禁用节点 checkbox / radio </h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "checked":true, "chkDisabled":true},
- { "id":2, "name":"test2", "chkDisabled":true},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html
deleted file mode 100644
index 833c678..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>click</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>最简单的 click 事件操作。相当于 onclick="..." 的内容。 如果操作较复杂,请使用 onClick 事件回调函数。</p>
- <p class="highlight_red">由于 IE 对于 onclick 和 click事件共存时的处理与其他浏览器不同,所以请不要利用此参数控制是否允许跳转的操作(例如:treeNode.click = "return false;")。如有类似需求,请不要使用 url 属性设置网址,同时利用 onClick 回调函数控制跳转。</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>标准 javascript 语法, 例如:alert("test"); 等</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置某节点点击时,弹出信息框</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html
deleted file mode 100644
index b2fb0d9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>?</span><span class="path">treeNode.</span>* DIY *</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于保存节点的其他自定义数据信息,不要与 zTree 使用的属性相同即可,用户可随意设定。</p>
- </div>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置节点的备用英文名称</h4>
- <pre xmlns=""><code>var node = { "id":1, "name":"test1", "ename":"test eName"};</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html
deleted file mode 100644
index 51162b8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>editNameFlag</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于记录节点是否处于编辑名称状态。<span class="highlight_red">[setting.edit.enable = true 时有效]</span></p>
- <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示节点处于编辑名称状态</p>
- <p>false 表示节点未处于编辑名称状态</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html
deleted file mode 100644
index fc20eac..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getCheckStatus</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取节点 checkbox / radio 半勾选状态。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>JSON</span></h4>
- <pre xmlns=""><code>{
- checked: true, //等同于 treeNode.checked
- half: true //规则见下表
-}</code></pre>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
- <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
- </thead>
- <tbody>
- <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>0</td><td>false</td><td>true</td></tr>
- <tr><td>true</td><td>1</td><td>false</td><td>true</td></tr>
- <tr><td>true</td><td>2</td><td>false</td><td>false</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>1</td><td>false</td><td>true</td></tr>
- <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
- </tbody>
- </table>
- <br/>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
- <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
- </thead>
- <tbody>
- <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>2</td><td>false</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
- </tbody>
- </table>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 获取第一个根节点的半选状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var halfCheck = treeObj.getNodes()[0].getCheckStatus();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html
deleted file mode 100644
index 7a0fa5c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取与 treeNode 节点相邻的后一个节点。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>JSON</span></h4>
- <p>与 treeNode 节点相邻的后一个节点。</p>
- <p class="highlight_red">如果 treeNode 是最后一个节点,返回 null 。</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 获取当前被选中的节点的下一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getNextNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html
deleted file mode 100644
index 31309a6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getParentNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取 treeNode 节点的父节点。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>JSON</span></h4>
- <p> treeNode 节点的父节点 JSON 数据对象。</p>
- <p class="highlight_red">如果 treeNode 是根节点,返回 null 。</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 获取当前被选中的节点的父节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getParentNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html
deleted file mode 100644
index 9d84184..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getPreNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取与 treeNode 节点相邻的前一个节点。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>JSON</span></h4>
- <p>与 treeNode 节点相邻的前一个节点。</p>
- <p class="highlight_red">如果 treeNode 是第一个节点,返回 null 。</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 获取当前被选中的节点的前一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getPreNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html
deleted file mode 100644
index 23ac744..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>强制节点的 checkBox / radio 的 半勾选状态。<span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false 时有效]</span></p>
- <p class="highlight_red">1、强制为半勾选状态后,不再进行自动计算半勾选状态</p>
- <p class="highlight_red">2、设置 treeNode.halfCheck = false 或 null 才能恢复自动计算半勾选状态</p>
- <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示节点的输入框 强行设置为半勾选</p>
- <p>false 表示节点的输入框 根据 zTree 的规则自动计算半勾选状态</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 初始化的数据设置 默认为半勾选状态</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
-{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
-{ "id":3, "name":"test3", isParent:true, checked:true },
-{ "id":4, "name":"test4", isParent:true, checked:false }
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html
deleted file mode 100644
index 69c5db1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>icon</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点自定义图标的 URL 路径。</p>
- <p class="highlight_red">1、父节点如果只设置 icon ,会导致展开、折叠时都使用同一个图标</p>
- <p class="highlight_red">2、父节点展开、折叠使用不同的个性化图标需要同时设置 treeNode.iconOpen / treeNode.iconClose 两个属性</p>
- <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>图标图片的 url 可以是相对路径也可以是绝对路径</p>
- <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置节点的个性化图标</h4>
- <pre xmlns=""><code>var nodes = [
- //父节点展开 折叠时使用相同的图标
- { name:"父节点1", icon:"/img/parent.gif"},
-
- //父节点展开 折叠时分别使用不同的图标
- { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //叶子节点个性化图标
- { name:"叶子节点", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html
deleted file mode 100644
index f51da9c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconClose</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>父节点自定义折叠时图标的 URL 路径。</p>
- <p class="highlight_red">1、此属性只针对父节点有效</p>
- <p class="highlight_red">2、此属性必须与 iconOpen 同时使用</p>
- <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>图标图片的 url 可以是相对路径也可以是绝对路径</p>
- <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置节点的个性化图标</h4>
- <pre xmlns=""><code>var nodes = [
- //父节点展开 折叠时使用相同的图标
- { name:"父节点1", icon:"/img/parent.gif"},
-
- //父节点展开 折叠时分别使用不同的图标
- { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //叶子节点个性化图标
- { name:"叶子节点", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html
deleted file mode 100644
index 29c9baa..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconOpen</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>父节点自定义展开时图标的 URL 路径。</p>
- <p class="highlight_red">1、此属性只针对父节点有效</p>
- <p class="highlight_red">2、此属性必须与 iconClose 同时使用</p>
- <p class="highlight_red">3、如果想利用 className 设置个性化图标,需要设置 treeNode.iconSkin 属性</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>图标图片的 url 可以是相对路径也可以是绝对路径</p>
- <p class="highlight_red">设置相对路径请注意页面与图片之间的关系,确保图片能够正常加载</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置节点的个性化图标</h4>
- <pre xmlns=""><code>var nodes = [
- //父节点展开 折叠时使用相同的图标
- { name:"父节点1", icon:"/img/parent.gif"},
-
- //父节点展开 折叠时分别使用不同的图标
- { name:"父节点2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //叶子节点个性化图标
- { name:"叶子节点", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html
deleted file mode 100644
index d5d9726..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconSkin</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点自定义图标的 className</p>
- <p class="highlight_red">1、需要修改 css,增加相应 className 的设置</p>
- <p class="highlight_red">2、css 方式简单、方便,并且同时支持父节点展开、折叠状态切换图片</p>
- <p class="highlight_red">3、css 建议采用图片分割渲染的方式以减少反复加载图片,并且避免图片闪动</p>
- <p class="highlight_red">4、zTree v3.x 的 iconSkin 同样支持 IE6</p>
- <p class="highlight_red">5、如果想直接使用 图片的Url路径 设置节点的个性化图标,需要设置 treeNode.icon / treeNode.iconOpen / treeNode.iconClose 属性</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>设置个性图标的 className</p>
- </div>
- <h3>css & treeNode 举例</h3>
- <h4>1. 设置节点的个性化图标</h4>
- <pre xmlns=""><code>css 内容:
-.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
-
-.ztree li span.button.diy02_ico_open{...}
-.ztree li span.button.diy02_ico_close{...}
-
-.ztree li span.button.diy03_ico_docu{...}
-
-js中节点数据:
-var nodes = [
- //父节点展开 折叠时使用相同的图标
- { name:"父节点1", iconSkin:"diy01"},
-
- //父节点展开 折叠时分别使用不同的图标
- { name:"父节点2", iconSkin:"diy02"},
-
- //叶子节点个性化图标
- { name:"叶子节点", iconSkin:"diy03"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html
deleted file mode 100644
index 330c120..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点是否正在进行异步加载。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示节点正在进行异步加载</p>
- <p> false 表示节点没有进行异步加载</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点是否节点正在进行异步加载</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isAjaxing = sNodes[0].isAjaxing;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html
deleted file mode 100644
index 83b80bd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isFirstNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点是否为同级节点中的第一个节点。</p>
- <p class="highlight_red">使用 exhide 扩展后,只针对显示的节点设置此属性</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示是同级节点中的第一个节点</p>
- <p> false 表示不是同级节点中的第一个节点</p>
- <p class="highlight_red">节点被隐藏后,isFirstNode = false</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点是否是同级节点中的第一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isFirstNode = sNodes[0].isFirstNode;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html
deleted file mode 100644
index 5fb388e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>判断 treeNode 节点是否被隐藏。</p>
- <p class="highlight_red">1、初始化 zTree 时,如果节点设置 isHidden = true,会被自动隐藏</p>
- <p class="highlight_red">2、请勿对已加载的节点修改此属性,隐藏 / 显示 请使用 hideNode() / hideNodes() / showNode() / showNodes() 方法</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示被隐藏</p>
- <p> false 表示被显示</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看第一个根节点是否被隐藏</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getNodes();
-if (sNodes.length > 0) {
- var isHidden = sNodes[0].isHidden;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html
deleted file mode 100644
index dcef6eb..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isHover</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录节点 的 hover 状态,主要用于 setting.view.addHoverDom / removeHoverDom 。</p>
- <p class="highlight_red">zTree 内部使用,请勿进行初始化 或 随意修改</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p>true 表示节点处于 hover 状态</p>
- <p>false 表示节点未处于 hover 状态</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html
deleted file mode 100644
index 5d5ac82..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点是否为同级节点中的最后一个节点。</p>
- <p class="highlight_red">使用 exhide 扩展后,只针对显示的节点设置此属性</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示是同级节点中的最后一个节点</p>
- <p> false 表示不是同级节点中的最后一个节点</p>
- <p class="highlight_red">节点被隐藏后,isLastNode = false</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点是否是同级节点中的最后一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isLastNode = sNodes[0].isLastNode;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html
deleted file mode 100644
index bab887e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isParent</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点是否为父节点。</p>
- <p class="highlight_red">1、初始化节点数据时,根据 treeNode.children 属性判断,有子节点则设置为 true,否则为 false</p>
- <p class="highlight_red">2、初始化节点数据时,如果设定 treeNode.isParent = true,即使无子节点数据,也会设置为父节点</p>
- <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示是父节点</p>
- <p> false 表示不是父节点</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点是否是父节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isParent = sNodes[0].isParent;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html
deleted file mode 100644
index aff3254..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">treeNode.</span>level</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录节点的层级</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>Number 格式说明</h3>
- <div class="desc">
- <p class="highlight_red">根节点 level = 0,依次递增</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点的级数</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var level = sNodes[0].level;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html
deleted file mode 100644
index 918f2b4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>name</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点名称。</p>
- <p class="highlight_red">1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name </p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置节点的名称为 test1、test2、test3</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1"},
- { "id":2, "name":"test2"},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html
deleted file mode 100644
index afaa62f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>nocheck</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>1、设置节点是否隐藏 checkbox / radio <span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">2、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p class="highlight_red">true 表示此节点不显示 checkbox / radio,不影响勾选的关联关系,不影响父节点的半选状态。</p>
- <p class="highlight_red">false 表示节点具有正常的勾选功能</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 不显示某个节点的 checkbox / radio </h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "nocheck":true},
- { "id":2, "name":"test2"},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html
deleted file mode 100644
index 1eb9aec..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>open</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点的 展开 / 折叠 状态。</p>
- <p class="highlight_red">1、初始化节点数据时,如果设定 treeNode.open = true,则会直接展开此节点</p>
- <p class="highlight_red">2、叶子节点 treeNode.open = false</p>
- <p class="highlight_red">3、为了解决部分朋友生成 json 数据出现的兼容问题, 支持 "false","true" 字符串格式的数据</p>
- <p class="highlight_red">4、非异步加载模式下,无子节点的父节点设置 open=true 后,可显示为展开状态,但异步加载模式下不会生效。(v3.5.15+) </p>
- <p>默认值:false</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示节点为 展开 状态</p>
- <p> false 表示节点为 折叠 状态</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点的 展开 / 折叠 状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isOpen = sNodes[0].open;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html
deleted file mode 100644
index d228a23..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>parentTId</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>treeNode 节点的父节点唯一标识 tId。</p>
- <p class="highlight_red">1、v3.x 用 parentTId 替换了原先的 parentNode 属性,同时增加了 getParentNode 方法,以避免原先 parentNode 造成的 clone 死循环</p>
- <p class="highlight_red">2、初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>zTree 内部生成的节点唯一标识,请参考 treeNode.tId 的说明</p>
- <p class="highlight_red">如果 treeNode 是根节点,则 parentTId = null</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点的父节点 tId</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var parentTId = sNodes[0].parentTId;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html
deleted file mode 100644
index c32285c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>tId</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>treeNode 节点的唯一标识 tId。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>生成规则:setting.treeId + "_" + 内部计数</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点的 tId</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var tId = sNodes[0].tId;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html
deleted file mode 100644
index f7c1b6b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>target</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置点击节点后在何处打开 url。<span class="highlight_red">[treeNode.url 存在时有效]</span></p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>同超链接 target 属性: "_blank", "_self" 或 其他指定窗口名称 </p>
- <p>省略此属性,则默认为 "_blank"</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置点击某节点时,弹出新页面</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html
deleted file mode 100644
index 0b2e007..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>url</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>节点链接的目标 URL</p>
- <p class="highlight_red">1、编辑模式 (setting.edit.enable = true) 下此属性功能失效,如果必须使用类似功能,请利用 onClick 事件回调函数自行控制。</p>
- <p class="highlight_red">2、如果需要在 onClick 事件回调函数中进行跳转控制,那么请将 URL 地址保存在其他自定义的属性内,请勿使用 url</p>
- <p>默认值:无</p>
- </div>
- </div>
- <h3>String 格式说明</h3>
- <div class="desc">
- <p>同超链接 href 属性</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 设置某节点点击时,跳转到 g.cn</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"Google CN", "url":"http://g.cn"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html b/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html
deleted file mode 100644
index 00e48f3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>zAsync</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>记录 treeNode 节点是否已经进行过异步加载,避免父节点反复异步加载数据。</p>
- <p class="highlight_red">初始化节点数据时,由 zTree 增加此属性,请勿提前赋值</p>
- <p class="highlight_red">默认值:false (无子节点的父节点); true (有子节点的父节点 & 叶子节点)</p>
- </div>
- </div>
- <h3>Boolean 格式说明</h3>
- <div class="desc">
- <p> true 表示父节点展开时不需要自动异步加载</p>
- <p> false 表示父节点展开时需要自动异步加载</p>
- <p class="highlight_red"> 此参数不会对 reAsyncChildNodes 方法造成任何影响</p>
- </div>
- <h3>treeNode 举例</h3>
- <h4>1. 查看当前被选中的节点是否节点是否需要自动异步加载</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var zAsync = sNodes[0].zAsync;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html
deleted file mode 100644
index eac2152..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode, newNodes, isSilent)</span><span class="path">zTreeObj.</span>addNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>添加节点。</p>
- <p class="highlight_red">v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>newNodes</b><span>JSON / Array(JSON)</span></h4>
- <p>需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”</p>
- <p class="highlight_red">1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中</p>
- <p class="highlight_red">2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>设定增加节点后是否自动展开父节点。</p>
- <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>返回值是 zTree 最终添加的节点数据集合</p>
- <p class="highlight_red">如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内</p>
- <p class="highlight_red">请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 对于 id = "tree" 的 zTree 增加 1 个根节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNode = {name:"newNode1"};
-newNode = treeObj.addNodes(null, newNode);
-</code></pre>
- <h4>2. 对于 id = "tree" 的 zTree 增加 3 个根节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
-newNodes = treeObj.addNodes(null, newNodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html
deleted file mode 100644
index 9df098f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>取消节点的编辑名称状态,可以恢复原名称,也可以强行赋给新的名称。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>newName</b><span>String</span></h4>
- <p>重新给定的新名称。</p>
- <p class="highlight_red">如果省略此参数,则恢复原名称。</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 取消 zTree 的编辑名称状态,恢复该节点原有名称</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelEditName();
-</code></pre>
- <h4>2. 取消 zTree 的编辑名称状态,并且重新设定该节点名称</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelEditName("test_new_name");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html
deleted file mode 100644
index 26d5706..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>cancelSelectedNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>取消节点的选中状态。</p>
- <p class="highlight_red">v3.x 支持多点同时选中,因此取消选中状态可以全部取消,也可以单独取消某个节点的选中状态。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要取消选中状态的节点。</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <p class="highlight_red">如果省略此参数,则将取消全部被选中节点的选中状态。</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 取消当前所有被选中节点的选中状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelSelectedNode();
-</code></pre>
- <h4>2. 取消当前第一个被选中节点的选中状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNode();
-if (nodes.length>0) {
- treeObj.cancelSelectedNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html
deleted file mode 100644
index d6eaadf..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>勾选 或 取消勾选 全部节点。<span class="highlight_red">[setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时有效]</span></p>
- <p class="highlight_red">此方法不会触发 beforeCheck / onCheck 事件回调函数。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>checked</b><span>Boolean</span></h4>
- <p>checked = true 表示勾选全部节点</p>
- <p>checked = false 表示全部节点取消勾选</p>
- <p class="highlight_red">不会影响 treeNode.nochecked = true 的节点。</p>
- <p class="highlight_red">不会影响未加载的节点。</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 勾选全部节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.checkAllNodes(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html
deleted file mode 100644
index cb8bb7d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, checked, checkTypeFlag, callbackFlag)</span><span class="path">zTreeObj.</span>checkNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>勾选 或 取消勾选 单个节点。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">v3.x 中 checkNode() 方法可以触发 beforeCheck / onCheck 事件回调函数。便于减少冗余代码</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要勾选 或 取消勾选 的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>checked</b><span>Boolean</span></h4>
- <p>checked = true 表示勾选节点</p>
- <p>checked = false 表示节点取消勾选</p>
- <p class="highlight_red">省略此参数,则根据对此节点的勾选状态进行 toggle 切换</p>
- <p class="highlight_red">不影响 treeNode.nochecked = true 的节点。</p>
- <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
- <p>checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作</p>
- <p>checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作</p>
- <p class="highlight_red">checkTypeFlag = false 且 treeNode.checked = checked 时,不会触发回调函数,直接返回</p>
- <p class="highlight_red">不影响父子节点中 treeNode.nochecked = true 的节点。</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true 表示执行此方法时触发 beforeCheck & onCheck 事件回调函数</p>
- <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p>
- <p class="highlight_red">省略此参数,等同于 false</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 勾选当前选中的节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.checkNode(nodes[i], true, true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html
deleted file mode 100644
index f1b624b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>copyNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>复制节点。</p>
- <p class="highlight_red">v3.x 复制节点时进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>targetNode</b><span>JSON</span></h4>
- <p>要复制到的目标节点 JSON 数据</p>
- <p class="highlight_red">如果复制成为根节点,请设置 targetNode 为 null 即可</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要被复制的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>复制到目标节点的相对位置</p>
- <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>设定复制节点后是否自动展开父节点。</p>
- <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>返回值是最终加入到 zTree 内的节点数据</p>
- <p class="highlight_red">请务必记住:返回值中的数据对象 是 treeNode 被 clone 后的,所以绝对不相等!</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 将根节点中第二个节点 复制成为 第一个节点的子节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.copyNode(nodes[0], nodes[1], "inner");
-</code></pre>
- <h4>2. 将根节点中第二个节点 复制成为 第一个节点的前一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.copyNode(nodes[0], nodes[1], "before");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html
deleted file mode 100644
index d9f6da0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">zTreeObj.</span>destroy</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>从 zTree v3.4 开始提供销毁 zTree 的方法。</p>
- <p>1、用此方法可以销毁 zTreeObj 代表的 zTree。</p>
- <p class="highlight_red">2、销毁当前页面全部的 zTree,也可以使用 $.fn.zTree.destroy() 方法。</p>
- <p class="highlight_red">3、重新使用已经被销毁的树,必须要使用 init 方法进行初始化。</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 销毁 id 为 "treeDemo" 的 zTree</h4>
- <pre xmlns=""><code>var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
-zTreeObj.destroy();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html
deleted file mode 100644
index 2d4eaf7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>editName</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置某节点进入编辑名称状态。</p>
- <p class="highlight_red">1、如果需要用 js 取消编辑名称状态,请使用 cancelEditName(newName) 方法。</p>
- <p class="highlight_red">2、可利用此方法让当前正编辑的节点 input 输入框获取焦点。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>指定进入编辑名称状态的节点 JSON 数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 设置根节点第一个节点进入编辑名称状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.editName(nodes[0]);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html
deleted file mode 100644
index aaa3e46..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>展开 / 折叠 全部节点</p>
- <p class="highlight_red">此方法不会触发 beforeExpand / onExpand 和 beforeCollapse / onCollapse 事件回调函数。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>expandFlag</b><span>Boolean</span></h4>
- <p>expandFlag = true 表示 展开 全部节点</p>
- <p>expandFlag = false 表示 折叠 全部节点</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值表示最终实际操作情况</p>
- <p>true 表示 展开 全部节点</p>
- <p>false 表示 折叠 全部节点</p>
- <p>null 表示 不存在任何父节点</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 展开全部节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.expandAll(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html
deleted file mode 100644
index 5d96d3f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, expandFlag, sonSign, focus, callbackFlag)</span><span class="path">zTreeObj.</span>expandNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>展开 / 折叠 指定的节点</p>
- <p class="highlight_red">v3.x 中执行此方法可以触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数。便于减少冗余代码</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要 展开 / 折叠 的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>expandFlag</b><span>Boolean</span></h4>
- <p>expandFlag = true 表示 展开 节点</p>
- <p>expandFlag = false 表示 折叠 节点</p>
- <p class="highlight_red">省略此参数,则根据对此节点的展开状态进行 toggle 切换</p>
- <h4 class="topLine"><b>sonSign</b><span>Boolean</span></h4>
- <p>sonSign = true 表示 全部子孙节点 进行与 expandFlag 相同的操作</p>
- <p>sonSign = false 表示 只影响此节点,对于其 子孙节点无任何影响</p>
- <p class="highlight_red">sonSign = false 且 treeNode.open = expandFlag 时,不会触发回调函数,直接返回</p>
- <p class="highlight_red">省略此参数,等同于 false</p>
- <h4 class="topLine"><b>focus</b><span>Boolean</span></h4>
- <p>focus = true 表示 展开 / 折叠 操作后,通过设置焦点保证此焦点进入可视区域内</p>
- <p>focus = false 表示 展开 / 折叠 操作后,不设置任何焦点</p>
- <p class="highlight_red">省略此参数,等同于 true</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true 表示执行此方法时触发 beforeExpand / onExpand 或 beforeCollapse / onCollapse 事件回调函数</p>
- <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p>
- <p class="highlight_red">省略此参数,等同于 false</p>
- <h4 class="topLine"><b>返回值</b><span>Boolean</span></h4>
- <p>返回值表示最终实际操作情况</p>
- <p>true 表示 展开 节点</p>
- <p>false 表示 折叠 节点</p>
- <p>null 表示 不是父节点</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 展开当前选择的第一个节点(包括其全部子节点)</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- treeObj.expandNode(nodes[0], true, true, true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html
deleted file mode 100644
index ba86534..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getChangeCheckedNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取输入框勾选状态被改变的节点集合(与原始数据 checkedOld 对比)。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>Array(JSON)</span></h4>
- <p>返回全部勾选状态被改变的节点集合 Array</p>
- <p class="highlight_red">如果需要获取每次操作后全部被改变勾选状态的节点数据,请在每次勾选操作后,遍历所有被改变勾选状态的节点数据,让其 checkedOld = checked 就可以了。</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取当前勾选状态被改变的节点集合</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getChangeCheckedNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html
deleted file mode 100644
index 85f4ba0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>getCheckedNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取输入框被勾选 或 未勾选的节点集合。<span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>checked</b><span>Boolean</span></h4>
- <p>checked = true 表示获取 被勾选 的节点集合</p>
- <p>checked = false 表示获取 未勾选 的节点集合</p>
- <p class="highlight_red">省略此参数,等同于 true。</p>
- <p class="highlight_red">对于 treeNode.nochecked = true 的节点不进行获取。</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>返回全部符合要求的节点集合 Array</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取当前被勾选的节点集合</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getCheckedNodes(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html
deleted file mode 100644
index 89e72c7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodeByParam</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>需要精确匹配的属性名称</p>
- <h4 class="topLine"><b>value</b><span>?</span></h4>
- <p>需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>搜索范围,指定在某个父节点下的子节点中进行搜索</p>
- <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>匹配精确搜索的节点数据</p>
- <p class="highlight_red">1、如无结果,返回 null</p>
- <p class="highlight_red">2、如有多个节点满足查询条件,只返回第一个匹配到的节点</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 查找 id = 1 的节点数据</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByParam("id", 1, null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html
deleted file mode 100644
index 76fcc48..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(tId)</span><span class="path">zTreeObj.</span>getNodeByTId</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>根据 zTree 的唯一标识 tId 快速获取节点 JSON 数据对象</p>
- <p class="highlight_red">通过内部的 cache 获取,不需要遍历节点。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>tId</b><span>String</span></h4>
- <p>节点在 zTree 内的唯一标识 tId</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>tId 对应的节点 JSON 数据对象</p>
- <p class="highlight_red">如无结果,返回 null</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取 tId = "tree_10" 的节点数据</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByTId("tree_10");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html
deleted file mode 100644
index b2c757d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>getNodeIndex</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取某节点在同级节点中的序号(从0开始)</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要查询顺序的节点 JSON 数据对象</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Number</span></h4>
- <p class="highlight_red">返回值从 0 开始计数</p>
- <p class="highlight_red">如果不存在该节点数据,返回 -1</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取当前选中的第一个节点在同级节点中的序号</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- var index = treeObj.getNodeIndex(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html
deleted file mode 100644
index b368535..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取 zTree 的全部节点数据</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>Array(JSON)</span></h4>
- <p>全部节点数据</p>
- <p class="highlight_red">1、Array 仅仅是根节点的集合(默认情况子节点都处于 children 属性下); </p>
- <p class="highlight_red">2、如需遍历全部节点需要利用递归,或利用 transformToArray 方法 将数据变成简单的 Array 集合</p>
- <p class="highlight_red">3、对于异步加载模式下,尚未加载的子节点是无法通过此方法获取的。</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取全部节点数据</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html
deleted file mode 100644
index 6917425..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(filter, isSingle, parentNode, invokeParam)</span><span class="path">zTreeObj.</span>getNodesByFilter</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>根据自定义规则搜索节点数据 JSON 对象集合 或 单个节点数据</p>
- <p class="highlight_red">可自定义复杂的搜索规则</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>filter</b><span>Function</span></h4>
- <p>自定义过滤器函数 function filter(node) {...}</p>
- <p>filter 参数:node (节点数据 JSON)</p>
- <p>filter 返回值:boolean (true 表示符合搜索条件;false 表示不符合搜索条件)</p>
- <h4 class="topLine"><b>isSingle</b><span>Boolean</span></h4>
- <p>isSingle = true 表示只查找单个节点</p>
- <p>isSingle = false 表示查找节点集合</p>
- <p class="highlight_red">忽略此参数,表示查找节点集合</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>可以指定在某个父节点下的子节点中搜索</p>
- <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p>
- <h4 class="topLine"><b>invokeParam</b><span>任意类型</span></h4>
- <p>用户自定义的数据对象,用于 filter 中进行计算</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON) / JSON</span></h4>
- <p>isSingle = true 返回 第一个找到的节点数据 JSON,无结果时返回 null</p>
- <p>isSingle = false 返回 节点数据集合 Array(JSON),无结果时返回 [ ]</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 查找 level = 2 & name 中包含 "test" 的节点数据</h4>
- <pre xmlns=""><code>function filter(node) {
- return (node.level == 2 && node.name.indexOf("test")>-1);
-}
-......
-var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodesByFilter(filter, true); // 仅查找一个节点
-var nodes = treeObj.getNodesByFilter(filter); // 查找节点集合
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html
deleted file mode 100644
index cf45939..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParam</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>根据节点数据的属性搜索,获取条件完全匹配的节点数据 JSON 对象集合</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>需要精确匹配的属性名称</p>
- <h4 class="topLine"><b>value</b><span>?</span></h4>
- <p>需要精确匹配的属性值,可以是任何类型,只要保证与 key 指定的属性值保持一致即可</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>可以指定在某个父节点下的子节点中搜索</p>
- <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>匹配精确搜索的节点数据集合</p>
- <p class="highlight_red">如无结果,返回 [ ]</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 查找 name = "test" 的节点数据</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParam("name", "test", null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html
deleted file mode 100644
index 04d183f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParamFuzzy</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>根据节点数据的属性搜索,获取条件模糊匹配的节点数据 JSON 对象集合</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>需要模糊匹配的属性名称</p>
- <h4 class="topLine"><b>value</b><span>String</span></h4>
- <p>需要模糊匹配的属性值</p>
- <p class="highlight_red">模糊匹配只能针对 String 类型的数据</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>可以指定在某个父节点下的子节点中搜索</p>
- <p class="highlight_red">忽略此参数,表示在全部节点中搜索</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>匹配模糊搜索的节点数据集合</p>
- <p class="highlight_red">如无结果,返回 [ ]</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 查找 name 包含 "test" 的节点数据</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html
deleted file mode 100644
index ab36f8e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getSelectedNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>获取 zTree 当前被选中的节点数据集合</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>Array(JSON)</span></h4>
- <p>当前被选中的节点数据集合</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 获取当前被选中的节点数据集合</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html
deleted file mode 100644
index a1996b8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>hideNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>隐藏某个节点。</p>
- <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p>
- <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>指定被隐藏的节点 JSON 数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 隐藏根节点第一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.hideNode(nodes[0]);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html
deleted file mode 100644
index cf752b5..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>hideNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>隐藏一批节点。</p>
- <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p>
- <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>指定被隐藏的节点 JSON 数据集合</p>
- <p class="highlight_red">请务必保证这些节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 隐藏根节点第一个节点的子节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.hideNodes(nodes[0].children);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html
deleted file mode 100644
index 9c9180b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>moveNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>移动节点。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>targetNode</b><span>JSON</span></h4>
- <p>要移动到的目标节点 JSON 数据</p>
- <p class="highlight_red">如果移动成为根节点,请设置 targetNode 为 null 即可</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要被移动的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>指定移动到目标节点的相对位置</p>
- <p class="highlight_red">"inner":成为子节点,"prev":成为同级前一个节点,"next":成为同级后一个节点</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>设定移动节点后是否自动展开父节点。</p>
- <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p>
- <h4 class="topLine"><b>返回值</b><span>JSON</span></h4>
- <p>返回值是最终被移动的节点数据,正常情况下与 treeNode 参数完全相同</p>
- <p class="highlight_red">如果 返回值 为 null,说明 移动失败,主要原因有:<br/>
- &nbsp;1、targetNode 是 treeNode 父节点,且 moveType = "inner"<br/>
- &nbsp;2、targetNode 是 treeNode 子孙节点
- </p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 将根节点中第二个节点 移动成为 第一个节点的子节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.moveNode(nodes[0], nodes[1], "inner");
-</code></pre>
- <h4>2. 将根节点中第二个节点 移动成为 第一个节点的前一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.moveNode(nodes[0], nodes[1], "prev");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html
deleted file mode 100644
index 4a354e2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode, reloadType, isSilent)</span><span class="path">zTreeObj.</span>reAsyncChildNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>强行异步加载父节点的子节点。<span class="highlight_red">[setting.async.enable = true 时有效]</span></p>
- <p class="highlight_red">已经加载过的父节点可反复使用此方法重新加载。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>指定需要异步加载的父节点 JSON 数据</p>
- <p class="highlight_red">1、parentNode = null 时,相当于从根节点 Root 进行异步加载</p>
- <p class="highlight_red">2、parentNode.isParent = false 时,不进行异步加载</p>
- <p class="highlight_red">3、请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>reloadType</b><span>String</span></h4>
- <p>reloadType = "refresh" 表示清空后重新加载。</p>
- <p>reloadType != "refresh" 时,表示追加子节点处理。</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>设定异步加载后是否自动展开父节点。</p>
- <p>isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 重新异步加载 zTree </h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.reAsyncChildNodes(null, "refresh");
-</code></pre>
- <h4>2. 重新异步加载当前选中的第一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- treeObj.reAsyncChildNodes(nodes[0], "refresh");
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html
deleted file mode 100644
index 09a74ca..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>refresh</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>刷新 zTree 。</p>
- <p class="highlight_red">没有特殊必要,尽量不要使用此方法。单个节点更新请使用 updateNode 方法,异步加载模式下请使用 reAsyncChildNodes 方法。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 刷新 zTree </h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.refresh();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html
deleted file mode 100644
index 588639f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode)</span><span class="path">zTreeObj.</span>removeChildNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>清空某父节点的子节点。</p>
- <p class="highlight_red">1、清空子节点后,父节点会自动变为叶子节点,如需要父节点保持父节点状态,请设置 setting.data.keep.parent 属性。</p>
- <p class="highlight_red">2、请勿用此方法清空根节点,如果需要清空根节点,直接初始化 zTree,并且设置初始节点为 null 即可。</p>
- <p class="highlight_red">3、此方法不会触发任何事件回调函数。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>需要清空子节点的父节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>将该父节点的子节点数据返回,如果不存在则返回 null</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 清空选中的第一个节点的子节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes && nodes.length>0) {
- treeObj.removeChildNodes(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html
deleted file mode 100644
index 442f5c7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, callbackFlag)</span><span class="path">zTreeObj.</span>removeNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>删除节点。</p>
- <p class="highlight_red">v3.x 中删除节点可以触发 beforeRemove / onRemove 事件回调函数。便于减少冗余代码</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要被删除的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true 表示执行此方法时触发 beforeRemove & onRemove 事件回调函数</p>
- <p>callbackFlag = false 表示执行此方法时不触发事件回调函数</p>
- <p class="highlight_red">省略此参数,等同于 false</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 删除所有选中的节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.removeNode(nodes[i]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html
deleted file mode 100644
index 6e80d81..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, addFlag)</span><span class="path">zTreeObj.</span>selectNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>选中指定节点</p>
- <p class="highlight_red">v3.x 支持同时选中多个节点。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要被选中的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>addFlag</b><span>Boolean</span></h4>
- <p>addFlag = true 表示追加选中,会出现多点同时被选中的情况</p>
- <p>addFlag = false 表示单独选中,原先被选中的节点会被取消选中状态</p>
- <p class="highlight_red">setting.view.selectedMulti = false 时,此参数无效,始终进行单独选中</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 单独选中根节点中第一个节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-if (nodes.length>0) {
- treeObj.selectNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html
deleted file mode 100644
index b042ab4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(node, disabled, inheritParent, inheritChildren)</span><span class="path">zTreeObj.</span>setChkDisabled</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.excheck</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>禁用 或 解禁 某个节点的 checkbox / radio <span class="highlight_red">[setting.check.enable = true 时有效]</span></p>
- <p class="highlight_red">1、节点的 checkbox / radio 被禁用后,无法勾选或取消勾选,但能够影响父节点的半选状态</p>
- <p class="highlight_red">2、请不要直接修改已加载节点的 treeNode.chkDisabled 属性。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>需要禁用 或 解禁 checkbox / radio 的节点数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>disabled</b><span>Boolean</span></h4>
- <p>disabled = true 表示禁用 checkbox / radio</p>
- <p>disabled = false 表示解禁 checkbox / radio</p>
- <p class="highlight_red">省略此参数,等同于 disabled = false </p>
- <p class="highlight_red">不影响 treeNode.nochecked = true 的节点。</p>
- <h4 class="topLine"><b>inheritParent</b><span>Boolean</span></h4>
- <p>inheritParent = true 表示全部父节点进行同样的操作</p>
- <p>inheritParent = false 表示不影响父节点</p>
- <p class="highlight_red">省略此参数,等同于 inheritParent = false </p>
- <h4 class="topLine"><b>inheritChildren</b><span>Boolean</span></h4>
- <p>inheritChildren = true 表示全部子节点进行同样的操作</p>
- <p>inheritChildren = false 表示不影响子节点</p>
- <p class="highlight_red">省略此参数,等同于 inheritChildren = false </p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 禁用当前选中的节点的 checkbox / radio</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.setChkDisabled(nodes[i], true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html
deleted file mode 100644
index c90c8de..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(editable)</span><span class="path">zTreeObj.</span>setEditable</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>设置 zTree 进入 / 取消 编辑状态。</p>
- <p class="highlight_red">对于编辑状态的各种功能需要提前设置对应 setting 中的不同属性</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>editable</b><span>Boolean</span></h4>
- <p>true 表示进入 编辑状态</p>
- <p>false 表示取消 编辑状态</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 设置 zTree 进入编辑状态</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.setEditable(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html
deleted file mode 100644
index 61abd53..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">zTreeObj.</span>setting</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree 对象使用的 setting 配置数据,详细请参考 “setting 配置详解”中的各个属性详细说明</p>
- <p class="highlight_red">v3.x 取消了原先操作 setting 的方法,让用户可以较自由的修改参数,但请注意,对于 zTree 初始化有影响的参数后期修改是不会起作用的,请对各个属性有较深入的了解以后再考虑进行修改。</p>
- </div>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html
deleted file mode 100644
index ed22d51..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>showNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>显示某个被隐藏的节点。</p>
- <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p>
- <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>指定被显示的节点 JSON 数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 显示某个隐藏的节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByParam("isHidden", true);
-if (node) {
- treeObj.showNode(node);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html
deleted file mode 100644
index b090657..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>showNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exhide</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>显示一批已经被隐藏的节点。</p>
- <p class="highlight_red">1、此功能不支持 exedit 扩展,因此不要在编辑状态时使用隐藏节点的方法。</p>
- <p class="highlight_red">2、隐藏/显示节点,会影响节点的 isFirstNode 和 isLastNode 属性。</p>
- <p class="highlight_red">3、请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>指定被显示的节点 JSON 数据集合</p>
- <p class="highlight_red">请务必保证这些节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 显示全部隐藏的节点</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParam("isHidden", true);
-treeObj.showNodes(nodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html
deleted file mode 100644
index a46dc61..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>transformToArray</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>将 zTree 使用的标准 JSON 嵌套格式的数据转换为简单 Array 格式。(免去用户自行编写递归遍历全部节点的麻烦)</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>需要被转换的 zTree 节点数据对象集合 或 某个单独节点的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>转换后的简单 Array 数据格式</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 将 zTree 节点数据转换为简单 Array 格式</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.transformToArray(treeObj.getNodes());
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html
deleted file mode 100644
index 8a52770..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(simpleNodes)</span><span class="path">zTreeObj.</span>transformTozTreeNodes</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>将简单 Array 格式数据转换为 zTree 使用的标准 JSON 嵌套数据格式。</p>
- <p class="highlight_red">使用此方法,请务必设置节点唯一标识属性名称 setting.data.simpleData.idKey 和 父节点唯一标识属性名称 setting.data.simpleData.pIdKey,并且让数据满足父子关系。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>simpleNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>需要被转换的简单 Array 格式数据 或 某个单独的数据对象</p>
- <h4 class="topLine"><b>返回值</b><span>Array(JSON)</span></h4>
- <p>zTree 使用的标准数据,子节点都存在于父节点数据的 children 属性中</p>
- <p class="highlight_red">如果 simpleNodes 是一个 JSON 对象,则被简单封装成长度为 1 的数组。</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 将简单 Array 格式转换为zTree使用的标准格式</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var simpleNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.transformTozTreeNodes(simpleNodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html b/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html
deleted file mode 100644
index 847fa6e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, checkTypeFlag)</span><span class="path">zTreeObj.</span>updateNode</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>更新某节点数据,主要用于该节点显示属性的更新。</p>
- <p class="highlight_red">1、可针对 name、target、 url、icon、 iconSkin、checked、nocheck 等这几个用于显示效果的参数进行更新,其他用于 zTreeNodes 的参数请不要随意更新,对于展开节点,还请调用 expandNode方法,因此请勿随意修改 open 属性。</p>
- <p class="highlight_red">2、用此方法修改 checked 勾选状态不会触发 beforeCheck / onCheck 事件回调函数。</p>
- <p class="highlight_red">请通过 zTree 对象执行此方法。</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>指定需要更新的节点 JSON 数据</p>
- <p class="highlight_red">请务必保证此节点数据对象 是 zTree 内部的数据对象</p>
- <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
- <p>checkTypeFlag = true 表示按照 setting.check.chkboxType 属性进行父子节点的勾选联动操作</p>
- <p>checkTypeFlag = false 表示只修改此节点勾选状态,无任何勾选联动操作</p>
- <p class="highlight_red">当 setting.check.enable = true 且 setting.check.chkStyle = "checkbox" 时才有效</p>
- <p class="highlight_red">不影响父子节点中 treeNode.nochecked = true 的节点。</p>
- <h4 class="topLine"><b>返回值</b><span>无</span></h4>
- <p>目前无任何返回值</p>
- </div>
- <h3>function 举例</h3>
- <h4>1. 更新根节点中第一个节点的名称</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-if (nodes.length>0) {
- nodes[0].name = "test";
- treeObj.updateNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html
deleted file mode 100644
index 61da261..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">$.fn.zTree.</span>_z</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>All of the methods in zTree v3.x are available through the '$. fn.zTree._z' calls, open it for you to develop your own zTree plug-ins.</p>
- <p class="highlight_red">If you have no special requirements, please don't use this object, and don't modify the methods in this object.</p>
- </div>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html
deleted file mode 100644
index 3a31699..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>destroy</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>From zTree v3.4, zTree support the method for destruction.</p>
- <p>1. This method can destroy the zTree with specify treeId, and can destroy all of the zTrees.</p>
- <p class="highlight_red">2. If you want to destory some one zTree, you can use the 'zTreeObj.destroy()' method.</p>
- <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier</p>
- <p class="highlight_red">If this parameter is omitted, then will destroy all of the zTrees.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. destroy the zTree which its id is 'treeDemo'</h4>
- <pre xmlns=""><code>$.fn.zTree.destroy("treeDemo");</code></pre>
- <h4>2. destroy all of the zTrees</h4>
- <pre xmlns=""><code>$.fn.zTree.destroy();</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html
deleted file mode 100644
index 2bc0447..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">$.fn.zTree.</span>getZTreeObj</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree v3.x specifically provide the method which can use the tree's Id to get zTree object.</p>
- <p class="highlight_red">Please initialize zTree first, then you can use this method.</p>
- <p>Users don't need to set the global variable to hold the zTree object, and all of the callback will return 'treeId' parameters, the user can always use this method to get the zTree object.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>zTree object</p>
- <p>This object can provide the methods of operate the zTree</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Get the zTree object which id is 'tree'</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html b/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html
deleted file mode 100644
index cf97d2b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html
+++ /dev/null
@@ -1,75 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(obj, zSetting, zNodes)</span><span class="path">$.fn.zTree.</span>init</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The method which used to create zTree.</p>
- <p>1. The web page need to use W3C markup. For example: &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"&nbsp;&nbsp; &nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;</p>
- <p>2. Need to load jquery-1.4.2.js or other higher versions.</p>
- <p>3. Need to load jquery-ztree.core-3.0.js. If you need to use the edit mode or checkbox / radio mode, you need to load jquery-ztree.exedit-3.0.js and jquery-ztree.excheck-3.0.js.</p>
- <p>4. Need to load zTreeStyle.css and image files</p>
- <p>5. If you need to use custom icons, please refer to the appropriate Demo.</p>
- <p>6. Note: You need to set zTree container's class name to "ztree". If you need to change, don't forget to modify the css file. If you need other special styles, can modify the css file to their own needs.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>object</b><span>jQuery Object</span></h4>
- <p>DOM Container for zTree</p>
- <h4 class="topLine"><b>zSetting</b><span>JSON</span></h4>
- <p>zTree's configuration data, please refer to "setting details" in the API Document.</p>
- <h4 class="topLine"><b>zNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>zTree's node data, please refer to "treeNode data details" in the API Document.</p>
- <p class="highlight_red">1. zTree v3.x support to add single node, that is, if only to add one node, you can use JSON without using Array.</p>
- <p class="highlight_red">2. If you need asynchronous load root nodes, can be set to null or [ ]</p>
- <p class="highlight_red">3. If you use simple data mode, please refer to "setting.data.simpleData" in the API Document.</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>zTree object</p>
- <p>This object can provide the methods of operate the zTree</p>
- <p class="highlight_red">You can use $.fn.zTree.getZTreeObj method at any time to obtain.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. create a simple tree</h4>
- <pre xmlns=""><code>&lt;!DOCTYPE html&gt;
-&lt;HTML&gt;
- &lt;HEAD&gt;
- &lt;TITLE&gt; ZTREE DEMO &lt;/TITLE&gt;
- &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
- &lt;link rel="stylesheet" href="zTreeStyle/zTreeStyle.css" type="text/css"&gt;
- &lt;script type="text/javascript" src="jquery-1.4.2.js"&gt;&lt;/script&gt;
- &lt;script type="text/javascript" src="jquery.ztree.core-3.5.js"&gt;&lt;/script&gt;
-&lt;!--
- &lt;script type="text/javascript" src="jquery.ztree.excheck-3.5.js"&gt;&lt;/script&gt;
- &lt;script type="text/javascript" src="jquery.ztree.exedit-3.5.js"&gt;&lt;/script&gt;
---&gt;
- &lt;SCRIPT type="text/javascript" &gt;
- var zTreeObj,
- setting = {
- view: {
- selectedMulti: false
- }
- },
- zTreeNodes = [
- {"name":"Site Map", open:true, children: [
- { "name":"google", "url":"http://www.google.com", "target":"_blank"},
- { "name":"baidu", "url":"http://baidu.com", "target":"_blank"},
- { "name":"sina", "url":"http://www.sina.com.cn", "target":"_blank"}
- ]
- }
- ];
-
- $(document).ready(function(){
- zTreeObj = $.fn.zTree.init($("#tree"), setting, zTreeNodes);
-
- });
- &lt;/SCRIPT&gt;
- &lt;/HEAD&gt;
-
-&lt;BODY&gt;
-&lt;ul id="tree" class="ztree" style="width:230px; overflow:auto;"&gt;&lt;/ul&gt;
- &lt;/BODY&gt;
-&lt;/HTML&gt;</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html
deleted file mode 100644
index 85cd469..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(String)</span><span class="path">setting.async.</span>autoParam</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Required automatically submit the parameters about the properties of the parent node, when the asynchronous load. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default:[ ]</p>
- </div>
- </div>
- <h3>Array(String) Format</h3>
- <div class="desc">
- <p>1. Just save the attribute name of node to the array. For example: ["id", "name"]</p>
- <p>2. You can change the parameter name. For example: server only accepts "zId" -- ["id=zId"]</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. set auto commit 'id' attribute</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id"]
- }
-};
-If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: id=1
-......</code></pre>
- <h4>2. set auto commit 'id' attribute, but parameter name is 'zId'</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id=zId"]
- }
-};
-If have the parent node: {id:1, name:"test"}, When asynchronously load this parent node's child nodes, will be submitted parameters: zId=1
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html
deleted file mode 100644
index cc9bfcd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>contentType</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When Ajax sending data to the server, use this content-type. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default:"application/x-www-form-urlencoded"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p> contentType = "application/x-www-form-urlencoded", means: the sending data format is "form" format.</p>
- <p> contentType = "application/json", means: the sending data format is "json" format. (for .Net)</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. set the sending data format to "json" format.</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- contentType: "application/json",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html
deleted file mode 100644
index 34733e4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, parentNode, responseData)</span><span class="path">setting.async.</span>dataFilter</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Function used to pre-process for the return data of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>Parent node's JSON data object</p>
- <p class="highlight_red">When asynchronously loading the root, the parentNode = null</p>
- <h4 class="topLine"><b>responseData</b><span>Array(JSON) / JSON / String</span></h4>
- <p>Ajax got Array (JSON) / JSON / String data objects</p>
- <p class="highlight_red">From v3.4, support the string with XML format.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4>
- <p>The return value should be the JSON data structure which is supported by the zTree.</p>
- <p class="highlight_red">v3.x supports to load single node JSON data object.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Modify the node name attribute which is ajax got.</h4>
- <pre xmlns=""><code>function ajaxDataFilter(treeId, parentNode, responseData) {
- if (responseData) {
- for(var i =0; i < responseData.length; i++) {
- responseData[i].name += "_filter";
- }
- }
- return responseData;
-};
-var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- dataFilter: ajaxDataFilter
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html
deleted file mode 100644
index e6672e9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>dataType</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The data type of Ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default:"text"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p> dataType = "text", It can meet most of the needs.</p>
- <p class="highlight_red">The 'dataType' in zTree and jQuery's ajax is same.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the dataType which ajax got is text.</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- dataType: "text",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html
deleted file mode 100644
index 806ba6c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.async.</span>enable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set zTree asynchronous loading mode is turned on or off.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true - turn on asynchronous loading mode</p>
- <p> false - turn off asynchronous loading mode</p>
- <p class="highlight_red">If set it is true, you must set attributes in setting.async</p>
- <p class="highlight_red">If you don't pass 'treeNodes' parameter when initialize zTree, the root nodes will get by ajax.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Turn on asynchronous loading mode</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html
deleted file mode 100644
index 2e37390..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(String) / JSON</span><span class="path">setting.async.</span>otherParam</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The static parameters of the Ajax request. (key - value) It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default: [ ]</p>
- </div>
- </div>
- <h3>Array(String) Format</h3>
- <div class="desc">
- <p>Can be empty array. e.g. [ ]. If set key, you must set value, e.g. [key, value]. ([key] or [key, value, key] is wrong!!)</p>
- </div>
- <h3>JSON Format</h3>
- <div class="desc">
- <p>Use JSON data format set the key-value. e.g. { key1:value1, key2:value2 }</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Use Array(String) Format</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- otherParam: ["id", "1", "name", "test"]
- }
-};
-when zTree send ajax, the parameters will has: id=1&name=test</code></pre>
- <h4>2. Use JSON data Format</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "http://host/getNode.php",
- otherParam: { "id":"1", "name":"test"}
- }
-};
-when zTree send ajax, the parameters will has: id=1&name=test</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html
deleted file mode 100644
index ae54338..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.async.</span>type</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Http request mode in ajax. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Defalut: "post"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p> "post" - http request mode</p>
- <p> "get" - http request mode</p>
- <p class="highlight_red">The 'type' in zTree and jQuery's ajax is same.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set http request mode is 'get'</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- type: "get",
- url: "http://host/getNode.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html
deleted file mode 100644
index 5587f29..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.async.</span>url</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The URL to which the ajax request is sent. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p>Default: ""</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>A url string(e.g. "http://www.domain.com"). Note: please ensure that the url can be loaded</p>
- <p class="highlight_red">Url can also take parameters, please note that transcode.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>Parent node's JSON data object</p>
- <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p>
- <h4 class="topLine"><b>Return </b><span>String</span></h4>
- <p>Return value is same as 'String Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. set ajax url is "nodes.php"</h4>
- <pre xmlns=""><code>var setting = {
- async: {
- enable: true,
- url: "nodes.php",
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
- <h4>2. set ajax url is "function"</h4>
- <pre xmlns=""><code>function getAsyncUrl(treeId, treeNode) {
- return treeNode.isParent ? "nodes1.php" : "nodes2.php";
-};
-var setting = {
- async: {
- enable: true,
- url: getAsyncUrl,
- autoParam: ["id", "name"]
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html
deleted file mode 100644
index 6563ff2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeAsync</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before zTree execute ajax, zTree based on return value to determine whether to execute ajax.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the parent node</p>
- <p class="highlight_red">When asynchronously loading the root, the treeNode = null</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. If the parent node's attribute 'id' is 1, zTree will not execute ajax.</h4>
- <pre xmlns=""><code>function zTreeBeforeAsync(treeId, treeNode) {
- return (treeNode.id !== 1);
-};
-var setting = {
- callback: {
- beforeAsync: zTreeBeforeAsync
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html
deleted file mode 100644
index 5260412..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCheck</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before check or uncheck node, zTree based on return value to determine whether to change check state.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is checked or unchecked</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to change check state of all nodes, and keep the check state initialization</h4>
- <pre xmlns=""><code>function zTreeBeforeCheck(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeCheck: zTreeBeforeCheck
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html
deleted file mode 100644
index 32ddbf7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>beforeClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before click node, zTree based on return value to determine whether to trigger the 'onClick' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is clicked</p>
- <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
- <p>Node is selected or deselected state, please see table below for details</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead>
- <tbody>
- <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
- <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr>
- <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr>
- </tbody>
- </table>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disabled to click the node</h4>
- <pre xmlns=""><code>function zTreeBeforeClick(treeId, treeNode, clickFlag) {
- return (treeNode.id !== 1);
-};
-var setting = {
- callback: {
- beforeClick: zTreeBeforeClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html
deleted file mode 100644
index b2713e8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeCollapse</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before collapse node, zTree based on return value to determine whether to collapse node.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be collapsed</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disabled to collapse node which is expanded</h4>
- <pre xmlns=""><code>function zTreeBeforeCollapse(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeCollapse: zTreeBeforeCollapse
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html
deleted file mode 100644
index 6f1c743..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDblClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the dblclick event before the 'onDblClick' callback, zTree based on return value to determine whether to trigger the 'onDblClick' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is double clicked</p>
- <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, ztree will not trigger the 'onDblClick' callback, no effect on other operations.</p>
- <p class="highlight_red">This callback function does not affect the dblclick the parent node to auto expand, please refer to setting.view.dblClickExpand properties.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to trigger the 'onDblClick' callback</h4>
- <pre xmlns=""><code>function zTreeBeforeDblClick(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeDblClick: zTreeBeforeDblClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html
deleted file mode 100644
index 5175244..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNodes)</span><span class="path">setting.callback.</span>beforeDrag</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before drag node, zTree based on return value to determine whether to start to drag node.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which will be dragged</p>
- <p class="highlight_red">v3.x allows drag and drop multiple sibling nodes, so this parameter is modified to Array(JSON).</p>
- <p class="highlight_red">If the selected nodes aren't the sibling nodes, you can only drag one node which mouse over.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will stop drag, and will not trigger the 'onDrag / beforeDrop / onDrop' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to drag all node</h4>
- <pre xmlns=""><code>function zTreeBeforeDrag(treeId, treeNodes) {
- return false;
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDrag: zTreeBeforeDrag
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html
deleted file mode 100644
index ed1ae97..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeDragOpen</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when drag node to collapsed parent node, zTree based on return value to determine whether to auto expand parent node.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNode(parent node) is belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the parent node which will be auto expanded</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not auto expand parent node.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to auto expand parent node.</h4>
- <pre xmlns=""><code>function zTreeBeforeDragOpen(treeId, treeNode) {
- return false;
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDragOpen: zTreeBeforeDragOpen
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html
deleted file mode 100644
index 7014321..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>beforeDrop</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before drag-drop node, zTree based on return value to determine whether to allow drag-drop node.</p>
- <p>Default: null</p>
- <p class="highlight_red">When drop the nodes, if the dragged nodes is not in a valid location, this callback will not triggered, and will restore the original position.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which has been dragged</p>
- <p class="highlight_red">The treeNodes are the data of the nodes which has been dragged, when copy nodes or move nodes.</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the target node which treeNodes are drag-dropped.</p>
- <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>the relative position of move to the target node</p>
- <p class="highlight_red">"inner": will be child of targetNode</p>
- <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p>
- <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p>
- <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
- <p>the flag used to judge copy node or move node</p>
- <p class="highlight_red">true: copy node; false: move node</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to drag nodes to root</h4>
- <pre xmlns=""><code>function zTreeBeforeDrop(treeId, treeNodes, targetNode, moveType) {
- return !(targetNode == null || (moveType != "inner" && !targetNode.parentTId));
-};
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeDrop: zTreeBeforeDrop
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html
deleted file mode 100644
index 8772a3e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeEditName</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.</p>
- <p class="highlight_red">This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be edited name.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, the node will not be able to edit the name.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to edit the parent node's name</h4>
- <pre xmlns=""><code>function zTreeBeforeEditName(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeEditName: zTreeBeforeEditName
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html
deleted file mode 100644
index 73cf55a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeExpand</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before expand node, zTree based on return value to determine whether to expand node.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be expanded</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disabled to expand node which is collapsed</h4>
- <pre xmlns=""><code>function zTreeBeforeExpand(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeExpand: zTreeBeforeExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html
deleted file mode 100644
index 4af0818..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseDown</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the mousedown event before the 'onMouseDown' callback, zTree based on return value to determine whether to trigger the 'onMouseDown' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which mouse over</p>
- <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not trigger the 'onMouseDown' callback, no effect on other operations.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to trigger the 'onMouseDown' callback</h4>
- <pre xmlns=""><code>function zTreeBeforeMouseDown(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeMouseDown: zTreeBeforeMouseDown
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html
deleted file mode 100644
index 0c008fc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeMouseUp</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the mouseup event before the 'onMouseUp' callback, zTree based on return value to determine whether to trigger the 'onMouseUp' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which mouse over</p>
- <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not trigger the 'onMouseUp' callback, no effect on other operations.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to trigger the 'onMouseUp' callback</h4>
- <pre xmlns=""><code>function zTreeBeforeMouseUp(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeMouseUp: zTreeBeforeMouseUp
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html
deleted file mode 100644
index 38e14c1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRemove</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before remove node, zTree based on return value to determine whether to allow to remove node.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be removed.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to remove node</h4>
- <pre xmlns=""><code>function zTreeBeforeRemove(treeId, treeNode) {
- return false;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeRemove: zTreeBeforeRemove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html
deleted file mode 100644
index 76438a9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode, newName, isCancel)</span><span class="path">setting.callback.</span>beforeRename</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event before rename(when input DOM blur or press Enter Key), zTree based on return value to determine whether to allow to rename node.</p>
- <p class="highlight_red">When node is editing name, press the ESC key to restore the original name and stop edit name.</p>
- <p class="highlight_red">From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be rename.</p>
- <h4 class="topLine"><b>newName</b><span>String</span></h4>
- <p>the new name</p>
- <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
- <p>the status about cancel edit name (v3.5.13+)</p>
- <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p>
- <p class="highlight_red">isCancel = false means: user submit edit name.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, the treeNode will keep the editing name, don't trigger the 'onRename' callback, and will ignore other enents, until the callback return true.</p>
- <p class="highlight_red">If returns false, zTree will not set the input box to get focus to avoid the warning message which led to repeated triggering ‘beforeRename’ callback. Please use editName() method to set the input box to get focus when user close the warning message.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. the length of the new name can't less than 5</h4>
- <pre xmlns=""><code>function zTreeBeforeRename(treeId, treeNode, newName, isCancel) {
- return newName.length > 5;
-}
-var setting = {
- edit: {
- enable: true
- },
- callback: {
- beforeRename: zTreeBeforeRename
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html
deleted file mode 100644
index 15c38cd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.callback.</span>beforeRightClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the right click event before the 'onRightClick' callback, zTree based on return value to determine whether to trigger the 'onRightClick' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is mouse right clicked</p>
- <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p>
- <h4 class="topLine"><b>Return</b><span>Boolean</span></h4>
- <p>return true or false</p>
- <p class="highlight_red">If return false, ztree will not trigger the 'onRightClick' callback, no effect on other operations.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to trigger the 'onRightClick' callback</h4>
- <pre xmlns=""><code>function zTreeBeforeRightClick(treeId, treeNode) {
- return false;
-};
-var setting = {
- callback: {
- beforeRightClick: zTreeBeforeRightClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html
deleted file mode 100644
index 785c8d8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span class="path">setting.callback.</span>onAsyncError</h2>
- <h2><span>Function(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown)</span>&nbsp;</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the error event when execute ajax.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the parent node</p>
- <p class="highlight_red">When load root nodes, treeNode = null</p>
- <h4 class="topLine"><b>XMLHttpRequest</b><span>String</span></h4>
- <p>XMLHttpRequest Object, please refer to JQuery API documentation.</p>
- <h4 class="topLine"><b>textStatus</b><span>String</span></h4>
- <p>a string categorizing the status of the request("success", "error"...), please refer to JQuery API documentation.</p>
- <h4 class="topLine"><b>errorThrown</b><span>String</span></h4>
- <p>eWhen an HTTP error occurs, errorThrown receives the textual portion of the HTTP status, please refer to JQuery API documentation.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When execute ajax make error, alert message.</h4>
- <pre xmlns=""><code>function zTreeOnAsyncError(event, treeId, treeNode, XMLHttpRequest, textStatus, errorThrown) {
- alert(XMLHttpRequest);
-};
-var setting = {
- callback: {
- onAsyncError: zTreeOnAsyncError
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html
deleted file mode 100644
index 2722691..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, msg)</span><span class="path">setting.callback.</span>onAsyncSuccess</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the complete success event when execute ajax.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeAsync',and return false, zTree will not execute ajax, and will not trigger the 'onAsyncSuccess / onAsyncError' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the parent node</p>
- <p class="highlight_red">When load root nodes, treeNode = null</p>
- <h4 class="topLine"><b>msg</b><span>String / Object</span></h4>
- <p>The actualnode data which got by ajax. User-friendly debugging.</p>
- <p class="highlight_red">The actual data's type of msg is affected by 'setting.async.dataType', please refer to JQuery API documentation.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When execute ajax complete success, alert message.</h4>
- <pre xmlns=""><code>function zTreeOnAsyncSuccess(event, treeId, treeNode, msg) {
- alert(msg);
-};
-var setting = {
- callback: {
- onAsyncSuccess: zTreeOnAsyncSuccess
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html
deleted file mode 100644
index ed33f8d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCheck</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the check or uncheck event when check or uncheck the checkbox and radio.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeCheck',and return false, zTree will not change check state, and will not trigger the 'onCheck' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is checked or unchecked</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When check or uncheck the checkbox and radio, alert info about 'tId' and 'name' and 'checked'.</h4>
- <pre xmlns=""><code>function zTreeOnCheck(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name + "," + treeNode.checked);
-};
-var setting = {
- callback: {
- onCheck: zTreeOnCheck
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html
deleted file mode 100644
index 0453af8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, clickFlag)</span><span class="path">setting.callback.</span>onClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the click event when click node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeClick',and return false, zTree will not change selected state, and will not trigger the 'onClick' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is clicked</p>
- <h4 class="topLine"><b>clickFlag</b><span>Number</span></h4>
- <p>Node is selected or deselected state, please see table below for details</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead><tr><td>clickFlag</td><td title="Whether to allow multi-select">selectedMulti</td><td title="Whether to press Ctrl-key or Cmd-key">autoCancelSelected<br/>&&<br/>event.ctrlKey / metaKey</td><td title="Node's selection state">isSelected</td><td>operate for selected</td></tr></thead>
- <tbody>
- <tr><td>1</td><td>true</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>true</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
- <tr><td>2</td><td>true</td><td>true</td><td>false</td><td>node is selected (multi)</td></tr>
- <tr><td>0</td><td>true</td><td>true</td><td>true</td><td>node is deselected</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>false</td><td>false</td><td>true</td><td>node is selected (single)</td></tr>
- <tr><td>1</td><td>false</td><td>true</td><td>false</td><td>node is selected (single)</td></tr>
- <tr><td>0</td><td>false</td><td>true</td><td>true</td><td>node is deselected</td></tr>
- </tbody>
- </table>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When click node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnClick(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onClick: zTreeOnClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html
deleted file mode 100644
index d605dc8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onCollapse</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when collapse node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeCollapse',and return false, zTree will not collapse node, and will not trigger the 'onCollapse' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be collapsed</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When collapse node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnCollapse(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onCollapse: zTreeOnCollapse
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html
deleted file mode 100644
index fbd47e8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onDblClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the dblclick event when double click node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeDblClick',and return false, zTree will not trigger the 'onDblClick' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is double clicked</p>
- <p class="highlight_red">If the DOM which dblclicked isn't a node, it will return null.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When double click node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnDblClick(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onDblClick: zTreeOnDblClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html
deleted file mode 100644
index d178b63..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDrag</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the drag event when drag node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeDrag',and return false, zTree will stop drag, and will not trigger the 'onDragMove' & 'onDrag' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which will be dragged</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When drag nodes, alert the number of dragged nodes.</h4>
- <pre xmlns=""><code>function zTreeOnDrag(event, treeId, treeNodes) {
- alert(treeNodes.length);
-};
-var setting = {
- callback: {
- onDrag: zTreeOnDrag
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html
deleted file mode 100644
index a56e835..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes)</span><span class="path">setting.callback.</span>onDragMove</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the drag-move event when drag & drop node.</p>
- <p class="highlight_red">Mainly used to capture the DOM which the nodes was drag in. </p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the treeNodes are belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which will be dragged</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When drag nodes, output the target dom.</h4>
- <pre xmlns=""><code>function zTreeOnDragMove(event, treeId, treeNodes) {
- console.log(event.target);
-};
-var setting = {
- callback: {
- onDragMove: zTreeOnDragMove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html
deleted file mode 100644
index 6362463..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNodes, targetNode, moveType, isCopy)</span><span class="path">setting.callback.</span>onDrop</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the drop event when drag-drop node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeDrop',and return false, zTree will restore the dragged nodes, and will not trigger the 'onDrop' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, the tree is what the targetNode is belong to, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which has been dragged</p>
- <p class="highlight_red">The treeNodes are the data of the nodes which be dragged, when move nodes.</p>
- <p class="highlight_red">The treeNodes are the clone data of the nodes which be dragged, when copy nodes.</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the target node which treeNodes are drag-dropped.</p>
- <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>the relative position of move to the target node</p>
- <p class="highlight_red">"inner": will be child of targetNode</p>
- <p class="highlight_red">"prev": will be sibling node, and be in front of targetNode</p>
- <p class="highlight_red">"next": will be sibling node, and be behind targetNode</p>
- <p class="highlight_red">If moveType is null, means drag & drop is cancel.</p>
- <h4 class="topLine"><b>isCopy</b><span>Boolean</span></h4>
- <p>the flag used to judge copy node or move node</p>
- <p class="highlight_red">true: copy node; false: move node</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When drag-drop nodes complete, alert the number of dragged nodes and info about targetNode.</h4>
- <pre xmlns=""><code>function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType) {
- alert(treeNodes.length + "," + (targetNode ? (targetNode.tId + ", " + targetNode.name) : "isRoot" ));
-};
-var setting = {
- callback: {
- onDrop: zTreeOnDrop
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html
deleted file mode 100644
index 7b9d8d5..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onExpand</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when expand node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeExpand',and return false, zTree will not expand node, and will not trigger the 'onExpand' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be expanded</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When expand node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnExpand(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onExpand: zTreeOnExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html
deleted file mode 100644
index bfd714c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseDown</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when mouse down.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeMouseDown',and return false, zTree will not trigger the 'onMouseDown' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which mouse over</p>
- <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When mouse down, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnMouseDown(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onMouseDown: zTreeOnMouseDown
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html
deleted file mode 100644
index 93edf31..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onMouseUp</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when mouse up.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeMouseUp',and return false, zTree will not trigger the 'onMouseUp' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which mouse over</p>
- <p class="highlight_red">If the DOM which mouse over isn't a node, it will return null.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When mouse up, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnMouseUp(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onMouseUp: zTreeOnMouseUp
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html
deleted file mode 100644
index a98b572..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onNodeCreated</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when node's DOM is created.</p>
- <p class="highlight_red">Because v3.x uses lazy loading technology, so the nodes which doesn't create DOM when initialized will not trigger this callback, until its parent node is expanded.</p>
- <p class="highlight_red">Large amount of data to load, please note: do not set onNodeCreated, can improve performance as when initialized.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which DOM is created</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When node's DOM is created, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnNodeCreated(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-};
-var setting = {
- callback: {
- onNodeCreated: zTreeOnNodeCreated
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html
deleted file mode 100644
index ce29413..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRemove</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when remove node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeRemove',and return false, zTree will not remove node, and will not trigger the 'onRemove' callback.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which was removed.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When remove node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnRemove(event, treeId, treeNode) {
- alert(treeNode.tId + ", " + treeNode.name);
-}
-var setting = {
- callback: {
- onRemove: zTreeOnRemove
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html
deleted file mode 100644
index cd47eae..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode, isCancel)</span><span class="path">setting.callback.</span>onRename</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when remove node.</p>
- <p class="highlight_red">1. If you set 'setting.callback.beforeRename',and return false, zTree will keep the editing name, and will not trigger the 'onRename' callback.</p>
- <p class="highlight_red">2. If you modity treeNode data, and use 'updateNode' function, zTree will not trigger the 'onRename' callback.</p>
- <p class="highlight_red">3. From v3.5.13, zTree will trigger this callback when user cancel edit name. please see 'isCancel' parameter.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which was rename.</p>
- <h4 class="topLine"><b>isCancel</b><span>Boolean</span></h4>
- <p>the status about cancel edit name (v3.5.13+)</p>
- <p class="highlight_red">isCancel = true means: user cancel edit name. (press ESC or use cancelEditName() function)</p>
- <p class="highlight_red">isCancel = false means: user submit edit name.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When rename node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnRename(event, treeId, treeNode, isCancel) {
- alert(treeNode.tId + ", " + treeNode.name);
-}
-var setting = {
- callback: {
- onRename: zTreeOnRename
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html
deleted file mode 100644
index 86b4b01..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html
+++ /dev/null
@@ -1,36 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(event, treeId, treeNode)</span><span class="path">setting.callback.</span>onRightClick</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to capture the event when mouse right click node.</p>
- <p class="highlight_red">If you set 'setting.callback.beforeRightClick',and return false, zTree will not trigger the 'onRightClick' callback.</p>
- <p class="highlight_red">If you set 'setting.callback.onRightClick', zTree will shield the browser context menu when mouse right click on zTree.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>event</b><span>js event Object</span></h4>
- <p>event Object</p>
- <h4 class="topLine"><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which is mouse right clicked</p>
- <p class="highlight_red">If the DOM which mouse right clicked isn't a node, it will return null.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. When mouse right click node, alert info about 'tId' and 'name'.</h4>
- <pre xmlns=""><code>function zTreeOnRightClick(event, treeId, treeNode) {
- alert(treeNode ? treeNode.tId + ", " + treeNode.name : "isRoot");
-};
-var setting = {
- callback: {
- onRightClick: zTreeOnRightClick
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html
deleted file mode 100644
index b8b04cc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>autoCheckTrigger</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When node is automatically checked or unchecked, this parameter used to set to trigger 'beforeCheck / onCheck' callback. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
- <p class="highlight_red">1. If you set 'setting.check.chkboxType' to { "Y": "", "N": "" }, will not automatically checked or unchecked.</p>
- <p class="highlight_red">2. If you turn on the trigger and there are many more nodes, will affect the performance, because the check or uncheck node can cause many nodes to be automatically checked or unchecked, it will trigger a lot of callbacks, according to the need to decide whether to use this feature.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: trigger callback</p>
- <p> false means: don't trigger callback</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. When node is automatically checked or unchecked, zTree trigger 'beforeCheck / onCheck' callback.</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- autoCheckTrigger: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html
deleted file mode 100644
index 98d824e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>chkDisabledInherit</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When the parent node's 'chkDisabled' attribute is true, set the child nodes automatically inherit the 'chkDisabled' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: When add new child nodes, if parent node's 'chkDisabled' attribute is true, the child nodes automatically inherit the 'chkDisabled' attribute.</p>
- <p> false means: When add new child nodes, the child nodes don't inherit the 'chkDisabled' attribute from parent node.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. When add new child nodes, the child nodes automatically inherit the 'chkDisabled' attribute from parent node.</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkDisabledInherit: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html
deleted file mode 100644
index d42e757..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.check.</span>chkStyle</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Use the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p>Default: "checkbox"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>When chkStyle = "checkbox", zTree show checkbox, and '<span class="highlight_red">setting.check.chkboxType</span>' attribute is valid.
-<br/>When chkStyle = "radio", zTree show radio, and '<span class="highlight_red">setting.check.radioType</span>' attribute is valid.</p>
- <p class="highlight_red">Please note that letter case, do not change.</p>
- </div>
- <h3>checkbox States Descriptions</h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p><button type="button" class="chk checkbox_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child nodes have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_false_full_focus"></button></p>
- <p><button type="button" class="chk checkbox_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_false_part_focus"></button></p>
- <p><button type="button" class="chk checkbox_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its all child nodes have been checked.</span> when mouse over: <button type="button" class="chk checkbox_true_full_focus"></button></p>
- <p><button type="button" class="chk checkbox_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child nodes or all have been not checked.</span> when mouse over: <button type="button" class="chk checkbox_true_part_focus"></button></p>
- </div>
- </div>
- <h3>radio States Descriptions</h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p><button type="button" class="chk radio_false_full"></button>not checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_false_full_focus"></button></p>
- <p><button type="button" class="chk radio_false_part"></button>not checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_false_part_focus"></button></p>
- <p><button type="button" class="chk radio_true_full"></button>be checked; <span class="highlight_red">If node is parent, so its child have been not checked.</span> when mouse over: <button type="button" class="chk radio_true_full_focus"></button></p>
- <p><button type="button" class="chk radio_true_part"></button>be checked; (only parent node) <span class="highlight_red">some of its child have been checked.</span> when mouse over: <button type="button" class="chk radio_true_part_focus"></button></p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use radio</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "radio"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html
deleted file mode 100644
index 5cecc9e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">setting.check.</span>chkboxType</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When one node is checked or unchecked, control its parent node and its child node auto checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true &amp; setting.check.chkStyle = "checkbox"]</span></p>
- <p>Default: { "Y": "ps", "N": "ps" }</p>
- </div>
- </div>
- <h3>JSON Format</h3>
- <div class="desc">
- <p>"Y" attribute use to set auto check after checkbox was checked.
-<br/>"N" attribute use to set auto uncheck after checkbox was unchecked.
-<br/>If value has "p", so parent nodes will be checked or unchecked.
-<br/>If value has "s", so child nodes will be checked or unchecked.</p>
- <p class="highlight_red">Please note that letter case, do not change.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. If check the node, so only auto check parent nodes; If uncheck the node, so only auto uncheck child nodes;</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "checkbox",
- chkboxType: { "Y": "p", "N": "s" }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html
deleted file mode 100644
index 0236b5f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>enable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to use checkbox or radio in zTree</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: use the checkbox or radio</p>
- <p> false means: don't use the checkbox or radio</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use the checkbox</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html
deleted file mode 100644
index 758b437..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.check.</span>nocheckInherit</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When the parent node's 'nocheck' attribute is true, set the child nodes automatically inherit the 'nocheck' attribute. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">1. Only be used to initialize the nodes, easy batch operations. Please use the 'updateNode' method modify existing node.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: When add new child nodes, if parent node's 'nocheck' attribute is true, the child nodes automatically inherit the 'nocheck' attribute.</p>
- <p> false means: When add new child nodes, the child nodes don't inherit the 'nocheck' attribute from parent node.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. When add new child nodes, the child nodes automatically inherit the 'nocheck' attribute from parent node.</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- nocheckInherit: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html
deleted file mode 100644
index be867d7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.check.</span>radioType</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The group about radio. It is valid when <span class="highlight_red">[setting.check.enable = true &amp; setting.check.chkStyle = "radio"]</span></p>
- <p>Default: "level"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>When radioType = "level", will be grouped with same level nodes which have the same parent node.
-<br/>When radioType = "all", will be grouped with all nodes.</p>
- <p class="highlight_red">Please note that letter case, do not change.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the group about radio is all nodes.</h4>
- <pre xmlns=""><code>var setting = {
- check: {
- enable: true,
- chkStyle: "radio",
- radioType: "all"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html
deleted file mode 100644
index 71c573e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.keep.</span>leaf</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The leaf node's lock, the leaf node will lock the 'isParent' attribute to false.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can't add child nodes</span>.</p>
- <p> false means: don't lock the leaf node, and <span class="highlight_red">the node which 'isParent' attribute is false can add child nodes</span>.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. lock the leaf node</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- keep: {
- leaf: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html
deleted file mode 100644
index 5bab2f1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.keep.</span>parent</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The parent node's lock, the parent node will lock 'isParent' attribute to true.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute still keep to be true.</span>.</p>
- <p> false means: don't lock the parent node, and <span class="highlight_red">if remove all of the parent node's child nodes, its 'isParent' attribute will change to be false.</span>.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. lock the parent node</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- keep: {
- parent: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html
deleted file mode 100644
index 2678cf2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>checked</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save the checked state.</p>
- <p>Default: "checked"</p>
- <p class="highlight_red">Please don't set the other node attribute which zTree used. (e.g., checkedOld)</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. set the 'isChecked' attribute to save the checked state.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- checked: "isChecked"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html
deleted file mode 100644
index 321a1a7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>children</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save the child nodes.</p>
- <p>Default: "children"</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the 'nodes' attribute to save the child nodes.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- children: "nodes"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html
deleted file mode 100644
index 0208c55..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>name</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save the node name.</p>
- <p>Default: "name"</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the 'ename' attribute to save the node name.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- name: "ename"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html
deleted file mode 100644
index 96540eb..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>title</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save the 'title' attribute of node DOM. It is valid when <span class="highlight_red">[setting.view.showTitle = true]</span></p>
- <p class="highlight_red">If set it to "", the title of node DOM will be same as 'setting.data.key.name' attribute.</p>
- <p>Default: ""</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the 'fullName' attribute to save the title of node DOM.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- title: "fullName"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html
deleted file mode 100644
index e9a08ce..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.key.</span>url</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save the node link's url.</p>
- <p class="highlight_red">Special: If the nodes's data can only use the 'url' attribute, and don't use the link to jump feature, you can modify this attribute to any nonexistent attribute.</p>
- <p>Default: "url"</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the 'xUrl' attribute to save the node link's url.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- key: {
- url: "xUrl"
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html
deleted file mode 100644
index 7ea21db..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.data.simpleData.</span>enable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set zTree's node to accept the simple data format, when zTree is initialized or when ajax get / or when use <span class="highlight_red">addNodes</span> method.</p>
- <p>Don't have to generate the complex nested data.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: zTree's node accept the simple data format.</p>
- <p> false means: zTree's node only accept the nested data format.</p>
- <p class="highlight_red">If set it is true, you must set the other attributes in 'setting.data.simpleData'. (e.g., idKey, pIdKey, rootPId) And let the data satisfy the parent-child relationship.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use the simple data format</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html
deleted file mode 100644
index 43df260..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.simpleData.</span>idKey</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
- <p>Default: "id"</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use the simple data format</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html
deleted file mode 100644
index 8378c6e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.data.simpleData.</span>pIdKey</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node data's attribute to save its parent node data's unique identifier. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
- <p>Default: "pId"</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use the simple data format</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html
deleted file mode 100644
index 61c9bbd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Number</span><span class="path">setting.data.simpleData.</span>rootPId</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set the default value of root's 'pIdKey' specified attribute values​​. It is valid when <span class="highlight_red">[setting.data.simpleData.enable = true]</span></p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. use the simple data format</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0
- }
- }
-};
-var treeNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html
deleted file mode 100644
index 804ee66..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>autoExpandTrigger</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag node cause the parent node is automatically expanded, set whether to allow to trigger the 'onExpand' callback. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: trigger the 'onExpand' callback.</p>
- <p> false means: don't trigger the 'onExpand' callback.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set to allow to trigger the 'onExpand' callback</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- autoExpandTrigger: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html
deleted file mode 100644
index 74982af..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>autoOpenTime</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Drag to the parent node, the parent node auto expand time interval. (Unit: ms) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: 500</p>
- <p class="highlight_red">Please adjust the value according to needs.</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. When drag node to other parent node, expand it at once.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- autoOpenTime: 0
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html
deleted file mode 100644
index edbb752..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMax</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag a node to root, the zTree's inner border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: 10</p>
- <p class="highlight_red">Please adjust the value according to needs.</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. adjust the inner border width is 20px</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- borderMax: 20
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html
deleted file mode 100644
index e845853..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>borderMin</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag a node to root, the zTree's outer border width. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: -5</p>
- <p class="highlight_red">Please adjust the value according to needs.</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. adjust the outer border width is 10px</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- borderMin: -10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html
deleted file mode 100644
index 1065df3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html
+++ /dev/null
@@ -1,60 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>inner</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag one node to the target node, set whether to allow the node to be the target node's child. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
- <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, next' together, to achieve full functionality.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: allow the node to be the target node's child.</p>
- <p> false means: don't allow the node to be the target node's child.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which has been dragged</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the target node which treeNodes are draged over.</p>
- <p class="highlight_red">If the treeNodes will be root node, the targetNode = null</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to drag the node to the target node's inner.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: true,
- inner: false
- }
- }
-};
-......</code></pre>
- <h4>2. disable to drag the node to be root node's child.</h4>
- <pre xmlns=""><code>function canInner(treeId, nodes, targetNode) {
- return !(targetNode && targetNode.level === 0);
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: true,
- inner: canInner
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html
deleted file mode 100644
index 1207d2a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isCopy</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag-drop node, set whether to allow to copy node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Rules Description</h3>
- <div class="desc">
- <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p>
- <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
- <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
- <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. all of the drag-drop operation will copy node.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- isCopy: true,
- isMove: false
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html
deleted file mode 100644
index e4a7ca3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.drag.</span>isMove</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag-drop node, set whether to allow to move node. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Rules Description</h3>
- <div class="desc">
- <p>1. If isCopy = true and isMove = true, when drag-drop node, press Ctrl-Key or Cmd-key can copy node, don't press Ctrl-Key or Cmd-key can move node.</p>
- <p>2. If isCopy = true and isMove = false, when drag-drop node, will copy node.</p>
- <p>3. If isCopy = false and isMove = true, when drag-drop node, will move node.</p>
- <p>4. If isCopy = false and isMove = false, so disable to drag-drop node.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. all of the drag-drop operation will move node.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- isCopy: false,
- isMove: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html
deleted file mode 100644
index dbc3ae4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>maxShowNodeNum</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When dragging more than one sibling node, the floating layer shows the maximum number of nodes. zTree using '...' instead of redundant nodes. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: 5</p>
- <p class="highlight_red">Please adjust the value according to needs.</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the maximum number is 10</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- maxShowNodeNum: 10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html
deleted file mode 100644
index 8270a99..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">setting.edit.drag.</span>minMoveSize</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The minimum offset which used to determine the drag operator start. (Unit: px) It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p class="highlight_red">Please adjust the value according to needs. Note: If it is too small, will easily lead to misoperation when you click mouse.</p>
- <p>Default: 5</p>
- </div>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the minimum offset is 10px.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- minMoveSize: 10
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html
deleted file mode 100644
index 82eb6fb..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>next</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag one node to the target node, set whether to allow the node to be the target node's next sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
- <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'prev, inner' together, to achieve full functionality.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: allow the node to be the target node's next sibling.</p>
- <p> false means: don't allow the node to be the target node's next sibling.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which has been dragged</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the target node which treeNodes are draged over.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to drag the node to the target node's next sibling.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: false,
- inner: true
- }
- }
-};
-......</code></pre>
- <h4>2. disable to drag the node to be all of the parent nodes's next sibling.</h4>
- <pre xmlns=""><code>function canNext(treeId, nodes, targetNode) {
- return !targetNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: true,
- next: canNext,
- inner: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html
deleted file mode 100644
index de6f0c8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNodes, targetNode)</span><span class="path">setting.edit.drag.</span>prev</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p class="highlight_red">If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.</p>
- <p class="highlight_red">This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: allow the node to be the target node's previous sibling.</p>
- <p> false means: don't allow the node to be the target node's previous sibling.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>A collection of the nodes which has been dragged</p>
- <h4 class="topLine"><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the target node which treeNodes are draged over.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return true or false</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. disable to drag the node to the target node's previous sibling.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- drag: {
- prev: false,
- next: true,
- inner: true
- }
- }
-};
-......</code></pre>
- <h4>2. disable to drag the node to be all of the parent nodes's previous sibling.</h4>
- <pre xmlns=""><code>function canPrev(treeId, nodes, targetNode) {
- return !targetNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- drag: {
- prev: canPrev,
- next: true,
- inner: true
- }
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html
deleted file mode 100644
index a030359..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.</span>editNameSelectAll</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When edit node's name, the text in input is selected or unselected. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: when show the input, the text in input is selected</p>
- <p> false means: when show the input, the text in input is not selected</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. When edit node's name, the text in input is selected.</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- editNameSelectAll: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html
deleted file mode 100644
index ec9d2b3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.edit.</span>enable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set zTree is in edit mode</p>
- <p class="highlight_red">Please set this attribute before zTree initialization. If you need to change the edit mode after the initialization, please use zTreeObj.setEditable() method.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: zTree is in edit mode.</p>
- <p> false means: zTree is not in edit mode.</p>
- </div>
- <h3>Editing Rules Description</h3>
- <div class="desc">
- <p>1. When click the node, it will not open '<span class="highlight_red">node.url</span>' specified URL.
-<br/>2. Support for dynamic tree editing.
-<br/>3. You can drag-drop nodes, and support drag-drop nodes between multiple trees.
-<br/>4. Support use drag-drop to copy or move the node. (Reference: <span class="highlight_red">setting.edit.drag.isCopy / setting.edit.drag.isMove</span>)
-<br/>5. You can use the Edit button to modify the name attribute.
-<br/>6. You can use the Remove button to remove the node.
-<br/>
- </p>
- <p class="highlight_red">Please note that letter case, do not change.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. edit the tree</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html
deleted file mode 100644
index e217527..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>the title of the remove button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true]</span></p>
- <p>Default: "remove"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>When the mouse over the remove button, the browser auto pop-up message content.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which show the remove button</p>
- <h4 class="topLine"><b>Return </b><span>String</span></h4>
- <p>Return value is same as 'String Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Set title is 'remove the node' about all the remove button</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRemoveBtn: true,
- removeTitle: "remove the node"
- }
-};
-......</code></pre>
- <h4>2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node</h4>
- <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) {
- return treeNode.isParent ? "remove the parent node":"remove the leaf node";
-}
-var setting = {
- edit: {
- enable: true,
- showRemoveBtn: true,
- removeTitle: setRemoveTitle
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html
deleted file mode 100644
index b8ce5a6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>renameTitle</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>the title of the rename button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRenameBtn = true]</span></p>
- <p>Default: "rename"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>When the mouse over the rename button, the browser auto pop-up message content.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which show the rename button</p>
- <h4 class="topLine"><b>Return </b><span>String</span></h4>
- <p>return value is same as 'String Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Set title is 'rename the node' about all the rename button</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRenameBtn: true,
- renameTitle: "rename the node"
- }
-};
-......</code></pre>
- <h4>2. Set title is 'rename the parent node' about the parent node, and is 'rename the leaf node' about the leaf node</h4>
- <pre xmlns=""><code>function setRenameTitle(treeId, treeNode) {
- return treeNode.isParent ? "rename the parent node":"rename the leaf node";
-}
-var setting = {
- edit: {
- enable: true,
- showRenameBtn: true,
- renameTitle: setRenameTitle
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html
deleted file mode 100644
index f0f1fe1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRemoveBtn</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to show or hide the remove button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>When you click the remove button:</p>
- <p>1. zTree will trigger the <span class="highlight_red">setting.callback.beforeRemove</span> callback, and you can decide whether to allow delete.</p>
- <p>2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRemove</span> callback after remove the node.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: show the remove button</p>
- <p> false means: hide the remove button</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which show the remove button</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>Return value is same as 'Boolean Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Hide the remove button</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRemoveBtn: false
- }
-};
-......</code></pre>
- <h4>2. Hide the remove button of parent node</h4>
- <pre xmlns=""><code>function setRemoveBtn(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- showRemoveBtn: setRemoveBtn
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html
deleted file mode 100644
index 4fe2f58..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>showRenameBtn</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to show or hide the rename button. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p>When you click the rename button:</p>
- <p>1. Click the rename button, you can rename the node.</p>
- <p>2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the <span class="highlight_red">setting.callback.beforeRename</span> callback, and you can decide whether to allow rename.</p>
- <p>3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.</p>
- <p>4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the <span class="highlight_red">setting.callback.onRename</span> callback after rename the node.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: show the rename button</p>
- <p> false means: hide the rename button</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which show the rename button</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>Return value is same as 'Boolean Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Hide the rename button</h4>
- <pre xmlns=""><code>var setting = {
- edit: {
- enable: true,
- showRenameBtn: false
- }
-};
-......</code></pre>
- <h4>2. Hide the rename button of parent node</h4>
- <pre xmlns=""><code>function setRenameBtn(treeId, treeNode) {
- return !treeNode.isParent;
-}
-var setting = {
- edit: {
- enable: true,
- showRenameBtn: setRenameBtn
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html
deleted file mode 100644
index e4b04b3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">setting.</span>treeId</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree unique identifier. After the initialization, it equals to the id attribute value of the user-defined zTree container.</p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- </div>
- </div>
-
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html
deleted file mode 100644
index 30eb66c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Object</span><span class="path">setting.</span>treeObj</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>zTree DOM's jQuery object, the main function: easy to internal operations.</p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- </div>
- </div>
-
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html
deleted file mode 100644
index fa22bef..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addDiyDom</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>This function used to display the custom control on the node.</p>
- <p class="highlight_red">1. If you have huge node data, please note: this function will affect the initialization performance. If not required, it is recommended not to use this function.</p>
- <p class="highlight_red">2. This function is an advanced application, please make sure that a better understanding of zTree before you use it.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which display the custom control.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Display button in all nodes.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addDiyDom: addDiyDom
- }
-};
-function addDiyDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt; &lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html
deleted file mode 100644
index 1ea8b6d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to display custom control when mouse move over the node. (e.g. the rename and remove button)</p>
- <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.removeHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to display the custom control.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addHoverDom: addHoverDom,
- removeHoverDom: removeHoverDom,
- ......
- }
-};
-function addHoverDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt;&nbsp;&lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-function removeHoverDom(treeId, treeNode) {
- $("#diyBtn_"+treeNode.id).unbind().remove();
- $("#diyBtn_space_" +treeNode.id).unbind().remove();
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html
deleted file mode 100644
index 44ab90d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>autoCancelSelected</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When click the selected node while pressing the Ctrl-key or Cmd-key, allow to cancel selected the node.</p>
- <p class="highlight_red">If you don't need this function, please set to false.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: press the Ctrl-key or Cmd-key, can cancel selected node.</p>
- <p> false means: press the Ctrl-key or Cmd-key, can't cancel selected node.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Press the Ctrl-key or Cmd-key, can't cancel selected node.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- autoCancelSelected: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html
deleted file mode 100644
index 2517624..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: When double-click the parent node, zTree will expand the parent node.</p>
- <p> false means: When double-click the parent node, zTree will not expand the parent node.</p>
- </div>
- <h3>Function Pamameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which be double-clicked.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>Return value is same as 'Boolean Format'</p>
- </div>
- <h3>Example of setting</h3>
- <h4>1. When double-click the parent node, zTree will not expand the parent node.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- dblClickExpand: false
- }
-};
-......</code></pre>
- <h4>2. When double-click the parent node, zTree will expand the parent node which level>0.</h4>
- <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) {
- return treeNode.level > 0;
-};
-var setting = {
- view: {
- dblClickExpand: dblClickExpand
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html
deleted file mode 100644
index 1911e74..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The animation speed of expand or collapse node. As same as 'speed' parameter in jQuery</p>
- <p class="highlight_red">In order to ensure zTree operating speed, if use the IE6, zTree will not use animation.</p>
- <p>Default: "fast"</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>e.g. "slow", "normal", or "fast"</p>
- <p class="highlight_red">If set to "", zTree will not use animation.</p>
- </div>
- <h3>Number Format</h3>
- <div class="desc">
- <p>How long the animation will run. [Unit: ms] (e.g. 1000)</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set the animation speed to slow</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- expandSpeed: "slow"
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html
deleted file mode 100644
index 1ad5f51..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON / Function(treeId, treeNode)</span><span class="path">setting.view.</span>fontCss</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Personalized text style, only applies to &lt;A&gt; object in the node DOM</p>
- <p>Default: {}</p>
- </div>
- </div>
- <h3>JSON Format</h3>
- <div class="desc">
- <p>As same as .css() method in jQuery. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which use the personalized text style</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>Return value is same as 'JSON Format'. e.g. <span class="highlight_red">{color:"#ff0011", background:"blue"}</span></p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Don't modify css file, and set the node name's color to red</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- fontCss : {color:"red"}
- }
-};</code></pre>
- <h4>2. Don't modify css file, and set the root node name's color to red</h4>
- <pre xmlns=""><code>function setFontCss(treeId, treeNode) {
- return treeNode.level == 0 ? {color:"red"} : {};
-};
-var setting = {
- view: {
- fontCss: setFontCss
- }
-};</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html
deleted file mode 100644
index 4fe19ad..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to use HTML in 'name' attribute.</p>
- <p class="highlight_red">If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: 'name' attribute can be HTML.</p>
- <p> false means: 'name' attribute is only TEXT.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Set to allow HTML</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- nameIsHTML: true
- }
-};
-var node = {"name":"&lt;font color='red'&gt;test&lt;/font&gt;"};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html
deleted file mode 100644
index 0c70aff..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>removeHoverDom</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to hide custom control when mouse move out the node. (e.g. the rename and remove button)</p>
- <p class="highlight_red">If you use this function, so must set <span class="highlight_red">setting.view.addHoverDom</span>, please make sure that a better understanding of zTree before you use it.</p>
- <p>Default: null</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to hide the custom control.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Display a button when mouse move over the node, and hide the button when mouse move out.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addHoverDom: addHoverDom,
- removeHoverDom: removeHoverDom,
- ......
- }
-};
-function addHoverDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt;&nbsp;&lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-function removeHoverDom(treeId, treeNode) {
- $("#diyBtn_"+treeNode.id).unbind().remove();
- $("#diyBtn_space_" +treeNode.id).unbind().remove();
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html
deleted file mode 100644
index 074fb68..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>selectedMulti</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set whether to allow select multiple nodes.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true mean: you can select multiple nodes.</p>
- <p> false mean: you can only select one node.</p>
- <p class="highlight_red">1. Press Ctrl-key or Cmd-key, you can select multiple nodes.</p>
- <p class="highlight_red">2、This attribute don't affect the feature of cancel select node. ( please see setting.view.autoCancelSelected )</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Only select one node.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- selectedMulti: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html
deleted file mode 100644
index 9adf003..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showIcon</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to show or hide node icon.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: show node icon.</p>
- <p> false means: hide node icon.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to show icon.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>Return value is same as 'Boolean Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Hide node icon</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showIcon: false
- }
-};
-......</code></pre>
- <h4>2. Hide node icon which level=2</h4>
- <pre xmlns=""><code>function showIconForTree(treeId, treeNode) {
- return treeNode.level != 2;
-};
-var setting = {
- view: {
- showIcon: showIconForTree
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html
deleted file mode 100644
index a554014..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>showLine</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to show or hide line.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: show line.</p>
- <p> false means: hide line.</p>
- </div>
- <h3>Examples of setting</h3>
- <h4>1. Hide line</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showLine: false
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html
deleted file mode 100644
index 66bb26e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>showTitle</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to show or hide the 'title' attribute of node DOM.</p>
- <p class="highlight_red">Please see the <span class="highlight_red">setting.data.key.title</span> attribute</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: show the 'title' attribute of node DOM.</p>
- <p> false means: hide the 'title' attribute of node DOM.</p>
- <p class="highlight_red">When setting.view.showTitle = true & setting.data.key.title = '', zTree will set the 'setting.data.key.name' attribute to the 'setting.data.key.title'.</p>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to show title.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>Return value is same as 'Boolean Format'</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Hide the 'title' attribute of node DOM.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- showTitle: false
- }
-};
-......</code></pre>
- <h4>2. Hide the 'title' attribute of node DOM which level=2.</h4>
- <pre xmlns=""><code>function showTitleForTree(treeId, treeNode) {
- return treeNode.level != 2;
-};
-var setting = {
- view: {
- showTitle: showTitleForTree
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html
deleted file mode 100644
index a380930..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">setting.view.</span>txtSelectedEnable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set to allow or don't allow to select the text which in zTree's DOM.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: Allow to select the txt which in zTree's DOM.</p>
- <p> false means: Don't allow to select the txt which in zTree's DOM.</p>
- </div>
- <h3>Examples of setting & function</h3>
- <h4>1. Allow to select the txt which in zTree's DOM.</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- txtSelectedEnable: true
- }
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html
deleted file mode 100644
index 48efb79..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">treeNode.</span>check_Child_State</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to record the node's half-checked state about its all child nodes's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">zTree v3.x provides treeNode.getCheckStatus () method to get an accurate the half-checked status.</p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- <p>Default: true</p>
- </div>
- </div>
- <h3>Number Format</h3>
- <div class="desc">
- <p>Rules:</p>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
- <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr>
- </thead>
- <tbody>
- <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr>
- <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr>
- <tr><td>1</td><td>Some of the child nodes has been checked.</td></tr>
- <tr><td>2</td><td>All of the child nodes has been checked.</td></tr>
- </tbody>
- </table>
- <br/>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
- <tr><td>treeNode.check_Child_State</td><td>Checked Status Description</td></tr>
- </thead>
- <tbody>
- <tr><td>-1</td><td>Has no child nodes or all child nodes's 'nocheck' attribute is true.</td></tr>
- <tr><td>0</td><td>All of the child nodes has not been checked.</td></tr>
- <tr><td>2</td><td>Some of the child nodes has been checked.</td></tr>
- </tbody>
- </table>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html
deleted file mode 100644
index 77b7359..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>check_Focus</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to record the status which the checkbox or radio get focus. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: mouse move over the checkbox</p>
- <p>false means: mouse move out the checkbox</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html
deleted file mode 100644
index 8a55f3d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>checked</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The checked status about node's checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
- <p class="highlight_red">1. If change the 'checked' to other attribute, please set the 'setting.data.key.checked' attribute.</p>
- <p class="highlight_red">2. If you create node data, and set 'checked' attribute to true, zTree will check this node's checkbox or radio when zTree is initialized.</p>
- <p class="highlight_red">3. Use the treeObj.checkNode or checkAllNodes or updateNode method, you can check or uncheck the node. Please see the API about these methods.</p>
- <p class="highlight_red">4. zTree support identification string 'true' & 'false'.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: check the checkbox or radio when zTree is initialized.</p>
- <p>false means: uncheck the checkbox or radio when zTree is initialized.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. check the checkbox when zTree is initialized</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1", checked:true },
-{ "id":2, "name":"test2", checked:true }
-]</code></pre>
- <h4>2. Get the checked status of the first root node</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var checked = treeObj.getNodes()[0].checked;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html
deleted file mode 100644
index ee51626..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>checkedOld</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The checked status about node's checkbox or radio when zTree was initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
- <p class="highlight_red">1. Do not initialize it, it will be initialized when the node is initialized.</p>
- <p class="highlight_red">2. If you need to achieve special features, you can use the zTreeObj.getChangeCheckedNodes method and modify the value of 'checkedOld' attribute.</p>
- <p>Default: the value of 'checked' attribute when zTree is initialized</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: the checkbox or radio is checked when zTree is initialized.</p>
- <p>false means: the checkbox or radio is not checked when zTree is initialized.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the original checked status of the first root node</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var checkedOld = treeObj.getNodes()[0].checkedOld;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html
deleted file mode 100644
index d765bb9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Array(JSON)</span><span class="path">treeNode.</span>children</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The data collections of node's child nodes.</p>
- <p class="highlight_red">1. If change the 'children' to other attribute, please set the 'setting.data.key.children' attribute.</p>
- <p class="highlight_red">2. If you set to use dynamic tree, when a node is expanded which 'isParent' attribute is true and which has no child nodes, zTree will use ajax to get its child nodes.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>Array(JSON) Format</h3>
- <div class="desc">
- <p>Standard JSON Data object</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Use the standard JSON data object.</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1",
- children: [
- { "id":3, "name":"test3"},
- { "id":4, "name":"test4"},
- { "id":5, "name":"test5"}
- ]
-},
-{ "id":2, "name":"test2" }
-]</code></pre>
- <h4>2. Get the first root node's child nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes()[0].children;
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html
deleted file mode 100644
index 7a5fcf3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>chkDisabled</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>1. Set node's checkbox / radio to disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>
- <p class="highlight_red">3. Please don't change this attribute of the nodes which have been created. If you want to disable or undisable the nodes, please use 'setChkDisabled()' methods.</p>
- <p class="highlight_red">4. When zTree initialize the nodes, if you need to the child nodes automatically inherit the 'chkDisabled' attribute, please see 'setting.check.chkDisabledInherit'.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p class="highlight_red">true means: this node's checkbox / radio is disabled.</p>
- <p class="highlight_red">false means: this node's checkbox / radio is able.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. disable some node's checkbox / radio </h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "checked":true, "chkDisabled":true},
- { "id":2, "name":"test2", "chkDisabled":true},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html
deleted file mode 100644
index 1f9db62..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>click</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Simple click event operations. As same as : (onclick ="...") the code. If the operation is more complex, please use the onClick callback.</p>
- <p class="highlight_red">Because IE is different to other browsers in operating the event of ‘onclick’ and ‘click’ coexistence, please do not use this parameter to control whether to allow the redirection operation (for example: treeNode.click = "return false;"). If there is similar requirements, please do not use the 'url' attribute to save the website address, but use the 'onClick' callback to control jumps.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>Standard javascript syntax, for example: alert ("test"); etc.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. When click this node, will alert msg.</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"Google CN", "url":"http://g.cn", "click":"alert('test');"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html
deleted file mode 100644
index 68c39ba..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html
+++ /dev/null
@@ -1,15 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>?</span><span class="path">treeNode.</span>* DIY *</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to save other custom data of node, do not use the same attribute name with ztree used, the user can freely set.</p>
- </div>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Use 'ename' attribute to save more info</h4>
- <pre xmlns=""><code>var node = { "id":1, "name":"test1", "ename":"test eName"};</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html
deleted file mode 100644
index f60ef2a..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>editNameFlag</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to save the node editing name status. It is valid when <span class="highlight_red">[setting.edit.enable = true]</span></p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: node is being edited.</p>
- <p>false means: node is not being edited.</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html
deleted file mode 100644
index 3c9a2e6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getCheckStatus</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the node's half-checked status of checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return</b><span>JSON</span></h4>
- <pre xmlns=""><code>{
- checked: true, //As same as 'treeNode.checked'
- half: true //Rule the table below
-}</code></pre>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "checkbox"</td></tr>
- <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
- </thead>
- <tbody>
- <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>0</td><td>false</td><td>true</td></tr>
- <tr><td>true</td><td>1</td><td>false</td><td>true</td></tr>
- <tr><td>true</td><td>2</td><td>false</td><td>false</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>1</td><td>false</td><td>true</td></tr>
- <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
- </tbody>
- </table>
- <br/>
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <thead>
- <tr><td colspan="4">setting.check.checkType = "radio"</td></tr>
- <tr><td>treeNode.checked</td><td>treeNode.check_Child_State</td><td>treeNode.halfCheck</td><td> half </td></tr>
- </thead>
- <tbody>
- <tr><td>-</td><td>-</td><td>true</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>true</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>true</td><td>2</td><td>false</td><td>true</td></tr>
- <tr><td colspan="4">&nbsp;</td></tr>
- <tr><td>false</td><td>-1</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>0</td><td>false</td><td>false</td></tr>
- <tr><td>false</td><td>2</td><td>false</td><td>true</td></tr>
- </tbody>
- </table>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first root node's half-checked status</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var halfCheck = treeObj.getNodes()[0].getCheckStatus();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html
deleted file mode 100644
index 755aa6e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the treeNode's next sibling node.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return</b><span>JSON</span></h4>
- <p>JSON data object of the treeNode's next sibling node</p>
- <p class="highlight_red">If have not the next node, return null.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's next sibling node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getNextNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html
deleted file mode 100644
index 16bab30..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getParentNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the treeNode's parent node.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return</b><span>JSON</span></h4>
- <p>JSON data object of treeNode's parent node.</p>
- <p class="highlight_red">If treeNode is root, return null.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's parent node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getParentNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html
deleted file mode 100644
index f6745b1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">treeNode.</span>getPreNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the treeNode's previous sibling node.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return</b><span>JSON</span></h4>
- <p>JSON data object of the treeNode's previous sibling node</p>
- <p class="highlight_red">If have not the previous node, return null.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's previous sibling node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var node = sNodes[0].getPreNode();
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html
deleted file mode 100644
index 8375326..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>halfCheck</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Force node checkBox / radio to the half-checked status. It is valid when <span class="highlight_red">[setting.check.enable = true & treeNode.nocheck = false]</span></p>
- <p class="highlight_red">1. If you force to the half-checked status, zTree will not automatically calculated the half-checked status about this node.</p>
- <p class="highlight_red">2. Until you set treeNode.halfCheck to false or null, zTree will automatically calculated the half-checked status about this node.</p>
- <p class="highlight_red">3. zTree support identification string 'true' & 'false'.</p>
- <p>Defaul: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: the checkbox or radio is half-checked when zTree is initialized.</p>
- <p>false means: the half-checked status will be automatically calculated</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. set the half-checked status when zTree is initialized</h4>
- <pre xmlns=""><code>var nodes = [
-{ "id":1, "name":"test1", isParent:true, checked:true, halfCheck:true },
-{ "id":2, "name":"test2", isParent:true, checked:false, halfCheck:true },
-{ "id":3, "name":"test3", isParent:true, checked:true },
-{ "id":4, "name":"test4", isParent:true, checked:false }
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html
deleted file mode 100644
index 4e1c99f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>icon</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>URL path of node's custom icon.</p>
- <p class="highlight_red">1. If you only set the 'icon' attribute to parent node, the parent node will only show one icon when it is expanded or collapsed.</p>
- <p class="highlight_red">2. If you need to show two icons when it is expanded or collapsed, please set the 'treeNode.iconOpen' and 'treeNode.iconClose' attribute.</p>
- <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>Icon image url can be a relative path or absolute path.</p>
- <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Set the custom icon</h4>
- <pre xmlns=""><code>var nodes = [
- //Only show one icon when it is expanded or collapsed.
- { name:"Parent Node 1", icon:"/img/parent.gif"},
-
- //Show two icons when it is expanded or collapsed.
- { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //the custom icon for leaf node
- { name:"Leaf Node", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html
deleted file mode 100644
index 2259e8f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconClose</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>URL path of parent node's custom icon when it is collapsed.</p>
- <p class="highlight_red">1. Only parent node support this attribute.</p>
- <p class="highlight_red">2. This attribute must be used simultaneously with 'iconOpen' attribute.</p>
- <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>Icon image url can be a relative path or absolute path.</p>
- <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Set the custom icon</h4>
- <pre xmlns=""><code>var nodes = [
- //Only show one icon when it is expanded or collapsed.
- { name:"Parent Node 1", icon:"/img/parent.gif"},
-
- //Show two icons when it is expanded or collapsed.
- { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //the custom icon for leaf node
- { name:"Leaf Node", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html
deleted file mode 100644
index 3203615..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconOpen</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>URL path of parent node's custom icon when it is expanded.</p>
- <p class="highlight_red">1. Only parent node support this attribute.</p>
- <p class="highlight_red">2. This attribute must be used simultaneously with 'iconClose' attribute.</p>
- <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>Icon image url can be a relative path or absolute path.</p>
- <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Set the custom icon</h4>
- <pre xmlns=""><code>var nodes = [
- //Only show one icon when it is expanded or collapsed.
- { name:"Parent Node 1", icon:"/img/parent.gif"},
-
- //Show two icons when it is expanded or collapsed.
- { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
-
- //the custom icon for leaf node
- { name:"Leaf Node", icon:"/img/leaf.gif"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html
deleted file mode 100644
index fca7fbf..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>iconSkin</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The className of node's custom icon.</p>
- <p class="highlight_red">1. You need to modify the css, add the definition of className.</p>
- <p class="highlight_red">2. The css is simple, convenient, and support the parent node to switch icons when it is expanded or collapsed.</p>
- <p class="highlight_red">3. Recommend the use of CSS Sprites, can reduce repeating load the image, to avoid image flicker.</p>
- <p class="highlight_red">4. The 'iconSkin' support IE6 in zTree v3.x.</p>
- <p class="highlight_red">5. If you need to use image's URL to set the custom icon, please set the 'treeNode.icon' or 'treeNode.iconOpen' or 'treeNode.iconClose' attribute.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>The string about custom icon's className.</p>
- </div>
- <h3>Examples of css & treeNode</h3>
- <h4>1. Set the custom icon</h4>
- <pre xmlns=""><code>css example:
-.ztree li span.button.diy01_ico_open, .ztree li span.button.diy01_ico_close{...}
-
-.ztree li span.button.diy02_ico_open{...}
-.ztree li span.button.diy02_ico_close{...}
-
-.ztree li span.button.diy03_ico_docu{...}
-
-node's data example:
-var nodes = [
- //Only show one icon when it is expanded or collapsed.
- { name:"Parent Node 1", iconSkin:"diy01"},
-
- //Show two icons when it is expanded or collapsed.
- { name:"Parent Node 2", iconSkin:"diy02"},
-
- //the custom icon for leaf node
- { name:"Leaf Node", iconSkin:"diy03"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html
deleted file mode 100644
index ddadf41..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isAjaxing</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the node's child nodes being loaded asynchronously.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the node's child nodes is being loaded asynchronously</p>
- <p> false means: the node's child nodes is not being loaded asynchronously</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first selected node's child nodes being loaded asynchronously</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isAjaxing = sNodes[0].isAjaxing;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html
deleted file mode 100644
index a8ee61c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isFirstNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the node is the sibling nodes's first node.</p>
- <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the node is first node.</p>
- <p> false means: the node is not first node.</p>
- <p class="highlight_red">If the node has been hidden, isFirstNode = false</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first selected node is the sibling nodes's first node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isFirstNode = sNodes[0].isFirstNode;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html
deleted file mode 100644
index 3a07b94..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isHidden</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the node has been hidden.</p>
- <p class="highlight_red">1. When initialize zTree, the nodes which be set 'isHidden = true' will be hidden.</p>
- <p class="highlight_red"></p>
- <p class="highlight_red">2. Please don't change this attribute of the nodes which have been created. If you want to hide or show nodes, please use 'hideNode() / hideNodes() / showNode() / showNodes()' methods.</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: this node is hidden.</p>
- <p> false means: this node is shown.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first root node has been hidden.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getNodes();
-if (sNodes.length > 0) {
- var isHidden = sNodes[0].isHidden;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html
deleted file mode 100644
index e18ed0c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isHover</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to record the hover status of node's DOM. For 'setting.view.addHoverDom / removeHoverDom'.</p>
- <p class="highlight_red">Do not initialize or modify it, it is an internal argument.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p>true means: the node's DOM is in hover.</p>
- <p>false means: the node's DOM is not in hover.</p>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html
deleted file mode 100644
index cd2ca26..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the node is the sibling nodes's last node.</p>
- <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the node is last node.</p>
- <p> false means: the node is not last node.</p>
- <p class="highlight_red">If the node has been hidden, isLastNode = false</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first selected node is the sibling nodes's last node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isLastNode = sNodes[0].isLastNode;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html
deleted file mode 100644
index dad4b81..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>isParent</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the node is the parent node.</p>
- <p class="highlight_red">1. When zTree initialize the node data, the node which has children is set to true, otherwise false.</p>
- <p class="highlight_red">2. When zTree initialize the node data, if set treeNode.isParent to true, the node will be set to be parent node.</p>
- <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the node is parent node.</p>
- <p> false means: the node is not parent node.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first selected node is the parent node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isParent = sNodes[0].isParent;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html
deleted file mode 100644
index d151162..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Number</span><span class="path">treeNode.</span>level</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The level of node</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>Number Format</h3>
- <div class="desc">
- <p class="highlight_red">The root node's level = 0, and next level = 1, ...</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's level</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var level = sNodes[0].level;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html
deleted file mode 100644
index fa508cc..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>name</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The node's name</p>
- <p class="highlight_red">1. If you want to change 'name' attribute, please modify the 'setting.data.key.name' attribute.</p>
- <p>Default: undenfined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>String object. The HTML special characters are escaped</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Set node's name to 'test1', 'test2', 'test3'</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1"},
- { "id":2, "name":"test2"},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html
deleted file mode 100644
index 6c4880c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>nocheck</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>1. Set node to hide the checkbox or radio. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">2. zTree support identification string 'true' & 'false'.</p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p class="highlight_red">true means: the node hide the checkbox or radio, and don't affect the checked association, and don't affect its parent node's half-checked status.</p>
- <p class="highlight_red">false means: the node show the checkbox or radio.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Hide some node's checkbox / radio </h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "nocheck":true},
- { "id":2, "name":"test2"},
- { "id":3, "name":"test3"}
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html
deleted file mode 100644
index bc910de..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>open</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to record the parent node's expand status.</p>
- <p class="highlight_red">1. When zTree initialize the node data, if you set treeNode.open = true, zTree will default expand this parent node.</p>
- <p class="highlight_red">2. Leaf node's 'open' attribute is false.</p>
- <p class="highlight_red">3. In order to solve the problem of someone make json data, supporting "false", "true" format of the data string.</p>
- <p class="highlight_red">4. When setting.async.enable = false, the parent node will be expanded which have no child nodes and its attribute 'open' is true. (v3.5.15+) </p>
- <p>Default: false</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the parent node is expanded.</p>
- <p> false means: the parent node is collapsed.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's expand status.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var isOpen = sNodes[0].open;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html
deleted file mode 100644
index 0bc2a6d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>parentTId</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The unique identifier of node's parent node.</p>
- <p class="highlight_red">1. zTree v3.x using 'parentTId' replaced the original 'parentNode' attribute, and increased getParentNode () method, in order to avoid the original 'parentNode' cause the clone () method infinite loop.</p>
- <p class="highlight_red">2. Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>String object of node's parent node's tId. please see API about 'treeNode.tId'</p>
- <p class="highlight_red">If treeNode is root node, parentTId is null.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's parent node's tId</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var parentTId = sNodes[0].parentTId;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html
deleted file mode 100644
index 18c2855..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>tId</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The unique identifier of node.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>tId rules: setting.treeId + "_" + zTree counter</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Get the first selected node's tId</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var tId = sNodes[0].tId;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html
deleted file mode 100644
index 176a7a3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>target</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Used to set the target where the node is clicked to open url. It is valid when <span class="highlight_red">[treeNode.url exists]</span></p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>As same as &lt;a&gt; tag's 'target' attribute. e.g. '_blank', '_self' or other window name.</p>
- <p>if this attribute is omitted, zTree default set it to '_blank'</p>
- </div>
- <h3>Exmaples of treeNode</h3>
- <h4>1. Set target is '_blank'</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html
deleted file mode 100644
index 5552445..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>String</span><span class="path">treeNode.</span>url</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The URL of node link</p>
- <p class="highlight_red">1. In edit mode (setting.edit.enable = true) , this feature fails. If you must use a similar feature, please use the 'onClick' callback for their own control.</p>
- <p class="highlight_red">2. If you use the 'onClick' callback function to control opening URL , then set the URL in the other custom attribute, do not use the 'url' attribute.</p>
- <p>Default: undefined</p>
- </div>
- </div>
- <h3>String Format</h3>
- <div class="desc">
- <p>As same as &lt;a&gt; tag's 'href' attribute.</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Set the URL is 'g.cn'</h4>
- <pre xmlns=""><code>var nodes = [
- { "id":1, "name":"Google CN", "url":"http://g.cn"},
- ......
-]</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html b/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html
deleted file mode 100644
index b3ff414..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Boolean</span><span class="path">treeNode.</span>zAsync</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Judge whether the parent node's child nodes will be loaded asynchronously when the parent node is expanded.</p>
- <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
- <p class="highlight_red">Default:false (the parent node which have no child nodes); true (the parent node which have child nodes or the leaf node)</p>
- </div>
- </div>
- <h3>Boolean Format</h3>
- <div class="desc">
- <p> true means: the node's child nodes will not be loaded asynchronously when the parent node is expanded.</p>
- <p> false means: the node's child nodes will be loaded asynchronously when the parent node is expanded.</p>
- <p class="highlight_red"> This attribute will not effect to 'reAsyncChildNodes()' method</p>
- </div>
- <h3>Examples of treeNode</h3>
- <h4>1. Judge whether the first selected node's child nodes has been loaded asynchronously</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var sNodes = treeObj.getSelectedNodes();
-if (sNodes.length > 0) {
- var zAsync = sNodes[0].zAsync;
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html
deleted file mode 100644
index 680ccc4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode, newNodes, isSilent)</span><span class="path">zTreeObj.</span>addNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Add nodes</p>
- <p class="highlight_red">In order to avoid duplication data resulting from repeated initialization, zTree v3.x will automatically clone node data when zTree initialized or add nodes. If you need to get the data objects within the zTree, please get the return value of this method.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>The additional node's parent node. If additional node is root node, please the parentNode is null.</p>
- <p class="highlight_red">Please ensure this node data object is a data object within zTree.</p>
- <h4 class="topLine"><b>newNodes</b><span>JSON / Array(JSON)</span></h4>
- <p>The node data's JSON object collection which need to increase, refer to 'treeNode treeNode data details'</p>
- <p class="highlight_red">1. zTree v3.x support to add single node, that is, if you only add a node, you can don't use the array.</p>
- <p class="highlight_red">2. If you use simple data model, please refer to the attributes within the 'setting.data.simpleData'.</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>Set whether to automatically expand the parent node, after add nodes.</p>
- <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>return the new nodes in zTree</p>
- <p class="highlight_red">If the newNodes is single data object, the return value is a array with length is 1.</p>
- <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the JSON object in the 'newNodes'.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Add one root node to zTree which id is 'tree'</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNode = {name:"newNode1"};
-newNode = treeObj.addNodes(null, newNode);
-</code></pre>
- <h4>2. Add three root nodes to zTree which id is 'tree'</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
-newNodes = treeObj.addNodes(null, newNodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html
deleted file mode 100644
index 8afdae0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(newName)</span><span class="path">zTreeObj.</span>cancelEditName</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Cancel the edit name status. Can restore the original name, and can also force assigned to a new name.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>newName</b><span>String</span></h4>
- <p>Re given a new name</p>
- <p class="highlight_red">If this parameter is omitted, then restore the original name.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Cancel edit name, and restore the original name.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelEditName();
-</code></pre>
- <h4>2. Cancel edit name , and set the new name.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelEditName("test_new_name");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html
deleted file mode 100644
index 581c2d2..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>cancelSelectedNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>To cancel the selected node.</p>
- <p class="highlight_red">zTree v3.x support to select multiple nodes, so you can cancel a single selected node, and you can cancel all of the selected nodes too.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to cancel selected.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <p class="highlight_red">If you omit this parameter, zTree will cancel all of the selected nodes.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Cancel all of the selected nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.cancelSelectedNode();
-</code></pre>
- <h4>2. Cancel the first node of the selected nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNode();
-if (nodes.length>0) {
- treeObj.cancelSelectedNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html
deleted file mode 100644
index 276b629..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>checkAllNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Check or unCheck all nodes which have been initialized. It is valid when <span class="highlight_red">[setting.check.enable = true & setting.check.chkStyle = "checkbox"]</span></p>
- <p class="highlight_red">This method does not trigger 'beforeCheck' or 'onCheck' callback function.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>checked</b><span>Boolean</span></h4>
- <p>checked = true means: check all nodes.</p>
- <p>checked = false means: uncheck all nodes.</p>
- <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
- <p class="highlight_red">Don't affect the node is not loaded.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. check all nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.checkAllNodes(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html
deleted file mode 100644
index 7411ef8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, checked, checkTypeFlag, callbackFlag)</span><span class="path">zTreeObj.</span>checkNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Check or unCheck a single node. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">Use checkNode() method of zTree v3.x can trigger 'beforeCheck' or 'onCheck' callback function. for reduce redundant code.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to be checked or unchecked.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>checked</b><span>Boolean</span></h4>
- <p>checked = true means: check node.</p>
- <p>checked = false means: uncheck node.</p>
- <p class="highlight_red">If this parameter is omitted, then toggle check or uncheck depend this node's expanded state.</p>
- <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
- <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
- <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p>
- <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p>
- <p class="highlight_red">When checkTypeFlag = false and treeNode.checked = checked, will not trigger callback function.</p>
- <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true means: call this method, will trigger 'beforeCheck' & 'onCheck' callback.</p>
- <p>callbackFlag = false means: call this method, will not trigger callback.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. check the selected nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.checkNode(nodes[i], true, true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html
deleted file mode 100644
index a98e84d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>copyNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Copy the node</p>
- <p class="highlight_red">When copy nodes, zTree v3.x will clone nodes. If you need to get the data object in zTree, please get the return value of this method.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be target.</p>
- <p class="highlight_red">If copy the node to root node, please set the 'targetNode' to null.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be copied.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>Copied to the target node's relative position.</p>
- <p class="highlight_red">"inner" means: to be taregetNode's child node.</p>
- <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p>
- <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>After copy the node, whether to automatically expand its parent node.</p>
- <p>isSilent = true means: don't expand its parent node.</p>
- <p>isSilent = false or omit this parameter means: expand its parent node.</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>return the new node in zTree</p>
- <p class="highlight_red">Note: the node data JSON object in the return value is not equal to the treeNode.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Copy the second root node to the first root node's child node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.copyNode(nodes[0], nodes[1], "inner");
-</code></pre>
- <h4>2. Copy the second root node to the first root node's previous sibling node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.copyNode(nodes[0], nodes[1], "before");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html
deleted file mode 100644
index 80c5281..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId)</span><span class="path">zTreeObj.</span>destroy</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>From zTree v3.4, zTree support the method for destruction.</p>
- <p>1. This method can destroy the zTreeObj's zTree.</p>
- <p class="highlight_red">2. If you want to destory all of the zTrees, you can use the '$.fn.zTree.destroy()' method.</p>
- <p class="highlight_red">3. If you want to use the tree which has been destroyed, you must use the 'init()' method at first.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. destroy the zTree which its id is 'treeDemo'</h4>
- <pre xmlns=""><code>var zTreeObj = $.fn.zTree.getZTreeObj("treeDemo");
-zTreeObj.destroy();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html
deleted file mode 100644
index 92ac5c1..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>editName</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Start editing the node's name.</p>
- <p class="highlight_red">1. If need to cancel editing the node's name, please use cancelEditName(newName) method.</p>
- <p class="highlight_red">2. This method can be used to set the editing node‘s input box to get focus.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be editing name</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Start editing the first selected node's name.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.editName(nodes[0]);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html
deleted file mode 100644
index ef28a31..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Expand or collapse all nodes.</p>
- <p class="highlight_red">This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>expandFlag</b><span>Boolean</span></h4>
- <p>expandFlag = true means: expand all nodes.</p>
- <p>expandFlag = false means: collapse all nodes.</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return the result of expand or collapse.</p>
- <p>true means: expand all nodes</p>
- <p>false means: collapse all nodes</p>
- <p>null means: have no parent node to expand or collapse.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Expand all nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.expandAll(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html
deleted file mode 100644
index f99ff77..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, expandFlag, sonSign, focus, callbackFlag)</span><span class="path">zTreeObj.</span>expandNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Expand or collapse single node.</p>
- <p class="highlight_red">Use expandNode() method of zTree v3.x can trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function. for reduce redundant code.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be expanded or collapsed</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>expandFlag</b><span>Boolean</span></h4>
- <p>expandFlag = true means: expand the node.</p>
- <p>expandFlag = false means: collapse the node.</p>
- <p class="highlight_red">If this parameter is omitted, then toggle expand or collapse depend this node's expanded state.</p>
- <h4 class="topLine"><b>sonSign</b><span>Boolean</span></h4>
- <p>sonSign = true means: expand or collapse all of the child nodes depend the 'expandFlag' parameter.</p>
- <p>sonSign = false means: only expand or collapse this node.</p>
- <p class="highlight_red">When sonSign = false and treeNode.open = expandFlag, will not trigger the callback.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'sonSign = false'.</p>
- <h4 class="topLine"><b>focus</b><span>Boolean</span></h4>
- <p>focus = true means: after expand or collapse, set the focus of this node for view.</p>
- <p>focus = false means: after expand or coolapse, don't set the focus of this node.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'focus = true'.</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true means: call this method, will trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback.</p>
- <p>callbackFlag = false means: call this method, will not trigger callback.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
- <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
- <p>return the result of expand or collapse.</p>
- <p>true means: expand node</p>
- <p>false means: collapse node</p>
- <p>null means: the node is not parent node.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Expand the first selected node. (and expand this node's child nodes)</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- treeObj.expandNode(nodes[0], true, true, true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html
deleted file mode 100644
index d0f9cf3..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getChangeCheckedNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the collection of nodes which be changed checked status. (Compared with the original data checkedOld) It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return </b><span>Array(JSON)</span></h4>
- <p>return the collection of nodes which be changed checked status (Array)</p>
- <p class="highlight_red">If you need to get the collection of nodes which changed the checked status, when nodes be checked or unchecked, so please set treeNode.checkedOld = treeNode.checked ( for all of the be changed checked status nodes ).</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Get the collection of nodes which be changed checked status</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getChangeCheckedNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html
deleted file mode 100644
index 7a7c3b9..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(checked)</span><span class="path">zTreeObj.</span>getCheckedNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the collection of nodes which be checked or unchecked. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>checked</b><span>Boolean</span></h4>
- <p>checked = true means: get the collection of nodes which be checked</p>
- <p>checked = false means: get the collection of nodes which be unchecked</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'checked = true'</p>
- <p class="highlight_red">Don't get the nodes which 'nochecked' attribute is true.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>return the collection of nodes which be checked or unchecked. (Array)</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Get the collection of nodes which be checked.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getCheckedNodes(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html
deleted file mode 100644
index 05572e7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodeByParam</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>According to the node data attribute, search the node which exactly matches, and get the JSON object of node.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>The name of attribute which need to exactly match</p>
- <h4 class="topLine"><b>value</b><span>?</span></h4>
- <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>The search range, you can search node from a parent node's child nodes.</p>
- <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>JSON data object of the node which be searched.</p>
- <p class="highlight_red">1. If search none node, return null.</p>
- <p class="highlight_red">2. If there are many nodes can be searched, return the first node.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Search the node which its 'id' attribute is 1.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByParam("id", 1, null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html
deleted file mode 100644
index 8fd26ea..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(tId)</span><span class="path">zTreeObj.</span>getNodeByTId</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>According the unique identifier tId of zTree, quick get the node's JSON data object.</p>
- <p class="highlight_red">Get the node from the cache, don't need to search from all nodes.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>tId</b><span>String</span></h4>
- <p>The unique identifier of node.</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>JSON data object of the node which be searched.</p>
- <p class="highlight_red">If no result, return null.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. 1. Search the node which its 'tId' attribute is 'tree_10'</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByTId("tree_10");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html
deleted file mode 100644
index ad828e7..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>getNodeIndex</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the node's index in the same level nodes. (start from 0)</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to get index.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Return </b><span>Number</span></h4>
- <p class="highlight_red">return the index. (start from 0)</p>
- <p class="highlight_red">If there is no this node, return -1.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Get the first selected node's index in the same level nodes.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- var index = treeObj.getNodeIndex(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html
deleted file mode 100644
index 5906a43..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get all of the nodes in zTree</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return </b><span>Array(JSON)</span></h4>
- <p>return all of the nodes</p>
- <p class="highlight_red">1. This array is a collection of the root nodes (the default child nodes are in the 'children' attributes);</p>
- <p class="highlight_red">2. Traverse all the nodes need to use recursion, or the use of transformToArray() method make the nodes to be a simple array.</p>
- <p class="highlight_red">3. For the asynchronous loading mode, can't get the nodes which are yet loaded.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Get all of the nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html
deleted file mode 100644
index 2cd6baa..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(filter, isSingle, parentNode, invokeParam)</span><span class="path">zTreeObj.</span>getNodesByFilter</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Search the single node's data or collection of nodes's data by custom rules.</p>
- <p class="highlight_red">Can be customized complex search rules.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>filter</b><span>Function</span></h4>
- <p>Custom search function. e.g. function filter(node) {...}</p>
- <p>filter's parameter: node (node's data -- JSON)</p>
- <p>filter's return: boolean (true means: match the rules; false means: don't match the rules)</p>
- <h4 class="topLine"><b>isSingle</b><span>Boolean</span></h4>
- <p>isSingle = true means: search only one node</p>
- <p>isSingle = false means: search the array of the nodes</p>
- <p class="highlight_red">If this parameter is omitted, as same as false</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>The search range, you can search node from a parent node's child nodes.</p>
- <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
- <h4 class="topLine"><b>invokeParam</b><span>anything</span></h4>
- <p>Custom data object by user, used to calculate in the filter function.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON) / JSON</span></h4>
- <p>If isSingle = true, will return the first node's data (JSON) what be matched. If no match, return null.</p>
- <p>If isSingle = false, will return the array of all nodes's data what be matched. if no match, return [ ].</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Search the nodes which their 'name' contains 'test' and 'level' is 2.</h4>
- <pre xmlns=""><code>function filter(node) {
- return (node.level == 2 && node.name.indexOf("test")>-1);
-}
-......
-var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodesByFilter(filter, true); // search only one node
-var nodes = treeObj.getNodesByFilter(filter); // search the array of the nodes
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html
deleted file mode 100644
index 3173af4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParam</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>According to the node data attribute, search the nodes which exactly matches, and get the JSON objects collection of nodes.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>The name of attribute which need to exactly match</p>
- <h4 class="topLine"><b>value</b><span>?</span></h4>
- <p>The value which need to exactly match, can be any type, please ensure its type consistent with the attribute values.</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>The search range, you can search node from a parent node's child nodes.</p>
- <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>The JSON data objects collection of the nodes which be searched.</p>
- <p class="highlight_red">If search none node, return [ ].</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Search the nodes which their 'name' attribute is 'test'.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParam("name", "test", null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html
deleted file mode 100644
index 14b6c29..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(key, value, parentNode)</span><span class="path">zTreeObj.</span>getNodesByParamFuzzy</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>According to the node data attribute, search the nodes which fuzzy matches, and get the JSON objects collection of nodes.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>key</b><span>String</span></h4>
- <p>The name of attribute which need to fuzzy match</p>
- <h4 class="topLine"><b>value</b><span>String</span></h4>
- <p>The value which need to fuzzy match.</p>
- <p class="highlight_red">The type of value can only be String</p>
- <h4 class="topLine"><b>parentNode</b><span>JSON</span></h4>
- <p>The search range, you can search node from a parent node's child nodes.</p>
- <p class="highlight_red">If this parameter is omitted, zTree will search node from all nodes.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>The JSON data objects collection of the nodes which be searched.</p>
- <p class="highlight_red">If search none node, return [ ].</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Search the nodes which their 'name' attribute contains the string 'test'.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParamFuzzy("name", "test", null);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html
deleted file mode 100644
index 4a0f060..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>getSelectedNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Get the JSON data objects collection of the selected nodes in zTree.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return </b><span>Array(JSON)</span></h4>
- <p>The JSON data objects collection of the selected nodes.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. get the selected nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html
deleted file mode 100644
index f02f523..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>hideNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>To hide any node.</p>
- <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
- <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be hidden</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. hide the first root node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.hideNode(nodes[0]);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html
deleted file mode 100644
index 9bf8e6b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>hideNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>To hide a group of nodes.</p>
- <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
- <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>the array of the nodes which will be hidden</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. hide the first root node's children.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.hideNodes(nodes[0].children);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html
deleted file mode 100644
index 93f066b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(targetNode, treeNode, moveType, isSilent)</span><span class="path">zTreeObj.</span>moveNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Move the node</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>targetNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be target.</p>
- <p class="highlight_red">If move the node to root node, please set the 'targetNode' to null.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be moved.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>moveType</b><span>String</span></h4>
- <p>Moved to the target node's relative position.</p>
- <p class="highlight_red">"inner" means: to be taregetNode's child node.</p>
- <p class="highlight_red">"prev" means: to be taregetNode's previous sibling node.</p>
- <p class="highlight_red">"next" means: to be taregetNode's next sibling node.</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>After move the node, whether to automatically expand its parent node.</p>
- <p>isSilent = true means: don't expand its parent node.</p>
- <p>isSilent = false or omit this parameter means: expand its parent node.</p>
- <h4 class="topLine"><b>Return </b><span>JSON</span></h4>
- <p>return the node which be moved, it is same as the 'treeNode' parameter.</p>
- <p class="highlight_red">Return null means: move node has failed. The cause:<br/>
- &nbsp;1. the targetNode is the treeNode's parent node, and moveType = "inner"<br/>
- &nbsp;2. the targetNode is the treeNode's child node.
- </p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Move the second root node to the first root node's child node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.moveNode(nodes[0], nodes[1], "inner");
-</code></pre>
- <h4>2. Move the second root node to the first root node's previous sibling node.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-treeObj.moveNode(nodes[0], nodes[1], "prev");
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html
deleted file mode 100644
index 63a0896..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode, reloadType, isSilent)</span><span class="path">zTreeObj.</span>reAsyncChildNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Forced asynchronous loading child nodes of parent node. It is valid when <span class="highlight_red">[setting.async.enable = true]</span></p>
- <p class="highlight_red">You can use this method to reload child nodes.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>The parent node which will asynchronous loading child nodes.</p>
- <p class="highlight_red">1. If parentNode = null, it is same as reload root nodes.</p>
- <p class="highlight_red">2. If parentNode.isParent = false, don't load nodes.</p>
- <p class="highlight_red">3. Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>reloadType</b><span>String</span></h4>
- <p>reloadType = "refresh" means: reload child nodes.</p>
- <p>reloadType != "refresh" means: append to load child nodes.</p>
- <h4 class="topLine"><b>isSilent</b><span>Boolean</span></h4>
- <p>Set whether to automatically expand the parent node, after load nodes.</p>
- <p>isSilent = true means: don't auto expand the parent node. Otherwise auto expand.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. reload root nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.reAsyncChildNodes(null, "refresh");
-</code></pre>
- <h4>2. reload the first selected node's child nodes.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes.length>0) {
- treeObj.reAsyncChildNodes(nodes[0], "refresh");
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html
deleted file mode 100644
index 8316192..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function()</span><span class="path">zTreeObj.</span>refresh</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Refresh zTree</p>
- <p class="highlight_red">If you have no special need, try not to use this method. If you refresh single node, please use updateNode() method. If you refresh child nodes in dynamic mode, please use the reAsyncChildNodes() method.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. refresh zTree </h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.refresh();
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html
deleted file mode 100644
index c249e17..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(parentNode)</span><span class="path">zTreeObj.</span>removeChildNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Remove a parent node's child nodes</p>
- <p class="highlight_red">1. After remove child nodes, the parent node will become a leaf node. Such as the need to maintain the parent node is still a parent node, set 'setting.data.keep.parent' attribute.</p>
- <p class="highlight_red">2. Do not use this method to empty the root. If you need to empty the root, you can initialization zTree, and set the initial nodes is null.</p>
- <p class="highlight_red">3. This method does not trigger any callback function.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>parentNode</b><span>JSON</span></h4>
- <p>The parent node which need to clear its child nodes.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>Return the parent node's child nodes which have been removed. If has no child nodes, return null.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Remove the first selected node's child nodes</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-if (nodes && nodes.length>0) {
- treeObj.removeChildNodes(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html
deleted file mode 100644
index 605322f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, callbackFlag)</span><span class="path">zTreeObj.</span>removeNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Remove a node</p>
- <p class="highlight_red">Use removeNode() method of zTree v3.x can trigger 'beforeRemove / onRemove' callback function. for reduce redundant code.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be removed.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>callbackFlag</b><span>Boolean</span></h4>
- <p>callbackFlag = true means: call this method, will trigger 'beforeRemove' & 'onRemove' callback.</p>
- <p>callbackFlag = false means: call this method, will not trigger callback.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'callbackFlag = false'</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Remove all of the selected nodes.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.removeNode(nodes[i]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html
deleted file mode 100644
index 237f199..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, addFlag)</span><span class="path">zTreeObj.</span>selectNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Select a node</p>
- <p class="highlight_red">zTree v3.x supports select multiple nodes.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which will be selected.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>addFlag</b><span>Boolean</span></h4>
- <p>addFlag = true means: append to select node, don't affect the previously selected node, can select multiple nodes.</p>
- <p>addFlag = false means: select single node, prior the selected node is deselected.</p>
- <p class="highlight_red">If setting.view.selectedMulti = false, this para, this parameter is not valid, always select single node</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Exampleso of function</h3>
- <h4>1. Select single node which be first selected.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-if (nodes.length>0) {
- treeObj.selectNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html
deleted file mode 100644
index 1d645e8..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(node, disabled, inheritParent, inheritChildren)</span><span class="path">zTreeObj.</span>setChkDisabled</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.excheck</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Set the node's checkbox or radio is disabled or remove disabled. It is valid when <span class="highlight_red">[setting.check.enable = true]</span></p>
- <p class="highlight_red">1. After the node's checkbox / radio is disabled, it can not be checked or unchecked, but it can affect the half-checked status of the parent node.</p>
- <p class="highlight_red">2. Please do not directly modify the 'chkDisabled' attribute of the loaded node.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to be checked or unchecked.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>disabled</b><span>Boolean</span></h4>
- <p>disabled = true means: the node's checkbox / radio is disabled.</p>
- <p>disabled = false means: the node's checkbox / radio is removed disabled.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as disabled = false </p>
- <p class="highlight_red">Don't affect the node which 'nochecked' attribute is true.</p>
- <h4 class="topLine"><b>inheritParent</b><span>Boolean</span></h4>
- <p>inheritParent = true means: all parent nodes's disabled status will be same as this node.</p>
- <p>inheritParent = false means: all parent nodes's disabled status will be not affected.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'inheritParent = false'</p>
- <h4 class="topLine"><b>inheritChildren</b><span>Boolean</span></h4>
- <p>inheritChildren = true means: all child nodes's disabled status will be same as this node.</p>
- <p>inheritChildren = false means: all child nodes's disabled status will be not affected.</p>
- <p class="highlight_red">If this parameter is omitted, it is same as 'inheritChildren = false'</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Set the selected nodes's checkbox / radio to be disabled.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getSelectedNodes();
-for (var i=0, l=nodes.length; i < l; i++) {
- treeObj.setChkDisabled(nodes[i], true);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html
deleted file mode 100644
index a44b0ff..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(editable)</span><span class="path">zTreeObj.</span>setEditable</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Edit mode and normal mode switch.</p>
- <p class="highlight_red">To use edit mode, please set the attributes in 'setting.edit'</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>editable</b><span>Boolean</span></h4>
- <p>true means: set zTree to edit mode.</p>
- <p>false means: set zTree to normal mode.</p>
- <h4><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. set zTree to edit mode</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-treeObj.setEditable(true);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html
deleted file mode 100644
index d80c139..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html
+++ /dev/null
@@ -1,14 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>JSON</span><span class="path">zTreeObj.</span>setting</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>The configuration data of zTree, refer to "<span class="highlight_red">setting details</span>" </p>
- <p class="highlight_red">zTree v3.x to cancel the original operation setting method, so users can modify.</p>
- <p class="highlight_red">Note: Modify the parameters which affect zTree initialization will not work, please first understand the different attributes.</p>
- </div>
- </div>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html
deleted file mode 100644
index 53b5cbd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode)</span><span class="path">zTreeObj.</span>showNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>To hide any node which be hidden.</p>
- <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
- <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>JSON data object of the node which will be shown</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. show someone node which be hidden.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var node = treeObj.getNodeByParam("isHidden", true);
-if (node) {
- treeObj.showNode(node);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html
deleted file mode 100644
index c0c926c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>showNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exhide</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>To show a group of nodes which be hidden.</p>
- <p class="highlight_red">1. This feature can't support the 'exedit' feature, so please don't use this feature in edit mode.</p>
- <p class="highlight_red">2. If you hide or show the nodes, it will effect the 'isFirstNode' and 'isLastNode' attribute.</p>
- <p class="highlight_red">3. Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON)</span></h4>
- <p>the array of the nodes which will be shown</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>Retrun </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. show all of the nodes which be hidden.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodesByParam("isHidden", true);
-treeObj.showNodes(nodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html
deleted file mode 100644
index 4b2296d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNodes)</span><span class="path">zTreeObj.</span>transformToArray</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p></p>
- <p>Transform the zTree nodes data into simple array. (To avoid the user to write code to traverse all nodes)</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>JSON data object of the node which need to be transformed.</p>
- <p>or JSON data objects collection of the nodes which need to be transformed.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>The JSON data objects array of the nodes which be transformed.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Transform the zTree nodes data into simple array.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.transformToArray(treeObj.getNodes());
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html
deleted file mode 100644
index 51d4a62..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(simpleNodes)</span><span class="path">zTreeObj.</span>transformTozTreeNodes</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Transform the simple array into zTree nodes data.</p>
- <p class="highlight_red">If you use this method, you must set 'setting.data.simpleData.idKey' and 'setting.data.simpleData.pIdKey' attribute, and let the data are consistent with parent-child relationship.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>simpleNodes</b><span>Array(JSON) / JSON</span></h4>
- <p>JSON data object of the node which need to be transformed.</p>
- <p>or JSON data objects array of the nodes which need to be transformed.</p>
- <h4 class="topLine"><b>Return </b><span>Array(JSON)</span></h4>
- <p>Standard data which zTree use. The child nodes are stored in the parent node's 'children' attribute.</p>
- <p class="highlight_red">If simpleNodes is a single JSON, so the return array's length is 1.</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Transform the simple array data into zTree nodes format.</h4>
- <pre xmlns=""><code>var setting = {
- data: {
- simpleData: {
- enable: true,
- idKey: "id",
- pIdKey: "pId",
- rootPId: 0,
- }
- }
-};
-var simpleNodes = [
- {"id":1, "pId":0, "name":"test1"},
- {"id":11, "pId":1, "name":"test11"},
- {"id":12, "pId":1, "name":"test12"},
- {"id":111, "pId":11, "name":"test111"}
-];
-var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.transformTozTreeNodes(simpleNodes);
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html b/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html
deleted file mode 100644
index 7639ff4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeNode, checkTypeFlag)</span><span class="path">zTreeObj.</span>updateNode</h2>
- <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>Update node data. Primarily used to update the node's DOM.</p>
- <p class="highlight_red">1. Can update the attributes for display (e.g. 'name', 'target', 'url', 'icon', 'iconSkin', 'checked', 'nocheck'), do not update the other attributes. For example: If you need to expand the node, please use expandNode() method, do not modify the 'open' attribute.</p>
- <p class="highlight_red">2. Use updateNode() method of zTree can't trigger 'beforeCheck' or 'onCheck' callback function.</p>
- <p class="highlight_red">Please use zTree object to executing the method.</p>
- </div>
- </div>
- <h3>Function Parameter Descriptions</h3>
- <div class="desc">
- <h4><b>treeNode</b><span>JSON</span></h4>
- <p>JSON data object of the node which need to update.</p>
- <p class="highlight_red">Please ensure that this data object is an internal node data object in zTree.</p>
- <h4 class="topLine"><b>checkTypeFlag</b><span>Boolean</span></h4>
- <p>checkTypeFlag = true means: According to 'setting.check.chkboxType' attribute automatically check or uncheck the parent and child nodes.</p>
- <p>checkTypeFlag = false means: only check or uncheck this node, don't affect its parent and child nodes.</p>
- <p class="highlight_red">This parameter is valid when 'setting.check.enable = true' and 'setting.check.chkStyle = "checkbox"'</p>
- <p class="highlight_red">Don't affect the parent and child nodes which 'nochecked' attribute is true.</p>
- <h4 class="topLine"><b>Return </b><span>none</span></h4>
- <p>no return value</p>
- </div>
- <h3>Examples of function</h3>
- <h4>1. Modify the first selected node's name, and update it.</h4>
- <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
-var nodes = treeObj.getNodes();
-if (nodes.length>0) {
- nodes[0].name = "test";
- treeObj.updateNode(nodes[0]);
-}
-</code></pre>
-</div>
-</div> \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/css/demo.css b/common/src/main/webapp/thirdparty/zTree/css/demo.css
deleted file mode 100644
index 8406006..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/demo.css
+++ /dev/null
@@ -1,33 +0,0 @@
-/* html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;padding: 0;border: 0;outline: 0;font-weight: inherit;font-style: inherit;font-size: 100%;font-family: inherit;vertical-align: baseline;}
-body {color: #2f332a;font: 15px/21px Arial, Helvetica, simsun, sans-serif;background: #f0f6e4 \9;}
-h1, h2, h3, h4, h5, h6 {color: #2f332a;font-weight: bold;font-family: Helvetica, Arial, sans-serif;padding-bottom: 5px;}
-h1 {font-size: 24px;line-height: 34px;text-align: center;}
-h2 {font-size: 14px;line-height: 24px;padding-top: 5px;}
-h6 {font-weight: normal;font-size: 12px;letter-spacing: 1px;line-height: 24px;text-align: center;} */
-/* a {color:#3C6E31;text-decoration: underline;}
-a:hover {background-color:#3C6E31;color:white;} */
-input.radio {margin: 0 2px 0 8px;}
-input.radio.first {margin-left:0;}
-input.empty {color: lightgray;}
-code {color: #2f332a;}
-.highlight_red {color:#A60000;}
-.highlight_green {color:#A7F43D;}
-li {list-style: circle;font-size: 12px;}
-li.title {list-style: none;}
-ul.list {margin-left: 17px;}
-
-div.content_wrap {width: 600px;height:380px;}
-div.content_wrap div.left{float: left;width: 250px;}
-div.content_wrap div.right{float: right;width: 340px;}
-div.zTreeDemoBackground {width:250px;height:362px;text-align:left;}
-
-ul.ztree {margin-top: 10px;border: 1px solid #eee;/*background: #f0f6e4;width:220px;height:360px;*/overflow-y:auto;overflow-x:auto;/*ict*/padding: 25px;padding-right: 50px;}
-ul.log {border: 1px solid #617775;background: #f0f6e4;width:300px;height:170px;overflow: hidden;}
-ul.log.small {height:45px;}
-ul.log li {color: #666666;list-style: none;padding-left: 10px;}
-ul.log li.dark {background-color: #E3E3E3;}
-
-/* ruler */
-div.ruler {height:20px; width:220px; background-color:#f0f6e4;border: 1px solid #333; margin-bottom: 5px; cursor: pointer}
-div.ruler div.cursor {height:20px; width:30px; background-color:#3C6E31; color:white; text-align: right; padding-right: 5px; cursor: pointer} \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/ReadMe.txt b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/ReadMe.txt
deleted file mode 100644
index c4ae443..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/ReadMe.txt
+++ /dev/null
@@ -1 +0,0 @@
-½ڵ㣬ɾקڵ㣬zTreeStyle_select.cssļ \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/Thumbs.db b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/Thumbs.db
deleted file mode 100644
index 4fe7e7e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/Thumbs.db
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_close.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_close.png
deleted file mode 100644
index 68ccb3c..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_close.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_open.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_open.png
deleted file mode 100644
index d6ff36d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_open.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/2.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/2.png
deleted file mode 100644
index 9eff506..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/2.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/3.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/3.png
deleted file mode 100644
index d7ba6d0..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/3.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/4.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/4.png
deleted file mode 100644
index 753e2bf..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/4.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/5.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/5.png
deleted file mode 100644
index 0c5eccd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/5.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/6.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/6.png
deleted file mode 100644
index 070b835..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/6.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/7.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/7.png
deleted file mode 100644
index 532b037..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/7.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/8.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/8.png
deleted file mode 100644
index a8f3a86..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/8.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/9.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/9.png
deleted file mode 100644
index 4db73cd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/9.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/Thumbs.db b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/Thumbs.db
deleted file mode 100644
index f4a4617..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/Thumbs.db
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/line_conn.gif b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/line_conn.gif
deleted file mode 100644
index d561d36..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/line_conn.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/loading.gif b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/loading.gif
deleted file mode 100644
index e8c2892..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/loading.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gif b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gif
deleted file mode 100644
index 50c94fd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gif
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbak b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbak
deleted file mode 100644
index 50c94fd..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbak
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.png b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.png
deleted file mode 100644
index e831f6d..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.png
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbak b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbak
deleted file mode 100644
index ffda01e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbak
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.psd b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.psd
deleted file mode 100644
index e3630f4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.psd
+++ /dev/null
Binary files differ
diff --git a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/zTreeStyle.css b/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/zTreeStyle.css
deleted file mode 100644
index d40353f..0000000
--- a/common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/zTreeStyle.css
+++ /dev/null
@@ -1,107 +0,0 @@
-/*-------------------------------------
-zTree Style
-
-version: 3.4
-author: Hunter.z
-email: hunter.z@263.net
-website: http://code.google.com/p/jquerytree/
-
--------------------------------------*/
-
-.ztree * {padding:0; margin:0; font-size:14px; font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif}
-.ztree {margin:0; padding:5px; color:#333; /*overflow-x: auto;*/ overflow-x: visible;}
-.ztree li{padding:0; margin:0; list-style:none; line-height:14px; text-align:left; white-space:nowrap; outline:0}
-.ztree li ul{ margin:0; padding:0 0 0 18px}
-.ztree li ul.line{ background:url(./img/line_conn.gif) 0 0 repeat-y;}
-
-.ztree li a {padding:1px 3px 0 0; margin:0; cursor:pointer; height:30px; color:#333; background-color: transparent;
- text-decoration:none; vertical-align:top; display: inline-block;
- /*ict*/width:100%;
- background: #fff;
- border: 1px solid #eeeeee;
- color: #606060;
- padding: 10px ;
- padding-top: 5px;
- padding-right:10%;
-}
-.ztree li a:hover {text-decoration:underline}
-.ztree li a.curSelectedNode {padding-top:5px; background-color:#e7f2f9; color:#2a2a2a; height:28px; border:1px #accbdd solid; opacity:0.8;}
-.ztree li a.curSelectedNode_Edit {padding-top:0px; background-color:#e7f2f9; color:#2a2a2a; height:16px; border:1px #accbdd solid; opacity:0.8;}
-.ztree li a.tmpTargetNode_inner {padding-top:5px; background-color:#316AC5; color:white; height:26px; border:1px #316AC5 solid;
- opacity:0.8; filter:alpha(opacity=80)}
-.ztree li a.tmpTargetNode_prev {}
-.ztree li a.tmpTargetNode_next {}
-.ztree li a input.rename {height:14px; width:80px; padding:0; margin:0;
- font-size:12px; border:1px #7EC4CC solid; *border:0px}
-.ztree li span {line-height:16px; margin-right:2px}
-.ztree li span.button {line-height:0; margin:0; width:16px; height:16px; display: inline-block; vertical-align:middle;
- border:0 none; cursor: pointer;outline:none;
- background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
- background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
-
-.ztree li span.button.chk {width:13px; height:13px; margin:0 3px 0 0; cursor: auto}
-.ztree li span.button.chk.checkbox_false_full {background-position:0 0}
-.ztree li span.button.chk.checkbox_false_full_focus {background-position:0 -14px}
-.ztree li span.button.chk.checkbox_false_part {background-position:0 -28px}
-.ztree li span.button.chk.checkbox_false_part_focus {background-position:0 -42px}
-.ztree li span.button.chk.checkbox_false_disable {background-position:0 -56px}
-.ztree li span.button.chk.checkbox_true_full {background-position:-14px 0}
-.ztree li span.button.chk.checkbox_true_full_focus {background-position:-14px -14px}
-.ztree li span.button.chk.checkbox_true_part {background-position:-14px -28px}
-.ztree li span.button.chk.checkbox_true_part_focus {background-position:-14px -42px}
-.ztree li span.button.chk.checkbox_true_disable {background-position:-14px -56px}
-.ztree li span.button.chk.radio_false_full {background-position:-28px 0}
-.ztree li span.button.chk.radio_false_full_focus {background-position:-28px -14px}
-.ztree li span.button.chk.radio_false_part {background-position:-28px -28px}
-.ztree li span.button.chk.radio_false_part_focus {background-position:-28px -42px}
-.ztree li span.button.chk.radio_false_disable {background-position:-28px -56px}
-.ztree li span.button.chk.radio_true_full {background-position:-42px 0}
-.ztree li span.button.chk.radio_true_full_focus {background-position:-42px -14px}
-.ztree li span.button.chk.radio_true_part {background-position:-42px -28px}
-.ztree li span.button.chk.radio_true_part_focus {background-position:-42px -42px}
-.ztree li span.button.chk.radio_true_disable {background-position:-42px -56px}
-
-.ztree li span.button.switch {width:18px; height:18px}
-.ztree li span.button.root_open{background-position:-92px -54px}
-.ztree li span.button.root_close{background-position:-74px -54px}
-.ztree li span.button.roots_open{background-position:-92px 0}
-.ztree li span.button.roots_close{background-position:-74px 0}
-.ztree li span.button.center_open{background-position:-92px -18px}
-.ztree li span.button.center_close{background-position:-74px -18px}
-.ztree li span.button.bottom_open{background-position:-92px -36px}
-.ztree li span.button.bottom_close{background-position:-74px -36px}
-.ztree li span.button.noline_open{background-position:-92px -72px}
-.ztree li span.button.noline_close{background-position:-74px -72px}
-.ztree li span.button.root_docu{ background:none;}
-.ztree li span.button.roots_docu{background-position:-56px 0}
-.ztree li span.button.center_docu{background-position:-56px -18px}
-.ztree li span.button.bottom_docu{background-position:-56px -36px}
-.ztree li span.button.noline_docu{ background:none;}
-
-.ztree li span.button.ico_open{margin-right:2px; background-position:-110px -16px; vertical-align:top; *vertical-align:middle}
-.ztree li span.button.ico_close{margin-right:2px; background-position:-110px 0; vertical-align:top; *vertical-align:middle}
-.ztree li span.button.ico_docu{margin-right:2px; background-position:-110px -32px; vertical-align:top; *vertical-align:middle}
-/*ict*/
-.ztree li span.button.add {margin-left:2px; /* margin-right: -1px; */ margin-right: 2px; background-position:-144px 0; vertical-align:top; *vertical-align:middle;float: right;}
-.ztree li span.button.edit {margin-right:2px; background-position:-110px -48px; vertical-align:top; *vertical-align:middle;float: right;}
-.ztree li span.button.remove {margin-right:2px; background-position:-110px -64px; vertical-align:top; *vertical-align:middle;float: right;}
-
-.ztree li span.button.ico_loading{margin-right:2px; background:url(./img/loading.gif) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
-
-ul.tmpTargetzTree {background-color:#FFE6B0; opacity:0.8; filter:alpha(opacity=80)}
-
-span.tmpzTreeMove_arrow {width:16px; height:16px; display: inline-block; padding:0; margin:2px 0 0 1px; border:0 none; position:absolute;
- background-color:transparent; background-repeat:no-repeat; background-attachment: scroll;
- background-position:-110px -80px; background-image:url("./img/zTreeStandard.png"); *background-image:url("./img/zTreeStandard.gif")}
-
-ul.ztree.zTreeDragUL {margin:0; padding:0; position:absolute; width:auto; height:auto;overflow:hidden; background-color:#cfcfcf; border:1px #00B83F dotted; opacity:0.8; filter:alpha(opacity=80)}
-.zTreeMask {z-index:10000; background-color:#cfcfcf; opacity:0.0; filter:alpha(opacity=0); position:absolute}
-
-/* level style*/
-/*.ztree li span.button.level0 {
- display:none;
-}
-.ztree li ul.level0 {
- padding:0;
- background:none;
-}*/ \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.js
deleted file mode 100644
index 28bca45..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.js
+++ /dev/null
@@ -1,3506 +0,0 @@
-
-/*
- * JQuery zTree core v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- var settings = {}, roots = {}, caches = {},
- //default consts of core
- _consts = {
- className: {
- BUTTON: "button",
- LEVEL: "level",
- ICO_LOADING: "ico_loading",
- SWITCH: "switch"
- },
- event: {
- NODECREATED: "ztree_nodeCreated",
- CLICK: "ztree_click",
- EXPAND: "ztree_expand",
- COLLAPSE: "ztree_collapse",
- ASYNC_SUCCESS: "ztree_async_success",
- ASYNC_ERROR: "ztree_async_error",
- REMOVE: "ztree_remove"
- },
- id: {
- A: "_a",
- ICON: "_ico",
- SPAN: "_span",
- SWITCH: "_switch",
- UL: "_ul"
- },
- line: {
- ROOT: "root",
- ROOTS: "roots",
- CENTER: "center",
- BOTTOM: "bottom",
- NOLINE: "noline",
- LINE: "line"
- },
- folder: {
- OPEN: "open",
- CLOSE: "close",
- DOCU: "docu"
- },
- node: {
- CURSELECTED: "curSelectedNode"
- }
- },
- //default setting of core
- _setting = {
- treeId: "",
- treeObj: null,
- view: {
- addDiyDom: null,
- autoCancelSelected: true,
- dblClickExpand: true,
- expandSpeed: "fast",
- fontCss: {},
- nameIsHTML: false,
- selectedMulti: true,
- showIcon: true,
- showLine: true,
- showTitle: true,
- txtSelectedEnable: false
- },
- data: {
- key: {
- children: "children",
- name: "name",
- title: "",
- url: "url"
- },
- simpleData: {
- enable: false,
- idKey: "id",
- pIdKey: "pId",
- rootPId: null
- },
- keep: {
- parent: false,
- leaf: false
- }
- },
- async: {
- enable: false,
- contentType: "application/x-www-form-urlencoded",
- type: "post",
- dataType: "text",
- url: "",
- autoParam: [],
- otherParam: [],
- dataFilter: null
- },
- callback: {
- beforeAsync:null,
- beforeClick:null,
- beforeDblClick:null,
- beforeRightClick:null,
- beforeMouseDown:null,
- beforeMouseUp:null,
- beforeExpand:null,
- beforeCollapse:null,
- beforeRemove:null,
-
- onAsyncError:null,
- onAsyncSuccess:null,
- onNodeCreated:null,
- onClick:null,
- onDblClick:null,
- onRightClick:null,
- onMouseDown:null,
- onMouseUp:null,
- onExpand:null,
- onCollapse:null,
- onRemove:null
- }
- },
- //default root of core
- //zTree use root to save full data
- _initRoot = function (setting) {
- var r = data.getRoot(setting);
- if (!r) {
- r = {};
- data.setRoot(setting, r);
- }
- r[setting.data.key.children] = [];
- r.expandTriggerFlag = false;
- r.curSelectedList = [];
- r.noSelection = true;
- r.createdNodes = [];
- r.zId = 0;
- r._ver = (new Date()).getTime();
- },
- //default cache of core
- _initCache = function(setting) {
- var c = data.getCache(setting);
- if (!c) {
- c = {};
- data.setCache(setting, c);
- }
- c.nodes = [];
- c.doms = [];
- },
- //default bindEvent of core
- _bindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.bind(c.NODECREATED, function (event, treeId, node) {
- tools.apply(setting.callback.onNodeCreated, [event, treeId, node]);
- });
-
- o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) {
- tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]);
- });
-
- o.bind(c.EXPAND, function (event, treeId, node) {
- tools.apply(setting.callback.onExpand, [event, treeId, node]);
- });
-
- o.bind(c.COLLAPSE, function (event, treeId, node) {
- tools.apply(setting.callback.onCollapse, [event, treeId, node]);
- });
-
- o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) {
- tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]);
- });
-
- o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) {
- tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]);
- });
-
- o.bind(c.REMOVE, function (event, treeId, treeNode) {
- tools.apply(setting.callback.onRemove, [event, treeId, treeNode]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.unbind(c.NODECREATED)
- .unbind(c.CLICK)
- .unbind(c.EXPAND)
- .unbind(c.COLLAPSE)
- .unbind(c.ASYNC_SUCCESS)
- .unbind(c.ASYNC_ERROR)
- .unbind(c.REMOVE);
- },
- //default event proxy of core
- _eventProxy = function(event) {
- var target = event.target,
- setting = data.getSetting(event.data.treeId),
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null,
- tmp = null;
-
- if (tools.eqs(event.type, "mousedown")) {
- treeEventType = "mousedown";
- } else if (tools.eqs(event.type, "mouseup")) {
- treeEventType = "mouseup";
- } else if (tools.eqs(event.type, "contextmenu")) {
- treeEventType = "contextmenu";
- } else if (tools.eqs(event.type, "click")) {
- if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "switchNode";
- } else {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "clickNode";
- }
- }
- } else if (tools.eqs(event.type, "dblclick")) {
- treeEventType = "dblclick";
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "switchNode";
- }
- }
- if (treeEventType.length > 0 && tId.length == 0) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {tId = tools.getNodeMainDom(tmp).id;}
- }
- // event to node
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "switchNode" :
- if (!node.isParent) {
- nodeEventType = "";
- } else if (tools.eqs(event.type, "click")
- || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) {
- nodeEventCallback = handler.onSwitchNode;
- } else {
- nodeEventType = "";
- }
- break;
- case "clickNode" :
- nodeEventCallback = handler.onClickNode;
- break;
- }
- }
- // event to zTree
- switch (treeEventType) {
- case "mousedown" :
- treeEventCallback = handler.onZTreeMousedown;
- break;
- case "mouseup" :
- treeEventCallback = handler.onZTreeMouseup;
- break;
- case "dblclick" :
- treeEventCallback = handler.onZTreeDblclick;
- break;
- case "contextmenu" :
- treeEventCallback = handler.onZTreeContextmenu;
- break;
- }
- var proxyResult = {
- stop: false,
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of core
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- var r = data.getRoot(setting),
- childKey = setting.data.key.children;
- n.level = level;
- n.tId = setting.treeId + "_" + (++r.zId);
- n.parentTId = parentNode ? parentNode.tId : null;
- n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open;
- if (n[childKey] && n[childKey].length > 0) {
- n.isParent = true;
- n.zAsync = true;
- } else {
- n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent;
- n.open = (n.isParent && !setting.async.enable) ? n.open : false;
- n.zAsync = !n.isParent;
- }
- n.isFirstNode = isFirstNode;
- n.isLastNode = isLastNode;
- n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);};
- n.getPreNode = function() {return data.getPreNode(setting, n);};
- n.getNextNode = function() {return data.getNextNode(setting, n);};
- n.isAjaxing = false;
- data.fixPIdKeyValue(setting, n);
- },
- _init = {
- bind: [_bindEvent],
- unbind: [_unbindEvent],
- caches: [_initCache],
- nodes: [_initNode],
- proxys: [_eventProxy],
- roots: [_initRoot],
- beforeA: [],
- afterA: [],
- innerBeforeA: [],
- innerAfterA: [],
- zTreeTools: []
- },
- //method of operate data
- data = {
- addNodeCache: function(setting, node) {
- data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node;
- },
- getNodeCacheId: function(tId) {
- return tId.substring(tId.lastIndexOf("_")+1);
- },
- addAfterA: function(afterA) {
- _init.afterA.push(afterA);
- },
- addBeforeA: function(beforeA) {
- _init.beforeA.push(beforeA);
- },
- addInnerAfterA: function(innerAfterA) {
- _init.innerAfterA.push(innerAfterA);
- },
- addInnerBeforeA: function(innerBeforeA) {
- _init.innerBeforeA.push(innerBeforeA);
- },
- addInitBind: function(bindEvent) {
- _init.bind.push(bindEvent);
- },
- addInitUnBind: function(unbindEvent) {
- _init.unbind.push(unbindEvent);
- },
- addInitCache: function(initCache) {
- _init.caches.push(initCache);
- },
- addInitNode: function(initNode) {
- _init.nodes.push(initNode);
- },
- addInitProxy: function(initProxy, isFirst) {
- if (!!isFirst) {
- _init.proxys.splice(0,0,initProxy);
- } else {
- _init.proxys.push(initProxy);
- }
- },
- addInitRoot: function(initRoot) {
- _init.roots.push(initRoot);
- },
- addNodesData: function(setting, parentNode, nodes) {
- var childKey = setting.data.key.children;
- if (!parentNode[childKey]) parentNode[childKey] = [];
- if (parentNode[childKey].length > 0) {
- parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false;
- view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]);
- }
- parentNode.isParent = true;
- parentNode[childKey] = parentNode[childKey].concat(nodes);
- },
- addSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- if (!data.isSelectedNode(setting, node)) {
- root.curSelectedList.push(node);
- }
- },
- addCreatedNode: function(setting, node) {
- if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
- var root = data.getRoot(setting);
- root.createdNodes.push(node);
- }
- },
- addZTreeTools: function(zTreeTools) {
- _init.zTreeTools.push(zTreeTools);
- },
- exSetting: function(s) {
- $.extend(true, _setting, s);
- },
- fixPIdKeyValue: function(setting, node) {
- if (setting.data.simpleData.enable) {
- node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId;
- }
- },
- getAfterA: function(setting, node, array) {
- for (var i=0, j=_init.afterA.length; i<j; i++) {
- _init.afterA[i].apply(this, arguments);
- }
- },
- getBeforeA: function(setting, node, array) {
- for (var i=0, j=_init.beforeA.length; i<j; i++) {
- _init.beforeA[i].apply(this, arguments);
- }
- },
- getInnerAfterA: function(setting, node, array) {
- for (var i=0, j=_init.innerAfterA.length; i<j; i++) {
- _init.innerAfterA[i].apply(this, arguments);
- }
- },
- getInnerBeforeA: function(setting, node, array) {
- for (var i=0, j=_init.innerBeforeA.length; i<j; i++) {
- _init.innerBeforeA[i].apply(this, arguments);
- }
- },
- getCache: function(setting) {
- return caches[setting.treeId];
- },
- getNextNode: function(setting, node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l=p[childKey].length-1; i<=l; i++) {
- if (p[childKey][i] === node) {
- return (i==l ? null : p[childKey][i+1]);
- }
- }
- return null;
- },
- getNodeByParam: function(setting, nodes, key, value) {
- if (!nodes || !key) return null;
- var childKey = setting.data.key.children;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i][key] == value) {
- return nodes[i];
- }
- var tmp = data.getNodeByParam(setting, nodes[i][childKey], key, value);
- if (tmp) return tmp;
- }
- return null;
- },
- getNodeCache: function(setting, tId) {
- if (!tId) return null;
- var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)];
- return n ? n : null;
- },
- getNodeName: function(setting, node) {
- var nameKey = setting.data.key.name;
- return "" + node[nameKey];
- },
- getNodeTitle: function(setting, node) {
- var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title;
- return "" + node[t];
- },
- getNodes: function(setting) {
- return data.getRoot(setting)[setting.data.key.children];
- },
- getNodesByParam: function(setting, nodes, key, value) {
- if (!nodes || !key) return [];
- var childKey = setting.data.key.children,
- result = [];
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i][key] == value) {
- result.push(nodes[i]);
- }
- result = result.concat(data.getNodesByParam(setting, nodes[i][childKey], key, value));
- }
- return result;
- },
- getNodesByParamFuzzy: function(setting, nodes, key, value) {
- if (!nodes || !key) return [];
- var childKey = setting.data.key.children,
- result = [];
- value = value.toLowerCase();
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (typeof nodes[i][key] == "string" && nodes[i][key].toLowerCase().indexOf(value)>-1) {
- result.push(nodes[i]);
- }
- result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value));
- }
- return result;
- },
- getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) {
- if (!nodes) return (isSingle ? null : []);
- var childKey = setting.data.key.children,
- result = isSingle ? null : [];
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (tools.apply(filter, [nodes[i], invokeParam], false)) {
- if (isSingle) {return nodes[i];}
- result.push(nodes[i]);
- }
- var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam);
- if (isSingle && !!tmpResult) {return tmpResult;}
- result = isSingle ? tmpResult : result.concat(tmpResult);
- }
- return result;
- },
- getPreNode: function(setting, node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l=p[childKey].length; i<l; i++) {
- if (p[childKey][i] === node) {
- return (i==0 ? null : p[childKey][i-1]);
- }
- }
- return null;
- },
- getRoot: function(setting) {
- return setting ? roots[setting.treeId] : null;
- },
- getRoots: function() {
- return roots;
- },
- getSetting: function(treeId) {
- return settings[treeId];
- },
- getSettings: function() {
- return settings;
- },
- getZTreeTools: function(treeId) {
- var r = this.getRoot(this.getSetting(treeId));
- return r ? r.treeTools : null;
- },
- initCache: function(setting) {
- for (var i=0, j=_init.caches.length; i<j; i++) {
- _init.caches[i].apply(this, arguments);
- }
- },
- initNode: function(setting, level, node, parentNode, preNode, nextNode) {
- for (var i=0, j=_init.nodes.length; i<j; i++) {
- _init.nodes[i].apply(this, arguments);
- }
- },
- initRoot: function(setting) {
- for (var i=0, j=_init.roots.length; i<j; i++) {
- _init.roots[i].apply(this, arguments);
- }
- },
- isSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- for (var i=0, j=root.curSelectedList.length; i<j; i++) {
- if(node === root.curSelectedList[i]) return true;
- }
- return false;
- },
- removeNodeCache: function(setting, node) {
- var childKey = setting.data.key.children;
- if (node[childKey]) {
- for (var i=0, l=node[childKey].length; i<l; i++) {
- arguments.callee(setting, node[childKey][i]);
- }
- }
- data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null;
- },
- removeSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- for (var i=0, j=root.curSelectedList.length; i<j; i++) {
- if(node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) {
- root.curSelectedList.splice(i, 1);
- i--;j--;
- }
- }
- },
- setCache: function(setting, cache) {
- caches[setting.treeId] = cache;
- },
- setRoot: function(setting, root) {
- roots[setting.treeId] = root;
- },
- setZTreeTools: function(setting, zTreeTools) {
- for (var i=0, j=_init.zTreeTools.length; i<j; i++) {
- _init.zTreeTools[i].apply(this, arguments);
- }
- },
- transformToArrayFormat: function (setting, nodes) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- r = [];
- if (tools.isArray(nodes)) {
- for (var i=0, l=nodes.length; i<l; i++) {
- r.push(nodes[i]);
- if (nodes[i][childKey])
- r = r.concat(data.transformToArrayFormat(setting, nodes[i][childKey]));
- }
- } else {
- r.push(nodes);
- if (nodes[childKey])
- r = r.concat(data.transformToArrayFormat(setting, nodes[childKey]));
- }
- return r;
- },
- transformTozTreeFormat: function(setting, sNodes) {
- var i,l,
- key = setting.data.simpleData.idKey,
- parentKey = setting.data.simpleData.pIdKey,
- childKey = setting.data.key.children;
- if (!key || key=="" || !sNodes) return [];
-
- if (tools.isArray(sNodes)) {
- var r = [];
- var tmpMap = [];
- for (i=0, l=sNodes.length; i<l; i++) {
- tmpMap[sNodes[i][key]] = sNodes[i];
- }
- for (i=0, l=sNodes.length; i<l; i++) {
- if (tmpMap[sNodes[i][parentKey]] && sNodes[i][key] != sNodes[i][parentKey]) {
- if (!tmpMap[sNodes[i][parentKey]][childKey])
- tmpMap[sNodes[i][parentKey]][childKey] = [];
- tmpMap[sNodes[i][parentKey]][childKey].push(sNodes[i]);
- } else {
- r.push(sNodes[i]);
- }
- }
- return r;
- }else {
- return [sNodes];
- }
- }
- },
- //method of event proxy
- event = {
- bindEvent: function(setting) {
- for (var i=0, j=_init.bind.length; i<j; i++) {
- _init.bind[i].apply(this, arguments);
- }
- },
- unbindEvent: function(setting) {
- for (var i=0, j=_init.unbind.length; i<j; i++) {
- _init.unbind[i].apply(this, arguments);
- }
- },
- bindTree: function(setting) {
- var eventParam = {
- treeId: setting.treeId
- },
- o = setting.treeObj;
- if (!setting.view.txtSelectedEnable) {
- // for can't select text
- o.bind('selectstart', function(e){
- var node
- var n = e.originalEvent.srcElement.nodeName.toLowerCase();
- return (n === "input" || n === "textarea" );
- }).css({
- "-moz-user-select":"-moz-none"
- });
- }
- o.bind('click', eventParam, event.proxy);
- o.bind('dblclick', eventParam, event.proxy);
- o.bind('mouseover', eventParam, event.proxy);
- o.bind('mouseout', eventParam, event.proxy);
- o.bind('mousedown', eventParam, event.proxy);
- o.bind('mouseup', eventParam, event.proxy);
- o.bind('contextmenu', eventParam, event.proxy);
- },
- unbindTree: function(setting) {
- var o = setting.treeObj;
- o.unbind('click', event.proxy)
- .unbind('dblclick', event.proxy)
- .unbind('mouseover', event.proxy)
- .unbind('mouseout', event.proxy)
- .unbind('mousedown', event.proxy)
- .unbind('mouseup', event.proxy)
- .unbind('contextmenu', event.proxy);
- },
- doProxy: function(e) {
- var results = [];
- for (var i=0, j=_init.proxys.length; i<j; i++) {
- var proxyResult = _init.proxys[i].apply(this, arguments);
- results.push(proxyResult);
- if (proxyResult.stop) {
- break;
- }
- }
- return results;
- },
- proxy: function(e) {
- var setting = data.getSetting(e.data.treeId);
- if (!tools.uCanDo(setting, e)) return true;
- var results = event.doProxy(e),
- r = true, x = false;
- for (var i=0, l=results.length; i<l; i++) {
- var proxyResult = results[i];
- if (proxyResult.nodeEventCallback) {
- x = true;
- r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
- }
- if (proxyResult.treeEventCallback) {
- x = true;
- r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
- }
- }
- return r;
- }
- },
- //method of event handler
- handler = {
- onSwitchNode: function (event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (node.open) {
- if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true;
- data.getRoot(setting).expandTriggerFlag = true;
- view.switchNode(setting, node);
- } else {
- if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true;
- data.getRoot(setting).expandTriggerFlag = true;
- view.switchNode(setting, node);
- }
- return true;
- },
- onClickNode: function (event, node) {
- var setting = data.getSetting(event.data.treeId),
- clickFlag = ( (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1;
- if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true;
- if (clickFlag === 0) {
- view.cancelPreSelectedNode(setting, node);
- } else {
- view.selectNode(setting, node, clickFlag === 2);
- }
- setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]);
- return true;
- },
- onZTreeMousedown: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeMouseup: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeDblclick: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeContextmenu: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]);
- }
- return (typeof setting.callback.onRightClick) != "function";
- }
- },
- //method of tools for zTree
- tools = {
- apply: function(fun, param, defaultValue) {
- if ((typeof fun) == "function") {
- return fun.apply(zt, param?param:[]);
- }
- return defaultValue;
- },
- canAsync: function(setting, node) {
- var childKey = setting.data.key.children;
- return (setting.async.enable && node && node.isParent && !(node.zAsync || (node[childKey] && node[childKey].length > 0)));
- },
- clone: function (obj){
- if (obj === null) return null;
- var o = tools.isArray(obj) ? [] : {};
- for(var i in obj){
- o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]);
- }
- return o;
- },
- eqs: function(str1, str2) {
- return str1.toLowerCase() === str2.toLowerCase();
- },
- isArray: function(arr) {
- return Object.prototype.toString.apply(arr) === "[object Array]";
- },
- $: function(node, exp, setting) {
- if (!!exp && typeof exp != "string") {
- setting = exp;
- exp = "";
- }
- if (typeof node == "string") {
- return $(node, setting ? setting.treeObj.get(0).ownerDocument : null);
- } else {
- return $("#" + node.tId + exp, setting ? setting.treeObj : null);
- }
- },
- getMDom: function (setting, curDom, targetExpr) {
- if (!curDom) return null;
- while (curDom && curDom.id !== setting.treeId) {
- for (var i=0, l=targetExpr.length; curDom.tagName && i<l; i++) {
- if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) {
- return curDom;
- }
- }
- curDom = curDom.parentNode;
- }
- return null;
- },
- getNodeMainDom:function(target) {
- return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0));
- },
- isChildOrSelf: function(dom, parentId) {
- return ( $(dom).closest("#" + parentId).length> 0 );
- },
- uCanDo: function(setting, e) {
- return true;
- }
- },
- //method of operate ztree dom
- view = {
- addNodes: function(setting, parentNode, newNodes, isSilent) {
- if (setting.data.keep.leaf && parentNode && !parentNode.isParent) {
- return;
- }
- if (!tools.isArray(newNodes)) {
- newNodes = [newNodes];
- }
- if (setting.data.simpleData.enable) {
- newNodes = data.transformTozTreeFormat(setting, newNodes);
- }
- if (parentNode) {
- var target_switchObj = $$(parentNode, consts.id.SWITCH, setting),
- target_icoObj = $$(parentNode, consts.id.ICON, setting),
- target_ulObj = $$(parentNode, consts.id.UL, setting);
-
- if (!parentNode.open) {
- view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE);
- view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE);
- parentNode.open = false;
- target_ulObj.css({
- "display": "none"
- });
- }
-
- data.addNodesData(setting, parentNode, newNodes);
- view.createNodes(setting, parentNode.level + 1, newNodes, parentNode);
- if (!isSilent) {
- view.expandCollapseParentNode(setting, parentNode, true);
- }
- } else {
- data.addNodesData(setting, data.getRoot(setting), newNodes);
- view.createNodes(setting, 0, newNodes, null);
- }
- },
- appendNodes: function(setting, level, nodes, parentNode, initFlag, openFlag) {
- if (!nodes) return [];
- var html = [],
- childKey = setting.data.key.children;
- for (var i = 0, l = nodes.length; i < l; i++) {
- var node = nodes[i];
- if (initFlag) {
- var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),
- tmpPChild = tmpPNode[childKey],
- isFirstNode = ((tmpPChild.length == nodes.length) && (i == 0)),
- isLastNode = (i == (nodes.length - 1));
- data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag);
- data.addNodeCache(setting, node);
- }
-
- var childHtml = [];
- if (node[childKey] && node[childKey].length > 0) {
- //make child html first, because checkType
- childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open);
- }
- if (openFlag) {
-
- view.makeDOMNodeMainBefore(html, setting, node);
- view.makeDOMNodeLine(html, setting, node);
- data.getBeforeA(setting, node, html);
- view.makeDOMNodeNameBefore(html, setting, node);
- data.getInnerBeforeA(setting, node, html);
- view.makeDOMNodeIcon(html, setting, node);
- data.getInnerAfterA(setting, node, html);
- view.makeDOMNodeNameAfter(html, setting, node);
- data.getAfterA(setting, node, html);
- if (node.isParent && node.open) {
- view.makeUlHtml(setting, node, html, childHtml.join(''));
- }
- view.makeDOMNodeMainAfter(html, setting, node);
- data.addCreatedNode(setting, node);
- }
- }
- return html;
- },
- appendParentULDom: function(setting, node) {
- var html = [],
- nObj = $$(node, setting);
- if (!nObj.get(0) && !!node.parentTId) {
- view.appendParentULDom(setting, node.getParentNode());
- nObj = $$(node, setting);
- }
- var ulObj = $$(node, consts.id.UL, setting);
- if (ulObj.get(0)) {
- ulObj.remove();
- }
- var childKey = setting.data.key.children,
- childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true);
- view.makeUlHtml(setting, node, html, childHtml.join(''));
- nObj.append(html.join(''));
- },
- asyncNode: function(setting, node, isSilent, callback) {
- var i, l;
- if (node && !node.isParent) {
- tools.apply(callback);
- return false;
- } else if (node && node.isAjaxing) {
- return false;
- } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) {
- tools.apply(callback);
- return false;
- }
- if (node) {
- node.isAjaxing = true;
- var icoObj = $$(node, consts.id.ICON, setting);
- icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING});
- }
-
- var tmpParam = {};
- for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) {
- var pKey = setting.async.autoParam[i].split("="), spKey = pKey;
- if (pKey.length>1) {
- spKey = pKey[1];
- pKey = pKey[0];
- }
- tmpParam[spKey] = node[pKey];
- }
- if (tools.isArray(setting.async.otherParam)) {
- for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) {
- tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1];
- }
- } else {
- for (var p in setting.async.otherParam) {
- tmpParam[p] = setting.async.otherParam[p];
- }
- }
-
- var _tmpV = data.getRoot(setting)._ver;
- $.ajax({
- contentType: setting.async.contentType,
- type: setting.async.type,
- url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url),
- data: tmpParam,
- dataType: setting.async.dataType,
- success: function(msg) {
- if (_tmpV != data.getRoot(setting)._ver) {
- return;
- }
- var newNodes = [];
- try {
- if (!msg || msg.length == 0) {
- newNodes = [];
- } else if (typeof msg == "string") {
- newNodes = eval("(" + msg + ")");
- } else {
- newNodes = msg;
- }
- } catch(err) {
- newNodes = msg;
- }
-
- if (node) {
- node.isAjaxing = null;
- node.zAsync = true;
- }
- view.setNodeLineIcos(setting, node);
- if (newNodes && newNodes !== "") {
- newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes);
- view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent);
- } else {
- view.addNodes(setting, node, [], !!isSilent);
- }
- setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]);
- tools.apply(callback);
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- if (_tmpV != data.getRoot(setting)._ver) {
- return;
- }
- if (node) node.isAjaxing = null;
- view.setNodeLineIcos(setting, node);
- setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]);
- }
- });
- return true;
- },
- cancelPreSelectedNode: function (setting, node) {
- var list = data.getRoot(setting).curSelectedList;
- for (var i=0, j=list.length-1; j>=i; j--) {
- if (!node || node === list[j]) {
- $$(list[j], consts.id.A, setting).removeClass(consts.node.CURSELECTED);
- if (node) {
- data.removeSelectedNode(setting, node);
- break;
- }
- }
- }
- if (!node) data.getRoot(setting).curSelectedList = [];
- },
- createNodeCallback: function(setting) {
- if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
- var root = data.getRoot(setting);
- while (root.createdNodes.length>0) {
- var node = root.createdNodes.shift();
- tools.apply(setting.view.addDiyDom, [setting.treeId, node]);
- if (!!setting.callback.onNodeCreated) {
- setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]);
- }
- }
- }
- },
- createNodes: function(setting, level, nodes, parentNode) {
- if (!nodes || nodes.length == 0) return;
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0);
- root.createdNodes = [];
- var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag);
- if (!parentNode) {
- setting.treeObj.append(zTreeHtml.join(''));
- } else {
- var ulObj = $$(parentNode, consts.id.UL, setting);
- if (ulObj.get(0)) {
- ulObj.append(zTreeHtml.join(''));
- }
- }
- view.createNodeCallback(setting);
- },
- destroy: function(setting) {
- if (!setting) return;
- data.initCache(setting);
- data.initRoot(setting);
- event.unbindTree(setting);
- event.unbindEvent(setting);
- setting.treeObj.empty();
- delete settings[setting.treeId];
- },
- expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- if (!node) {
- tools.apply(callback, []);
- return;
- }
- if (root.expandTriggerFlag) {
- var _callback = callback;
- callback = function(){
- if (_callback) _callback();
- if (node.open) {
- setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]);
- } else {
- setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]);
- }
- };
- root.expandTriggerFlag = false;
- }
- if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) {
- view.appendParentULDom(setting, node);
- view.createNodeCallback(setting);
- }
- if (node.open == expandFlag) {
- tools.apply(callback, []);
- return;
- }
- var ulObj = $$(node, consts.id.UL, setting),
- switchObj = $$(node, consts.id.SWITCH, setting),
- icoObj = $$(node, consts.id.ICON, setting);
-
- if (node.isParent) {
- node.open = !node.open;
- if (node.iconOpen && node.iconClose) {
- icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
- }
-
- if (node.open) {
- view.replaceSwitchClass(node, switchObj, consts.folder.OPEN);
- view.replaceIcoClass(node, icoObj, consts.folder.OPEN);
- if (animateFlag == false || setting.view.expandSpeed == "") {
- ulObj.show();
- tools.apply(callback, []);
- } else {
- if (node[childKey] && node[childKey].length > 0) {
- ulObj.slideDown(setting.view.expandSpeed, callback);
- } else {
- ulObj.show();
- tools.apply(callback, []);
- }
- }
- } else {
- view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE);
- view.replaceIcoClass(node, icoObj, consts.folder.CLOSE);
- if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) {
- ulObj.hide();
- tools.apply(callback, []);
- } else {
- ulObj.slideUp(setting.view.expandSpeed, callback);
- }
- }
- } else {
- tools.apply(callback, []);
- }
- },
- expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) {
- if (!node) return;
- if (!node.parentTId) {
- view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback);
- return;
- } else {
- view.expandCollapseNode(setting, node, expandFlag, animateFlag);
- }
- if (node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback);
- }
- },
- expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- treeNodes = (node) ? node[childKey]: root[childKey],
- selfAnimateSign = (node) ? false : animateFlag,
- expandTriggerFlag = data.getRoot(setting).expandTriggerFlag;
- data.getRoot(setting).expandTriggerFlag = false;
- if (treeNodes) {
- for (var i = 0, l = treeNodes.length; i < l; i++) {
- if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign);
- }
- }
- data.getRoot(setting).expandTriggerFlag = expandTriggerFlag;
- view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback );
- },
- makeDOMNodeIcon: function(html, setting, node) {
- var nameStr = data.getNodeName(setting, node),
- name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
- html.push("<span id='", node.tId, consts.id.ICON,
- "' title='' treeNode", consts.id.ICON," class='", view.makeNodeIcoClass(setting, node),
- "' style='", view.makeNodeIcoStyle(setting, node), "'></span><span id='", node.tId, consts.id.SPAN,
- "'>",name,"</span>");
- },
- makeDOMNodeLine: function(html, setting, node) {
- html.push("<span id='", node.tId, consts.id.SWITCH, "' title='' class='", view.makeNodeLineClass(setting, node), "' treeNode", consts.id.SWITCH,"></span>");
- },
- makeDOMNodeMainAfter: function(html, setting, node) {
- html.push("</li>");
- },
- makeDOMNodeMainBefore: function(html, setting, node) {
- html.push("<li id='", node.tId, "' class='", consts.className.LEVEL, node.level,"' tabindex='0' hidefocus='true' treenode>");
- },
- makeDOMNodeNameAfter: function(html, setting, node) {
- html.push("</a>");
- },
- makeDOMNodeNameBefore: function(html, setting, node) {
- var title = data.getNodeTitle(setting, node),
- url = view.makeNodeUrl(setting, node),
- fontcss = view.makeNodeFontCss(setting, node),
- fontStyle = [];
- for (var f in fontcss) {
- fontStyle.push(f, ":", fontcss[f], ";");
- }
- html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,"' treeNode", consts.id.A," onclick=\"", (node.click || ''),
- "\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''),
- "'");
- if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"&#39;").replace(/</g,'&lt;').replace(/>/g,'&gt;'),"'");}
- html.push(">");
- },
- makeNodeFontCss: function(setting, node) {
- var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss);
- return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {};
- },
- makeNodeIcoClass: function(setting, node) {
- var icoCss = ["ico"];
- if (!node.isAjaxing) {
- icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0];
- if (node.isParent) {
- icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
- } else {
- icoCss.push(consts.folder.DOCU);
- }
- }
- return consts.className.BUTTON + " " + icoCss.join('_');
- },
- makeNodeIcoStyle: function(setting, node) {
- var icoStyle = [];
- if (!node.isAjaxing) {
- var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon;
- if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;");
- if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) {
- icoStyle.push("width:0px;height:0px;");
- }
- }
- return icoStyle.join('');
- },
- makeNodeLineClass: function(setting, node) {
- var lineClass = [];
- if (setting.view.showLine) {
- if (node.level == 0 && node.isFirstNode && node.isLastNode) {
- lineClass.push(consts.line.ROOT);
- } else if (node.level == 0 && node.isFirstNode) {
- lineClass.push(consts.line.ROOTS);
- } else if (node.isLastNode) {
- lineClass.push(consts.line.BOTTOM);
- } else {
- lineClass.push(consts.line.CENTER);
- }
- } else {
- lineClass.push(consts.line.NOLINE);
- }
- if (node.isParent) {
- lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
- } else {
- lineClass.push(consts.folder.DOCU);
- }
- return view.makeNodeLineClassEx(node) + lineClass.join('_');
- },
- makeNodeLineClassEx: function(node) {
- return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " ";
- },
- makeNodeTarget: function(node) {
- return (node.target || "_blank");
- },
- makeNodeUrl: function(setting, node) {
- var urlKey = setting.data.key.url;
- return node[urlKey] ? node[urlKey] : null;
- },
- makeUlHtml: function(setting, node, html, content) {
- html.push("<ul id='", node.tId, consts.id.UL, "' class='", consts.className.LEVEL, node.level, " ", view.makeUlLineClass(setting, node), "' style='display:", (node.open ? "block": "none"),"'>");
- html.push(content);
- html.push("</ul>");
- },
- makeUlLineClass: function(setting, node) {
- return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : "");
- },
- removeChildNodes: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children,
- nodes = node[childKey];
- if (!nodes) return;
-
- for (var i = 0, l = nodes.length; i < l; i++) {
- data.removeNodeCache(setting, nodes[i]);
- }
- data.removeSelectedNode(setting);
- delete node[childKey];
-
- if (!setting.data.keep.parent) {
- node.isParent = false;
- node.open = false;
- var tmp_switchObj = $$(node, consts.id.SWITCH, setting),
- tmp_icoObj = $$(node, consts.id.ICON, setting);
- view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU);
- $$(node, consts.id.UL, setting).remove();
- } else {
- $$(node, consts.id.UL, setting).empty();
- }
- },
- setFirstNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if ( childLength > 0) {
- parentNode[childKey][0].isFirstNode = true;
- }
- },
- setLastNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if ( childLength > 0) {
- parentNode[childKey][childLength - 1].isLastNode = true;
- }
- },
- removeNode: function(setting, node) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- parentNode = (node.parentTId) ? node.getParentNode() : root;
-
- node.isFirstNode = false;
- node.isLastNode = false;
- node.getPreNode = function() {return null;};
- node.getNextNode = function() {return null;};
-
- if (!data.getNodeCache(setting, node.tId)) {
- return;
- }
-
- $$(node, setting).remove();
- data.removeNodeCache(setting, node);
- data.removeSelectedNode(setting, node);
-
- for (var i = 0, l = parentNode[childKey].length; i < l; i++) {
- if (parentNode[childKey][i].tId == node.tId) {
- parentNode[childKey].splice(i, 1);
- break;
- }
- }
- view.setFirstNode(setting, parentNode);
- view.setLastNode(setting, parentNode);
-
- var tmp_ulObj,tmp_switchObj,tmp_icoObj,
- childLength = parentNode[childKey].length;
-
- //repair nodes old parent
- if (!setting.data.keep.parent && childLength == 0) {
- //old parentNode has no child nodes
- parentNode.isParent = false;
- parentNode.open = false;
- tmp_ulObj = $$(parentNode, consts.id.UL, setting);
- tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting);
- tmp_icoObj = $$(parentNode, consts.id.ICON, setting);
- view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU);
- tmp_ulObj.css("display", "none");
-
- } else if (setting.view.showLine && childLength > 0) {
- //old parentNode has child nodes
- var newLast = parentNode[childKey][childLength - 1];
- tmp_ulObj = $$(newLast, consts.id.UL, setting);
- tmp_switchObj = $$(newLast, consts.id.SWITCH, setting);
- tmp_icoObj = $$(newLast, consts.id.ICON, setting);
- if (parentNode == root) {
- if (parentNode[childKey].length == 1) {
- //node was root, and ztree has only one root after move node
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT);
- } else {
- var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting);
- view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS);
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
- }
- } else {
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
- }
- tmp_ulObj.removeClass(consts.line.LINE);
- }
- },
- replaceIcoClass: function(node, obj, newName) {
- if (!obj || node.isAjaxing) return;
- var tmpName = obj.attr("class");
- if (tmpName == undefined) return;
- var tmpList = tmpName.split("_");
- switch (newName) {
- case consts.folder.OPEN:
- case consts.folder.CLOSE:
- case consts.folder.DOCU:
- tmpList[tmpList.length-1] = newName;
- break;
- }
- obj.attr("class", tmpList.join("_"));
- },
- replaceSwitchClass: function(node, obj, newName) {
- if (!obj) return;
- var tmpName = obj.attr("class");
- if (tmpName == undefined) return;
- var tmpList = tmpName.split("_");
- switch (newName) {
- case consts.line.ROOT:
- case consts.line.ROOTS:
- case consts.line.CENTER:
- case consts.line.BOTTOM:
- case consts.line.NOLINE:
- tmpList[0] = view.makeNodeLineClassEx(node) + newName;
- break;
- case consts.folder.OPEN:
- case consts.folder.CLOSE:
- case consts.folder.DOCU:
- tmpList[1] = newName;
- break;
- }
- obj.attr("class", tmpList.join("_"));
- if (newName !== consts.folder.DOCU) {
- obj.removeAttr("disabled");
- } else {
- obj.attr("disabled", "disabled");
- }
- },
- selectNode: function(setting, node, addFlag) {
- if (!addFlag) {
- view.cancelPreSelectedNode(setting);
- }
- $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED);
- data.addSelectedNode(setting, node);
- },
- setNodeFontCss: function(setting, treeNode) {
- var aObj = $$(treeNode, consts.id.A, setting),
- fontCss = view.makeNodeFontCss(setting, treeNode);
- if (fontCss) {
- aObj.css(fontCss);
- }
- },
- setNodeLineIcos: function(setting, node) {
- if (!node) return;
- var switchObj = $$(node, consts.id.SWITCH, setting),
- ulObj = $$(node, consts.id.UL, setting),
- icoObj = $$(node, consts.id.ICON, setting),
- ulLine = view.makeUlLineClass(setting, node);
- if (ulLine.length==0) {
- ulObj.removeClass(consts.line.LINE);
- } else {
- ulObj.addClass(ulLine);
- }
- switchObj.attr("class", view.makeNodeLineClass(setting, node));
- if (node.isParent) {
- switchObj.removeAttr("disabled");
- } else {
- switchObj.attr("disabled", "disabled");
- }
- icoObj.removeAttr("style");
- icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
- icoObj.attr("class", view.makeNodeIcoClass(setting, node));
- },
- setNodeName: function(setting, node) {
- var title = data.getNodeTitle(setting, node),
- nObj = $$(node, consts.id.SPAN, setting);
- nObj.empty();
- if (setting.view.nameIsHTML) {
- nObj.html(data.getNodeName(setting, node));
- } else {
- nObj.text(data.getNodeName(setting, node));
- }
- if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) {
- var aObj = $$(node, consts.id.A, setting);
- aObj.attr("title", !title ? "" : title);
- }
- },
- setNodeTarget: function(setting, node) {
- var aObj = $$(node, consts.id.A, setting);
- aObj.attr("target", view.makeNodeTarget(node));
- },
- setNodeUrl: function(setting, node) {
- var aObj = $$(node, consts.id.A, setting),
- url = view.makeNodeUrl(setting, node);
- if (url == null || url.length == 0) {
- aObj.removeAttr("href");
- } else {
- aObj.attr("href", url);
- }
- },
- switchNode: function(setting, node) {
- if (node.open || !tools.canAsync(setting, node)) {
- view.expandCollapseNode(setting, node, !node.open);
- } else if (setting.async.enable) {
- if (!view.asyncNode(setting, node)) {
- view.expandCollapseNode(setting, node, !node.open);
- return;
- }
- } else if (node) {
- view.expandCollapseNode(setting, node, !node.open);
- }
- }
- };
- // zTree defind
- $.fn.zTree = {
- consts : _consts,
- _z : {
- tools: tools,
- view: view,
- event: event,
- data: data
- },
- getZTreeObj: function(treeId) {
- var o = data.getZTreeTools(treeId);
- return o ? o : null;
- },
- destroy: function(treeId) {
- if (!!treeId && treeId.length > 0) {
- view.destroy(data.getSetting(treeId));
- } else {
- for(var s in settings) {
- view.destroy(settings[s]);
- }
- }
- },
- init: function(obj, zSetting, zNodes) {
- var setting = tools.clone(_setting);
- $.extend(true, setting, zSetting);
- setting.treeId = obj.attr("id");
- setting.treeObj = obj;
- setting.treeObj.empty();
- settings[setting.treeId] = setting;
- //For some older browser,(e.g., ie6)
- if(typeof document.body.style.maxHeight === "undefined") {
- setting.view.expandSpeed = "";
- }
- data.initRoot(setting);
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : [];
- if (setting.data.simpleData.enable) {
- root[childKey] = data.transformTozTreeFormat(setting, zNodes);
- } else {
- root[childKey] = zNodes;
- }
-
- data.initCache(setting);
- event.unbindTree(setting);
- event.bindTree(setting);
- event.unbindEvent(setting);
- event.bindEvent(setting);
-
- var zTreeTools = {
- setting : setting,
- addNodes : function(parentNode, newNodes, isSilent) {
- if (!newNodes) return null;
- if (!parentNode) parentNode = null;
- if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null;
- var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]);
- function addCallback() {
- view.addNodes(setting, parentNode, xNewNodes, (isSilent==true));
- }
-
- if (tools.canAsync(setting, parentNode)) {
- view.asyncNode(setting, parentNode, isSilent, addCallback);
- } else {
- addCallback();
- }
- return xNewNodes;
- },
- cancelSelectedNode : function(node) {
- view.cancelPreSelectedNode(setting, node);
- },
- destroy : function() {
- view.destroy(setting);
- },
- expandAll : function(expandFlag) {
- expandFlag = !!expandFlag;
- view.expandCollapseSonNode(setting, null, expandFlag, true);
- return expandFlag;
- },
- expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) {
- if (!node || !node.isParent) return null;
- if (expandFlag !== true && expandFlag !== false) {
- expandFlag = !node.open;
- }
- callbackFlag = !!callbackFlag;
-
- if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) {
- return null;
- } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) {
- return null;
- }
- if (expandFlag && node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false);
- }
- if (expandFlag === node.open && !sonSign) {
- return null;
- }
-
- data.getRoot(setting).expandTriggerFlag = callbackFlag;
- if (!tools.canAsync(setting, node) && sonSign) {
- view.expandCollapseSonNode(setting, node, expandFlag, true, function() {
- if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}
- });
- } else {
- node.open = !expandFlag;
- view.switchNode(this.setting, node);
- if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}
- }
- return expandFlag;
- },
- getNodes : function() {
- return data.getNodes(setting);
- },
- getNodeByParam : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodeByTId : function(tId) {
- return data.getNodeCache(setting, tId);
- },
- getNodesByParam : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodesByParamFuzzy : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) {
- isSingle = !!isSingle;
- if (!filter || (typeof filter != "function")) return (isSingle ? null : []);
- return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam);
- },
- getNodeIndex : function(node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l = parentNode[childKey].length; i < l; i++) {
- if (parentNode[childKey][i] == node) return i;
- }
- return -1;
- },
- getSelectedNodes : function() {
- var r = [], list = data.getRoot(setting).curSelectedList;
- for (var i=0, l=list.length; i<l; i++) {
- r.push(list[i]);
- }
- return r;
- },
- isSelectedNode : function(node) {
- return data.isSelectedNode(setting, node);
- },
- reAsyncChildNodes : function(parentNode, reloadType, isSilent) {
- if (!this.setting.async.enable) return;
- var isRoot = !parentNode;
- if (isRoot) {
- parentNode = data.getRoot(setting);
- }
- if (reloadType=="refresh") {
- var childKey = this.setting.data.key.children;
- for (var i = 0, l = parentNode[childKey] ? parentNode[childKey].length : 0; i < l; i++) {
- data.removeNodeCache(setting, parentNode[childKey][i]);
- }
- data.removeSelectedNode(setting);
- parentNode[childKey] = [];
- if (isRoot) {
- this.setting.treeObj.empty();
- } else {
- var ulObj = $$(parentNode, consts.id.UL, setting);
- ulObj.empty();
- }
- }
- view.asyncNode(this.setting, isRoot? null:parentNode, !!isSilent);
- },
- refresh : function() {
- this.setting.treeObj.empty();
- var root = data.getRoot(setting),
- nodes = root[setting.data.key.children]
- data.initRoot(setting);
- root[setting.data.key.children] = nodes
- data.initCache(setting);
- view.createNodes(setting, 0, root[setting.data.key.children]);
- },
- removeChildNodes : function(node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- nodes = node[childKey];
- view.removeChildNodes(setting, node);
- return nodes ? nodes : null;
- },
- removeNode : function(node, callbackFlag) {
- if (!node) return;
- callbackFlag = !!callbackFlag;
- if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return;
- view.removeNode(setting, node);
- if (callbackFlag) {
- this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
- }
- },
- selectNode : function(node, addFlag) {
- if (!node) return;
- if (tools.uCanDo(setting)) {
- addFlag = setting.view.selectedMulti && addFlag;
- if (node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), true, false, function() {
- try{$$(node, setting).focus().blur();}catch(e){}
- });
- } else {
- try{$$(node, setting).focus().blur();}catch(e){}
- }
- view.selectNode(setting, node, addFlag);
- }
- },
- transformTozTreeNodes : function(simpleNodes) {
- return data.transformTozTreeFormat(setting, simpleNodes);
- },
- transformToArray : function(nodes) {
- return data.transformToArrayFormat(setting, nodes);
- },
- updateNode : function(node, checkTypeFlag) {
- if (!node) return;
- var nObj = $$(node, setting);
- if (nObj.get(0) && tools.uCanDo(setting)) {
- view.setNodeName(setting, node);
- view.setNodeTarget(setting, node);
- view.setNodeUrl(setting, node);
- view.setNodeLineIcos(setting, node);
- view.setNodeFontCss(setting, node);
- }
- }
- }
- root.treeTools = zTreeTools;
- data.setZTreeTools(setting, zTreeTools);
-
- if (root[childKey] && root[childKey].length > 0) {
- view.createNodes(setting, 0, root[childKey]);
- } else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
- view.asyncNode(setting);
- }
- return zTreeTools;
- }
- };
-
- var zt = $.fn.zTree,
- $$ = tools.$,
- consts = zt.consts;
-})(jQuery);
-/*
- * JQuery zTree excheck v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- //default consts of excheck
- var _consts = {
- event: {
- CHECK: "ztree_check"
- },
- id: {
- CHECK: "_check"
- },
- checkbox: {
- STYLE: "checkbox",
- DEFAULT: "chk",
- DISABLED: "disable",
- FALSE: "false",
- TRUE: "true",
- FULL: "full",
- PART: "part",
- FOCUS: "focus"
- },
- radio: {
- STYLE: "radio",
- TYPE_ALL: "all",
- TYPE_LEVEL: "level"
- }
- },
- //default setting of excheck
- _setting = {
- check: {
- enable: false,
- autoCheckTrigger: false,
- chkStyle: _consts.checkbox.STYLE,
- nocheckInherit: false,
- chkDisabledInherit: false,
- radioType: _consts.radio.TYPE_LEVEL,
- chkboxType: {
- "Y": "ps",
- "N": "ps"
- }
- },
- data: {
- key: {
- checked: "checked"
- }
- },
- callback: {
- beforeCheck:null,
- onCheck:null
- }
- },
- //default root of excheck
- _initRoot = function (setting) {
- var r = data.getRoot(setting);
- r.radioCheckedList = [];
- },
- //default cache of excheck
- _initCache = function(treeId) {},
- //default bind event of excheck
- _bindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.bind(c.CHECK, function (event, srcEvent, treeId, node) {
- event.srcEvent = srcEvent;
- tools.apply(setting.callback.onCheck, [event, treeId, node]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.unbind(c.CHECK);
- },
- //default event proxy of excheck
- _eventProxy = function(e) {
- var target = e.target,
- setting = data.getSetting(e.data.treeId),
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null;
-
- if (tools.eqs(e.type, "mouseover")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "mouseoverCheck";
- }
- } else if (tools.eqs(e.type, "mouseout")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "mouseoutCheck";
- }
- } else if (tools.eqs(e.type, "click")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "checkNode";
- }
- }
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "checkNode" :
- nodeEventCallback = _handler.onCheckNode;
- break;
- case "mouseoverCheck" :
- nodeEventCallback = _handler.onMouseoverCheck;
- break;
- case "mouseoutCheck" :
- nodeEventCallback = _handler.onMouseoutCheck;
- break;
- }
- }
- var proxyResult = {
- stop: nodeEventType === "checkNode",
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of excheck
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- var checkedKey = setting.data.key.checked;
- if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true");
- n[checkedKey] = !!n[checkedKey];
- n.checkedOld = n[checkedKey];
- if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true");
- n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck);
- if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true");
- n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled);
- if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true");
- n.halfCheck = !!n.halfCheck;
- n.check_Child_State = -1;
- n.check_Focus = false;
- n.getCheckStatus = function() {return data.getCheckStatus(setting, n);};
-
- if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) {
- var r = data.getRoot(setting);
- r.radioCheckedList.push(n);
- }
- },
- //add dom for check
- _beforeA = function(setting, node, html) {
- var checkedKey = setting.data.key.checked;
- if (setting.check.enable) {
- data.makeChkFlag(setting, node);
- html.push("<span ID='", node.tId, consts.id.CHECK, "' class='", view.makeChkClass(setting, node), "' treeNode", consts.id.CHECK, (node.nocheck === true?" style='display:none;'":""),"></span>");
- }
- },
- //update zTreeObj, add method of check
- _zTreeTools = function(setting, zTreeTools) {
- zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) {
- var checkedKey = this.setting.data.key.checked;
- if (node.chkDisabled === true) return;
- if (checked !== true && checked !== false) {
- checked = !node[checkedKey];
- }
- callbackFlag = !!callbackFlag;
-
- if (node[checkedKey] === checked && !checkTypeFlag) {
- return;
- } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) {
- return;
- }
- if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) {
- node[checkedKey] = checked;
- var checkObj = $$(node, consts.id.CHECK, this.setting);
- if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);
- view.setChkClass(this.setting, checkObj, node);
- view.repairParentChkClassWithSelf(this.setting, node);
- if (callbackFlag) {
- this.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]);
- }
- }
- }
-
- zTreeTools.checkAllNodes = function(checked) {
- view.repairAllChk(this.setting, !!checked);
- }
-
- zTreeTools.getCheckedNodes = function(checked) {
- var childKey = this.setting.data.key.children;
- checked = (checked !== false);
- return data.getTreeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey], checked);
- }
-
- zTreeTools.getChangeCheckedNodes = function() {
- var childKey = this.setting.data.key.children;
- return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey]);
- }
-
- zTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) {
- disabled = !!disabled;
- inheritParent = !!inheritParent;
- inheritChildren = !!inheritChildren;
- view.repairSonChkDisabled(this.setting, node, disabled, inheritChildren);
- view.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent);
- }
-
- var _updateNode = zTreeTools.updateNode;
- zTreeTools.updateNode = function(node, checkTypeFlag) {
- if (_updateNode) _updateNode.apply(zTreeTools, arguments);
- if (!node || !this.setting.check.enable) return;
- var nObj = $$(node, this.setting);
- if (nObj.get(0) && tools.uCanDo(this.setting)) {
- var checkObj = $$(node, consts.id.CHECK, this.setting);
- if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);
- view.setChkClass(this.setting, checkObj, node);
- view.repairParentChkClassWithSelf(this.setting, node);
- }
- }
- },
- //method of operate data
- _data = {
- getRadioCheckedList: function(setting) {
- var checkedList = data.getRoot(setting).radioCheckedList;
- for (var i=0, j=checkedList.length; i<j; i++) {
- if(!data.getNodeCache(setting, checkedList[i].tId)) {
- checkedList.splice(i, 1);
- i--; j--;
- }
- }
- return checkedList;
- },
- getCheckStatus: function(setting, node) {
- if (!setting.check.enable || node.nocheck || node.chkDisabled) return null;
- var checkedKey = setting.data.key.checked,
- r = {
- checked: node[checkedKey],
- half: node.halfCheck ? node.halfCheck : (setting.check.chkStyle == consts.radio.STYLE ? (node.check_Child_State === 2) : (node[checkedKey] ? (node.check_Child_State > -1 && node.check_Child_State < 2) : (node.check_Child_State > 0)))
- };
- return r;
- },
- getTreeCheckedNodes: function(setting, nodes, checked, results) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL);
- results = !results ? [] : results;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] == checked) {
- results.push(nodes[i]);
- if(onlyOne) {
- break;
- }
- }
- data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results);
- if(onlyOne && results.length > 0) {
- break;
- }
- }
- return results;
- },
- getTreeChangeCheckedNodes: function(setting, nodes, results) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked;
- results = !results ? [] : results;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] != nodes[i].checkedOld) {
- results.push(nodes[i]);
- }
- data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results);
- }
- return results;
- },
- makeChkFlag: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- chkFlag = -1;
- if (node[childKey]) {
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- var cNode = node[childKey][i];
- var tmp = -1;
- if (setting.check.chkStyle == consts.radio.STYLE) {
- if (cNode.nocheck === true || cNode.chkDisabled === true) {
- tmp = cNode.check_Child_State;
- } else if (cNode.halfCheck === true) {
- tmp = 2;
- } else if (cNode[checkedKey]) {
- tmp = 2;
- } else {
- tmp = cNode.check_Child_State > 0 ? 2:0;
- }
- if (tmp == 2) {
- chkFlag = 2; break;
- } else if (tmp == 0){
- chkFlag = 0;
- }
- } else if (setting.check.chkStyle == consts.checkbox.STYLE) {
- if (cNode.nocheck === true || cNode.chkDisabled === true) {
- tmp = cNode.check_Child_State;
- } else if (cNode.halfCheck === true) {
- tmp = 1;
- } else if (cNode[checkedKey] ) {
- tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1;
- } else {
- tmp = (cNode.check_Child_State > 0) ? 1 : 0;
- }
- if (tmp === 1) {
- chkFlag = 1; break;
- } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) {
- chkFlag = 1; break;
- } else if (chkFlag === 2 && tmp > -1 && tmp < 2) {
- chkFlag = 1; break;
- } else if (tmp > -1) {
- chkFlag = tmp;
- }
- }
- }
- }
- node.check_Child_State = chkFlag;
- }
- },
- //method of event proxy
- _event = {
-
- },
- //method of event handler
- _handler = {
- onCheckNode: function (event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkedKey = setting.data.key.checked;
- if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true;
- node[checkedKey] = !node[checkedKey];
- view.checkNodeRelation(setting, node);
- var checkObj = $$(node, consts.id.CHECK, setting);
- view.setChkClass(setting, checkObj, node);
- view.repairParentChkClassWithSelf(setting, node);
- setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]);
- return true;
- },
- onMouseoverCheck: function(event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkObj = $$(node, consts.id.CHECK, setting);
- node.check_Focus = true;
- view.setChkClass(setting, checkObj, node);
- return true;
- },
- onMouseoutCheck: function(event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkObj = $$(node, consts.id.CHECK, setting);
- node.check_Focus = false;
- view.setChkClass(setting, checkObj, node);
- return true;
- }
- },
- //method of tools for zTree
- _tools = {
-
- },
- //method of operate ztree dom
- _view = {
- checkNodeRelation: function(setting, node) {
- var pNode, i, l,
- childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- r = consts.radio;
- if (setting.check.chkStyle == r.STYLE) {
- var checkedList = data.getRadioCheckedList(setting);
- if (node[checkedKey]) {
- if (setting.check.radioType == r.TYPE_ALL) {
- for (i = checkedList.length-1; i >= 0; i--) {
- pNode = checkedList[i];
- if (pNode[checkedKey] && pNode != node) {
- pNode[checkedKey] = false;
- checkedList.splice(i, 1);
-
- view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);
- if (pNode.parentTId != node.parentTId) {
- view.repairParentChkClassWithSelf(setting, pNode);
- }
- }
- }
- checkedList.push(node);
- } else {
- var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
- for (i = 0, l = parentNode[childKey].length; i < l; i++) {
- pNode = parentNode[childKey][i];
- if (pNode[checkedKey] && pNode != node) {
- pNode[checkedKey] = false;
- view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);
- }
- }
- }
- } else if (setting.check.radioType == r.TYPE_ALL) {
- for (i = 0, l = checkedList.length; i < l; i++) {
- if (node == checkedList[i]) {
- checkedList.splice(i, 1);
- break;
- }
- }
- }
-
- } else {
- if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) {
- view.setSonNodeCheckBox(setting, node, true);
- }
- if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) {
- view.setSonNodeCheckBox(setting, node, false);
- }
- if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) {
- view.setParentNodeCheckBox(setting, node, true);
- }
- if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) {
- view.setParentNodeCheckBox(setting, node, false);
- }
- }
- },
- makeChkClass: function(setting, node) {
- var checkedKey = setting.data.key.checked,
- c = consts.checkbox, r = consts.radio,
- fullStyle = "";
- if (node.chkDisabled === true) {
- fullStyle = c.DISABLED;
- } else if (node.halfCheck) {
- fullStyle = c.PART;
- } else if (setting.check.chkStyle == r.STYLE) {
- fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART;
- } else {
- fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART);
- }
- var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle;
- chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName;
- return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName;
- },
- repairAllChk: function(setting, checked) {
- if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) {
- var checkedKey = setting.data.key.checked,
- childKey = setting.data.key.children,
- root = data.getRoot(setting);
- for (var i = 0, l = root[childKey].length; i<l ; i++) {
- var node = root[childKey][i];
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = checked;
- }
- view.setSonNodeCheckBox(setting, node, checked);
- }
- }
- },
- repairChkClass: function(setting, node) {
- if (!node) return;
- data.makeChkFlag(setting, node);
- if (node.nocheck !== true) {
- var checkObj = $$(node, consts.id.CHECK, setting);
- view.setChkClass(setting, checkObj, node);
- }
- },
- repairParentChkClass: function(setting, node) {
- if (!node || !node.parentTId) return;
- var pNode = node.getParentNode();
- view.repairChkClass(setting, pNode);
- view.repairParentChkClass(setting, pNode);
- },
- repairParentChkClassWithSelf: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children;
- if (node[childKey] && node[childKey].length > 0) {
- view.repairParentChkClass(setting, node[childKey][0]);
- } else {
- view.repairParentChkClass(setting, node);
- }
- },
- repairSonChkDisabled: function(setting, node, chkDisabled, inherit) {
- if (!node) return;
- var childKey = setting.data.key.children;
- if (node.chkDisabled != chkDisabled) {
- node.chkDisabled = chkDisabled;
- }
- view.repairChkClass(setting, node);
- if (node[childKey] && inherit) {
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- var sNode = node[childKey][i];
- view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit);
- }
- }
- },
- repairParentChkDisabled: function(setting, node, chkDisabled, inherit) {
- if (!node) return;
- if (node.chkDisabled != chkDisabled && inherit) {
- node.chkDisabled = chkDisabled;
- }
- view.repairChkClass(setting, node);
- view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit);
- },
- setChkClass: function(setting, obj, node) {
- if (!obj) return;
- if (node.nocheck === true) {
- obj.hide();
- } else {
- obj.show();
- }
- obj.removeClass();
- obj.addClass(view.makeChkClass(setting, node));
- },
- setParentNodeCheckBox: function(setting, node, value, srcNode) {
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- checkObj = $$(node, consts.id.CHECK, setting);
- if (!srcNode) srcNode = node;
- data.makeChkFlag(setting, node);
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = value;
- view.setChkClass(setting, checkObj, node);
- if (setting.check.autoCheckTrigger && node != srcNode) {
- setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);
- }
- }
- if (node.parentTId) {
- var pSign = true;
- if (!value) {
- var pNodes = node.getParentNode()[childKey];
- for (var i = 0, l = pNodes.length; i < l; i++) {
- if ((pNodes[i].nocheck !== true && pNodes[i].chkDisabled !== true && pNodes[i][checkedKey])
- || ((pNodes[i].nocheck === true || pNodes[i].chkDisabled === true) && pNodes[i].check_Child_State > 0)) {
- pSign = false;
- break;
- }
- }
- }
- if (pSign) {
- view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode);
- }
- }
- },
- setSonNodeCheckBox: function(setting, node, value, srcNode) {
- if (!node) return;
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- checkObj = $$(node, consts.id.CHECK, setting);
- if (!srcNode) srcNode = node;
-
- var hasDisable = false;
- if (node[childKey]) {
- for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) {
- var sNode = node[childKey][i];
- view.setSonNodeCheckBox(setting, sNode, value, srcNode);
- if (sNode.chkDisabled === true) hasDisable = true;
- }
- }
-
- if (node != data.getRoot(setting) && node.chkDisabled !== true) {
- if (hasDisable && node.nocheck !== true) {
- data.makeChkFlag(setting, node);
- }
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = value;
- if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1;
- } else {
- node.check_Child_State = -1;
- }
- view.setChkClass(setting, checkObj, node);
- if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) {
- setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);
- }
- }
-
- }
- },
-
- _z = {
- tools: _tools,
- view: _view,
- event: _event,
- data: _data
- };
- $.extend(true, $.fn.zTree.consts, _consts);
- $.extend(true, $.fn.zTree._z, _z);
-
- var zt = $.fn.zTree,
- tools = zt._z.tools,
- consts = zt.consts,
- view = zt._z.view,
- data = zt._z.data,
- event = zt._z.event,
- $$ = tools.$;
-
- data.exSetting(_setting);
- data.addInitBind(_bindEvent);
- data.addInitUnBind(_unbindEvent);
- data.addInitCache(_initCache);
- data.addInitNode(_initNode);
- data.addInitProxy(_eventProxy, true);
- data.addInitRoot(_initRoot);
- data.addBeforeA(_beforeA);
- data.addZTreeTools(_zTreeTools);
-
- var _createNodes = view.createNodes;
- view.createNodes = function(setting, level, nodes, parentNode) {
- if (_createNodes) _createNodes.apply(view, arguments);
- if (!nodes) return;
- view.repairParentChkClassWithSelf(setting, parentNode);
- }
- var _removeNode = view.removeNode;
- view.removeNode = function(setting, node) {
- var parentNode = node.getParentNode();
- if (_removeNode) _removeNode.apply(view, arguments);
- if (!node || !parentNode) return;
- view.repairChkClass(setting, parentNode);
- view.repairParentChkClass(setting, parentNode);
- }
-
- var _appendNodes = view.appendNodes;
- view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) {
- var html = "";
- if (_appendNodes) {
- html = _appendNodes.apply(view, arguments);
- }
- if (parentNode) {
- data.makeChkFlag(setting, parentNode);
- }
- return html;
- }
-})(jQuery);
-/*
- * JQuery zTree exedit v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- //default consts of exedit
- var _consts = {
- event: {
- DRAG: "ztree_drag",
- DROP: "ztree_drop",
- RENAME: "ztree_rename",
- DRAGMOVE:"ztree_dragmove"
- },
- id: {
- EDIT: "_edit",
- INPUT: "_input",
- REMOVE: "_remove"
- },
- move: {
- TYPE_INNER: "inner",
- TYPE_PREV: "prev",
- TYPE_NEXT: "next"
- },
- node: {
- CURSELECTED_EDIT: "curSelectedNode_Edit",
- TMPTARGET_TREE: "tmpTargetzTree",
- TMPTARGET_NODE: "tmpTargetNode"
- }
- },
- //default setting of exedit
- _setting = {
- edit: {
- enable: false,
- editNameSelectAll: false,
- showRemoveBtn: true,
- showRenameBtn: true,
- removeTitle: "remove",
- renameTitle: "rename",
- drag: {
- autoExpandTrigger: false,
- isCopy: true,
- isMove: true,
- prev: true,
- next: true,
- inner: true,
- minMoveSize: 5,
- borderMax: 10,
- borderMin: -5,
- maxShowNodeNum: 5,
- autoOpenTime: 500
- }
- },
- view: {
- addHoverDom: null,
- removeHoverDom: null
- },
- callback: {
- beforeDrag:null,
- beforeDragOpen:null,
- beforeDrop:null,
- beforeEditName:null,
- beforeRename:null,
- onDrag:null,
- onDragMove:null,
- onDrop:null,
- onRename:null
- }
- },
- //default root of exedit
- _initRoot = function (setting) {
- var r = data.getRoot(setting), rs = data.getRoots();
- r.curEditNode = null;
- r.curEditInput = null;
- r.curHoverNode = null;
- r.dragFlag = 0;
- r.dragNodeShowBefore = [];
- r.dragMaskList = new Array();
- rs.showHoverDom = true;
- },
- //default cache of exedit
- _initCache = function(treeId) {},
- //default bind event of exedit
- _bindEvent = function(setting) {
- var o = setting.treeObj;
- var c = consts.event;
- o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) {
- tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]);
- });
-
- o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) {
- tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]);
- });
-
- o.bind(c.DRAGMOVE,function(event, srcEvent, treeId, treeNodes){
- tools.apply(setting.callback.onDragMove,[srcEvent, treeId, treeNodes]);
- });
-
- o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) {
- tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj;
- var c = consts.event;
- o.unbind(c.RENAME);
- o.unbind(c.DRAG);
- o.unbind(c.DRAGMOVE);
- o.unbind(c.DROP);
- },
- //default event proxy of exedit
- _eventProxy = function(e) {
- var target = e.target,
- setting = data.getSetting(e.data.treeId),
- relatedTarget = e.relatedTarget,
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null,
- tmp = null;
-
- if (tools.eqs(e.type, "mouseover")) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "hoverOverNode";
- }
- } else if (tools.eqs(e.type, "mouseout")) {
- tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (!tmp) {
- tId = "remove";
- nodeEventType = "hoverOutNode";
- }
- } else if (tools.eqs(e.type, "mousedown")) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "mousedownNode";
- }
- }
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "mousedownNode" :
- nodeEventCallback = _handler.onMousedownNode;
- break;
- case "hoverOverNode" :
- nodeEventCallback = _handler.onHoverOverNode;
- break;
- case "hoverOutNode" :
- nodeEventCallback = _handler.onHoverOutNode;
- break;
- }
- }
- var proxyResult = {
- stop: false,
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of exedit
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- n.isHover = false;
- n.editNameFlag = false;
- },
- //update zTreeObj, add method of edit
- _zTreeTools = function(setting, zTreeTools) {
- zTreeTools.cancelEditName = function(newName) {
- var root = data.getRoot(this.setting);
- if (!root.curEditNode) return;
- view.cancelCurEditNode(this.setting, newName?newName:null, true);
- }
- zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) {
- if (!node) return null;
- if (targetNode && !targetNode.isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null;
- var _this = this,
- newNode = tools.clone(node);
- if (!targetNode) {
- targetNode = null;
- moveType = consts.move.TYPE_INNER;
- }
- if (moveType == consts.move.TYPE_INNER) {
- function copyCallback() {
- view.addNodes(_this.setting, targetNode, [newNode], isSilent);
- }
-
- if (tools.canAsync(this.setting, targetNode)) {
- view.asyncNode(this.setting, targetNode, isSilent, copyCallback);
- } else {
- copyCallback();
- }
- } else {
- view.addNodes(this.setting, targetNode.parentNode, [newNode], isSilent);
- view.moveNode(this.setting, targetNode, newNode, moveType, false, isSilent);
- }
- return newNode;
- }
- zTreeTools.editName = function(node) {
- if (!node || !node.tId || node !== data.getNodeCache(this.setting, node.tId)) return;
- if (node.parentTId) view.expandCollapseParentNode(this.setting, node.getParentNode(), true);
- view.editNode(this.setting, node)
- }
- zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) {
- if (!node) return node;
- if (targetNode && !targetNode.isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) {
- return null;
- } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, this.setting).find("#" + targetNode.tId).length > 0)) {
- return null;
- } else if (!targetNode) {
- targetNode = null;
- }
- var _this = this;
- function moveCallback() {
- view.moveNode(_this.setting, targetNode, node, moveType, false, isSilent);
- }
- if (tools.canAsync(this.setting, targetNode) && moveType === consts.move.TYPE_INNER) {
- view.asyncNode(this.setting, targetNode, isSilent, moveCallback);
- } else {
- moveCallback();
- }
- return node;
- }
- zTreeTools.setEditable = function(editable) {
- this.setting.edit.enable = editable;
- return this.refresh();
- }
- },
- //method of operate data
- _data = {
- setSonNodeLevel: function(setting, parentNode, node) {
- if (!node) return;
- var childKey = setting.data.key.children;
- node.level = (parentNode)? parentNode.level + 1 : 0;
- if (!node[childKey]) return;
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]);
- }
- }
- },
- //method of event proxy
- _event = {
-
- },
- //method of event handler
- _handler = {
- onHoverOverNode: function(event, node) {
- var setting = data.getSetting(event.data.treeId),
- root = data.getRoot(setting);
- if (root.curHoverNode != node) {
- _handler.onHoverOutNode(event);
- }
- root.curHoverNode = node;
- view.addHoverDom(setting, node);
- },
- onHoverOutNode: function(event, node) {
- var setting = data.getSetting(event.data.treeId),
- root = data.getRoot(setting);
- if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) {
- view.removeTreeDom(setting, root.curHoverNode);
- root.curHoverNode = null;
- }
- },
- onMousedownNode: function(eventMouseDown, _node) {
- var i,l,
- setting = data.getSetting(eventMouseDown.data.treeId),
- root = data.getRoot(setting), roots = data.getRoots();
- //right click can't drag & drop
- if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true;
-
- //input of edit node name can't drag & drop
- var target = eventMouseDown.target,
- _nodes = data.getRoot(setting).curSelectedList,
- nodes = [];
- if (!data.isSelectedNode(setting, _node)) {
- nodes = [_node];
- } else {
- for (i=0, l=_nodes.length; i<l; i++) {
- if (_nodes[i].editNameFlag && tools.eqs(target.tagName, "input") && target.getAttribute("treeNode"+consts.id.INPUT) !== null) {
- return true;
- }
- nodes.push(_nodes[i]);
- if (nodes[0].parentTId !== _nodes[i].parentTId) {
- nodes = [_node];
- break;
- }
- }
- }
-
- view.editNodeBlur = true;
- view.cancelCurEditNode(setting);
-
- var doc = $(setting.treeObj.get(0).ownerDocument),
- body = $(setting.treeObj.get(0).ownerDocument.body), curNode, tmpArrow, tmpTarget,
- isOtherTree = false,
- targetSetting = setting,
- sourceSetting = setting,
- preNode, nextNode,
- preTmpTargetNodeId = null,
- preTmpMoveType = null,
- tmpTargetNodeId = null,
- moveType = consts.move.TYPE_INNER,
- mouseDownX = eventMouseDown.clientX,
- mouseDownY = eventMouseDown.clientY,
- startTime = (new Date()).getTime();
-
- if (tools.uCanDo(setting)) {
- doc.bind("mousemove", _docMouseMove);
- }
- function _docMouseMove(event) {
- //avoid start drag after click node
- if (root.dragFlag == 0 && Math.abs(mouseDownX - event.clientX) < setting.edit.drag.minMoveSize
- && Math.abs(mouseDownY - event.clientY) < setting.edit.drag.minMoveSize) {
- return true;
- }
- var i, l, tmpNode, tmpDom, tmpNodes,
- childKey = setting.data.key.children;
- body.css("cursor", "pointer");
-
- if (root.dragFlag == 0) {
- if (tools.apply(setting.callback.beforeDrag, [setting.treeId, nodes], true) == false) {
- _docMouseUp(event);
- return true;
- }
-
- for (i=0, l=nodes.length; i<l; i++) {
- if (i==0) {
- root.dragNodeShowBefore = [];
- }
- tmpNode = nodes[i];
- if (tmpNode.isParent && tmpNode.open) {
- view.expandCollapseNode(setting, tmpNode, !tmpNode.open);
- root.dragNodeShowBefore[tmpNode.tId] = true;
- } else {
- root.dragNodeShowBefore[tmpNode.tId] = false;
- }
- }
-
- root.dragFlag = 1;
- roots.showHoverDom = false;
- tools.showIfameMask(setting, true);
-
- //sort
- var isOrder = true, lastIndex = -1;
- if (nodes.length>1) {
- var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting);
- tmpNodes = [];
- for (i=0, l=pNodes.length; i<l; i++) {
- if (root.dragNodeShowBefore[pNodes[i].tId] !== undefined) {
- if (isOrder && lastIndex > -1 && (lastIndex+1) !== i) {
- isOrder = false;
- }
- tmpNodes.push(pNodes[i]);
- lastIndex = i;
- }
- if (nodes.length === tmpNodes.length) {
- nodes = tmpNodes;
- break;
- }
- }
- }
- if (isOrder) {
- preNode = nodes[0].getPreNode();
- nextNode = nodes[nodes.length-1].getNextNode();
- }
-
- //set node in selected
- curNode = $$("<ul class='zTreeDragUL'></ul>", setting);
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- tmpNode.editNameFlag = false;
- view.selectNode(setting, tmpNode, i>0);
- view.removeTreeDom(setting, tmpNode);
-
- if (i > setting.edit.drag.maxShowNodeNum-1) {
- continue;
- }
-
- tmpDom = $$("<li id='"+ tmpNode.tId +"_tmp'></li>", setting);
- tmpDom.append($$(tmpNode, consts.id.A, setting).clone());
- tmpDom.css("padding", "0");
- tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED);
- curNode.append(tmpDom);
- if (i == setting.edit.drag.maxShowNodeNum-1) {
- tmpDom = $$("<li id='"+ tmpNode.tId +"_moretmp'><a> ... </a></li>", setting);
- curNode.append(tmpDom);
- }
- }
- curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp");
- curNode.addClass(setting.treeObj.attr("class"));
- curNode.appendTo(body);
-
- tmpArrow = $$("<span class='tmpzTreeMove_arrow'></span>", setting);
- tmpArrow.attr("id", "zTreeMove_arrow_tmp");
- tmpArrow.appendTo(body);
-
- setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]);
- }
-
- if (root.dragFlag == 1) {
- if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) {
- var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget);
- event.target = (xT.length > 0) ? xT.get(0) : event.target;
- } else if (tmpTarget) {
- tmpTarget.removeClass(consts.node.TMPTARGET_TREE);
- if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV)
- .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER);
- }
- tmpTarget = null;
- tmpTargetNodeId = null;
-
- //judge drag & drop in multi ztree
- isOtherTree = false;
- targetSetting = setting;
- var settings = data.getSettings();
- for (var s in settings) {
- if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId
- && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) {
- isOtherTree = true;
- targetSetting = settings[s];
- }
- }
-
- var docScrollTop = doc.scrollTop(),
- docScrollLeft = doc.scrollLeft(),
- treeOffset = targetSetting.treeObj.offset(),
- scrollHeight = targetSetting.treeObj.get(0).scrollHeight,
- scrollWidth = targetSetting.treeObj.get(0).scrollWidth,
- dTop = (event.clientY + docScrollTop - treeOffset.top),
- dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop),
- dLeft = (event.clientX + docScrollLeft - treeOffset.left),
- dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft),
- isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin),
- isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin),
- isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin),
- isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin),
- isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin,
- isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0),
- isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight),
- isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0),
- isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth);
-
- if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) {
- //get node <li> dom
- var targetObj = event.target;
- while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) {
- targetObj = targetObj.parentNode;
- }
-
- var canMove = true;
- //don't move to self or children of self
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- if (targetObj.id === tmpNode.tId) {
- canMove = false;
- break;
- } else if ($$(tmpNode, setting).find("#" + targetObj.id).length > 0) {
- canMove = false;
- break;
- }
- }
- if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) {
- tmpTarget = $(targetObj);
- tmpTargetNodeId = targetObj.id;
- }
- }
-
- //the mouse must be in zTree
- tmpNode = nodes[0];
- if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) {
- //judge mouse move in root of ztree
- if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) {
- tmpTarget = targetSetting.treeObj;
- }
- //auto scroll top
- if (isTop) {
- targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10);
- } else if (isBottom) {
- targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10);
- }
- if (isLeft) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10);
- } else if (isRight) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10);
- }
- //auto scroll left
- if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left);
- }
- }
-
- curNode.css({
- "top": (event.clientY + docScrollTop + 3) + "px",
- "left": (event.clientX + docScrollLeft + 3) + "px"
- });
-
- var dX = 0;
- var dY = 0;
- if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) {
- var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId),
- isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy),
- isPrev = !!(preNode && tmpTargetNodeId === preNode.tId),
- isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId),
- isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId),
- canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev),
- canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next),
- canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner);
- if (!canPrev && !canNext && !canInner) {
- tmpTarget = null;
- tmpTargetNodeId = "";
- moveType = consts.move.TYPE_INNER;
- tmpArrow.css({
- "display":"none"
- });
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null
- }
- } else {
- var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget),
- tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()),
- tmpTop = tmpTargetA.offset().top,
- tmpLeft = tmpTargetA.offset().left,
- prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1,
- nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1,
- dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height();
- if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) {
- dX = 1 - tmpArrow.width();
- dY = tmpTop - tmpArrow.height()/2;
- moveType = consts.move.TYPE_PREV;
- } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) {
- dX = 1 - tmpArrow.width();
- dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2);
- moveType = consts.move.TYPE_NEXT;
- }else {
- dX = 5 - tmpArrow.width();
- dY = tmpTop;
- moveType = consts.move.TYPE_INNER;
- }
- tmpArrow.css({
- "display":"block",
- "top": dY + "px",
- "left": (tmpLeft + dX) + "px"
- });
- tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType);
-
- if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) {
- startTime = (new Date()).getTime();
- }
- if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) {
- var startTimer = true;
- if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) {
- startTimer = false;
- }
- if (startTimer) {
- window.zTreeMoveTimer = setTimeout(function() {
- if (moveType != consts.move.TYPE_INNER) return;
- if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime
- && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) {
- view.switchNode(targetSetting, tmpTargetNode);
- if (targetSetting.edit.drag.autoExpandTrigger) {
- targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]);
- }
- }
- }, targetSetting.edit.drag.autoOpenTime+50);
- window.zTreeMoveTargetNodeTId = tmpTargetNode.tId;
- }
- }
- }
- } else {
- moveType = consts.move.TYPE_INNER;
- if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) {
- tmpTarget.addClass(consts.node.TMPTARGET_TREE);
- } else {
- tmpTarget = null;
- }
- tmpArrow.css({
- "display":"none"
- });
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }
- }
- preTmpTargetNodeId = tmpTargetNodeId;
- preTmpMoveType = moveType;
-
- setting.treeObj.trigger(consts.event.DRAGMOVE, [event, setting.treeId, nodes]);
- }
- return false;
- }
-
- doc.bind("mouseup", _docMouseUp);
- function _docMouseUp(event) {
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }
- preTmpTargetNodeId = null;
- preTmpMoveType = null;
- doc.unbind("mousemove", _docMouseMove);
- doc.unbind("mouseup", _docMouseUp);
- doc.unbind("selectstart", _docSelect);
- body.css("cursor", "auto");
- if (tmpTarget) {
- tmpTarget.removeClass(consts.node.TMPTARGET_TREE);
- if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV)
- .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER);
- }
- tools.showIfameMask(setting, false);
-
- roots.showHoverDom = true;
- if (root.dragFlag == 0) return;
- root.dragFlag = 0;
-
- var i, l, tmpNode;
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- if (tmpNode.isParent && root.dragNodeShowBefore[tmpNode.tId] && !tmpNode.open) {
- view.expandCollapseNode(setting, tmpNode, !tmpNode.open);
- delete root.dragNodeShowBefore[tmpNode.tId];
- }
- }
-
- if (curNode) curNode.remove();
- if (tmpArrow) tmpArrow.remove();
-
- var isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy);
- if (!isCopy && tmpTarget && tmpTargetNodeId && nodes[0].parentTId && tmpTargetNodeId==nodes[0].parentTId && moveType == consts.move.TYPE_INNER) {
- tmpTarget = null;
- }
- if (tmpTarget) {
- var dragTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId);
- if (tools.apply(setting.callback.beforeDrop, [targetSetting.treeId, nodes, dragTargetNode, moveType, isCopy], true) == false) {
- view.selectNodes(sourceSetting, nodes);
- return;
- }
- var newNodes = isCopy ? tools.clone(nodes) : nodes;
-
- function dropCallback() {
- if (isOtherTree) {
- if (!isCopy) {
- for(var i=0, l=nodes.length; i<l; i++) {
- view.removeNode(setting, nodes[i]);
- }
- }
- if (moveType == consts.move.TYPE_INNER) {
- view.addNodes(targetSetting, dragTargetNode, newNodes);
- } else {
- view.addNodes(targetSetting, dragTargetNode.getParentNode(), newNodes);
- if (moveType == consts.move.TYPE_PREV) {
- for (i=0, l=newNodes.length; i<l; i++) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false);
- }
- } else {
- for (i=-1, l=newNodes.length-1; i<l; l--) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false);
- }
- }
- }
- } else {
- if (isCopy && moveType == consts.move.TYPE_INNER) {
- view.addNodes(targetSetting, dragTargetNode, newNodes);
- } else {
- if (isCopy) {
- view.addNodes(targetSetting, dragTargetNode.getParentNode(), newNodes);
- }
- if (moveType != consts.move.TYPE_NEXT) {
- for (i=0, l=newNodes.length; i<l; i++) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false);
- }
- } else {
- for (i=-1, l=newNodes.length-1; i<l; l--) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false);
- }
- }
- }
- }
- view.selectNodes(targetSetting, newNodes);
- $$(newNodes[0], setting).focus().blur();
-
- setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]);
- }
-
- if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) {
- view.asyncNode(targetSetting, dragTargetNode, false, dropCallback);
- } else {
- dropCallback();
- }
-
- } else {
- view.selectNodes(sourceSetting, nodes);
- setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]);
- }
- }
-
- doc.bind("selectstart", _docSelect);
- function _docSelect() {
- return false;
- }
-
- //Avoid FireFox's Bug
- //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error.
- if(eventMouseDown.preventDefault) {
- eventMouseDown.preventDefault();
- }
- return true;
- }
- },
- //method of tools for zTree
- _tools = {
- getAbs: function (obj) {
- var oRect = obj.getBoundingClientRect(),
- scrollTop = document.body.scrollTop+document.documentElement.scrollTop,
- scrollLeft = document.body.scrollLeft+document.documentElement.scrollLeft;
- return [oRect.left+scrollLeft,oRect.top+scrollTop];
- },
- inputFocus: function(inputObj) {
- if (inputObj.get(0)) {
- inputObj.focus();
- tools.setCursorPosition(inputObj.get(0), inputObj.val().length);
- }
- },
- inputSelect: function(inputObj) {
- if (inputObj.get(0)) {
- inputObj.focus();
- inputObj.select();
- }
- },
- setCursorPosition: function(obj, pos){
- if(obj.setSelectionRange) {
- obj.focus();
- obj.setSelectionRange(pos,pos);
- } else if (obj.createTextRange) {
- var range = obj.createTextRange();
- range.collapse(true);
- range.moveEnd('character', pos);
- range.moveStart('character', pos);
- range.select();
- }
- },
- showIfameMask: function(setting, showSign) {
- var root = data.getRoot(setting);
- //clear full mask
- while (root.dragMaskList.length > 0) {
- root.dragMaskList[0].remove();
- root.dragMaskList.shift();
- }
- if (showSign) {
- //show mask
- var iframeList = $$("iframe", setting);
- for (var i = 0, l = iframeList.length; i < l; i++) {
- var obj = iframeList.get(i),
- r = tools.getAbs(obj),
- dragMask = $$("<div id='zTreeMask_" + i + "' class='zTreeMask' style='top:" + r[1] + "px; left:" + r[0] + "px; width:" + obj.offsetWidth + "px; height:" + obj.offsetHeight + "px;'></div>", setting);
- dragMask.appendTo($$("body", setting));
- root.dragMaskList.push(dragMask);
- }
- }
- }
- },
- //method of operate ztree dom
- _view = {
- addEditBtn: function(setting, node) {
- if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) {
- return;
- }
- if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) {
- return;
- }
- var aObj = $$(node, consts.id.A, setting),
- editStr = "<span class='" + consts.className.BUTTON + " edit' id='" + node.tId + consts.id.EDIT + "' title='"+tools.apply(setting.edit.renameTitle, [setting.treeId, node], setting.edit.renameTitle)+"' treeNode"+consts.id.EDIT+" style='display:none;'></span>";
- aObj.append(editStr);
-
- $$(node, consts.id.EDIT, setting).bind('click',
- function() {
- if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false;
- view.editNode(setting, node);
- return false;
- }
- ).show();
- },
- addRemoveBtn: function(setting, node) {
- if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) {
- return;
- }
- if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) {
- return;
- }
- var aObj = $$(node, consts.id.A, setting),
- removeStr = "<span class='" + consts.className.BUTTON + " remove' id='" + node.tId + consts.id.REMOVE + "' title='"+tools.apply(setting.edit.removeTitle, [setting.treeId, node], setting.edit.removeTitle)+"' treeNode"+consts.id.REMOVE+" style='display:none;'></span>";
- aObj.append(removeStr);
-
- $$(node, consts.id.REMOVE, setting).bind('click',
- function() {
- if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false;
- view.removeNode(setting, node);
- setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
- return false;
- }
- ).bind('mousedown',
- function(eventMouseDown) {
- return true;
- }
- ).show();
- },
- addHoverDom: function(setting, node) {
- if (data.getRoots().showHoverDom) {
- node.isHover = true;
- if (setting.edit.enable) {
- //view.addEditBtn(setting, node);
- view.addRemoveBtn(setting, node);
- view.addEditBtn(setting, node);
- }
- tools.apply(setting.view.addHoverDom, [setting.treeId, node]);
- }
- },
- cancelCurEditNode: function (setting, forceName, isCancel) {
- var root = data.getRoot(setting),
- nameKey = setting.data.key.name,
- node = root.curEditNode;
-
- if (node) {
- var inputObj = root.curEditInput,
- newName = forceName ? forceName:(isCancel ? node[nameKey]: inputObj.val());
- if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) {
- return false;
- } else {
- node[nameKey] = newName;
- setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]);
- }
- var aObj = $$(node, consts.id.A, setting);
- aObj.removeClass(consts.node.CURSELECTED_EDIT);
- inputObj.unbind();
- view.setNodeName(setting, node);
- node.editNameFlag = false;
- root.curEditNode = null;
- root.curEditInput = null;
- view.selectNode(setting, node, false);
- }
- root.noSelection = true;
- return true;
- },
- editNode: function(setting, node) {
- var root = data.getRoot(setting);
- view.editNodeBlur = false;
- if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) {
- setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0);
- return;
- }
- var nameKey = setting.data.key.name;
- node.editNameFlag = true;
- view.removeTreeDom(setting, node);
- view.cancelCurEditNode(setting);
- view.selectNode(setting, node, false);
- $$(node, consts.id.SPAN, setting).html("<input type=text class='rename' id='" + node.tId + consts.id.INPUT + "' treeNode" + consts.id.INPUT + " >");
- var inputObj = $$(node, consts.id.INPUT, setting);
- inputObj.attr("value", node[nameKey]);
- if (setting.edit.editNameSelectAll) {
- tools.inputSelect(inputObj);
- } else {
- tools.inputFocus(inputObj);
- }
-
- inputObj.bind('blur', function(event) {
- if (!view.editNodeBlur) {
- view.cancelCurEditNode(setting);
- }
- }).bind('keydown', function(event) {
- if (event.keyCode=="13") {
- view.editNodeBlur = true;
- view.cancelCurEditNode(setting);
- } else if (event.keyCode=="27") {
- view.cancelCurEditNode(setting, null, true);
- }
- }).bind('click', function(event) {
- return false;
- }).bind('dblclick', function(event) {
- return false;
- });
-
- $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT);
- root.curEditInput = inputObj;
- root.noSelection = false;
- root.curEditNode = node;
- },
- moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- if (targetNode == node) return;
- if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return;
- var oldParentNode = (node.parentTId ? node.getParentNode(): root),
- targetNodeIsRoot = (targetNode === null || targetNode == root);
- if (targetNodeIsRoot && targetNode === null) targetNode = root;
- if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER;
- var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root);
-
- if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) {
- moveType = consts.move.TYPE_INNER;
- }
-
- if (moveType == consts.move.TYPE_INNER) {
- if (targetNodeIsRoot) {
- //parentTId of root node is null
- node.parentTId = null;
- } else {
- if (!targetNode.isParent) {
- targetNode.isParent = true;
- targetNode.open = !!targetNode.open;
- view.setNodeLineIcos(setting, targetNode);
- }
- node.parentTId = targetNode.tId;
- }
- }
-
- //move node Dom
- var targetObj, target_ulObj;
- if (targetNodeIsRoot) {
- targetObj = setting.treeObj;
- target_ulObj = targetObj;
- } else {
- if (!isSilent && moveType == consts.move.TYPE_INNER) {
- view.expandCollapseNode(setting, targetNode, true, false);
- } else if (!isSilent) {
- view.expandCollapseNode(setting, targetNode.getParentNode(), true, false);
- }
- targetObj = $$(targetNode, setting);
- target_ulObj = $$(targetNode, consts.id.UL, setting);
- if (!!targetObj.get(0) && !target_ulObj.get(0)) {
- var ulstr = [];
- view.makeUlHtml(setting, targetNode, ulstr, '');
- targetObj.append(ulstr.join(''));
- }
- target_ulObj = $$(targetNode, consts.id.UL, setting);
- }
- var nodeDom = $$(node, setting);
- if (!nodeDom.get(0)) {
- nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join('');
- } else if (!targetObj.get(0)) {
- nodeDom.remove();
- }
- if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) {
- target_ulObj.append(nodeDom);
- } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) {
- targetObj.before(nodeDom);
- } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) {
- targetObj.after(nodeDom);
- }
-
- //repair the data after move
- var i,l,
- tmpSrcIndex = -1,
- tmpTargetIndex = 0,
- oldNeighbor = null,
- newNeighbor = null,
- oldLevel = node.level;
- if (node.isFirstNode) {
- tmpSrcIndex = 0;
- if (oldParentNode[childKey].length > 1 ) {
- oldNeighbor = oldParentNode[childKey][1];
- oldNeighbor.isFirstNode = true;
- }
- } else if (node.isLastNode) {
- tmpSrcIndex = oldParentNode[childKey].length -1;
- oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1];
- oldNeighbor.isLastNode = true;
- } else {
- for (i = 0, l = oldParentNode[childKey].length; i < l; i++) {
- if (oldParentNode[childKey][i].tId == node.tId) {
- tmpSrcIndex = i;
- break;
- }
- }
- }
- if (tmpSrcIndex >= 0) {
- oldParentNode[childKey].splice(tmpSrcIndex, 1);
- }
- if (moveType != consts.move.TYPE_INNER) {
- for (i = 0, l = targetParentNode[childKey].length; i < l; i++) {
- if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i;
- }
- }
- if (moveType == consts.move.TYPE_INNER) {
- if (!targetNode[childKey]) targetNode[childKey] = new Array();
- if (targetNode[childKey].length > 0) {
- newNeighbor = targetNode[childKey][targetNode[childKey].length - 1];
- newNeighbor.isLastNode = false;
- }
- targetNode[childKey].splice(targetNode[childKey].length, 0, node);
- node.isLastNode = true;
- node.isFirstNode = (targetNode[childKey].length == 1);
- } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) {
- targetParentNode[childKey].splice(tmpTargetIndex, 0, node);
- newNeighbor = targetNode;
- newNeighbor.isFirstNode = false;
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = true;
- node.isLastNode = false;
-
- } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) {
- targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node);
- newNeighbor = targetNode;
- newNeighbor.isLastNode = false;
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = false;
- node.isLastNode = true;
-
- } else {
- if (moveType == consts.move.TYPE_PREV) {
- targetParentNode[childKey].splice(tmpTargetIndex, 0, node);
- } else {
- targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node);
- }
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = false;
- node.isLastNode = false;
- }
- data.fixPIdKeyValue(setting, node);
- data.setSonNodeLevel(setting, node.getParentNode(), node);
-
- //repair node what been moved
- view.setNodeLineIcos(setting, node);
- view.repairNodeLevelClass(setting, node, oldLevel)
-
- //repair node's old parentNode dom
- if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) {
- //old parentNode has no child nodes
- oldParentNode.isParent = false;
- oldParentNode.open = false;
- var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting),
- tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting),
- tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting);
- view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU);
- tmp_ulObj.css("display", "none");
-
- } else if (oldNeighbor) {
- //old neigbor node
- view.setNodeLineIcos(setting, oldNeighbor);
- }
-
- //new neigbor node
- if (newNeighbor) {
- view.setNodeLineIcos(setting, newNeighbor);
- }
-
- //repair checkbox / radio
- if (!!setting.check && setting.check.enable && view.repairChkClass) {
- view.repairChkClass(setting, oldParentNode);
- view.repairParentChkClassWithSelf(setting, oldParentNode);
- if (oldParentNode != node.parent)
- view.repairParentChkClassWithSelf(setting, node);
- }
-
- //expand parents after move
- if (!isSilent) {
- view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag);
- }
- },
- removeEditBtn: function(setting, node) {
- $$(node, consts.id.EDIT, setting).unbind().remove();
- },
- removeRemoveBtn: function(setting, node) {
- $$(node, consts.id.REMOVE, setting).unbind().remove();
- },
- removeTreeDom: function(setting, node) {
- node.isHover = false;
- view.removeEditBtn(setting, node);
- view.removeRemoveBtn(setting, node);
- tools.apply(setting.view.removeHoverDom, [setting.treeId, node]);
- },
- repairNodeLevelClass: function(setting, node, oldLevel) {
- if (oldLevel === node.level) return;
- var liObj = $$(node, setting),
- aObj = $$(node, consts.id.A, setting),
- ulObj = $$(node, consts.id.UL, setting),
- oldClass = consts.className.LEVEL + oldLevel,
- newClass = consts.className.LEVEL + node.level;
- liObj.removeClass(oldClass);
- liObj.addClass(newClass);
- aObj.removeClass(oldClass);
- aObj.addClass(newClass);
- ulObj.removeClass(oldClass);
- ulObj.addClass(newClass);
- },
- selectNodes : function(setting, nodes) {
- for (var i=0, l=nodes.length; i<l; i++) {
- view.selectNode(setting, nodes[i], i>0);
- }
- }
- },
-
- _z = {
- tools: _tools,
- view: _view,
- event: _event,
- data: _data
- };
- $.extend(true, $.fn.zTree.consts, _consts);
- $.extend(true, $.fn.zTree._z, _z);
-
- var zt = $.fn.zTree,
- tools = zt._z.tools,
- consts = zt.consts,
- view = zt._z.view,
- data = zt._z.data,
- event = zt._z.event,
- $$ = tools.$;
-
- data.exSetting(_setting);
- data.addInitBind(_bindEvent);
- data.addInitUnBind(_unbindEvent);
- data.addInitCache(_initCache);
- data.addInitNode(_initNode);
- data.addInitProxy(_eventProxy);
- data.addInitRoot(_initRoot);
- data.addZTreeTools(_zTreeTools);
-
- var _cancelPreSelectedNode = view.cancelPreSelectedNode;
- view.cancelPreSelectedNode = function (setting, node) {
- var list = data.getRoot(setting).curSelectedList;
- for (var i=0, j=list.length; i<j; i++) {
- if (!node || node === list[i]) {
- view.removeTreeDom(setting, list[i]);
- if (node) break;
- }
- }
- if (_cancelPreSelectedNode) _cancelPreSelectedNode.apply(view, arguments);
- }
-
- var _createNodes = view.createNodes;
- view.createNodes = function(setting, level, nodes, parentNode) {
- if (_createNodes) {
- _createNodes.apply(view, arguments);
- }
- if (!nodes) return;
- if (view.repairParentChkClassWithSelf) {
- view.repairParentChkClassWithSelf(setting, parentNode);
- }
- }
-
- var _makeNodeUrl = view.makeNodeUrl;
- view.makeNodeUrl = function(setting, node) {
- return setting.edit.enable ? null : (_makeNodeUrl.apply(view, arguments));
- }
-
- var _removeNode = view.removeNode;
- view.removeNode = function(setting, node) {
- var root = data.getRoot(setting);
- if (root.curEditNode === node) root.curEditNode = null;
- if (_removeNode) {
- _removeNode.apply(view, arguments);
- }
- }
-
- var _selectNode = view.selectNode;
- view.selectNode = function(setting, node, addFlag) {
- var root = data.getRoot(setting);
- if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) {
- return false;
- }
- if (_selectNode) _selectNode.apply(view, arguments);
- view.addHoverDom(setting, node);
- return true;
- }
-
- var _uCanDo = tools.uCanDo;
- tools.uCanDo = function(setting, e) {
- var root = data.getRoot(setting);
- if (e && (tools.eqs(e.type, "mouseover") || tools.eqs(e.type, "mouseout") || tools.eqs(e.type, "mousedown") || tools.eqs(e.type, "mouseup"))) {
- return true;
- }
- if (root.curEditNode) {
- view.editNodeBlur = false;
- root.curEditInput.focus();
- }
- return (!root.curEditNode) && (_uCanDo ? _uCanDo.apply(view, arguments) : true);
- }
-})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.min.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.min.js
deleted file mode 100644
index 0677d9e..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.min.js
+++ /dev/null
@@ -1,160 +0,0 @@
-
-/*
- * JQuery zTree core v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(p){var G,H,I,J,K,L,r={},u={},v={},M={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],
-otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},w=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,g){j.apply(b.callback.onNodeCreated,
-[a,c,g])});a.bind(c.CLICK,function(a,c,g,l,h){j.apply(b.callback.onClick,[c,g,l,h])});a.bind(c.EXPAND,function(a,c,g){j.apply(b.callback.onExpand,[a,c,g])});a.bind(c.COLLAPSE,function(a,c,g){j.apply(b.callback.onCollapse,[a,c,g])});a.bind(c.ASYNC_SUCCESS,function(a,c,g,l){j.apply(b.callback.onAsyncSuccess,[a,c,g,l])});a.bind(c.ASYNC_ERROR,function(a,c,g,l,h,e){j.apply(b.callback.onAsyncError,[a,c,g,l,h,e])});a.bind(c.REMOVE,function(a,c,g){j.apply(b.callback.onRemove,[a,c,g])})}],x=[function(b){var a=
-e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR).unbind(a.REMOVE)}],y=[function(b){var a=h.getCache(b);a||(a={},h.setCache(b,a));a.nodes=[];a.doms=[]}],z=[function(b,a,c,d,f,g){if(c){var l=h.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?j.eqs(c.open,"true"):!!c.open;c[e]&&c[e].length>0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent==
-"string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode=g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,
-"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&
-(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,
-treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},
-addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)},addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=
-h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)},exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d<f;d++)C[d].apply(this,arguments)},
-getBeforeA:function(b,a,c){for(var d=0,f=B.length;d<f;d++)B[d].apply(this,arguments)},getInnerAfterA:function(b,a,c){for(var d=0,f=E.length;d<f;d++)E[d].apply(this,arguments)},getInnerBeforeA:function(b,a,c){for(var d=0,f=D.length;d<f;d++)D[d].apply(this,arguments)},getCache:function(b){return v[b.treeId]},getNextNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length-1;f<=g;f++)if(d[c][f]===a)return f==g?null:d[c][f+1];return null},
-getNodeByParam:function(b,a,c,d){if(!a||!c)return null;for(var f=b.data.key.children,g=0,l=a.length;g<l;g++){if(a[g][c]==d)return a[g];var e=h.getNodeByParam(b,a[g][f],c,d);if(e)return e}return null},getNodeCache:function(b,a){if(!a)return null;var c=v[b.treeId].nodes[h.getNodeCacheId(a)];return c?c:null},getNodeName:function(b,a){return""+a[b.data.key.name]},getNodeTitle:function(b,a){return""+a[b.data.key.title===""?b.data.key.name:b.data.key.title]},getNodes:function(b){return h.getRoot(b)[b.data.key.children]},
-getNodesByParam:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],l=0,e=a.length;l<e;l++)a[l][c]==d&&g.push(a[l]),g=g.concat(h.getNodesByParam(b,a[l][f],c,d));return g},getNodesByParamFuzzy:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],d=d.toLowerCase(),l=0,e=a.length;l<e;l++)typeof a[l][c]=="string"&&a[l][c].toLowerCase().indexOf(d)>-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?
-null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i<n;i++){if(j.apply(c,[a[i],f],!1)){if(d)return a[i];e.push(a[i])}var k=h.getNodesByFilter(b,a[i][g],c,d,f);if(d&&k)return k;e=d?k:e.concat(k)}return e},getPreNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length;f<g;f++)if(d[c][f]===a)return f==0?null:d[c][f-1];return null},getRoot:function(b){return b?u[b.treeId]:null},getRoots:function(){return u},getSetting:function(b){return r[b]},
-getSettings:function(){return r},getZTreeTools:function(b){return(b=this.getRoot(this.getSetting(b)))?b.treeTools:null},initCache:function(b){for(var a=0,c=y.length;a<c;a++)y[a].apply(this,arguments)},initNode:function(b,a,c,d,f,g){for(var e=0,h=z.length;e<h;e++)z[e].apply(this,arguments)},initRoot:function(b){for(var a=0,c=A.length;a<c;a++)A[a].apply(this,arguments)},isSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d])return!0;return!1},
-removeNodeCache:function(b,a){var c=b.data.key.children;if(a[c])for(var d=0,f=a[c].length;d<f;d++)arguments.callee(b,a[c][d]);h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=null},removeSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d]||!h.getNodeCache(b,c.curSelectedList[d].tId))c.curSelectedList.splice(d,1),d--,f--},setCache:function(b,a){v[b.treeId]=a},setRoot:function(b,a){u[b.treeId]=a},setZTreeTools:function(b,a){for(var c=0,d=
-F.length;c<d;c++)F[c].apply(this,arguments)},transformToArrayFormat:function(b,a){if(!a)return[];var c=b.data.key.children,d=[];if(j.isArray(a))for(var f=0,g=a.length;f<g;f++)d.push(a[f]),a[f][c]&&(d=d.concat(h.transformToArrayFormat(b,a[f][c])));else d.push(a),a[c]&&(d=d.concat(h.transformToArrayFormat(b,a[c])));return d},transformTozTreeFormat:function(b,a){var c,d,f=b.data.simpleData.idKey,g=b.data.simpleData.pIdKey,e=b.data.key.children;if(!f||f==""||!a)return[];if(j.isArray(a)){var h=[],i=[];
-for(c=0,d=a.length;c<d;c++)i[a[c][f]]=a[c];for(c=0,d=a.length;c<d;c++)i[a[c][g]]&&a[c][f]!=a[c][g]?(i[a[c][g]][e]||(i[a[c][g]][e]=[]),i[a[c][g]][e].push(a[c])):h.push(a[c]);return h}else return[a]}},m={bindEvent:function(b){for(var a=0,c=w.length;a<c;a++)w[a].apply(this,arguments)},unbindEvent:function(b){for(var a=0,c=x.length;a<c;a++)x[a].apply(this,arguments)},bindTree:function(b){var a={treeId:b.treeId},c=b.treeObj;b.view.txtSelectedEnable||c.bind("selectstart",function(a){a=a.originalEvent.srcElement.nodeName.toLowerCase();
-return a==="input"||a==="textarea"}).css({"-moz-user-select":"-moz-none"});c.bind("click",a,m.proxy);c.bind("dblclick",a,m.proxy);c.bind("mouseover",a,m.proxy);c.bind("mouseout",a,m.proxy);c.bind("mousedown",a,m.proxy);c.bind("mouseup",a,m.proxy);c.bind("contextmenu",a,m.proxy)},unbindTree:function(b){b.treeObj.unbind("click",m.proxy).unbind("dblclick",m.proxy).unbind("mouseover",m.proxy).unbind("mouseout",m.proxy).unbind("mousedown",m.proxy).unbind("mouseup",m.proxy).unbind("contextmenu",m.proxy)},
-doProxy:function(b){for(var a=[],c=0,d=s.length;c<d;c++){var f=s[c].apply(this,arguments);a.push(f);if(f.stop)break}return a},proxy:function(b){var a=h.getSetting(b.data.treeId);if(!j.uCanDo(a,b))return!0;for(var a=m.doProxy(b),c=!0,d=0,f=a.length;d<f;d++){var g=a[d];g.nodeEventCallback&&(c=g.nodeEventCallback.apply(g,[b,g.node])&&c);g.treeEventCallback&&(c=g.treeEventCallback.apply(g,[b,g.node])&&c)}return c}};G=function(b,a){var c=h.getSetting(b.data.treeId);if(a.open){if(j.apply(c.callback.beforeCollapse,
-[c.treeId,a],!0)==!1)return!0}else if(j.apply(c.callback.beforeExpand,[c.treeId,a],!0)==!1)return!0;h.getRoot(c).expandTriggerFlag=!0;i.switchNode(c,a);return!0};H=function(b,a){var c=h.getSetting(b.data.treeId),d=c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&h.isSelectedNode(c,a)?0:c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&c.view.selectedMulti?2:1;if(j.apply(c.callback.beforeClick,[c.treeId,a,d],!0)==!1)return!0;d===0?i.cancelPreSelectedNode(c,a):i.selectNode(c,a,d===2);c.treeObj.trigger(e.event.CLICK,
-[b,c.treeId,a,d]);return!0};I=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseDown,[c.treeId,a],!0)&&j.apply(c.callback.onMouseDown,[b,c.treeId,a]);return!0};J=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseUp,[c.treeId,a],!0)&&j.apply(c.callback.onMouseUp,[b,c.treeId,a]);return!0};K=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeDblClick,[c.treeId,a],!0)&&j.apply(c.callback.onDblClick,[b,c.treeId,a]);return!0};
-L=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeRightClick,[c.treeId,a],!0)&&j.apply(c.callback.onRightClick,[b,c.treeId,a]);return typeof c.callback.onRightClick!="function"};var j={apply:function(b,a,c){return typeof b=="function"?b.apply(N,a?a:[]):c},canAsync:function(b,a){var c=b.data.key.children;return b.async.enable&&a&&a.isParent&&!(a.zAsync||a[c]&&a[c].length>0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof
-Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a,c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d<f;d++)if(j.eqs(a.tagName,
-c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}return null},getNodeMainDom:function(b){return p(b).parent("li").get(0)||p(b).parentsUntil("li").parent().get(0)},isChildOrSelf:function(b,a){return p(b).closest("#"+a).length>0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,
-f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b),c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k<m;k++){var o=c[k];if(f){var t=(d?d:h.getRoot(b))[j].length==c.length&&k==0;h.initNode(b,a,o,d,t,k==c.length-1,g);h.addNodeCache(b,o)}t=[];o[j]&&o[j].length>
-0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),
-d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&
-f<g;f++){var q=b.async.autoParam[f].split("="),n=q;q.length>1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f<g;f+=2)l[b.async.otherParam[f]]=b.async.otherParam[f+1];else for(var m in b.async.otherParam)l[m]=b.async.otherParam[m];var o=h.getRoot(b)._ver;p.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:l,dataType:b.async.dataType,success:function(f){if(o==h.getRoot(b)._ver){var g=[];try{g=
-!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){g=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);g&&g!==""?(g=j.apply(b.async.dataFilter,[b.treeId,a,g],g),i.addNodes(b,a,g?j.clone(g):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]);j.apply(d)}},error:function(c,d,f){if(o==h.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,
-a){for(var c=h.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a=h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,
-a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b),h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty(),delete r[b.treeId])},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,
-f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c=k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,
-g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,
-a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k<m;k++)g[k]&&i.expandCollapseSonNode(b,g[k],c,e);h.getRoot(b).expandTriggerFlag=j;i.expandCollapseNode(b,a,c,d,f)},makeDOMNodeIcon:function(b,a,c){var d=h.getNodeName(a,c),d=a.view.nameIsHTML?
-d:d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");b.push("<span id='",c.tId,e.id.ICON,"' title='' treeNode",e.id.ICON," class='",i.makeNodeIcoClass(a,c),"' style='",i.makeNodeIcoStyle(a,c),"'></span><span id='",c.tId,e.id.SPAN,"'>",d,"</span>")},makeDOMNodeLine:function(b,a,c){b.push("<span id='",c.tId,e.id.SWITCH,"' title='' class='",i.makeNodeLineClass(a,c),"' treeNode",e.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(b){b.push("</li>")},makeDOMNodeMainBefore:function(b,
-a,c){b.push("<li id='",c.tId,"' class='",e.className.LEVEL,c.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(b){b.push("</a>")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("<a id='",c.tId,e.id.A,"' class='",e.className.LEVEL,c.level,"' treeNode",e.id.A,' onclick="',c.click||"",'" ',f!=null&&f.length>0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),
-"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b,a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+
-" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b,a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):
-c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("<ul id='",a.tId,e.id.UL,"' class='",e.className.LEVEL,a.level,
-" ",i.makeUlLineClass(b,a),"' style='display:",a.open?"block":"none","'>");c.push(d);c.push("</ul>")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f<g;f++)h.removeNodeCache(b,d[f]);h.removeSelectedNode(b);delete a[c];b.data.keep.parent?k(a,e.id.UL,b).empty():(a.isParent=!1,a.open=!1,c=k(a,e.id.SWITCH,b),d=k(a,e.id.ICON,b),i.replaceSwitchClass(a,c,e.folder.DOCU),
-i.replaceIcoClass(a,d,e.folder.DOCU),k(a,e.id.UL,b).remove())}}},setFirstNode:function(b,a){var c=b.data.key.children;if(a[c].length>0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();
-h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g<l;g++)if(f[d][g].tId==a.tId){f[d].splice(g,1);break}i.setFirstNode(b,f);i.setLastNode(b,f);var j,g=f[d].length;if(!b.data.keep.parent&&g==0)f.isParent=!1,f.open=!1,g=k(f,e.id.UL,b),l=k(f,e.id.SWITCH,b),j=k(f,e.id.ICON,b),i.replaceSwitchClass(f,l,e.folder.DOCU),i.replaceIcoClass(f,j,e.folder.DOCU),g.css("display","none");else if(b.view.showLine&&g>0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);
-f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=
-a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A,b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,
-a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=
-k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,
-a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",
-NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight==="undefined")d.view.expandSpeed=
-"";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d,
-a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d,
-a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d),
-a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e<i;e++)if(c[b][e]==a)return e;return-1},getSelectedNodes:function(){for(var a=[],b=h.getRoot(d).curSelectedList,
-c=0,e=b.length;c<e;c++)a.push(b[c]);return a},isSelectedNode:function(a){return h.isSelectedNode(d,a)},reAsyncChildNodes:function(a,b,c){if(this.setting.async.enable){var j=!a;j&&(a=h.getRoot(d));if(b=="refresh"){for(var b=this.setting.data.key.children,m=0,p=a[b]?a[b].length:0;m<p;m++)h.removeNodeCache(d,a[b][m]);h.removeSelectedNode(d);a[b]=[];j?this.setting.treeObj.empty():k(a,e.id.UL,d).empty()}i.asyncNode(this.setting,j?null:a,!!c)}},refresh:function(){this.setting.treeObj.empty();var a=h.getRoot(d),
-b=a[d.data.key.children];h.initRoot(d);a[d.data.key.children]=b;h.initCache(d);i.createNodes(d,0,a[d.data.key.children])},removeChildNodes:function(a){if(!a)return null;var b=a[d.data.key.children];i.removeChildNodes(d,a);return b?b:null},removeNode:function(a,b){a&&(b=!!b,b&&j.apply(d.callback.beforeRemove,[d.treeId,a],!0)==!1||(i.removeNode(d,a),b&&this.setting.treeObj.trigger(e.event.REMOVE,[d.treeId,a])))},selectNode:function(a,b){if(a&&j.uCanDo(d)){b=d.view.selectedMulti&&b;if(a.parentTId)i.expandCollapseParentNode(d,
-a.getParentNode(),!0,!1,function(){try{k(a,d).focus().blur()}catch(b){}});else try{k(a,d).focus().blur()}catch(c){}i.selectNode(d,a,b)}},transformTozTreeNodes:function(a){return h.transformTozTreeFormat(d,a)},transformToArray:function(a){return h.transformToArrayFormat(d,a)},updateNode:function(a){a&&k(a,d).get(0)&&j.uCanDo(d)&&(i.setNodeName(d,a),i.setNodeTarget(d,a),i.setNodeUrl(d,a),i.setNodeLineIcos(d,a),i.setNodeFontCss(d,a))}};b.treeTools=c;h.setZTreeTools(d,c);b[a]&&b[a].length>0?i.createNodes(d,
-0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery);
-
-/*
- * JQuery zTree excheck v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(m){var p,q,r,o={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:o.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:o.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,
-a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=n(a,j.id.CHECK,b);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=n(a,j.id.CHECK,b);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===
-!0)return!1;var b=f.getSetting(c.data.treeId),d=n(a,j.id.CHECK,b);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,o);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,h,i=c.data.key.children,l=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var g=f.getRadioCheckedList(c);if(a[l])if(c.check.radioType==b.TYPE_ALL){for(d=g.length-1;d>=0;d--)b=g[d],b[l]&&b!=a&&(b[l]=!1,g.splice(d,1),e.setChkClass(c,n(b,j.id.CHECK,c),b),b.parentTId!=
-a.parentTId&&e.repairParentChkClassWithSelf(c,b));g.push(a)}else{g=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,h=g[i].length;d<h;d++)b=g[i][d],b[l]&&b!=a&&(b[l]=!1,e.setChkClass(c,n(b,j.id.CHECK,c),b))}else if(c.check.radioType==b.TYPE_ALL)for(d=0,h=g.length;d<h;d++)if(a==g[d]){g.splice(d,1);break}}else a[l]&&(!a[i]||a[i].length==0||c.check.chkboxType.Y.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!0),!a[l]&&(!a[i]||a[i].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,
-a,!1),a[l]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[l]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,h=j.radio,i="",i=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==h.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+
-"_"+i,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return j.className.BUTTON+" "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,h=f.getRoot(c),i=0,l=h[d].length;i<l;i++){var g=h[d][i];g.nocheck!==!0&&g.chkDisabled!==!0&&(g[b]=a);e.setSonNodeCheckBox(c,g,a)}},repairChkClass:function(c,a){if(a&&(f.makeChkFlag(c,a),a.nocheck!==!0)){var b=n(a,j.id.CHECK,c);e.setChkClass(c,b,a)}},repairParentChkClass:function(c,
-a){if(a&&a.parentTId){var b=a.getParentNode();e.repairChkClass(c,b);e.repairParentChkClass(c,b)}},repairParentChkClassWithSelf:function(c,a){if(a){var b=c.data.key.children;a[b]&&a[b].length>0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b,d){if(a){var h=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b;e.repairChkClass(c,a);if(a[h]&&d)for(var i=0,l=a[h].length;i<l;i++)e.repairSonChkDisabled(c,a[h][i],b,d)}},repairParentChkDisabled:function(c,
-a,b,d){if(a){if(a.chkDisabled!=b&&d)a.chkDisabled=b;e.repairChkClass(c,a);e.repairParentChkDisabled(c,a.getParentNode(),b,d)}},setChkClass:function(c,a,b){a&&(b.nocheck===!0?a.hide():a.show(),a.removeClass(),a.addClass(e.makeChkClass(c,b)))},setParentNodeCheckBox:function(c,a,b,d){var h=c.data.key.children,i=c.data.key.checked,l=n(a,j.id.CHECK,c);d||(d=a);f.makeChkFlag(c,a);a.nocheck!==!0&&a.chkDisabled!==!0&&(a[i]=b,e.setChkClass(c,l,a),c.check.autoCheckTrigger&&a!=d&&c.treeObj.trigger(j.event.CHECK,
-[null,c.treeId,a]));if(a.parentTId){l=!0;if(!b)for(var h=a.getParentNode()[h],g=0,k=h.length;g<k;g++)if(h[g].nocheck!==!0&&h[g].chkDisabled!==!0&&h[g][i]||(h[g].nocheck===!0||h[g].chkDisabled===!0)&&h[g].check_Child_State>0){l=!1;break}l&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var h=c.data.key.children,i=c.data.key.checked,l=n(a,j.id.CHECK,c);d||(d=a);var g=!1;if(a[h])for(var k=0,m=a[h].length;k<m&&a.chkDisabled!==!0;k++){var o=a[h][k];e.setSonNodeCheckBox(c,
-o,b,d);o.chkDisabled===!0&&(g=!0)}if(a!=f.getRoot(c)&&a.chkDisabled!==!0){g&&a.nocheck!==!0&&f.makeChkFlag(c,a);if(a.nocheck!==!0&&a.chkDisabled!==!0){if(a[i]=b,!g)a.check_Child_State=a[h]&&a[h].length>0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,l,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&a.chkDisabled!==!0&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b<d;b++)f.getNodeCache(c,
-a[b].tId)||(a.splice(b,1),b--,d--);return a},getCheckStatus:function(c,a){if(!c.check.enable||a.nocheck||a.chkDisabled)return null;var b=c.data.key.checked;return{checked:a[b],half:a.halfCheck?a.halfCheck:c.check.chkStyle==j.radio.STYLE?a.check_Child_State===2:a[b]?a.check_Child_State>-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var h=c.data.key.children,i=c.data.key.checked,e=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,
-d=!d?[]:d,g=0,k=a.length;g<k;g++){if(a[g].nocheck!==!0&&a[g].chkDisabled!==!0&&a[g][i]==b&&(d.push(a[g]),e))break;f.getTreeCheckedNodes(c,a[g][h],b,d);if(e&&d.length>0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,h=c.data.key.checked,b=!b?[]:b,i=0,e=a.length;i<e;i++)a[i].nocheck!==!0&&a[i].chkDisabled!==!0&&a[i][h]!=a[i].checkedOld&&b.push(a[i]),f.getTreeChangeCheckedNodes(c,a[i][d],b);return b},makeChkFlag:function(c,a){if(a){var b=c.data.key.children,
-d=c.data.key.checked,h=-1;if(a[b])for(var i=0,e=a[b].length;i<e;i++){var g=a[b][i],f=-1;if(c.check.chkStyle==j.radio.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?2:g[d]?2:g.check_Child_State>0?2:0,f==2){h=2;break}else f==0&&(h=0);else if(c.check.chkStyle==j.checkbox.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?1:g[d]?g.check_Child_State===-1||g.check_Child_State===2?2:1:g.check_Child_State>0?1:0,f===1){h=1;break}else if(f===
-2&&h>-1&&i>0&&f!==h){h=1;break}else if(h===2&&f>-1&&f<2){h=1;break}else f>-1&&(h=f)}a.check_Child_State=h}}}});var m=m.fn.zTree,k=m._z.tools,j=m.consts,e=m._z.view,f=m._z.data,n=k.$;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,h){a.srcEvent=b;k.apply(c.callback.onCheck,[a,d,h])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=
-k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&&d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||c.check.chkDisabledInherit&&d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,
-b)};c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&b[a]&&f.getRoot(c).radioCheckedList.push(b)}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",h=null,e="",l=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=
-k.getNodeMainDom(a).id,e="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="checkNode";if(d.length>0)switch(h=f.getNodeCache(b,d),e){case "checkNode":l=p;break;case "mouseoverCheck":l=q;break;case "mouseoutCheck":l=r}return{stop:e==="checkNode",node:h,nodeEventType:e,nodeEventCallback:l,treeEventType:"",treeEventCallback:null}},!0);f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});
-f.addBeforeA(function(c,a,b){c.check.enable&&(f.makeChkFlag(c,a),b.push("<span ID='",a.tId,j.id.CHECK,"' class='",e.makeChkClass(c,a),"' treeNode",j.id.CHECK,a.nocheck===!0?" style='display:none;'":"","></span>"))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,c,f){var g=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[g]),f=!!f,(a[g]!==b||c)&&!(f&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&
-a.nocheck!==!0))a[g]=b,b=n(a,j.id.CHECK,this.setting),(c||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting,a),f&&this.setting.treeObj.trigger(j.event.CHECK,[null,this.setting.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(this.setting)[b],a!==!1)};
-a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(this.setting)[a])};a.setChkDisabled=function(a,b,c,f){b=!!b;c=!!c;e.repairSonChkDisabled(this.setting,a,b,!!f);e.repairParentChkDisabled(this.setting,a.getParentNode(),b,c)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&n(c,this.setting).get(0)&&k.uCanDo(this.setting)){var i=n(c,j.id.CHECK,this.setting);(f==!0||this.setting.check.chkStyle===
-j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,i,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode=function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,h,i){var j="";u&&(j=u.apply(e,arguments));d&&f.makeChkFlag(c,
-d);return j}})(jQuery);
-
-/*
- * JQuery zTree exedit v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(w){var I={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},x={onHoverOverNode:function(b,a){var c=m.getSetting(b.data.treeId),d=m.getRoot(c);if(d.curHoverNode!=a)x.onHoverOutNode(b);d.curHoverNode=a;f.addHoverDom(c,a)},onHoverOutNode:function(b){var b=
-m.getSetting(b.data.treeId),a=m.getRoot(b);if(a.curHoverNode&&!m.isSelectedNode(b,a.curHoverNode))f.removeTreeDom(b,a.curHoverNode),a.curHoverNode=null},onMousedownNode:function(b,a){function c(b){if(C.dragFlag==0&&Math.abs(N-b.clientX)<e.edit.drag.minMoveSize&&Math.abs(O-b.clientY)<e.edit.drag.minMoveSize)return!0;var a,c,n,k,i;i=e.data.key.children;M.css("cursor","pointer");if(C.dragFlag==0){if(g.apply(e.callback.beforeDrag,[e.treeId,l],!0)==!1)return r(b),!0;for(a=0,c=l.length;a<c;a++){if(a==0)C.dragNodeShowBefore=
-[];n=l[a];n.isParent&&n.open?(f.expandCollapseNode(e,n,!n.open),C.dragNodeShowBefore[n.tId]=!0):C.dragNodeShowBefore[n.tId]=!1}C.dragFlag=1;t.showHoverDom=!1;g.showIfameMask(e,!0);n=!0;k=-1;if(l.length>1){var j=l[0].parentTId?l[0].getParentNode()[i]:m.getNodes(e);i=[];for(a=0,c=j.length;a<c;a++)if(C.dragNodeShowBefore[j[a].tId]!==void 0&&(n&&k>-1&&k+1!==a&&(n=!1),i.push(j[a]),k=a),l.length===i.length){l=i;break}}n&&(H=l[0].getPreNode(),R=l[l.length-1].getNextNode());D=o("<ul class='zTreeDragUL'></ul>",
-e);for(a=0,c=l.length;a<c;a++)n=l[a],n.editNameFlag=!1,f.selectNode(e,n,a>0),f.removeTreeDom(e,n),a>e.edit.drag.maxShowNodeNum-1||(k=o("<li id='"+n.tId+"_tmp'></li>",e),k.append(o(n,d.id.A,e).clone()),k.css("padding","0"),k.children("#"+n.tId+d.id.A).removeClass(d.node.CURSELECTED),D.append(k),a==e.edit.drag.maxShowNodeNum-1&&(k=o("<li id='"+n.tId+"_moretmp'><a> ... </a></li>",e),D.append(k)));D.attr("id",l[0].tId+d.id.UL+"_tmp");D.addClass(e.treeObj.attr("class"));D.appendTo(M);B=o("<span class='tmpzTreeMove_arrow'></span>",
-e);B.attr("id","zTreeMove_arrow_tmp");B.appendTo(M);e.treeObj.trigger(d.event.DRAG,[b,e.treeId,l])}if(C.dragFlag==1){s&&B.attr("id")==b.target.id&&u&&b.clientX+F.scrollLeft()+2>w("#"+u+d.id.A,s).offset().left?(n=w("#"+u+d.id.A,s),b.target=n.length>0?n.get(0):b.target):s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));
-u=s=null;J=!1;h=e;n=m.getSettings();for(var y in n)if(n[y].treeId&&n[y].edit.enable&&n[y].treeId!=e.treeId&&(b.target.id==n[y].treeId||w(b.target).parents("#"+n[y].treeId).length>0))J=!0,h=n[y];y=F.scrollTop();k=F.scrollLeft();i=h.treeObj.offset();a=h.treeObj.get(0).scrollHeight;n=h.treeObj.get(0).scrollWidth;c=b.clientY+y-i.top;var p=h.treeObj.height()+i.top-b.clientY-y,q=b.clientX+k-i.left,x=h.treeObj.width()+i.left-b.clientX-k;i=c<e.edit.drag.borderMax&&c>e.edit.drag.borderMin;var j=p<e.edit.drag.borderMax&&
-p>e.edit.drag.borderMin,K=q<e.edit.drag.borderMax&&q>e.edit.drag.borderMin,G=x<e.edit.drag.borderMax&&x>e.edit.drag.borderMin,p=c>e.edit.drag.borderMin&&p>e.edit.drag.borderMin&&q>e.edit.drag.borderMin&&x>e.edit.drag.borderMin,q=i&&h.treeObj.scrollTop()<=0,x=j&&h.treeObj.scrollTop()+h.treeObj.height()+10>=a,P=K&&h.treeObj.scrollLeft()<=0,Q=G&&h.treeObj.scrollLeft()+h.treeObj.width()+10>=n;if(b.target&&g.isChildOrSelf(b.target,h.treeId)){for(var E=b.target;E&&E.tagName&&!g.eqs(E.tagName,"li")&&E.id!=
-h.treeId;)E=E.parentNode;var S=!0;for(a=0,c=l.length;a<c;a++)if(n=l[a],E.id===n.tId){S=!1;break}else if(o(n,e).find("#"+E.id).length>0){S=!1;break}if(S&&b.target&&g.isChildOrSelf(b.target,E.id+d.id.A))s=w(E),u=E.id}n=l[0];if(p&&g.isChildOrSelf(b.target,h.treeId)){if(!s&&(b.target.id==h.treeId||q||x||P||Q)&&(J||!J&&n.parentTId))s=h.treeObj;i?h.treeObj.scrollTop(h.treeObj.scrollTop()-10):j&&h.treeObj.scrollTop(h.treeObj.scrollTop()+10);K?h.treeObj.scrollLeft(h.treeObj.scrollLeft()-10):G&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+
-10);s&&s!=h.treeObj&&s.offset().left<h.treeObj.offset().left&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+s.offset().left-h.treeObj.offset().left)}D.css({top:b.clientY+y+3+"px",left:b.clientX+k+3+"px"});i=a=0;if(s&&s.attr("id")!=h.treeId){var z=u==null?null:m.getNodeCache(h,u);c=(b.ctrlKey||b.metaKey)&&e.edit.drag.isMove&&e.edit.drag.isCopy||!e.edit.drag.isMove&&e.edit.drag.isCopy;a=!!(H&&u===H.tId);i=!!(R&&u===R.tId);k=n.parentTId&&n.parentTId==u;n=(c||!i)&&g.apply(h.edit.drag.prev,[h.treeId,l,z],
-!!h.edit.drag.prev);a=(c||!a)&&g.apply(h.edit.drag.next,[h.treeId,l,z],!!h.edit.drag.next);G=(c||!k)&&!(h.data.keep.leaf&&!z.isParent)&&g.apply(h.edit.drag.inner,[h.treeId,l,z],!!h.edit.drag.inner);if(!n&&!a&&!G){if(s=null,u="",v=d.move.TYPE_INNER,B.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null}else{c=w("#"+u+d.id.A,s);i=z.isLastNode?null:w("#"+z.getNextNode().tId+d.id.A,s.next());j=c.offset().top;k=c.offset().left;K=n?G?0.25:a?
-0.5:1:-1;G=a?G?0.75:n?0.5:0:-1;y=(b.clientY+y-j)/c.height();(K==1||y<=K&&y>=-0.2)&&n?(a=1-B.width(),i=j-B.height()/2,v=d.move.TYPE_PREV):(G==0||y>=G&&y<=1.2)&&a?(a=1-B.width(),i=i==null||z.isParent&&z.open?j+c.height()-B.height()/2:i.offset().top-B.height()/2,v=d.move.TYPE_NEXT):(a=5-B.width(),i=j,v=d.move.TYPE_INNER);B.css({display:"block",top:i+"px",left:k+a+"px"});c.addClass(d.node.TMPTARGET_NODE+"_"+v);if(T!=u||U!=v)L=(new Date).getTime();if(z&&z.isParent&&v==d.move.TYPE_INNER&&(y=!0,window.zTreeMoveTimer&&
-window.zTreeMoveTargetNodeTId!==z.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===z.tId&&(y=!1),y))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&z&&z.isParent&&!z.open&&(new Date).getTime()-L>h.edit.drag.autoOpenTime&&g.apply(h.callback.beforeDragOpen,[h.treeId,z],!0)&&(f.switchNode(h,z),h.edit.drag.autoExpandTrigger&&h.treeObj.trigger(d.event.EXPAND,[h.treeId,z]))},h.edit.drag.autoOpenTime+50),
-window.zTreeMoveTargetNodeTId=z.tId}}else if(v=d.move.TYPE_INNER,s&&g.apply(h.edit.drag.inner,[h.treeId,l,null],!!h.edit.drag.inner)?s.addClass(d.node.TMPTARGET_TREE):s=null,B.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;T=u;U=v;e.treeObj.trigger(d.event.DRAGMOVE,[b,e.treeId,l])}return!1}function r(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;U=T=null;F.unbind("mousemove",c);
-F.unbind("mouseup",r);F.unbind("selectstart",k);M.css("cursor","auto");s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));g.showIfameMask(e,!1);t.showHoverDom=!0;if(C.dragFlag!=0){C.dragFlag=0;var a,i,j;for(a=0,i=l.length;a<i;a++)j=l[a],j.isParent&&C.dragNodeShowBefore[j.tId]&&!j.open&&(f.expandCollapseNode(e,j,!j.open),
-delete C.dragNodeShowBefore[j.tId]);D&&D.remove();B&&B.remove();var p=(b.ctrlKey||b.metaKey)&&e.edit.drag.isMove&&e.edit.drag.isCopy||!e.edit.drag.isMove&&e.edit.drag.isCopy;!p&&s&&u&&l[0].parentTId&&u==l[0].parentTId&&v==d.move.TYPE_INNER&&(s=null);if(s){var q=u==null?null:m.getNodeCache(h,u);if(g.apply(e.callback.beforeDrop,[h.treeId,l,q,v,p],!0)==!1)f.selectNodes(x,l);else{var A=p?g.clone(l):l;a=function(){if(J){if(!p)for(var a=0,c=l.length;a<c;a++)f.removeNode(e,l[a]);if(v==d.move.TYPE_INNER)f.addNodes(h,
-q,A);else if(f.addNodes(h,q.getParentNode(),A),v==d.move.TYPE_PREV)for(a=0,c=A.length;a<c;a++)f.moveNode(h,q,A[a],v,!1);else for(a=-1,c=A.length-1;a<c;c--)f.moveNode(h,q,A[c],v,!1)}else if(p&&v==d.move.TYPE_INNER)f.addNodes(h,q,A);else if(p&&f.addNodes(h,q.getParentNode(),A),v!=d.move.TYPE_NEXT)for(a=0,c=A.length;a<c;a++)f.moveNode(h,q,A[a],v,!1);else for(a=-1,c=A.length-1;a<c;c--)f.moveNode(h,q,A[c],v,!1);f.selectNodes(h,A);o(A[0],e).focus().blur();e.treeObj.trigger(d.event.DROP,[b,h.treeId,A,q,
-v,p])};v==d.move.TYPE_INNER&&g.canAsync(h,q)?f.asyncNode(h,q,!1,a):a()}}else f.selectNodes(x,l),e.treeObj.trigger(d.event.DROP,[b,e.treeId,l,null,null,null])}}function k(){return!1}var i,j,e=m.getSetting(b.data.treeId),C=m.getRoot(e),t=m.getRoots();if(b.button==2||!e.edit.enable||!e.edit.drag.isCopy&&!e.edit.drag.isMove)return!0;var p=b.target,q=m.getRoot(e).curSelectedList,l=[];if(m.isSelectedNode(e,a))for(i=0,j=q.length;i<j;i++){if(q[i].editNameFlag&&g.eqs(p.tagName,"input")&&p.getAttribute("treeNode"+
-d.id.INPUT)!==null)return!0;l.push(q[i]);if(l[0].parentTId!==q[i].parentTId){l=[a];break}}else l=[a];f.editNodeBlur=!0;f.cancelCurEditNode(e);var F=w(e.treeObj.get(0).ownerDocument),M=w(e.treeObj.get(0).ownerDocument.body),D,B,s,J=!1,h=e,x=e,H,R,T=null,U=null,u=null,v=d.move.TYPE_INNER,N=b.clientX,O=b.clientY,L=(new Date).getTime();g.uCanDo(e)&&F.bind("mousemove",c);F.bind("mouseup",r);F.bind("selectstart",k);b.preventDefault&&b.preventDefault();return!0}};w.extend(!0,w.fn.zTree.consts,I);w.extend(!0,
-w.fn.zTree._z,{tools:{getAbs:function(b){b=b.getBoundingClientRect();return[b.left+(document.body.scrollLeft+document.documentElement.scrollLeft),b.top+(document.body.scrollTop+document.documentElement.scrollTop)]},inputFocus:function(b){b.get(0)&&(b.focus(),g.setCursorPosition(b.get(0),b.val().length))},inputSelect:function(b){b.get(0)&&(b.focus(),b.select())},setCursorPosition:function(b,a){if(b.setSelectionRange)b.focus(),b.setSelectionRange(a,a);else if(b.createTextRange){var c=b.createTextRange();
-c.collapse(!0);c.moveEnd("character",a);c.moveStart("character",a);c.select()}},showIfameMask:function(b,a){for(var c=m.getRoot(b);c.dragMaskList.length>0;)c.dragMaskList[0].remove(),c.dragMaskList.shift();if(a)for(var d=o("iframe",b),f=0,i=d.length;f<i;f++){var j=d.get(f),e=g.getAbs(j),j=o("<div id='zTreeMask_"+f+"' class='zTreeMask' style='top:"+e[1]+"px; left:"+e[0]+"px; width:"+j.offsetWidth+"px; height:"+j.offsetHeight+"px;'></div>",b);j.appendTo(o("body",b));c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,
-a){if(!(a.editNameFlag||o(a,d.id.EDIT,b).length>0)&&g.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=o(a,d.id.A,b),r="<span class='"+d.className.BUTTON+" edit' id='"+a.tId+d.id.EDIT+"' title='"+g.apply(b.edit.renameTitle,[b.treeId,a],b.edit.renameTitle)+"' treeNode"+d.id.EDIT+" style='display:none;'></span>";c.append(r);o(a,d.id.EDIT,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},
-addRemoveBtn:function(b,a){if(!(a.editNameFlag||o(a,d.id.REMOVE,b).length>0)&&g.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=o(a,d.id.A,b),r="<span class='"+d.className.BUTTON+" remove' id='"+a.tId+d.id.REMOVE+"' title='"+g.apply(b.edit.removeTitle,[b.treeId,a],b.edit.removeTitle)+"' treeNode"+d.id.REMOVE+" style='display:none;'></span>";c.append(r);o(a,d.id.REMOVE,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,
-a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(m.getRoots().showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b,a),f.addRemoveBtn(b,a)),g.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a,c){var r=m.getRoot(b),k=b.data.key.name,i=r.curEditNode;if(i){var j=r.curEditInput,a=a?a:c?i[k]:j.val();if(g.apply(b.callback.beforeRename,[b.treeId,i,a,c],!0)===!1)return!1;else i[k]=a,b.treeObj.trigger(d.event.RENAME,
-[b.treeId,i,c]);o(i,d.id.A,b).removeClass(d.node.CURSELECTED_EDIT);j.unbind();f.setNodeName(b,i);i.editNameFlag=!1;r.curEditNode=null;r.curEditInput=null;f.selectNode(b,i,!1)}return r.noSelection=!0},editNode:function(b,a){var c=m.getRoot(b);f.editNodeBlur=!1;if(m.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){g.inputFocus(c.curEditInput)},0);else{var r=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);o(a,d.id.SPAN,b).html("<input type=text class='rename' id='"+
-a.tId+d.id.INPUT+"' treeNode"+d.id.INPUT+" >");var k=o(a,d.id.INPUT,b);k.attr("value",a[r]);b.edit.editNameSelectAll?g.inputSelect(k):g.inputFocus(k);k.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(a){a.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b)):a.keyCode=="27"&&f.cancelCurEditNode(b,null,!0)}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});o(a,d.id.A,b).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=k;c.noSelection=
-!1;c.curEditNode=a}},moveNode:function(b,a,c,r,k,i){var j=m.getRoot(b),e=b.data.key.children;if(a!=c&&(!b.data.keep.leaf||!a||a.isParent||r!=d.move.TYPE_INNER)){var g=c.parentTId?c.getParentNode():j,t=a===null||a==j;t&&a===null&&(a=j);if(t)r=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(r!=d.move.TYPE_PREV&&r!=d.move.TYPE_NEXT)r=d.move.TYPE_INNER;if(r==d.move.TYPE_INNER)if(t)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var p;
-t?p=t=b.treeObj:(!i&&r==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):i||f.expandCollapseNode(b,a.getParentNode(),!0,!1),t=o(a,b),p=o(a,d.id.UL,b),t.get(0)&&!p.get(0)&&(p=[],f.makeUlHtml(b,a,p,""),t.append(p.join(""))),p=o(a,d.id.UL,b));var q=o(c,b);q.get(0)?t.get(0)||q.remove():q=f.appendNodes(b,c.level,[c],null,!1,!0).join("");p.get(0)&&r==d.move.TYPE_INNER?p.append(q):t.get(0)&&r==d.move.TYPE_PREV?t.before(q):t.get(0)&&r==d.move.TYPE_NEXT&&t.after(q);var l=-1,w=0,x=null,t=null,D=c.level;if(c.isFirstNode){if(l=
-0,g[e].length>1)x=g[e][1],x.isFirstNode=!0}else if(c.isLastNode)l=g[e].length-1,x=g[e][l-1],x.isLastNode=!0;else for(p=0,q=g[e].length;p<q;p++)if(g[e][p].tId==c.tId){l=p;break}l>=0&&g[e].splice(l,1);if(r!=d.move.TYPE_INNER)for(p=0,q=j[e].length;p<q;p++)j[e][p].tId==a.tId&&(w=p);if(r==d.move.TYPE_INNER){a[e]||(a[e]=[]);if(a[e].length>0)t=a[e][a[e].length-1],t.isLastNode=!1;a[e].splice(a[e].length,0,c);c.isLastNode=!0;c.isFirstNode=a[e].length==1}else a.isFirstNode&&r==d.move.TYPE_PREV?(j[e].splice(w,
-0,c),t=a,t.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode=!1):a.isLastNode&&r==d.move.TYPE_NEXT?(j[e].splice(w+1,0,c),t=a,t.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(r==d.move.TYPE_PREV?j[e].splice(w,0,c):j[e].splice(w+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);m.fixPIdKeyValue(b,c);m.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,D);!b.data.keep.parent&&g[e].length<1?(g.isParent=!1,
-g.open=!1,a=o(g,d.id.UL,b),r=o(g,d.id.SWITCH,b),e=o(g,d.id.ICON,b),f.replaceSwitchClass(g,r,d.folder.DOCU),f.replaceIcoClass(g,e,d.folder.DOCU),a.css("display","none")):x&&f.setNodeLineIcos(b,x);t&&f.setNodeLineIcos(b,t);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,g),f.repairParentChkClassWithSelf(b,g),g!=c.parent&&f.repairParentChkClassWithSelf(b,c));i||f.expandCollapseParentNode(b,c.getParentNode(),!0,k)}},removeEditBtn:function(b,a){o(a,d.id.EDIT,b).unbind().remove()},removeRemoveBtn:function(b,
-a){o(a,d.id.REMOVE,b).unbind().remove()},removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(b,a);f.removeRemoveBtn(b,a);g.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var f=o(a,b),g=o(a,d.id.A,b),b=o(a,d.id.UL,b),c=d.className.LEVEL+c,a=d.className.LEVEL+a.level;f.removeClass(c);f.addClass(a);g.removeClass(c);g.addClass(a);b.removeClass(c);b.addClass(a)}},selectNodes:function(b,a){for(var c=0,d=a.length;c<d;c++)f.selectNode(b,a[c],c>0)}},event:{},
-data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,f=c[d].length;a<f;a++)c[d][a]&&m.setSonNodeLevel(b,c,c[d][a])}}}});var H=w.fn.zTree,g=H._z.tools,d=H.consts,f=H._z.view,m=H._z.data,o=g.$;m.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,
-autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}});m.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d,f){g.apply(b.callback.onRename,[a,c,d,f])});a.bind(c.DRAG,function(a,c,d,f){g.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DRAGMOVE,function(a,c,d,f){g.apply(b.callback.onDragMove,[c,d,f])});a.bind(c.DROP,
-function(a,c,d,f,e,m,o){g.apply(b.callback.onDrop,[c,d,f,e,m,o])})});m.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.DRAG);b.unbind(a.DRAGMOVE);b.unbind(a.DROP)});m.addInitCache(function(){});m.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});m.addInitProxy(function(b){var a=b.target,c=m.getSetting(b.data.treeId),f=b.relatedTarget,k="",i=null,j="",e=null,o=null;if(g.eqs(b.type,"mouseover")){if(o=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))k=
-g.getNodeMainDom(o).id,j="hoverOverNode"}else if(g.eqs(b.type,"mouseout"))o=g.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),o||(k="remove",j="hoverOutNode");else if(g.eqs(b.type,"mousedown")&&(o=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))k=g.getNodeMainDom(o).id,j="mousedownNode";if(k.length>0)switch(i=m.getNodeCache(c,k),j){case "mousedownNode":e=x.onMousedownNode;break;case "hoverOverNode":e=x.onHoverOverNode;break;case "hoverOutNode":e=x.onHoverOutNode}return{stop:!1,
-node:i,nodeEventType:j,nodeEventCallback:e,treeEventType:"",treeEventCallback:null}});m.addInitRoot(function(b){var b=m.getRoot(b),a=m.getRoots();b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag=0;b.dragNodeShowBefore=[];b.dragMaskList=[];a.showHoverDom=!0});m.addZTreeTools(function(b,a){a.cancelEditName=function(a){m.getRoot(this.setting).curEditNode&&f.cancelCurEditNode(this.setting,a?a:null,!0)};a.copyNode=function(a,b,k,i){if(!b)return null;if(a&&!a.isParent&&this.setting.data.keep.leaf&&
-k===d.move.TYPE_INNER)return null;var j=this,e=g.clone(b);if(!a)a=null,k=d.move.TYPE_INNER;k==d.move.TYPE_INNER?(b=function(){f.addNodes(j.setting,a,[e],i)},g.canAsync(this.setting,a)?f.asyncNode(this.setting,a,i,b):b()):(f.addNodes(this.setting,a.parentNode,[e],i),f.moveNode(this.setting,a,e,k,!1,i));return e};a.editName=function(a){a&&a.tId&&a===m.getNodeCache(this.setting,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(this.setting,a.getParentNode(),!0),f.editNode(this.setting,a))};a.moveNode=
-function(a,b,k,i){function j(){f.moveNode(e.setting,a,b,k,!1,i)}if(!b)return b;if(a&&!a.isParent&&this.setting.data.keep.leaf&&k===d.move.TYPE_INNER)return null;else if(a&&(b.parentTId==a.tId&&k==d.move.TYPE_INNER||o(b,this.setting).find("#"+a.tId).length>0))return null;else a||(a=null);var e=this;g.canAsync(this.setting,a)&&k===d.move.TYPE_INNER?f.asyncNode(this.setting,a,i,j):j();return b};a.setEditable=function(a){this.setting.edit.enable=a;return this.refresh()}});var N=f.cancelPreSelectedNode;
-f.cancelPreSelectedNode=function(b,a){for(var c=m.getRoot(b).curSelectedList,d=0,g=c.length;d<g;d++)if(!a||a===c[d])if(f.removeTreeDom(b,c[d]),a)break;N&&N.apply(f,arguments)};var O=f.createNodes;f.createNodes=function(b,a,c,d){O&&O.apply(f,arguments);c&&f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(b,d)};var V=f.makeNodeUrl;f.makeNodeUrl=function(b,a){return b.edit.enable?null:V.apply(f,arguments)};var L=f.removeNode;f.removeNode=function(b,a){var c=m.getRoot(b);if(c.curEditNode===
-a)c.curEditNode=null;L&&L.apply(f,arguments)};var P=f.selectNode;f.selectNode=function(b,a,c){var d=m.getRoot(b);if(m.isSelectedNode(b,a)&&d.curEditNode==a&&a.editNameFlag)return!1;P&&P.apply(f,arguments);f.addHoverDom(b,a);return!0};var Q=g.uCanDo;g.uCanDo=function(b,a){var c=m.getRoot(b);if(a&&(g.eqs(a.type,"mouseover")||g.eqs(a.type,"mouseout")||g.eqs(a.type,"mousedown")||g.eqs(a.type,"mouseup")))return!0;if(c.curEditNode)f.editNodeBlur=!1,c.curEditInput.focus();return!c.curEditNode&&(Q?Q.apply(f,
-arguments):!0)}})(jQuery);
-
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.js
deleted file mode 100644
index 7dd93c6..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.js
+++ /dev/null
@@ -1,1684 +0,0 @@
-/*
- * JQuery zTree core v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- var settings = {}, roots = {}, caches = {},
- //default consts of core
- _consts = {
- className: {
- BUTTON: "button",
- LEVEL: "level",
- ICO_LOADING: "ico_loading",
- SWITCH: "switch"
- },
- event: {
- NODECREATED: "ztree_nodeCreated",
- CLICK: "ztree_click",
- EXPAND: "ztree_expand",
- COLLAPSE: "ztree_collapse",
- ASYNC_SUCCESS: "ztree_async_success",
- ASYNC_ERROR: "ztree_async_error",
- REMOVE: "ztree_remove"
- },
- id: {
- A: "_a",
- ICON: "_ico",
- SPAN: "_span",
- SWITCH: "_switch",
- UL: "_ul"
- },
- line: {
- ROOT: "root",
- ROOTS: "roots",
- CENTER: "center",
- BOTTOM: "bottom",
- NOLINE: "noline",
- LINE: "line"
- },
- folder: {
- OPEN: "open",
- CLOSE: "close",
- DOCU: "docu"
- },
- node: {
- CURSELECTED: "curSelectedNode"
- }
- },
- //default setting of core
- _setting = {
- treeId: "",
- treeObj: null,
- view: {
- addDiyDom: null,
- autoCancelSelected: true,
- dblClickExpand: true,
- expandSpeed: "fast",
- fontCss: {},
- nameIsHTML: false,
- selectedMulti: true,
- showIcon: true,
- showLine: true,
- showTitle: true,
- txtSelectedEnable: false
- },
- data: {
- key: {
- children: "children",
- name: "name",
- title: "",
- url: "url"
- },
- simpleData: {
- enable: false,
- idKey: "id",
- pIdKey: "pId",
- rootPId: null
- },
- keep: {
- parent: false,
- leaf: false
- }
- },
- async: {
- enable: false,
- contentType: "application/x-www-form-urlencoded",
- type: "post",
- dataType: "text",
- url: "",
- autoParam: [],
- otherParam: [],
- dataFilter: null
- },
- callback: {
- beforeAsync:null,
- beforeClick:null,
- beforeDblClick:null,
- beforeRightClick:null,
- beforeMouseDown:null,
- beforeMouseUp:null,
- beforeExpand:null,
- beforeCollapse:null,
- beforeRemove:null,
-
- onAsyncError:null,
- onAsyncSuccess:null,
- onNodeCreated:null,
- onClick:null,
- onDblClick:null,
- onRightClick:null,
- onMouseDown:null,
- onMouseUp:null,
- onExpand:null,
- onCollapse:null,
- onRemove:null
- }
- },
- //default root of core
- //zTree use root to save full data
- _initRoot = function (setting) {
- var r = data.getRoot(setting);
- if (!r) {
- r = {};
- data.setRoot(setting, r);
- }
- r[setting.data.key.children] = [];
- r.expandTriggerFlag = false;
- r.curSelectedList = [];
- r.noSelection = true;
- r.createdNodes = [];
- r.zId = 0;
- r._ver = (new Date()).getTime();
- },
- //default cache of core
- _initCache = function(setting) {
- var c = data.getCache(setting);
- if (!c) {
- c = {};
- data.setCache(setting, c);
- }
- c.nodes = [];
- c.doms = [];
- },
- //default bindEvent of core
- _bindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.bind(c.NODECREATED, function (event, treeId, node) {
- tools.apply(setting.callback.onNodeCreated, [event, treeId, node]);
- });
-
- o.bind(c.CLICK, function (event, srcEvent, treeId, node, clickFlag) {
- tools.apply(setting.callback.onClick, [srcEvent, treeId, node, clickFlag]);
- });
-
- o.bind(c.EXPAND, function (event, treeId, node) {
- tools.apply(setting.callback.onExpand, [event, treeId, node]);
- });
-
- o.bind(c.COLLAPSE, function (event, treeId, node) {
- tools.apply(setting.callback.onCollapse, [event, treeId, node]);
- });
-
- o.bind(c.ASYNC_SUCCESS, function (event, treeId, node, msg) {
- tools.apply(setting.callback.onAsyncSuccess, [event, treeId, node, msg]);
- });
-
- o.bind(c.ASYNC_ERROR, function (event, treeId, node, XMLHttpRequest, textStatus, errorThrown) {
- tools.apply(setting.callback.onAsyncError, [event, treeId, node, XMLHttpRequest, textStatus, errorThrown]);
- });
-
- o.bind(c.REMOVE, function (event, treeId, treeNode) {
- tools.apply(setting.callback.onRemove, [event, treeId, treeNode]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.unbind(c.NODECREATED)
- .unbind(c.CLICK)
- .unbind(c.EXPAND)
- .unbind(c.COLLAPSE)
- .unbind(c.ASYNC_SUCCESS)
- .unbind(c.ASYNC_ERROR)
- .unbind(c.REMOVE);
- },
- //default event proxy of core
- _eventProxy = function(event) {
- var target = event.target,
- setting = data.getSetting(event.data.treeId),
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null,
- tmp = null;
-
- if (tools.eqs(event.type, "mousedown")) {
- treeEventType = "mousedown";
- } else if (tools.eqs(event.type, "mouseup")) {
- treeEventType = "mouseup";
- } else if (tools.eqs(event.type, "contextmenu")) {
- treeEventType = "contextmenu";
- } else if (tools.eqs(event.type, "click")) {
- if (tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.SWITCH) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "switchNode";
- } else {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "clickNode";
- }
- }
- } else if (tools.eqs(event.type, "dblclick")) {
- treeEventType = "dblclick";
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "switchNode";
- }
- }
- if (treeEventType.length > 0 && tId.length == 0) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {tId = tools.getNodeMainDom(tmp).id;}
- }
- // event to node
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "switchNode" :
- if (!node.isParent) {
- nodeEventType = "";
- } else if (tools.eqs(event.type, "click")
- || (tools.eqs(event.type, "dblclick") && tools.apply(setting.view.dblClickExpand, [setting.treeId, node], setting.view.dblClickExpand))) {
- nodeEventCallback = handler.onSwitchNode;
- } else {
- nodeEventType = "";
- }
- break;
- case "clickNode" :
- nodeEventCallback = handler.onClickNode;
- break;
- }
- }
- // event to zTree
- switch (treeEventType) {
- case "mousedown" :
- treeEventCallback = handler.onZTreeMousedown;
- break;
- case "mouseup" :
- treeEventCallback = handler.onZTreeMouseup;
- break;
- case "dblclick" :
- treeEventCallback = handler.onZTreeDblclick;
- break;
- case "contextmenu" :
- treeEventCallback = handler.onZTreeContextmenu;
- break;
- }
- var proxyResult = {
- stop: false,
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of core
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- var r = data.getRoot(setting),
- childKey = setting.data.key.children;
- n.level = level;
- n.tId = setting.treeId + "_" + (++r.zId);
- n.parentTId = parentNode ? parentNode.tId : null;
- n.open = (typeof n.open == "string") ? tools.eqs(n.open, "true") : !!n.open;
- if (n[childKey] && n[childKey].length > 0) {
- n.isParent = true;
- n.zAsync = true;
- } else {
- n.isParent = (typeof n.isParent == "string") ? tools.eqs(n.isParent, "true") : !!n.isParent;
- n.open = (n.isParent && !setting.async.enable) ? n.open : false;
- n.zAsync = !n.isParent;
- }
- n.isFirstNode = isFirstNode;
- n.isLastNode = isLastNode;
- n.getParentNode = function() {return data.getNodeCache(setting, n.parentTId);};
- n.getPreNode = function() {return data.getPreNode(setting, n);};
- n.getNextNode = function() {return data.getNextNode(setting, n);};
- n.isAjaxing = false;
- data.fixPIdKeyValue(setting, n);
- },
- _init = {
- bind: [_bindEvent],
- unbind: [_unbindEvent],
- caches: [_initCache],
- nodes: [_initNode],
- proxys: [_eventProxy],
- roots: [_initRoot],
- beforeA: [],
- afterA: [],
- innerBeforeA: [],
- innerAfterA: [],
- zTreeTools: []
- },
- //method of operate data
- data = {
- addNodeCache: function(setting, node) {
- data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = node;
- },
- getNodeCacheId: function(tId) {
- return tId.substring(tId.lastIndexOf("_")+1);
- },
- addAfterA: function(afterA) {
- _init.afterA.push(afterA);
- },
- addBeforeA: function(beforeA) {
- _init.beforeA.push(beforeA);
- },
- addInnerAfterA: function(innerAfterA) {
- _init.innerAfterA.push(innerAfterA);
- },
- addInnerBeforeA: function(innerBeforeA) {
- _init.innerBeforeA.push(innerBeforeA);
- },
- addInitBind: function(bindEvent) {
- _init.bind.push(bindEvent);
- },
- addInitUnBind: function(unbindEvent) {
- _init.unbind.push(unbindEvent);
- },
- addInitCache: function(initCache) {
- _init.caches.push(initCache);
- },
- addInitNode: function(initNode) {
- _init.nodes.push(initNode);
- },
- addInitProxy: function(initProxy, isFirst) {
- if (!!isFirst) {
- _init.proxys.splice(0,0,initProxy);
- } else {
- _init.proxys.push(initProxy);
- }
- },
- addInitRoot: function(initRoot) {
- _init.roots.push(initRoot);
- },
- addNodesData: function(setting, parentNode, nodes) {
- var childKey = setting.data.key.children;
- if (!parentNode[childKey]) parentNode[childKey] = [];
- if (parentNode[childKey].length > 0) {
- parentNode[childKey][parentNode[childKey].length - 1].isLastNode = false;
- view.setNodeLineIcos(setting, parentNode[childKey][parentNode[childKey].length - 1]);
- }
- parentNode.isParent = true;
- parentNode[childKey] = parentNode[childKey].concat(nodes);
- },
- addSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- if (!data.isSelectedNode(setting, node)) {
- root.curSelectedList.push(node);
- }
- },
- addCreatedNode: function(setting, node) {
- if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
- var root = data.getRoot(setting);
- root.createdNodes.push(node);
- }
- },
- addZTreeTools: function(zTreeTools) {
- _init.zTreeTools.push(zTreeTools);
- },
- exSetting: function(s) {
- $.extend(true, _setting, s);
- },
- fixPIdKeyValue: function(setting, node) {
- if (setting.data.simpleData.enable) {
- node[setting.data.simpleData.pIdKey] = node.parentTId ? node.getParentNode()[setting.data.simpleData.idKey] : setting.data.simpleData.rootPId;
- }
- },
- getAfterA: function(setting, node, array) {
- for (var i=0, j=_init.afterA.length; i<j; i++) {
- _init.afterA[i].apply(this, arguments);
- }
- },
- getBeforeA: function(setting, node, array) {
- for (var i=0, j=_init.beforeA.length; i<j; i++) {
- _init.beforeA[i].apply(this, arguments);
- }
- },
- getInnerAfterA: function(setting, node, array) {
- for (var i=0, j=_init.innerAfterA.length; i<j; i++) {
- _init.innerAfterA[i].apply(this, arguments);
- }
- },
- getInnerBeforeA: function(setting, node, array) {
- for (var i=0, j=_init.innerBeforeA.length; i<j; i++) {
- _init.innerBeforeA[i].apply(this, arguments);
- }
- },
- getCache: function(setting) {
- return caches[setting.treeId];
- },
- getNextNode: function(setting, node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l=p[childKey].length-1; i<=l; i++) {
- if (p[childKey][i] === node) {
- return (i==l ? null : p[childKey][i+1]);
- }
- }
- return null;
- },
- getNodeByParam: function(setting, nodes, key, value) {
- if (!nodes || !key) return null;
- var childKey = setting.data.key.children;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i][key] == value) {
- return nodes[i];
- }
- var tmp = data.getNodeByParam(setting, nodes[i][childKey], key, value);
- if (tmp) return tmp;
- }
- return null;
- },
- getNodeCache: function(setting, tId) {
- if (!tId) return null;
- var n = caches[setting.treeId].nodes[data.getNodeCacheId(tId)];
- return n ? n : null;
- },
- getNodeName: function(setting, node) {
- var nameKey = setting.data.key.name;
- return "" + node[nameKey];
- },
- getNodeTitle: function(setting, node) {
- var t = setting.data.key.title === "" ? setting.data.key.name : setting.data.key.title;
- return "" + node[t];
- },
- getNodes: function(setting) {
- return data.getRoot(setting)[setting.data.key.children];
- },
- getNodesByParam: function(setting, nodes, key, value) {
- if (!nodes || !key) return [];
- var childKey = setting.data.key.children,
- result = [];
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i][key] == value) {
- result.push(nodes[i]);
- }
- result = result.concat(data.getNodesByParam(setting, nodes[i][childKey], key, value));
- }
- return result;
- },
- getNodesByParamFuzzy: function(setting, nodes, key, value) {
- if (!nodes || !key) return [];
- var childKey = setting.data.key.children,
- result = [];
- value = value.toLowerCase();
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (typeof nodes[i][key] == "string" && nodes[i][key].toLowerCase().indexOf(value)>-1) {
- result.push(nodes[i]);
- }
- result = result.concat(data.getNodesByParamFuzzy(setting, nodes[i][childKey], key, value));
- }
- return result;
- },
- getNodesByFilter: function(setting, nodes, filter, isSingle, invokeParam) {
- if (!nodes) return (isSingle ? null : []);
- var childKey = setting.data.key.children,
- result = isSingle ? null : [];
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (tools.apply(filter, [nodes[i], invokeParam], false)) {
- if (isSingle) {return nodes[i];}
- result.push(nodes[i]);
- }
- var tmpResult = data.getNodesByFilter(setting, nodes[i][childKey], filter, isSingle, invokeParam);
- if (isSingle && !!tmpResult) {return tmpResult;}
- result = isSingle ? tmpResult : result.concat(tmpResult);
- }
- return result;
- },
- getPreNode: function(setting, node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- p = node.parentTId ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l=p[childKey].length; i<l; i++) {
- if (p[childKey][i] === node) {
- return (i==0 ? null : p[childKey][i-1]);
- }
- }
- return null;
- },
- getRoot: function(setting) {
- return setting ? roots[setting.treeId] : null;
- },
- getRoots: function() {
- return roots;
- },
- getSetting: function(treeId) {
- return settings[treeId];
- },
- getSettings: function() {
- return settings;
- },
- getZTreeTools: function(treeId) {
- var r = this.getRoot(this.getSetting(treeId));
- return r ? r.treeTools : null;
- },
- initCache: function(setting) {
- for (var i=0, j=_init.caches.length; i<j; i++) {
- _init.caches[i].apply(this, arguments);
- }
- },
- initNode: function(setting, level, node, parentNode, preNode, nextNode) {
- for (var i=0, j=_init.nodes.length; i<j; i++) {
- _init.nodes[i].apply(this, arguments);
- }
- },
- initRoot: function(setting) {
- for (var i=0, j=_init.roots.length; i<j; i++) {
- _init.roots[i].apply(this, arguments);
- }
- },
- isSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- for (var i=0, j=root.curSelectedList.length; i<j; i++) {
- if(node === root.curSelectedList[i]) return true;
- }
- return false;
- },
- removeNodeCache: function(setting, node) {
- var childKey = setting.data.key.children;
- if (node[childKey]) {
- for (var i=0, l=node[childKey].length; i<l; i++) {
- arguments.callee(setting, node[childKey][i]);
- }
- }
- data.getCache(setting).nodes[data.getNodeCacheId(node.tId)] = null;
- },
- removeSelectedNode: function(setting, node) {
- var root = data.getRoot(setting);
- for (var i=0, j=root.curSelectedList.length; i<j; i++) {
- if(node === root.curSelectedList[i] || !data.getNodeCache(setting, root.curSelectedList[i].tId)) {
- root.curSelectedList.splice(i, 1);
- i--;j--;
- }
- }
- },
- setCache: function(setting, cache) {
- caches[setting.treeId] = cache;
- },
- setRoot: function(setting, root) {
- roots[setting.treeId] = root;
- },
- setZTreeTools: function(setting, zTreeTools) {
- for (var i=0, j=_init.zTreeTools.length; i<j; i++) {
- _init.zTreeTools[i].apply(this, arguments);
- }
- },
- transformToArrayFormat: function (setting, nodes) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- r = [];
- if (tools.isArray(nodes)) {
- for (var i=0, l=nodes.length; i<l; i++) {
- r.push(nodes[i]);
- if (nodes[i][childKey])
- r = r.concat(data.transformToArrayFormat(setting, nodes[i][childKey]));
- }
- } else {
- r.push(nodes);
- if (nodes[childKey])
- r = r.concat(data.transformToArrayFormat(setting, nodes[childKey]));
- }
- return r;
- },
- transformTozTreeFormat: function(setting, sNodes) {
- var i,l,
- key = setting.data.simpleData.idKey,
- parentKey = setting.data.simpleData.pIdKey,
- childKey = setting.data.key.children;
- if (!key || key=="" || !sNodes) return [];
-
- if (tools.isArray(sNodes)) {
- var r = [];
- var tmpMap = [];
- for (i=0, l=sNodes.length; i<l; i++) {
- tmpMap[sNodes[i][key]] = sNodes[i];
- }
- for (i=0, l=sNodes.length; i<l; i++) {
- if (tmpMap[sNodes[i][parentKey]] && sNodes[i][key] != sNodes[i][parentKey]) {
- if (!tmpMap[sNodes[i][parentKey]][childKey])
- tmpMap[sNodes[i][parentKey]][childKey] = [];
- tmpMap[sNodes[i][parentKey]][childKey].push(sNodes[i]);
- } else {
- r.push(sNodes[i]);
- }
- }
- return r;
- }else {
- return [sNodes];
- }
- }
- },
- //method of event proxy
- event = {
- bindEvent: function(setting) {
- for (var i=0, j=_init.bind.length; i<j; i++) {
- _init.bind[i].apply(this, arguments);
- }
- },
- unbindEvent: function(setting) {
- for (var i=0, j=_init.unbind.length; i<j; i++) {
- _init.unbind[i].apply(this, arguments);
- }
- },
- bindTree: function(setting) {
- var eventParam = {
- treeId: setting.treeId
- },
- o = setting.treeObj;
- if (!setting.view.txtSelectedEnable) {
- // for can't select text
- o.bind('selectstart', function(e){
- var node
- var n = e.originalEvent.srcElement.nodeName.toLowerCase();
- return (n === "input" || n === "textarea" );
- }).css({
- "-moz-user-select":"-moz-none"
- });
- }
- o.bind('click', eventParam, event.proxy);
- o.bind('dblclick', eventParam, event.proxy);
- o.bind('mouseover', eventParam, event.proxy);
- o.bind('mouseout', eventParam, event.proxy);
- o.bind('mousedown', eventParam, event.proxy);
- o.bind('mouseup', eventParam, event.proxy);
- o.bind('contextmenu', eventParam, event.proxy);
- },
- unbindTree: function(setting) {
- var o = setting.treeObj;
- o.unbind('click', event.proxy)
- .unbind('dblclick', event.proxy)
- .unbind('mouseover', event.proxy)
- .unbind('mouseout', event.proxy)
- .unbind('mousedown', event.proxy)
- .unbind('mouseup', event.proxy)
- .unbind('contextmenu', event.proxy);
- },
- doProxy: function(e) {
- var results = [];
- for (var i=0, j=_init.proxys.length; i<j; i++) {
- var proxyResult = _init.proxys[i].apply(this, arguments);
- results.push(proxyResult);
- if (proxyResult.stop) {
- break;
- }
- }
- return results;
- },
- proxy: function(e) {
- var setting = data.getSetting(e.data.treeId);
- if (!tools.uCanDo(setting, e)) return true;
- var results = event.doProxy(e),
- r = true, x = false;
- for (var i=0, l=results.length; i<l; i++) {
- var proxyResult = results[i];
- if (proxyResult.nodeEventCallback) {
- x = true;
- r = proxyResult.nodeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
- }
- if (proxyResult.treeEventCallback) {
- x = true;
- r = proxyResult.treeEventCallback.apply(proxyResult, [e, proxyResult.node]) && r;
- }
- }
- return r;
- }
- },
- //method of event handler
- handler = {
- onSwitchNode: function (event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (node.open) {
- if (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false) return true;
- data.getRoot(setting).expandTriggerFlag = true;
- view.switchNode(setting, node);
- } else {
- if (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false) return true;
- data.getRoot(setting).expandTriggerFlag = true;
- view.switchNode(setting, node);
- }
- return true;
- },
- onClickNode: function (event, node) {
- var setting = data.getSetting(event.data.treeId),
- clickFlag = ( (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey)) && data.isSelectedNode(setting, node)) ? 0 : (setting.view.autoCancelSelected && (event.ctrlKey || event.metaKey) && setting.view.selectedMulti) ? 2 : 1;
- if (tools.apply(setting.callback.beforeClick, [setting.treeId, node, clickFlag], true) == false) return true;
- if (clickFlag === 0) {
- view.cancelPreSelectedNode(setting, node);
- } else {
- view.selectNode(setting, node, clickFlag === 2);
- }
- setting.treeObj.trigger(consts.event.CLICK, [event, setting.treeId, node, clickFlag]);
- return true;
- },
- onZTreeMousedown: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeMouseDown, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onMouseDown, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeMouseup: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeMouseUp, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onMouseUp, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeDblclick: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeDblClick, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onDblClick, [event, setting.treeId, node]);
- }
- return true;
- },
- onZTreeContextmenu: function(event, node) {
- var setting = data.getSetting(event.data.treeId);
- if (tools.apply(setting.callback.beforeRightClick, [setting.treeId, node], true)) {
- tools.apply(setting.callback.onRightClick, [event, setting.treeId, node]);
- }
- return (typeof setting.callback.onRightClick) != "function";
- }
- },
- //method of tools for zTree
- tools = {
- apply: function(fun, param, defaultValue) {
- if ((typeof fun) == "function") {
- return fun.apply(zt, param?param:[]);
- }
- return defaultValue;
- },
- canAsync: function(setting, node) {
- var childKey = setting.data.key.children;
- return (setting.async.enable && node && node.isParent && !(node.zAsync || (node[childKey] && node[childKey].length > 0)));
- },
- clone: function (obj){
- if (obj === null) return null;
- var o = tools.isArray(obj) ? [] : {};
- for(var i in obj){
- o[i] = (obj[i] instanceof Date) ? new Date(obj[i].getTime()) : (typeof obj[i] === "object" ? arguments.callee(obj[i]) : obj[i]);
- }
- return o;
- },
- eqs: function(str1, str2) {
- return str1.toLowerCase() === str2.toLowerCase();
- },
- isArray: function(arr) {
- return Object.prototype.toString.apply(arr) === "[object Array]";
- },
- $: function(node, exp, setting) {
- if (!!exp && typeof exp != "string") {
- setting = exp;
- exp = "";
- }
- if (typeof node == "string") {
- return $(node, setting ? setting.treeObj.get(0).ownerDocument : null);
- } else {
- return $("#" + node.tId + exp, setting ? setting.treeObj : null);
- }
- },
- getMDom: function (setting, curDom, targetExpr) {
- if (!curDom) return null;
- while (curDom && curDom.id !== setting.treeId) {
- for (var i=0, l=targetExpr.length; curDom.tagName && i<l; i++) {
- if (tools.eqs(curDom.tagName, targetExpr[i].tagName) && curDom.getAttribute(targetExpr[i].attrName) !== null) {
- return curDom;
- }
- }
- curDom = curDom.parentNode;
- }
- return null;
- },
- getNodeMainDom:function(target) {
- return ($(target).parent("li").get(0) || $(target).parentsUntil("li").parent().get(0));
- },
- isChildOrSelf: function(dom, parentId) {
- return ( $(dom).closest("#" + parentId).length> 0 );
- },
- uCanDo: function(setting, e) {
- return true;
- }
- },
- //method of operate ztree dom
- view = {
- addNodes: function(setting, parentNode, newNodes, isSilent) {
- if (setting.data.keep.leaf && parentNode && !parentNode.isParent) {
- return;
- }
- if (!tools.isArray(newNodes)) {
- newNodes = [newNodes];
- }
- if (setting.data.simpleData.enable) {
- newNodes = data.transformTozTreeFormat(setting, newNodes);
- }
- if (parentNode) {
- var target_switchObj = $$(parentNode, consts.id.SWITCH, setting),
- target_icoObj = $$(parentNode, consts.id.ICON, setting),
- target_ulObj = $$(parentNode, consts.id.UL, setting);
-
- if (!parentNode.open) {
- view.replaceSwitchClass(parentNode, target_switchObj, consts.folder.CLOSE);
- view.replaceIcoClass(parentNode, target_icoObj, consts.folder.CLOSE);
- parentNode.open = false;
- target_ulObj.css({
- "display": "none"
- });
- }
-
- data.addNodesData(setting, parentNode, newNodes);
- view.createNodes(setting, parentNode.level + 1, newNodes, parentNode);
- if (!isSilent) {
- view.expandCollapseParentNode(setting, parentNode, true);
- }
- } else {
- data.addNodesData(setting, data.getRoot(setting), newNodes);
- view.createNodes(setting, 0, newNodes, null);
- }
- },
- appendNodes: function(setting, level, nodes, parentNode, initFlag, openFlag) {
- if (!nodes) return [];
- var html = [],
- childKey = setting.data.key.children;
- for (var i = 0, l = nodes.length; i < l; i++) {
- var node = nodes[i];
- if (initFlag) {
- var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),
- tmpPChild = tmpPNode[childKey],
- isFirstNode = ((tmpPChild.length == nodes.length) && (i == 0)),
- isLastNode = (i == (nodes.length - 1));
- data.initNode(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag);
- data.addNodeCache(setting, node);
- }
-
- var childHtml = [];
- if (node[childKey] && node[childKey].length > 0) {
- //make child html first, because checkType
- childHtml = view.appendNodes(setting, level + 1, node[childKey], node, initFlag, openFlag && node.open);
- }
- if (openFlag) {
-
- view.makeDOMNodeMainBefore(html, setting, node);
- view.makeDOMNodeLine(html, setting, node);
- data.getBeforeA(setting, node, html);
- view.makeDOMNodeNameBefore(html, setting, node);
- data.getInnerBeforeA(setting, node, html);
- view.makeDOMNodeIcon(html, setting, node);
- data.getInnerAfterA(setting, node, html);
- view.makeDOMNodeNameAfter(html, setting, node);
- data.getAfterA(setting, node, html);
- if (node.isParent && node.open) {
- view.makeUlHtml(setting, node, html, childHtml.join(''));
- }
- view.makeDOMNodeMainAfter(html, setting, node);
- data.addCreatedNode(setting, node);
- }
- }
- return html;
- },
- appendParentULDom: function(setting, node) {
- var html = [],
- nObj = $$(node, setting);
- if (!nObj.get(0) && !!node.parentTId) {
- view.appendParentULDom(setting, node.getParentNode());
- nObj = $$(node, setting);
- }
- var ulObj = $$(node, consts.id.UL, setting);
- if (ulObj.get(0)) {
- ulObj.remove();
- }
- var childKey = setting.data.key.children,
- childHtml = view.appendNodes(setting, node.level+1, node[childKey], node, false, true);
- view.makeUlHtml(setting, node, html, childHtml.join(''));
- nObj.append(html.join(''));
- },
- asyncNode: function(setting, node, isSilent, callback) {
- var i, l;
- if (node && !node.isParent) {
- tools.apply(callback);
- return false;
- } else if (node && node.isAjaxing) {
- return false;
- } else if (tools.apply(setting.callback.beforeAsync, [setting.treeId, node], true) == false) {
- tools.apply(callback);
- return false;
- }
- if (node) {
- node.isAjaxing = true;
- var icoObj = $$(node, consts.id.ICON, setting);
- icoObj.attr({"style":"", "class":consts.className.BUTTON + " " + consts.className.ICO_LOADING});
- }
-
- var tmpParam = {};
- for (i = 0, l = setting.async.autoParam.length; node && i < l; i++) {
- var pKey = setting.async.autoParam[i].split("="), spKey = pKey;
- if (pKey.length>1) {
- spKey = pKey[1];
- pKey = pKey[0];
- }
- tmpParam[spKey] = node[pKey];
- }
- if (tools.isArray(setting.async.otherParam)) {
- for (i = 0, l = setting.async.otherParam.length; i < l; i += 2) {
- tmpParam[setting.async.otherParam[i]] = setting.async.otherParam[i + 1];
- }
- } else {
- for (var p in setting.async.otherParam) {
- tmpParam[p] = setting.async.otherParam[p];
- }
- }
-
- var _tmpV = data.getRoot(setting)._ver;
- $.ajax({
- contentType: setting.async.contentType,
- type: setting.async.type,
- url: tools.apply(setting.async.url, [setting.treeId, node], setting.async.url),
- data: tmpParam,
- dataType: setting.async.dataType,
- success: function(msg) {
- if (_tmpV != data.getRoot(setting)._ver) {
- return;
- }
- var newNodes = [];
- try {
- if (!msg || msg.length == 0) {
- newNodes = [];
- } else if (typeof msg == "string") {
- newNodes = eval("(" + msg + ")");
- } else {
- newNodes = msg;
- }
- } catch(err) {
- newNodes = msg;
- }
-
- if (node) {
- node.isAjaxing = null;
- node.zAsync = true;
- }
- view.setNodeLineIcos(setting, node);
- if (newNodes && newNodes !== "") {
- newNodes = tools.apply(setting.async.dataFilter, [setting.treeId, node, newNodes], newNodes);
- view.addNodes(setting, node, !!newNodes ? tools.clone(newNodes) : [], !!isSilent);
- } else {
- view.addNodes(setting, node, [], !!isSilent);
- }
- setting.treeObj.trigger(consts.event.ASYNC_SUCCESS, [setting.treeId, node, msg]);
- tools.apply(callback);
- },
- error: function(XMLHttpRequest, textStatus, errorThrown) {
- if (_tmpV != data.getRoot(setting)._ver) {
- return;
- }
- if (node) node.isAjaxing = null;
- view.setNodeLineIcos(setting, node);
- setting.treeObj.trigger(consts.event.ASYNC_ERROR, [setting.treeId, node, XMLHttpRequest, textStatus, errorThrown]);
- }
- });
- return true;
- },
- cancelPreSelectedNode: function (setting, node) {
- var list = data.getRoot(setting).curSelectedList;
- for (var i=0, j=list.length-1; j>=i; j--) {
- if (!node || node === list[j]) {
- $$(list[j], consts.id.A, setting).removeClass(consts.node.CURSELECTED);
- if (node) {
- data.removeSelectedNode(setting, node);
- break;
- }
- }
- }
- if (!node) data.getRoot(setting).curSelectedList = [];
- },
- createNodeCallback: function(setting) {
- if (!!setting.callback.onNodeCreated || !!setting.view.addDiyDom) {
- var root = data.getRoot(setting);
- while (root.createdNodes.length>0) {
- var node = root.createdNodes.shift();
- tools.apply(setting.view.addDiyDom, [setting.treeId, node]);
- if (!!setting.callback.onNodeCreated) {
- setting.treeObj.trigger(consts.event.NODECREATED, [setting.treeId, node]);
- }
- }
- }
- },
- createNodes: function(setting, level, nodes, parentNode) {
- if (!nodes || nodes.length == 0) return;
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- openFlag = !parentNode || parentNode.open || !!$$(parentNode[childKey][0], setting).get(0);
- root.createdNodes = [];
- var zTreeHtml = view.appendNodes(setting, level, nodes, parentNode, true, openFlag);
- if (!parentNode) {
- setting.treeObj.append(zTreeHtml.join(''));
- } else {
- var ulObj = $$(parentNode, consts.id.UL, setting);
- if (ulObj.get(0)) {
- ulObj.append(zTreeHtml.join(''));
- }
- }
- view.createNodeCallback(setting);
- },
- destroy: function(setting) {
- if (!setting) return;
- data.initCache(setting);
- data.initRoot(setting);
- event.unbindTree(setting);
- event.unbindEvent(setting);
- setting.treeObj.empty();
- delete settings[setting.treeId];
- },
- expandCollapseNode: function(setting, node, expandFlag, animateFlag, callback) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- if (!node) {
- tools.apply(callback, []);
- return;
- }
- if (root.expandTriggerFlag) {
- var _callback = callback;
- callback = function(){
- if (_callback) _callback();
- if (node.open) {
- setting.treeObj.trigger(consts.event.EXPAND, [setting.treeId, node]);
- } else {
- setting.treeObj.trigger(consts.event.COLLAPSE, [setting.treeId, node]);
- }
- };
- root.expandTriggerFlag = false;
- }
- if (!node.open && node.isParent && ((!$$(node, consts.id.UL, setting).get(0)) || (node[childKey] && node[childKey].length>0 && !$$(node[childKey][0], setting).get(0)))) {
- view.appendParentULDom(setting, node);
- view.createNodeCallback(setting);
- }
- if (node.open == expandFlag) {
- tools.apply(callback, []);
- return;
- }
- var ulObj = $$(node, consts.id.UL, setting),
- switchObj = $$(node, consts.id.SWITCH, setting),
- icoObj = $$(node, consts.id.ICON, setting);
-
- if (node.isParent) {
- node.open = !node.open;
- if (node.iconOpen && node.iconClose) {
- icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
- }
-
- if (node.open) {
- view.replaceSwitchClass(node, switchObj, consts.folder.OPEN);
- view.replaceIcoClass(node, icoObj, consts.folder.OPEN);
- if (animateFlag == false || setting.view.expandSpeed == "") {
- ulObj.show();
- tools.apply(callback, []);
- } else {
- if (node[childKey] && node[childKey].length > 0) {
- ulObj.slideDown(setting.view.expandSpeed, callback);
- } else {
- ulObj.show();
- tools.apply(callback, []);
- }
- }
- } else {
- view.replaceSwitchClass(node, switchObj, consts.folder.CLOSE);
- view.replaceIcoClass(node, icoObj, consts.folder.CLOSE);
- if (animateFlag == false || setting.view.expandSpeed == "" || !(node[childKey] && node[childKey].length > 0)) {
- ulObj.hide();
- tools.apply(callback, []);
- } else {
- ulObj.slideUp(setting.view.expandSpeed, callback);
- }
- }
- } else {
- tools.apply(callback, []);
- }
- },
- expandCollapseParentNode: function(setting, node, expandFlag, animateFlag, callback) {
- if (!node) return;
- if (!node.parentTId) {
- view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback);
- return;
- } else {
- view.expandCollapseNode(setting, node, expandFlag, animateFlag);
- }
- if (node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, animateFlag, callback);
- }
- },
- expandCollapseSonNode: function(setting, node, expandFlag, animateFlag, callback) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- treeNodes = (node) ? node[childKey]: root[childKey],
- selfAnimateSign = (node) ? false : animateFlag,
- expandTriggerFlag = data.getRoot(setting).expandTriggerFlag;
- data.getRoot(setting).expandTriggerFlag = false;
- if (treeNodes) {
- for (var i = 0, l = treeNodes.length; i < l; i++) {
- if (treeNodes[i]) view.expandCollapseSonNode(setting, treeNodes[i], expandFlag, selfAnimateSign);
- }
- }
- data.getRoot(setting).expandTriggerFlag = expandTriggerFlag;
- view.expandCollapseNode(setting, node, expandFlag, animateFlag, callback );
- },
- makeDOMNodeIcon: function(html, setting, node) {
- var nameStr = data.getNodeName(setting, node),
- name = setting.view.nameIsHTML ? nameStr : nameStr.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
- html.push("<span id='", node.tId, consts.id.ICON,
- "' title='' treeNode", consts.id.ICON," class='", view.makeNodeIcoClass(setting, node),
- "' style='", view.makeNodeIcoStyle(setting, node), "'></span><span id='", node.tId, consts.id.SPAN,
- "'>",name,"</span>");
- },
- makeDOMNodeLine: function(html, setting, node) {
- html.push("<span id='", node.tId, consts.id.SWITCH, "' title='' class='", view.makeNodeLineClass(setting, node), "' treeNode", consts.id.SWITCH,"></span>");
- },
- makeDOMNodeMainAfter: function(html, setting, node) {
- html.push("</li>");
- },
- makeDOMNodeMainBefore: function(html, setting, node) {
- html.push("<li id='", node.tId, "' class='", consts.className.LEVEL, node.level,"' tabindex='0' hidefocus='true' treenode>");
- },
- makeDOMNodeNameAfter: function(html, setting, node) {
- html.push("</a>");
- },
- makeDOMNodeNameBefore: function(html, setting, node) {
- var title = data.getNodeTitle(setting, node),
- url = view.makeNodeUrl(setting, node),
- fontcss = view.makeNodeFontCss(setting, node),
- fontStyle = [];
- for (var f in fontcss) {
- fontStyle.push(f, ":", fontcss[f], ";");
- }
- html.push("<a id='", node.tId, consts.id.A, "' class='", consts.className.LEVEL, node.level,"' treeNode", consts.id.A," onclick=\"", (node.click || ''),
- "\" ", ((url != null && url.length > 0) ? "href='" + url + "'" : ""), " target='",view.makeNodeTarget(node),"' style='", fontStyle.join(''),
- "'");
- if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle) && title) {html.push("title='", title.replace(/'/g,"&#39;").replace(/</g,'&lt;').replace(/>/g,'&gt;'),"'");}
- html.push(">");
- },
- makeNodeFontCss: function(setting, node) {
- var fontCss = tools.apply(setting.view.fontCss, [setting.treeId, node], setting.view.fontCss);
- return (fontCss && ((typeof fontCss) != "function")) ? fontCss : {};
- },
- makeNodeIcoClass: function(setting, node) {
- var icoCss = ["ico"];
- if (!node.isAjaxing) {
- icoCss[0] = (node.iconSkin ? node.iconSkin + "_" : "") + icoCss[0];
- if (node.isParent) {
- icoCss.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
- } else {
- icoCss.push(consts.folder.DOCU);
- }
- }
- return consts.className.BUTTON + " " + icoCss.join('_');
- },
- makeNodeIcoStyle: function(setting, node) {
- var icoStyle = [];
- if (!node.isAjaxing) {
- var icon = (node.isParent && node.iconOpen && node.iconClose) ? (node.open ? node.iconOpen : node.iconClose) : node.icon;
- if (icon) icoStyle.push("background:url(", icon, ") 0 0 no-repeat;");
- if (setting.view.showIcon == false || !tools.apply(setting.view.showIcon, [setting.treeId, node], true)) {
- icoStyle.push("width:0px;height:0px;");
- }
- }
- return icoStyle.join('');
- },
- makeNodeLineClass: function(setting, node) {
- var lineClass = [];
- if (setting.view.showLine) {
- if (node.level == 0 && node.isFirstNode && node.isLastNode) {
- lineClass.push(consts.line.ROOT);
- } else if (node.level == 0 && node.isFirstNode) {
- lineClass.push(consts.line.ROOTS);
- } else if (node.isLastNode) {
- lineClass.push(consts.line.BOTTOM);
- } else {
- lineClass.push(consts.line.CENTER);
- }
- } else {
- lineClass.push(consts.line.NOLINE);
- }
- if (node.isParent) {
- lineClass.push(node.open ? consts.folder.OPEN : consts.folder.CLOSE);
- } else {
- lineClass.push(consts.folder.DOCU);
- }
- return view.makeNodeLineClassEx(node) + lineClass.join('_');
- },
- makeNodeLineClassEx: function(node) {
- return consts.className.BUTTON + " " + consts.className.LEVEL + node.level + " " + consts.className.SWITCH + " ";
- },
- makeNodeTarget: function(node) {
- return (node.target || "_blank");
- },
- makeNodeUrl: function(setting, node) {
- var urlKey = setting.data.key.url;
- return node[urlKey] ? node[urlKey] : null;
- },
- makeUlHtml: function(setting, node, html, content) {
- html.push("<ul id='", node.tId, consts.id.UL, "' class='", consts.className.LEVEL, node.level, " ", view.makeUlLineClass(setting, node), "' style='display:", (node.open ? "block": "none"),"'>");
- html.push(content);
- html.push("</ul>");
- },
- makeUlLineClass: function(setting, node) {
- return ((setting.view.showLine && !node.isLastNode) ? consts.line.LINE : "");
- },
- removeChildNodes: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children,
- nodes = node[childKey];
- if (!nodes) return;
-
- for (var i = 0, l = nodes.length; i < l; i++) {
- data.removeNodeCache(setting, nodes[i]);
- }
- data.removeSelectedNode(setting);
- delete node[childKey];
-
- if (!setting.data.keep.parent) {
- node.isParent = false;
- node.open = false;
- var tmp_switchObj = $$(node, consts.id.SWITCH, setting),
- tmp_icoObj = $$(node, consts.id.ICON, setting);
- view.replaceSwitchClass(node, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(node, tmp_icoObj, consts.folder.DOCU);
- $$(node, consts.id.UL, setting).remove();
- } else {
- $$(node, consts.id.UL, setting).empty();
- }
- },
- setFirstNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if ( childLength > 0) {
- parentNode[childKey][0].isFirstNode = true;
- }
- },
- setLastNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if ( childLength > 0) {
- parentNode[childKey][childLength - 1].isLastNode = true;
- }
- },
- removeNode: function(setting, node) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children,
- parentNode = (node.parentTId) ? node.getParentNode() : root;
-
- node.isFirstNode = false;
- node.isLastNode = false;
- node.getPreNode = function() {return null;};
- node.getNextNode = function() {return null;};
-
- if (!data.getNodeCache(setting, node.tId)) {
- return;
- }
-
- $$(node, setting).remove();
- data.removeNodeCache(setting, node);
- data.removeSelectedNode(setting, node);
-
- for (var i = 0, l = parentNode[childKey].length; i < l; i++) {
- if (parentNode[childKey][i].tId == node.tId) {
- parentNode[childKey].splice(i, 1);
- break;
- }
- }
- view.setFirstNode(setting, parentNode);
- view.setLastNode(setting, parentNode);
-
- var tmp_ulObj,tmp_switchObj,tmp_icoObj,
- childLength = parentNode[childKey].length;
-
- //repair nodes old parent
- if (!setting.data.keep.parent && childLength == 0) {
- //old parentNode has no child nodes
- parentNode.isParent = false;
- parentNode.open = false;
- tmp_ulObj = $$(parentNode, consts.id.UL, setting);
- tmp_switchObj = $$(parentNode, consts.id.SWITCH, setting);
- tmp_icoObj = $$(parentNode, consts.id.ICON, setting);
- view.replaceSwitchClass(parentNode, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(parentNode, tmp_icoObj, consts.folder.DOCU);
- tmp_ulObj.css("display", "none");
-
- } else if (setting.view.showLine && childLength > 0) {
- //old parentNode has child nodes
- var newLast = parentNode[childKey][childLength - 1];
- tmp_ulObj = $$(newLast, consts.id.UL, setting);
- tmp_switchObj = $$(newLast, consts.id.SWITCH, setting);
- tmp_icoObj = $$(newLast, consts.id.ICON, setting);
- if (parentNode == root) {
- if (parentNode[childKey].length == 1) {
- //node was root, and ztree has only one root after move node
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.ROOT);
- } else {
- var tmp_first_switchObj = $$(parentNode[childKey][0], consts.id.SWITCH, setting);
- view.replaceSwitchClass(parentNode[childKey][0], tmp_first_switchObj, consts.line.ROOTS);
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
- }
- } else {
- view.replaceSwitchClass(newLast, tmp_switchObj, consts.line.BOTTOM);
- }
- tmp_ulObj.removeClass(consts.line.LINE);
- }
- },
- replaceIcoClass: function(node, obj, newName) {
- if (!obj || node.isAjaxing) return;
- var tmpName = obj.attr("class");
- if (tmpName == undefined) return;
- var tmpList = tmpName.split("_");
- switch (newName) {
- case consts.folder.OPEN:
- case consts.folder.CLOSE:
- case consts.folder.DOCU:
- tmpList[tmpList.length-1] = newName;
- break;
- }
- obj.attr("class", tmpList.join("_"));
- },
- replaceSwitchClass: function(node, obj, newName) {
- if (!obj) return;
- var tmpName = obj.attr("class");
- if (tmpName == undefined) return;
- var tmpList = tmpName.split("_");
- switch (newName) {
- case consts.line.ROOT:
- case consts.line.ROOTS:
- case consts.line.CENTER:
- case consts.line.BOTTOM:
- case consts.line.NOLINE:
- tmpList[0] = view.makeNodeLineClassEx(node) + newName;
- break;
- case consts.folder.OPEN:
- case consts.folder.CLOSE:
- case consts.folder.DOCU:
- tmpList[1] = newName;
- break;
- }
- obj.attr("class", tmpList.join("_"));
- if (newName !== consts.folder.DOCU) {
- obj.removeAttr("disabled");
- } else {
- obj.attr("disabled", "disabled");
- }
- },
- selectNode: function(setting, node, addFlag) {
- if (!addFlag) {
- view.cancelPreSelectedNode(setting);
- }
- $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED);
- data.addSelectedNode(setting, node);
- },
- setNodeFontCss: function(setting, treeNode) {
- var aObj = $$(treeNode, consts.id.A, setting),
- fontCss = view.makeNodeFontCss(setting, treeNode);
- if (fontCss) {
- aObj.css(fontCss);
- }
- },
- setNodeLineIcos: function(setting, node) {
- if (!node) return;
- var switchObj = $$(node, consts.id.SWITCH, setting),
- ulObj = $$(node, consts.id.UL, setting),
- icoObj = $$(node, consts.id.ICON, setting),
- ulLine = view.makeUlLineClass(setting, node);
- if (ulLine.length==0) {
- ulObj.removeClass(consts.line.LINE);
- } else {
- ulObj.addClass(ulLine);
- }
- switchObj.attr("class", view.makeNodeLineClass(setting, node));
- if (node.isParent) {
- switchObj.removeAttr("disabled");
- } else {
- switchObj.attr("disabled", "disabled");
- }
- icoObj.removeAttr("style");
- icoObj.attr("style", view.makeNodeIcoStyle(setting, node));
- icoObj.attr("class", view.makeNodeIcoClass(setting, node));
- },
- setNodeName: function(setting, node) {
- var title = data.getNodeTitle(setting, node),
- nObj = $$(node, consts.id.SPAN, setting);
- nObj.empty();
- if (setting.view.nameIsHTML) {
- nObj.html(data.getNodeName(setting, node));
- } else {
- nObj.text(data.getNodeName(setting, node));
- }
- if (tools.apply(setting.view.showTitle, [setting.treeId, node], setting.view.showTitle)) {
- var aObj = $$(node, consts.id.A, setting);
- aObj.attr("title", !title ? "" : title);
- }
- },
- setNodeTarget: function(setting, node) {
- var aObj = $$(node, consts.id.A, setting);
- aObj.attr("target", view.makeNodeTarget(node));
- },
- setNodeUrl: function(setting, node) {
- var aObj = $$(node, consts.id.A, setting),
- url = view.makeNodeUrl(setting, node);
- if (url == null || url.length == 0) {
- aObj.removeAttr("href");
- } else {
- aObj.attr("href", url);
- }
- },
- switchNode: function(setting, node) {
- if (node.open || !tools.canAsync(setting, node)) {
- view.expandCollapseNode(setting, node, !node.open);
- } else if (setting.async.enable) {
- if (!view.asyncNode(setting, node)) {
- view.expandCollapseNode(setting, node, !node.open);
- return;
- }
- } else if (node) {
- view.expandCollapseNode(setting, node, !node.open);
- }
- }
- };
- // zTree defind
- $.fn.zTree = {
- consts : _consts,
- _z : {
- tools: tools,
- view: view,
- event: event,
- data: data
- },
- getZTreeObj: function(treeId) {
- var o = data.getZTreeTools(treeId);
- return o ? o : null;
- },
- destroy: function(treeId) {
- if (!!treeId && treeId.length > 0) {
- view.destroy(data.getSetting(treeId));
- } else {
- for(var s in settings) {
- view.destroy(settings[s]);
- }
- }
- },
- init: function(obj, zSetting, zNodes) {
- var setting = tools.clone(_setting);
- $.extend(true, setting, zSetting);
- setting.treeId = obj.attr("id");
- setting.treeObj = obj;
- setting.treeObj.empty();
- settings[setting.treeId] = setting;
- //For some older browser,(e.g., ie6)
- if(typeof document.body.style.maxHeight === "undefined") {
- setting.view.expandSpeed = "";
- }
- data.initRoot(setting);
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- zNodes = zNodes ? tools.clone(tools.isArray(zNodes)? zNodes : [zNodes]) : [];
- if (setting.data.simpleData.enable) {
- root[childKey] = data.transformTozTreeFormat(setting, zNodes);
- } else {
- root[childKey] = zNodes;
- }
-
- data.initCache(setting);
- event.unbindTree(setting);
- event.bindTree(setting);
- event.unbindEvent(setting);
- event.bindEvent(setting);
-
- var zTreeTools = {
- setting : setting,
- addNodes : function(parentNode, newNodes, isSilent) {
- if (!newNodes) return null;
- if (!parentNode) parentNode = null;
- if (parentNode && !parentNode.isParent && setting.data.keep.leaf) return null;
- var xNewNodes = tools.clone(tools.isArray(newNodes)? newNodes: [newNodes]);
- function addCallback() {
- view.addNodes(setting, parentNode, xNewNodes, (isSilent==true));
- }
-
- if (tools.canAsync(setting, parentNode)) {
- view.asyncNode(setting, parentNode, isSilent, addCallback);
- } else {
- addCallback();
- }
- return xNewNodes;
- },
- cancelSelectedNode : function(node) {
- view.cancelPreSelectedNode(setting, node);
- },
- destroy : function() {
- view.destroy(setting);
- },
- expandAll : function(expandFlag) {
- expandFlag = !!expandFlag;
- view.expandCollapseSonNode(setting, null, expandFlag, true);
- return expandFlag;
- },
- expandNode : function(node, expandFlag, sonSign, focus, callbackFlag) {
- if (!node || !node.isParent) return null;
- if (expandFlag !== true && expandFlag !== false) {
- expandFlag = !node.open;
- }
- callbackFlag = !!callbackFlag;
-
- if (callbackFlag && expandFlag && (tools.apply(setting.callback.beforeExpand, [setting.treeId, node], true) == false)) {
- return null;
- } else if (callbackFlag && !expandFlag && (tools.apply(setting.callback.beforeCollapse, [setting.treeId, node], true) == false)) {
- return null;
- }
- if (expandFlag && node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), expandFlag, false);
- }
- if (expandFlag === node.open && !sonSign) {
- return null;
- }
-
- data.getRoot(setting).expandTriggerFlag = callbackFlag;
- if (!tools.canAsync(setting, node) && sonSign) {
- view.expandCollapseSonNode(setting, node, expandFlag, true, function() {
- if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}
- });
- } else {
- node.open = !expandFlag;
- view.switchNode(this.setting, node);
- if (focus !== false) {try{$$(node, setting).focus().blur();}catch(e){}}
- }
- return expandFlag;
- },
- getNodes : function() {
- return data.getNodes(setting);
- },
- getNodeByParam : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodeByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodeByTId : function(tId) {
- return data.getNodeCache(setting, tId);
- },
- getNodesByParam : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodesByParam(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodesByParamFuzzy : function(key, value, parentNode) {
- if (!key) return null;
- return data.getNodesByParamFuzzy(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), key, value);
- },
- getNodesByFilter: function(filter, isSingle, parentNode, invokeParam) {
- isSingle = !!isSingle;
- if (!filter || (typeof filter != "function")) return (isSingle ? null : []);
- return data.getNodesByFilter(setting, parentNode?parentNode[setting.data.key.children]:data.getNodes(setting), filter, isSingle, invokeParam);
- },
- getNodeIndex : function(node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
- for (var i=0, l = parentNode[childKey].length; i < l; i++) {
- if (parentNode[childKey][i] == node) return i;
- }
- return -1;
- },
- getSelectedNodes : function() {
- var r = [], list = data.getRoot(setting).curSelectedList;
- for (var i=0, l=list.length; i<l; i++) {
- r.push(list[i]);
- }
- return r;
- },
- isSelectedNode : function(node) {
- return data.isSelectedNode(setting, node);
- },
- reAsyncChildNodes : function(parentNode, reloadType, isSilent) {
- if (!this.setting.async.enable) return;
- var isRoot = !parentNode;
- if (isRoot) {
- parentNode = data.getRoot(setting);
- }
- if (reloadType=="refresh") {
- var childKey = this.setting.data.key.children;
- for (var i = 0, l = parentNode[childKey] ? parentNode[childKey].length : 0; i < l; i++) {
- data.removeNodeCache(setting, parentNode[childKey][i]);
- }
- data.removeSelectedNode(setting);
- parentNode[childKey] = [];
- if (isRoot) {
- this.setting.treeObj.empty();
- } else {
- var ulObj = $$(parentNode, consts.id.UL, setting);
- ulObj.empty();
- }
- }
- view.asyncNode(this.setting, isRoot? null:parentNode, !!isSilent);
- },
- refresh : function() {
- this.setting.treeObj.empty();
- var root = data.getRoot(setting),
- nodes = root[setting.data.key.children]
- data.initRoot(setting);
- root[setting.data.key.children] = nodes
- data.initCache(setting);
- view.createNodes(setting, 0, root[setting.data.key.children]);
- },
- removeChildNodes : function(node) {
- if (!node) return null;
- var childKey = setting.data.key.children,
- nodes = node[childKey];
- view.removeChildNodes(setting, node);
- return nodes ? nodes : null;
- },
- removeNode : function(node, callbackFlag) {
- if (!node) return;
- callbackFlag = !!callbackFlag;
- if (callbackFlag && tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return;
- view.removeNode(setting, node);
- if (callbackFlag) {
- this.setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
- }
- },
- selectNode : function(node, addFlag) {
- if (!node) return;
- if (tools.uCanDo(setting)) {
- addFlag = setting.view.selectedMulti && addFlag;
- if (node.parentTId) {
- view.expandCollapseParentNode(setting, node.getParentNode(), true, false, function() {
- try{$$(node, setting).focus().blur();}catch(e){}
- });
- } else {
- try{$$(node, setting).focus().blur();}catch(e){}
- }
- view.selectNode(setting, node, addFlag);
- }
- },
- transformTozTreeNodes : function(simpleNodes) {
- return data.transformTozTreeFormat(setting, simpleNodes);
- },
- transformToArray : function(nodes) {
- return data.transformToArrayFormat(setting, nodes);
- },
- updateNode : function(node, checkTypeFlag) {
- if (!node) return;
- var nObj = $$(node, setting);
- if (nObj.get(0) && tools.uCanDo(setting)) {
- view.setNodeName(setting, node);
- view.setNodeTarget(setting, node);
- view.setNodeUrl(setting, node);
- view.setNodeLineIcos(setting, node);
- view.setNodeFontCss(setting, node);
- }
- }
- }
- root.treeTools = zTreeTools;
- data.setZTreeTools(setting, zTreeTools);
-
- if (root[childKey] && root[childKey].length > 0) {
- view.createNodes(setting, 0, root[childKey]);
- } else if (setting.async.enable && setting.async.url && setting.async.url !== '') {
- view.asyncNode(setting);
- }
- return zTreeTools;
- }
- };
-
- var zt = $.fn.zTree,
- $$ = tools.$,
- consts = zt.consts;
-})(jQuery); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.min.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.min.js
deleted file mode 100644
index 705bdb4..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.min.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * JQuery zTree core v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(p){var G,H,I,J,K,L,r={},u={},v={},M={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0,txtSelectedEnable:!1},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],
-otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},w=[function(b){var a=b.treeObj,c=e.event;a.bind(c.NODECREATED,function(a,c,g){j.apply(b.callback.onNodeCreated,
-[a,c,g])});a.bind(c.CLICK,function(a,c,g,l,h){j.apply(b.callback.onClick,[c,g,l,h])});a.bind(c.EXPAND,function(a,c,g){j.apply(b.callback.onExpand,[a,c,g])});a.bind(c.COLLAPSE,function(a,c,g){j.apply(b.callback.onCollapse,[a,c,g])});a.bind(c.ASYNC_SUCCESS,function(a,c,g,l){j.apply(b.callback.onAsyncSuccess,[a,c,g,l])});a.bind(c.ASYNC_ERROR,function(a,c,g,l,h,e){j.apply(b.callback.onAsyncError,[a,c,g,l,h,e])});a.bind(c.REMOVE,function(a,c,g){j.apply(b.callback.onRemove,[a,c,g])})}],x=[function(b){var a=
-e.event;b.treeObj.unbind(a.NODECREATED).unbind(a.CLICK).unbind(a.EXPAND).unbind(a.COLLAPSE).unbind(a.ASYNC_SUCCESS).unbind(a.ASYNC_ERROR).unbind(a.REMOVE)}],y=[function(b){var a=h.getCache(b);a||(a={},h.setCache(b,a));a.nodes=[];a.doms=[]}],z=[function(b,a,c,d,f,g){if(c){var l=h.getRoot(b),e=b.data.key.children;c.level=a;c.tId=b.treeId+"_"+ ++l.zId;c.parentTId=d?d.tId:null;c.open=typeof c.open=="string"?j.eqs(c.open,"true"):!!c.open;c[e]&&c[e].length>0?(c.isParent=!0,c.zAsync=!0):(c.isParent=typeof c.isParent==
-"string"?j.eqs(c.isParent,"true"):!!c.isParent,c.open=c.isParent&&!b.async.enable?c.open:!1,c.zAsync=!c.isParent);c.isFirstNode=f;c.isLastNode=g;c.getParentNode=function(){return h.getNodeCache(b,c.parentTId)};c.getPreNode=function(){return h.getPreNode(b,c)};c.getNextNode=function(){return h.getNextNode(b,c)};c.isAjaxing=!1;h.fixPIdKeyValue(b,c)}}],s=[function(b){var a=b.target,c=h.getSetting(b.data.treeId),d="",f=null,g="",l="",i=null,n=null,k=null;if(j.eqs(b.type,"mousedown"))l="mousedown";else if(j.eqs(b.type,
-"mouseup"))l="mouseup";else if(j.eqs(b.type,"contextmenu"))l="contextmenu";else if(j.eqs(b.type,"click"))if(j.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+e.id.SWITCH)!==null)d=j.getNodeMainDom(a).id,g="switchNode";else{if(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}]))d=j.getNodeMainDom(k).id,g="clickNode"}else if(j.eqs(b.type,"dblclick")&&(l="dblclick",k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id,g="switchNode";if(l.length>0&&d.length==0&&
-(k=j.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+e.id.A}])))d=j.getNodeMainDom(k).id;if(d.length>0)switch(f=h.getNodeCache(c,d),g){case "switchNode":f.isParent?j.eqs(b.type,"click")||j.eqs(b.type,"dblclick")&&j.apply(c.view.dblClickExpand,[c.treeId,f],c.view.dblClickExpand)?i=G:g="":g="";break;case "clickNode":i=H}switch(l){case "mousedown":n=I;break;case "mouseup":n=J;break;case "dblclick":n=K;break;case "contextmenu":n=L}return{stop:!1,node:f,nodeEventType:g,nodeEventCallback:i,treeEventType:l,
-treeEventCallback:n}}],A=[function(b){var a=h.getRoot(b);a||(a={},h.setRoot(b,a));a[b.data.key.children]=[];a.expandTriggerFlag=!1;a.curSelectedList=[];a.noSelection=!0;a.createdNodes=[];a.zId=0;a._ver=(new Date).getTime()}],B=[],C=[],D=[],E=[],F=[],h={addNodeCache:function(b,a){h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=a},getNodeCacheId:function(b){return b.substring(b.lastIndexOf("_")+1)},addAfterA:function(b){C.push(b)},addBeforeA:function(b){B.push(b)},addInnerAfterA:function(b){E.push(b)},
-addInnerBeforeA:function(b){D.push(b)},addInitBind:function(b){w.push(b)},addInitUnBind:function(b){x.push(b)},addInitCache:function(b){y.push(b)},addInitNode:function(b){z.push(b)},addInitProxy:function(b,a){a?s.splice(0,0,b):s.push(b)},addInitRoot:function(b){A.push(b)},addNodesData:function(b,a,c){var d=b.data.key.children;a[d]||(a[d]=[]);if(a[d].length>0)a[d][a[d].length-1].isLastNode=!1,i.setNodeLineIcos(b,a[d][a[d].length-1]);a.isParent=!0;a[d]=a[d].concat(c)},addSelectedNode:function(b,a){var c=
-h.getRoot(b);h.isSelectedNode(b,a)||c.curSelectedList.push(a)},addCreatedNode:function(b,a){(b.callback.onNodeCreated||b.view.addDiyDom)&&h.getRoot(b).createdNodes.push(a)},addZTreeTools:function(b){F.push(b)},exSetting:function(b){p.extend(!0,M,b)},fixPIdKeyValue:function(b,a){b.data.simpleData.enable&&(a[b.data.simpleData.pIdKey]=a.parentTId?a.getParentNode()[b.data.simpleData.idKey]:b.data.simpleData.rootPId)},getAfterA:function(b,a,c){for(var d=0,f=C.length;d<f;d++)C[d].apply(this,arguments)},
-getBeforeA:function(b,a,c){for(var d=0,f=B.length;d<f;d++)B[d].apply(this,arguments)},getInnerAfterA:function(b,a,c){for(var d=0,f=E.length;d<f;d++)E[d].apply(this,arguments)},getInnerBeforeA:function(b,a,c){for(var d=0,f=D.length;d<f;d++)D[d].apply(this,arguments)},getCache:function(b){return v[b.treeId]},getNextNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length-1;f<=g;f++)if(d[c][f]===a)return f==g?null:d[c][f+1];return null},
-getNodeByParam:function(b,a,c,d){if(!a||!c)return null;for(var f=b.data.key.children,g=0,l=a.length;g<l;g++){if(a[g][c]==d)return a[g];var e=h.getNodeByParam(b,a[g][f],c,d);if(e)return e}return null},getNodeCache:function(b,a){if(!a)return null;var c=v[b.treeId].nodes[h.getNodeCacheId(a)];return c?c:null},getNodeName:function(b,a){return""+a[b.data.key.name]},getNodeTitle:function(b,a){return""+a[b.data.key.title===""?b.data.key.name:b.data.key.title]},getNodes:function(b){return h.getRoot(b)[b.data.key.children]},
-getNodesByParam:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],l=0,e=a.length;l<e;l++)a[l][c]==d&&g.push(a[l]),g=g.concat(h.getNodesByParam(b,a[l][f],c,d));return g},getNodesByParamFuzzy:function(b,a,c,d){if(!a||!c)return[];for(var f=b.data.key.children,g=[],d=d.toLowerCase(),l=0,e=a.length;l<e;l++)typeof a[l][c]=="string"&&a[l][c].toLowerCase().indexOf(d)>-1&&g.push(a[l]),g=g.concat(h.getNodesByParamFuzzy(b,a[l][f],c,d));return g},getNodesByFilter:function(b,a,c,d,f){if(!a)return d?
-null:[];for(var g=b.data.key.children,e=d?null:[],i=0,n=a.length;i<n;i++){if(j.apply(c,[a[i],f],!1)){if(d)return a[i];e.push(a[i])}var k=h.getNodesByFilter(b,a[i][g],c,d,f);if(d&&k)return k;e=d?k:e.concat(k)}return e},getPreNode:function(b,a){if(!a)return null;for(var c=b.data.key.children,d=a.parentTId?a.getParentNode():h.getRoot(b),f=0,g=d[c].length;f<g;f++)if(d[c][f]===a)return f==0?null:d[c][f-1];return null},getRoot:function(b){return b?u[b.treeId]:null},getRoots:function(){return u},getSetting:function(b){return r[b]},
-getSettings:function(){return r},getZTreeTools:function(b){return(b=this.getRoot(this.getSetting(b)))?b.treeTools:null},initCache:function(b){for(var a=0,c=y.length;a<c;a++)y[a].apply(this,arguments)},initNode:function(b,a,c,d,f,g){for(var e=0,h=z.length;e<h;e++)z[e].apply(this,arguments)},initRoot:function(b){for(var a=0,c=A.length;a<c;a++)A[a].apply(this,arguments)},isSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d])return!0;return!1},
-removeNodeCache:function(b,a){var c=b.data.key.children;if(a[c])for(var d=0,f=a[c].length;d<f;d++)arguments.callee(b,a[c][d]);h.getCache(b).nodes[h.getNodeCacheId(a.tId)]=null},removeSelectedNode:function(b,a){for(var c=h.getRoot(b),d=0,f=c.curSelectedList.length;d<f;d++)if(a===c.curSelectedList[d]||!h.getNodeCache(b,c.curSelectedList[d].tId))c.curSelectedList.splice(d,1),d--,f--},setCache:function(b,a){v[b.treeId]=a},setRoot:function(b,a){u[b.treeId]=a},setZTreeTools:function(b,a){for(var c=0,d=
-F.length;c<d;c++)F[c].apply(this,arguments)},transformToArrayFormat:function(b,a){if(!a)return[];var c=b.data.key.children,d=[];if(j.isArray(a))for(var f=0,g=a.length;f<g;f++)d.push(a[f]),a[f][c]&&(d=d.concat(h.transformToArrayFormat(b,a[f][c])));else d.push(a),a[c]&&(d=d.concat(h.transformToArrayFormat(b,a[c])));return d},transformTozTreeFormat:function(b,a){var c,d,f=b.data.simpleData.idKey,g=b.data.simpleData.pIdKey,e=b.data.key.children;if(!f||f==""||!a)return[];if(j.isArray(a)){var h=[],i=[];
-for(c=0,d=a.length;c<d;c++)i[a[c][f]]=a[c];for(c=0,d=a.length;c<d;c++)i[a[c][g]]&&a[c][f]!=a[c][g]?(i[a[c][g]][e]||(i[a[c][g]][e]=[]),i[a[c][g]][e].push(a[c])):h.push(a[c]);return h}else return[a]}},m={bindEvent:function(b){for(var a=0,c=w.length;a<c;a++)w[a].apply(this,arguments)},unbindEvent:function(b){for(var a=0,c=x.length;a<c;a++)x[a].apply(this,arguments)},bindTree:function(b){var a={treeId:b.treeId},c=b.treeObj;b.view.txtSelectedEnable||c.bind("selectstart",function(a){a=a.originalEvent.srcElement.nodeName.toLowerCase();
-return a==="input"||a==="textarea"}).css({"-moz-user-select":"-moz-none"});c.bind("click",a,m.proxy);c.bind("dblclick",a,m.proxy);c.bind("mouseover",a,m.proxy);c.bind("mouseout",a,m.proxy);c.bind("mousedown",a,m.proxy);c.bind("mouseup",a,m.proxy);c.bind("contextmenu",a,m.proxy)},unbindTree:function(b){b.treeObj.unbind("click",m.proxy).unbind("dblclick",m.proxy).unbind("mouseover",m.proxy).unbind("mouseout",m.proxy).unbind("mousedown",m.proxy).unbind("mouseup",m.proxy).unbind("contextmenu",m.proxy)},
-doProxy:function(b){for(var a=[],c=0,d=s.length;c<d;c++){var f=s[c].apply(this,arguments);a.push(f);if(f.stop)break}return a},proxy:function(b){var a=h.getSetting(b.data.treeId);if(!j.uCanDo(a,b))return!0;for(var a=m.doProxy(b),c=!0,d=0,f=a.length;d<f;d++){var g=a[d];g.nodeEventCallback&&(c=g.nodeEventCallback.apply(g,[b,g.node])&&c);g.treeEventCallback&&(c=g.treeEventCallback.apply(g,[b,g.node])&&c)}return c}};G=function(b,a){var c=h.getSetting(b.data.treeId);if(a.open){if(j.apply(c.callback.beforeCollapse,
-[c.treeId,a],!0)==!1)return!0}else if(j.apply(c.callback.beforeExpand,[c.treeId,a],!0)==!1)return!0;h.getRoot(c).expandTriggerFlag=!0;i.switchNode(c,a);return!0};H=function(b,a){var c=h.getSetting(b.data.treeId),d=c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&h.isSelectedNode(c,a)?0:c.view.autoCancelSelected&&(b.ctrlKey||b.metaKey)&&c.view.selectedMulti?2:1;if(j.apply(c.callback.beforeClick,[c.treeId,a,d],!0)==!1)return!0;d===0?i.cancelPreSelectedNode(c,a):i.selectNode(c,a,d===2);c.treeObj.trigger(e.event.CLICK,
-[b,c.treeId,a,d]);return!0};I=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseDown,[c.treeId,a],!0)&&j.apply(c.callback.onMouseDown,[b,c.treeId,a]);return!0};J=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeMouseUp,[c.treeId,a],!0)&&j.apply(c.callback.onMouseUp,[b,c.treeId,a]);return!0};K=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeDblClick,[c.treeId,a],!0)&&j.apply(c.callback.onDblClick,[b,c.treeId,a]);return!0};
-L=function(b,a){var c=h.getSetting(b.data.treeId);j.apply(c.callback.beforeRightClick,[c.treeId,a],!0)&&j.apply(c.callback.onRightClick,[b,c.treeId,a]);return typeof c.callback.onRightClick!="function"};var j={apply:function(b,a,c){return typeof b=="function"?b.apply(N,a?a:[]):c},canAsync:function(b,a){var c=b.data.key.children;return b.async.enable&&a&&a.isParent&&!(a.zAsync||a[c]&&a[c].length>0)},clone:function(b){if(b===null)return null;var a=j.isArray(b)?[]:{},c;for(c in b)a[c]=b[c]instanceof
-Date?new Date(b[c].getTime()):typeof b[c]==="object"?arguments.callee(b[c]):b[c];return a},eqs:function(b,a){return b.toLowerCase()===a.toLowerCase()},isArray:function(b){return Object.prototype.toString.apply(b)==="[object Array]"},$:function(b,a,c){a&&typeof a!="string"&&(c=a,a="");return typeof b=="string"?p(b,c?c.treeObj.get(0).ownerDocument:null):p("#"+b.tId+a,c?c.treeObj:null)},getMDom:function(b,a,c){if(!a)return null;for(;a&&a.id!==b.treeId;){for(var d=0,f=c.length;a.tagName&&d<f;d++)if(j.eqs(a.tagName,
-c[d].tagName)&&a.getAttribute(c[d].attrName)!==null)return a;a=a.parentNode}return null},getNodeMainDom:function(b){return p(b).parent("li").get(0)||p(b).parentsUntil("li").parent().get(0)},isChildOrSelf:function(b,a){return p(b).closest("#"+a).length>0},uCanDo:function(){return!0}},i={addNodes:function(b,a,c,d){if(!b.data.keep.leaf||!a||a.isParent)if(j.isArray(c)||(c=[c]),b.data.simpleData.enable&&(c=h.transformTozTreeFormat(b,c)),a){var f=k(a,e.id.SWITCH,b),g=k(a,e.id.ICON,b),l=k(a,e.id.UL,b);if(!a.open)i.replaceSwitchClass(a,
-f,e.folder.CLOSE),i.replaceIcoClass(a,g,e.folder.CLOSE),a.open=!1,l.css({display:"none"});h.addNodesData(b,a,c);i.createNodes(b,a.level+1,c,a);d||i.expandCollapseParentNode(b,a,!0)}else h.addNodesData(b,h.getRoot(b),c),i.createNodes(b,0,c,null)},appendNodes:function(b,a,c,d,f,g){if(!c)return[];for(var e=[],j=b.data.key.children,k=0,m=c.length;k<m;k++){var o=c[k];if(f){var t=(d?d:h.getRoot(b))[j].length==c.length&&k==0;h.initNode(b,a,o,d,t,k==c.length-1,g);h.addNodeCache(b,o)}t=[];o[j]&&o[j].length>
-0&&(t=i.appendNodes(b,a+1,o[j],o,f,g&&o.open));g&&(i.makeDOMNodeMainBefore(e,b,o),i.makeDOMNodeLine(e,b,o),h.getBeforeA(b,o,e),i.makeDOMNodeNameBefore(e,b,o),h.getInnerBeforeA(b,o,e),i.makeDOMNodeIcon(e,b,o),h.getInnerAfterA(b,o,e),i.makeDOMNodeNameAfter(e,b,o),h.getAfterA(b,o,e),o.isParent&&o.open&&i.makeUlHtml(b,o,e,t.join("")),i.makeDOMNodeMainAfter(e,b,o),h.addCreatedNode(b,o))}return e},appendParentULDom:function(b,a){var c=[],d=k(a,b);!d.get(0)&&a.parentTId&&(i.appendParentULDom(b,a.getParentNode()),
-d=k(a,b));var f=k(a,e.id.UL,b);f.get(0)&&f.remove();f=i.appendNodes(b,a.level+1,a[b.data.key.children],a,!1,!0);i.makeUlHtml(b,a,c,f.join(""));d.append(c.join(""))},asyncNode:function(b,a,c,d){var f,g;if(a&&!a.isParent)return j.apply(d),!1;else if(a&&a.isAjaxing)return!1;else if(j.apply(b.callback.beforeAsync,[b.treeId,a],!0)==!1)return j.apply(d),!1;if(a)a.isAjaxing=!0,k(a,e.id.ICON,b).attr({style:"","class":e.className.BUTTON+" "+e.className.ICO_LOADING});var l={};for(f=0,g=b.async.autoParam.length;a&&
-f<g;f++){var q=b.async.autoParam[f].split("="),n=q;q.length>1&&(n=q[1],q=q[0]);l[n]=a[q]}if(j.isArray(b.async.otherParam))for(f=0,g=b.async.otherParam.length;f<g;f+=2)l[b.async.otherParam[f]]=b.async.otherParam[f+1];else for(var m in b.async.otherParam)l[m]=b.async.otherParam[m];var o=h.getRoot(b)._ver;p.ajax({contentType:b.async.contentType,type:b.async.type,url:j.apply(b.async.url,[b.treeId,a],b.async.url),data:l,dataType:b.async.dataType,success:function(f){if(o==h.getRoot(b)._ver){var g=[];try{g=
-!f||f.length==0?[]:typeof f=="string"?eval("("+f+")"):f}catch(l){g=f}if(a)a.isAjaxing=null,a.zAsync=!0;i.setNodeLineIcos(b,a);g&&g!==""?(g=j.apply(b.async.dataFilter,[b.treeId,a,g],g),i.addNodes(b,a,g?j.clone(g):[],!!c)):i.addNodes(b,a,[],!!c);b.treeObj.trigger(e.event.ASYNC_SUCCESS,[b.treeId,a,f]);j.apply(d)}},error:function(c,d,f){if(o==h.getRoot(b)._ver){if(a)a.isAjaxing=null;i.setNodeLineIcos(b,a);b.treeObj.trigger(e.event.ASYNC_ERROR,[b.treeId,a,c,d,f])}}});return!0},cancelPreSelectedNode:function(b,
-a){for(var c=h.getRoot(b).curSelectedList,d=c.length-1;d>=0;d--)if(!a||a===c[d])if(k(c[d],e.id.A,b).removeClass(e.node.CURSELECTED),a){h.removeSelectedNode(b,a);break}if(!a)h.getRoot(b).curSelectedList=[]},createNodeCallback:function(b){if(b.callback.onNodeCreated||b.view.addDiyDom)for(var a=h.getRoot(b);a.createdNodes.length>0;){var c=a.createdNodes.shift();j.apply(b.view.addDiyDom,[b.treeId,c]);b.callback.onNodeCreated&&b.treeObj.trigger(e.event.NODECREATED,[b.treeId,c])}},createNodes:function(b,
-a,c,d){if(c&&c.length!=0){var f=h.getRoot(b),g=b.data.key.children,g=!d||d.open||!!k(d[g][0],b).get(0);f.createdNodes=[];a=i.appendNodes(b,a,c,d,!0,g);d?(d=k(d,e.id.UL,b),d.get(0)&&d.append(a.join(""))):b.treeObj.append(a.join(""));i.createNodeCallback(b)}},destroy:function(b){b&&(h.initCache(b),h.initRoot(b),m.unbindTree(b),m.unbindEvent(b),b.treeObj.empty(),delete r[b.treeId])},expandCollapseNode:function(b,a,c,d,f){var g=h.getRoot(b),l=b.data.key.children;if(a){if(g.expandTriggerFlag){var q=f,
-f=function(){q&&q();a.open?b.treeObj.trigger(e.event.EXPAND,[b.treeId,a]):b.treeObj.trigger(e.event.COLLAPSE,[b.treeId,a])};g.expandTriggerFlag=!1}if(!a.open&&a.isParent&&(!k(a,e.id.UL,b).get(0)||a[l]&&a[l].length>0&&!k(a[l][0],b).get(0)))i.appendParentULDom(b,a),i.createNodeCallback(b);if(a.open==c)j.apply(f,[]);else{var c=k(a,e.id.UL,b),g=k(a,e.id.SWITCH,b),n=k(a,e.id.ICON,b);a.isParent?(a.open=!a.open,a.iconOpen&&a.iconClose&&n.attr("style",i.makeNodeIcoStyle(b,a)),a.open?(i.replaceSwitchClass(a,
-g,e.folder.OPEN),i.replaceIcoClass(a,n,e.folder.OPEN),d==!1||b.view.expandSpeed==""?(c.show(),j.apply(f,[])):a[l]&&a[l].length>0?c.slideDown(b.view.expandSpeed,f):(c.show(),j.apply(f,[]))):(i.replaceSwitchClass(a,g,e.folder.CLOSE),i.replaceIcoClass(a,n,e.folder.CLOSE),d==!1||b.view.expandSpeed==""||!(a[l]&&a[l].length>0)?(c.hide(),j.apply(f,[])):c.slideUp(b.view.expandSpeed,f))):j.apply(f,[])}}else j.apply(f,[])},expandCollapseParentNode:function(b,a,c,d,f){a&&(a.parentTId?(i.expandCollapseNode(b,
-a,c,d),a.parentTId&&i.expandCollapseParentNode(b,a.getParentNode(),c,d,f)):i.expandCollapseNode(b,a,c,d,f))},expandCollapseSonNode:function(b,a,c,d,f){var g=h.getRoot(b),e=b.data.key.children,g=a?a[e]:g[e],e=a?!1:d,j=h.getRoot(b).expandTriggerFlag;h.getRoot(b).expandTriggerFlag=!1;if(g)for(var k=0,m=g.length;k<m;k++)g[k]&&i.expandCollapseSonNode(b,g[k],c,e);h.getRoot(b).expandTriggerFlag=j;i.expandCollapseNode(b,a,c,d,f)},makeDOMNodeIcon:function(b,a,c){var d=h.getNodeName(a,c),d=a.view.nameIsHTML?
-d:d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");b.push("<span id='",c.tId,e.id.ICON,"' title='' treeNode",e.id.ICON," class='",i.makeNodeIcoClass(a,c),"' style='",i.makeNodeIcoStyle(a,c),"'></span><span id='",c.tId,e.id.SPAN,"'>",d,"</span>")},makeDOMNodeLine:function(b,a,c){b.push("<span id='",c.tId,e.id.SWITCH,"' title='' class='",i.makeNodeLineClass(a,c),"' treeNode",e.id.SWITCH,"></span>")},makeDOMNodeMainAfter:function(b){b.push("</li>")},makeDOMNodeMainBefore:function(b,
-a,c){b.push("<li id='",c.tId,"' class='",e.className.LEVEL,c.level,"' tabindex='0' hidefocus='true' treenode>")},makeDOMNodeNameAfter:function(b){b.push("</a>")},makeDOMNodeNameBefore:function(b,a,c){var d=h.getNodeTitle(a,c),f=i.makeNodeUrl(a,c),g=i.makeNodeFontCss(a,c),l=[],k;for(k in g)l.push(k,":",g[k],";");b.push("<a id='",c.tId,e.id.A,"' class='",e.className.LEVEL,c.level,"' treeNode",e.id.A,' onclick="',c.click||"",'" ',f!=null&&f.length>0?"href='"+f+"'":""," target='",i.makeNodeTarget(c),
-"' style='",l.join(""),"'");j.apply(a.view.showTitle,[a.treeId,c],a.view.showTitle)&&d&&b.push("title='",d.replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"'");b.push(">")},makeNodeFontCss:function(b,a){var c=j.apply(b.view.fontCss,[b.treeId,a],b.view.fontCss);return c&&typeof c!="function"?c:{}},makeNodeIcoClass:function(b,a){var c=["ico"];a.isAjaxing||(c[0]=(a.iconSkin?a.iconSkin+"_":"")+c[0],a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU));return e.className.BUTTON+
-" "+c.join("_")},makeNodeIcoStyle:function(b,a){var c=[];if(!a.isAjaxing){var d=a.isParent&&a.iconOpen&&a.iconClose?a.open?a.iconOpen:a.iconClose:a.icon;d&&c.push("background:url(",d,") 0 0 no-repeat;");(b.view.showIcon==!1||!j.apply(b.view.showIcon,[b.treeId,a],!0))&&c.push("width:0px;height:0px;")}return c.join("")},makeNodeLineClass:function(b,a){var c=[];b.view.showLine?a.level==0&&a.isFirstNode&&a.isLastNode?c.push(e.line.ROOT):a.level==0&&a.isFirstNode?c.push(e.line.ROOTS):a.isLastNode?c.push(e.line.BOTTOM):
-c.push(e.line.CENTER):c.push(e.line.NOLINE);a.isParent?c.push(a.open?e.folder.OPEN:e.folder.CLOSE):c.push(e.folder.DOCU);return i.makeNodeLineClassEx(a)+c.join("_")},makeNodeLineClassEx:function(b){return e.className.BUTTON+" "+e.className.LEVEL+b.level+" "+e.className.SWITCH+" "},makeNodeTarget:function(b){return b.target||"_blank"},makeNodeUrl:function(b,a){var c=b.data.key.url;return a[c]?a[c]:null},makeUlHtml:function(b,a,c,d){c.push("<ul id='",a.tId,e.id.UL,"' class='",e.className.LEVEL,a.level,
-" ",i.makeUlLineClass(b,a),"' style='display:",a.open?"block":"none","'>");c.push(d);c.push("</ul>")},makeUlLineClass:function(b,a){return b.view.showLine&&!a.isLastNode?e.line.LINE:""},removeChildNodes:function(b,a){if(a){var c=b.data.key.children,d=a[c];if(d){for(var f=0,g=d.length;f<g;f++)h.removeNodeCache(b,d[f]);h.removeSelectedNode(b);delete a[c];b.data.keep.parent?k(a,e.id.UL,b).empty():(a.isParent=!1,a.open=!1,c=k(a,e.id.SWITCH,b),d=k(a,e.id.ICON,b),i.replaceSwitchClass(a,c,e.folder.DOCU),
-i.replaceIcoClass(a,d,e.folder.DOCU),k(a,e.id.UL,b).remove())}}},setFirstNode:function(b,a){var c=b.data.key.children;if(a[c].length>0)a[c][0].isFirstNode=!0},setLastNode:function(b,a){var c=b.data.key.children,d=a[c].length;if(d>0)a[c][d-1].isLastNode=!0},removeNode:function(b,a){var c=h.getRoot(b),d=b.data.key.children,f=a.parentTId?a.getParentNode():c;a.isFirstNode=!1;a.isLastNode=!1;a.getPreNode=function(){return null};a.getNextNode=function(){return null};if(h.getNodeCache(b,a.tId)){k(a,b).remove();
-h.removeNodeCache(b,a);h.removeSelectedNode(b,a);for(var g=0,l=f[d].length;g<l;g++)if(f[d][g].tId==a.tId){f[d].splice(g,1);break}i.setFirstNode(b,f);i.setLastNode(b,f);var j,g=f[d].length;if(!b.data.keep.parent&&g==0)f.isParent=!1,f.open=!1,g=k(f,e.id.UL,b),l=k(f,e.id.SWITCH,b),j=k(f,e.id.ICON,b),i.replaceSwitchClass(f,l,e.folder.DOCU),i.replaceIcoClass(f,j,e.folder.DOCU),g.css("display","none");else if(b.view.showLine&&g>0){var n=f[d][g-1],g=k(n,e.id.UL,b),l=k(n,e.id.SWITCH,b);j=k(n,e.id.ICON,b);
-f==c?f[d].length==1?i.replaceSwitchClass(n,l,e.line.ROOT):(c=k(f[d][0],e.id.SWITCH,b),i.replaceSwitchClass(f[d][0],c,e.line.ROOTS),i.replaceSwitchClass(n,l,e.line.BOTTOM)):i.replaceSwitchClass(n,l,e.line.BOTTOM);g.removeClass(e.line.LINE)}}},replaceIcoClass:function(b,a,c){if(a&&!b.isAjaxing&&(b=a.attr("class"),b!=void 0)){b=b.split("_");switch(c){case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:b[b.length-1]=c}a.attr("class",b.join("_"))}},replaceSwitchClass:function(b,a,c){if(a){var d=
-a.attr("class");if(d!=void 0){d=d.split("_");switch(c){case e.line.ROOT:case e.line.ROOTS:case e.line.CENTER:case e.line.BOTTOM:case e.line.NOLINE:d[0]=i.makeNodeLineClassEx(b)+c;break;case e.folder.OPEN:case e.folder.CLOSE:case e.folder.DOCU:d[1]=c}a.attr("class",d.join("_"));c!==e.folder.DOCU?a.removeAttr("disabled"):a.attr("disabled","disabled")}}},selectNode:function(b,a,c){c||i.cancelPreSelectedNode(b);k(a,e.id.A,b).addClass(e.node.CURSELECTED);h.addSelectedNode(b,a)},setNodeFontCss:function(b,
-a){var c=k(a,e.id.A,b),d=i.makeNodeFontCss(b,a);d&&c.css(d)},setNodeLineIcos:function(b,a){if(a){var c=k(a,e.id.SWITCH,b),d=k(a,e.id.UL,b),f=k(a,e.id.ICON,b),g=i.makeUlLineClass(b,a);g.length==0?d.removeClass(e.line.LINE):d.addClass(g);c.attr("class",i.makeNodeLineClass(b,a));a.isParent?c.removeAttr("disabled"):c.attr("disabled","disabled");f.removeAttr("style");f.attr("style",i.makeNodeIcoStyle(b,a));f.attr("class",i.makeNodeIcoClass(b,a))}},setNodeName:function(b,a){var c=h.getNodeTitle(b,a),d=
-k(a,e.id.SPAN,b);d.empty();b.view.nameIsHTML?d.html(h.getNodeName(b,a)):d.text(h.getNodeName(b,a));j.apply(b.view.showTitle,[b.treeId,a],b.view.showTitle)&&k(a,e.id.A,b).attr("title",!c?"":c)},setNodeTarget:function(b,a){k(a,e.id.A,b).attr("target",i.makeNodeTarget(a))},setNodeUrl:function(b,a){var c=k(a,e.id.A,b),d=i.makeNodeUrl(b,a);d==null||d.length==0?c.removeAttr("href"):c.attr("href",d)},switchNode:function(b,a){a.open||!j.canAsync(b,a)?i.expandCollapseNode(b,a,!a.open):b.async.enable?i.asyncNode(b,
-a)||i.expandCollapseNode(b,a,!a.open):a&&i.expandCollapseNode(b,a,!a.open)}};p.fn.zTree={consts:{className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error",REMOVE:"ztree_remove"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",
-NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_z:{tools:j,view:i,event:m,data:h},getZTreeObj:function(b){return(b=h.getZTreeTools(b))?b:null},destroy:function(b){if(b&&b.length>0)i.destroy(h.getSetting(b));else for(var a in r)i.destroy(r[a])},init:function(b,a,c){var d=j.clone(M);p.extend(!0,d,a);d.treeId=b.attr("id");d.treeObj=b;d.treeObj.empty();r[d.treeId]=d;if(typeof document.body.style.maxHeight==="undefined")d.view.expandSpeed=
-"";h.initRoot(d);b=h.getRoot(d);a=d.data.key.children;c=c?j.clone(j.isArray(c)?c:[c]):[];b[a]=d.data.simpleData.enable?h.transformTozTreeFormat(d,c):c;h.initCache(d);m.unbindTree(d);m.bindTree(d);m.unbindEvent(d);m.bindEvent(d);c={setting:d,addNodes:function(a,b,c){function e(){i.addNodes(d,a,h,c==!0)}if(!b)return null;a||(a=null);if(a&&!a.isParent&&d.data.keep.leaf)return null;var h=j.clone(j.isArray(b)?b:[b]);j.canAsync(d,a)?i.asyncNode(d,a,c,e):e();return h},cancelSelectedNode:function(a){i.cancelPreSelectedNode(d,
-a)},destroy:function(){i.destroy(d)},expandAll:function(a){a=!!a;i.expandCollapseSonNode(d,null,a,!0);return a},expandNode:function(a,b,c,e,n){if(!a||!a.isParent)return null;b!==!0&&b!==!1&&(b=!a.open);if((n=!!n)&&b&&j.apply(d.callback.beforeExpand,[d.treeId,a],!0)==!1)return null;else if(n&&!b&&j.apply(d.callback.beforeCollapse,[d.treeId,a],!0)==!1)return null;b&&a.parentTId&&i.expandCollapseParentNode(d,a.getParentNode(),b,!1);if(b===a.open&&!c)return null;h.getRoot(d).expandTriggerFlag=n;if(!j.canAsync(d,
-a)&&c)i.expandCollapseSonNode(d,a,b,!0,function(){if(e!==!1)try{k(a,d).focus().blur()}catch(b){}});else if(a.open=!b,i.switchNode(this.setting,a),e!==!1)try{k(a,d).focus().blur()}catch(m){}return b},getNodes:function(){return h.getNodes(d)},getNodeByParam:function(a,b,c){return!a?null:h.getNodeByParam(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodeByTId:function(a){return h.getNodeCache(d,a)},getNodesByParam:function(a,b,c){return!a?null:h.getNodesByParam(d,c?c[d.data.key.children]:h.getNodes(d),
-a,b)},getNodesByParamFuzzy:function(a,b,c){return!a?null:h.getNodesByParamFuzzy(d,c?c[d.data.key.children]:h.getNodes(d),a,b)},getNodesByFilter:function(a,b,c,e){b=!!b;return!a||typeof a!="function"?b?null:[]:h.getNodesByFilter(d,c?c[d.data.key.children]:h.getNodes(d),a,b,e)},getNodeIndex:function(a){if(!a)return null;for(var b=d.data.key.children,c=a.parentTId?a.getParentNode():h.getRoot(d),e=0,i=c[b].length;e<i;e++)if(c[b][e]==a)return e;return-1},getSelectedNodes:function(){for(var a=[],b=h.getRoot(d).curSelectedList,
-c=0,e=b.length;c<e;c++)a.push(b[c]);return a},isSelectedNode:function(a){return h.isSelectedNode(d,a)},reAsyncChildNodes:function(a,b,c){if(this.setting.async.enable){var j=!a;j&&(a=h.getRoot(d));if(b=="refresh"){for(var b=this.setting.data.key.children,m=0,p=a[b]?a[b].length:0;m<p;m++)h.removeNodeCache(d,a[b][m]);h.removeSelectedNode(d);a[b]=[];j?this.setting.treeObj.empty():k(a,e.id.UL,d).empty()}i.asyncNode(this.setting,j?null:a,!!c)}},refresh:function(){this.setting.treeObj.empty();var a=h.getRoot(d),
-b=a[d.data.key.children];h.initRoot(d);a[d.data.key.children]=b;h.initCache(d);i.createNodes(d,0,a[d.data.key.children])},removeChildNodes:function(a){if(!a)return null;var b=a[d.data.key.children];i.removeChildNodes(d,a);return b?b:null},removeNode:function(a,b){a&&(b=!!b,b&&j.apply(d.callback.beforeRemove,[d.treeId,a],!0)==!1||(i.removeNode(d,a),b&&this.setting.treeObj.trigger(e.event.REMOVE,[d.treeId,a])))},selectNode:function(a,b){if(a&&j.uCanDo(d)){b=d.view.selectedMulti&&b;if(a.parentTId)i.expandCollapseParentNode(d,
-a.getParentNode(),!0,!1,function(){try{k(a,d).focus().blur()}catch(b){}});else try{k(a,d).focus().blur()}catch(c){}i.selectNode(d,a,b)}},transformTozTreeNodes:function(a){return h.transformTozTreeFormat(d,a)},transformToArray:function(a){return h.transformToArrayFormat(d,a)},updateNode:function(a){a&&k(a,d).get(0)&&j.uCanDo(d)&&(i.setNodeName(d,a),i.setNodeTarget(d,a),i.setNodeUrl(d,a),i.setNodeLineIcos(d,a),i.setNodeFontCss(d,a))}};b.treeTools=c;h.setZTreeTools(d,c);b[a]&&b[a].length>0?i.createNodes(d,
-0,b[a]):d.async.enable&&d.async.url&&d.async.url!==""&&i.asyncNode(d);return c}};var N=p.fn.zTree,k=j.$,e=N.consts})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.js
deleted file mode 100644
index 1374c52..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.js
+++ /dev/null
@@ -1,629 +0,0 @@
-/*
- * JQuery zTree excheck v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- //default consts of excheck
- var _consts = {
- event: {
- CHECK: "ztree_check"
- },
- id: {
- CHECK: "_check"
- },
- checkbox: {
- STYLE: "checkbox",
- DEFAULT: "chk",
- DISABLED: "disable",
- FALSE: "false",
- TRUE: "true",
- FULL: "full",
- PART: "part",
- FOCUS: "focus"
- },
- radio: {
- STYLE: "radio",
- TYPE_ALL: "all",
- TYPE_LEVEL: "level"
- }
- },
- //default setting of excheck
- _setting = {
- check: {
- enable: false,
- autoCheckTrigger: false,
- chkStyle: _consts.checkbox.STYLE,
- nocheckInherit: false,
- chkDisabledInherit: false,
- radioType: _consts.radio.TYPE_LEVEL,
- chkboxType: {
- "Y": "ps",
- "N": "ps"
- }
- },
- data: {
- key: {
- checked: "checked"
- }
- },
- callback: {
- beforeCheck:null,
- onCheck:null
- }
- },
- //default root of excheck
- _initRoot = function (setting) {
- var r = data.getRoot(setting);
- r.radioCheckedList = [];
- },
- //default cache of excheck
- _initCache = function(treeId) {},
- //default bind event of excheck
- _bindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.bind(c.CHECK, function (event, srcEvent, treeId, node) {
- event.srcEvent = srcEvent;
- tools.apply(setting.callback.onCheck, [event, treeId, node]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj,
- c = consts.event;
- o.unbind(c.CHECK);
- },
- //default event proxy of excheck
- _eventProxy = function(e) {
- var target = e.target,
- setting = data.getSetting(e.data.treeId),
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null;
-
- if (tools.eqs(e.type, "mouseover")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "mouseoverCheck";
- }
- } else if (tools.eqs(e.type, "mouseout")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "mouseoutCheck";
- }
- } else if (tools.eqs(e.type, "click")) {
- if (setting.check.enable && tools.eqs(target.tagName, "span") && target.getAttribute("treeNode"+ consts.id.CHECK) !== null) {
- tId = tools.getNodeMainDom(target).id;
- nodeEventType = "checkNode";
- }
- }
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "checkNode" :
- nodeEventCallback = _handler.onCheckNode;
- break;
- case "mouseoverCheck" :
- nodeEventCallback = _handler.onMouseoverCheck;
- break;
- case "mouseoutCheck" :
- nodeEventCallback = _handler.onMouseoutCheck;
- break;
- }
- }
- var proxyResult = {
- stop: nodeEventType === "checkNode",
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of excheck
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- var checkedKey = setting.data.key.checked;
- if (typeof n[checkedKey] == "string") n[checkedKey] = tools.eqs(n[checkedKey], "true");
- n[checkedKey] = !!n[checkedKey];
- n.checkedOld = n[checkedKey];
- if (typeof n.nocheck == "string") n.nocheck = tools.eqs(n.nocheck, "true");
- n.nocheck = !!n.nocheck || (setting.check.nocheckInherit && parentNode && !!parentNode.nocheck);
- if (typeof n.chkDisabled == "string") n.chkDisabled = tools.eqs(n.chkDisabled, "true");
- n.chkDisabled = !!n.chkDisabled || (setting.check.chkDisabledInherit && parentNode && !!parentNode.chkDisabled);
- if (typeof n.halfCheck == "string") n.halfCheck = tools.eqs(n.halfCheck, "true");
- n.halfCheck = !!n.halfCheck;
- n.check_Child_State = -1;
- n.check_Focus = false;
- n.getCheckStatus = function() {return data.getCheckStatus(setting, n);};
-
- if (setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL && n[checkedKey] ) {
- var r = data.getRoot(setting);
- r.radioCheckedList.push(n);
- }
- },
- //add dom for check
- _beforeA = function(setting, node, html) {
- var checkedKey = setting.data.key.checked;
- if (setting.check.enable) {
- data.makeChkFlag(setting, node);
- html.push("<span ID='", node.tId, consts.id.CHECK, "' class='", view.makeChkClass(setting, node), "' treeNode", consts.id.CHECK, (node.nocheck === true?" style='display:none;'":""),"></span>");
- }
- },
- //update zTreeObj, add method of check
- _zTreeTools = function(setting, zTreeTools) {
- zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) {
- var checkedKey = this.setting.data.key.checked;
- if (node.chkDisabled === true) return;
- if (checked !== true && checked !== false) {
- checked = !node[checkedKey];
- }
- callbackFlag = !!callbackFlag;
-
- if (node[checkedKey] === checked && !checkTypeFlag) {
- return;
- } else if (callbackFlag && tools.apply(this.setting.callback.beforeCheck, [this.setting.treeId, node], true) == false) {
- return;
- }
- if (tools.uCanDo(this.setting) && this.setting.check.enable && node.nocheck !== true) {
- node[checkedKey] = checked;
- var checkObj = $$(node, consts.id.CHECK, this.setting);
- if (checkTypeFlag || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);
- view.setChkClass(this.setting, checkObj, node);
- view.repairParentChkClassWithSelf(this.setting, node);
- if (callbackFlag) {
- this.setting.treeObj.trigger(consts.event.CHECK, [null, this.setting.treeId, node]);
- }
- }
- }
-
- zTreeTools.checkAllNodes = function(checked) {
- view.repairAllChk(this.setting, !!checked);
- }
-
- zTreeTools.getCheckedNodes = function(checked) {
- var childKey = this.setting.data.key.children;
- checked = (checked !== false);
- return data.getTreeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey], checked);
- }
-
- zTreeTools.getChangeCheckedNodes = function() {
- var childKey = this.setting.data.key.children;
- return data.getTreeChangeCheckedNodes(this.setting, data.getRoot(this.setting)[childKey]);
- }
-
- zTreeTools.setChkDisabled = function(node, disabled, inheritParent, inheritChildren) {
- disabled = !!disabled;
- inheritParent = !!inheritParent;
- inheritChildren = !!inheritChildren;
- view.repairSonChkDisabled(this.setting, node, disabled, inheritChildren);
- view.repairParentChkDisabled(this.setting, node.getParentNode(), disabled, inheritParent);
- }
-
- var _updateNode = zTreeTools.updateNode;
- zTreeTools.updateNode = function(node, checkTypeFlag) {
- if (_updateNode) _updateNode.apply(zTreeTools, arguments);
- if (!node || !this.setting.check.enable) return;
- var nObj = $$(node, this.setting);
- if (nObj.get(0) && tools.uCanDo(this.setting)) {
- var checkObj = $$(node, consts.id.CHECK, this.setting);
- if (checkTypeFlag == true || this.setting.check.chkStyle === consts.radio.STYLE) view.checkNodeRelation(this.setting, node);
- view.setChkClass(this.setting, checkObj, node);
- view.repairParentChkClassWithSelf(this.setting, node);
- }
- }
- },
- //method of operate data
- _data = {
- getRadioCheckedList: function(setting) {
- var checkedList = data.getRoot(setting).radioCheckedList;
- for (var i=0, j=checkedList.length; i<j; i++) {
- if(!data.getNodeCache(setting, checkedList[i].tId)) {
- checkedList.splice(i, 1);
- i--; j--;
- }
- }
- return checkedList;
- },
- getCheckStatus: function(setting, node) {
- if (!setting.check.enable || node.nocheck || node.chkDisabled) return null;
- var checkedKey = setting.data.key.checked,
- r = {
- checked: node[checkedKey],
- half: node.halfCheck ? node.halfCheck : (setting.check.chkStyle == consts.radio.STYLE ? (node.check_Child_State === 2) : (node[checkedKey] ? (node.check_Child_State > -1 && node.check_Child_State < 2) : (node.check_Child_State > 0)))
- };
- return r;
- },
- getTreeCheckedNodes: function(setting, nodes, checked, results) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- onlyOne = (checked && setting.check.chkStyle == consts.radio.STYLE && setting.check.radioType == consts.radio.TYPE_ALL);
- results = !results ? [] : results;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] == checked) {
- results.push(nodes[i]);
- if(onlyOne) {
- break;
- }
- }
- data.getTreeCheckedNodes(setting, nodes[i][childKey], checked, results);
- if(onlyOne && results.length > 0) {
- break;
- }
- }
- return results;
- },
- getTreeChangeCheckedNodes: function(setting, nodes, results) {
- if (!nodes) return [];
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked;
- results = !results ? [] : results;
- for (var i = 0, l = nodes.length; i < l; i++) {
- if (nodes[i].nocheck !== true && nodes[i].chkDisabled !== true && nodes[i][checkedKey] != nodes[i].checkedOld) {
- results.push(nodes[i]);
- }
- data.getTreeChangeCheckedNodes(setting, nodes[i][childKey], results);
- }
- return results;
- },
- makeChkFlag: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- chkFlag = -1;
- if (node[childKey]) {
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- var cNode = node[childKey][i];
- var tmp = -1;
- if (setting.check.chkStyle == consts.radio.STYLE) {
- if (cNode.nocheck === true || cNode.chkDisabled === true) {
- tmp = cNode.check_Child_State;
- } else if (cNode.halfCheck === true) {
- tmp = 2;
- } else if (cNode[checkedKey]) {
- tmp = 2;
- } else {
- tmp = cNode.check_Child_State > 0 ? 2:0;
- }
- if (tmp == 2) {
- chkFlag = 2; break;
- } else if (tmp == 0){
- chkFlag = 0;
- }
- } else if (setting.check.chkStyle == consts.checkbox.STYLE) {
- if (cNode.nocheck === true || cNode.chkDisabled === true) {
- tmp = cNode.check_Child_State;
- } else if (cNode.halfCheck === true) {
- tmp = 1;
- } else if (cNode[checkedKey] ) {
- tmp = (cNode.check_Child_State === -1 || cNode.check_Child_State === 2) ? 2 : 1;
- } else {
- tmp = (cNode.check_Child_State > 0) ? 1 : 0;
- }
- if (tmp === 1) {
- chkFlag = 1; break;
- } else if (tmp === 2 && chkFlag > -1 && i > 0 && tmp !== chkFlag) {
- chkFlag = 1; break;
- } else if (chkFlag === 2 && tmp > -1 && tmp < 2) {
- chkFlag = 1; break;
- } else if (tmp > -1) {
- chkFlag = tmp;
- }
- }
- }
- }
- node.check_Child_State = chkFlag;
- }
- },
- //method of event proxy
- _event = {
-
- },
- //method of event handler
- _handler = {
- onCheckNode: function (event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkedKey = setting.data.key.checked;
- if (tools.apply(setting.callback.beforeCheck, [setting.treeId, node], true) == false) return true;
- node[checkedKey] = !node[checkedKey];
- view.checkNodeRelation(setting, node);
- var checkObj = $$(node, consts.id.CHECK, setting);
- view.setChkClass(setting, checkObj, node);
- view.repairParentChkClassWithSelf(setting, node);
- setting.treeObj.trigger(consts.event.CHECK, [event, setting.treeId, node]);
- return true;
- },
- onMouseoverCheck: function(event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkObj = $$(node, consts.id.CHECK, setting);
- node.check_Focus = true;
- view.setChkClass(setting, checkObj, node);
- return true;
- },
- onMouseoutCheck: function(event, node) {
- if (node.chkDisabled === true) return false;
- var setting = data.getSetting(event.data.treeId),
- checkObj = $$(node, consts.id.CHECK, setting);
- node.check_Focus = false;
- view.setChkClass(setting, checkObj, node);
- return true;
- }
- },
- //method of tools for zTree
- _tools = {
-
- },
- //method of operate ztree dom
- _view = {
- checkNodeRelation: function(setting, node) {
- var pNode, i, l,
- childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- r = consts.radio;
- if (setting.check.chkStyle == r.STYLE) {
- var checkedList = data.getRadioCheckedList(setting);
- if (node[checkedKey]) {
- if (setting.check.radioType == r.TYPE_ALL) {
- for (i = checkedList.length-1; i >= 0; i--) {
- pNode = checkedList[i];
- if (pNode[checkedKey] && pNode != node) {
- pNode[checkedKey] = false;
- checkedList.splice(i, 1);
-
- view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);
- if (pNode.parentTId != node.parentTId) {
- view.repairParentChkClassWithSelf(setting, pNode);
- }
- }
- }
- checkedList.push(node);
- } else {
- var parentNode = (node.parentTId) ? node.getParentNode() : data.getRoot(setting);
- for (i = 0, l = parentNode[childKey].length; i < l; i++) {
- pNode = parentNode[childKey][i];
- if (pNode[checkedKey] && pNode != node) {
- pNode[checkedKey] = false;
- view.setChkClass(setting, $$(pNode, consts.id.CHECK, setting), pNode);
- }
- }
- }
- } else if (setting.check.radioType == r.TYPE_ALL) {
- for (i = 0, l = checkedList.length; i < l; i++) {
- if (node == checkedList[i]) {
- checkedList.splice(i, 1);
- break;
- }
- }
- }
-
- } else {
- if (node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.Y.indexOf("s") > -1)) {
- view.setSonNodeCheckBox(setting, node, true);
- }
- if (!node[checkedKey] && (!node[childKey] || node[childKey].length==0 || setting.check.chkboxType.N.indexOf("s") > -1)) {
- view.setSonNodeCheckBox(setting, node, false);
- }
- if (node[checkedKey] && setting.check.chkboxType.Y.indexOf("p") > -1) {
- view.setParentNodeCheckBox(setting, node, true);
- }
- if (!node[checkedKey] && setting.check.chkboxType.N.indexOf("p") > -1) {
- view.setParentNodeCheckBox(setting, node, false);
- }
- }
- },
- makeChkClass: function(setting, node) {
- var checkedKey = setting.data.key.checked,
- c = consts.checkbox, r = consts.radio,
- fullStyle = "";
- if (node.chkDisabled === true) {
- fullStyle = c.DISABLED;
- } else if (node.halfCheck) {
- fullStyle = c.PART;
- } else if (setting.check.chkStyle == r.STYLE) {
- fullStyle = (node.check_Child_State < 1)? c.FULL:c.PART;
- } else {
- fullStyle = node[checkedKey] ? ((node.check_Child_State === 2 || node.check_Child_State === -1) ? c.FULL:c.PART) : ((node.check_Child_State < 1)? c.FULL:c.PART);
- }
- var chkName = setting.check.chkStyle + "_" + (node[checkedKey] ? c.TRUE : c.FALSE) + "_" + fullStyle;
- chkName = (node.check_Focus && node.chkDisabled !== true) ? chkName + "_" + c.FOCUS : chkName;
- return consts.className.BUTTON + " " + c.DEFAULT + " " + chkName;
- },
- repairAllChk: function(setting, checked) {
- if (setting.check.enable && setting.check.chkStyle === consts.checkbox.STYLE) {
- var checkedKey = setting.data.key.checked,
- childKey = setting.data.key.children,
- root = data.getRoot(setting);
- for (var i = 0, l = root[childKey].length; i<l ; i++) {
- var node = root[childKey][i];
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = checked;
- }
- view.setSonNodeCheckBox(setting, node, checked);
- }
- }
- },
- repairChkClass: function(setting, node) {
- if (!node) return;
- data.makeChkFlag(setting, node);
- if (node.nocheck !== true) {
- var checkObj = $$(node, consts.id.CHECK, setting);
- view.setChkClass(setting, checkObj, node);
- }
- },
- repairParentChkClass: function(setting, node) {
- if (!node || !node.parentTId) return;
- var pNode = node.getParentNode();
- view.repairChkClass(setting, pNode);
- view.repairParentChkClass(setting, pNode);
- },
- repairParentChkClassWithSelf: function(setting, node) {
- if (!node) return;
- var childKey = setting.data.key.children;
- if (node[childKey] && node[childKey].length > 0) {
- view.repairParentChkClass(setting, node[childKey][0]);
- } else {
- view.repairParentChkClass(setting, node);
- }
- },
- repairSonChkDisabled: function(setting, node, chkDisabled, inherit) {
- if (!node) return;
- var childKey = setting.data.key.children;
- if (node.chkDisabled != chkDisabled) {
- node.chkDisabled = chkDisabled;
- }
- view.repairChkClass(setting, node);
- if (node[childKey] && inherit) {
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- var sNode = node[childKey][i];
- view.repairSonChkDisabled(setting, sNode, chkDisabled, inherit);
- }
- }
- },
- repairParentChkDisabled: function(setting, node, chkDisabled, inherit) {
- if (!node) return;
- if (node.chkDisabled != chkDisabled && inherit) {
- node.chkDisabled = chkDisabled;
- }
- view.repairChkClass(setting, node);
- view.repairParentChkDisabled(setting, node.getParentNode(), chkDisabled, inherit);
- },
- setChkClass: function(setting, obj, node) {
- if (!obj) return;
- if (node.nocheck === true) {
- obj.hide();
- } else {
- obj.show();
- }
- obj.removeClass();
- obj.addClass(view.makeChkClass(setting, node));
- },
- setParentNodeCheckBox: function(setting, node, value, srcNode) {
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- checkObj = $$(node, consts.id.CHECK, setting);
- if (!srcNode) srcNode = node;
- data.makeChkFlag(setting, node);
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = value;
- view.setChkClass(setting, checkObj, node);
- if (setting.check.autoCheckTrigger && node != srcNode) {
- setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);
- }
- }
- if (node.parentTId) {
- var pSign = true;
- if (!value) {
- var pNodes = node.getParentNode()[childKey];
- for (var i = 0, l = pNodes.length; i < l; i++) {
- if ((pNodes[i].nocheck !== true && pNodes[i].chkDisabled !== true && pNodes[i][checkedKey])
- || ((pNodes[i].nocheck === true || pNodes[i].chkDisabled === true) && pNodes[i].check_Child_State > 0)) {
- pSign = false;
- break;
- }
- }
- }
- if (pSign) {
- view.setParentNodeCheckBox(setting, node.getParentNode(), value, srcNode);
- }
- }
- },
- setSonNodeCheckBox: function(setting, node, value, srcNode) {
- if (!node) return;
- var childKey = setting.data.key.children,
- checkedKey = setting.data.key.checked,
- checkObj = $$(node, consts.id.CHECK, setting);
- if (!srcNode) srcNode = node;
-
- var hasDisable = false;
- if (node[childKey]) {
- for (var i = 0, l = node[childKey].length; i < l && node.chkDisabled !== true; i++) {
- var sNode = node[childKey][i];
- view.setSonNodeCheckBox(setting, sNode, value, srcNode);
- if (sNode.chkDisabled === true) hasDisable = true;
- }
- }
-
- if (node != data.getRoot(setting) && node.chkDisabled !== true) {
- if (hasDisable && node.nocheck !== true) {
- data.makeChkFlag(setting, node);
- }
- if (node.nocheck !== true && node.chkDisabled !== true) {
- node[checkedKey] = value;
- if (!hasDisable) node.check_Child_State = (node[childKey] && node[childKey].length > 0) ? (value ? 2 : 0) : -1;
- } else {
- node.check_Child_State = -1;
- }
- view.setChkClass(setting, checkObj, node);
- if (setting.check.autoCheckTrigger && node != srcNode && node.nocheck !== true && node.chkDisabled !== true) {
- setting.treeObj.trigger(consts.event.CHECK, [null, setting.treeId, node]);
- }
- }
-
- }
- },
-
- _z = {
- tools: _tools,
- view: _view,
- event: _event,
- data: _data
- };
- $.extend(true, $.fn.zTree.consts, _consts);
- $.extend(true, $.fn.zTree._z, _z);
-
- var zt = $.fn.zTree,
- tools = zt._z.tools,
- consts = zt.consts,
- view = zt._z.view,
- data = zt._z.data,
- event = zt._z.event,
- $$ = tools.$;
-
- data.exSetting(_setting);
- data.addInitBind(_bindEvent);
- data.addInitUnBind(_unbindEvent);
- data.addInitCache(_initCache);
- data.addInitNode(_initNode);
- data.addInitProxy(_eventProxy, true);
- data.addInitRoot(_initRoot);
- data.addBeforeA(_beforeA);
- data.addZTreeTools(_zTreeTools);
-
- var _createNodes = view.createNodes;
- view.createNodes = function(setting, level, nodes, parentNode) {
- if (_createNodes) _createNodes.apply(view, arguments);
- if (!nodes) return;
- view.repairParentChkClassWithSelf(setting, parentNode);
- }
- var _removeNode = view.removeNode;
- view.removeNode = function(setting, node) {
- var parentNode = node.getParentNode();
- if (_removeNode) _removeNode.apply(view, arguments);
- if (!node || !parentNode) return;
- view.repairChkClass(setting, parentNode);
- view.repairParentChkClass(setting, parentNode);
- }
-
- var _appendNodes = view.appendNodes;
- view.appendNodes = function(setting, level, nodes, parentNode, initFlag, openFlag) {
- var html = "";
- if (_appendNodes) {
- html = _appendNodes.apply(view, arguments);
- }
- if (parentNode) {
- data.makeChkFlag(setting, parentNode);
- }
- return html;
- }
-})(jQuery); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.min.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.min.js
deleted file mode 100644
index 9c56f46..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.min.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * JQuery zTree excheck v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(m){var p,q,r,o={event:{CHECK:"ztree_check"},id:{CHECK:"_check"},checkbox:{STYLE:"checkbox",DEFAULT:"chk",DISABLED:"disable",FALSE:"false",TRUE:"true",FULL:"full",PART:"part",FOCUS:"focus"},radio:{STYLE:"radio",TYPE_ALL:"all",TYPE_LEVEL:"level"}},v={check:{enable:!1,autoCheckTrigger:!1,chkStyle:o.checkbox.STYLE,nocheckInherit:!1,chkDisabledInherit:!1,radioType:o.radio.TYPE_LEVEL,chkboxType:{Y:"ps",N:"ps"}},data:{key:{checked:"checked"}},callback:{beforeCheck:null,onCheck:null}};p=function(c,
-a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=b.data.key.checked;if(k.apply(b.callback.beforeCheck,[b.treeId,a],!0)==!1)return!0;a[d]=!a[d];e.checkNodeRelation(b,a);d=n(a,j.id.CHECK,b);e.setChkClass(b,d,a);e.repairParentChkClassWithSelf(b,a);b.treeObj.trigger(j.event.CHECK,[c,b.treeId,a]);return!0};q=function(c,a){if(a.chkDisabled===!0)return!1;var b=f.getSetting(c.data.treeId),d=n(a,j.id.CHECK,b);a.check_Focus=!0;e.setChkClass(b,d,a);return!0};r=function(c,a){if(a.chkDisabled===
-!0)return!1;var b=f.getSetting(c.data.treeId),d=n(a,j.id.CHECK,b);a.check_Focus=!1;e.setChkClass(b,d,a);return!0};m.extend(!0,m.fn.zTree.consts,o);m.extend(!0,m.fn.zTree._z,{tools:{},view:{checkNodeRelation:function(c,a){var b,d,h,i=c.data.key.children,l=c.data.key.checked;b=j.radio;if(c.check.chkStyle==b.STYLE){var g=f.getRadioCheckedList(c);if(a[l])if(c.check.radioType==b.TYPE_ALL){for(d=g.length-1;d>=0;d--)b=g[d],b[l]&&b!=a&&(b[l]=!1,g.splice(d,1),e.setChkClass(c,n(b,j.id.CHECK,c),b),b.parentTId!=
-a.parentTId&&e.repairParentChkClassWithSelf(c,b));g.push(a)}else{g=a.parentTId?a.getParentNode():f.getRoot(c);for(d=0,h=g[i].length;d<h;d++)b=g[i][d],b[l]&&b!=a&&(b[l]=!1,e.setChkClass(c,n(b,j.id.CHECK,c),b))}else if(c.check.radioType==b.TYPE_ALL)for(d=0,h=g.length;d<h;d++)if(a==g[d]){g.splice(d,1);break}}else a[l]&&(!a[i]||a[i].length==0||c.check.chkboxType.Y.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,a,!0),!a[l]&&(!a[i]||a[i].length==0||c.check.chkboxType.N.indexOf("s")>-1)&&e.setSonNodeCheckBox(c,
-a,!1),a[l]&&c.check.chkboxType.Y.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!0),!a[l]&&c.check.chkboxType.N.indexOf("p")>-1&&e.setParentNodeCheckBox(c,a,!1)},makeChkClass:function(c,a){var b=c.data.key.checked,d=j.checkbox,h=j.radio,i="",i=a.chkDisabled===!0?d.DISABLED:a.halfCheck?d.PART:c.check.chkStyle==h.STYLE?a.check_Child_State<1?d.FULL:d.PART:a[b]?a.check_Child_State===2||a.check_Child_State===-1?d.FULL:d.PART:a.check_Child_State<1?d.FULL:d.PART,b=c.check.chkStyle+"_"+(a[b]?d.TRUE:d.FALSE)+
-"_"+i,b=a.check_Focus&&a.chkDisabled!==!0?b+"_"+d.FOCUS:b;return j.className.BUTTON+" "+d.DEFAULT+" "+b},repairAllChk:function(c,a){if(c.check.enable&&c.check.chkStyle===j.checkbox.STYLE)for(var b=c.data.key.checked,d=c.data.key.children,h=f.getRoot(c),i=0,l=h[d].length;i<l;i++){var g=h[d][i];g.nocheck!==!0&&g.chkDisabled!==!0&&(g[b]=a);e.setSonNodeCheckBox(c,g,a)}},repairChkClass:function(c,a){if(a&&(f.makeChkFlag(c,a),a.nocheck!==!0)){var b=n(a,j.id.CHECK,c);e.setChkClass(c,b,a)}},repairParentChkClass:function(c,
-a){if(a&&a.parentTId){var b=a.getParentNode();e.repairChkClass(c,b);e.repairParentChkClass(c,b)}},repairParentChkClassWithSelf:function(c,a){if(a){var b=c.data.key.children;a[b]&&a[b].length>0?e.repairParentChkClass(c,a[b][0]):e.repairParentChkClass(c,a)}},repairSonChkDisabled:function(c,a,b,d){if(a){var h=c.data.key.children;if(a.chkDisabled!=b)a.chkDisabled=b;e.repairChkClass(c,a);if(a[h]&&d)for(var i=0,l=a[h].length;i<l;i++)e.repairSonChkDisabled(c,a[h][i],b,d)}},repairParentChkDisabled:function(c,
-a,b,d){if(a){if(a.chkDisabled!=b&&d)a.chkDisabled=b;e.repairChkClass(c,a);e.repairParentChkDisabled(c,a.getParentNode(),b,d)}},setChkClass:function(c,a,b){a&&(b.nocheck===!0?a.hide():a.show(),a.removeClass(),a.addClass(e.makeChkClass(c,b)))},setParentNodeCheckBox:function(c,a,b,d){var h=c.data.key.children,i=c.data.key.checked,l=n(a,j.id.CHECK,c);d||(d=a);f.makeChkFlag(c,a);a.nocheck!==!0&&a.chkDisabled!==!0&&(a[i]=b,e.setChkClass(c,l,a),c.check.autoCheckTrigger&&a!=d&&c.treeObj.trigger(j.event.CHECK,
-[null,c.treeId,a]));if(a.parentTId){l=!0;if(!b)for(var h=a.getParentNode()[h],g=0,k=h.length;g<k;g++)if(h[g].nocheck!==!0&&h[g].chkDisabled!==!0&&h[g][i]||(h[g].nocheck===!0||h[g].chkDisabled===!0)&&h[g].check_Child_State>0){l=!1;break}l&&e.setParentNodeCheckBox(c,a.getParentNode(),b,d)}},setSonNodeCheckBox:function(c,a,b,d){if(a){var h=c.data.key.children,i=c.data.key.checked,l=n(a,j.id.CHECK,c);d||(d=a);var g=!1;if(a[h])for(var k=0,m=a[h].length;k<m&&a.chkDisabled!==!0;k++){var o=a[h][k];e.setSonNodeCheckBox(c,
-o,b,d);o.chkDisabled===!0&&(g=!0)}if(a!=f.getRoot(c)&&a.chkDisabled!==!0){g&&a.nocheck!==!0&&f.makeChkFlag(c,a);if(a.nocheck!==!0&&a.chkDisabled!==!0){if(a[i]=b,!g)a.check_Child_State=a[h]&&a[h].length>0?b?2:0:-1}else a.check_Child_State=-1;e.setChkClass(c,l,a);c.check.autoCheckTrigger&&a!=d&&a.nocheck!==!0&&a.chkDisabled!==!0&&c.treeObj.trigger(j.event.CHECK,[null,c.treeId,a])}}}},event:{},data:{getRadioCheckedList:function(c){for(var a=f.getRoot(c).radioCheckedList,b=0,d=a.length;b<d;b++)f.getNodeCache(c,
-a[b].tId)||(a.splice(b,1),b--,d--);return a},getCheckStatus:function(c,a){if(!c.check.enable||a.nocheck||a.chkDisabled)return null;var b=c.data.key.checked;return{checked:a[b],half:a.halfCheck?a.halfCheck:c.check.chkStyle==j.radio.STYLE?a.check_Child_State===2:a[b]?a.check_Child_State>-1&&a.check_Child_State<2:a.check_Child_State>0}},getTreeCheckedNodes:function(c,a,b,d){if(!a)return[];for(var h=c.data.key.children,i=c.data.key.checked,e=b&&c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL,
-d=!d?[]:d,g=0,k=a.length;g<k;g++){if(a[g].nocheck!==!0&&a[g].chkDisabled!==!0&&a[g][i]==b&&(d.push(a[g]),e))break;f.getTreeCheckedNodes(c,a[g][h],b,d);if(e&&d.length>0)break}return d},getTreeChangeCheckedNodes:function(c,a,b){if(!a)return[];for(var d=c.data.key.children,h=c.data.key.checked,b=!b?[]:b,i=0,e=a.length;i<e;i++)a[i].nocheck!==!0&&a[i].chkDisabled!==!0&&a[i][h]!=a[i].checkedOld&&b.push(a[i]),f.getTreeChangeCheckedNodes(c,a[i][d],b);return b},makeChkFlag:function(c,a){if(a){var b=c.data.key.children,
-d=c.data.key.checked,h=-1;if(a[b])for(var i=0,e=a[b].length;i<e;i++){var g=a[b][i],f=-1;if(c.check.chkStyle==j.radio.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?2:g[d]?2:g.check_Child_State>0?2:0,f==2){h=2;break}else f==0&&(h=0);else if(c.check.chkStyle==j.checkbox.STYLE)if(f=g.nocheck===!0||g.chkDisabled===!0?g.check_Child_State:g.halfCheck===!0?1:g[d]?g.check_Child_State===-1||g.check_Child_State===2?2:1:g.check_Child_State>0?1:0,f===1){h=1;break}else if(f===
-2&&h>-1&&i>0&&f!==h){h=1;break}else if(h===2&&f>-1&&f<2){h=1;break}else f>-1&&(h=f)}a.check_Child_State=h}}}});var m=m.fn.zTree,k=m._z.tools,j=m.consts,e=m._z.view,f=m._z.data,n=k.$;f.exSetting(v);f.addInitBind(function(c){c.treeObj.bind(j.event.CHECK,function(a,b,d,h){a.srcEvent=b;k.apply(c.callback.onCheck,[a,d,h])})});f.addInitUnBind(function(c){c.treeObj.unbind(j.event.CHECK)});f.addInitCache(function(){});f.addInitNode(function(c,a,b,d){if(b){a=c.data.key.checked;typeof b[a]=="string"&&(b[a]=
-k.eqs(b[a],"true"));b[a]=!!b[a];b.checkedOld=b[a];if(typeof b.nocheck=="string")b.nocheck=k.eqs(b.nocheck,"true");b.nocheck=!!b.nocheck||c.check.nocheckInherit&&d&&!!d.nocheck;if(typeof b.chkDisabled=="string")b.chkDisabled=k.eqs(b.chkDisabled,"true");b.chkDisabled=!!b.chkDisabled||c.check.chkDisabledInherit&&d&&!!d.chkDisabled;if(typeof b.halfCheck=="string")b.halfCheck=k.eqs(b.halfCheck,"true");b.halfCheck=!!b.halfCheck;b.check_Child_State=-1;b.check_Focus=!1;b.getCheckStatus=function(){return f.getCheckStatus(c,
-b)};c.check.chkStyle==j.radio.STYLE&&c.check.radioType==j.radio.TYPE_ALL&&b[a]&&f.getRoot(c).radioCheckedList.push(b)}});f.addInitProxy(function(c){var a=c.target,b=f.getSetting(c.data.treeId),d="",h=null,e="",l=null;if(k.eqs(c.type,"mouseover")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="mouseoverCheck"}else if(k.eqs(c.type,"mouseout")){if(b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=
-k.getNodeMainDom(a).id,e="mouseoutCheck"}else if(k.eqs(c.type,"click")&&b.check.enable&&k.eqs(a.tagName,"span")&&a.getAttribute("treeNode"+j.id.CHECK)!==null)d=k.getNodeMainDom(a).id,e="checkNode";if(d.length>0)switch(h=f.getNodeCache(b,d),e){case "checkNode":l=p;break;case "mouseoverCheck":l=q;break;case "mouseoutCheck":l=r}return{stop:e==="checkNode",node:h,nodeEventType:e,nodeEventCallback:l,treeEventType:"",treeEventCallback:null}},!0);f.addInitRoot(function(c){f.getRoot(c).radioCheckedList=[]});
-f.addBeforeA(function(c,a,b){c.check.enable&&(f.makeChkFlag(c,a),b.push("<span ID='",a.tId,j.id.CHECK,"' class='",e.makeChkClass(c,a),"' treeNode",j.id.CHECK,a.nocheck===!0?" style='display:none;'":"","></span>"))});f.addZTreeTools(function(c,a){a.checkNode=function(a,b,c,f){var g=this.setting.data.key.checked;if(a.chkDisabled!==!0&&(b!==!0&&b!==!1&&(b=!a[g]),f=!!f,(a[g]!==b||c)&&!(f&&k.apply(this.setting.callback.beforeCheck,[this.setting.treeId,a],!0)==!1)&&k.uCanDo(this.setting)&&this.setting.check.enable&&
-a.nocheck!==!0))a[g]=b,b=n(a,j.id.CHECK,this.setting),(c||this.setting.check.chkStyle===j.radio.STYLE)&&e.checkNodeRelation(this.setting,a),e.setChkClass(this.setting,b,a),e.repairParentChkClassWithSelf(this.setting,a),f&&this.setting.treeObj.trigger(j.event.CHECK,[null,this.setting.treeId,a])};a.checkAllNodes=function(a){e.repairAllChk(this.setting,!!a)};a.getCheckedNodes=function(a){var b=this.setting.data.key.children;return f.getTreeCheckedNodes(this.setting,f.getRoot(this.setting)[b],a!==!1)};
-a.getChangeCheckedNodes=function(){var a=this.setting.data.key.children;return f.getTreeChangeCheckedNodes(this.setting,f.getRoot(this.setting)[a])};a.setChkDisabled=function(a,b,c,f){b=!!b;c=!!c;e.repairSonChkDisabled(this.setting,a,b,!!f);e.repairParentChkDisabled(this.setting,a.getParentNode(),b,c)};var b=a.updateNode;a.updateNode=function(c,f){b&&b.apply(a,arguments);if(c&&this.setting.check.enable&&n(c,this.setting).get(0)&&k.uCanDo(this.setting)){var i=n(c,j.id.CHECK,this.setting);(f==!0||this.setting.check.chkStyle===
-j.radio.STYLE)&&e.checkNodeRelation(this.setting,c);e.setChkClass(this.setting,i,c);e.repairParentChkClassWithSelf(this.setting,c)}}});var s=e.createNodes;e.createNodes=function(c,a,b,d){s&&s.apply(e,arguments);b&&e.repairParentChkClassWithSelf(c,d)};var t=e.removeNode;e.removeNode=function(c,a){var b=a.getParentNode();t&&t.apply(e,arguments);a&&b&&(e.repairChkClass(c,b),e.repairParentChkClass(c,b))};var u=e.appendNodes;e.appendNodes=function(c,a,b,d,h,i){var j="";u&&(j=u.apply(e,arguments));d&&f.makeChkFlag(c,
-d);return j}})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.js
deleted file mode 100644
index 70a2093..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.js
+++ /dev/null
@@ -1,1191 +0,0 @@
-/*
- * JQuery zTree exedit v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- //default consts of exedit
- var _consts = {
- event: {
- DRAG: "ztree_drag",
- DROP: "ztree_drop",
- RENAME: "ztree_rename",
- DRAGMOVE:"ztree_dragmove"
- },
- id: {
- EDIT: "_edit",
- INPUT: "_input",
- REMOVE: "_remove"
- },
- move: {
- TYPE_INNER: "inner",
- TYPE_PREV: "prev",
- TYPE_NEXT: "next"
- },
- node: {
- CURSELECTED_EDIT: "curSelectedNode_Edit",
- TMPTARGET_TREE: "tmpTargetzTree",
- TMPTARGET_NODE: "tmpTargetNode"
- }
- },
- //default setting of exedit
- _setting = {
- edit: {
- enable: false,
- editNameSelectAll: false,
- showRemoveBtn: true,
- showRenameBtn: true,
- removeTitle: "remove",
- renameTitle: "rename",
- drag: {
- autoExpandTrigger: false,
- isCopy: true,
- isMove: true,
- prev: true,
- next: true,
- inner: true,
- minMoveSize: 5,
- borderMax: 10,
- borderMin: -5,
- maxShowNodeNum: 5,
- autoOpenTime: 500
- }
- },
- view: {
- addHoverDom: null,
- removeHoverDom: null
- },
- callback: {
- beforeDrag:null,
- beforeDragOpen:null,
- beforeDrop:null,
- beforeEditName:null,
- beforeRename:null,
- onDrag:null,
- onDragMove:null,
- onDrop:null,
- onRename:null
- }
- },
- //default root of exedit
- _initRoot = function (setting) {
- var r = data.getRoot(setting), rs = data.getRoots();
- r.curEditNode = null;
- r.curEditInput = null;
- r.curHoverNode = null;
- r.dragFlag = 0;
- r.dragNodeShowBefore = [];
- r.dragMaskList = new Array();
- rs.showHoverDom = true;
- },
- //default cache of exedit
- _initCache = function(treeId) {},
- //default bind event of exedit
- _bindEvent = function(setting) {
- var o = setting.treeObj;
- var c = consts.event;
- o.bind(c.RENAME, function (event, treeId, treeNode, isCancel) {
- tools.apply(setting.callback.onRename, [event, treeId, treeNode, isCancel]);
- });
-
- o.bind(c.DRAG, function (event, srcEvent, treeId, treeNodes) {
- tools.apply(setting.callback.onDrag, [srcEvent, treeId, treeNodes]);
- });
-
- o.bind(c.DRAGMOVE,function(event, srcEvent, treeId, treeNodes){
- tools.apply(setting.callback.onDragMove,[srcEvent, treeId, treeNodes]);
- });
-
- o.bind(c.DROP, function (event, srcEvent, treeId, treeNodes, targetNode, moveType, isCopy) {
- tools.apply(setting.callback.onDrop, [srcEvent, treeId, treeNodes, targetNode, moveType, isCopy]);
- });
- },
- _unbindEvent = function(setting) {
- var o = setting.treeObj;
- var c = consts.event;
- o.unbind(c.RENAME);
- o.unbind(c.DRAG);
- o.unbind(c.DRAGMOVE);
- o.unbind(c.DROP);
- },
- //default event proxy of exedit
- _eventProxy = function(e) {
- var target = e.target,
- setting = data.getSetting(e.data.treeId),
- relatedTarget = e.relatedTarget,
- tId = "", node = null,
- nodeEventType = "", treeEventType = "",
- nodeEventCallback = null, treeEventCallback = null,
- tmp = null;
-
- if (tools.eqs(e.type, "mouseover")) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "hoverOverNode";
- }
- } else if (tools.eqs(e.type, "mouseout")) {
- tmp = tools.getMDom(setting, relatedTarget, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (!tmp) {
- tId = "remove";
- nodeEventType = "hoverOutNode";
- }
- } else if (tools.eqs(e.type, "mousedown")) {
- tmp = tools.getMDom(setting, target, [{tagName:"a", attrName:"treeNode"+consts.id.A}]);
- if (tmp) {
- tId = tools.getNodeMainDom(tmp).id;
- nodeEventType = "mousedownNode";
- }
- }
- if (tId.length>0) {
- node = data.getNodeCache(setting, tId);
- switch (nodeEventType) {
- case "mousedownNode" :
- nodeEventCallback = _handler.onMousedownNode;
- break;
- case "hoverOverNode" :
- nodeEventCallback = _handler.onHoverOverNode;
- break;
- case "hoverOutNode" :
- nodeEventCallback = _handler.onHoverOutNode;
- break;
- }
- }
- var proxyResult = {
- stop: false,
- node: node,
- nodeEventType: nodeEventType,
- nodeEventCallback: nodeEventCallback,
- treeEventType: treeEventType,
- treeEventCallback: treeEventCallback
- };
- return proxyResult
- },
- //default init node of exedit
- _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (!n) return;
- n.isHover = false;
- n.editNameFlag = false;
- },
- //update zTreeObj, add method of edit
- _zTreeTools = function(setting, zTreeTools) {
- zTreeTools.cancelEditName = function(newName) {
- var root = data.getRoot(this.setting);
- if (!root.curEditNode) return;
- view.cancelCurEditNode(this.setting, newName?newName:null, true);
- }
- zTreeTools.copyNode = function(targetNode, node, moveType, isSilent) {
- if (!node) return null;
- if (targetNode && !targetNode.isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) return null;
- var _this = this,
- newNode = tools.clone(node);
- if (!targetNode) {
- targetNode = null;
- moveType = consts.move.TYPE_INNER;
- }
- if (moveType == consts.move.TYPE_INNER) {
- function copyCallback() {
- view.addNodes(_this.setting, targetNode, [newNode], isSilent);
- }
-
- if (tools.canAsync(this.setting, targetNode)) {
- view.asyncNode(this.setting, targetNode, isSilent, copyCallback);
- } else {
- copyCallback();
- }
- } else {
- view.addNodes(this.setting, targetNode.parentNode, [newNode], isSilent);
- view.moveNode(this.setting, targetNode, newNode, moveType, false, isSilent);
- }
- return newNode;
- }
- zTreeTools.editName = function(node) {
- if (!node || !node.tId || node !== data.getNodeCache(this.setting, node.tId)) return;
- if (node.parentTId) view.expandCollapseParentNode(this.setting, node.getParentNode(), true);
- view.editNode(this.setting, node)
- }
- zTreeTools.moveNode = function(targetNode, node, moveType, isSilent) {
- if (!node) return node;
- if (targetNode && !targetNode.isParent && this.setting.data.keep.leaf && moveType === consts.move.TYPE_INNER) {
- return null;
- } else if (targetNode && ((node.parentTId == targetNode.tId && moveType == consts.move.TYPE_INNER) || $$(node, this.setting).find("#" + targetNode.tId).length > 0)) {
- return null;
- } else if (!targetNode) {
- targetNode = null;
- }
- var _this = this;
- function moveCallback() {
- view.moveNode(_this.setting, targetNode, node, moveType, false, isSilent);
- }
- if (tools.canAsync(this.setting, targetNode) && moveType === consts.move.TYPE_INNER) {
- view.asyncNode(this.setting, targetNode, isSilent, moveCallback);
- } else {
- moveCallback();
- }
- return node;
- }
- zTreeTools.setEditable = function(editable) {
- this.setting.edit.enable = editable;
- return this.refresh();
- }
- },
- //method of operate data
- _data = {
- setSonNodeLevel: function(setting, parentNode, node) {
- if (!node) return;
- var childKey = setting.data.key.children;
- node.level = (parentNode)? parentNode.level + 1 : 0;
- if (!node[childKey]) return;
- for (var i = 0, l = node[childKey].length; i < l; i++) {
- if (node[childKey][i]) data.setSonNodeLevel(setting, node, node[childKey][i]);
- }
- }
- },
- //method of event proxy
- _event = {
-
- },
- //method of event handler
- _handler = {
- onHoverOverNode: function(event, node) {
- var setting = data.getSetting(event.data.treeId),
- root = data.getRoot(setting);
- if (root.curHoverNode != node) {
- _handler.onHoverOutNode(event);
- }
- root.curHoverNode = node;
- view.addHoverDom(setting, node);
- },
- onHoverOutNode: function(event, node) {
- var setting = data.getSetting(event.data.treeId),
- root = data.getRoot(setting);
- if (root.curHoverNode && !data.isSelectedNode(setting, root.curHoverNode)) {
- view.removeTreeDom(setting, root.curHoverNode);
- root.curHoverNode = null;
- }
- },
- onMousedownNode: function(eventMouseDown, _node) {
- var i,l,
- setting = data.getSetting(eventMouseDown.data.treeId),
- root = data.getRoot(setting), roots = data.getRoots();
- //right click can't drag & drop
- if (eventMouseDown.button == 2 || !setting.edit.enable || (!setting.edit.drag.isCopy && !setting.edit.drag.isMove)) return true;
-
- //input of edit node name can't drag & drop
- var target = eventMouseDown.target,
- _nodes = data.getRoot(setting).curSelectedList,
- nodes = [];
- if (!data.isSelectedNode(setting, _node)) {
- nodes = [_node];
- } else {
- for (i=0, l=_nodes.length; i<l; i++) {
- if (_nodes[i].editNameFlag && tools.eqs(target.tagName, "input") && target.getAttribute("treeNode"+consts.id.INPUT) !== null) {
- return true;
- }
- nodes.push(_nodes[i]);
- if (nodes[0].parentTId !== _nodes[i].parentTId) {
- nodes = [_node];
- break;
- }
- }
- }
-
- view.editNodeBlur = true;
- view.cancelCurEditNode(setting);
-
- var doc = $(setting.treeObj.get(0).ownerDocument),
- body = $(setting.treeObj.get(0).ownerDocument.body), curNode, tmpArrow, tmpTarget,
- isOtherTree = false,
- targetSetting = setting,
- sourceSetting = setting,
- preNode, nextNode,
- preTmpTargetNodeId = null,
- preTmpMoveType = null,
- tmpTargetNodeId = null,
- moveType = consts.move.TYPE_INNER,
- mouseDownX = eventMouseDown.clientX,
- mouseDownY = eventMouseDown.clientY,
- startTime = (new Date()).getTime();
-
- if (tools.uCanDo(setting)) {
- doc.bind("mousemove", _docMouseMove);
- }
- function _docMouseMove(event) {
- //avoid start drag after click node
- if (root.dragFlag == 0 && Math.abs(mouseDownX - event.clientX) < setting.edit.drag.minMoveSize
- && Math.abs(mouseDownY - event.clientY) < setting.edit.drag.minMoveSize) {
- return true;
- }
- var i, l, tmpNode, tmpDom, tmpNodes,
- childKey = setting.data.key.children;
- body.css("cursor", "pointer");
-
- if (root.dragFlag == 0) {
- if (tools.apply(setting.callback.beforeDrag, [setting.treeId, nodes], true) == false) {
- _docMouseUp(event);
- return true;
- }
-
- for (i=0, l=nodes.length; i<l; i++) {
- if (i==0) {
- root.dragNodeShowBefore = [];
- }
- tmpNode = nodes[i];
- if (tmpNode.isParent && tmpNode.open) {
- view.expandCollapseNode(setting, tmpNode, !tmpNode.open);
- root.dragNodeShowBefore[tmpNode.tId] = true;
- } else {
- root.dragNodeShowBefore[tmpNode.tId] = false;
- }
- }
-
- root.dragFlag = 1;
- roots.showHoverDom = false;
- tools.showIfameMask(setting, true);
-
- //sort
- var isOrder = true, lastIndex = -1;
- if (nodes.length>1) {
- var pNodes = nodes[0].parentTId ? nodes[0].getParentNode()[childKey] : data.getNodes(setting);
- tmpNodes = [];
- for (i=0, l=pNodes.length; i<l; i++) {
- if (root.dragNodeShowBefore[pNodes[i].tId] !== undefined) {
- if (isOrder && lastIndex > -1 && (lastIndex+1) !== i) {
- isOrder = false;
- }
- tmpNodes.push(pNodes[i]);
- lastIndex = i;
- }
- if (nodes.length === tmpNodes.length) {
- nodes = tmpNodes;
- break;
- }
- }
- }
- if (isOrder) {
- preNode = nodes[0].getPreNode();
- nextNode = nodes[nodes.length-1].getNextNode();
- }
-
- //set node in selected
- curNode = $$("<ul class='zTreeDragUL'></ul>", setting);
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- tmpNode.editNameFlag = false;
- view.selectNode(setting, tmpNode, i>0);
- view.removeTreeDom(setting, tmpNode);
-
- if (i > setting.edit.drag.maxShowNodeNum-1) {
- continue;
- }
-
- tmpDom = $$("<li id='"+ tmpNode.tId +"_tmp'></li>", setting);
- tmpDom.append($$(tmpNode, consts.id.A, setting).clone());
- tmpDom.css("padding", "0");
- tmpDom.children("#" + tmpNode.tId + consts.id.A).removeClass(consts.node.CURSELECTED);
- curNode.append(tmpDom);
- if (i == setting.edit.drag.maxShowNodeNum-1) {
- tmpDom = $$("<li id='"+ tmpNode.tId +"_moretmp'><a> ... </a></li>", setting);
- curNode.append(tmpDom);
- }
- }
- curNode.attr("id", nodes[0].tId + consts.id.UL + "_tmp");
- curNode.addClass(setting.treeObj.attr("class"));
- curNode.appendTo(body);
-
- tmpArrow = $$("<span class='tmpzTreeMove_arrow'></span>", setting);
- tmpArrow.attr("id", "zTreeMove_arrow_tmp");
- tmpArrow.appendTo(body);
-
- setting.treeObj.trigger(consts.event.DRAG, [event, setting.treeId, nodes]);
- }
-
- if (root.dragFlag == 1) {
- if (tmpTarget && tmpArrow.attr("id") == event.target.id && tmpTargetNodeId && (event.clientX + doc.scrollLeft()+2) > ($("#" + tmpTargetNodeId + consts.id.A, tmpTarget).offset().left)) {
- var xT = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget);
- event.target = (xT.length > 0) ? xT.get(0) : event.target;
- } else if (tmpTarget) {
- tmpTarget.removeClass(consts.node.TMPTARGET_TREE);
- if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV)
- .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER);
- }
- tmpTarget = null;
- tmpTargetNodeId = null;
-
- //judge drag & drop in multi ztree
- isOtherTree = false;
- targetSetting = setting;
- var settings = data.getSettings();
- for (var s in settings) {
- if (settings[s].treeId && settings[s].edit.enable && settings[s].treeId != setting.treeId
- && (event.target.id == settings[s].treeId || $(event.target).parents("#" + settings[s].treeId).length>0)) {
- isOtherTree = true;
- targetSetting = settings[s];
- }
- }
-
- var docScrollTop = doc.scrollTop(),
- docScrollLeft = doc.scrollLeft(),
- treeOffset = targetSetting.treeObj.offset(),
- scrollHeight = targetSetting.treeObj.get(0).scrollHeight,
- scrollWidth = targetSetting.treeObj.get(0).scrollWidth,
- dTop = (event.clientY + docScrollTop - treeOffset.top),
- dBottom = (targetSetting.treeObj.height() + treeOffset.top - event.clientY - docScrollTop),
- dLeft = (event.clientX + docScrollLeft - treeOffset.left),
- dRight = (targetSetting.treeObj.width() + treeOffset.left - event.clientX - docScrollLeft),
- isTop = (dTop < setting.edit.drag.borderMax && dTop > setting.edit.drag.borderMin),
- isBottom = (dBottom < setting.edit.drag.borderMax && dBottom > setting.edit.drag.borderMin),
- isLeft = (dLeft < setting.edit.drag.borderMax && dLeft > setting.edit.drag.borderMin),
- isRight = (dRight < setting.edit.drag.borderMax && dRight > setting.edit.drag.borderMin),
- isTreeInner = dTop > setting.edit.drag.borderMin && dBottom > setting.edit.drag.borderMin && dLeft > setting.edit.drag.borderMin && dRight > setting.edit.drag.borderMin,
- isTreeTop = (isTop && targetSetting.treeObj.scrollTop() <= 0),
- isTreeBottom = (isBottom && (targetSetting.treeObj.scrollTop() + targetSetting.treeObj.height()+10) >= scrollHeight),
- isTreeLeft = (isLeft && targetSetting.treeObj.scrollLeft() <= 0),
- isTreeRight = (isRight && (targetSetting.treeObj.scrollLeft() + targetSetting.treeObj.width()+10) >= scrollWidth);
-
- if (event.target && tools.isChildOrSelf(event.target, targetSetting.treeId)) {
- //get node <li> dom
- var targetObj = event.target;
- while (targetObj && targetObj.tagName && !tools.eqs(targetObj.tagName, "li") && targetObj.id != targetSetting.treeId) {
- targetObj = targetObj.parentNode;
- }
-
- var canMove = true;
- //don't move to self or children of self
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- if (targetObj.id === tmpNode.tId) {
- canMove = false;
- break;
- } else if ($$(tmpNode, setting).find("#" + targetObj.id).length > 0) {
- canMove = false;
- break;
- }
- }
- if (canMove && event.target && tools.isChildOrSelf(event.target, targetObj.id + consts.id.A)) {
- tmpTarget = $(targetObj);
- tmpTargetNodeId = targetObj.id;
- }
- }
-
- //the mouse must be in zTree
- tmpNode = nodes[0];
- if (isTreeInner && tools.isChildOrSelf(event.target, targetSetting.treeId)) {
- //judge mouse move in root of ztree
- if (!tmpTarget && (event.target.id == targetSetting.treeId || isTreeTop || isTreeBottom || isTreeLeft || isTreeRight) && (isOtherTree || (!isOtherTree && tmpNode.parentTId))) {
- tmpTarget = targetSetting.treeObj;
- }
- //auto scroll top
- if (isTop) {
- targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()-10);
- } else if (isBottom) {
- targetSetting.treeObj.scrollTop(targetSetting.treeObj.scrollTop()+10);
- }
- if (isLeft) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()-10);
- } else if (isRight) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+10);
- }
- //auto scroll left
- if (tmpTarget && tmpTarget != targetSetting.treeObj && tmpTarget.offset().left < targetSetting.treeObj.offset().left) {
- targetSetting.treeObj.scrollLeft(targetSetting.treeObj.scrollLeft()+ tmpTarget.offset().left - targetSetting.treeObj.offset().left);
- }
- }
-
- curNode.css({
- "top": (event.clientY + docScrollTop + 3) + "px",
- "left": (event.clientX + docScrollLeft + 3) + "px"
- });
-
- var dX = 0;
- var dY = 0;
- if (tmpTarget && tmpTarget.attr("id")!=targetSetting.treeId) {
- var tmpTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId),
- isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy),
- isPrev = !!(preNode && tmpTargetNodeId === preNode.tId),
- isNext = !!(nextNode && tmpTargetNodeId === nextNode.tId),
- isInner = (tmpNode.parentTId && tmpNode.parentTId == tmpTargetNodeId),
- canPrev = (isCopy || !isNext) && tools.apply(targetSetting.edit.drag.prev, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.prev),
- canNext = (isCopy || !isPrev) && tools.apply(targetSetting.edit.drag.next, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.next),
- canInner = (isCopy || !isInner) && !(targetSetting.data.keep.leaf && !tmpTargetNode.isParent) && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, tmpTargetNode], !!targetSetting.edit.drag.inner);
- if (!canPrev && !canNext && !canInner) {
- tmpTarget = null;
- tmpTargetNodeId = "";
- moveType = consts.move.TYPE_INNER;
- tmpArrow.css({
- "display":"none"
- });
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null
- }
- } else {
- var tmpTargetA = $("#" + tmpTargetNodeId + consts.id.A, tmpTarget),
- tmpNextA = tmpTargetNode.isLastNode ? null : $("#" + tmpTargetNode.getNextNode().tId + consts.id.A, tmpTarget.next()),
- tmpTop = tmpTargetA.offset().top,
- tmpLeft = tmpTargetA.offset().left,
- prevPercent = canPrev ? (canInner ? 0.25 : (canNext ? 0.5 : 1) ) : -1,
- nextPercent = canNext ? (canInner ? 0.75 : (canPrev ? 0.5 : 0) ) : -1,
- dY_percent = (event.clientY + docScrollTop - tmpTop)/tmpTargetA.height();
- if ((prevPercent==1 ||dY_percent<=prevPercent && dY_percent>=-.2) && canPrev) {
- dX = 1 - tmpArrow.width();
- dY = tmpTop - tmpArrow.height()/2;
- moveType = consts.move.TYPE_PREV;
- } else if ((nextPercent==0 || dY_percent>=nextPercent && dY_percent<=1.2) && canNext) {
- dX = 1 - tmpArrow.width();
- dY = (tmpNextA == null || (tmpTargetNode.isParent && tmpTargetNode.open)) ? (tmpTop + tmpTargetA.height() - tmpArrow.height()/2) : (tmpNextA.offset().top - tmpArrow.height()/2);
- moveType = consts.move.TYPE_NEXT;
- }else {
- dX = 5 - tmpArrow.width();
- dY = tmpTop;
- moveType = consts.move.TYPE_INNER;
- }
- tmpArrow.css({
- "display":"block",
- "top": dY + "px",
- "left": (tmpLeft + dX) + "px"
- });
- tmpTargetA.addClass(consts.node.TMPTARGET_NODE + "_" + moveType);
-
- if (preTmpTargetNodeId != tmpTargetNodeId || preTmpMoveType != moveType) {
- startTime = (new Date()).getTime();
- }
- if (tmpTargetNode && tmpTargetNode.isParent && moveType == consts.move.TYPE_INNER) {
- var startTimer = true;
- if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId !== tmpTargetNode.tId) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }else if (window.zTreeMoveTimer && window.zTreeMoveTargetNodeTId === tmpTargetNode.tId) {
- startTimer = false;
- }
- if (startTimer) {
- window.zTreeMoveTimer = setTimeout(function() {
- if (moveType != consts.move.TYPE_INNER) return;
- if (tmpTargetNode && tmpTargetNode.isParent && !tmpTargetNode.open && (new Date()).getTime() - startTime > targetSetting.edit.drag.autoOpenTime
- && tools.apply(targetSetting.callback.beforeDragOpen, [targetSetting.treeId, tmpTargetNode], true)) {
- view.switchNode(targetSetting, tmpTargetNode);
- if (targetSetting.edit.drag.autoExpandTrigger) {
- targetSetting.treeObj.trigger(consts.event.EXPAND, [targetSetting.treeId, tmpTargetNode]);
- }
- }
- }, targetSetting.edit.drag.autoOpenTime+50);
- window.zTreeMoveTargetNodeTId = tmpTargetNode.tId;
- }
- }
- }
- } else {
- moveType = consts.move.TYPE_INNER;
- if (tmpTarget && tools.apply(targetSetting.edit.drag.inner, [targetSetting.treeId, nodes, null], !!targetSetting.edit.drag.inner)) {
- tmpTarget.addClass(consts.node.TMPTARGET_TREE);
- } else {
- tmpTarget = null;
- }
- tmpArrow.css({
- "display":"none"
- });
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }
- }
- preTmpTargetNodeId = tmpTargetNodeId;
- preTmpMoveType = moveType;
-
- setting.treeObj.trigger(consts.event.DRAGMOVE, [event, setting.treeId, nodes]);
- }
- return false;
- }
-
- doc.bind("mouseup", _docMouseUp);
- function _docMouseUp(event) {
- if (window.zTreeMoveTimer) {
- clearTimeout(window.zTreeMoveTimer);
- window.zTreeMoveTargetNodeTId = null;
- }
- preTmpTargetNodeId = null;
- preTmpMoveType = null;
- doc.unbind("mousemove", _docMouseMove);
- doc.unbind("mouseup", _docMouseUp);
- doc.unbind("selectstart", _docSelect);
- body.css("cursor", "auto");
- if (tmpTarget) {
- tmpTarget.removeClass(consts.node.TMPTARGET_TREE);
- if (tmpTargetNodeId) $("#" + tmpTargetNodeId + consts.id.A, tmpTarget).removeClass(consts.node.TMPTARGET_NODE + "_" + consts.move.TYPE_PREV)
- .removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_NEXT).removeClass(consts.node.TMPTARGET_NODE + "_" + _consts.move.TYPE_INNER);
- }
- tools.showIfameMask(setting, false);
-
- roots.showHoverDom = true;
- if (root.dragFlag == 0) return;
- root.dragFlag = 0;
-
- var i, l, tmpNode;
- for (i=0, l=nodes.length; i<l; i++) {
- tmpNode = nodes[i];
- if (tmpNode.isParent && root.dragNodeShowBefore[tmpNode.tId] && !tmpNode.open) {
- view.expandCollapseNode(setting, tmpNode, !tmpNode.open);
- delete root.dragNodeShowBefore[tmpNode.tId];
- }
- }
-
- if (curNode) curNode.remove();
- if (tmpArrow) tmpArrow.remove();
-
- var isCopy = ((event.ctrlKey || event.metaKey) && setting.edit.drag.isMove && setting.edit.drag.isCopy) || (!setting.edit.drag.isMove && setting.edit.drag.isCopy);
- if (!isCopy && tmpTarget && tmpTargetNodeId && nodes[0].parentTId && tmpTargetNodeId==nodes[0].parentTId && moveType == consts.move.TYPE_INNER) {
- tmpTarget = null;
- }
- if (tmpTarget) {
- var dragTargetNode = tmpTargetNodeId == null ? null: data.getNodeCache(targetSetting, tmpTargetNodeId);
- if (tools.apply(setting.callback.beforeDrop, [targetSetting.treeId, nodes, dragTargetNode, moveType, isCopy], true) == false) {
- view.selectNodes(sourceSetting, nodes);
- return;
- }
- var newNodes = isCopy ? tools.clone(nodes) : nodes;
-
- function dropCallback() {
- if (isOtherTree) {
- if (!isCopy) {
- for(var i=0, l=nodes.length; i<l; i++) {
- view.removeNode(setting, nodes[i]);
- }
- }
- if (moveType == consts.move.TYPE_INNER) {
- view.addNodes(targetSetting, dragTargetNode, newNodes);
- } else {
- view.addNodes(targetSetting, dragTargetNode.getParentNode(), newNodes);
- if (moveType == consts.move.TYPE_PREV) {
- for (i=0, l=newNodes.length; i<l; i++) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false);
- }
- } else {
- for (i=-1, l=newNodes.length-1; i<l; l--) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false);
- }
- }
- }
- } else {
- if (isCopy && moveType == consts.move.TYPE_INNER) {
- view.addNodes(targetSetting, dragTargetNode, newNodes);
- } else {
- if (isCopy) {
- view.addNodes(targetSetting, dragTargetNode.getParentNode(), newNodes);
- }
- if (moveType != consts.move.TYPE_NEXT) {
- for (i=0, l=newNodes.length; i<l; i++) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[i], moveType, false);
- }
- } else {
- for (i=-1, l=newNodes.length-1; i<l; l--) {
- view.moveNode(targetSetting, dragTargetNode, newNodes[l], moveType, false);
- }
- }
- }
- }
- view.selectNodes(targetSetting, newNodes);
- $$(newNodes[0], setting).focus().blur();
-
- setting.treeObj.trigger(consts.event.DROP, [event, targetSetting.treeId, newNodes, dragTargetNode, moveType, isCopy]);
- }
-
- if (moveType == consts.move.TYPE_INNER && tools.canAsync(targetSetting, dragTargetNode)) {
- view.asyncNode(targetSetting, dragTargetNode, false, dropCallback);
- } else {
- dropCallback();
- }
-
- } else {
- view.selectNodes(sourceSetting, nodes);
- setting.treeObj.trigger(consts.event.DROP, [event, setting.treeId, nodes, null, null, null]);
- }
- }
-
- doc.bind("selectstart", _docSelect);
- function _docSelect() {
- return false;
- }
-
- //Avoid FireFox's Bug
- //If zTree Div CSS set 'overflow', so drag node outside of zTree, and event.target is error.
- if(eventMouseDown.preventDefault) {
- eventMouseDown.preventDefault();
- }
- return true;
- }
- },
- //method of tools for zTree
- _tools = {
- getAbs: function (obj) {
- var oRect = obj.getBoundingClientRect(),
- scrollTop = document.body.scrollTop+document.documentElement.scrollTop,
- scrollLeft = document.body.scrollLeft+document.documentElement.scrollLeft;
- return [oRect.left+scrollLeft,oRect.top+scrollTop];
- },
- inputFocus: function(inputObj) {
- if (inputObj.get(0)) {
- inputObj.focus();
- tools.setCursorPosition(inputObj.get(0), inputObj.val().length);
- }
- },
- inputSelect: function(inputObj) {
- if (inputObj.get(0)) {
- inputObj.focus();
- inputObj.select();
- }
- },
- setCursorPosition: function(obj, pos){
- if(obj.setSelectionRange) {
- obj.focus();
- obj.setSelectionRange(pos,pos);
- } else if (obj.createTextRange) {
- var range = obj.createTextRange();
- range.collapse(true);
- range.moveEnd('character', pos);
- range.moveStart('character', pos);
- range.select();
- }
- },
- showIfameMask: function(setting, showSign) {
- var root = data.getRoot(setting);
- //clear full mask
- while (root.dragMaskList.length > 0) {
- root.dragMaskList[0].remove();
- root.dragMaskList.shift();
- }
- if (showSign) {
- //show mask
- var iframeList = $$("iframe", setting);
- for (var i = 0, l = iframeList.length; i < l; i++) {
- var obj = iframeList.get(i),
- r = tools.getAbs(obj),
- dragMask = $$("<div id='zTreeMask_" + i + "' class='zTreeMask' style='top:" + r[1] + "px; left:" + r[0] + "px; width:" + obj.offsetWidth + "px; height:" + obj.offsetHeight + "px;'></div>", setting);
- dragMask.appendTo($$("body", setting));
- root.dragMaskList.push(dragMask);
- }
- }
- }
- },
- //method of operate ztree dom
- _view = {
- addEditBtn: function(setting, node) {
- if (node.editNameFlag || $$(node, consts.id.EDIT, setting).length > 0) {
- return;
- }
- if (!tools.apply(setting.edit.showRenameBtn, [setting.treeId, node], setting.edit.showRenameBtn)) {
- return;
- }
- var aObj = $$(node, consts.id.A, setting),
- editStr = "<span class='" + consts.className.BUTTON + " edit' id='" + node.tId + consts.id.EDIT + "' title='"+tools.apply(setting.edit.renameTitle, [setting.treeId, node], setting.edit.renameTitle)+"' treeNode"+consts.id.EDIT+" style='display:none;'></span>";
- aObj.append(editStr);
-
- $$(node, consts.id.EDIT, setting).bind('click',
- function() {
- if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeEditName, [setting.treeId, node], true) == false) return false;
- view.editNode(setting, node);
- return false;
- }
- ).show();
- },
- addRemoveBtn: function(setting, node) {
- if (node.editNameFlag || $$(node, consts.id.REMOVE, setting).length > 0) {
- return;
- }
- if (!tools.apply(setting.edit.showRemoveBtn, [setting.treeId, node], setting.edit.showRemoveBtn)) {
- return;
- }
- var aObj = $$(node, consts.id.A, setting),
- removeStr = "<span class='" + consts.className.BUTTON + " remove' id='" + node.tId + consts.id.REMOVE + "' title='"+tools.apply(setting.edit.removeTitle, [setting.treeId, node], setting.edit.removeTitle)+"' treeNode"+consts.id.REMOVE+" style='display:none;'></span>";
- aObj.append(removeStr);
-
- $$(node, consts.id.REMOVE, setting).bind('click',
- function() {
- if (!tools.uCanDo(setting) || tools.apply(setting.callback.beforeRemove, [setting.treeId, node], true) == false) return false;
- view.removeNode(setting, node);
- setting.treeObj.trigger(consts.event.REMOVE, [setting.treeId, node]);
- return false;
- }
- ).bind('mousedown',
- function(eventMouseDown) {
- return true;
- }
- ).show();
- },
- addHoverDom: function(setting, node) {
- if (data.getRoots().showHoverDom) {
- node.isHover = true;
- if (setting.edit.enable) {
- view.addEditBtn(setting, node);
- view.addRemoveBtn(setting, node);
- }
- tools.apply(setting.view.addHoverDom, [setting.treeId, node]);
- }
- },
- cancelCurEditNode: function (setting, forceName, isCancel) {
- var root = data.getRoot(setting),
- nameKey = setting.data.key.name,
- node = root.curEditNode;
-
- if (node) {
- var inputObj = root.curEditInput,
- newName = forceName ? forceName:(isCancel ? node[nameKey]: inputObj.val());
- if (tools.apply(setting.callback.beforeRename, [setting.treeId, node, newName, isCancel], true) === false) {
- return false;
- } else {
- node[nameKey] = newName;
- setting.treeObj.trigger(consts.event.RENAME, [setting.treeId, node, isCancel]);
- }
- var aObj = $$(node, consts.id.A, setting);
- aObj.removeClass(consts.node.CURSELECTED_EDIT);
- inputObj.unbind();
- view.setNodeName(setting, node);
- node.editNameFlag = false;
- root.curEditNode = null;
- root.curEditInput = null;
- view.selectNode(setting, node, false);
- }
- root.noSelection = true;
- return true;
- },
- editNode: function(setting, node) {
- var root = data.getRoot(setting);
- view.editNodeBlur = false;
- if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) {
- setTimeout(function() {tools.inputFocus(root.curEditInput);}, 0);
- return;
- }
- var nameKey = setting.data.key.name;
- node.editNameFlag = true;
- view.removeTreeDom(setting, node);
- view.cancelCurEditNode(setting);
- view.selectNode(setting, node, false);
- $$(node, consts.id.SPAN, setting).html("<input type=text class='rename' id='" + node.tId + consts.id.INPUT + "' treeNode" + consts.id.INPUT + " >");
- var inputObj = $$(node, consts.id.INPUT, setting);
- inputObj.attr("value", node[nameKey]);
- if (setting.edit.editNameSelectAll) {
- tools.inputSelect(inputObj);
- } else {
- tools.inputFocus(inputObj);
- }
-
- inputObj.bind('blur', function(event) {
- if (!view.editNodeBlur) {
- view.cancelCurEditNode(setting);
- }
- }).bind('keydown', function(event) {
- if (event.keyCode=="13") {
- view.editNodeBlur = true;
- view.cancelCurEditNode(setting);
- } else if (event.keyCode=="27") {
- view.cancelCurEditNode(setting, null, true);
- }
- }).bind('click', function(event) {
- return false;
- }).bind('dblclick', function(event) {
- return false;
- });
-
- $$(node, consts.id.A, setting).addClass(consts.node.CURSELECTED_EDIT);
- root.curEditInput = inputObj;
- root.noSelection = false;
- root.curEditNode = node;
- },
- moveNode: function(setting, targetNode, node, moveType, animateFlag, isSilent) {
- var root = data.getRoot(setting),
- childKey = setting.data.key.children;
- if (targetNode == node) return;
- if (setting.data.keep.leaf && targetNode && !targetNode.isParent && moveType == consts.move.TYPE_INNER) return;
- var oldParentNode = (node.parentTId ? node.getParentNode(): root),
- targetNodeIsRoot = (targetNode === null || targetNode == root);
- if (targetNodeIsRoot && targetNode === null) targetNode = root;
- if (targetNodeIsRoot) moveType = consts.move.TYPE_INNER;
- var targetParentNode = (targetNode.parentTId ? targetNode.getParentNode() : root);
-
- if (moveType != consts.move.TYPE_PREV && moveType != consts.move.TYPE_NEXT) {
- moveType = consts.move.TYPE_INNER;
- }
-
- if (moveType == consts.move.TYPE_INNER) {
- if (targetNodeIsRoot) {
- //parentTId of root node is null
- node.parentTId = null;
- } else {
- if (!targetNode.isParent) {
- targetNode.isParent = true;
- targetNode.open = !!targetNode.open;
- view.setNodeLineIcos(setting, targetNode);
- }
- node.parentTId = targetNode.tId;
- }
- }
-
- //move node Dom
- var targetObj, target_ulObj;
- if (targetNodeIsRoot) {
- targetObj = setting.treeObj;
- target_ulObj = targetObj;
- } else {
- if (!isSilent && moveType == consts.move.TYPE_INNER) {
- view.expandCollapseNode(setting, targetNode, true, false);
- } else if (!isSilent) {
- view.expandCollapseNode(setting, targetNode.getParentNode(), true, false);
- }
- targetObj = $$(targetNode, setting);
- target_ulObj = $$(targetNode, consts.id.UL, setting);
- if (!!targetObj.get(0) && !target_ulObj.get(0)) {
- var ulstr = [];
- view.makeUlHtml(setting, targetNode, ulstr, '');
- targetObj.append(ulstr.join(''));
- }
- target_ulObj = $$(targetNode, consts.id.UL, setting);
- }
- var nodeDom = $$(node, setting);
- if (!nodeDom.get(0)) {
- nodeDom = view.appendNodes(setting, node.level, [node], null, false, true).join('');
- } else if (!targetObj.get(0)) {
- nodeDom.remove();
- }
- if (target_ulObj.get(0) && moveType == consts.move.TYPE_INNER) {
- target_ulObj.append(nodeDom);
- } else if (targetObj.get(0) && moveType == consts.move.TYPE_PREV) {
- targetObj.before(nodeDom);
- } else if (targetObj.get(0) && moveType == consts.move.TYPE_NEXT) {
- targetObj.after(nodeDom);
- }
-
- //repair the data after move
- var i,l,
- tmpSrcIndex = -1,
- tmpTargetIndex = 0,
- oldNeighbor = null,
- newNeighbor = null,
- oldLevel = node.level;
- if (node.isFirstNode) {
- tmpSrcIndex = 0;
- if (oldParentNode[childKey].length > 1 ) {
- oldNeighbor = oldParentNode[childKey][1];
- oldNeighbor.isFirstNode = true;
- }
- } else if (node.isLastNode) {
- tmpSrcIndex = oldParentNode[childKey].length -1;
- oldNeighbor = oldParentNode[childKey][tmpSrcIndex - 1];
- oldNeighbor.isLastNode = true;
- } else {
- for (i = 0, l = oldParentNode[childKey].length; i < l; i++) {
- if (oldParentNode[childKey][i].tId == node.tId) {
- tmpSrcIndex = i;
- break;
- }
- }
- }
- if (tmpSrcIndex >= 0) {
- oldParentNode[childKey].splice(tmpSrcIndex, 1);
- }
- if (moveType != consts.move.TYPE_INNER) {
- for (i = 0, l = targetParentNode[childKey].length; i < l; i++) {
- if (targetParentNode[childKey][i].tId == targetNode.tId) tmpTargetIndex = i;
- }
- }
- if (moveType == consts.move.TYPE_INNER) {
- if (!targetNode[childKey]) targetNode[childKey] = new Array();
- if (targetNode[childKey].length > 0) {
- newNeighbor = targetNode[childKey][targetNode[childKey].length - 1];
- newNeighbor.isLastNode = false;
- }
- targetNode[childKey].splice(targetNode[childKey].length, 0, node);
- node.isLastNode = true;
- node.isFirstNode = (targetNode[childKey].length == 1);
- } else if (targetNode.isFirstNode && moveType == consts.move.TYPE_PREV) {
- targetParentNode[childKey].splice(tmpTargetIndex, 0, node);
- newNeighbor = targetNode;
- newNeighbor.isFirstNode = false;
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = true;
- node.isLastNode = false;
-
- } else if (targetNode.isLastNode && moveType == consts.move.TYPE_NEXT) {
- targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node);
- newNeighbor = targetNode;
- newNeighbor.isLastNode = false;
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = false;
- node.isLastNode = true;
-
- } else {
- if (moveType == consts.move.TYPE_PREV) {
- targetParentNode[childKey].splice(tmpTargetIndex, 0, node);
- } else {
- targetParentNode[childKey].splice(tmpTargetIndex + 1, 0, node);
- }
- node.parentTId = targetNode.parentTId;
- node.isFirstNode = false;
- node.isLastNode = false;
- }
- data.fixPIdKeyValue(setting, node);
- data.setSonNodeLevel(setting, node.getParentNode(), node);
-
- //repair node what been moved
- view.setNodeLineIcos(setting, node);
- view.repairNodeLevelClass(setting, node, oldLevel)
-
- //repair node's old parentNode dom
- if (!setting.data.keep.parent && oldParentNode[childKey].length < 1) {
- //old parentNode has no child nodes
- oldParentNode.isParent = false;
- oldParentNode.open = false;
- var tmp_ulObj = $$(oldParentNode, consts.id.UL, setting),
- tmp_switchObj = $$(oldParentNode, consts.id.SWITCH, setting),
- tmp_icoObj = $$(oldParentNode, consts.id.ICON, setting);
- view.replaceSwitchClass(oldParentNode, tmp_switchObj, consts.folder.DOCU);
- view.replaceIcoClass(oldParentNode, tmp_icoObj, consts.folder.DOCU);
- tmp_ulObj.css("display", "none");
-
- } else if (oldNeighbor) {
- //old neigbor node
- view.setNodeLineIcos(setting, oldNeighbor);
- }
-
- //new neigbor node
- if (newNeighbor) {
- view.setNodeLineIcos(setting, newNeighbor);
- }
-
- //repair checkbox / radio
- if (!!setting.check && setting.check.enable && view.repairChkClass) {
- view.repairChkClass(setting, oldParentNode);
- view.repairParentChkClassWithSelf(setting, oldParentNode);
- if (oldParentNode != node.parent)
- view.repairParentChkClassWithSelf(setting, node);
- }
-
- //expand parents after move
- if (!isSilent) {
- view.expandCollapseParentNode(setting, node.getParentNode(), true, animateFlag);
- }
- },
- removeEditBtn: function(setting, node) {
- $$(node, consts.id.EDIT, setting).unbind().remove();
- },
- removeRemoveBtn: function(setting, node) {
- $$(node, consts.id.REMOVE, setting).unbind().remove();
- },
- removeTreeDom: function(setting, node) {
- node.isHover = false;
- view.removeEditBtn(setting, node);
- view.removeRemoveBtn(setting, node);
- tools.apply(setting.view.removeHoverDom, [setting.treeId, node]);
- },
- repairNodeLevelClass: function(setting, node, oldLevel) {
- if (oldLevel === node.level) return;
- var liObj = $$(node, setting),
- aObj = $$(node, consts.id.A, setting),
- ulObj = $$(node, consts.id.UL, setting),
- oldClass = consts.className.LEVEL + oldLevel,
- newClass = consts.className.LEVEL + node.level;
- liObj.removeClass(oldClass);
- liObj.addClass(newClass);
- aObj.removeClass(oldClass);
- aObj.addClass(newClass);
- ulObj.removeClass(oldClass);
- ulObj.addClass(newClass);
- },
- selectNodes : function(setting, nodes) {
- for (var i=0, l=nodes.length; i<l; i++) {
- view.selectNode(setting, nodes[i], i>0);
- }
- }
- },
-
- _z = {
- tools: _tools,
- view: _view,
- event: _event,
- data: _data
- };
- $.extend(true, $.fn.zTree.consts, _consts);
- $.extend(true, $.fn.zTree._z, _z);
-
- var zt = $.fn.zTree,
- tools = zt._z.tools,
- consts = zt.consts,
- view = zt._z.view,
- data = zt._z.data,
- event = zt._z.event,
- $$ = tools.$;
-
- data.exSetting(_setting);
- data.addInitBind(_bindEvent);
- data.addInitUnBind(_unbindEvent);
- data.addInitCache(_initCache);
- data.addInitNode(_initNode);
- data.addInitProxy(_eventProxy);
- data.addInitRoot(_initRoot);
- data.addZTreeTools(_zTreeTools);
-
- var _cancelPreSelectedNode = view.cancelPreSelectedNode;
- view.cancelPreSelectedNode = function (setting, node) {
- var list = data.getRoot(setting).curSelectedList;
- for (var i=0, j=list.length; i<j; i++) {
- if (!node || node === list[i]) {
- view.removeTreeDom(setting, list[i]);
- if (node) break;
- }
- }
- if (_cancelPreSelectedNode) _cancelPreSelectedNode.apply(view, arguments);
- }
-
- var _createNodes = view.createNodes;
- view.createNodes = function(setting, level, nodes, parentNode) {
- if (_createNodes) {
- _createNodes.apply(view, arguments);
- }
- if (!nodes) return;
- if (view.repairParentChkClassWithSelf) {
- view.repairParentChkClassWithSelf(setting, parentNode);
- }
- }
-
- var _makeNodeUrl = view.makeNodeUrl;
- view.makeNodeUrl = function(setting, node) {
- return setting.edit.enable ? null : (_makeNodeUrl.apply(view, arguments));
- }
-
- var _removeNode = view.removeNode;
- view.removeNode = function(setting, node) {
- var root = data.getRoot(setting);
- if (root.curEditNode === node) root.curEditNode = null;
- if (_removeNode) {
- _removeNode.apply(view, arguments);
- }
- }
-
- var _selectNode = view.selectNode;
- view.selectNode = function(setting, node, addFlag) {
- var root = data.getRoot(setting);
- if (data.isSelectedNode(setting, node) && root.curEditNode == node && node.editNameFlag) {
- return false;
- }
- if (_selectNode) _selectNode.apply(view, arguments);
- view.addHoverDom(setting, node);
- return true;
- }
-
- var _uCanDo = tools.uCanDo;
- tools.uCanDo = function(setting, e) {
- var root = data.getRoot(setting);
- if (e && (tools.eqs(e.type, "mouseover") || tools.eqs(e.type, "mouseout") || tools.eqs(e.type, "mousedown") || tools.eqs(e.type, "mouseup"))) {
- return true;
- }
- if (root.curEditNode) {
- view.editNodeBlur = false;
- root.curEditInput.focus();
- }
- return (!root.curEditNode) && (_uCanDo ? _uCanDo.apply(view, arguments) : true);
- }
-})(jQuery); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.min.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.min.js
deleted file mode 100644
index 2e74832..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.min.js
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * JQuery zTree exedit v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(w){var I={event:{DRAG:"ztree_drag",DROP:"ztree_drop",RENAME:"ztree_rename",DRAGMOVE:"ztree_dragmove"},id:{EDIT:"_edit",INPUT:"_input",REMOVE:"_remove"},move:{TYPE_INNER:"inner",TYPE_PREV:"prev",TYPE_NEXT:"next"},node:{CURSELECTED_EDIT:"curSelectedNode_Edit",TMPTARGET_TREE:"tmpTargetzTree",TMPTARGET_NODE:"tmpTargetNode"}},x={onHoverOverNode:function(b,a){var c=m.getSetting(b.data.treeId),d=m.getRoot(c);if(d.curHoverNode!=a)x.onHoverOutNode(b);d.curHoverNode=a;f.addHoverDom(c,a)},onHoverOutNode:function(b){var b=
-m.getSetting(b.data.treeId),a=m.getRoot(b);if(a.curHoverNode&&!m.isSelectedNode(b,a.curHoverNode))f.removeTreeDom(b,a.curHoverNode),a.curHoverNode=null},onMousedownNode:function(b,a){function c(b){if(C.dragFlag==0&&Math.abs(N-b.clientX)<e.edit.drag.minMoveSize&&Math.abs(O-b.clientY)<e.edit.drag.minMoveSize)return!0;var a,c,n,k,i;i=e.data.key.children;M.css("cursor","pointer");if(C.dragFlag==0){if(g.apply(e.callback.beforeDrag,[e.treeId,l],!0)==!1)return r(b),!0;for(a=0,c=l.length;a<c;a++){if(a==0)C.dragNodeShowBefore=
-[];n=l[a];n.isParent&&n.open?(f.expandCollapseNode(e,n,!n.open),C.dragNodeShowBefore[n.tId]=!0):C.dragNodeShowBefore[n.tId]=!1}C.dragFlag=1;t.showHoverDom=!1;g.showIfameMask(e,!0);n=!0;k=-1;if(l.length>1){var j=l[0].parentTId?l[0].getParentNode()[i]:m.getNodes(e);i=[];for(a=0,c=j.length;a<c;a++)if(C.dragNodeShowBefore[j[a].tId]!==void 0&&(n&&k>-1&&k+1!==a&&(n=!1),i.push(j[a]),k=a),l.length===i.length){l=i;break}}n&&(H=l[0].getPreNode(),R=l[l.length-1].getNextNode());D=o("<ul class='zTreeDragUL'></ul>",
-e);for(a=0,c=l.length;a<c;a++)n=l[a],n.editNameFlag=!1,f.selectNode(e,n,a>0),f.removeTreeDom(e,n),a>e.edit.drag.maxShowNodeNum-1||(k=o("<li id='"+n.tId+"_tmp'></li>",e),k.append(o(n,d.id.A,e).clone()),k.css("padding","0"),k.children("#"+n.tId+d.id.A).removeClass(d.node.CURSELECTED),D.append(k),a==e.edit.drag.maxShowNodeNum-1&&(k=o("<li id='"+n.tId+"_moretmp'><a> ... </a></li>",e),D.append(k)));D.attr("id",l[0].tId+d.id.UL+"_tmp");D.addClass(e.treeObj.attr("class"));D.appendTo(M);B=o("<span class='tmpzTreeMove_arrow'></span>",
-e);B.attr("id","zTreeMove_arrow_tmp");B.appendTo(M);e.treeObj.trigger(d.event.DRAG,[b,e.treeId,l])}if(C.dragFlag==1){s&&B.attr("id")==b.target.id&&u&&b.clientX+F.scrollLeft()+2>w("#"+u+d.id.A,s).offset().left?(n=w("#"+u+d.id.A,s),b.target=n.length>0?n.get(0):b.target):s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));
-u=s=null;J=!1;h=e;n=m.getSettings();for(var y in n)if(n[y].treeId&&n[y].edit.enable&&n[y].treeId!=e.treeId&&(b.target.id==n[y].treeId||w(b.target).parents("#"+n[y].treeId).length>0))J=!0,h=n[y];y=F.scrollTop();k=F.scrollLeft();i=h.treeObj.offset();a=h.treeObj.get(0).scrollHeight;n=h.treeObj.get(0).scrollWidth;c=b.clientY+y-i.top;var p=h.treeObj.height()+i.top-b.clientY-y,q=b.clientX+k-i.left,x=h.treeObj.width()+i.left-b.clientX-k;i=c<e.edit.drag.borderMax&&c>e.edit.drag.borderMin;var j=p<e.edit.drag.borderMax&&
-p>e.edit.drag.borderMin,K=q<e.edit.drag.borderMax&&q>e.edit.drag.borderMin,G=x<e.edit.drag.borderMax&&x>e.edit.drag.borderMin,p=c>e.edit.drag.borderMin&&p>e.edit.drag.borderMin&&q>e.edit.drag.borderMin&&x>e.edit.drag.borderMin,q=i&&h.treeObj.scrollTop()<=0,x=j&&h.treeObj.scrollTop()+h.treeObj.height()+10>=a,P=K&&h.treeObj.scrollLeft()<=0,Q=G&&h.treeObj.scrollLeft()+h.treeObj.width()+10>=n;if(b.target&&g.isChildOrSelf(b.target,h.treeId)){for(var E=b.target;E&&E.tagName&&!g.eqs(E.tagName,"li")&&E.id!=
-h.treeId;)E=E.parentNode;var S=!0;for(a=0,c=l.length;a<c;a++)if(n=l[a],E.id===n.tId){S=!1;break}else if(o(n,e).find("#"+E.id).length>0){S=!1;break}if(S&&b.target&&g.isChildOrSelf(b.target,E.id+d.id.A))s=w(E),u=E.id}n=l[0];if(p&&g.isChildOrSelf(b.target,h.treeId)){if(!s&&(b.target.id==h.treeId||q||x||P||Q)&&(J||!J&&n.parentTId))s=h.treeObj;i?h.treeObj.scrollTop(h.treeObj.scrollTop()-10):j&&h.treeObj.scrollTop(h.treeObj.scrollTop()+10);K?h.treeObj.scrollLeft(h.treeObj.scrollLeft()-10):G&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+
-10);s&&s!=h.treeObj&&s.offset().left<h.treeObj.offset().left&&h.treeObj.scrollLeft(h.treeObj.scrollLeft()+s.offset().left-h.treeObj.offset().left)}D.css({top:b.clientY+y+3+"px",left:b.clientX+k+3+"px"});i=a=0;if(s&&s.attr("id")!=h.treeId){var z=u==null?null:m.getNodeCache(h,u);c=(b.ctrlKey||b.metaKey)&&e.edit.drag.isMove&&e.edit.drag.isCopy||!e.edit.drag.isMove&&e.edit.drag.isCopy;a=!!(H&&u===H.tId);i=!!(R&&u===R.tId);k=n.parentTId&&n.parentTId==u;n=(c||!i)&&g.apply(h.edit.drag.prev,[h.treeId,l,z],
-!!h.edit.drag.prev);a=(c||!a)&&g.apply(h.edit.drag.next,[h.treeId,l,z],!!h.edit.drag.next);G=(c||!k)&&!(h.data.keep.leaf&&!z.isParent)&&g.apply(h.edit.drag.inner,[h.treeId,l,z],!!h.edit.drag.inner);if(!n&&!a&&!G){if(s=null,u="",v=d.move.TYPE_INNER,B.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null}else{c=w("#"+u+d.id.A,s);i=z.isLastNode?null:w("#"+z.getNextNode().tId+d.id.A,s.next());j=c.offset().top;k=c.offset().left;K=n?G?0.25:a?
-0.5:1:-1;G=a?G?0.75:n?0.5:0:-1;y=(b.clientY+y-j)/c.height();(K==1||y<=K&&y>=-0.2)&&n?(a=1-B.width(),i=j-B.height()/2,v=d.move.TYPE_PREV):(G==0||y>=G&&y<=1.2)&&a?(a=1-B.width(),i=i==null||z.isParent&&z.open?j+c.height()-B.height()/2:i.offset().top-B.height()/2,v=d.move.TYPE_NEXT):(a=5-B.width(),i=j,v=d.move.TYPE_INNER);B.css({display:"block",top:i+"px",left:k+a+"px"});c.addClass(d.node.TMPTARGET_NODE+"_"+v);if(T!=u||U!=v)L=(new Date).getTime();if(z&&z.isParent&&v==d.move.TYPE_INNER&&(y=!0,window.zTreeMoveTimer&&
-window.zTreeMoveTargetNodeTId!==z.tId?(clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null):window.zTreeMoveTimer&&window.zTreeMoveTargetNodeTId===z.tId&&(y=!1),y))window.zTreeMoveTimer=setTimeout(function(){v==d.move.TYPE_INNER&&z&&z.isParent&&!z.open&&(new Date).getTime()-L>h.edit.drag.autoOpenTime&&g.apply(h.callback.beforeDragOpen,[h.treeId,z],!0)&&(f.switchNode(h,z),h.edit.drag.autoExpandTrigger&&h.treeObj.trigger(d.event.EXPAND,[h.treeId,z]))},h.edit.drag.autoOpenTime+50),
-window.zTreeMoveTargetNodeTId=z.tId}}else if(v=d.move.TYPE_INNER,s&&g.apply(h.edit.drag.inner,[h.treeId,l,null],!!h.edit.drag.inner)?s.addClass(d.node.TMPTARGET_TREE):s=null,B.css({display:"none"}),window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;T=u;U=v;e.treeObj.trigger(d.event.DRAGMOVE,[b,e.treeId,l])}return!1}function r(b){if(window.zTreeMoveTimer)clearTimeout(window.zTreeMoveTimer),window.zTreeMoveTargetNodeTId=null;U=T=null;F.unbind("mousemove",c);
-F.unbind("mouseup",r);F.unbind("selectstart",k);M.css("cursor","auto");s&&(s.removeClass(d.node.TMPTARGET_TREE),u&&w("#"+u+d.id.A,s).removeClass(d.node.TMPTARGET_NODE+"_"+d.move.TYPE_PREV).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_NEXT).removeClass(d.node.TMPTARGET_NODE+"_"+I.move.TYPE_INNER));g.showIfameMask(e,!1);t.showHoverDom=!0;if(C.dragFlag!=0){C.dragFlag=0;var a,i,j;for(a=0,i=l.length;a<i;a++)j=l[a],j.isParent&&C.dragNodeShowBefore[j.tId]&&!j.open&&(f.expandCollapseNode(e,j,!j.open),
-delete C.dragNodeShowBefore[j.tId]);D&&D.remove();B&&B.remove();var p=(b.ctrlKey||b.metaKey)&&e.edit.drag.isMove&&e.edit.drag.isCopy||!e.edit.drag.isMove&&e.edit.drag.isCopy;!p&&s&&u&&l[0].parentTId&&u==l[0].parentTId&&v==d.move.TYPE_INNER&&(s=null);if(s){var q=u==null?null:m.getNodeCache(h,u);if(g.apply(e.callback.beforeDrop,[h.treeId,l,q,v,p],!0)==!1)f.selectNodes(x,l);else{var A=p?g.clone(l):l;a=function(){if(J){if(!p)for(var a=0,c=l.length;a<c;a++)f.removeNode(e,l[a]);if(v==d.move.TYPE_INNER)f.addNodes(h,
-q,A);else if(f.addNodes(h,q.getParentNode(),A),v==d.move.TYPE_PREV)for(a=0,c=A.length;a<c;a++)f.moveNode(h,q,A[a],v,!1);else for(a=-1,c=A.length-1;a<c;c--)f.moveNode(h,q,A[c],v,!1)}else if(p&&v==d.move.TYPE_INNER)f.addNodes(h,q,A);else if(p&&f.addNodes(h,q.getParentNode(),A),v!=d.move.TYPE_NEXT)for(a=0,c=A.length;a<c;a++)f.moveNode(h,q,A[a],v,!1);else for(a=-1,c=A.length-1;a<c;c--)f.moveNode(h,q,A[c],v,!1);f.selectNodes(h,A);o(A[0],e).focus().blur();e.treeObj.trigger(d.event.DROP,[b,h.treeId,A,q,
-v,p])};v==d.move.TYPE_INNER&&g.canAsync(h,q)?f.asyncNode(h,q,!1,a):a()}}else f.selectNodes(x,l),e.treeObj.trigger(d.event.DROP,[b,e.treeId,l,null,null,null])}}function k(){return!1}var i,j,e=m.getSetting(b.data.treeId),C=m.getRoot(e),t=m.getRoots();if(b.button==2||!e.edit.enable||!e.edit.drag.isCopy&&!e.edit.drag.isMove)return!0;var p=b.target,q=m.getRoot(e).curSelectedList,l=[];if(m.isSelectedNode(e,a))for(i=0,j=q.length;i<j;i++){if(q[i].editNameFlag&&g.eqs(p.tagName,"input")&&p.getAttribute("treeNode"+
-d.id.INPUT)!==null)return!0;l.push(q[i]);if(l[0].parentTId!==q[i].parentTId){l=[a];break}}else l=[a];f.editNodeBlur=!0;f.cancelCurEditNode(e);var F=w(e.treeObj.get(0).ownerDocument),M=w(e.treeObj.get(0).ownerDocument.body),D,B,s,J=!1,h=e,x=e,H,R,T=null,U=null,u=null,v=d.move.TYPE_INNER,N=b.clientX,O=b.clientY,L=(new Date).getTime();g.uCanDo(e)&&F.bind("mousemove",c);F.bind("mouseup",r);F.bind("selectstart",k);b.preventDefault&&b.preventDefault();return!0}};w.extend(!0,w.fn.zTree.consts,I);w.extend(!0,
-w.fn.zTree._z,{tools:{getAbs:function(b){b=b.getBoundingClientRect();return[b.left+(document.body.scrollLeft+document.documentElement.scrollLeft),b.top+(document.body.scrollTop+document.documentElement.scrollTop)]},inputFocus:function(b){b.get(0)&&(b.focus(),g.setCursorPosition(b.get(0),b.val().length))},inputSelect:function(b){b.get(0)&&(b.focus(),b.select())},setCursorPosition:function(b,a){if(b.setSelectionRange)b.focus(),b.setSelectionRange(a,a);else if(b.createTextRange){var c=b.createTextRange();
-c.collapse(!0);c.moveEnd("character",a);c.moveStart("character",a);c.select()}},showIfameMask:function(b,a){for(var c=m.getRoot(b);c.dragMaskList.length>0;)c.dragMaskList[0].remove(),c.dragMaskList.shift();if(a)for(var d=o("iframe",b),f=0,i=d.length;f<i;f++){var j=d.get(f),e=g.getAbs(j),j=o("<div id='zTreeMask_"+f+"' class='zTreeMask' style='top:"+e[1]+"px; left:"+e[0]+"px; width:"+j.offsetWidth+"px; height:"+j.offsetHeight+"px;'></div>",b);j.appendTo(o("body",b));c.dragMaskList.push(j)}}},view:{addEditBtn:function(b,
-a){if(!(a.editNameFlag||o(a,d.id.EDIT,b).length>0)&&g.apply(b.edit.showRenameBtn,[b.treeId,a],b.edit.showRenameBtn)){var c=o(a,d.id.A,b),r="<span class='"+d.className.BUTTON+" edit' id='"+a.tId+d.id.EDIT+"' title='"+g.apply(b.edit.renameTitle,[b.treeId,a],b.edit.renameTitle)+"' treeNode"+d.id.EDIT+" style='display:none;'></span>";c.append(r);o(a,d.id.EDIT,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeEditName,[b.treeId,a],!0)==!1)return!1;f.editNode(b,a);return!1}).show()}},
-addRemoveBtn:function(b,a){if(!(a.editNameFlag||o(a,d.id.REMOVE,b).length>0)&&g.apply(b.edit.showRemoveBtn,[b.treeId,a],b.edit.showRemoveBtn)){var c=o(a,d.id.A,b),r="<span class='"+d.className.BUTTON+" remove' id='"+a.tId+d.id.REMOVE+"' title='"+g.apply(b.edit.removeTitle,[b.treeId,a],b.edit.removeTitle)+"' treeNode"+d.id.REMOVE+" style='display:none;'></span>";c.append(r);o(a,d.id.REMOVE,b).bind("click",function(){if(!g.uCanDo(b)||g.apply(b.callback.beforeRemove,[b.treeId,a],!0)==!1)return!1;f.removeNode(b,
-a);b.treeObj.trigger(d.event.REMOVE,[b.treeId,a]);return!1}).bind("mousedown",function(){return!0}).show()}},addHoverDom:function(b,a){if(m.getRoots().showHoverDom)a.isHover=!0,b.edit.enable&&(f.addEditBtn(b,a),f.addRemoveBtn(b,a)),g.apply(b.view.addHoverDom,[b.treeId,a])},cancelCurEditNode:function(b,a,c){var r=m.getRoot(b),k=b.data.key.name,i=r.curEditNode;if(i){var j=r.curEditInput,a=a?a:c?i[k]:j.val();if(g.apply(b.callback.beforeRename,[b.treeId,i,a,c],!0)===!1)return!1;else i[k]=a,b.treeObj.trigger(d.event.RENAME,
-[b.treeId,i,c]);o(i,d.id.A,b).removeClass(d.node.CURSELECTED_EDIT);j.unbind();f.setNodeName(b,i);i.editNameFlag=!1;r.curEditNode=null;r.curEditInput=null;f.selectNode(b,i,!1)}return r.noSelection=!0},editNode:function(b,a){var c=m.getRoot(b);f.editNodeBlur=!1;if(m.isSelectedNode(b,a)&&c.curEditNode==a&&a.editNameFlag)setTimeout(function(){g.inputFocus(c.curEditInput)},0);else{var r=b.data.key.name;a.editNameFlag=!0;f.removeTreeDom(b,a);f.cancelCurEditNode(b);f.selectNode(b,a,!1);o(a,d.id.SPAN,b).html("<input type=text class='rename' id='"+
-a.tId+d.id.INPUT+"' treeNode"+d.id.INPUT+" >");var k=o(a,d.id.INPUT,b);k.attr("value",a[r]);b.edit.editNameSelectAll?g.inputSelect(k):g.inputFocus(k);k.bind("blur",function(){f.editNodeBlur||f.cancelCurEditNode(b)}).bind("keydown",function(a){a.keyCode=="13"?(f.editNodeBlur=!0,f.cancelCurEditNode(b)):a.keyCode=="27"&&f.cancelCurEditNode(b,null,!0)}).bind("click",function(){return!1}).bind("dblclick",function(){return!1});o(a,d.id.A,b).addClass(d.node.CURSELECTED_EDIT);c.curEditInput=k;c.noSelection=
-!1;c.curEditNode=a}},moveNode:function(b,a,c,r,k,i){var j=m.getRoot(b),e=b.data.key.children;if(a!=c&&(!b.data.keep.leaf||!a||a.isParent||r!=d.move.TYPE_INNER)){var g=c.parentTId?c.getParentNode():j,t=a===null||a==j;t&&a===null&&(a=j);if(t)r=d.move.TYPE_INNER;j=a.parentTId?a.getParentNode():j;if(r!=d.move.TYPE_PREV&&r!=d.move.TYPE_NEXT)r=d.move.TYPE_INNER;if(r==d.move.TYPE_INNER)if(t)c.parentTId=null;else{if(!a.isParent)a.isParent=!0,a.open=!!a.open,f.setNodeLineIcos(b,a);c.parentTId=a.tId}var p;
-t?p=t=b.treeObj:(!i&&r==d.move.TYPE_INNER?f.expandCollapseNode(b,a,!0,!1):i||f.expandCollapseNode(b,a.getParentNode(),!0,!1),t=o(a,b),p=o(a,d.id.UL,b),t.get(0)&&!p.get(0)&&(p=[],f.makeUlHtml(b,a,p,""),t.append(p.join(""))),p=o(a,d.id.UL,b));var q=o(c,b);q.get(0)?t.get(0)||q.remove():q=f.appendNodes(b,c.level,[c],null,!1,!0).join("");p.get(0)&&r==d.move.TYPE_INNER?p.append(q):t.get(0)&&r==d.move.TYPE_PREV?t.before(q):t.get(0)&&r==d.move.TYPE_NEXT&&t.after(q);var l=-1,w=0,x=null,t=null,D=c.level;if(c.isFirstNode){if(l=
-0,g[e].length>1)x=g[e][1],x.isFirstNode=!0}else if(c.isLastNode)l=g[e].length-1,x=g[e][l-1],x.isLastNode=!0;else for(p=0,q=g[e].length;p<q;p++)if(g[e][p].tId==c.tId){l=p;break}l>=0&&g[e].splice(l,1);if(r!=d.move.TYPE_INNER)for(p=0,q=j[e].length;p<q;p++)j[e][p].tId==a.tId&&(w=p);if(r==d.move.TYPE_INNER){a[e]||(a[e]=[]);if(a[e].length>0)t=a[e][a[e].length-1],t.isLastNode=!1;a[e].splice(a[e].length,0,c);c.isLastNode=!0;c.isFirstNode=a[e].length==1}else a.isFirstNode&&r==d.move.TYPE_PREV?(j[e].splice(w,
-0,c),t=a,t.isFirstNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!0,c.isLastNode=!1):a.isLastNode&&r==d.move.TYPE_NEXT?(j[e].splice(w+1,0,c),t=a,t.isLastNode=!1,c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!0):(r==d.move.TYPE_PREV?j[e].splice(w,0,c):j[e].splice(w+1,0,c),c.parentTId=a.parentTId,c.isFirstNode=!1,c.isLastNode=!1);m.fixPIdKeyValue(b,c);m.setSonNodeLevel(b,c.getParentNode(),c);f.setNodeLineIcos(b,c);f.repairNodeLevelClass(b,c,D);!b.data.keep.parent&&g[e].length<1?(g.isParent=!1,
-g.open=!1,a=o(g,d.id.UL,b),r=o(g,d.id.SWITCH,b),e=o(g,d.id.ICON,b),f.replaceSwitchClass(g,r,d.folder.DOCU),f.replaceIcoClass(g,e,d.folder.DOCU),a.css("display","none")):x&&f.setNodeLineIcos(b,x);t&&f.setNodeLineIcos(b,t);b.check&&b.check.enable&&f.repairChkClass&&(f.repairChkClass(b,g),f.repairParentChkClassWithSelf(b,g),g!=c.parent&&f.repairParentChkClassWithSelf(b,c));i||f.expandCollapseParentNode(b,c.getParentNode(),!0,k)}},removeEditBtn:function(b,a){o(a,d.id.EDIT,b).unbind().remove()},removeRemoveBtn:function(b,
-a){o(a,d.id.REMOVE,b).unbind().remove()},removeTreeDom:function(b,a){a.isHover=!1;f.removeEditBtn(b,a);f.removeRemoveBtn(b,a);g.apply(b.view.removeHoverDom,[b.treeId,a])},repairNodeLevelClass:function(b,a,c){if(c!==a.level){var f=o(a,b),g=o(a,d.id.A,b),b=o(a,d.id.UL,b),c=d.className.LEVEL+c,a=d.className.LEVEL+a.level;f.removeClass(c);f.addClass(a);g.removeClass(c);g.addClass(a);b.removeClass(c);b.addClass(a)}},selectNodes:function(b,a){for(var c=0,d=a.length;c<d;c++)f.selectNode(b,a[c],c>0)}},event:{},
-data:{setSonNodeLevel:function(b,a,c){if(c){var d=b.data.key.children;c.level=a?a.level+1:0;if(c[d])for(var a=0,f=c[d].length;a<f;a++)c[d][a]&&m.setSonNodeLevel(b,c,c[d][a])}}}});var H=w.fn.zTree,g=H._z.tools,d=H.consts,f=H._z.view,m=H._z.data,o=g.$;m.exSetting({edit:{enable:!1,editNameSelectAll:!1,showRemoveBtn:!0,showRenameBtn:!0,removeTitle:"remove",renameTitle:"rename",drag:{autoExpandTrigger:!1,isCopy:!0,isMove:!0,prev:!0,next:!0,inner:!0,minMoveSize:5,borderMax:10,borderMin:-5,maxShowNodeNum:5,
-autoOpenTime:500}},view:{addHoverDom:null,removeHoverDom:null},callback:{beforeDrag:null,beforeDragOpen:null,beforeDrop:null,beforeEditName:null,beforeRename:null,onDrag:null,onDragMove:null,onDrop:null,onRename:null}});m.addInitBind(function(b){var a=b.treeObj,c=d.event;a.bind(c.RENAME,function(a,c,d,f){g.apply(b.callback.onRename,[a,c,d,f])});a.bind(c.DRAG,function(a,c,d,f){g.apply(b.callback.onDrag,[c,d,f])});a.bind(c.DRAGMOVE,function(a,c,d,f){g.apply(b.callback.onDragMove,[c,d,f])});a.bind(c.DROP,
-function(a,c,d,f,e,m,o){g.apply(b.callback.onDrop,[c,d,f,e,m,o])})});m.addInitUnBind(function(b){var b=b.treeObj,a=d.event;b.unbind(a.RENAME);b.unbind(a.DRAG);b.unbind(a.DRAGMOVE);b.unbind(a.DROP)});m.addInitCache(function(){});m.addInitNode(function(b,a,c){if(c)c.isHover=!1,c.editNameFlag=!1});m.addInitProxy(function(b){var a=b.target,c=m.getSetting(b.data.treeId),f=b.relatedTarget,k="",i=null,j="",e=null,o=null;if(g.eqs(b.type,"mouseover")){if(o=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}]))k=
-g.getNodeMainDom(o).id,j="hoverOverNode"}else if(g.eqs(b.type,"mouseout"))o=g.getMDom(c,f,[{tagName:"a",attrName:"treeNode"+d.id.A}]),o||(k="remove",j="hoverOutNode");else if(g.eqs(b.type,"mousedown")&&(o=g.getMDom(c,a,[{tagName:"a",attrName:"treeNode"+d.id.A}])))k=g.getNodeMainDom(o).id,j="mousedownNode";if(k.length>0)switch(i=m.getNodeCache(c,k),j){case "mousedownNode":e=x.onMousedownNode;break;case "hoverOverNode":e=x.onHoverOverNode;break;case "hoverOutNode":e=x.onHoverOutNode}return{stop:!1,
-node:i,nodeEventType:j,nodeEventCallback:e,treeEventType:"",treeEventCallback:null}});m.addInitRoot(function(b){var b=m.getRoot(b),a=m.getRoots();b.curEditNode=null;b.curEditInput=null;b.curHoverNode=null;b.dragFlag=0;b.dragNodeShowBefore=[];b.dragMaskList=[];a.showHoverDom=!0});m.addZTreeTools(function(b,a){a.cancelEditName=function(a){m.getRoot(this.setting).curEditNode&&f.cancelCurEditNode(this.setting,a?a:null,!0)};a.copyNode=function(a,b,k,i){if(!b)return null;if(a&&!a.isParent&&this.setting.data.keep.leaf&&
-k===d.move.TYPE_INNER)return null;var j=this,e=g.clone(b);if(!a)a=null,k=d.move.TYPE_INNER;k==d.move.TYPE_INNER?(b=function(){f.addNodes(j.setting,a,[e],i)},g.canAsync(this.setting,a)?f.asyncNode(this.setting,a,i,b):b()):(f.addNodes(this.setting,a.parentNode,[e],i),f.moveNode(this.setting,a,e,k,!1,i));return e};a.editName=function(a){a&&a.tId&&a===m.getNodeCache(this.setting,a.tId)&&(a.parentTId&&f.expandCollapseParentNode(this.setting,a.getParentNode(),!0),f.editNode(this.setting,a))};a.moveNode=
-function(a,b,k,i){function j(){f.moveNode(e.setting,a,b,k,!1,i)}if(!b)return b;if(a&&!a.isParent&&this.setting.data.keep.leaf&&k===d.move.TYPE_INNER)return null;else if(a&&(b.parentTId==a.tId&&k==d.move.TYPE_INNER||o(b,this.setting).find("#"+a.tId).length>0))return null;else a||(a=null);var e=this;g.canAsync(this.setting,a)&&k===d.move.TYPE_INNER?f.asyncNode(this.setting,a,i,j):j();return b};a.setEditable=function(a){this.setting.edit.enable=a;return this.refresh()}});var N=f.cancelPreSelectedNode;
-f.cancelPreSelectedNode=function(b,a){for(var c=m.getRoot(b).curSelectedList,d=0,g=c.length;d<g;d++)if(!a||a===c[d])if(f.removeTreeDom(b,c[d]),a)break;N&&N.apply(f,arguments)};var O=f.createNodes;f.createNodes=function(b,a,c,d){O&&O.apply(f,arguments);c&&f.repairParentChkClassWithSelf&&f.repairParentChkClassWithSelf(b,d)};var V=f.makeNodeUrl;f.makeNodeUrl=function(b,a){return b.edit.enable?null:V.apply(f,arguments)};var L=f.removeNode;f.removeNode=function(b,a){var c=m.getRoot(b);if(c.curEditNode===
-a)c.curEditNode=null;L&&L.apply(f,arguments)};var P=f.selectNode;f.selectNode=function(b,a,c){var d=m.getRoot(b);if(m.isSelectedNode(b,a)&&d.curEditNode==a&&a.editNameFlag)return!1;P&&P.apply(f,arguments);f.addHoverDom(b,a);return!0};var Q=g.uCanDo;g.uCanDo=function(b,a){var c=m.getRoot(b);if(a&&(g.eqs(a.type,"mouseover")||g.eqs(a.type,"mouseout")||g.eqs(a.type,"mousedown")||g.eqs(a.type,"mouseup")))return!0;if(c.curEditNode)f.editNodeBlur=!1,c.curEditInput.focus();return!c.curEditNode&&(Q?Q.apply(f,
-arguments):!0)}})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.js
deleted file mode 100644
index 05a5bfb..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.js
+++ /dev/null
@@ -1,363 +0,0 @@
-/*
- * JQuery zTree exHideNodes v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function($){
- //default init node of exLib
- var _initNode = function(setting, level, n, parentNode, isFirstNode, isLastNode, openFlag) {
- if (typeof n.isHidden == "string") n.isHidden = tools.eqs(n.isHidden, "true");
- n.isHidden = !!n.isHidden;
- data.initHideForExCheck(setting, n);
- },
- //add dom for check
- _beforeA = function(setting, node, html) {},
- //update zTreeObj, add method of exLib
- _zTreeTools = function(setting, zTreeTools) {
- zTreeTools.showNodes = function(nodes, options) {
- view.showNodes(setting, nodes, options);
- }
- zTreeTools.showNode = function(node, options) {
- if (!node) {
- return;
- }
- view.showNodes(setting, [node], options);
- }
- zTreeTools.hideNodes = function(nodes, options) {
- view.hideNodes(setting, nodes, options);
- }
- zTreeTools.hideNode = function(node, options) {
- if (!node) {
- return;
- }
- view.hideNodes(setting, [node], options);
- }
-
- var _checkNode = zTreeTools.checkNode;
- if (_checkNode) {
- zTreeTools.checkNode = function(node, checked, checkTypeFlag, callbackFlag) {
- if (!!node && !!node.isHidden) {
- return;
- }
- _checkNode.apply(zTreeTools, arguments);
- }
- }
- },
- //method of operate data
- _data = {
- initHideForExCheck: function(setting, n) {
- if (n.isHidden && setting.check && setting.check.enable) {
- if(typeof n._nocheck == "undefined") {
- n._nocheck = !!n.nocheck
- n.nocheck = true;
- }
- n.check_Child_State = -1;
- if (view.repairParentChkClassWithSelf) {
- view.repairParentChkClassWithSelf(setting, n);
- }
- }
- },
- initShowForExCheck: function(setting, n) {
- if (!n.isHidden && setting.check && setting.check.enable) {
- if(typeof n._nocheck != "undefined") {
- n.nocheck = n._nocheck;
- delete n._nocheck;
- }
- if (view.setChkClass) {
- var checkObj = $$(n, consts.id.CHECK, setting);
- view.setChkClass(setting, checkObj, n);
- }
- if (view.repairParentChkClassWithSelf) {
- view.repairParentChkClassWithSelf(setting, n);
- }
- }
- }
- },
- //method of operate ztree dom
- _view = {
- clearOldFirstNode: function(setting, node) {
- var n = node.getNextNode();
- while(!!n){
- if (n.isFirstNode) {
- n.isFirstNode = false;
- view.setNodeLineIcos(setting, n);
- break;
- }
- if (n.isLastNode) {
- break;
- }
- n = n.getNextNode();
- }
- },
- clearOldLastNode: function(setting, node) {
- var n = node.getPreNode();
- while(!!n){
- if (n.isLastNode) {
- n.isLastNode = false;
- view.setNodeLineIcos(setting, n);
- break;
- }
- if (n.isFirstNode) {
- break;
- }
- n = n.getPreNode();
- }
- },
- makeDOMNodeMainBefore: function(html, setting, node) {
- html.push("<li ", (node.isHidden ? "style='display:none;' " : ""), "id='", node.tId, "' class='", consts.className.LEVEL, node.level,"' tabindex='0' hidefocus='true' treenode>");
- },
- showNode: function(setting, node, options) {
- node.isHidden = false;
- data.initShowForExCheck(setting, node);
- $$(node, setting).show();
- },
- showNodes: function(setting, nodes, options) {
- if (!nodes || nodes.length == 0) {
- return;
- }
- var pList = {}, i, j;
- for (i=0, j=nodes.length; i<j; i++) {
- var n = nodes[i];
- if (!pList[n.parentTId]) {
- var pn = n.getParentNode();
- pList[n.parentTId] = (pn === null) ? data.getRoot(setting) : n.getParentNode();
- }
- view.showNode(setting, n, options);
- }
- for (var tId in pList) {
- var children = pList[tId][setting.data.key.children];
- view.setFirstNodeForShow(setting, children);
- view.setLastNodeForShow(setting, children);
- }
- },
- hideNode: function(setting, node, options) {
- node.isHidden = true;
- node.isFirstNode = false;
- node.isLastNode = false;
- data.initHideForExCheck(setting, node);
- view.cancelPreSelectedNode(setting, node);
- $$(node, setting).hide();
- },
- hideNodes: function(setting, nodes, options) {
- if (!nodes || nodes.length == 0) {
- return;
- }
- var pList = {}, i, j;
- for (i=0, j=nodes.length; i<j; i++) {
- var n = nodes[i];
- if ((n.isFirstNode || n.isLastNode) && !pList[n.parentTId]) {
- var pn = n.getParentNode();
- pList[n.parentTId] = (pn === null) ? data.getRoot(setting) : n.getParentNode();
- }
- view.hideNode(setting, n, options);
- }
- for (var tId in pList) {
- var children = pList[tId][setting.data.key.children];
- view.setFirstNodeForHide(setting, children);
- view.setLastNodeForHide(setting, children);
- }
- },
- setFirstNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if (childLength > 0 && !parentNode[childKey][0].isHidden) {
- parentNode[childKey][0].isFirstNode = true;
- } else if (childLength > 0) {
- view.setFirstNodeForHide(setting, parentNode[childKey]);
- }
- },
- setLastNode: function(setting, parentNode) {
- var childKey = setting.data.key.children, childLength = parentNode[childKey].length;
- if (childLength > 0 && !parentNode[childKey][0].isHidden) {
- parentNode[childKey][childLength - 1].isLastNode = true;
- } else if (childLength > 0) {
- view.setLastNodeForHide(setting, parentNode[childKey]);
- }
- },
- setFirstNodeForHide: function(setting, nodes) {
- var n,i,j;
- for (i=0, j=nodes.length; i<j; i++) {
- n = nodes[i];
- if (n.isFirstNode) {
- break;
- }
- if (!n.isHidden && !n.isFirstNode) {
- n.isFirstNode = true;
- view.setNodeLineIcos(setting, n);
- break;
- } else {
- n = null;
- }
- }
- return n;
- },
- setFirstNodeForShow: function(setting, nodes) {
- var n,i,j, first, old;
- for(i=0, j=nodes.length; i<j; i++) {
- n = nodes[i];
- if (!first && !n.isHidden && n.isFirstNode) {
- first = n;
- break;
- } else if (!first && !n.isHidden && !n.isFirstNode) {
- n.isFirstNode = true;
- first = n;
- view.setNodeLineIcos(setting, n);
- } else if (first && n.isFirstNode) {
- n.isFirstNode = false;
- old = n;
- view.setNodeLineIcos(setting, n);
- break;
- } else {
- n = null;
- }
- }
- return {"new":first, "old":old};
- },
- setLastNodeForHide: function(setting, nodes) {
- var n,i;
- for (i=nodes.length-1; i>=0; i--) {
- n = nodes[i];
- if (n.isLastNode) {
- break;
- }
- if (!n.isHidden && !n.isLastNode) {
- n.isLastNode = true;
- view.setNodeLineIcos(setting, n);
- break;
- } else {
- n = null;
- }
- }
- return n;
- },
- setLastNodeForShow: function(setting, nodes) {
- var n,i,j, last, old;
- for (i=nodes.length-1; i>=0; i--) {
- n = nodes[i];
- if (!last && !n.isHidden && n.isLastNode) {
- last = n;
- break;
- } else if (!last && !n.isHidden && !n.isLastNode) {
- n.isLastNode = true;
- last = n;
- view.setNodeLineIcos(setting, n);
- } else if (last && n.isLastNode) {
- n.isLastNode = false;
- old = n;
- view.setNodeLineIcos(setting, n);
- break;
- } else {
- n = null;
- }
- }
- return {"new":last, "old":old};
- }
- },
-
- _z = {
- view: _view,
- data: _data
- };
- $.extend(true, $.fn.zTree._z, _z);
-
- var zt = $.fn.zTree,
- tools = zt._z.tools,
- consts = zt.consts,
- view = zt._z.view,
- data = zt._z.data,
- event = zt._z.event,
- $$ = tools.$;
-
- data.addInitNode(_initNode);
- data.addBeforeA(_beforeA);
- data.addZTreeTools(_zTreeTools);
-
-// Override method in core
- var _dInitNode = data.initNode;
- data.initNode = function(setting, level, node, parentNode, isFirstNode, isLastNode, openFlag) {
- var tmpPNode = (parentNode) ? parentNode: data.getRoot(setting),
- children = tmpPNode[setting.data.key.children];
- data.tmpHideFirstNode = view.setFirstNodeForHide(setting, children);
- data.tmpHideLastNode = view.setLastNodeForHide(setting, children);
- view.setNodeLineIcos(setting, data.tmpHideFirstNode);
- view.setNodeLineIcos(setting, data.tmpHideLastNode);
- isFirstNode = (data.tmpHideFirstNode === node);
- isLastNode = (data.tmpHideLastNode === node);
- if (_dInitNode) _dInitNode.apply(data, arguments);
- if (isLastNode) {
- view.clearOldLastNode(setting, node);
- }
- };
-
- var _makeChkFlag = data.makeChkFlag;
- if (!!_makeChkFlag) {
- data.makeChkFlag = function(setting, node) {
- if (!!node && !!node.isHidden) {
- return;
- }
- _makeChkFlag.apply(data, arguments);
- }
- }
-
- var _getTreeCheckedNodes = data.getTreeCheckedNodes;
- if (!!_getTreeCheckedNodes) {
- data.getTreeCheckedNodes = function(setting, nodes, checked, results) {
- if (!!nodes && nodes.length > 0) {
- var p = nodes[0].getParentNode();
- if (!!p && !!p.isHidden) {
- return [];
- }
- }
- return _getTreeCheckedNodes.apply(data, arguments);
- }
- }
-
- var _getTreeChangeCheckedNodes = data.getTreeChangeCheckedNodes;
- if (!!_getTreeChangeCheckedNodes) {
- data.getTreeChangeCheckedNodes = function(setting, nodes, results) {
- if (!!nodes && nodes.length > 0) {
- var p = nodes[0].getParentNode();
- if (!!p && !!p.isHidden) {
- return [];
- }
- }
- return _getTreeChangeCheckedNodes.apply(data, arguments);
- }
- }
-
- var _expandCollapseSonNode = view.expandCollapseSonNode;
- if (!!_expandCollapseSonNode) {
- view.expandCollapseSonNode = function(setting, node, expandFlag, animateFlag, callback) {
- if (!!node && !!node.isHidden) {
- return;
- }
- _expandCollapseSonNode.apply(view, arguments);
- }
- }
-
- var _setSonNodeCheckBox = view.setSonNodeCheckBox;
- if (!!_setSonNodeCheckBox) {
- view.setSonNodeCheckBox = function(setting, node, value, srcNode) {
- if (!!node && !!node.isHidden) {
- return;
- }
- _setSonNodeCheckBox.apply(view, arguments);
- }
- }
-
- var _repairParentChkClassWithSelf = view.repairParentChkClassWithSelf;
- if (!!_repairParentChkClassWithSelf) {
- view.repairParentChkClassWithSelf = function(setting, node) {
- if (!!node && !!node.isHidden) {
- return;
- }
- _repairParentChkClassWithSelf.apply(view, arguments);
- }
- }
-})(jQuery); \ No newline at end of file
diff --git a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.min.js b/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.min.js
deleted file mode 100644
index f1dce5b..0000000
--- a/common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.min.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * JQuery zTree exHideNodes v3.5.16
- * http://zTree.me/
- *
- * Copyright (c) 2010 Hunter.z
- *
- * Licensed same as jquery - MIT License
- * http://www.opensource.org/licenses/mit-license.php
- *
- * email: hunter.z@263.net
- * Date: 2014-03-09
- */
-(function(i){i.extend(!0,i.fn.zTree._z,{view:{clearOldFirstNode:function(c,a){for(var b=a.getNextNode();b;){if(b.isFirstNode){b.isFirstNode=!1;d.setNodeLineIcos(c,b);break}if(b.isLastNode)break;b=b.getNextNode()}},clearOldLastNode:function(c,a){for(var b=a.getPreNode();b;){if(b.isLastNode){b.isLastNode=!1;d.setNodeLineIcos(c,b);break}if(b.isFirstNode)break;b=b.getPreNode()}},makeDOMNodeMainBefore:function(c,a,b){c.push("<li ",b.isHidden?"style='display:none;' ":"","id='",b.tId,"' class='",l.className.LEVEL,
-b.level,"' tabindex='0' hidefocus='true' treenode>")},showNode:function(c,a){a.isHidden=!1;f.initShowForExCheck(c,a);j(a,c).show()},showNodes:function(c,a,b){if(a&&a.length!=0){var e={},g,k;for(g=0,k=a.length;g<k;g++){var h=a[g];if(!e[h.parentTId]){var i=h.getParentNode();e[h.parentTId]=i===null?f.getRoot(c):h.getParentNode()}d.showNode(c,h,b)}for(var j in e)a=e[j][c.data.key.children],d.setFirstNodeForShow(c,a),d.setLastNodeForShow(c,a)}},hideNode:function(c,a){a.isHidden=!0;a.isFirstNode=!1;a.isLastNode=
-!1;f.initHideForExCheck(c,a);d.cancelPreSelectedNode(c,a);j(a,c).hide()},hideNodes:function(c,a,b){if(a&&a.length!=0){var e={},g,k;for(g=0,k=a.length;g<k;g++){var h=a[g];if((h.isFirstNode||h.isLastNode)&&!e[h.parentTId]){var i=h.getParentNode();e[h.parentTId]=i===null?f.getRoot(c):h.getParentNode()}d.hideNode(c,h,b)}for(var j in e)a=e[j][c.data.key.children],d.setFirstNodeForHide(c,a),d.setLastNodeForHide(c,a)}},setFirstNode:function(c,a){var b=c.data.key.children,e=a[b].length;e>0&&!a[b][0].isHidden?
-a[b][0].isFirstNode=!0:e>0&&d.setFirstNodeForHide(c,a[b])},setLastNode:function(c,a){var b=c.data.key.children,e=a[b].length;e>0&&!a[b][0].isHidden?a[b][e-1].isLastNode=!0:e>0&&d.setLastNodeForHide(c,a[b])},setFirstNodeForHide:function(c,a){var b,e,g;for(e=0,g=a.length;e<g;e++){b=a[e];if(b.isFirstNode)break;if(!b.isHidden&&!b.isFirstNode){b.isFirstNode=!0;d.setNodeLineIcos(c,b);break}else b=null}return b},setFirstNodeForShow:function(c,a){var b,e,g,f,h;for(e=0,g=a.length;e<g;e++)if(b=a[e],!f&&!b.isHidden&&
-b.isFirstNode){f=b;break}else if(!f&&!b.isHidden&&!b.isFirstNode)b.isFirstNode=!0,f=b,d.setNodeLineIcos(c,b);else if(f&&b.isFirstNode){b.isFirstNode=!1;h=b;d.setNodeLineIcos(c,b);break}return{"new":f,old:h}},setLastNodeForHide:function(c,a){var b,e;for(e=a.length-1;e>=0;e--){b=a[e];if(b.isLastNode)break;if(!b.isHidden&&!b.isLastNode){b.isLastNode=!0;d.setNodeLineIcos(c,b);break}else b=null}return b},setLastNodeForShow:function(c,a){var b,e,g,f;for(e=a.length-1;e>=0;e--)if(b=a[e],!g&&!b.isHidden&&
-b.isLastNode){g=b;break}else if(!g&&!b.isHidden&&!b.isLastNode)b.isLastNode=!0,g=b,d.setNodeLineIcos(c,b);else if(g&&b.isLastNode){b.isLastNode=!1;f=b;d.setNodeLineIcos(c,b);break}return{"new":g,old:f}}},data:{initHideForExCheck:function(c,a){if(a.isHidden&&c.check&&c.check.enable){if(typeof a._nocheck=="undefined")a._nocheck=!!a.nocheck,a.nocheck=!0;a.check_Child_State=-1;d.repairParentChkClassWithSelf&&d.repairParentChkClassWithSelf(c,a)}},initShowForExCheck:function(c,a){if(!a.isHidden&&c.check&&
-c.check.enable){if(typeof a._nocheck!="undefined")a.nocheck=a._nocheck,delete a._nocheck;if(d.setChkClass){var b=j(a,l.id.CHECK,c);d.setChkClass(c,b,a)}d.repairParentChkClassWithSelf&&d.repairParentChkClassWithSelf(c,a)}}}});var i=i.fn.zTree,m=i._z.tools,l=i.consts,d=i._z.view,f=i._z.data,j=m.$;f.addInitNode(function(c,a,b){if(typeof b.isHidden=="string")b.isHidden=m.eqs(b.isHidden,"true");b.isHidden=!!b.isHidden;f.initHideForExCheck(c,b)});f.addBeforeA(function(){});f.addZTreeTools(function(c,a){a.showNodes=
-function(a,b){d.showNodes(c,a,b)};a.showNode=function(a,b){a&&d.showNodes(c,[a],b)};a.hideNodes=function(a,b){d.hideNodes(c,a,b)};a.hideNode=function(a,b){a&&d.hideNodes(c,[a],b)};var b=a.checkNode;if(b)a.checkNode=function(c,d,f,h){(!c||!c.isHidden)&&b.apply(a,arguments)}});var n=f.initNode;f.initNode=function(c,a,b,e,g,i,h){var j=(e?e:f.getRoot(c))[c.data.key.children];f.tmpHideFirstNode=d.setFirstNodeForHide(c,j);f.tmpHideLastNode=d.setLastNodeForHide(c,j);d.setNodeLineIcos(c,f.tmpHideFirstNode);
-d.setNodeLineIcos(c,f.tmpHideLastNode);g=f.tmpHideFirstNode===b;i=f.tmpHideLastNode===b;n&&n.apply(f,arguments);i&&d.clearOldLastNode(c,b)};var o=f.makeChkFlag;if(o)f.makeChkFlag=function(c,a){(!a||!a.isHidden)&&o.apply(f,arguments)};var p=f.getTreeCheckedNodes;if(p)f.getTreeCheckedNodes=function(c,a,b,e){if(a&&a.length>0){var d=a[0].getParentNode();if(d&&d.isHidden)return[]}return p.apply(f,arguments)};var q=f.getTreeChangeCheckedNodes;if(q)f.getTreeChangeCheckedNodes=function(c,a,b){if(a&&a.length>
-0){var d=a[0].getParentNode();if(d&&d.isHidden)return[]}return q.apply(f,arguments)};var r=d.expandCollapseSonNode;if(r)d.expandCollapseSonNode=function(c,a,b,e,f){(!a||!a.isHidden)&&r.apply(d,arguments)};var s=d.setSonNodeCheckBox;if(s)d.setSonNodeCheckBox=function(c,a,b,e){(!a||!a.isHidden)&&s.apply(d,arguments)};var t=d.repairParentChkClassWithSelf;if(t)d.repairParentChkClassWithSelf=function(c,a){(!a||!a.isHidden)&&t.apply(d,arguments)}})(jQuery);
diff --git a/common/src/main/webapp/thirdparty/zTree/zTree.v3.jquery.json b/common/src/main/webapp/thirdparty/zTree/zTree.v3.jquery.json
deleted file mode 100644
index ef26b10..0000000
--- a/common/src/main/webapp/thirdparty/zTree/zTree.v3.jquery.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "zTree.v3",
- "title": "zTree.v3",
- "description": "jquery tree plugin",
- "keywords": [
- "tree",
- "ui"
- ],
- "version": "3.5.16",
- "author": {
- "name": "Zhang QiGang",
- "email":"hunter.z@263.net",
- "url": "https://github.com/zTree/zTree_v3"
- },
- "maintainers": [
- {
- "name": "Zhang QiGang",
- "email":"hunter.z@263.net",
- "url": "http://www.ztree.me/"
- }
- ],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://www.ztree.me/v3/main.php#_license"
- }
- ],
- "bugs": "https://github.com/zTree/zTree_v3/issues",
- "homepage": "http://www.ztree.me/",
- "demo": "http://www.ztree.me/v3/demo.php",
- "docs": "http://www.ztree.me/v3/api.php",
- "dependencies": {
- "jquery": ">=1.4.4"
- }
-}
diff --git a/portal/src/main/webapp/extsys/vim/js/vimChart.js b/portal/src/main/webapp/extsys/vim/js/vimChart.js
deleted file mode 100644
index 078a7e6..0000000
--- a/portal/src/main/webapp/extsys/vim/js/vimChart.js
+++ /dev/null
@@ -1,430 +0,0 @@
-/*
- * Copyright 2016-2017 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var vimChart = {};
-
-
-var labelTop = {
- normal: {
- label: {
- show: true,
- position: 'outer',
- formatter: function (params) {
- var total = params.series.data[1].value + params.series.data[0].value;
- var util = params.series.data[0].util;
- return $.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_used') + params.value + util + "\n" +
- $.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_total') + total + util;
- },
- textStyle: {
- baseline: 'bottom',
- fontWeight: 'normal'
-
- }
- },
- labelLine: {
- show: true
- }
- }
-};
-
-
-var labelFromatter = {
- normal: {
- label: {
- formatter: function (params) {
- return params.series.data[0].name + "\n" + (100 - params.percent).toFixed(0) + '%'
- },
- textStyle: {
- baseline: 'center',
- color: "#000",
- fontWeight: 'bold'
-
-
- }
- }
- }
-}
-var labelBottom = {
- normal: {
- color: '#ccc',
- label: {
- show: true,
- position: 'center'
- },
- labelLine: {
- show: false
- }
- },
- emphasis: {
- color: 'rgba(0,0,0,0)'
- }
-};
-
-var radius = [40, 55];
-
-var vimPieChart;
-
-vimChart.vimPieChartInit = function () {
- vimPieChart = echarts.init(document.getElementById('vimPieChartDiv'));
- vimPieChart.showLoading({
- text: "Loading",
- effect: "whirling",
- textStyle: {
- fontSize: 20
- }
- });
-
-}
-
-vimChart.vimPieChart = function (data) {
-
- var option = {
- animation: true,
- legend: {
- x: 'left',
- y: "top",
- data: [
- $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_cpu'),
- $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_memory'),
- $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_disk')
- ],
- orient: 'vertical'
- },
- color: ["#578ebe", "#44b6ae", "#DABA36"],
- title: {
- text: '',
- subtext: '',
- x: 'center'
- },
- toolbox: {
- show: true,
-
- feature: {
- saveAsImage: {
- show: true,
- title: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_save_picture'),
- type: 'png',
- lang: [$.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_click_save')]
- }
- }
- },
- series: [
- {
- type: 'pie',
- center: ['15%', '55%'],
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_cpu'),
- value: data.usage.cpu,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.resource.cpu - data.usage.cpu, itemStyle: labelBottom}
-
- ]
- },
- {
- type: 'pie',
- center: ['40%', '55%'],
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_memory'),
- value: data.usage.memoryMb,
- itemStyle: labelTop,
- util: 'MB'
- },
- {name: 'other', value: data.resource.memoryMb - data.usage.memoryMb, itemStyle: labelBottom}
-
- ]
- },
- {
- type: 'pie',
- center: ['65%', '55%'],
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_vim_disk'),
- value: data.usage.diskGb,
- itemStyle: labelTop,
- util: 'GB'
- },
- {name: 'other', value: data.resource.diskGb - data.usage.diskGb, itemStyle: labelBottom}
-
- ]
- }
-
- ]
- };
-
-
-
- vimPieChart.hideLoading();
- vimPieChart.setOption(option);
- window.onresize = vimPieChart.resize;
-
-
-}
-
-vimChart.getPieCenter = function (n) {
- var center;
- switch (n) {
- case 1:
- center = ['15%', '30%'];
- break;
- case 2:
- center = ['40%', '30%'];
- break;
- case 3:
- center = ['65%', '30%'];
- break;
- case 4:
- center = ['15%', '80%'];
- break;
- case 5:
- center = ['40%', '80%'];
- break;
- case 6:
- center = ['65%', '80%'];
- break;
- case 7:
- center = ['90%', '80%'];
- break;
-
- }
- return center;
-}
-
-
-var tenantPieChart;
-vimChart.tenantPieChartInit = function () {
- tenantPieChart = echarts.init(document.getElementById('tenantPieChartDiv'));
-
- tenantPieChart.showLoading({
- text: "Loading",
- effect: "whirling",
- textStyle: {
- fontSize: 20
- }
- });
-}
-vimChart.tenantPieChart = function (data) {
-
- var legend_data = new Array();
- var series = new Array();
- var n = 0;
-
- if (data.quota.instances != -1) {
- n++;
-
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_instances'));
- var instances_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_instances'),
- value: data.usage.instances,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.quota.instances - data.usage.instances, itemStyle: labelBottom}
-
- ]
- };
- series.push(instances_series);
-
- }
- if (data.quota.cpu != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_cpu'));
- var cpu_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_cpu'),
- value: data.usage.cpu,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.quota.cpu - data.usage.cpu, itemStyle: labelBottom}
-
- ]
- };
- series.push(cpu_series);
- }
- if (data.quota.memoryMb != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_memoryMb'));
- var memoryMb_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_memoryMb'),
- value: data.usage.memoryMb,
- itemStyle: labelTop,
- util: 'MB'
- },
- {name: 'other', value: data.quota.memoryMb - data.usage.memoryMb, itemStyle: labelBottom}
-
- ]
- };
- series.push(memoryMb_series);
- }
- if (data.quota.floatingIps != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_floatingIps'));
- var floatingIps_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_floatingIps'),
- value: data.usage.floatingIps,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.quota.floatingIps - data.usage.floatingIps, itemStyle: labelBottom}
-
- ]
- };
- series.push(floatingIps_series);
- }
- if (data.quota.securityGroups != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_securityGroups'));
- var securityGroups_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_securityGroups'),
- value: data.usage.securityGroups,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.quota.securityGroups - data.usage.securityGroups, itemStyle: labelBottom}
-
- ]
- };
- series.push(securityGroups_series);
- }
- if (data.quota.volumes != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_volumes'));
- var volumes_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_volumes'),
- value: data.usage.volumes,
- itemStyle: labelTop,
- util: ''
- },
- {name: 'other', value: data.quota.volumes - data.usage.volumes, itemStyle: labelBottom}
-
- ]
- };
- series.push(volumes_series);
- }
- if (data.quota.volumeStorage != -1) {
- n++;
- legend_data.push($.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_volumeStorage'));
- var volumeStorage_series = {
- type: 'pie',
- center: vimChart.getPieCenter(n),
- radius: radius,
- itemStyle: labelFromatter,
- data: [
- {
- name: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_tenant_volumeStorage'),
- value: data.usage.volumeStorage,
- itemStyle: labelTop,
- util: 'GB'
- },
- {name: 'other', value: data.quota.volumeStorage - data.usage.volumeStorage, itemStyle: labelBottom}
-
- ]
- };
- series.push(volumeStorage_series);
- }
-
-
- var option = {
- animation: true,
- legend: {
- x: 'left',
- y: "top",
- data: legend_data,
- orient: 'vertical'
- },
- color: ["#578ebe", "#44b6ae", "#DABA36", "#F79695", "#9699e0", "#57b5e3", "#48c79c"],
- title: {
- text: '',
- subtext: '',
- x: 'center'
- },
- toolbox: {
- show: true,
- feature: {
- saveAsImage: {
- show: true,
- title: $.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_save_picture'),
- type: 'png',
- lang: [$.i18n.prop('com_zte_ums_eco_roc_vim_resource_chart_click_save')]
- }
- }
- },
- series: series
- };
-
-
-
- tenantPieChart.hideLoading();
- tenantPieChart.setOption(option);
- window.onresize = tenantPieChart.resize;
-
-
-}
-
-vimChart.growl = function (message, type) {
- $.growl({
- icon: "fa fa-envelope-o fa-lg",
- title: "&nbsp;&nbsp;" + $.i18n.prop('com_zte_ums_eco_roc_vim_title_notice'),
- message: message + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
- }, {
- type: type,
- delay: 0
- });
-} \ No newline at end of file
diff --git a/portal/src/main/webapp/extsys/vim/js/vimChartController.js b/portal/src/main/webapp/extsys/vim/js/vimChartController.js
deleted file mode 100644
index cdfaa40..0000000
--- a/portal/src/main/webapp/extsys/vim/js/vimChartController.js
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright 2016-2017 ZTE Corporation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-var vm = avalon
- .define({
- $id: "vimChartController",
- $vimChartUrl: '../../api/vim/v1/{vim_id}/resource',
- $tenantChartUrl: '../../api/vim/v1/{vim_id}/resource/{tenant_name}',
- $tenantListUrl: '../../api/vim/v1/{vim_id}/tenants',
- $tenantRoleUrl: '../../api/vim/v1/{vim_id}/roles',
- vimInfo: {
- name: name,
- id: id,
- tenant: tenant,
- isAdmin: true
- },
- tenantSelectList: {
- condName: $.i18n.prop("com_zte_ums_eco_roc_vim_type"),
- component_type: 'select',
- selectItems: []
- },
- initChart: function () {
-
- //has admin role
- var tenantRoleUrl = vm.$tenantRoleUrl.replace("{vim_id}", vm.vimInfo.id);
- $.ajax({
- "type": 'get',
- "url": tenantRoleUrl,
- "dataType": "json",
- success: function (resp) {
- vm.vimInfo.isAdmin = (resp == null) ? false : resp.isAdminRole;
-
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- vimChart.growl("get [tenant Role] is error :" + textStatus + ":" + errorThrown, "danger");
- },
- complete: function () {
- if (vm.vimInfo.isAdmin == true) {
-
- //get all resource
- vm.vimChartLoad();
-
- //get tenant list
- vm.vimListLoad();
- }
-
- }
- });
- //get resource of tenant
- vm.tenantChartLoad();
- },
- gotoVimPage: function () {
- window.parent.ZteFrameWork.goToURLByIDAndNewAction('eco_roc_vimmgr');
- },
- vimListLoad: function () {
- var tenantListUrl = vm.$tenantListUrl.replace("{vim_id}", vm.vimInfo.id);
- $.ajax({
- "type": 'get',
- "url": tenantListUrl,
- "dataType": "json",
- success: function (resp) {
- vm.tenantSelectList.selectItems = (resp == null) ? [] : resp;
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- vimChart.growl("get [tenant List] is error :" + textStatus + ":" + errorThrown, "danger");
- }
- });
- },
- vimChartLoad: function () {
- var viminitData = {
- "resource": {
- "cpu": 0,
- "memoryMb": 503,
- "diskGb": 9.8
- },
- "usage": {
- "cpu": 0,
- "memoryMb": 0,
- "diskGb": 0
- }
- }
-
- vimChart.vimPieChartInit();
-
- var vimChartUrl = vm.$vimChartUrl.replace("{vim_id}", vm.vimInfo.id);
-
-
- $.ajax({
- "type": 'get',
- "url": vimChartUrl,
- "dataType": "json",
- success: function (resp) {
- var vimData = (resp == null) ? viminitData : resp;
- vimChart.vimPieChart(vimData);
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- vimChart.growl("get [virtual machine manager resource using status] is error :" + textStatus + ":" + errorThrown, "danger");
- }
- });
-
- },
- tenantChartLoad: function () {
- var tenantChartUrl = vm.$tenantChartUrl.replace("{vim_id}", vm.vimInfo.id).replace("{tenant_name}", vm.vimInfo.tenant);
-
- var tenantinitData = {
- "tenant_name": "",
- "errormsg": "",
- "quota": {
- "cpu": 0,
- "memoryMb": 0,
- "instances": 0,
- "floatingIps": 0,
- "securityGroups": 0,
- "volumeStorage": 0,
- "volumes": 0
- },
- "usage": {
- "cpu": 0,
- "memoryMb": 0,
- "instances": 0,
- "floatingIps": 0,
- "securityGroups": 0,
- "volumeStorage": 0,
- "volumes": 0
- }
- };
- vimChart.tenantPieChartInit();
- $.ajax({
- "type": 'get',
- "url": tenantChartUrl,
- "dataType": "json",
- success: function (resp) {
- var tenantData = (resp == null) ? tenantinitData : resp;
- if (tenantData.errormsg != null) {
- vimChart.growl(tenantData.errormsg, "danger");
- }
- vimChart.tenantPieChart(tenantData);
- },
- error: function (XMLHttpRequest, textStatus, errorThrown) {
- vimChart.growl("get [tenant quota using status] occur error :" + textStatus + ":" + errorThrown, "danger");
- }
- });
-
- }
-
- });
-avalon.scan();
-vm.initChart(); \ No newline at end of file
diff --git a/portal/src/main/webapp/extsys/vim/js/vimController.js b/portal/src/main/webapp/extsys/vim/js/vimController.js
index fec057b..b9e6212 100644
--- a/portal/src/main/webapp/extsys/vim/js/vimController.js
+++ b/portal/src/main/webapp/extsys/vim/js/vimController.js
@@ -266,9 +266,6 @@ var vm = avalon
var vimSave = $.extend(true, {}, vm.currentElement.$model);
vimSave["vimAuthInfos"] = $.extend(true, [], vm.currentElement["vimAuthInfos"].$model);
return vimSave;
- },
- gotoChartPage: function (oid, name, tenant) {
- window.location.href = "vimChart.html?" + oid + "&" + name + "&" + tenant;
}
});
vm.currentElement = $.extend(true, {}, vm.$blankElement);