@macallumharvey/first-test-wet 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/first-test-wet.cjs.development.js.map +1 -1
- package/dist/first-test-wet.cjs.production.min.js.map +1 -1
- package/dist/first-test-wet.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/WetModal.tsx +1 -0
- package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
- package/src/theme-wet-boew/assets/favicon.ico +0 -0
- package/src/theme-wet-boew/assets/logo.png +0 -0
- package/src/theme-wet-boew/assets/logo.svg +14 -0
- package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
- package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.js → theme-wet-boew/css/ie8-wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js → theme-wet-boew/css/ie8-wet-boew.min.css} +7 -7
- package/src/theme-wet-boew/css/theme.css +11357 -0
- package/src/theme-wet-boew/css/theme.min.css +6 -0
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.js → theme-wet-boew/css/wet-boew.css} +12 -10
- package/src/{wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js → theme-wet-boew/css/wet-boew.min.css} +6 -7
- package/src/theme-wet-boew/payload.json +66 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/mediacontrols.html +32 -33
- package/src/wet-boew/assets/sprites_share.png +0 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.css +112 -112
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/noscript.min.css +5 -5
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.css +32 -32
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.css +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.css +28 -28
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.css +16 -16
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.css +24 -24
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.css +8 -8
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.css +229 -229
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/additional-methods.js +1511 -1511
- package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/geomap-lib.js +3758 -3770
- package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.dataTables.js +15345 -15733
- package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.canvas.js +345 -345
- package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.js +3168 -3168
- package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.orderBars.js +282 -282
- package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.flot.pie.js +820 -820
- package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.magnific-popup.js +2060 -2060
- package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jquery.validate.js +1660 -1660
- package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/json-patch.js +314 -314
- package/src/wet-boew/js/deps/json-patch.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/jsonpointer.js +349 -349
- package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.js +53 -53
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.js +64 -64
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.js +160 -160
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.js +92 -92
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.js +94 -94
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.js +102 -102
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.js +95 -95
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.js +183 -183
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-matlab.min.js +1 -1
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.js +57 -57
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.js +140 -140
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.js +37 -37
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.js +81 -81
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.js +56 -56
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.js +59 -59
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.js +60 -60
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.js +63 -63
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.js +49 -49
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.js +67 -67
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.js +51 -51
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.js +55 -55
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.js +71 -71
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.js +45 -45
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/ol.js +1008 -1008
- package/src/wet-boew/js/deps/ol.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/prettify.js +1742 -1742
- package/src/wet-boew/js/deps/prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/proj4.js +2 -2
- package/src/wet-boew/js/deps/proj4.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/run_prettify.js +1998 -1998
- package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/tableparser.js +2216 -2216
- package/src/wet-boew/js/deps/tableparser.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/unorm.js +452 -452
- package/src/wet-boew/js/deps/unorm.min.js +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/af.js +246 -254
- package/src/wet-boew/js/i18n/af.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ar.js +284 -292
- package/src/wet-boew/js/i18n/ar.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/bg.js +284 -292
- package/src/wet-boew/js/i18n/bg.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/cs.js +285 -293
- package/src/wet-boew/js/i18n/cs.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/de.js +354 -362
- package/src/wet-boew/js/i18n/de.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/el.js +284 -292
- package/src/wet-boew/js/i18n/el.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/en.js +246 -254
- package/src/wet-boew/js/i18n/en.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/es.js +287 -295
- package/src/wet-boew/js/i18n/es.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/et.js +282 -290
- package/src/wet-boew/js/i18n/et.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/fr.js +313 -321
- package/src/wet-boew/js/i18n/fr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hi.js +246 -254
- package/src/wet-boew/js/i18n/hi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hu.js +284 -292
- package/src/wet-boew/js/i18n/hu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/hy.js +246 -254
- package/src/wet-boew/js/i18n/hy.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/id.js +283 -291
- package/src/wet-boew/js/i18n/id.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/is.js +282 -290
- package/src/wet-boew/js/i18n/is.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/it.js +311 -319
- package/src/wet-boew/js/i18n/it.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/iu.js +246 -254
- package/src/wet-boew/js/i18n/iu.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ja.js +285 -293
- package/src/wet-boew/js/i18n/ja.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ko.js +284 -292
- package/src/wet-boew/js/i18n/ko.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lt.js +284 -292
- package/src/wet-boew/js/i18n/lt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/lv.js +284 -292
- package/src/wet-boew/js/i18n/lv.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/nl.js +318 -326
- package/src/wet-boew/js/i18n/nl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pl.js +287 -295
- package/src/wet-boew/js/i18n/pl.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt-BR.js +246 -254
- package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/pt.js +270 -278
- package/src/wet-boew/js/i18n/pt.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/ru.js +284 -292
- package/src/wet-boew/js/i18n/ru.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sk.js +282 -290
- package/src/wet-boew/js/i18n/sk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/sq.js +246 -254
- package/src/wet-boew/js/i18n/sq.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/th.js +284 -292
- package/src/wet-boew/js/i18n/th.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/tr.js +286 -294
- package/src/wet-boew/js/i18n/tr.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/uk.js +284 -292
- package/src/wet-boew/js/i18n/uk.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/vi.js +284 -292
- package/src/wet-boew/js/i18n/vi.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh-Hans.js +246 -254
- package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/i18n/zh.js +285 -293
- package/src/wet-boew/js/i18n/zh.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
- package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
- package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
- package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.js +9814 -9814
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.js +4 -4
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist.js +423 -419
- package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
- package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.js +50 -50
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datalist_dynamic.min.js +7 -7
- package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/datepicker.js +338 -338
- package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
- package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/details.js +126 -126
- package/src/wet-boew/js/polyfills/details.min.js +8 -0
- package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.js +47 -47
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/jawsariafixes.min.js +15 -15
- package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/meter.js +140 -140
- package/src/wet-boew/js/polyfills/meter.min.js +8 -0
- package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/mobile.js +783 -784
- package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
- package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/progress.js +107 -107
- package/src/wet-boew/js/polyfills/progress.min.js +8 -0
- package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider.js +1343 -1343
- package/src/wet-boew/js/polyfills/slider.min.js +9 -0
- package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.js +73 -73
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/slider_wrapper.min.js +7 -7
- package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.js +29 -29
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/svg.min.js +7 -7
- package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.js +603 -603
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/polyfills/test.min.js +7 -7
- package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/wet-boew.js +17714 -20264
- package/src/wet-boew/js/wet-boew.min.js +9 -0
- package/src/wet-boew/js/wet-boew.min.js.map +1 -0
- package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/payload.json +1721 -1721
- package/src/wet-boew-cdn-4.0.81.1/Licence-fr.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/License-en.txt +0 -1
- package/src/wet-boew-cdn-4.0.81.1/assets/sprites_share.png +0 -0
- package/src/wet-boew-cdn-4.0.81.1/js/deps/additional-methods.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/geomap-lib.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.dataTables.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.canvas.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.orderBars.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.flot.pie.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.magnific-popup.min.js +0 -4
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jquery.validate.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/deps/json-patch.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/jsonpointer.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/ol.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/proj4.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/run_prettify.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/tableparser.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/deps/unorm.min.js +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/af.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ar.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/bg.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/cs.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/de.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/el.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/en.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/es.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/et.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/fr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/hy.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/id.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/is.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/it.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/iu.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ja.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ko.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/lv.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/nl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pl.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt-BR.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/pt.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/ru.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/sq.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/th.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/tr.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/uk.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/vi.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh-Hans.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/i18n/zh.min.js +0 -7
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/ie8-wet-boew2.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datalist_dynamic.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/datepicker.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/details.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/jawsariafixes.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/meter.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/mobile.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js +0 -8
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/progress.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/slider_wrapper.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/svg.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/polyfills/test.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js +0 -9
- package/src/wet-boew-cdn-4.0.81.1/js/wet-boew.min.js.map +0 -1
- package/src/wet-boew-cdn-4.0.81.1/package.json +0 -15
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/cloud-popup-relative.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/fd-slider-sprite.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/loading.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-minus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-plus-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/assets/zoom-world-mini.png +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datalist.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/datepicker.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/details.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/mathml.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/meter.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/progress.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/css/polyfills/slider.min.css +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/mml-chtml.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-apollo.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-basic.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-clj.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-css.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-dart.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-erlang.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-go.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-hs.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lasso.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lisp.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-llvm.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-logtalk.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-lua.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-ml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-mumps.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-n.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-pascal.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-proto.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-r.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rd.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-rust.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-scala.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-sql.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-swift.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tcl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-tex.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vb.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-vhdl.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-wiki.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-xq.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/deps/lang-yaml.min.js +0 -0
- /package/src/{wet-boew-cdn-4.0.81.1 → wet-boew}/js/jquery/2.2.4/jquery.min.map +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
Voir https://github.com/wet-boew/wet-boew/blob/master/LICENSE
|
@@ -1 +0,0 @@
|
|
1
|
-
See https://github.com/wet-boew/wet-boew/blob/master/LICENSE
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* jQuery Validation Plugin v1.19.5
|
3
|
-
*
|
4
|
-
* https://jqueryvalidation.org/
|
5
|
-
*
|
6
|
-
* Copyright (c) 2022 Jörn Zaefferer
|
7
|
-
* Released under the MIT license
|
8
|
-
*/
|
9
|
-
!function(t){"function"==typeof define&&define.amd?define(["jquery","./jquery.validate"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(o){function r(t){return t.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"")}return o.validator.addMethod("maxWords",function(t,e,a){return this.optional(e)||r(t).match(/\b\w+\b/g).length<=a},o.validator.format("Please enter {0} words or less.")),o.validator.addMethod("minWords",function(t,e,a){return this.optional(e)||r(t).match(/\b\w+\b/g).length>=a},o.validator.format("Please enter at least {0} words.")),o.validator.addMethod("rangeWords",function(t,e,a){var t=r(t),d=/\b\w+\b/g;return this.optional(e)||t.match(d).length>=a[0]&&t.match(d).length<=a[1]},o.validator.format("Please enter between {0} and {1} words.")),o.validator.addMethod("abaRoutingNumber",function(t){var e=0,a=t.split(""),d=a.length;if(9!==d)return!1;for(var r=0;r<d;r+=3)e+=3*parseInt(a[r],10)+7*parseInt(a[r+1],10)+parseInt(a[r+2],10);return 0!==e&&e%10==0},"Please enter a valid routing number."),o.validator.addMethod("accept",function(t,e,a){var d,r,a="string"==typeof a?a.replace(/\s/g,""):"image/*",i=this.optional(e);if(i)return i;if("file"===o(e).attr("type")&&(a=a.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*"),e.files)&&e.files.length)for(r=new RegExp(".?("+a+")$","i"),d=0;d<e.files.length;d++)if(!e.files[d].type.match(r))return!1;return!0},o.validator.format("Please enter a value with a valid mimetype.")),o.validator.addMethod("alphanumeric",function(t,e){return this.optional(e)||/^\w+$/i.test(t)},"Letters, numbers, and underscores only please."),o.validator.addMethod("bankaccountNL",function(t,e){if(this.optional(e))return!0;if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(t))return!1;for(var a=t.replace(/ /g,""),d=0,r=a.length,i=0;i<r;i++)d+=(r-i)*a.substring(i,i+1);return d%11==0},"Please specify a valid bank account number."),o.validator.addMethod("bankorgiroaccountNL",function(t,e){return this.optional(e)||o.validator.methods.bankaccountNL.call(this,t,e)||o.validator.methods.giroaccountNL.call(this,t,e)},"Please specify a valid bank or giro account number."),o.validator.addMethod("bic",function(t,e){return this.optional(e)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(t.toUpperCase())},"Please specify a valid BIC code."),o.validator.addMethod("cifES",function(t,e){"use strict";if(this.optional(e))return!0;var a,d,e=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi),r=t.substring(0,1),i=t.substring(1,8),n=t.substring(8,9),o=0,s=0;if(9!==t.length||!e.test(t))return!1;for(a=0;a<i.length;a++)d=parseInt(i[a],10),a%2==0?s+=(d*=2)<10?d:d-9:o+=d;return e=(10-(o+s).toString().substr(-1)).toString(),e=9<parseInt(e,10)?"0":e,t="JABCDEFGHI".substr(e,1).toString(),r.match(/[ABEH]/)?n===e:!r.match(/[KPQS]/)&&n===e||n===t},"Please specify a valid CIF number."),o.validator.addMethod("cnhBR",function(t){if(11!==(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length)return!1;var e,a,d,r=0,i=0,n=t.charAt(0);if(new Array(12).join(n)===t)return!1;for(d=9,a=0;a<9;++a,--d)r+=t.charAt(a)*d;for(10<=(n=r%11)&&(n=0,i=2),a=r=0,d=1;a<9;++a,++d)r+=t.charAt(a)*d;return 10<=(e=r%11)?e=0:e-=i,String(n).concat(e)===t.substr(-2)},"Please specify a valid CNH number."),o.validator.addMethod("cnpjBR",function(t,e){"use strict";if(this.optional(e))return!0;if(14!==(t=t.replace(/[^\d]+/g,"")).length)return!1;if("00000000000000"===t||"11111111111111"===t||"22222222222222"===t||"33333333333333"===t||"44444444444444"===t||"55555555555555"===t||"66666666666666"===t||"77777777777777"===t||"88888888888888"===t||"99999999999999"===t)return!1;for(var a=t.length-2,d=t.substring(0,a),e=t.substring(a),r=0,i=a-7,n=a;1<=n;n--)r+=d.charAt(a-n)*i--,i<2&&(i=9);if((r%11<2?0:11-r%11)!==parseInt(e.charAt(0),10))return!1;for(var d=t.substring(0,a+=1),r=0,i=a-7,o=a;1<=o;o--)r+=d.charAt(a-o)*i--,i<2&&(i=9);return(r%11<2?0:11-r%11)===parseInt(e.charAt(1),10)},"Please specify a CNPJ value number."),o.validator.addMethod("cpfBR",function(t,e){"use strict";if(this.optional(e))return!0;if(11===(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length){var a,d=0,e=parseInt(t.substring(9,10),10),r=parseInt(t.substring(10,11),10),i=function(t,e){t=10*t%11;return(t=10!==t&&11!==t?t:0)===e};if(""!==t&&"00000000000"!==t&&"11111111111"!==t&&"22222222222"!==t&&"33333333333"!==t&&"44444444444"!==t&&"55555555555"!==t&&"66666666666"!==t&&"77777777777"!==t&&"88888888888"!==t&&"99999999999"!==t){for(a=1;a<=9;a++)d+=parseInt(t.substring(a-1,a),10)*(11-a);if(i(d,e)){for(d=0,a=1;a<=10;a++)d+=parseInt(t.substring(a-1,a),10)*(12-a);return i(d,r)}}}return!1},"Please specify a valid CPF number."),o.validator.addMethod("creditcard",function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var a,d,r=0,i=0,n=!1;if((t=t.replace(/\D/g,"")).length<13||19<t.length)return!1;for(a=t.length-1;0<=a;a--)d=t.charAt(a),i=parseInt(d,10),n&&9<(i*=2)&&(i-=9),r+=i,n=!n;return r%10==0},"Please enter a valid credit card number."),o.validator.addMethod("creditcardtypes",function(t,e,a){if(/[^0-9\-]+/.test(t))return!1;t=t.replace(/\D/g,"");var d=0;return a.mastercard&&(d|=1),a.visa&&(d|=2),a.amex&&(d|=4),a.dinersclub&&(d|=8),a.enroute&&(d|=16),a.discover&&(d|=32),a.jcb&&(d|=64),a.unknown&&(d|=128),1&(d=a.all?255:d)&&(/^(5[12345])/.test(t)||/^(2[234567])/.test(t))||2&d&&/^(4)/.test(t)?16===t.length:4&d&&/^(3[47])/.test(t)?15===t.length:8&d&&/^(3(0[012345]|[68]))/.test(t)?14===t.length:16&d&&/^(2(014|149))/.test(t)?15===t.length:32&d&&/^(6011)/.test(t)||64&d&&/^(3)/.test(t)?16===t.length:64&d&&/^(2131|1800)/.test(t)?15===t.length:!!(128&d)},"Please enter a valid credit card number."),o.validator.addMethod("currency",function(t,e,a){var d="string"==typeof a,r=d?a:a[0],d=d||a[1],r=r.replace(/,/g,""),a="^["+(r=d?r+"]":r+"]?")+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$";return a=new RegExp(a),this.optional(e)||a.test(t)},"Please specify a valid currency."),o.validator.addMethod("dateFA",function(t,e){return this.optional(e)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(t)},o.validator.messages.date),o.validator.addMethod("dateITA",function(t,e){var a,d,r,i=!1,i=!!/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(t)&&(t=t.split("/"),a=parseInt(t[0],10),d=parseInt(t[1],10),t=parseInt(t[2],10),(r=new Date(Date.UTC(t,d-1,a,12,0,0,0))).getUTCFullYear()===t)&&r.getUTCMonth()===d-1&&r.getUTCDate()===a;return this.optional(e)||i},o.validator.messages.date),o.validator.addMethod("dateNL",function(t,e){return this.optional(e)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(t)},o.validator.messages.date),o.validator.addMethod("extension",function(t,e,a){return a="string"==typeof a?a.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(e)||t.match(new RegExp("\\.("+a+")$","i"))},o.validator.format("Please enter a value with a valid extension.")),o.validator.addMethod("giroaccountNL",function(t,e){return this.optional(e)||/^[0-9]{1,7}$/.test(t)},"Please specify a valid giro account number."),o.validator.addMethod("greaterThan",function(t,e,a){a=o(a);return this.settings.onfocusout&&a.not(".validate-greaterThan-blur").length&&a.addClass("validate-greaterThan-blur").on("blur.validate-greaterThan",function(){o(e).valid()}),t>a.val()},"Please enter a greater value."),o.validator.addMethod("greaterThanEqual",function(t,e,a){a=o(a);return this.settings.onfocusout&&a.not(".validate-greaterThanEqual-blur").length&&a.addClass("validate-greaterThanEqual-blur").on("blur.validate-greaterThanEqual",function(){o(e).valid()}),t>=a.val()},"Please enter a greater value."),o.validator.addMethod("iban",function(t,e){if(this.optional(e))return!0;var a,d,r,i,e=t.replace(/ /g,"").toUpperCase(),n="",o=!0,s="";if(e.length<5)return!1;if(void 0!==(t={AL:"\\d{8}[\\dA-Z]{16}",AD:"\\d{8}[\\dA-Z]{12}",AT:"\\d{16}",AZ:"[\\dA-Z]{4}\\d{20}",BE:"\\d{12}",BH:"[A-Z]{4}[\\dA-Z]{14}",BA:"\\d{16}",BR:"\\d{23}[A-Z][\\dA-Z]",BG:"[A-Z]{4}\\d{6}[\\dA-Z]{8}",CR:"\\d{17}",HR:"\\d{17}",CY:"\\d{8}[\\dA-Z]{16}",CZ:"\\d{20}",DK:"\\d{14}",DO:"[A-Z]{4}\\d{20}",EE:"\\d{16}",FO:"\\d{14}",FI:"\\d{14}",FR:"\\d{10}[\\dA-Z]{11}\\d{2}",GE:"[\\dA-Z]{2}\\d{16}",DE:"\\d{18}",GI:"[A-Z]{4}[\\dA-Z]{15}",GR:"\\d{7}[\\dA-Z]{16}",GL:"\\d{14}",GT:"[\\dA-Z]{4}[\\dA-Z]{20}",HU:"\\d{24}",IS:"\\d{22}",IE:"[\\dA-Z]{4}\\d{14}",IL:"\\d{19}",IT:"[A-Z]\\d{10}[\\dA-Z]{12}",KZ:"\\d{3}[\\dA-Z]{13}",KW:"[A-Z]{4}[\\dA-Z]{22}",LV:"[A-Z]{4}[\\dA-Z]{13}",LB:"\\d{4}[\\dA-Z]{20}",LI:"\\d{5}[\\dA-Z]{12}",LT:"\\d{16}",LU:"\\d{3}[\\dA-Z]{13}",MK:"\\d{3}[\\dA-Z]{10}\\d{2}",MT:"[A-Z]{4}\\d{5}[\\dA-Z]{18}",MR:"\\d{23}",MU:"[A-Z]{4}\\d{19}[A-Z]{3}",MC:"\\d{10}[\\dA-Z]{11}\\d{2}",MD:"[\\dA-Z]{2}\\d{18}",ME:"\\d{18}",NL:"[A-Z]{4}\\d{10}",NO:"\\d{11}",PK:"[\\dA-Z]{4}\\d{16}",PS:"[\\dA-Z]{4}\\d{21}",PL:"\\d{24}",PT:"\\d{21}",RO:"[A-Z]{4}[\\dA-Z]{16}",SM:"[A-Z]\\d{10}[\\dA-Z]{12}",SA:"\\d{2}[\\dA-Z]{18}",RS:"\\d{18}",SK:"\\d{20}",SI:"\\d{15}",ES:"\\d{20}",SE:"\\d{20}",CH:"\\d{5}[\\dA-Z]{12}",TN:"\\d{20}",TR:"\\d{5}[\\dA-Z]{17}",AE:"\\d{3}\\d{16}",GB:"[A-Z]{4}\\d{14}",VG:"[\\dA-Z]{4}\\d{16}"}[e.substring(0,2)])&&!new RegExp("^[A-Z]{2}\\d{2}"+t+"$","").test(e))return!1;for(a=e.substring(4,e.length)+e.substring(0,4),r=0;r<a.length;r++)(o="0"!==(d=a.charAt(r))?!1:o)||(n+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(d));for(i=0;i<n.length;i++)s=(""+s+n.charAt(i))%97;return 1===s},"Please specify a valid IBAN."),o.validator.addMethod("integer",function(t,e){return this.optional(e)||/^-?\d+$/.test(t)},"A positive or negative non-decimal number please."),o.validator.addMethod("ipv4",function(t,e){return this.optional(e)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(t)},"Please enter a valid IP v4 address."),o.validator.addMethod("ipv6",function(t,e){return this.optional(e)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(t)},"Please enter a valid IP v6 address."),o.validator.addMethod("lessThan",function(t,e,a){a=o(a);return this.settings.onfocusout&&a.not(".validate-lessThan-blur").length&&a.addClass("validate-lessThan-blur").on("blur.validate-lessThan",function(){o(e).valid()}),t<a.val()},"Please enter a lesser value."),o.validator.addMethod("lessThanEqual",function(t,e,a){a=o(a);return this.settings.onfocusout&&a.not(".validate-lessThanEqual-blur").length&&a.addClass("validate-lessThanEqual-blur").on("blur.validate-lessThanEqual",function(){o(e).valid()}),t<=a.val()},"Please enter a lesser value."),o.validator.addMethod("lettersonly",function(t,e){return this.optional(e)||/^[a-z]+$/i.test(t)},"Letters only please."),o.validator.addMethod("letterswithbasicpunc",function(t,e){return this.optional(e)||/^[a-z\-.,()'"\s]+$/i.test(t)},"Letters or punctuation only please."),o.validator.addMethod("maxfiles",function(t,e,a){return!!this.optional(e)||!("file"===o(e).attr("type")&&e.files&&e.files.length>a)},o.validator.format("Please select no more than {0} files.")),o.validator.addMethod("maxsize",function(t,e,a){if(!this.optional(e)&&"file"===o(e).attr("type")&&e.files&&e.files.length)for(var d=0;d<e.files.length;d++)if(e.files[d].size>a)return!1;return!0},o.validator.format("File size must not exceed {0} bytes each.")),o.validator.addMethod("maxsizetotal",function(t,e,a){if(!this.optional(e)&&"file"===o(e).attr("type")&&e.files&&e.files.length)for(var d=0,r=0;r<e.files.length;r++)if(a<(d+=e.files[r].size))return!1;return!0},o.validator.format("Total size of all files must not exceed {0} bytes.")),o.validator.addMethod("mobileNL",function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(t)},"Please specify a valid mobile number."),o.validator.addMethod("mobileRU",function(t,e){t=t.replace(/\(|\)|\s+|-/g,"");return this.optional(e)||9<t.length&&/^((\+7|7|8)+([0-9]){10})$/.test(t)},"Please specify a valid mobile number."),o.validator.addMethod("mobileUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||9<t.length&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number."),o.validator.addMethod("netmask",function(t,e){return this.optional(e)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(t)},"Please enter a valid netmask."),o.validator.addMethod("nieES",function(t,e){"use strict";var a;return!(!this.optional(e)&&(e=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi),a=t.substr(t.length-1).toUpperCase(),10<(t=t.toString().toUpperCase()).length||t.length<9||!e.test(t)||(e=9===(t=t.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2")).length?t.substr(0,8):t.substr(0,9),"TRWAGMYFPDXBNJZSQVHLCKET".charAt(parseInt(e,10)%23)!==a)))},"Please specify a valid NIE number."),o.validator.addMethod("nifES",function(t,e){"use strict";return!!this.optional(e)||!!(t=t.toUpperCase()).match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")&&(/^[0-9]{8}[A-Z]{1}$/.test(t)?"TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,0)%23)===t.charAt(8):!!/^[KLM]{1}/.test(t)&&t[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(t.substring(8,1)%23))},"Please specify a valid NIF number."),o.validator.addMethod("nipPL",function(t){"use strict";if(10!==(t=t.replace(/[^0-9]/g,"")).length)return!1;for(var e=[6,5,7,2,3,4,5,6,7],a=0,d=0;d<9;d++)a+=e[d]*t[d];var r=a%11;return(10==r?0:r)===parseInt(t[9],10)},"Please specify a valid NIP number."),o.validator.addMethod("nisBR",function(t){var e,a,d,r,i=0;if(11!==(t=t.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"")).length)return!1;for(a=parseInt(t.substring(10,11),10),e=parseInt(t.substring(0,10),10),d=2;d<12;d++)10===(r=d)&&(r=2),i+=e%10*(r=11===d?3:r),e=parseInt(e/10,10);return a===(t=1<(t=i%11)?11-t:0)},"Please specify a valid NIS/PIS number."),o.validator.addMethod("notEqualTo",function(t,e,a){return this.optional(e)||!o.validator.methods.equalTo.call(this,t,e,a)},"Please enter a different value, values must not be the same."),o.validator.addMethod("nowhitespace",function(t,e){return this.optional(e)||/^\S+$/i.test(t)},"No white space please."),o.validator.addMethod("pattern",function(t,e,a){return!!this.optional(e)||(a="string"==typeof a?new RegExp("^(?:"+a+")$"):a).test(t)},"Invalid format."),o.validator.addMethod("phoneNL",function(t,e){return this.optional(e)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(t)},"Please specify a valid phone number."),o.validator.addMethod("phonePL",function(t,e){t=t.replace(/\s+/g,"");return this.optional(e)||/^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/.test(t)},"Please specify a valid phone number."),o.validator.addMethod("phonesUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||9<t.length&&t.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number."),o.validator.addMethod("phoneUK",function(t,e){return t=t.replace(/\(|\)|\s+|-/g,""),this.optional(e)||9<t.length&&t.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/)},"Please specify a valid phone number."),o.validator.addMethod("phoneUS",function(t,e){return t=t.replace(/\s+/g,""),this.optional(e)||9<t.length&&t.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number."),o.validator.addMethod("postalcodeBR",function(t,e){return this.optional(e)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(t)},"Informe um CEP válido."),o.validator.addMethod("postalCodeCA",function(t,e){return this.optional(e)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(t)},"Please specify a valid postal code."),o.validator.addMethod("postalcodeIT",function(t,e){return this.optional(e)||/^\d{5}$/.test(t)},"Please specify a valid postal code."),o.validator.addMethod("postalcodeNL",function(t,e){return this.optional(e)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(t)},"Please specify a valid postal code."),o.validator.addMethod("postcodeUK",function(t,e){return this.optional(e)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(t)},"Please specify a valid UK postcode."),o.validator.addMethod("require_from_group",function(t,e,a){var d=o(a[1],e.form),r=d.eq(0),i=r.data("valid_req_grp")?r.data("valid_req_grp"):o.extend({},this),a=d.filter(function(){return i.elementValue(this)}).length>=a[0];return r.data("valid_req_grp",i),o(e).data("being_validated")||(d.data("being_validated",!0),d.each(function(){i.element(this)}),d.data("being_validated",!1)),a},o.validator.format("Please fill at least {0} of these fields.")),o.validator.addMethod("skip_or_fill_minimum",function(t,e,a){var d=o(a[1],e.form),r=d.eq(0),i=r.data("valid_skip")?r.data("valid_skip"):o.extend({},this),n=d.filter(function(){return i.elementValue(this)}).length,n=0===n||n>=a[0];return r.data("valid_skip",i),o(e).data("being_validated")||(d.data("being_validated",!0),d.each(function(){i.element(this)}),d.data("being_validated",!1)),n},o.validator.format("Please either skip these fields or fill at least {0} of them.")),o.validator.addMethod("stateUS",function(t,e,a){var d=void 0===a,r=!d&&void 0!==a.caseSensitive&&a.caseSensitive,i=!d&&void 0!==a.includeTerritories&&a.includeTerritories,d=!d&&void 0!==a.includeMilitary&&a.includeMilitary,a=i||d?i&&d?"^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":i?"^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$":"^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$":"^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$";return a=r?new RegExp(a):new RegExp(a,"i"),this.optional(e)||a.test(t)},"Please specify a valid state."),o.validator.addMethod("strippedminlength",function(t,e,a){return o(t).text().length>=a},o.validator.format("Please enter at least {0} characters.")),o.validator.addMethod("time",function(t,e){return this.optional(e)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(t)},"Please enter a valid time, between 00:00 and 23:59."),o.validator.addMethod("time12h",function(t,e){return this.optional(e)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(t)},"Please enter a valid time in 12-hour am/pm format."),o.validator.addMethod("url2",function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?)|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff])|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62}\.)))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)},o.validator.messages.url),o.validator.addMethod("vinUS",function(t){if(17!==t.length)return!1;for(var e,a,d,r,i,n=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],o=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],s=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],l=0,u=0;u<17;u++){if(d=s[u],a=t.slice(u,u+1),8===u&&(i=a),isNaN(a)){for(e=0;e<n.length;e++)if(a.toUpperCase()===n[e]){a=o[e],a*=d,isNaN(i)&&8===e&&(i=n[e]);break}}else a*=d;l+=a}return(r=10===(r=l%11)?"X":r)===i},"The specified vehicle identification number (VIN) is invalid."),o.validator.addMethod("zipcodeUS",function(t,e){return this.optional(e)||/^\d{5}(-\d{4})?$/.test(t)},"The specified US ZIP Code is invalid."),o.validator.addMethod("ziprange",function(t,e){return this.optional(e)||/^90[2-5]\d\{2\}-\d{4}$/.test(t)},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx."),o});
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(L,A,l){"use strict";function s(e){var t=e.target,l=(this.id=t.attr("id"),this.mapLayers=[],this.layerDiv=t.find(".wb-geomap-layers").attr("id","geomap-layers-"+this.id),this.legendDiv=t.find(".wb-geomap-legend").attr("id","geomap-legend-"+this.id),this.mapDiv=t.find(".wb-geomap-map").attr("id","geomap-map-"+this.id),this.settings=e.settings,this.settings.aspectRatio=this.settings.basemap&&this.settings.basemap.mapOptions&&void 0!==this.settings.basemap.mapOptions.aspectRatio?this.settings.basemap.mapOptions.aspectRatio:.8,this.map=V(this),this.legend=new f(this),t=this.addBasemap(),this.map.setView(new ol.View(t)),this.addMapLayers(),this.settings.mapExtent?this.zoomAOI(this.settings.mapExtent):t.extent&&this.map.getView().fit(t.extent,this.map.getSize()),this.mapLayers);this.map.getLayersByName=function(e){for(var t,o=l.length,a={popup:{visible:function(){return!0}},geometry:{bounds:ol.proj.transform(this.getOverlays().getArray()[0].getPosition(),"EPSG:3978","EPSG:4326")}},i=0;i!==o;i+=1)if((t=l[i]).id&&t.id===e)return[{features:[a]}]},this.loadControls(),this.accessibilize(),this.createPopup(),T.on("wb-ready.wb-geomap","#"+this.id,function(){L("#"+this.id).find(".geomap-progress").remove()})}function F(e,t){var o=this,a=[];return this.map=e,this.settings=t,this.id=this.settings.tableId||j(),this.layer=this.createOLLayer(),this.settings.accessible=void 0===this.settings.accessible||this.settings.accessible,this.settings.visible=void 0===this.settings.visible||this.settings.visible,this.settings.zoom=void 0===this.settings.zoom||this.settings.zoom,this.settings.accessible&&this.map.layerDiv.append("<div class='panel panel-default'><div class='panel-heading'><div class='panel-title' role='heading'>"+this.settings.title+"</div></div><div class='panel-body'><div data-layer='"+this.id+"' class='geomap-table-wrapper' style='display:none;'></div></div></div>"),Object.defineProperty(o,"isVisible",{get:function(){return o.visibilityState},set:function(t){o.visibilityState=t,a.forEach(function(e){return e(t)})}}),o.layer?(this.observeVisibility=function(e){a.push(e)},this.observeVisibility(function(e){var t=L("div[ data-layer='"+o.id+"' ].geomap-table-wrapper");e?(t.fadeIn(),t.parent().find(".layer-msg").remove()):(t.fadeOut(),t.parent().append("<div class='layer-msg'><p>"+I.hiddenLayer+"</p></div>").fadeIn()),o.layer.setVisible(o.isVisible)}),0!==this.map.legendDiv.length&&this.addToLegend(),this.isVisible=this.settings.visible,this):null}function v(e,t){var o;return e.getInteractions().forEach(function(e){e instanceof t&&(o=e)}),o}function N(){var e=O(l.drawColours[o],.5),t=O(l.drawColours[o],1);return(o+=1)===l.drawColours.length&&(o=0),{fill:e,stroke:t,transparent:[0,0,0,0]}}function p(){var n,p,c,g,d,o,u,m,h,y,b,f,v=N(),a=(this.createStyleFunction=function(e,t){return o=(d=e)&&d.type?d.type:"default",function(e){return"rule"===o?new a(e,t):"symbol"===o?new i:"default"===o?new l(e,t):"unique"===o?new s(e,t):"select"===o?new r(e,t):void 0}},function(e){for(var t,o,a=d.rule,i=a.length,l={EQUAL_TO:function(e,t){return String(e)===String(t[0])},GREATER_THAN:function(e,t){return e>t[0]},LESS_THAN:function(e,t){return e<t[0]},BETWEEN:function(e,t){return e>=t[0]&&e<=t[1]}},s=e&&e.getGeometry()?e.getGeometry().getType():"Polygon",r=0;r!==i;r+=1)if(o=(t=a[r]).filter,b=t.init.strokeDash||[1,0],f=t.init.strokeWidth||1,m=t.init.fillOpacity||t.init.graphicOpacity||.5,h=t.init.pointRadius||5,y=t.init.strokeColor?O(t.init.strokeColor,m):v.transparent,u=O(t.init.fillColor,m),g=t.init.graphicName||null,n=t.init.externalGraphic||null,p=t.init.graphicHeight||25,c=t.init.graphicWidth||25,l[o](e.attributes[t.field],t.value))switch(s){case"Polygon":return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});case"Point":return g?w({symbol:g,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,lineDash:b}),radius:h}):n?x({src:n,opacity:m,size:[c,p]}):S({radius:h,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});case"LineString":return C({stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});default:return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})})}}),i=function(){return m=d.init.fillOpacity||d.init.graphicOpacity||1,h=d.init.pointRadius||5,y=d.init.strokeColor?O(d.init.strokeColor,m):v.transparent,u=O(d.init.fillColor,m),g=d.init.graphicName||null,n=d.init.externalGraphic||null,p=d.init.graphicHeight||25,c=d.init.graphicWidth||25,g?w({symbol:d.init.graphicName,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,lineDash:b}),radius:h}):n?x({src:n,opacity:m,size:[c,p]}):S({radius:h,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f})})},l=function(){return m=d.fillOpacity||d.graphicOpacity||1,u=d.fillColor?O(d.fillColor,m):v.transparent,y=d.strokeColor?O(d.strokeColor,m):v.transparent,f=d.strokeWidth||1,b=d.strokeDash||[1,0],[new ol.style.Style({image:new ol.style.Circle({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b}),radius:5}),fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})})]},s=function(e,t){var o,a,i=d.field;for(o in d.init)switch(a=d.init[o],b=a.strokeDash||[1,0],f=a.strokeWidth||1,m=a.fillOpacity||a.graphicOpacity||.5,h=a.pointRadius||5,y=a.strokeColor?O(a.strokeColor,m):v.transparent,u=a.fillColor?O(a.fillColor,m):null,p=a.graphicHeight||25,n=a.externalGraphic,c=a.graphicWidth||25,t){case"Polygon":if(e.attributes&&e.attributes[i]===o)return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});break;case"Point":if(n){if(e.attributes&&e.attributes[i]===o)return x({src:n,opacity:m,size:[c,p]})}else if(e.attributes&&e.attributes[i]===o)return S({radius:h,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});break;case"LineString":if(e.attributes&&e.attributes[i]===o)return C({stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});break;default:if(e.attributes&&e.attributes[i]===o)return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})})}},r=function(e,t){switch(b=d.strokeDash||[1,0],f=d.strokeWidth||1,m=d.fillOpacity||d.graphicOpacity||.5,h=d.pointRadius||5,y=d.strokeColor?O(d.strokeColor,m):v.transparent,u=d.fillColor?O(d.fillColor,m):null,p=d.graphicHeight||25,n=d.externalGraphic,c=d.graphicWidth||25,t){case"Polygon":return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});case"Point":return n?x({src:n,opacity:m,size:[c,p]}):S({radius:h,fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});case"LineString":return C({stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})});default:return k({fill:new ol.style.Fill({color:u}),stroke:new ol.style.Stroke({color:y,width:f,lineDash:b})})}}}function w(e){return{square:[new ol.style.Style({image:new ol.style.RegularShape({fill:e.fill,stroke:e.stroke,points:4,radius:e.radius,angle:Math.PI/4})})],triangle:[new ol.style.Style({image:new ol.style.RegularShape({fill:e.fill,stroke:e.stroke,points:3,radius:e.radius,rotation:Math.PI/4,angle:0})})],star:[new ol.style.Style({image:new ol.style.RegularShape({fill:e.fill,stroke:e.stroke,points:5,radius:e.radius,radius2:.4*e.radius,angle:0})})],cross:[new ol.style.Style({image:new ol.style.RegularShape({fill:e.fill,stroke:e.stroke,points:4,radius:e.radius,radius2:0,angle:0})})],x:[new ol.style.Style({image:new ol.style.RegularShape({fill:e.fill,stroke:e.stroke,points:4,radius:e.radius,radius2:0,angle:Math.PI/4})})]}[e.symbol]}function x(e){return[new ol.style.Style({image:new ol.style.Icon({opacity:e.opacity,src:e.src,size:e.size})})]}function S(e){return[new ol.style.Style({image:new ol.style.Circle({radius:e.radius,fill:e.fill,stroke:e.stroke})})]}function k(e){return[new ol.style.Style({fill:e.fill,stroke:e.stroke})]}function C(e){return[new ol.style.Style({stroke:e.stroke})]}function O(e,t){var o=(e+"").trim(),a=null,i=o.match(/^#?(([0-9a-zA-Z]{3}){1,3})$/),t=t||1;return i?(6===(o=i[1]).length?a=[parseInt(o.substring(0,2),16),parseInt(o.substring(2,4),16),parseInt(o.substring(4,6),16),t]:3===o.length&&(a=[parseInt(o.substring(0,1)+o.substring(0,1),16),parseInt(o.substring(1,2)+o.substring(1,2),16),parseInt(o.substring(2,3)+o.substring(2,3),16),t]),a):e}function M(e,t){return"<label class='wb-inv' for='cb_"+t.getId()+"'>"+I.labelSelect+"</label><input type='checkbox' id='cb_"+t.getId()+"' class='geomap-cbx' data-map='"+e.map.id+"' data-layer='"+t.layerId+"' data-feature='"+t.getId()+"' />"}function z(e,t){return"<a href='javascript:;' data-map='"+e.map.id+"' data-layer='"+t.layerId+"' data-feature='"+t.getId()+"' class='btn btn-link geomap-zoomto' alt='"+I.zoomFeature+"' role='button'><span class='glyphicon glyphicon-zoom-in'></span></a>"}function u(e,t,o){if(t){var a=o.getOverlays().getArray()[0],i=L(A.getElementById("popup-geomap-map-"+o.id)),l="",o=E(o,t.layerId);if(t&&t.attributes){var s,r,n=t.getGeometry(),n="Point"===n.getType()?n.getCoordinates():event.mapBrowserEvent.coordinate,p=t.attributes;if(o.popupsInfo)for(s in l+=o.popupsInfo.content,p)Object.prototype.hasOwnProperty.call(p,s)&&(r=new RegExp("_"+s,"igm"),l=l.replace(r,p[s]));else for(s in p)Object.prototype.hasOwnProperty.call(p,s)&&(l+="<tr><th><strong>"+s+"</strong></th><td> "+p[s]+"</td></tr>");i.find(".popup-content").html("<h5>"+t.layerTitle+"</h5><table style='width:100%;'>"+l+"</table>"),a.setPosition(n)}else a.setPosition(void 0)}}function r(e){for(var t,o=b.length-1;-1!==o;--o)if((t=b[o]).id===e)return t}function m(e,t,o){for(var a=[],i=new ol.proj.Projection({code:"EPSG:4326"}),l=e.map.getView().getProjection(),s=D(parseFloat(t[0]),parseFloat(t[1]),parseFloat(t[2]),parseFloat(t[3])),r=s.length-1;-1!==r;--r)a.push([s[r].getCoordinates()[0],s[r].getCoordinates()[1]]);return t=new ol.Feature({geometry:new ol.geom.Polygon([a]).transform(i,l)}),o||E(e.map,"locLayer").getSource().addFeature(t),t}function a(p){var e=A.createElement("button"),t=A.createElement("div");e.innerHTML="?",e.title=I.accessTitle,e.setAttribute("type","button"),e.addEventListener("click",function(){var e=A.createElement("div"),t=A.createElement("header"),o=A.createElement("h3"),a=A.createElement("a"),i=A.createElement("div"),l=A.createAttribute("role"),s=A.createAttribute("title"),r=A.createAttribute("href"),n=(e.className="panel panel-default geomap-help-dialog ol-control ",t.className="panel-heading",o.innerHTML=I.accessTitle,o.className="panel-title",t.appendChild(o),s.value=I.dismiss,a.setAttributeNode(s),r.value="#",a.setAttributeNode(r),l.value="button",a.setAttributeNode(l),a.innerHTML="×<span class='wb-inv'>"+I.dismiss+"</span>",a.className="btn btn-link",e.appendChild(a),i.innerHTML="<p>"+I.access+"</p>",i.className="panel-body",e.appendChild(t),e.appendChild(i),new ol.control.Control({element:e}));a.addEventListener("click",function(e){e.preventDefault(),L(e.target).closest(".geomap-help-dialog").fadeOut(function(){p.map.removeControl(n)})}),p.map.addControl(n)},!1),t.className="geomap-help-btn ol-unselectable ol-control",t.appendChild(e),ol.control.Control.call(this,{element:t}),p.map.addControl(this)}function h(d){var e,t=A.createElement("div"),u="setfocus.wb",o=I.geoLocationURL,m={quebec:"<abbr title='Quebec'>QC</abbr>","québec":"<abbr title='Québec'>QC</abbr>","british columbia":"<abbr title='British Columbia'>BC</abbr>","colombie-britannique":"<abbr title='Colombie-Britannique'>BC</abbr>",alberta:"<abbr title='Alberta'>AB</abbr>",saskatchewan:"<abbr title='Saskatchewan'>SK</abbr>",manitoba:"<abbr title='Manitoba'>MB</abbr>",ontario:"<abbr title='Ontario'>ON</abbr>","newfoundland and labrador":"<abbr title='Newfoundland and Labrador'>NL</abbr>","terre-neuve-et-labrador":"<abbr title='Terre-Neuve-et-Labrador'>NL</abbr>","prince edward island":"<abbr title='Prince Edward Island'>PE</abbr>","île-du-prince-édouard":"<abbr title='Île-du-prince-Édouard'>PE</abbr>","nova scotia":"<abbr title='Nova Scotia'>NS</abbr>","nouvelle-écosse":"<abbr title='Nouvelle-Écosse'>NS</abbr>","new brunswick":"<abbr title='New Brunswick'>NB</abbr>","nouveau-brunswick":"<abbr title='Nouveau-Brunswick'>NB</abbr>",yukon:"<abbr title='Yukon'>YT</abbr>","northwest territories":"<abbr title='Northwest Territories'>NT</abbr>","territoires du nord-ouest":"<abbr title='Territoires du Nord-Ouest'>NT</abbr>",nunavut:"<abbr title='Nunavut'>NU</abbr>"},h={"ca.gc.nrcan.geoloc.data.model.Street":"<span class='glyphicon glyphicon-road' aria-hidden='true'></span>","ca.gc.nrcan.geoloc.data.model.Intersection":"<span class='glyphicon glyphicon-road' aria-hidden='true'></span>","ca.gc.nrcan.geoloc.data.model.Geoname":"<span class='glyphicon glyphicon-map-marker' aria-hidden='true'></span>","ca.gc.nrcan.geoloc.data.model.PostalCode":"<span class='glyphicon glyphicon-envelope' aria-hidden='true'></span>","ca.gc.nrcan.geoloc.data.model.NTS":"<span class='glyphicon glyphicon-globe' aria-hidden='true'></span>"};function y(e,t){var o,a,i,l=[],s=new ol.proj.Projection({code:"EPSG:4326"}),r=d.map.getView().getProjection();if(E(d.map,"locLayer").getSource().clear(!0),e&&void 0!==e){for(e=e.split(","),i=(o=D(parseFloat(e[0]),parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]))).length-1;-1!==i;--i)l.push([o[i].getCoordinates()[0],o[i].getCoordinates()[1]]);a=new ol.Feature({geometry:new ol.geom.Polygon([l]).transform(s,r)}),E(d.map,"locLayer").getSource().addFeature(a),d.map.getView().fit(a.getGeometry().getExtent(),d.map.getSize())}else t&&void 0!==t&&(e=0===d.map.getView().getZoom()?12:d.map.getView().getZoom(),a=new ol.Feature({geometry:new ol.geom.Point(t.split(",")).transform(s,r)}),E(d.map,"locLayer").getSource().addFeature(a),d.map.getView().setZoom(e),d.map.getView().setCenter(a.getGeometry().getCoordinates()))}function b(e){var t=e.nextSibling.firstChild;v(d.map,ol.interaction.KeyboardPan).setActive(!0),t.className+=" hide",t.innerHTML="",t.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false"),e.setAttribute("aria-activedescendent","")}function f(e,t){var p="",c=L("#wb-geomap-geocode-search-"+d.id),g=L("#wb-geomap-geoloc-al-"+d.id);(!t||t.length<3)&&g.empty(),L.ajax({type:"GET",url:o,data:{q:t+"*"},success:function(e){if(0<e.length){for(var t,o,a,i,l,s,r=e.length,n=0;n!==r;n+=1)i=(o=e[n]).title.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),l=o.bbox?o.bbox[0]+", "+o.bbox[1]+", "+o.bbox[2]+", "+o.bbox[3]:"",s=o.geometry&&"Point"===o.geometry.type?o.geometry.coordinates[0]+", "+o.geometry.coordinates[1]:"",t=h[o.type]||"<span class='glyphicon glyphicon-map-marker' aria-hidden='true'></span>",a=(i=function(e,t){var o=new RegExp(Object.keys(t).join("|"),"gi");return e.replace(o,function(e){return t[e.toLowerCase()]})}(i,m)).replace(/<(?:.|\n)*?>/gm,""),p+="<li id='al-opt-"+d.id+"-"+n+"' class='al-opt' data-lat-lon='"+s+"' data-bbox='"+l+"' data-type='"+o.type+"'><a href='javascript:;' tabindex='-1'>"+t+"<span class='al-val'>"+i+"</span><span class='al-lbl wb-inv' aria-hidden='true'>"+a+"</span></a></li>";g.empty().append(p),g.removeClass("hide").attr("aria-hidden","false"),c.attr("aria-expanded","true"),L(".al-opt a").on("keydown click",function(e){var t,o,a,i,l,s,r,n,p=e.target,c=e.type,g=e.which;switch(c){case"keydown":if(e.ctrlKey||e.metaKey)break;return r=g,a=(t=p).parentNode.parentNode,i=a.parentNode.previousSibling,s=L(i),event.ctrlKey||event.altKey||event.metaKey?void 0:32===r||47<r&&r<91||95<r&&r<112||159<r&&r<177||187<r&&r<223?(i.value+=String.fromCharCode(r),s.trigger(u),f(0,i.value),!1):8===r?(l=i.value,0!==(n=l.length)&&(i.value=l.substring(0,n-1),f(0,i.value)),s.trigger(u),!1):13===r?(n=t.getElementsByTagName("span"),l=n[2].innerHTML,i.value=l,y(t.parentNode.getAttribute("data-bbox"),t.parentNode.getAttribute("data-lat-lon")),s.trigger(u),b(i),!1):9===r||27===r?(s.trigger(u),b(i),!1):38===r||40===r?(38===r?(o=t.parentNode.previousSibling)||(n=a.getElementsByTagName("li"),o=n[n.length-1]):o=(o=t.parentNode.nextSibling)||a.getElementsByTagName("li")[0],o=o.getElementsByTagName("a")[0],i.setAttribute("aria-activedescendent",o.parentNode.getAttribute("id")),L(o).trigger(u),!1):void 0;case"click":if(g&&1!==g)break;return l="a"===(l=p).nodeName.toLowerCase()?l:l.parentNode,s=l.parentNode.parentNode.parentNode.previousSibling,r=L(s),n=l.getElementsByTagName("span")[2].innerHTML,s.value=n,y(l.parentNode.getAttribute("data-bbox"),l.parentNode.getAttribute("data-lat-lon")),r.trigger(u),b(s),!1}})}else g.empty(),g.addClass("hide").attr("aria-hidden","true"),g.attr("aria-expanded","false")},dataType:"json",cache:!1})}t.innerHTML="<label for='wb-geomap-geocode-search-"+d.id+"' class='wb-inv'>"+I.geoCoderLabel+"</label><input type='text' class='form-control' id='wb-geomap-geocode-search-"+d.id+"' placeholder='"+I.geoCoderPlaceholder+"' ></input><div class='wb-geomap-geoloc-al-cnt'><ul role='listbox' id='wb-geomap-geoloc-al-"+d.id+"' class='wb-geomap-geoloc-al hide' aria-hidden='true' aria-live='polite'></ul></div>",t.className="geomap-geoloc ol-unselectable ol-control",ol.control.Control.call(this,{element:t}),d.map.addControl(this),L("#wb-geomap-geocode-search-"+d.id).attr("autocomplete","off"),L("#wb-geomap-geocode-search-"+d.id).attr("role","textbox"),L("#wb-geomap-geocode-search-"+d.id).attr("aria-haspopup","true"),L("#wb-geomap-geocode-search-"+d.id).attr("aria-autocomplete","list"),L("#wb-geomap-geocode-search-"+d.id).attr("aria-owns","wb-geomap-geoloc-al-"+d.id),L("#wb-geomap-geocode-search-"+d.id).attr("aria-activedescendent",""),e=768<(t=parseFloat(L(".geomap-geoloc").parent().width()))?.6:.8,P?(L(".geomap-geoloc").css({width:t-10+"px"}),L(".wb-geomap-geoloc-al-cnt").css({width:t-10+"px"})):(L(".geomap-geoloc").css({width:t*e}),L(".wb-geomap-geoloc-al-cnt").css({width:t*e})),T.on("keydown","#wb-geomap-geocode-search-"+d.id,function(e){v(d.map,ol.interaction.KeyboardPan).setActive(!1);var t=e.which;if(!e.ctrlKey&&!e.metaKey){var o=e.target,a=o.nextSibling.firstChild,i=-1!==a.className.indexOf("hide");if(!(e.ctrlKey||e.altKey||e.metaKey))if(32===t||47<t&&t<91||95<t&&t<112||159<t&&t<177||187<t&&t<223)e.altKey||f(0,o.value+String.fromCharCode(t));else if(8!==t||e.altKey){if((38===t||40===t)&&""===o.getAttribute("aria-activedescendent"))return i&&f(),0!==(a=a.getElementsByTagName("a")).length&&(a=a[38===t?a.length-1:0],o.setAttribute("aria-activedescendent",a.parentNode.getAttribute("id")),L(a).trigger(u)),!1;i||9!==t&&27!==t&&(27!==t||e.altKey)||b(o)}else a=o.value,0!==(i=a.length)&&f(0,a.substring(0,i-1))}})}function y(e){var t,o,a,i,l,e=e||{},s=this;function r(){return o=new ol.Feature,t=new ol.Feature,o.setStyle(S({radius:6,fill:new ol.style.Fill({color:"#3399CC"}),stroke:new ol.style.Stroke({color:"#fff",width:2})})),[t,o]}L("body").append("<section id='overlay-location-error' class='wb-overlay modal-content overlay-def wb-bar-t bg-danger'><header><h2 class='modal-title'>Geolocation error.</h2></header></section>"),L("#overlay-location-error").trigger("wb-init.wb-overlay"),(a=A.createElement("button")).setAttribute("type","button"),a.setAttribute("title",I.geolocBtn),a.innerHTML="<span class='glyphicon glyphicon-screenshot'></span>",(l=A.createElement("div")).className="ol-geolocate ol-unselectable ol-control",l.appendChild(a),s.geolocation=new ol.Geolocation(e),ol.control.Control.call(this,{element:l,target:e.target}),s.geolocation.on("change:accuracyGeometry",function(){t.setGeometry(s.geolocation.getAccuracyGeometry())}),s.geolocation.on("change:position",function(){i=s.geolocation.getPosition(),o.setGeometry(i?new ol.geom.Point(i):null);var e=s.featuresOverlay.getSource().getExtent();s.getMap().getView().fit(e,s.getMap().getSize()),L(a).html("<span style='color:#3399CC;' class='glyphicon glyphicon-screenshot'></span>")}),s.geolocation.on("error",function(e){2===e.code?L("#overlay-location-error h2.modal-title").text(I.geolocUncapable):L("#overlay-location-error h2.modal-title").text(I.geolocFail),L("#overlay-location-error").trigger("open.wb-overlay")}),a.addEventListener("click",function(){L(this).html("<span style='font-size:.9em;' class='glyphicon glyphicon-refresh glyphicon-spin'></span>"),void 0===s.featuresOverlay?(s.featuresOverlay=new ol.layer.Vector({map:s.getMap(),source:new ol.source.Vector({})}),s.featuresOverlay.getSource().addFeatures(r()),s.geolocation.setTracking(!0)):0===s.featuresOverlay.getSource().getFeatures().length?(s.featuresOverlay.getSource().addFeatures(r()),s.geolocation.setTracking(!0)):(s.geolocation.setTracking(!1),s.featuresOverlay.getSource().clear(),L(this).html("<span class='glyphicon glyphicon-screenshot'></span>"))},!1)}function n(e){var t,o=r(e.getAttribute("data-map"));return e.getAttribute("data-layer")?(t=E(o.map,e.getAttribute("data-layer")),[o.map,t,e.getAttribute("data-feature")?t.getSource().getFeatureById(e.getAttribute("data-feature")):null]):[o.map,null,null]}function j(){return Math.random().toString(36).slice(2)}var c,I,i,g="wb-geomap",d="."+g,T=l.doc,o=0,b=[],P=!1,G={overlays:[],tables:[],useScaleLine:!1,useMousePosition:!1,useLegend:!1,useMapControls:!0,useGeocoder:!1,useGeolocation:!1,useAOI:!1},f=function(e){return this.map=e,this.symbolMapArray=[],this.target=L("#"+e.id+".wb-geomap").find(".wb-geomap-legend"),this.target.attr("id","geomap-legend-"+e.id),this.target.empty(),this},V=function(o){var e=o.settings.useMapControls?ol.control.defaults({attributionOptions:{collapsible:!1}}):[],t=o.settings.useMapControls?ol.interaction.defaults({mouseWheelZoom:!0}):[],a=(proj4.defs("EPSG:3978","+proj=lcc +lat_1=49 +lat_2=77 +lat_0=49 +lon_0=-95 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs"),proj4.defs("urn:ogc:def:crs:OGC:1.3:CRS84",proj4.defs("EPSG:4326")),new ol.Map({controls:e,interactions:t,logo:!1,target:o.mapDiv.attr("id")})),e=v(a,ol.interaction.MouseWheelZoom);o.settings.useMapControls&&e&&e.setActive(!1),o.mapDiv.height(o.mapDiv.width()*o.settings.aspectRatio),a.set("aspectRatio",o.settings.aspectRatio),a.id=o.id,a.once("postrender",function(){a.getLayer=function(e){var t,o,e=A.querySelector(e+" [data-geometry][data-type]"),a=e.dataset.geometry;return"wkt"===e.dataset.type&&-1!==a.indexOf("POINT")&&(a=(a=(a=a.replace(/,/,"")).substring(a.indexOf("(")+1,a.indexOf(")"))).split(" "),t=parseFloat(a[0]),o=parseFloat(a[1])),{getDataExtent:function(){return[t,o]}}},a.zoomToExtent=function(e){a.getView().setCenter(ol.proj.transform([e[0],e[1]],"EPSG:4326","EPSG:3978")),a.getView().setZoom(5)},l.ready(L("#"+o.id),g,[a])}),a.on("moveend",function(){L(o.id).trigger("wb-updated"+d,[o.map])}),o.mapDiv.append("<div id='tooltip_"+o.id+"' style='display:none;'><span class='tooltip-txt'></span></div>");return a.on("pointermove",function(e){var t;i=L("#tooltip_"+o.id),!e.dragging&&(e=a.getEventPixel(e.originalEvent),i=L("#tooltip_"+o.id),t=L("#tooltip_"+o.id+" span.tooltip-txt"),i.css({left:e[0]+"px",top:e[1]-15+"px",position:"absolute"}),e=a.forEachFeatureAtPixel(e,function(e){return e}))&&e.tooltip?(i.hide(),t.html(e.tooltip),i.show()):i.hide()}),a},D=function(e,t,o,a){var i,l=parseFloat(e),s=parseFloat(t),r=parseFloat(o),n=parseFloat(a),p=[];if(0===l.length||0===s.length||0===r.length||0===n.length)return!1;for(-180===l&&(l+=.1),180===r&&(r=-5),90===n&&(n-=3),-90===s&&(s=35),i=l;i<r;i+=.5)p.push(new ol.geom.Point([i,s]));for(p.push(new ol.geom.Point([r,s])),i=r;l<i;i-=.5)p.push(new ol.geom.Point([i,n]));return p.push(new ol.geom.Point([l,n])),p.push(new ol.geom.Point([l,s])),p},E=function(e,t){var o;return e.getLayers().forEach(function(e){t===e.id&&(o=e)}),o};T.on("click",".geomap-zoomto",function(e){var t,o,a=e.which,i="A"===e.target.tagName?e.target:L(e.target).closest("a")[0];a&&1!==a||(e.preventDefault(),a=i.getAttribute("data-map"),t=(i=(e=n(i))[2].getGeometry()).getExtent(),o=e[0].getView(),"Point"===i.getType()?(o.fit(t,e[0].getSize()),o.setZoom(10)):o.fit(t,e[0].getSize()),L("#"+a+" .wb-geomap-map").trigger("setfocus.wb"))}),T.on("geomap.wb",d,function(e){var t,o=e.target,a=o.className.split(/\s+/),i={};/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(P=!0),e.currentTarget===o&&(t=L(o),I||(c=l.i18n,I={add:c("add"),close:c("close"),colon:c("colon"),err:c("err"),hiddenLayer:c("geo-hdnlyr"),toggleLayer:c("geo-tgllyr"),labelSelect:c("geo-lblsel"),select:c("geo-sel"),zoomFeature:c("geo-zmfeat"),zoomin:c("geo-zmin"),zoomout:c("geo-zmout"),zoomworld:c("geo-zmwrld"),baseMapTitle:c("geo-bmapttl"),baseMapURL:c("geo-bmap-url"),baseMapMatrixSet:c("geo-bmap-matrix-set"),scaleline:c("geo-sclln"),mouseposition:c("geo-msepos"),access:c("geo-ally"),accessTitle:c("geo-allyttl"),attribLink:c("geo-attrlnk"),attribTitle:c("geo-attrttl"),ariaMap:c("geo-ariamap"),geoLocationURL:c("geo-locurl-geogratis"),geoCoderPlaceholder:c("geo-loc-placeholder"),geoCoderLabel:c("geo-loc-label"),aoiNorth:c("geo-aoi-north"),aoiEast:c("geo-aoi-east"),aoiSouth:c("geo-aoi-south"),aoiWest:c("geo-aoi-west"),aoiInstructions:c("geo-aoi-instructions"),aoiTitle:c("geo-aoi-title"),aoiBtnDraw:c("geo-aoi-btndraw"),aoiBtnClear:c("geo-aoi-btnclear"),aoiBtnClose:c("close"),geolocBtn:c("geo-geoloc-btn"),geolocFail:c("geo-geoloc-fail"),geolocUncapable:c("geo-geoloc-uncapable"),geoLgndGrphc:c("geo-lgnd-grphc"),dismiss:c("dismiss")}),e={useScaleLine:-1!==a.indexOf("scaleline")||void 0,useMousePosition:-1!==a.indexOf("position")||void 0,useLegend:-1!==a.indexOf("legend"),useMapControls:-1===a.indexOf("static"),useGeocoder:-1!==a.indexOf("geocoder"),useGeolocation:-1!==a.indexOf("geolocation"),useAOI:-1!==a.indexOf("aoi"),useAOIOpen:-1!==a.indexOf("aoi-open")},L.extend(i,G,e,l.getData(t,g)),i.layersFile?L.ajax({url:i.layersFile,async:!0,dataType:"script",success:function(){(i=L.extend(i,wet_boew_geomap))&&i.basemap&&i.basemap.type&&"xyz"===i.basemap.type&&(i.basemap.type="osm"),o.geomap=new s({target:t,settings:i}),b.push(o.geomap)}}):(o.geomap=new s({target:t,settings:i}),b.push(o.geomap))),l.getMap=r,l.getLayer=function(e,t){return E(e,t)}}),T.on(l.resizeEvents,function(i){b.forEach(function(e){var t=L(e.map.getTargetElement()),o=t.find(".geomap-geoloc"),a=t.width();t.height(a*e.map.get("aspectRatio")),e.map.updateSize(),o&&("mediumview"===i.type||"largeview"===i.type||"xlargeview"===i.type?o.css({width:"60%"}):o.css({width:"80%"}))})}),T.on("change",".geomap-cbx",function(e){var e=e.target,t=n(e)[2],o=n(e)[0],o=v(o,ol.interaction.Select);e.checked?o.getFeatures().push(t):o.getFeatures().remove(t)}),T.on("focusin focusout mouseover mouseout",".wb-geomap-map",function(e){var t=e.currentTarget,e=e.type,o=t.className.indexOf("active"),a=r(t.getAttribute("data-map")),i=v(a.map,ol.interaction.MouseWheelZoom);a.settings.useMapControls&&i.setActive(!1),"mouseover"===e||"focusin"===e?(o&&L(t).addClass("active"),"focusin"===e&&a.settings.useMapControls&&i.setActive(!0)):0<o&&L(t).removeClass("active")}),s.prototype.addBasemap=function(){var e,t,o,a,i,l=this,s=l.settings.basemap,r=s&&0!==s.length,n={},p=[],c={},g=[];if(l.settings.attribution&&(c.attributions=[new ol.Attribution({html:l.settings.attribution.text})]),r)n.extent=s.mapOptions&&s.mapOptions.maxExtent?s.mapOptions.maxExtent.split(",").map(Number):null,n.projection=s.mapOptions&&s.mapOptions.projection?s.mapOptions.projection:"EPSG:3857",n.center=l.settings&&l.settings.center?ol.proj.transform(l.settings.center,"EPSG:4326",n.projection):s.mapOptions&&s.mapOptions.center?ol.proj.transform(s.mapOptions.center,"EPSG:4326",n.projection):s.mapOptions&&s.mapOptions.maxExtent?ol.extent.getCenter(n.extent):[0,0],n.zoom=l.settings&&l.settings.zoom?l.settings.zoom:s.mapOptions&&s.mapOptions.zoomLevel?s.mapOptions.zoomLevel:2,"wms"===s.type?((r=function(e,t){var o,a={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&L.inArray(o,t)<0&&(a[o]=e[o]);return a}(s,["mapOptions","url"])).srs=n.projection,r.crs=n.projection,g.push(new ol.layer.Image({extent:n.extent,source:new ol.source.ImageWMS({url:s.url,params:r})}))):"esri"===s.type?(c.url=s.url.replace("/MapServer/export","/MapServer"),g.push(new ol.layer.Tile({extent:n.extent,source:new ol.source.TileArcGISRest(c)}))):"xyz"===s.type?(L.isArray(s.url)?(L.each(s.url,function(e,t){p.push(t.replace(/\${/g,"{"))}),c.urls=p):c.url=s.url.replace(/\${/g,"{"),g.push(new ol.layer.Tile({source:new ol.source.XYZ(c)}))):"osm"===s.type?g.push(new ol.layer.Tile({source:new ol.source.OSM({attributions:[ol.source.OSM.ATTRIBUTION]})})):"mapquest"===s.type&&g.push(new ol.layer.Tile({source:new ol.source.MapQuest({layer:"sat"})}));else{for(r=ol.proj.get("EPSG:3978"),t=[38364.660062653464,22489.62831258996,13229.193125052918,7937.5158750317505,4630.2175937685215,2645.8386250105837,1587.5031750063501,926.0435187537042,529.1677250021168,317.50063500127004,185.20870375074085,111.12522225044451,66.1459656252646,38.36466006265346,22.48962831258996,13.229193125052918,7.9375158750317505,4.6302175937685215],o=5,260<(c=this.mapDiv.width())&&c<=500?o=1:500<c&&c<=725?o=2:725<c&&c<=1175?o=3:1175<c&&c<=2300&&(o=4),a=o-1;-1!==a;--a)t.shift();for(i=new Array(t.length),e=0;e<t.length;++e)i[e]=o+e;n={extent:[-275e4,-9e5,36e5,463e4],resolutions:t,projection:r},g.push(new ol.layer.Tile({source:new ol.source.WMTS({attributions:[new ol.Attribution({html:"<a href='"+I.attribLink+"'>"+I.attribTitle+"</a>"})],url:I.baseMapURL,layer:I.baseMapTitle,matrixSet:I.baseMapMatrixSet,projection:r,tileGrid:new ol.tilegrid.WMTS({extent:[-275e4,-9e5,36e5,463e4],origin:[-34655800,3931e4],resolutions:t,matrixIds:i}),style:"default"})}))}for(var d=g.length-1;-1!==d;--d)l.map.addLayer(g[d]);var u,m=n,h={};for(u in m)Object.prototype.hasOwnProperty.call(m,u)&&null!==m[u]&&(h[u]=m[u]);return h},F.prototype.addToLegend=function(){var t,e,o=this,a=this.map.legend.target,i=a.find("fieldset");0===i.length&&(i=L("<fieldset name='legend'><legend class='wb-inv'>"+I.toggleLayer+"</legend></fieldset>").appendTo(a)),e=this.isVisibile?"checked='checked'":"",(a=0===(a=a.find("ul.geomap-lgnd")).length?L("<ul class='list-unstyled geomap-lgnd'></ul>").appendTo(i):a).closest(".wb-geomap").hasClass("two-cols-legend")&&a.addClass("colcount-md-2"),t=L("<input type='checkbox' id='cb_"+this.id+"' class='geomap-lgnd-cbx' value='"+this.id+"' "+e+" data-map='"+this.map.id+"' data-layer='"+this.id+"' />"),o.observeVisibility(function(e){L("#sb_"+o.id).toggle(e),o.map.legend.refresh(),t.get(0).checked=e}),t.change(function(){o.isVisible=L(this).is(":checked")}),i=L("<label>",{for:"cb_"+this.id,text:this.settings.title}).prepend(t),e=L("<li class='checkbox geomap-lgnd-layer'>").append(i,"<div id='sb_"+this.id+"'></div>"),a.append(e),this.settings.options&&this.settings.options.legendUrl?L("#sb_"+this.id).append("<img src='"+this.settings.options.legendUrl+"' alt='"+I.geoLgndGrphc+"'/>"):this.settings.options&&this.settings.options.legendHTML?L("#sb_"+this.id).append(this.settings.options.legendHTML):"wms"!==this.settings.type&&"esritile"!==this.settings.type&&this.map.legend.symbolize(this)},s.prototype.addTabularData=function(){for(var e,t,o,a,i,l,s,r,n,p,c,g,d,u,m,h,y,b,f,v,w,x,S,k="<span class='wb-inv'>"+I.zoomFeature+"</span>",C="<span class='wb-inv'>"+I.select+"</span>",O=new ol.format.WKT,T=/<\/?[^>]+>/gi,P=/\W/g,E=this.settings.tables.length-1;-1!==E;--E)if(S=A.getElementById(this.settings.tables[E].id)){for(e=L(S).wrap("<div data-layer='"+this.settings.tables[E].id+"' class='geomap-table-wrapper'></div>"),t=this.settings.tables[E],o=[],a=[],i=S.getElementsByTagName("th"),r=(s=S.getElementsByTagName("tr")).length,n=this.settings.useMapControls,e.hasClass("wb-tables")&&void 0===e.attr("data-wb-tables")&&e.attr("data-wb-tables",'{ "order": [], "columnDefs": [ { "targets": [ 0, '+(i.length+1)+' ], "orderable": false } ] }'),S=!1!==this.settings.tables[E].visible,l=i.length-1;-1!==l;--l)a[l]=i[l].innerHTML.replace(T,"");for(x=e.find("thead tr").get(0),t.zoom&&n&&((w=A.createElement("th")).innerHTML=k,x.insertBefore(w,x.firstChild)),(w=A.createElement("th")).innerHTML=C,x.appendChild(w),x=N(),x=void 0===t.style?{strokeColor:x.stroke,fillColor:x.fill}:t.style,r=s.length-1;-1!==r;--r){for(p={},m=(c=s[r]).getAttribute("data-type"),u=c.getElementsByTagName("td"),f=0;f<u.length;f+=1)(h=(d=u[f]).getElementsByTagName("script")[0])&&h.parentNode.removeChild(h),p[a[f]]=d.innerHTML;if(null!==m){if("bbox"===m){for(y=c.getAttribute("data-geometry").split(","),b="",v=(g=D(y[0],y[1],y[2],y[3])).length-1;-1!==v;--v)b+=g[v].getCoordinates()[0]+" "+g[v].getCoordinates()[1]+", ";y="POLYGON (("+(b=b.slice(0,-2))+"))"}else"wkt"===m&&-1!==(y=c.getAttribute("data-geometry")).indexOf("POINT")&&(y=y.replace(",",""));(m=O.readFeature(y,{dataProjection:"EPSG:4326",featureProjection:this.map.getView().getProjection()})).setId(j()),m.layerId=t.id,m.layerTitle=e.attr("aria-label"),t.tooltips&&(m.tooltip=t.tooltipText?p[t.tooltipText]:p[Object.keys(p)[0]]),c.setAttribute("id",m.getId().replace(P,"_")),c.insertCell(0).innerHTML=M(this,m),n&&t.zoom&&((c=c.insertCell(-1)).classList.add("text-right"),c.innerHTML=z(this,m)),m.attributes=p,o.push(m)}}S=new F(this,{tableId:e.attr("id"),type:"wkt",visible:S,datatable:t.datatable,popupsInfo:t.popupsInfo,popups:t.popups,tooltips:t.tooltips,tooltipText:t.tooltipText,name:t.id,title:e.attr("aria-label"),features:o,style:x}),this.mapLayers.push(S)}},s.prototype.addMapLayers=function(){var e,o,a=this;a.addTabularData(),L.each(a.settings.overlays,function(e,t){o=new F(a,t),a.mapLayers.push(o)}),(e=new ol.layer.Vector({source:new ol.source.Vector,style:new ol.style.Style({fill:new ol.style.Fill({color:"rgba( 255, 0, 20, 0.1 )"}),stroke:new ol.style.Stroke({color:"#ff0033",width:2}),image:new ol.style.RegularShape({fill:new ol.style.Fill({color:"#ff0033"}),stroke:new ol.style.Stroke({color:"#ff0033",width:5}),points:4,radius:10,radius2:0,angle:0})})})).id="locLayer",a.map.addLayer(e);for(var t=a.mapLayers.length-1;-1!==t;--t)a.mapLayers[t].layer&&a.map.addLayer(a.mapLayers[t].layer)},F.prototype.populateDataTable=function(){if(this.settings.accessible){var e,t=this,o=t.settings.attributes,a=function(){var e,t=0;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t+=1);return t}(),a="<table aria-label='"+t.settings.title+"' id='"+t.id+'\' data-wb-tables=\'{ "order": [], "columnDefs": [ { "targets": [ 0, '+(a+1)+" ], \"orderable\": false } ] }'class='table",i="'><caption>"+t.settings.caption+"</caption>",l="<th><span class='wb-inv'>"+I.select+"</span></th>",s="",r=t.layer.getSource().getFeatures();for(e in t.settings.datatable?a+=" wb-tables":a+=" table-condensed",o)Object.prototype.hasOwnProperty.call(o,e)&&(l+="<th>"+(o[e].alias||o[e])+"</th>");for(var l="<thead><tr>"+l+(t.map.settings.useMapControls&&t.settings.zoom?"<th><span class='wb-inv'>"+I.zoomFeature+"</span></th>":"")+"</tr></thead>",n=0;n<r.length;n+=1){for(e in s+="<tr><td>"+M(t,r[n]),o=r[n].attributes)Object.prototype.hasOwnProperty.call(o,e)&&(s+="<td>"+o[e]+"</td>");s+=t.map.settings.useMapControls&&t.settings.zoom?"<td class='text-right'>"+z(t.map,r[n]):""}return a=L(a+i+l+"<tbody>"+s+"</tbody></table>"),L("div[ data-layer='"+t.id+"'].geomap-table-wrapper").append(a),t.map,L(".wb-tables").trigger("wb-init.wb-tables"),a}},F.prototype.createOLLayer=function(){var s,t,r,n,b,e,o,a,i,f,v,l,w=this,x=w.settings.attributes;return"wms"===w.settings.type?(e=(l=function(e){var t,o={};for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&"type"!==t&&"caption"!==t&&"url"!==t&&"title"!==t&&(o[t]=e[t]);return o}(w.settings)).options.opacity||1,b=new ol.layer.Image({opacity:e,visible:w.settings.visible,source:new ol.source.ImageWMS({url:w.settings.url,params:l})}),w.settings.accessible=!1):"esritile"===w.settings.type?(e={url:w.settings.url,params:w.settings.params},b=new ol.layer.Tile({visible:w.settings.visible,source:new ol.source.TileArcGISRest(e)}),w.settings.accessible=!1):"wkt"===w.settings.type?(a=new p,b=new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Vector({features:w.settings.features}),style:a.createStyleFunction(w.settings.style,w.settings.featureType)}),w.settings.accessible=!1):"kml"===w.settings.type?(o=!w.settings.style,a=new p,i=N(),b=new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Vector({url:w.settings.url,format:new ol.format.KML({extractStyles:o})})}),void 0===w.settings.style&&(w.settings.style={strokeColor:i.stroke,fillColor:i.fill}),b.getSource().once("addfeature",function(e){t=e.feature.getGeometry().getType(),o||(e=a.createStyleFunction(w.settings.style,t),b.setStyle(e))}),n=b.getSource(),r=n.on("change",function(){if("ready"===n.getState()){n.unByKey(r);for(var e=this.getFeatures(),t=0,o=e.length;t<o;t+=1){var a,i,l=e[t];for(i in w.settings.style.select&&(w.settings.style.select.type="select",a=(new p).createStyleFunction(w.settings.style.select,l.getGeometry().getType()),l.selectStyle=a),l.setId(j()),l.layerId=b.id,l.layerTitle=b.title,s={},x)Object.prototype.hasOwnProperty.call(x,i)&&(s[x[i]]=l.getProperties()[i]);l.attributes=s,w.settings.tooltips&&(l.tooltip=w.settings.tooltipText?s[w.settings.tooltipText]:s[Object.keys(s)[0]])}w.populateDataTable(),w.map.legend.symbolize(w)}},n)):"json"===w.settings.type?(f=new ol.source.Vector,a=new p,i=N(),void 0===w.settings.style&&(w.settings.style={strokeColor:i.stroke,fillColor:i.fill}),b=w.settings.cluster?new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Cluster({distance:40,source:f})}):new ol.layer.Vector({visible:w.settings.visible,source:f}),f.once("addfeature",function(){b.setStyle(a.createStyleFunction(w.settings.style,t))}),v=function(e){var o;return L.each(e,function(e,t){t.coordinates&&(o=e)}),o},L.getJSON(w.settings.url,w.settings.params,function(e){for(var t,o,a,i,l,s,r=w.settings.root,n=e[r]||e.features||e,p=0,c=(n=n instanceof Array==!1?L.map(n,function(e){return e}):n).length;p<c;p+=1)if((o=n[p])[l=l||v(o)]){if(i=o[l].coordinates[0],Object.values(o[l]).includes("Polygon")&&5===i.length){for(var g,d=[],u=0,m=(g=D(i[1][0],i[1][1],i[3][0],i[3][1])).length;u<m;u+=1){var h=g[u];d.push(h.getCoordinates())}a=new ol.geom.Polygon([d])}else Object.values(o[l]).includes("Point")?a=new ol.geom.Point([o[l].coordinates[0],o[l].coordinates[1]]):Object.values(o[l]).includes("LineString")&&(a=new ol.geom.LineString(o[l].coordinates));for(var y in i=a.transform("EPSG:4326",w.map.map.getView().getProjection()),t={},x)Object.prototype.hasOwnProperty.call(x,y)&&((s=x[y].path)?t[x[y].alias]=o[s]?o[s][y]:"":t[x[y]]=o[y]||"");(o=new ol.Feature).setId(j()),o.layerId=b.id,o.layerTitle=b.title,o.attributes=t,o.setGeometry(i),f.addFeature(o),w.settings.tooltips&&(o.tooltip=w.settings.tooltipText?t[w.settings.tooltipText]:t[Object.keys(t)[0]])}w.populateDataTable(),w.map.legend.symbolize(w)})):"geojson"!==w.settings.type&&"esrijson"!==w.settings.type&&"topojson"!==w.settings.type||(a=new p,i=N(),void 0===w.settings.style&&(w.settings.style={strokeColor:i.stroke,fillColor:i.fill}),l=w.settings.params?w.settings.url+"?"+L.param(w.settings.params):w.settings.url,(b="geojson"===w.settings.type?new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Vector({url:l,format:new ol.format.GeoJSON,strategy:ol.loadingstrategy.bbox})}):"topojson"===w.settings.type?new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Vector({url:l,format:new ol.format.TopoJSON})}):new ol.layer.Vector({visible:w.settings.visible,source:new ol.source.Vector({url:l,format:new ol.format.EsriJSON,strategy:ol.loadingstrategy.bbox})})).getSource().once("addfeature",function(e){t=e.feature.getGeometry().getType();e=a.createStyleFunction(w.settings.style,t);b.setStyle(e)}),n=b.getSource(),r=n.on("change",function(){if("ready"===n.getState()){n.unByKey(r);for(var e=this.getFeatures(),t=0,o=e.length;t<o;t+=1){var a,i=e[t];for(a in i.setId(j()),i.layerId=b.id,i.layerTitle=b.title,s={},x)Object.prototype.hasOwnProperty.call(x,a)&&(s[x[a]]=i.getProperties()[a]);i.attributes=s,w.settings.tooltips&&(i.tooltip=w.settings.tooltipText?s[w.settings.tooltipText]:s[Object.keys(s)[0]])}w.populateDataTable(),w.map.legend.symbolize(w)}},n)),b?(b.id=w.id,b.title=w.settings.title,b.datatable=w.settings.datatable,b.popupsInfo=w.settings.popupsInfo,b.popups=w.settings.popups,b):null},s.prototype.loadControls=function(){var o,l,e,t,a,i,s,r,n,p,c=this,g=c.map,d=new ol.interaction.Select({layers:c.layers});d.getFeatures().on("remove",function(e){e=e.element;e.setStyle(null),L("#cb_"+e.getId()).prop("checked",!1).closest("tr").removeClass("active")}),d.getFeatures().on("add",function(e){e=e.element;e.selectStyle&&e.setStyle(e.selectStyle),L("#cb_"+e.getId()).prop("checked",!0).closest("tr").addClass("active")}),d.on("select",function(e){var t=e.selected||this.getFeatures();t&&0<t.length&&void 0!==t[0].layerTitle&&(o=E(this.getMap(),t[0].layerId).popups,t[0].layerTitle=this.getLayer(e.selected[0]).title,o)&&u(0,t[0],g),t&&0===t.length&&u(0,null,g)},d),g.getInteractions().extend([d]),c.settings.useMapControls&&((d=A.createElement("span")).className="glyphicon glyphicon-home",d=new ol.control.ZoomToExtent({extent:g.getView().calculateExtent(g.getSize()),label:d}),g.addControl(d),d.element.setAttribute("aria-label",I.zoomworld),d.element.setAttribute("title",I.zoomworld),c.settings.useMousePosition&&(d=new ol.control.MousePosition({coordinateFormat:ol.coordinate.createStringXY(4),projection:"EPSG:4326",undefinedHTML:""}),g.addControl(d),d.element.setAttribute("aria-label",I.mouseposition),d.element.setAttribute("title",I.mouseposition)),c.settings.useScaleLine)&&(d=new ol.control.ScaleLine,g.addControl(d),d.element.setAttribute("aria-label",I.scaleline),d.element.setAttribute("title",I.scaleline)),c.settings.useGeocoder&&new h(c),c.settings.useAOI&&(l=c,r=new ol.interaction.DragBox,n=new ol.proj.Projection({code:"EPSG:4326"}),p=l.map.getView().getProjection(),r.on("boxend",function(){var e=r.getGeometry().transform(p,n).getExtent();s=m(l,e),l.map.getView().fit(s.getGeometry().getExtent(),l.map.getSize()),L("#geomap-aoi-minx-"+l.id).val(e[0].toFixed(6)),L("#geomap-aoi-maxx-"+l.id).val(e[2].toFixed(6)),L("#geomap-aoi-maxy-"+l.id).val(e[3].toFixed(6)),L("#geomap-aoi-miny-"+l.id).val(e[1].toFixed(6)),L("#geomap-aoi-extent-"+l.id).val(s.getGeometry().getExtent()).trigger("change"),L("#geomap-aoi-extent-lonlat-"+l.id).val(e[0]+", "+e[1]+", "+e[2]+", "+e[3]).trigger("change")}),r.on("boxstart",function(){E(l.map,"locLayer").getSource().clear(!0)}),l.map.addInteraction(r),r.setActive(!1),l.settings.useAOIOpen?l.mapDiv.before("<div class='geomap-aoi panel panel-default'><div id='geomap-aoi-"+l.id+"' class='panel-body'></div></div>"):l.mapDiv.before("<details class='geomap-aoi'><summary>"+I.aoiTitle+"</summary><div id='geomap-aoi-"+l.id+"'></div></details>"),L("#geomap-aoi-"+l.id).append("<fieldset id='form-aoi-"+l.id+"'><legend tabindex='-1'>"+I.aoiInstructions+"</legend><div class='row'><div class='col-md-2 form-group'><label for='geomap-aoi-maxy-"+l.id+"' class='wb-inv'>"+I.aoiNorth+"</label><div class='input-group input-group-sm'><span class='input-group-addon'>"+I.aoiNorth.charAt(0)+"</span><input type='number' id='geomap-aoi-maxy-"+l.id+"' placeholder='90' class='form-control input-sm' min='-90' max='90' step='0.000001'></input></div></div><div class='col-md-2 form-group'><label for='geomap-aoi-maxx-"+l.id+"' class='wb-inv'>"+I.aoiEast+"</label><div class='input-group input-group-sm'><span class='input-group-addon'>"+I.aoiEast.charAt(0)+"</span><input type='number' id='geomap-aoi-maxx-"+l.id+"' placeholder='180' class='form-control input-sm' min='-180' max='180' step='0.000001'></input> </div></div><div class='col-md-2 form-group'><label for='geomap-aoi-miny-"+l.id+"' class='wb-inv'>"+I.aoiSouth+"</label><div class='input-group input-group-sm'><span class='input-group-addon'>"+I.aoiSouth.charAt(0)+"</span><input type='number' id='geomap-aoi-miny-"+l.id+"' placeholder='-90' class='form-control input-sm' min='-90' max='90' step='0.000001'></input> </div></div><div class='col-md-2 form-group'><label for='geomap-aoi-minx-"+l.id+"' class='wb-inv'>"+I.aoiWest+"</label><div class='input-group input-group-sm'><span class='input-group-addon'>"+I.aoiWest.charAt(0)+"</span><input type='number' id='geomap-aoi-minx-"+l.id+"' placeholder='-180' class='form-control input-sm' min='-180' max='180' step='0.000001'></input> </div></div><div class='col-md-4'><button class='btn btn-default btn-sm' id='geomap-aoi-btn-draw-"+l.id+"'>"+I.add+"</button> <button class='btn btn-default btn-sm' id='geomap-aoi-btn-clear-"+l.id+"'>"+I.aoiBtnClear+"</button> </div></div><input type='hidden' id='geomap-aoi-extent-"+l.id+"'></input><input type='hidden' id='geomap-aoi-extent-lonlat-"+l.id+"'></input></fieldset>"),L("#geomap-aoi-btn-clear-"+l.id).after("<button id='geomap-aoi-toggle-mode-draw-"+l.id+"' href='#' class='btn btn-sm btn-default geomap-geoloc-aoi-btn' title='"+I.aoiBtnDraw+"'><i class='glyphicon glyphicon-edit'></i> "+I.aoiBtnDraw+"</button>"),T.on("click","#geomap-aoi-toggle-mode-draw-"+l.id,function(e){e.preventDefault();var e=v(l.map,ol.interaction.DragBox),t=v(l.map,ol.interaction.Select),o=r.getActive(),a=L("#geomap-aoi-"+l.id);L(this).toggleClass("active"),o||a.find("legend").trigger("setfocus.wb"),e.setActive(!o),t.setActive(o)}),T.on("click","#geomap-aoi-btn-clear-"+l.id,function(e){e.preventDefault(),L("#geomap-aoi-extent-"+l.id).val(""),L("#geomap-aoi-extent-lonlat-"+l.id).val(""),L("#geomap-aoi-minx-"+l.id).val("").parent().removeClass("has-error"),L("#geomap-aoi-miny-"+l.id).val("").parent().removeClass("has-error"),L("#geomap-aoi-maxx-"+l.id).val("").parent().removeClass("has-error"),L("#geomap-aoi-maxy-"+l.id).val("").parent().removeClass("has-error"),E(l.map,"locLayer").getSource().clear(!0)}),T.on("click","#geomap-aoi-btn-draw-"+l.id,function(e){e.preventDefault(),L("#geomap-aoi-extent-"+l.id).val(""),L("#geomap-aoi-extent-lonlat-"+l.id).val(""),L("#geomap-aoi-minx-"+l.id).parent().removeClass("has-error"),L("#geomap-aoi-maxx-"+l.id).parent().removeClass("has-error"),L("#geomap-aoi-maxy-"+l.id).parent().removeClass("has-error"),L("#geomap-aoi-miny-"+l.id).parent().removeClass("has-error"),E(l.map,"locLayer").getSource().clear(!0);var e=parseFloat(L("#geomap-aoi-minx-"+l.id).val()),t=parseFloat(L("#geomap-aoi-miny-"+l.id).val()),o=parseFloat(L("#geomap-aoi-maxx-"+l.id).val()),a=parseFloat(L("#geomap-aoi-maxy-"+l.id).val()),i=!0;if((!e||e<-180||180<e)&&(L("#geomap-aoi-minx-"+l.id).parent().addClass("has-error"),i=!1),(!o||o<-180||180<o)&&(L("#geomap-aoi-maxx-"+l.id).parent().addClass("has-error"),i=!1),(!a||a<-90||90<a)&&(L("#geomap-aoi-maxy-"+l.id).parent().addClass("has-error"),i=!1),(!t||t<-90||90<t)&&(L("#geomap-aoi-miny-"+l.id).parent().addClass("has-error"),i=!1),!1===i)return!1;i=m(l,[e,t,o,a]),l.map.getView().fit(i.getGeometry().getExtent(),l.map.getSize()),L("#geomap-aoi-extent-"+l.id).val(i.getGeometry().getExtent()).trigger("change"),L("#geomap-aoi-extent-lonlat-"+l.id).val(e+", "+t+", "+o+", "+a).trigger("change")}),l.aoiExtent)&&(e=(d=l.aoiExtent.split(","))[0].trim(),t=d[1].trim(),a=d[2].trim(),i=d[3].trim(),s=m(l,d),l.map.getView().fit(s.getGeometry().getExtent(),l.map.getSize()),L("#geomap-aoi-minx-"+l.id).val(e),L("#geomap-aoi-maxx-"+l.id).val(a),L("#geomap-aoi-maxy-"+l.id).val(i),L("#geomap-aoi-miny-"+l.id).val(t),L("#geomap-aoi-extent-"+l.id).val(s.getBounds().toBBOX()),L("#geomap-aoi-extent-lonlat-"+l.id).val(e+", "+t+", "+a+", "+i)),c.settings.useGeolocation&&c.map.addControl(new y({projection:c.map.getView().getProjection()}))},s.prototype.createPopup=function(){var t,e=L("<div id='popup-"+this.mapDiv.attr("id")+"' class='ol-popup'></div>"),o=L("<a href='#' title='"+I.dismiss+"' class='ol-popup-closer' role='button'>×<span class='wb-inv'>"+I.dismiss+"</span></a>");e.append(o,"<div class='popup-content'></div>"),L("#"+this.mapDiv.attr("id")).append(e),t=new ol.Overlay({element:A.getElementById("popup-"+this.mapDiv.attr("id")),autoPan:!0,autoPanAnimation:{duration:250}}),o.on("click",function(e){return e.preventDefault(),t.setPosition(void 0),this.blur(),!1}),this.map.addOverlay(t)},s.prototype.accessibilize=function(){var e=this,t=e.mapDiv.find(".ol-zoom-in"),o=e.mapDiv.find(".ol-zoom-out");t.attr("aria-label",I.zoomin),t.attr("title",I.zoomin),o.attr("aria-label",I.zoomout),o.attr("title",I.zoomout),e.mapDiv.attr({tabindex:"0","data-map":e.id}),e.mapDiv.attr({role:"dialog","aria-label":I.ariaMap}),e.settings.useMapControls&&new a(e)},s.prototype.zoomAOI=function(e,t,o,a){var i,l=this.map,s=l.getView(),r="string"==typeof e;if(r&&!e.length)s.setZoom(s.getMaxZoom);else{if(r&&null!==e.substring(0,1).match(/[a-z]/gi))var n=(new ol.format.WKT).readFeature(e,{dataProjection:"EPSG:4326",featureProjection:s.getProjection()});else{if(!t&&r){if(4!==(i=e.split(" ")).length)throw"4 cardinal point must be provided";e=i[0],t=i[1],o=i[2],a=i[3]}else if(!t||!o||!a)throw"Cardinal point must be provided";i=[parseFloat(a),parseFloat(o),parseFloat(t),parseFloat(e)],n=m(this,i,!0)}r=n.getGeometry().getExtent(),s.fit(r,l.getSize())}},s.prototype.showLayer=function(e,t){var o,a,i,l=[],s=this.mapLayers,r=s.length;for(t=!!t,Array.isArray(e)?l=e:l.push(e),o=0;o!==r;o+=1)i=(a=s[o]).layer.title,e&&-1===l.indexOf(i)?i&&(a.isVisible=!t):a.isVisible=t},f.prototype.symbolize=function(e){if(e.layer){var t,o,a,i,l,s,r,n,p=e.settings.style,c=e.id,g=e.layer.getSource().getFeatures()[0],d=[],u="",m="";if(void 0!==p&&p.rule){if(o=p.rule.length)for(l=0;l!==o;l+=1){if(t=(r=p.rule[l]).filter,a=r.init,m="",n="ls_"+c+"_"+l,t&&!r.name)if(t.name)m=t.name;else switch(t){case"EQUAL_TO":m=r.field+" = "+r.value[0];break;case"GREATER_THAN":m=r.field+" > "+r.value[0];break;case"LESS_THAN":m=r.field+" < "+r.value[0];break;case"BETWEEN":m=r.field+" "+r.value[0]+" - "+r.value[1]}else r&&r.name&&(m=r.name);u+="<li><div class='geomap-legend-element'><div id='"+n+"' class='geomap-legend-symbol'></div><span class='geomap-legend-symbol-text'><small>"+m+"</small></span></div></li>",d.push({id:n,feature:g,symbolizer:a})}}else if(void 0!==p&&"unique"===p.type)for(var h in l=0,p.init)u+="<li><div class='geomap-legend-element'><div id='"+(n="ls_"+c+"_"+l)+"' class='geomap-legend-symbol'></div><span class='geomap-legend-symbol-text'><small>"+(m=(a=p.init[h]).name||h)+"</small></span></div></li>",d.push({id:n,feature:g,symbolizer:a}),l+=1;else void 0!==p&&"symbol"===p.type?u+="<li><div class='geomap-legend-element'><div id='"+(n="ls_"+c+"_0")+"' class='geomap-legend-symbol'></div><span class='geomap-legend-symbol-text'><small>"+(m=(a=p.init).name||"")+"</small></span></div></li>":(a={fillColor:p.fillColor,strokeColor:p.strokeColor,strokeWidth:p.strokeWidth,strokeDash:p.strokeDash},u+="<li><div class='geomap-legend-element'><div id='"+(n="ls_"+c+"_0")+"' class='geomap-legend-symbol'></div><span class='geomap-legend-symbol-text'><small>"+m+"</small></span></div></li>"),d.push({id:n,feature:g,symbolizer:a});for(L("#sb_"+c).closest(".wb-geomap").hasClass("legend-label-only")&&u.match(/<li>/g)&&1===u.match(/<li>/g).length?(L("#sb_"+c).html("<ul class='list-unstyled' role='presentation'>"+u+"</ul>"),L("#sb_"+c+" li").attr("role","presentation")):L("#sb_"+c).html("<ul class='list-unstyled'>"+u+"</ul>"),i=0,s=d.length;i!==s;i+=1){var y=d[i];this.getSymbol(y.id,y.feature,y.symbolizer)}}},f.prototype.getSymbol=function(e,t,o){var a,i,l,s,r,n,p=N(),t=t&&t.getGeometry()?t.getGeometry().getType():"Polygon",c=o.fillOpacity||o.graphicOpacity||1,g=o.fillColor?O(o.fillColor,c):p.transparent,d=o.pointRadius||5,u=o.strokeColor?O(o.strokeColor):p.transparent,m=o.strokeWidth||1,h=o.strokeDash||[1,0],y=o.externalGraphic||null,b=o.graphicName||null,f=o.graphicHeight||30,v=o.graphicWidth||30,p=f<2*d?2*d:f,o=v<2*d?2*d:v;switch(t){case"Polygon":a=new ol.Feature({geometry:new ol.geom.Polygon([[[-10,-7],[10,-7],[10,7],[-10,7]]])}),i=k({fill:new ol.style.Fill({color:g}),stroke:new ol.style.Stroke({color:u,width:m,lineDash:h})}),a.setStyle(i);break;case"Point":a=new ol.Feature({geometry:new ol.geom.Point([0,0])}),i=b?w({symbol:b,fill:new ol.style.Fill({color:g}),stroke:new ol.style.Stroke({color:u,lineDash:h}),radius:d}):y?x({src:y,opacity:c,size:[v,f]}):S({radius:d,fill:new ol.style.Fill({color:g}),stroke:new ol.style.Stroke({color:u,width:m,lineDash:h})}),a.setStyle(i);break;case"LineString":a=new ol.Feature({geometry:new ol.geom.LineString([[-9,-4],[-4,4],[4,-4],[9,4]])}),i=C({stroke:new ol.style.Stroke({color:u,width:m,lineDash:h})}),a.setStyle(i);break;default:a=new ol.Feature({geometry:new ol.geom.Polygon([[[-10,-7],[10,-7],[10,7],[-10,7]]])}),i=k({fill:new ol.style.Fill({color:g}),stroke:new ol.style.Stroke({color:u,width:m,lineDash:h})}),a.setStyle(i)}(t=new ol.Map({controls:[],interactions:[],layers:[new ol.layer.Vector({source:new ol.source.Vector})]}))&&(this.symbolMapArray.push(t),(l=t.getLayers().item(0).getSource()).clear(),l.addFeature(a)),t.setTarget(e),l=e,e=t,t=o,o=p,p=(p=a).getGeometry().getExtent(),s=ol.extent.getWidth(p),r=ol.extent.getHeight(p),l=L("#"+l),n=(n=1)||Math.max(s/t||0,r/o||0)||1,e.setView(new ol.View({minResolution:n,maxResolution:n,projection:new ol.proj.Projection({code:"",units:"pixels"})})),t=Math.max(t,s/n),s=Math.max(o,r/n),n=[(o=ol.extent.getCenter(p))[0]-(r=t*n/2),o[1]-(p=s*n/2),o[0]+r,o[1]+p],l.width(Math.round(t)),l.height(Math.round(s)),e.updateSize(),e.getView().fit(n,e.getSize())},f.prototype.refresh=function(){if(0!==this.symbolMapArray.length)for(var e,t=this.symbolMapArray.length-1;-1!==t;--t)e=this.symbolMapArray[t],L("#"+e.getTarget()).is(":visible")&&e.updateSize()},ol.inherits(y,ol.control.Control),ol.inherits(a,ol.control.Control),ol.inherits(h,ol.control.Control),l.doc.on("submit",".wb-geomap-filter",function(e){e.preventDefault();var e=L(this),o=A.getElementById(e.data("bind-to")).geomap;e.find("select[data-filter]").each(function(){var e=L(this),t=e.find("option:selected").val(),e=e.attr("data-filter");"aoi"===e&&o.zoomAOI(t),"layer"===e&&o.showLayer(t,!0)})}),l.doc.on("click",".wb-geomap-filter [type=reset]",function(){var e=L(this.form),t=A.getElementById(e.data("bind-to")).geomap,o=t.map,a=o.getView();o.getView().fit(a.calculateExtent(o.getSize()),o.getSize()),e.find("select[data-filter=layer] option").each(function(){this.defaultSelected&&t.showLayer(this.value,!0)}),e.find("select[data-filter=aoi] option").each(function(){this.defaultSelected&&t.zoomAOI(this.value)})})}(jQuery,(window,document),wb);
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/*! DataTables 1.13.7
|
2
|
-
* ©2008-2023 SpryMedia Ltd - datatables.net/license
|
3
|
-
*/
|
4
|
-
!function(n){"use strict";var a;"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?(a=require("jquery"),"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||a(t),n(e,t,t.document)}:module.exports=n(a,window,window.document)):window.DataTable=n(jQuery,window,document)}(function(P,j,v,H){"use strict";function d(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function l(t,e,n){var a=typeof t,r="string"==a;return"number"==a||"bigint"==a||!!h(t)||(e&&r&&(t=$(t,e)),n&&r&&(t=t.replace(q,"")),!isNaN(parseFloat(t))&&isFinite(t))}function a(t,e,n){var a;return!!h(t)||(h(a=t)||"string"==typeof a)&&!!l(t.replace(V,"").replace(/<script/i,""),e,n)||null}function m(t,e,n,a){var r=[],o=0,i=e.length;if(a!==H)for(;o<i;o++)t[e[o]][n]&&r.push(t[e[o]][n][a]);else for(;o<i;o++)r.push(t[e[o]][n]);return r}function f(t,e){var n,a=[];e===H?(e=0,n=t):(n=e,e=t);for(var r=e;r<n;r++)a.push(r);return a}function _(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e}function s(t,e){return-1!==this.indexOf(t,e=e===H?0:e)}var p,e,t,w=function(t,v){if(w.factory(t,v))return w;if(this instanceof w)return P(t).DataTable(v);v=t,this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new B(t?ge(this[p.iApiIndex]):this)},this.fnAddData=function(t,e){var n=this.api(!0),t=(Array.isArray(t)&&(Array.isArray(t[0])||P.isPlainObject(t[0]))?n.rows:n.row).add(t);return e!==H&&!e||n.draw(),t.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],a=n.oScroll;t===H||t?e.draw(!1):""===a.sX&&""===a.sY||Qt(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();t!==H&&!t||e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var a=this.api(!0),t=a.rows(t),r=t.settings()[0],o=r.aoData[t[0][0]];return t.remove(),e&&e.call(this,r,o),n!==H&&!n||a.draw(),o},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,a,r,o){var i=this.api(!0);(null===e||e===H?i:i.column(e)).search(t,n,a,o),i.draw()},this.fnGetData=function(t,e){var n,a=this.api(!0);return t!==H?(n=t.nodeName?t.nodeName.toLowerCase():"",e!==H||"td"==n||"th"==n?a.cell(t,e).data():a.row(t).data()||null):a.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==H?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(n=e.cell(t).index()).row,n.columnVisible,n.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){t=this.api(!0).page(t);e!==H&&!e||t.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e);n!==H&&!n||t.columns.adjust().draw()},this.fnSettings=function(){return ge(this[p.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,a,r){var o=this.api(!0);return(n===H||null===n?o.row(e):o.cell(e,n)).data(t),r!==H&&!r||o.columns.adjust(),a!==H&&!a||o.draw(),0},this.fnVersionCheck=p.fnVersionCheck;var e,y=this,D=v===H,_=this.length;for(e in D&&(v={}),this.oApi=this.internal=p.internal,w.ext.internal)e&&(this[e]=$e(e));return this.each(function(){var r=1<_?be({},v,!0):v,o=0,t=this.getAttribute("id"),i=!1,e=w.defaults,l=P(this);if("table"!=this.nodeName.toLowerCase())W(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{K(e),Q(e.column),C(e,e,!0),C(e.column,e.column,!0),C(e,P.extend(r,l.data()),!0);for(var n=w.settings,o=0,s=n.length;o<s;o++){var a=n[o];if(a.nTable==this||a.nTHead&&a.nTHead.parentNode==this||a.nTFoot&&a.nTFoot.parentNode==this){var u=(r.bRetrieve!==H?r:e).bRetrieve,c=(r.bDestroy!==H?r:e).bDestroy;if(D||u)return a.oInstance;if(c){a.oInstance.fnDestroy();break}return void W(a,0,"Cannot reinitialise DataTable",3)}if(a.sTableId==this.id){n.splice(o,1);break}}null!==t&&""!==t||(t="DataTables_Table_"+w.ext._unique++,this.id=t);var f,d,h=P.extend(!0,{},w.models.oSettings,{sDestroyWidth:l[0].style.width,sInstance:t,sTableId:t}),p=(h.nTable=this,h.oApi=y.internal,h.oInit=r,n.push(h),h.oInstance=1===y.length?y:l.dataTable(),K(r),Z(r.oLanguage),r.aLengthMenu&&!r.iDisplayLength&&(r.iDisplayLength=(Array.isArray(r.aLengthMenu[0])?r.aLengthMenu[0]:r.aLengthMenu)[0]),r=be(P.extend(!0,{},e),r),F(h.oFeatures,r,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),F(h,r,["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"]]),F(h.oScroll,r,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),F(h.oLanguage,r,"fnInfoCallback"),L(h,"aoDrawCallback",r.fnDrawCallback,"user"),L(h,"aoServerParams",r.fnServerParams,"user"),L(h,"aoStateSaveParams",r.fnStateSaveParams,"user"),L(h,"aoStateLoadParams",r.fnStateLoadParams,"user"),L(h,"aoStateLoaded",r.fnStateLoaded,"user"),L(h,"aoRowCallback",r.fnRowCallback,"user"),L(h,"aoRowCreatedCallback",r.fnCreatedRow,"user"),L(h,"aoHeaderCallback",r.fnHeaderCallback,"user"),L(h,"aoFooterCallback",r.fnFooterCallback,"user"),L(h,"aoInitComplete",r.fnInitComplete,"user"),L(h,"aoPreDrawCallback",r.fnPreDrawCallback,"user"),h.rowIdFn=A(r.rowId),tt(h),h.oClasses),g=(P.extend(p,w.ext.classes,r.oClasses),l.addClass(p.sTable),h.iInitDisplayStart===H&&(h.iInitDisplayStart=r.iDisplayStart,h._iDisplayStart=r.iDisplayStart),null!==r.iDeferLoading&&(h.bDeferLoading=!0,t=Array.isArray(r.iDeferLoading),h._iRecordsDisplay=t?r.iDeferLoading[0]:r.iDeferLoading,h._iRecordsTotal=t?r.iDeferLoading[1]:r.iDeferLoading),h.oLanguage),t=(P.extend(!0,g,r.oLanguage),g.sUrl?(P.ajax({dataType:"json",url:g.sUrl,success:function(t){C(e.oLanguage,t),Z(t),P.extend(!0,g,t,h.oInit.oLanguage),R(h,null,"i18n",[h]),Jt(h)},error:function(){Jt(h)}}),i=!0):R(h,null,"i18n",[h]),null===r.asStripeClasses&&(h.asStripeClasses=[p.sStripeOdd,p.sStripeEven]),h.asStripeClasses),b=l.children("tbody").find("tr").eq(0),m=(-1!==P.inArray(!0,P.map(t,function(t,e){return b.hasClass(t)}))&&(P("tbody tr",this).removeClass(t.join(" ")),h.asDestroyStripes=t.slice()),[]),t=this.getElementsByTagName("thead");if(0!==t.length&&(wt(h.aoHeader,t[0]),m=Ct(h)),null===r.aoColumns)for(f=[],o=0,s=m.length;o<s;o++)f.push(null);else f=r.aoColumns;for(o=0,s=f.length;o<s;o++)nt(h,m?m[o]:null);st(h,r.aoColumnDefs,f,function(t,e){at(h,t,e)}),b.length&&(d=function(t,e){return null!==t.getAttribute("data-"+e)?e:null},P(b[0]).children("th, td").each(function(t,e){var n,a=h.aoColumns[t];a||W(h,0,"Incorrect column count",18),a.mData===t&&(n=d(e,"sort")||d(e,"order"),e=d(e,"filter")||d(e,"search"),null===n&&null===e||(a.mData={_:t+".display",sort:null!==n?t+".@data-"+n:H,type:null!==n?t+".@data-"+n:H,filter:null!==e?t+".@data-"+e:H},a._isArrayHost=!0,at(h,t)))}));var S=h.oFeatures,t=function(){if(r.aaSorting===H){var t=h.aaSorting;for(o=0,s=t.length;o<s;o++)t[o][1]=h.aoColumns[o].asSorting[0]}ce(h),S.bSort&&L(h,"aoDrawCallback",function(){var t,n;h.bSorted&&(t=I(h),n={},P.each(t,function(t,e){n[e.src]=e.dir}),R(h,null,"order",[h,t,n]),le(h))}),L(h,"aoDrawCallback",function(){(h.bSorted||"ssp"===E(h)||S.bDeferRender)&&ce(h)},"sc");var e=l.children("caption").each(function(){this._captionSide=P(this).css("caption-side")}),n=l.children("thead"),a=(0===n.length&&(n=P("<thead/>").appendTo(l)),h.nTHead=n[0],l.children("tbody")),n=(0===a.length&&(a=P("<tbody/>").insertAfter(n)),h.nTBody=a[0],l.children("tfoot"));if(0===(n=0===n.length&&0<e.length&&(""!==h.oScroll.sX||""!==h.oScroll.sY)?P("<tfoot/>").appendTo(l):n).length||0===n.children().length?l.addClass(p.sNoFooter):0<n.length&&(h.nTFoot=n[0],wt(h.aoFooter,h.nTFoot)),r.aaData)for(o=0;o<r.aaData.length;o++)x(h,r.aaData[o]);else!h.bDeferLoading&&"dom"!=E(h)||ut(h,P(h.nTBody).children("tr"));h.aiDisplay=h.aiDisplayMaster.slice(),!(h.bInitialised=!0)===i&&Jt(h)};L(h,"aoDrawCallback",de,"state_save"),r.bStateSave?(S.bStateSave=!0,he(h,0,t)):t()}}),y=null,this},c={},U=/[\r\n\u2028]/g,V=/<.*?>/g,X=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,J=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),q=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,h=function(t){return!t||!0===t||"-"===t},$=function(t,e){return c[e]||(c[e]=new RegExp(Ot(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(c[e],"."):t},N=function(t,e,n){var a=[],r=0,o=t.length;if(n!==H)for(;r<o;r++)t[r]&&t[r][e]&&a.push(t[r][e][n]);else for(;r<o;r++)t[r]&&a.push(t[r][e]);return a},G=function(t){if(!(t.length<2))for(var e=t.slice().sort(),n=e[0],a=1,r=e.length;a<r;a++){if(e[a]===n)return!1;n=e[a]}return!0},z=function(t){if(G(t))return t.slice();var e,n,a,r=[],o=t.length,i=0;t:for(n=0;n<o;n++){for(e=t[n],a=0;a<i;a++)if(r[a]===e)continue t;r.push(e),i++}return r},Y=function(t,e){if(Array.isArray(e))for(var n=0;n<e.length;n++)Y(t,e[n]);else t.push(e);return t};function i(n){var a,r,o={};P.each(n,function(t,e){(a=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(a[1]+" ")&&(r=t.replace(a[0],a[2].toLowerCase()),o[r]=t,"o"===a[1])&&i(n[t])}),n._hungarianMap=o}function C(n,a,r){var o;n._hungarianMap||i(n),P.each(a,function(t,e){(o=n._hungarianMap[t])===H||!r&&a[o]!==H||("o"===o.charAt(0)?(a[o]||(a[o]={}),P.extend(!0,a[o],a[t]),C(n[o],a[o],r)):a[o]=a[t])})}function Z(t){var e,n=w.defaults.oLanguage,a=n.sDecimal;a&&Me(a),t&&(e=t.sZeroRecords,!t.sEmptyTable&&e&&"No data available in table"===n.sEmptyTable&&F(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&e&&"Loading..."===n.sLoadingRecords&&F(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),e=t.sDecimal)&&a!==e&&Me(e)}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.includes||(Array.prototype.includes=s),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||(String.prototype.includes=s),w.util={throttle:function(a,t){var r,o,i=t!==H?t:200;return function(){var t=this,e=+new Date,n=arguments;r&&e<r+i?(clearTimeout(o),o=setTimeout(function(){r=H,a.apply(t,n)},i)):(r=e,a.apply(t,n))}},escapeRegex:function(t){return t.replace(J,"\\$1")},set:function(a){var d;return P.isPlainObject(a)?w.util.set(a._):null===a?function(){}:"function"==typeof a?function(t,e,n){a(t,"set",e,n)}:"string"!=typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("(")?function(t,e){t[a]=e}:(d=function(t,e,n){for(var a,r,o,i,l=dt(n),n=l[l.length-1],s=0,u=l.length-1;s<u;s++){if("__proto__"===l[s]||"constructor"===l[s])throw new Error("Cannot set prototype values");if(a=l[s].match(ft),r=l[s].match(g),a){if(l[s]=l[s].replace(ft,""),t[l[s]]=[],(a=l.slice()).splice(0,s+1),i=a.join("."),Array.isArray(e))for(var c=0,f=e.length;c<f;c++)d(o={},e[c],i),t[l[s]].push(o);else t[l[s]]=e;return}r&&(l[s]=l[s].replace(g,""),t=t[l[s]](e)),null!==t[l[s]]&&t[l[s]]!==H||(t[l[s]]={}),t=t[l[s]]}n.match(g)?t[n.replace(g,"")](e):t[n.replace(ft,"")]=e},function(t,e){return d(t,e,a)})},get:function(r){var o,d;return P.isPlainObject(r)?(o={},P.each(r,function(t,e){e&&(o[t]=w.util.get(e))}),function(t,e,n,a){var r=o[e]||o._;return r!==H?r(t,e,n,a):t}):null===r?function(t){return t}:"function"==typeof r?function(t,e,n,a){return r(t,e,n,a)}:"string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("(")?function(t,e){return t[r]}:(d=function(t,e,n){var a,r,o;if(""!==n)for(var i=dt(n),l=0,s=i.length;l<s;l++){if(f=i[l].match(ft),a=i[l].match(g),f){if(i[l]=i[l].replace(ft,""),""!==i[l]&&(t=t[i[l]]),r=[],i.splice(0,l+1),o=i.join("."),Array.isArray(t))for(var u=0,c=t.length;u<c;u++)r.push(d(t[u],e,o));var f=f[0].substring(1,f[0].length-1);t=""===f?r:r.join(f);break}if(a)i[l]=i[l].replace(g,""),t=t[i[l]]();else{if(null===t||null===t[i[l]])return null;if(t===H||t[i[l]]===H)return H;t=t[i[l]]}}return t},function(t,e){return d(t,e,r)})}};var r=function(t,e,n){t[e]!==H&&(t[n]=t[e])};function K(t){r(t,"ordering","bSort"),r(t,"orderMulti","bSortMulti"),r(t,"orderClasses","bSortClasses"),r(t,"orderCellsTop","bSortCellsTop"),r(t,"order","aaSorting"),r(t,"orderFixed","aaSortingFixed"),r(t,"paging","bPaginate"),r(t,"pagingType","sPaginationType"),r(t,"pageLength","iDisplayLength"),r(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var e=t.aoSearchCols;if(e)for(var n=0,a=e.length;n<a;n++)e[n]&&C(w.models.oSearch,e[n])}function Q(t){r(t,"orderable","bSortable"),r(t,"orderData","aDataSort"),r(t,"orderSequence","asSorting"),r(t,"orderDataType","sortDataType");var e=t.aDataSort;"number"!=typeof e||Array.isArray(e)||(t.aDataSort=[e])}function tt(t){var e,n,a,r;w.__browser||(w.__browser=e={},r=(a=(n=P("<div/>").css({position:"fixed",top:0,left:-1*P(j).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(P("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(P("<div/>").css({width:"100%",height:10}))).appendTo("body")).children()).children(),e.barWidth=a[0].offsetWidth-a[0].clientWidth,e.bScrollOversize=100===r[0].offsetWidth&&100!==a[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),e.bBounding=!!n[0].getBoundingClientRect().width,n.remove()),P.extend(t.oBrowser,w.__browser),t.oScroll.iBarWidth=w.__browser.barWidth}function et(t,e,n,a,r,o){var i,l=a,s=!1;for(n!==H&&(i=n,s=!0);l!==r;)t.hasOwnProperty(l)&&(i=s?e(i,t[l],l,t):t[l],s=!0,l+=o);return i}function nt(t,e){var n=w.defaults.column,a=t.aoColumns.length,n=P.extend({},w.models.oColumn,n,{nTh:e||v.createElement("th"),sTitle:n.sTitle||(e?e.innerHTML:""),aDataSort:n.aDataSort||[a],mData:n.mData||a,idx:a}),n=(t.aoColumns.push(n),t.aoPreSearchCols);n[a]=P.extend({},w.models.oSearch,n[a]),at(t,a,P(e).data())}function at(t,e,n){function a(t){return"string"==typeof t&&-1!==t.indexOf("@")}var e=t.aoColumns[e],r=t.oClasses,o=P(e.nTh),i=(!e.sWidthOrig&&(e.sWidthOrig=o.attr("width")||null,u=(o.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/))&&(e.sWidthOrig=u[1]),n!==H&&null!==n&&(Q(n),C(w.defaults.column,n,!0),n.mDataProp===H||n.mData||(n.mData=n.mDataProp),n.sType&&(e._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),n.sClass&&o.addClass(n.sClass),u=e.sClass,P.extend(e,n),F(e,n,"sWidth","sWidthOrig"),u!==e.sClass&&(e.sClass=u+" "+e.sClass),n.iDataSort!==H&&(e.aDataSort=[n.iDataSort]),F(e,n,"aDataSort"),e.ariaTitle||(e.ariaTitle=o.attr("aria-label"))),e.mData),l=A(i),s=e.mRender?A(e.mRender):null,u=(e._bAttrSrc=P.isPlainObject(i)&&(a(i.sort)||a(i.type)||a(i.filter)),e._setter=null,e.fnGetData=function(t,e,n){var a=l(t,e,H,n);return s&&e?s(a,e,t,n):a},e.fnSetData=function(t,e,n){return b(i)(t,e,n)},"number"==typeof i||e._isArrayHost||(t._rowReadObject=!0),t.oFeatures.bSort||(e.bSortable=!1,o.addClass(r.sSortableNone)),-1!==P.inArray("asc",e.asSorting)),n=-1!==P.inArray("desc",e.asSorting);e.bSortable&&(u||n)?u&&!n?(e.sSortingClass=r.sSortableAsc,e.sSortingClassJUI=r.sSortJUIAscAllowed):!u&&n?(e.sSortingClass=r.sSortableDesc,e.sSortingClassJUI=r.sSortJUIDescAllowed):(e.sSortingClass=r.sSortable,e.sSortingClassJUI=r.sSortJUI):(e.sSortingClass=r.sSortableNone,e.sSortingClassJUI="")}function O(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;ee(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}var r=t.oScroll;""===r.sY&&""===r.sX||Qt(t),R(t,null,"column-sizing",[t])}function rt(t,e){t=it(t,"bVisible");return"number"==typeof t[e]?t[e]:null}function ot(t,e){t=it(t,"bVisible"),e=P.inArray(e,t);return-1!==e?e:null}function T(t){var n=0;return P.each(t.aoColumns,function(t,e){e.bVisible&&"none"!==P(e.nTh).css("display")&&n++}),n}function it(t,n){var a=[];return P.map(t.aoColumns,function(t,e){t[n]&&a.push(e)}),a}function lt(t){for(var e,n,a,r,o,i,l,s=t.aoColumns,u=t.aoData,c=w.ext.type.detect,f=0,d=s.length;f<d;f++)if(l=[],!(o=s[f]).sType&&o._sManualType)o.sType=o._sManualType;else if(!o.sType){for(e=0,n=c.length;e<n;e++){for(a=0,r=u.length;a<r&&(l[a]===H&&(l[a]=S(t,a,f,"type")),(i=c[e](l[a],t))||e===c.length-1)&&("html"!==i||h(l[a]));a++);if(i){o.sType=i;break}}o.sType||(o.sType="string")}}function st(t,e,n,a){var r,o,i,l,s=t.aoColumns;if(e)for(r=e.length-1;0<=r;r--)for(var u,c=(u=e[r]).target!==H?u.target:u.targets!==H?u.targets:u.aTargets,f=0,d=(c=Array.isArray(c)?c:[c]).length;f<d;f++)if("number"==typeof c[f]&&0<=c[f]){for(;s.length<=c[f];)nt(t);a(c[f],u)}else if("number"==typeof c[f]&&c[f]<0)a(s.length+c[f],u);else if("string"==typeof c[f])for(i=0,l=s.length;i<l;i++)"_all"!=c[f]&&!P(s[i].nTh).hasClass(c[f])||a(i,u);if(n)for(r=0,o=n.length;r<o;r++)a(r,n[r])}function x(t,e,n,a){for(var r=t.aoData.length,o=P.extend(!0,{},w.models.oRow,{src:n?"dom":"data",idx:r}),i=(o._aData=e,t.aoData.push(o),t.aoColumns),l=0,s=i.length;l<s;l++)i[l].sType=null;t.aiDisplayMaster.push(r);e=t.rowIdFn(e);return e!==H&&(t.aIds[e]=o),!n&&t.oFeatures.bDeferRender||St(t,r,n,a),r}function ut(n,t){var a;return(t=t instanceof P?t:P(t)).map(function(t,e){return a=mt(n,e),x(n,a.data,e,a.cells)})}function S(t,e,n,a){"search"===a?a="filter":"order"===a&&(a="sort");var r=t.iDraw,o=t.aoColumns[n],i=t.aoData[e]._aData,l=o.sDefaultContent,s=o.fnGetData(i,a,{settings:t,row:e,col:n});if(s===H)return t.iDrawError!=r&&null===l&&(W(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),l;if(s!==i&&null!==s||null===l||a===H){if("function"==typeof s)return s.call(i)}else s=l;return null===s&&"display"===a?"":"filter"===a&&(e=w.ext.type.search)[o.sType]?e[o.sType](s):s}function ct(t,e,n,a){var r=t.aoColumns[n],o=t.aoData[e]._aData;r.fnSetData(o,a,{settings:t,row:e,col:n})}var ft=/\[.*?\]$/,g=/\(\)$/;function dt(t){return P.map(t.match(/(\\.|[^\.])+/g)||[""],function(t){return t.replace(/\\\./g,".")})}var A=w.util.get,b=w.util.set;function ht(t){return N(t.aoData,"_aData")}function pt(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function gt(t,e,n){for(var a=-1,r=0,o=t.length;r<o;r++)t[r]==e?a=r:t[r]>e&&t[r]--;-1!=a&&n===H&&t.splice(a,1)}function bt(n,a,t,e){function r(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=S(n,a,e,"display")}var o,i,l=n.aoData[a];if("dom"!==t&&(t&&"auto"!==t||"dom"!==l.src)){var s=l.anCells;if(s)if(e!==H)r(s[e],e);else for(o=0,i=s.length;o<i;o++)r(s[o],o)}else l._aData=mt(n,l,e,e===H?H:l._aData).data;l._aSortData=null,l._aFilterData=null;var u=n.aoColumns;if(e!==H)u[e].sType=null;else{for(o=0,i=u.length;o<i;o++)u[o].sType=null;vt(n,l)}}function mt(t,e,n,a){function r(t,e){var n;"string"==typeof t&&-1!==(n=t.indexOf("@"))&&(n=t.substring(n+1),b(t)(a,e.getAttribute(n)))}function o(t){n!==H&&n!==f||(l=d[f],s=t.innerHTML.trim(),l&&l._bAttrSrc?(b(l.mData._)(a,s),r(l.mData.sort,t),r(l.mData.type,t),r(l.mData.filter,t)):h?(l._setter||(l._setter=b(l.mData)),l._setter(a,s)):a[f]=s),f++}var i,l,s,u=[],c=e.firstChild,f=0,d=t.aoColumns,h=t._rowReadObject;a=a!==H?a:h?{}:[];if(c)for(;c;)"TD"!=(i=c.nodeName.toUpperCase())&&"TH"!=i||(o(c),u.push(c)),c=c.nextSibling;else for(var p=0,g=(u=e.anCells).length;p<g;p++)o(u[p]);var e=e.firstChild?e:e.nTr;return e&&(e=e.getAttribute("id"))&&b(t.rowId)(a,e),{data:a,cells:u}}function St(t,e,n,a){var r,o,i,l,s,u,c=t.aoData[e],f=c._aData,d=[];if(null===c.nTr){for(r=n||v.createElement("tr"),c.nTr=r,c.anCells=d,r._DT_RowIndex=e,vt(t,c),l=0,s=t.aoColumns.length;l<s;l++)i=t.aoColumns[l],(o=(u=!n)?v.createElement(i.sCellType):a[l])||W(t,0,"Incorrect column count",18),o._DT_CellIndex={row:e,column:l},d.push(o),!u&&(!i.mRender&&i.mData===l||P.isPlainObject(i.mData)&&i.mData._===l+".display")||(o.innerHTML=S(t,e,l,"display")),i.sClass&&(o.className+=" "+i.sClass),i.bVisible&&!n?r.appendChild(o):!i.bVisible&&n&&o.parentNode.removeChild(o),i.fnCreatedCell&&i.fnCreatedCell.call(t.oInstance,o,S(t,e,l),f,e,l);R(t,"aoRowCreatedCallback",null,[r,f,e,d])}}function vt(t,e){var n=e.nTr,a=e._aData;n&&((t=t.rowIdFn(a))&&(n.id=t),a.DT_RowClass&&(t=a.DT_RowClass.split(" "),e.__rowc=e.__rowc?z(e.__rowc.concat(t)):t,P(n).removeClass(e.__rowc.join(" ")).addClass(a.DT_RowClass)),a.DT_RowAttr&&P(n).attr(a.DT_RowAttr),a.DT_RowData)&&P(n).data(a.DT_RowData)}function yt(t){var e,n,a,r=t.nTHead,o=t.nTFoot,i=0===P("th, td",r).length,l=t.oClasses,s=t.aoColumns;for(i&&(n=P("<tr/>").appendTo(r)),c=0,f=s.length;c<f;c++)a=s[c],e=P(a.nTh).addClass(a.sClass),i&&e.appendTo(n),t.oFeatures.bSort&&(e.addClass(a.sSortingClass),!1!==a.bSortable)&&(e.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),ue(t,a.nTh,c)),a.sTitle!=e[0].innerHTML&&e.html(a.sTitle),ve(t,"header")(t,e,a,l);if(i&&wt(t.aoHeader,r),P(r).children("tr").children("th, td").addClass(l.sHeaderTH),P(o).children("tr").children("th, td").addClass(l.sFooterTH),null!==o)for(var u=t.aoFooter[0],c=0,f=u.length;c<f;c++)(a=s[c])?(a.nTf=u[c].cell,a.sClass&&P(a.nTf).addClass(a.sClass)):W(t,0,"Incorrect column count",18)}function Dt(t,e,n){var a,r,o,i,l,s,u,c,f,d=[],h=[],p=t.aoColumns.length;if(e){for(n===H&&(n=!1),a=0,r=e.length;a<r;a++){for(d[a]=e[a].slice(),d[a].nTr=e[a].nTr,o=p-1;0<=o;o--)t.aoColumns[o].bVisible||n||d[a].splice(o,1);h.push([])}for(a=0,r=d.length;a<r;a++){if(u=d[a].nTr)for(;s=u.firstChild;)u.removeChild(s);for(o=0,i=d[a].length;o<i;o++)if(f=c=1,h[a][o]===H){for(u.appendChild(d[a][o].cell),h[a][o]=1;d[a+c]!==H&&d[a][o].cell==d[a+c][o].cell;)h[a+c][o]=1,c++;for(;d[a][o+f]!==H&&d[a][o].cell==d[a][o+f].cell;){for(l=0;l<c;l++)h[a+l][o+f]=1;f++}P(d[a][o].cell).attr("rowspan",c).attr("colspan",f)}}}}function y(t,e){n="ssp"==E(s=t),(l=s.iInitDisplayStart)!==H&&-1!==l&&(s._iDisplayStart=!n&&l>=s.fnRecordsDisplay()?0:l,s.iInitDisplayStart=-1);var n=R(t,"aoPreDrawCallback","preDraw",[t]);if(-1!==P.inArray(!1,n))D(t,!1);else{var a=[],r=0,o=t.asStripeClasses,i=o.length,l=t.oLanguage,s="ssp"==E(t),u=t.aiDisplay,n=t._iDisplayStart,c=t.fnDisplayEnd();if(t.bDrawing=!0,t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,D(t,!1);else if(s){if(!t.bDestroying&&!e)return void xt(t)}else t.iDraw++;if(0!==u.length)for(var f=s?t.aoData.length:c,d=s?0:n;d<f;d++){var h,p=u[d],g=t.aoData[p],b=(null===g.nTr&&St(t,p),g.nTr);0!==i&&(h=o[r%i],g._sRowStripe!=h)&&(P(b).removeClass(g._sRowStripe).addClass(h),g._sRowStripe=h),R(t,"aoRowCallback",null,[b,g._aData,r,d,p]),a.push(b),r++}else{e=l.sZeroRecords;1==t.iDraw&&"ajax"==E(t)?e=l.sLoadingRecords:l.sEmptyTable&&0===t.fnRecordsTotal()&&(e=l.sEmptyTable),a[0]=P("<tr/>",{class:i?o[0]:""}).append(P("<td />",{valign:"top",colSpan:T(t),class:t.oClasses.sRowEmpty}).html(e))[0]}R(t,"aoHeaderCallback","header",[P(t.nTHead).children("tr")[0],ht(t),n,c,u]),R(t,"aoFooterCallback","footer",[P(t.nTFoot).children("tr")[0],ht(t),n,c,u]);s=P(t.nTBody);s.children().detach(),s.append(P(a)),R(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function u(t,e){var n=t.oFeatures,a=n.bSort,n=n.bFilter;a&&ie(t),n?Rt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,y(t),t._drawHold=!1}function _t(t){for(var e,n,a,r,o,i,l,s=t.oClasses,u=P(t.nTable),u=P("<div/>").insertBefore(u),c=t.oFeatures,f=P("<div/>",{id:t.sTableId+"_wrapper",class:s.sWrapper+(t.nTFoot?"":" "+s.sNoFooter)}),d=(t.nHolding=u[0],t.nTableWrapper=f[0],t.nTableReinsertBefore=t.nTable.nextSibling,t.sDom.split("")),h=0;h<d.length;h++){if(e=null,"<"==(n=d[h])){if(a=P("<div/>")[0],"'"==(r=d[h+1])||'"'==r){for(o="",i=2;d[h+i]!=r;)o+=d[h+i],i++;"H"==o?o=s.sJUIHeader:"F"==o&&(o=s.sJUIFooter),-1!=o.indexOf(".")?(l=o.split("."),a.id=l[0].substr(1,l[0].length-1),a.className=l[1]):"#"==o.charAt(0)?a.id=o.substr(1,o.length-1):a.className=o,h+=i}f.append(a),f=P(a)}else if(">"==n)f=f.parent();else if("l"==n&&c.bPaginate&&c.bLengthChange)e=Gt(t);else if("f"==n&&c.bFilter)e=Lt(t);else if("r"==n&&c.bProcessing)e=Zt(t);else if("t"==n)e=Kt(t);else if("i"==n&&c.bInfo)e=Ut(t);else if("p"==n&&c.bPaginate)e=zt(t);else if(0!==w.ext.feature.length)for(var p=w.ext.feature,g=0,b=p.length;g<b;g++)if(n==p[g].cFeature){e=p[g].fnInit(t);break}e&&((l=t.aanFeatures)[n]||(l[n]=[]),l[n].push(e),f.append(e))}u.replaceWith(f),t.nHolding=null}function wt(t,e){var n,a,r,o,i,l,s,u,c,f,d=P(e).children("tr");for(t.splice(0,t.length),r=0,l=d.length;r<l;r++)t.push([]);for(r=0,l=d.length;r<l;r++)for(a=(n=d[r]).firstChild;a;){if("TD"==a.nodeName.toUpperCase()||"TH"==a.nodeName.toUpperCase())for(u=(u=+a.getAttribute("colspan"))&&0!=u&&1!=u?u:1,c=(c=+a.getAttribute("rowspan"))&&0!=c&&1!=c?c:1,s=function(t,e,n){for(var a=t[e];a[n];)n++;return n}(t,r,0),f=1==u,i=0;i<u;i++)for(o=0;o<c;o++)t[r+o][s+i]={cell:a,unique:f},t[r+o].nTr=n;a=a.nextSibling}}function Ct(t,e,n){var a=[];n||(n=t.aoHeader,e&&wt(n=[],e));for(var r=0,o=n.length;r<o;r++)for(var i=0,l=n[r].length;i<l;i++)!n[r][i].unique||a[i]&&t.bSortCellsTop||(a[i]=n[r][i].cell);return a}function Tt(r,t,n){function e(t){var e=r.jqXHR?r.jqXHR.status:null;(null===t||"number"==typeof e&&204==e)&&Ft(r,t={},[]),(e=t.error||t.sError)&&W(r,0,e),r.json=t,R(r,null,"xhr",[r,t,r.jqXHR]),n(t)}R(r,"aoServerParams","serverParams",[t]),t&&Array.isArray(t)&&(a={},o=/(.*?)\[\]$/,P.each(t,function(t,e){var n=e.name.match(o);n?(n=n[0],a[n]||(a[n]=[]),a[n].push(e.value)):a[e.name]=e.value}),t=a);var a,o,i,l=r.ajax,s=r.oInstance,u=(P.isPlainObject(l)&&l.data&&(u="function"==typeof(i=l.data)?i(t,r):i,t="function"==typeof i&&u?u:P.extend(!0,t,u),delete l.data),{data:t,success:e,dataType:"json",cache:!1,type:r.sServerMethod,error:function(t,e,n){var a=R(r,null,"xhr",[r,null,r.jqXHR]);-1===P.inArray(!0,a)&&("parsererror"==e?W(r,0,"Invalid JSON response",1):4===t.readyState&&W(r,0,"Ajax error",7)),D(r,!1)}});r.oAjaxData=t,R(r,null,"preXhr",[r,t]),r.fnServerData?r.fnServerData.call(s,r.sAjaxSource,P.map(t,function(t,e){return{name:e,value:t}}),e,r):r.sAjaxSource||"string"==typeof l?r.jqXHR=P.ajax(P.extend(u,{url:l||r.sAjaxSource})):"function"==typeof l?r.jqXHR=l.call(s,t,e,r):(r.jqXHR=P.ajax(P.extend(u,l)),l.data=i)}function xt(e){e.iDraw++,D(e,!0);var n=e._drawHold;Tt(e,At(e),function(t){e._drawHold=n,It(e,t),e._drawHold=!1})}function At(t){for(var e,n,a,r=t.aoColumns,o=r.length,i=t.oFeatures,l=t.oPreviousSearch,s=t.aoPreSearchCols,u=[],c=I(t),f=t._iDisplayStart,d=!1!==i.bPaginate?t._iDisplayLength:-1,h=function(t,e){u.push({name:t,value:e})},p=(h("sEcho",t.iDraw),h("iColumns",o),h("sColumns",N(r,"sName").join(",")),h("iDisplayStart",f),h("iDisplayLength",d),{draw:t.iDraw,columns:[],order:[],start:f,length:d,search:{value:l.sSearch,regex:l.bRegex}}),g=0;g<o;g++)n=r[g],a=s[g],e="function"==typeof n.mData?"function":n.mData,p.columns.push({data:e,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:a.sSearch,regex:a.bRegex}}),h("mDataProp_"+g,e),i.bFilter&&(h("sSearch_"+g,a.sSearch),h("bRegex_"+g,a.bRegex),h("bSearchable_"+g,n.bSearchable)),i.bSort&&h("bSortable_"+g,n.bSortable);i.bFilter&&(h("sSearch",l.sSearch),h("bRegex",l.bRegex)),i.bSort&&(P.each(c,function(t,e){p.order.push({column:e.col,dir:e.dir}),h("iSortCol_"+t,e.col),h("sSortDir_"+t,e.dir)}),h("iSortingCols",c.length));f=w.ext.legacy.ajax;return null===f?t.sAjaxSource?u:p:f?u:p}function It(t,n){function e(t,e){return n[t]!==H?n[t]:n[e]}var a=Ft(t,n),r=e("sEcho","draw"),o=e("iTotalRecords","recordsTotal"),i=e("iTotalDisplayRecords","recordsFiltered");if(r!==H){if(+r<t.iDraw)return;t.iDraw=+r}a=a||[],pt(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(i,10);for(var l=0,s=a.length;l<s;l++)x(t,a[l]);t.aiDisplay=t.aiDisplayMaster.slice(),y(t,!0),t._bInitComplete||qt(t,n),D(t,!1)}function Ft(t,e,n){t=P.isPlainObject(t.ajax)&&t.ajax.dataSrc!==H?t.ajax.dataSrc:t.sAjaxDataProp;if(!n)return"data"===t?e.aaData||e[t]:""!==t?A(t)(e):e;b(t)(e,n)}function Lt(n){function e(t){i.f;var e=this.value||"";o.return&&"Enter"!==t.key||e!=o.sSearch&&(Rt(n,{sSearch:e,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive,return:o.return}),n._iDisplayStart=0,y(n))}var t=n.oClasses,a=n.sTableId,r=n.oLanguage,o=n.oPreviousSearch,i=n.aanFeatures,l='<input type="search" class="'+t.sFilterInput+'"/>',s=(s=r.sSearch).match(/_INPUT_/)?s.replace("_INPUT_",l):s+l,l=P("<div/>",{id:i.f?null:a+"_filter",class:t.sFilter}).append(P("<label/>").append(s)),t=null!==n.searchDelay?n.searchDelay:"ssp"===E(n)?400:0,u=P("input",l).val(o.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",t?ne(e,t):e).on("mouseup.DT",function(t){setTimeout(function(){e.call(u[0],t)},10)}).on("keypress.DT",function(t){if(13==t.keyCode)return!1}).attr("aria-controls",a);return P(n.nTable).on("search.dt.DT",function(t,e){if(n===e)try{u[0]!==v.activeElement&&u.val(o.sSearch)}catch(t){}}),l[0]}function Rt(t,e,n){function a(t){o.sSearch=t.sSearch,o.bRegex=t.bRegex,o.bSmart=t.bSmart,o.bCaseInsensitive=t.bCaseInsensitive,o.return=t.return}function r(t){return t.bEscapeRegex!==H?!t.bEscapeRegex:t.bRegex}var o=t.oPreviousSearch,i=t.aoPreSearchCols;if(lt(t),"ssp"!=E(t)){Ht(t,e.sSearch,n,r(e),e.bSmart,e.bCaseInsensitive),a(e);for(var l=0;l<i.length;l++)jt(t,i[l].sSearch,l,r(i[l]),i[l].bSmart,i[l].bCaseInsensitive);Pt(t)}else a(e);t.bFiltered=!0,R(t,null,"search",[t])}function Pt(t){for(var e,n,a=w.ext.search,r=t.aiDisplay,o=0,i=a.length;o<i;o++){for(var l=[],s=0,u=r.length;s<u;s++)n=r[s],e=t.aoData[n],a[o](t,e._aFilterData,n,e._aData,s)&&l.push(n);r.length=0,P.merge(r,l)}}function jt(t,e,n,a,r,o){if(""!==e){for(var i,l=[],s=t.aiDisplay,u=Nt(e,a,r,o),c=0;c<s.length;c++)i=t.aoData[s[c]]._aFilterData[n],u.test(i)&&l.push(s[c]);t.aiDisplay=l}}function Ht(t,e,n,a,r,o){var i,l,s,u=Nt(e,a,r,o),r=t.oPreviousSearch.sSearch,o=t.aiDisplayMaster,c=[];if(0!==w.ext.search.length&&(n=!0),l=Wt(t),e.length<=0)t.aiDisplay=o.slice();else{for((l||n||a||r.length>e.length||0!==e.indexOf(r)||t.bSorted)&&(t.aiDisplay=o.slice()),i=t.aiDisplay,s=0;s<i.length;s++)u.test(t.aoData[i[s]]._sFilterRow)&&c.push(i[s]);t.aiDisplay=c}}function Nt(t,e,n,a){return t=e?t:Ot(t),n&&(t="^(?=.*?"+P.map(t.match(/["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""],function(t){var e;return'"'===t.charAt(0)?t=(e=t.match(/^"(.*)"$/))?e[1]:t:"“"===t.charAt(0)&&(t=(e=t.match(/^\u201C(.*)\u201D$/))?e[1]:t),t.replace('"',"")}).join(")(?=.*?")+").*$"),new RegExp(t,a?"i":"")}var Ot=w.util.escapeRegex,kt=P("<div>")[0],Mt=kt.textContent!==H;function Wt(t){for(var e,n,a,r,o,i=t.aoColumns,l=!1,s=0,u=t.aoData.length;s<u;s++)if(!(o=t.aoData[s])._aFilterData){for(a=[],e=0,n=i.length;e<n;e++)i[e].bSearchable?"string"!=typeof(r=null===(r=S(t,s,e,"filter"))?"":r)&&r.toString&&(r=r.toString()):r="",r.indexOf&&-1!==r.indexOf("&")&&(kt.innerHTML=r,r=Mt?kt.textContent:kt.innerText),r.replace&&(r=r.replace(/[\r\n\u2028]/g,"")),a.push(r);o._aFilterData=a,o._sFilterRow=a.join(" "),l=!0}return l}function Et(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Bt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function Ut(t){var e=t.sTableId,n=t.aanFeatures.i,a=P("<div/>",{class:t.oClasses.sInfo,id:n?null:e+"_info"});return n||(t.aoDrawCallback.push({fn:Vt,sName:"information"}),a.attr("role","status").attr("aria-live","polite"),P(t.nTable).attr("aria-describedby",e+"_info")),a[0]}function Vt(t){var e,n,a,r,o,i,l=t.aanFeatures.i;0!==l.length&&(i=t.oLanguage,e=t._iDisplayStart+1,n=t.fnDisplayEnd(),a=t.fnRecordsTotal(),o=(r=t.fnRecordsDisplay())?i.sInfo:i.sInfoEmpty,r!==a&&(o+=" "+i.sInfoFiltered),o=Xt(t,o+=i.sInfoPostFix),null!==(i=i.fnInfoCallback)&&(o=i.call(t.oInstance,t,e,n,a,r,o)),P(l).html(o))}function Xt(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,r=t._iDisplayLength,o=t.fnRecordsDisplay(),i=-1===r;return e.replace(/_START_/g,n.call(t,a)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,i?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(t,i?1:Math.ceil(o/r)))}function Jt(n){var a,t,e,r=n.iInitDisplayStart,o=n.aoColumns,i=n.oFeatures,l=n.bDeferLoading;if(n.bInitialised){for(_t(n),yt(n),Dt(n,n.aoHeader),Dt(n,n.aoFooter),D(n,!0),i.bAutoWidth&&ee(n),a=0,t=o.length;a<t;a++)(e=o[a]).sWidth&&(e.nTh.style.width=M(e.sWidth));R(n,null,"preInit",[n]),u(n);i=E(n);"ssp"==i&&!l||("ajax"==i?Tt(n,[],function(t){var e=Ft(n,t);for(a=0;a<e.length;a++)x(n,e[a]);n.iInitDisplayStart=r,u(n),D(n,!1),qt(n,t)}):(D(n,!1),qt(n)))}else setTimeout(function(){Jt(n)},200)}function qt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&O(t),R(t,null,"plugin-init",[t,e]),R(t,"aoInitComplete","init",[t,e])}function $t(t,e){e=parseInt(e,10);t._iDisplayLength=e,Se(t),R(t,null,"length",[t,e])}function Gt(a){for(var t=a.oClasses,e=a.sTableId,n=a.aLengthMenu,r=Array.isArray(n[0]),o=r?n[0]:n,i=r?n[1]:n,l=P("<select/>",{name:e+"_length","aria-controls":e,class:t.sLengthSelect}),s=0,u=o.length;s<u;s++)l[0][s]=new Option("number"==typeof i[s]?a.fnFormatNumber(i[s]):i[s],o[s]);var c=P("<div><label/></div>").addClass(t.sLength);return a.aanFeatures.l||(c[0].id=e+"_length"),c.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),P("select",c).val(a._iDisplayLength).on("change.DT",function(t){$t(a,P(this).val()),y(a)}),P(a.nTable).on("length.dt.DT",function(t,e,n){a===e&&P("select",c).val(n)}),c[0]}function zt(t){function c(t){y(t)}var e=t.sPaginationType,f=w.ext.pager[e],d="function"==typeof f,e=P("<div/>").addClass(t.oClasses.sPaging+e)[0],h=t.aanFeatures;return d||f.fnInit(t,e,c),h.p||(e.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(d)for(var e=t._iDisplayStart,n=t._iDisplayLength,a=t.fnRecordsDisplay(),r=-1===n,o=r?0:Math.ceil(e/n),i=r?1:Math.ceil(a/n),l=f(o,i),s=0,u=h.p.length;s<u;s++)ve(t,"pageButton")(t,h.p[s],s,l,o,i);else f.fnUpdate(t,c)},sName:"pagination"})),e}function Yt(t,e,n){var a=t._iDisplayStart,r=t._iDisplayLength,o=t.fnRecordsDisplay(),o=(0===o||-1===r?a=0:"number"==typeof e?o<(a=e*r)&&(a=0):"first"==e?a=0:"previous"==e?(a=0<=r?a-r:0)<0&&(a=0):"next"==e?a+r<o&&(a+=r):"last"==e?a=Math.floor((o-1)/r)*r:W(t,0,"Unknown paging action: "+e,5),t._iDisplayStart!==a);return t._iDisplayStart=a,o?(R(t,null,"page",[t]),n&&y(t)):R(t,null,"page-nc",[t]),o}function Zt(t){return P("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing,role:"status"}).html(t.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>").insertBefore(t.nTable)[0]}function D(t,e){t.oFeatures.bProcessing&&P(t.aanFeatures.r).css("display",e?"block":"none"),R(t,null,"processing",[t,e])}function Kt(t){var e,n,a,r,o,i,l,s,u,c,f,d,h=P(t.nTable),p=t.oScroll;return""===p.sX&&""===p.sY?t.nTable:(e=p.sX,n=p.sY,a=t.oClasses,o=(r=h.children("caption")).length?r[0]._captionSide:null,s=P(h[0].cloneNode(!1)),i=P(h[0].cloneNode(!1)),u=function(t){return t?M(t):null},(l=h.children("tfoot")).length||(l=null),s=P(f="<div/>",{class:a.sScrollWrapper}).append(P(f,{class:a.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollHeadInner}).css({"box-sizing":"content-box",width:p.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===o?r:null).append(h.children("thead"))))).append(P(f,{class:a.sScrollBody}).css({position:"relative",overflow:"auto",width:u(e)}).append(h)),l&&s.append(P(f,{class:a.sScrollFoot}).css({overflow:"hidden",border:0,width:e?u(e):"100%"}).append(P(f,{class:a.sScrollFootInner}).append(i.removeAttr("id").css("margin-left",0).append("bottom"===o?r:null).append(h.children("tfoot"))))),u=s.children(),c=u[0],f=u[1],d=l?u[2]:null,e&&P(f).on("scroll.DT",function(t){var e=this.scrollLeft;c.scrollLeft=e,l&&(d.scrollLeft=e)}),P(f).css("max-height",n),p.bCollapse||P(f).css("height",n),t.nScrollHead=c,t.nScrollBody=f,t.nScrollFoot=d,t.aoDrawCallback.push({fn:Qt,sName:"scrolling"}),s[0])}function Qt(n){function t(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0}var e,a,r,o,i,l=n.oScroll,s=l.sX,u=l.sXInner,c=l.sY,l=l.iBarWidth,f=P(n.nScrollHead),d=f[0].style,h=f.children("div"),p=h[0].style,h=h.children("table"),g=n.nScrollBody,b=P(g),m=g.style,S=P(n.nScrollFoot).children("div"),v=S.children("table"),y=P(n.nTHead),D=P(n.nTable),_=D[0],w=_.style,C=n.nTFoot?P(n.nTFoot):null,T=n.oBrowser,x=T.bScrollOversize,A=(N(n.aoColumns,"nTh"),[]),I=[],F=[],L=[],R=g.scrollHeight>g.clientHeight;n.scrollBarVis!==R&&n.scrollBarVis!==H?(n.scrollBarVis=R,O(n)):(n.scrollBarVis=R,D.children("thead, tfoot").remove(),C&&(R=C.clone().prependTo(D),i=C.find("tr"),a=R.find("tr"),R.find("[id]").removeAttr("id")),R=y.clone().prependTo(D),y=y.find("tr"),e=R.find("tr"),R.find("th, td").removeAttr("tabindex"),R.find("[id]").removeAttr("id"),s||(m.width="100%",f[0].style.width="100%"),P.each(Ct(n,R),function(t,e){r=rt(n,t),e.style.width=n.aoColumns[r].sWidth}),C&&k(function(t){t.style.width=""},a),f=D.outerWidth(),""===s?(w.width="100%",x&&(D.find("tbody").height()>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(D.outerWidth()-l)),f=D.outerWidth()):""!==u&&(w.width=M(u),f=D.outerWidth()),k(t,e),k(function(t){var e=j.getComputedStyle?j.getComputedStyle(t).width:M(P(t).width());F.push(t.innerHTML),A.push(e)},e),k(function(t,e){t.style.width=A[e]},y),P(e).css("height",0),C&&(k(t,a),k(function(t){L.push(t.innerHTML),I.push(M(P(t).css("width")))},a),k(function(t,e){t.style.width=I[e]},i),P(a).height(0)),k(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+F[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=A[e]},e),C&&k(function(t,e){t.innerHTML='<div class="dataTables_sizing">'+L[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=I[e]},a),Math.round(D.outerWidth())<Math.round(f)?(o=g.scrollHeight>g.offsetHeight||"scroll"==b.css("overflow-y")?f+l:f,x&&(g.scrollHeight>g.offsetHeight||"scroll"==b.css("overflow-y"))&&(w.width=M(o-l)),""!==s&&""===u||W(n,1,"Possible column misalignment",6)):o="100%",m.width=M(o),d.width=M(o),C&&(n.nScrollFoot.style.width=M(o)),c||x&&(m.height=M(_.offsetHeight+l)),R=D.outerWidth(),h[0].style.width=M(R),p.width=M(R),y=D.height()>g.clientHeight||"scroll"==b.css("overflow-y"),p[i="padding"+(T.bScrollbarLeft?"Left":"Right")]=y?l+"px":"0px",C&&(v[0].style.width=M(R),S[0].style.width=M(R),S[0].style[i]=y?l+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),b.trigger("scroll"),!n.bSorted&&!n.bFiltered||n._drawHold||(g.scrollTop=0))}function k(t,e,n){for(var a,r,o=0,i=0,l=e.length;i<l;){for(a=e[i].firstChild,r=n?n[i].firstChild:null;a;)1===a.nodeType&&(n?t(a,r,o):t(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;i++}}var te=/<.*?>/g;function ee(t){var e,n,a=t.nTable,r=t.aoColumns,o=t.oScroll,i=o.sY,l=o.sX,o=o.sXInner,s=r.length,u=it(t,"bVisible"),c=P("th",t.nTHead),f=a.getAttribute("width"),d=a.parentNode,h=!1,p=t.oBrowser,g=p.bScrollOversize,b=a.style.width,m=(b&&-1!==b.indexOf("%")&&(f=b),ae(N(r,"sWidthOrig"),d));for(_=0;_<u.length;_++)null!==(e=r[u[_]]).sWidth&&(e.sWidth=m[_],h=!0);if(g||!h&&!l&&!i&&s==T(t)&&s==c.length)for(_=0;_<s;_++){var S=rt(t,_);null!==S&&(r[S].sWidth=M(c.eq(_).width()))}else{var b=P(a).clone().css("visibility","hidden").removeAttr("id"),v=(b.find("tbody tr").remove(),P("<tr/>").appendTo(b.find("tbody")));for(b.find("thead, tfoot").remove(),b.append(P(t.nTHead).clone()).append(P(t.nTFoot).clone()),b.find("tfoot th, tfoot td").css("width",""),c=Ct(t,b.find("thead")[0]),_=0;_<u.length;_++)e=r[u[_]],c[_].style.width=null!==e.sWidthOrig&&""!==e.sWidthOrig?M(e.sWidthOrig):"",e.sWidthOrig&&l&&P(c[_]).append(P("<div/>").css({width:e.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(_=0;_<u.length;_++)e=r[n=u[_]],P(re(t,n)).clone(!1).append(e.sContentPadding).appendTo(v);P("[name]",b).removeAttr("name");for(var y=P("<div/>").css(l||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(b).appendTo(d),D=(l&&o?b.width(o):l?(b.css("width","auto"),b.removeAttr("width"),b.width()<d.clientWidth&&f&&b.width(d.clientWidth)):i?b.width(d.clientWidth):f&&b.width(f),0),_=0;_<u.length;_++){var w=P(c[_]),C=w.outerWidth()-w.width(),w=p.bBounding?Math.ceil(c[_].getBoundingClientRect().width):w.outerWidth();D+=w,r[u[_]].sWidth=M(w-C)}a.style.width=M(D),y.remove()}f&&(a.style.width=M(f)),!f&&!l||t._reszEvt||(o=function(){P(j).on("resize.DT-"+t.sInstance,ne(function(){O(t)}))},g?setTimeout(o,1e3):o(),t._reszEvt=!0)}var ne=w.util.throttle;function ae(t,e){for(var n=[],a=[],r=0;r<t.length;r++)t[r]?n.push(P("<div/>").css("width",M(t[r])).appendTo(e||v.body)):n.push(null);for(r=0;r<t.length;r++)a.push(n[r]?n[r][0].offsetWidth:null);return P(n).remove(),a}function re(t,e){var n,a=oe(t,e);return a<0?null:(n=t.aoData[a]).nTr?n.anCells[e]:P("<td/>").html(S(t,a,e,"display"))[0]}function oe(t,e){for(var n,a=-1,r=-1,o=0,i=t.aoData.length;o<i;o++)(n=(n=(n=S(t,o,e,"display")+"").replace(te,"")).replace(/ /g," ")).length>a&&(a=n.length,r=o);return r}function M(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function I(t){function e(t){t.length&&!Array.isArray(t[0])?h.push(t):P.merge(h,t)}var n,a,r,o,i,l,s,u=[],c=t.aoColumns,f=t.aaSortingFixed,d=P.isPlainObject(f),h=[];for(Array.isArray(f)&&e(f),d&&f.pre&&e(f.pre),e(t.aaSorting),d&&f.post&&e(f.post),n=0;n<h.length;n++)for(r=(o=c[s=h[n][a=0]].aDataSort).length;a<r;a++)l=c[i=o[a]].sType||"string",h[n]._idx===H&&(h[n]._idx=P.inArray(h[n][1],c[i].asSorting)),u.push({src:s,col:i,dir:h[n][1],index:h[n]._idx,type:l,formatter:w.ext.type.order[l+"-pre"]});return u}function ie(t){var e,n,a,r,c,f=[],u=w.ext.type.order,d=t.aoData,o=(t.aoColumns,0),i=t.aiDisplayMaster;for(lt(t),e=0,n=(c=I(t)).length;e<n;e++)(r=c[e]).formatter&&o++,fe(t,r.col);if("ssp"!=E(t)&&0!==c.length){for(e=0,a=i.length;e<a;e++)f[i[e]]=e;o===c.length?i.sort(function(t,e){for(var n,a,r,o,i=c.length,l=d[t]._aSortData,s=d[e]._aSortData,u=0;u<i;u++)if(0!=(r=(n=l[(o=c[u]).col])<(a=s[o.col])?-1:a<n?1:0))return"asc"===o.dir?r:-r;return(n=f[t])<(a=f[e])?-1:a<n?1:0}):i.sort(function(t,e){for(var n,a,r,o=c.length,i=d[t]._aSortData,l=d[e]._aSortData,s=0;s<o;s++)if(n=i[(r=c[s]).col],a=l[r.col],0!==(r=(u[r.type+"-"+r.dir]||u["string-"+r.dir])(n,a)))return r;return(n=f[t])<(a=f[e])?-1:a<n?1:0})}t.bSorted=!0}function le(t){for(var e=t.aoColumns,n=I(t),a=t.oLanguage.oAria,r=0,o=e.length;r<o;r++){var i=e[r],l=i.asSorting,s=i.ariaTitle||i.sTitle.replace(/<.*?>/g,""),u=i.nTh;u.removeAttribute("aria-sort"),i=i.bSortable?s+("asc"===(0<n.length&&n[0].col==r&&(u.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),l[n[0].index+1])||l[0])?a.sSortAscending:a.sSortDescending):s,u.setAttribute("aria-label",i)}}function se(t,e,n,a){function r(t,e){var n=t._idx;return(n=n===H?P.inArray(t[1],s):n)+1<s.length?n+1:e?null:0}var o,i=t.aoColumns[e],l=t.aaSorting,s=i.asSorting;"number"==typeof l[0]&&(l=t.aaSorting=[l]),n&&t.oFeatures.bSortMulti?-1!==(i=P.inArray(e,N(l,"0")))?null===(o=null===(o=r(l[i],!0))&&1===l.length?0:o)?l.splice(i,1):(l[i][1]=s[o],l[i]._idx=o):(l.push([e,s[0],0]),l[l.length-1]._idx=0):l.length&&l[0][0]==e?(o=r(l[0]),l.length=1,l[0][1]=s[o],l[0]._idx=o):(l.length=0,l.push([e,s[0]]),l[0]._idx=0),u(t),"function"==typeof a&&a(t)}function ue(e,t,n,a){var r=e.aoColumns[n];me(t,{},function(t){!1!==r.bSortable&&(e.oFeatures.bProcessing?(D(e,!0),setTimeout(function(){se(e,n,t.shiftKey,a),"ssp"!==E(e)&&D(e,!1)},0)):se(e,n,t.shiftKey,a))})}function ce(t){var e,n,a,r=t.aLastSort,o=t.oClasses.sSortColumn,i=I(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(e=0,n=r.length;e<n;e++)a=r[e].src,P(N(t.aoData,"anCells",a)).removeClass(o+(e<2?e+1:3));for(e=0,n=i.length;e<n;e++)a=i[e].src,P(N(t.aoData,"anCells",a)).addClass(o+(e<2?e+1:3))}t.aLastSort=i}function fe(t,e){for(var n,a,r,o=t.aoColumns[e],i=w.ext.order[o.sSortDataType],l=(i&&(n=i.call(t.oInstance,t,e,ot(t,e))),w.ext.type.order[o.sType+"-pre"]),s=0,u=t.aoData.length;s<u;s++)(a=t.aoData[s])._aSortData||(a._aSortData=[]),a._aSortData[e]&&!i||(r=i?n[s]:S(t,s,e,"sort"),a._aSortData[e]=l?l(r):r)}function de(n){var t;n._bLoadingState||(t={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:P.extend(!0,[],n.aaSorting),search:Et(n.oPreviousSearch),columns:P.map(n.aoColumns,function(t,e){return{visible:t.bVisible,search:Et(n.aoPreSearchCols[e])}})},n.oSavedState=t,R(n,"aoStateSaveParams","stateSaveParams",[n,t]),n.oFeatures.bStateSave&&!n.bDestroying&&n.fnStateSaveCallback.call(n.oInstance,n,t))}function he(e,t,n){var a;if(e.oFeatures.bStateSave)return(a=e.fnStateLoadCallback.call(e.oInstance,e,function(t){pe(e,t,n)}))!==H&&pe(e,a,n),!0;n()}function pe(n,t,e){var a,r,o=n.aoColumns,i=(n._bLoadingState=!0,n._bInitComplete?new w.Api(n):null);if(t&&t.time){var l=R(n,"aoStateLoadParams","stateLoadParams",[n,t]);if(-1!==P.inArray(!1,l))n._bLoadingState=!1;else{l=n.iStateDuration;if(0<l&&t.time<+new Date-1e3*l)n._bLoadingState=!1;else if(t.columns&&o.length!==t.columns.length)n._bLoadingState=!1;else{if(n.oLoadedState=P.extend(!0,{},t),t.length!==H&&(i?i.page.len(t.length):n._iDisplayLength=t.length),t.start!==H&&(null===i?(n._iDisplayStart=t.start,n.iInitDisplayStart=t.start):Yt(n,t.start/n._iDisplayLength)),t.order!==H&&(n.aaSorting=[],P.each(t.order,function(t,e){n.aaSorting.push(e[0]>=o.length?[0,e[1]]:e)})),t.search!==H&&P.extend(n.oPreviousSearch,Bt(t.search)),t.columns){for(a=0,r=t.columns.length;a<r;a++){var s=t.columns[a];s.visible!==H&&(i?i.column(a).visible(s.visible,!1):o[a].bVisible=s.visible),s.search!==H&&P.extend(n.aoPreSearchCols[a],Bt(s.search))}i&&i.columns.adjust()}n._bLoadingState=!1,R(n,"aoStateLoaded","stateLoaded",[n,t])}}}else n._bLoadingState=!1;e()}function ge(t){var e=w.settings,t=P.inArray(t,N(e,"nTable"));return-1!==t?e[t]:null}function W(t,e,n,a){if(n="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+n,a&&(n+=". For more information about this error, please see https://datatables.net/tn/"+a),e)j.console&&console.log&&console.log(n);else{e=w.ext,e=e.sErrMode||e.errMode;if(t&&R(t,null,"error",[t,a,n]),"alert"==e)alert(n);else{if("throw"==e)throw new Error(n);"function"==typeof e&&e(t,a,n)}}}function F(n,a,t,e){Array.isArray(t)?P.each(t,function(t,e){Array.isArray(e)?F(n,a,e[0],e[1]):F(n,a,e)}):(e===H&&(e=t),a[t]!==H&&(n[e]=a[t]))}function be(t,e,n){var a,r;for(r in e)e.hasOwnProperty(r)&&(a=e[r],P.isPlainObject(a)?(P.isPlainObject(t[r])||(t[r]={}),P.extend(!0,t[r],a)):n&&"data"!==r&&"aaData"!==r&&Array.isArray(a)?t[r]=a.slice():t[r]=a);return t}function me(e,t,n){P(e).on("click.DT",t,function(t){P(e).trigger("blur"),n(t)}).on("keypress.DT",t,function(t){13===t.which&&(t.preventDefault(),n(t))}).on("selectstart.DT",function(){return!1})}function L(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function R(n,t,e,a){var r=[];return t&&(r=P.map(n[t].slice().reverse(),function(t,e){return t.fn.apply(n.oInstance,a)})),null!==e&&(t=P.Event(e+".dt"),(e=P(n.nTable)).trigger(t,a),0===e.parents("body").length&&P("body").trigger(t,a),r.push(t.result)),r}function Se(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;n<=e&&(e=n-a),e-=e%a,t._iDisplayStart=e=-1===a||e<0?0:e}function ve(t,e){var t=t.renderer,n=w.ext.renderer[e];return P.isPlainObject(t)&&t[e]?n[t[e]]||n._:"string"==typeof t&&n[t]||n._}function E(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function ye(t,n){var a;return Array.isArray(t)?P.map(t,function(t){return ye(t,n)}):"number"==typeof t?[n[t]]:(a=P.map(n,function(t,e){return t.nTable}),P(a).filter(t).map(function(t){var e=P.inArray(this,a);return n[e]}).toArray())}function De(r,o,t){var e,n;t&&(e=new B(r)).one("draw",function(){t(e.ajax.json())}),"ssp"==E(r)?u(r,o):(D(r,!0),(n=r.jqXHR)&&4!==n.readyState&&n.abort(),Tt(r,[],function(t){pt(r);for(var e=Ft(r,t),n=0,a=e.length;n<a;n++)x(r,e[n]);u(r,o),D(r,!1)}))}function _e(t,e,n,a,r){for(var o,i,l,s,u=[],c=typeof e,f=0,d=(e=e&&"string"!=c&&"function"!=c&&e.length!==H?e:[e]).length;f<d;f++)for(l=0,s=(i=e[f]&&e[f].split&&!e[f].match(/[\[\(:]/)?e[f].split(","):[e[f]]).length;l<s;l++)(o=n("string"==typeof i[l]?i[l].trim():i[l]))&&o.length&&(u=u.concat(o));var h=p.selector[t];if(h.length)for(f=0,d=h.length;f<d;f++)u=h[f](a,r,u);return z(u)}function we(t){return(t=t||{}).filter&&t.search===H&&(t.search=t.filter),P.extend({search:"none",order:"current",page:"all"},t)}function Ce(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t}function Te(o,t,e,n){function i(t,e){var n;if(Array.isArray(t)||t instanceof P)for(var a=0,r=t.length;a<r;a++)i(t[a],e);else t.nodeName&&"tr"===t.nodeName.toLowerCase()?l.push(t):(n=P("<tr><td></td></tr>").addClass(e),P("td",n).addClass(e).html(t)[0].colSpan=T(o),l.push(n[0]))}var l=[];i(e,n),t._details&&t._details.detach(),t._details=P(l),t._detailsShow&&t._details.insertAfter(t.nTr)}function xe(t,e){var n=t.context;if(n.length&&t.length){var a=n[0].aoData[t[0]];if(a._details){(a._detailsShow=e)?(a._details.insertAfter(a.nTr),P(a.nTr).addClass("dt-hasChild")):(a._details.detach(),P(a.nTr).removeClass("dt-hasChild")),R(n[0],null,"childRow",[e,t.row(t[0])]);var s=n[0],r=new B(s),a=".dt.DT_details",e="draw"+a,t="column-sizing"+a,a="destroy"+a,u=s.aoData;if(r.off(e+" "+t+" "+a),N(u,"_details").length>0){r.on(e,function(t,e){if(s!==e)return;r.rows({page:"current"}).eq(0).each(function(t){var e=u[t];if(e._detailsShow)e._details.insertAfter(e.nTr)})});r.on(t,function(t,e,n,a){if(s!==e)return;var r,o=T(e);for(var i=0,l=u.length;i<l;i++){r=u[i];if(r._details)r._details.each(function(){var t=P(this).children("td");if(t.length==1)t.attr("colspan",o)})}});r.on(a,function(t,e){if(s!==e)return;for(var n=0,a=u.length;n<a;n++)if(u[n]._details)Re(r,n)})}Le(n)}}}function Ae(t,e,n,a,r){for(var o=[],i=0,l=r.length;i<l;i++)o.push(S(t,r[i],e));return o}var Ie=[],o=Array.prototype,B=function(t,e){if(!(this instanceof B))return new B(t,e);function n(t){var e,n,a,r;t=t,a=w.settings,r=P.map(a,function(t,e){return t.nTable}),(t=t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(e=P.inArray(t,r))?[a[e]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?n=P(t):t instanceof P&&(n=t),n?n.map(function(t){return-1!==(e=P.inArray(this,r))?a[e]:null}).toArray():void 0):[])&&o.push.apply(o,t)}var o=[];if(Array.isArray(t))for(var a=0,r=t.length;a<r;a++)n(t[a]);else n(t);this.context=z(o),e&&P.merge(this,e),this.selector={rows:null,cols:null,opts:null},B.extend(this,this,Ie)},Fe=(w.Api=B,P.extend(B.prototype,{any:function(){return 0!==this.count()},concat:o.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new B(e[t],this[t]):null},filter:function(t){var e=[];if(o.filter)e=o.filter.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new B(this.context,e)},flatten:function(){var t=[];return new B(this.context,t.concat.apply(t,this.toArray()))},join:o.join,indexOf:o.indexOf||function(t,e){for(var n=e||0,a=this.length;n<a;n++)if(this[n]===t)return n;return-1},iterator:function(t,e,n,a){var r,o,i,l,s,u,c,f,d=[],h=this.context,p=this.selector;for("string"==typeof t&&(a=n,n=e,e=t,t=!1),o=0,i=h.length;o<i;o++){var g=new B(h[o]);if("table"===e)(r=n.call(g,h[o],o))!==H&&d.push(r);else if("columns"===e||"rows"===e)(r=n.call(g,h[o],this[o],o))!==H&&d.push(r);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e)for(c=this[o],"column-rows"===e&&(u=Fe(h[o],p.opts)),l=0,s=c.length;l<s;l++)f=c[l],(r="cell"===e?n.call(g,h[o],f.row,f.column,o,l):n.call(g,h[o],f,o,l,u))!==H&&d.push(r)}return d.length||a?((t=(a=new B(h,t?d.concat.apply([],d):d)).selector).rows=p.rows,t.cols=p.cols,t.opts=p.opts,a):this},lastIndexOf:o.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(o.map)e=o.map.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)e.push(t.call(this,this[n],n));return new B(this.context,e)},pluck:function(t){var e=w.util.get(t);return this.map(function(t){return e(t)})},pop:o.pop,push:o.push,reduce:o.reduce||function(t,e){return et(this,t,e,0,this.length,1)},reduceRight:o.reduceRight||function(t,e){return et(this,t,e,this.length-1,-1,-1)},reverse:o.reverse,selector:null,shift:o.shift,slice:function(){return new B(this.context,this)},sort:o.sort,splice:o.splice,toArray:function(){return o.slice.call(this)},to$:function(){return P(this)},toJQuery:function(){return P(this)},unique:function(){return new B(this.context,z(this))},unshift:o.unshift}),B.extend=function(t,e,n){if(n.length&&e&&(e instanceof B||e.__dt_wrapper))for(var a,r=0,o=n.length;r<o;r++)e[(a=n[r]).name]="function"===a.type?function(e,n,a){return function(){var t=n.apply(e,arguments);return B.extend(t,t,a.methodExt),t}}(t,a.val,a):"object"===a.type?{}:a.val,e[a.name].__dt_wrapper=!0,B.extend(t,e[a.name],a.propExt)},B.register=e=function(t,e){if(Array.isArray(t))for(var n=0,a=t.length;n<a;n++)B.register(t[n],e);else for(var r=t.split("."),o=Ie,i=0,l=r.length;i<l;i++){var s,u,c=function(t,e){for(var n=0,a=t.length;n<a;n++)if(t[n].name===e)return t[n];return null}(o,u=(s=-1!==r[i].indexOf("()"))?r[i].replace("()",""):r[i]);c||o.push(c={name:u,val:{},methodExt:[],propExt:[],type:"object"}),i===l-1?(c.val=e,c.type="function"==typeof e?"function":P.isPlainObject(e)?"object":"other"):o=s?c.methodExt:c.propExt}},B.registerPlural=t=function(t,e,n){B.register(t,n),B.register(e,function(){var t=n.apply(this,arguments);return t===this?this:t instanceof B?t.length?Array.isArray(t[0])?new B(t.context,t[0]):t[0]:H:t})},e("tables()",function(t){return t!==H&&null!==t?new B(ye(t,this.context)):this}),e("table()",function(t){var t=this.tables(t),e=t.context;return e.length?new B(e[0]):t}),t("tables().nodes()","table().node()",function(){return this.iterator("table",function(t){return t.nTable},1)}),t("tables().body()","table().body()",function(){return this.iterator("table",function(t){return t.nTBody},1)}),t("tables().header()","table().header()",function(){return this.iterator("table",function(t){return t.nTHead},1)}),t("tables().footer()","table().footer()",function(){return this.iterator("table",function(t){return t.nTFoot},1)}),t("tables().containers()","table().container()",function(){return this.iterator("table",function(t){return t.nTableWrapper},1)}),e("draw()",function(e){return this.iterator("table",function(t){"page"===e?y(t):u(t,!1===(e="string"==typeof e?"full-hold"!==e:e))})}),e("page()",function(e){return e===H?this.page.info().page:this.iterator("table",function(t){Yt(t,e)})}),e("page.info()",function(t){var e,n,a,r,o;return 0===this.context.length?H:(n=(e=this.context[0])._iDisplayStart,a=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),{page:(o=-1===a)?0:Math.floor(n/a),pages:o?1:Math.ceil(r/a),start:n,end:e.fnDisplayEnd(),length:a,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===E(e)})}),e("page.len()",function(e){return e===H?0!==this.context.length?this.context[0]._iDisplayLength:H:this.iterator("table",function(t){$t(t,e)})}),e("ajax.json()",function(){var t=this.context;if(0<t.length)return t[0].json}),e("ajax.params()",function(){var t=this.context;if(0<t.length)return t[0].oAjaxData}),e("ajax.reload()",function(e,n){return this.iterator("table",function(t){De(t,!1===n,e)})}),e("ajax.url()",function(e){var t=this.context;return e===H?0===t.length?H:(t=t[0]).ajax?P.isPlainObject(t.ajax)?t.ajax.url:t.ajax:t.sAjaxSource:this.iterator("table",function(t){P.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e})}),e("ajax.url().load()",function(e,n){return this.iterator("table",function(t){De(t,!1===n,e)})}),function(t,e){var n,a=[],r=t.aiDisplay,o=t.aiDisplayMaster,i=e.search,l=e.order,e=e.page;if("ssp"==E(t))return"removed"===i?[]:f(0,o.length);if("current"==e)for(u=t._iDisplayStart,c=t.fnDisplayEnd();u<c;u++)a.push(r[u]);else if("current"==l||"applied"==l){if("none"==i)a=o.slice();else if("applied"==i)a=r.slice();else if("removed"==i){for(var s={},u=0,c=r.length;u<c;u++)s[r[u]]=null;a=P.map(o,function(t){return s.hasOwnProperty(t)?null:t})}}else if("index"==l||"original"==l)for(u=0,c=t.aoData.length;u<c;u++)("none"==i||-1===(n=P.inArray(u,r))&&"removed"==i||0<=n&&"applied"==i)&&a.push(u);return a}),Le=(e("rows()",function(e,n){e===H?e="":P.isPlainObject(e)&&(n=e,e=""),n=we(n);var t=this.iterator("table",function(t){return _e("row",e,function(n){var t=d(n),a=r.aoData;if(null!==t&&!o)return[t];if(i=i||Fe(r,o),null!==t&&-1!==P.inArray(t,i))return[t];if(null===n||n===H||""===n)return i;if("function"==typeof n)return P.map(i,function(t){var e=a[t];return n(t,e._aData,e.nTr)?t:null});if(n.nodeName)return t=n._DT_RowIndex,e=n._DT_CellIndex,t!==H?a[t]&&a[t].nTr===n?[t]:[]:e?a[e.row]&&a[e.row].nTr===n.parentNode?[e.row]:[]:(t=P(n).closest("*[data-dt-row]")).length?[t.data("dt-row")]:[];if("string"==typeof n&&"#"===n.charAt(0)){var e=r.aIds[n.replace(/^#/,"")];if(e!==H)return[e.idx]}t=_(m(r.aoData,i,"nTr"));return P(t).filter(n).map(function(){return this._DT_RowIndex}).toArray()},r=t,o=n);var r,o,i},1);return t.selector.rows=e,t.selector.opts=n,t}),e("rows().nodes()",function(){return this.iterator("row",function(t,e){return t.aoData[e].nTr||H},1)}),e("rows().data()",function(){return this.iterator(!0,"rows",function(t,e){return m(t.aoData,e,"_aData")},1)}),t("rows().cache()","row().cache()",function(n){return this.iterator("row",function(t,e){t=t.aoData[e];return"search"===n?t._aFilterData:t._aSortData},1)}),t("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(t,e){bt(t,e,n)})}),t("rows().indexes()","row().index()",function(){return this.iterator("row",function(t,e){return e},1)}),t("rows().ids()","row().id()",function(t){for(var e=[],n=this.context,a=0,r=n.length;a<r;a++)for(var o=0,i=this[a].length;o<i;o++){var l=n[a].rowIdFn(n[a].aoData[this[a][o]]._aData);e.push((!0===t?"#":"")+l)}return new B(n,e)}),t("rows().remove()","row().remove()",function(){var f=this;return this.iterator("row",function(t,e,n){var a,r,o,i,l,s,u=t.aoData,c=u[e];for(u.splice(e,1),a=0,r=u.length;a<r;a++)if(s=(l=u[a]).anCells,null!==l.nTr&&(l.nTr._DT_RowIndex=a),null!==s)for(o=0,i=s.length;o<i;o++)s[o]._DT_CellIndex.row=a;gt(t.aiDisplayMaster,e),gt(t.aiDisplay,e),gt(f[n],e,!1),0<t._iRecordsDisplay&&t._iRecordsDisplay--,Se(t);n=t.rowIdFn(c._aData);n!==H&&delete t.aIds[n]}),this.iterator("table",function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e}),this}),e("rows.add()",function(o){var t=this.iterator("table",function(t){for(var e,n=[],a=0,r=o.length;a<r;a++)(e=o[a]).nodeName&&"TR"===e.nodeName.toUpperCase()?n.push(ut(t,e)[0]):n.push(x(t,e));return n},1),e=this.rows(-1);return e.pop(),P.merge(e,t),e}),e("row()",function(t,e){return Ce(this.rows(t,e))}),e("row().data()",function(t){var e,n=this.context;return t===H?n.length&&this.length?n[0].aoData[this[0]]._aData:H:((e=n[0].aoData[this[0]])._aData=t,Array.isArray(t)&&e.nTr&&e.nTr.id&&b(n[0].rowId)(t,e.nTr.id),bt(n[0],this[0],"data"),this)}),e("row().node()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null}),e("row.add()",function(e){e instanceof P&&e.length&&(e=e[0]);var t=this.iterator("table",function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?ut(t,e)[0]:x(t,e)});return this.row(t[0])}),P(v).on("plugin-init.dt",function(t,e){var n=new B(e),a="on-plugin-init",r="stateSaveParams."+a,o="destroy. "+a,a=(n.on(r,function(t,e,n){for(var a=e.rowIdFn,r=e.aoData,o=[],i=0;i<r.length;i++)r[i]._detailsShow&&o.push("#"+a(r[i]._aData));n.childRows=o}),n.on(o,function(){n.off(r+" "+o)}),n.state.loaded());a&&a.childRows&&n.rows(P.map(a.childRows,function(t){return t.replace(/:/g,"\\:")})).every(function(){R(e,null,"requestChild",[this])})}),w.util.throttle(function(t){de(t[0])},500)),Re=function(t,e){var n=t.context;n.length&&(e=n[0].aoData[e!==H?e:t[0]])&&e._details&&(e._details.remove(),e._detailsShow=H,e._details=H,P(e.nTr).removeClass("dt-hasChild"),Le(n))},Pe="row().child",je=Pe+"()",He=(e(je,function(t,e){var n=this.context;return t===H?n.length&&this.length?n[0].aoData[this[0]]._details:H:(!0===t?this.child.show():!1===t?Re(this):n.length&&this.length&&Te(n[0],n[0].aoData[this[0]],t,e),this)}),e([Pe+".show()",je+".show()"],function(t){return xe(this,!0),this}),e([Pe+".hide()",je+".hide()"],function(){return xe(this,!1),this}),e([Pe+".remove()",je+".remove()"],function(){return Re(this),this}),e(Pe+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}),/^([^:]+):(name|visIdx|visible)$/),Ne=(e("columns()",function(n,a){n===H?n="":P.isPlainObject(n)&&(a=n,n=""),a=we(a);var t=this.iterator("table",function(t){return e=n,l=a,s=(i=t).aoColumns,u=N(s,"sName"),c=N(s,"nTh"),_e("column",e,function(n){var a,t=d(n);if(""===n)return f(s.length);if(null!==t)return[0<=t?t:s.length+t];if("function"==typeof n)return a=Fe(i,l),P.map(s,function(t,e){return n(e,Ae(i,e,0,0,a),c[e])?e:null});var r="string"==typeof n?n.match(He):"";if(r)switch(r[2]){case"visIdx":case"visible":var e,o=parseInt(r[1],10);return o<0?[(e=P.map(s,function(t,e){return t.bVisible?e:null}))[e.length+o]]:[rt(i,o)];case"name":return P.map(u,function(t,e){return t===r[1]?e:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(t=P(c).filter(n).map(function(){return P.inArray(this,c)}).toArray()).length||!n.nodeName?t:(t=P(n).closest("*[data-dt-column]")).length?[t.data("dt-column")]:[]},i,l);var i,e,l,s,u,c},1);return t.selector.cols=n,t.selector.opts=a,t}),t("columns().header()","column().header()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTh},1)}),t("columns().footer()","column().footer()",function(t,e){return this.iterator("column",function(t,e){return t.aoColumns[e].nTf},1)}),t("columns().data()","column().data()",function(){return this.iterator("column-rows",Ae,1)}),t("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(t,e){return t.aoColumns[e].mData},1)}),t("columns().cache()","column().cache()",function(o){return this.iterator("column-rows",function(t,e,n,a,r){return m(t.aoData,r,"search"===o?"_aFilterData":"_aSortData",e)},1)}),t("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(t,e,n,a,r){return m(t.aoData,r,"anCells",e)},1)}),t("columns().visible()","column().visible()",function(f,n){var e=this,t=this.iterator("column",function(t,e){if(f===H)return t.aoColumns[e].bVisible;var n,a,r=e,e=f,o=t.aoColumns,i=o[r],l=t.aoData;if(e===H)i.bVisible;else if(i.bVisible!==e){if(e)for(var s=P.inArray(!0,N(o,"bVisible"),r+1),u=0,c=l.length;u<c;u++)a=l[u].nTr,n=l[u].anCells,a&&a.insertBefore(n[r],n[s]||null);else P(N(t.aoData,"anCells",r)).detach();i.bVisible=e}});return f!==H&&this.iterator("table",function(t){Dt(t,t.aoHeader),Dt(t,t.aoFooter),t.aiDisplay.length||P(t.nTBody).find("td[colspan]").attr("colspan",T(t)),de(t),e.iterator("column",function(t,e){R(t,null,"column-visibility",[t,e,f,n])}),n!==H&&!n||e.columns.adjust()}),t}),t("columns().indexes()","column().index()",function(n){return this.iterator("column",function(t,e){return"visible"===n?ot(t,e):e},1)}),e("columns.adjust()",function(){return this.iterator("table",function(t){O(t)},1)}),e("column.index()",function(t,e){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===t||"toData"===t?rt(n,e):"fromData"===t||"toVisible"===t?ot(n,e):void 0}),e("column()",function(t,e){return Ce(this.columns(t,e))}),e("cells()",function(g,t,b){var a,r,o,i,l,s,e;return P.isPlainObject(g)&&(g.row===H?(b=g,g=null):(b=t,t=null)),P.isPlainObject(t)&&(b=t,t=null),null===t||t===H?this.iterator("table",function(t){return a=t,t=g,e=we(b),f=a.aoData,d=Fe(a,e),n=_(m(f,d,"anCells")),h=P(Y([],n)),p=a.aoColumns.length,_e("cell",t,function(t){var e,n="function"==typeof t;if(null===t||t===H||n){for(o=[],i=0,l=d.length;i<l;i++)for(r=d[i],s=0;s<p;s++)u={row:r,column:s},(!n||(c=f[r],t(u,S(a,r,s),c.anCells?c.anCells[s]:null)))&&o.push(u);return o}return P.isPlainObject(t)?t.column!==H&&t.row!==H&&-1!==P.inArray(t.row,d)?[t]:[]:(e=h.filter(t).map(function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}}).toArray()).length||!t.nodeName?e:(c=P(t).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},a,e);var a,e,r,o,i,l,s,u,c,f,d,n,h,p}):(e=b?{page:b.page,order:b.order,search:b.search}:{},a=this.columns(t,e),r=this.rows(g,e),e=this.iterator("table",function(t,e){var n=[];for(o=0,i=r[e].length;o<i;o++)for(l=0,s=a[e].length;l<s;l++)n.push({row:r[e][o],column:a[e][l]});return n},1),e=b&&b.selected?this.cells(e,b):e,P.extend(e.selector,{cols:t,rows:g,opts:b}),e)}),t("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(t,e,n){t=t.aoData[e];return t&&t.anCells?t.anCells[n]:H},1)}),e("cells().data()",function(){return this.iterator("cell",function(t,e,n){return S(t,e,n)},1)}),t("cells().cache()","cell().cache()",function(a){return a="search"===a?"_aFilterData":"_aSortData",this.iterator("cell",function(t,e,n){return t.aoData[e][a][n]},1)}),t("cells().render()","cell().render()",function(a){return this.iterator("cell",function(t,e,n){return S(t,e,n,a)},1)}),t("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(t,e,n){return{row:e,column:n,columnVisible:ot(t,n)}},1)}),t("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(t,e,n){bt(t,e,a,n)})}),e("cell()",function(t,e,n){return Ce(this.cells(t,e,n))}),e("cell().data()",function(t){var e=this.context,n=this[0];return t===H?e.length&&n.length?S(e[0],n[0].row,n[0].column):H:(ct(e[0],n[0].row,n[0].column,t),bt(e[0],n[0].row,"data",n[0].column),this)}),e("order()",function(e,t){var n=this.context;return e===H?0!==n.length?n[0].aaSorting:H:("number"==typeof e?e=[[e,t]]:e.length&&!Array.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",function(t){t.aaSorting=e.slice()}))}),e("order.listener()",function(e,n,a){return this.iterator("table",function(t){ue(t,e,n,a)})}),e("order.fixed()",function(e){var t;return e?this.iterator("table",function(t){t.aaSortingFixed=P.extend(!0,{},e)}):(t=(t=this.context).length?t[0].aaSortingFixed:H,Array.isArray(t)?{pre:t}:t)}),e(["columns().order()","column().order()"],function(a){var r=this;return this.iterator("table",function(t,e){var n=[];P.each(r[e],function(t,e){n.push([e,a])}),t.aaSorting=n})}),e("search()",function(e,n,a,r){var t=this.context;return e===H?0!==t.length?t[0].oPreviousSearch.sSearch:H:this.iterator("table",function(t){t.oFeatures.bFilter&&Rt(t,P.extend({},t.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===a||a,bCaseInsensitive:null===r||r}),1)})}),t("columns().search()","column().search()",function(a,r,o,i){return this.iterator("column",function(t,e){var n=t.aoPreSearchCols;if(a===H)return n[e].sSearch;t.oFeatures.bFilter&&(P.extend(n[e],{sSearch:a+"",bRegex:null!==r&&r,bSmart:null===o||o,bCaseInsensitive:null===i||i}),Rt(t,t.oPreviousSearch,1))})}),e("state()",function(){return this.context.length?this.context[0].oSavedState:null}),e("state.clear()",function(){return this.iterator("table",function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})})}),e("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),e("state.save()",function(){return this.iterator("table",function(t){de(t)})}),w.use=function(t,e){"lib"===e||t.fn?P=t:"win"==e||t.document?v=(j=t).document:"datetime"!==e&&"DateTime"!==t.type||(w.DateTime=t)},w.factory=function(t,e){var n=!1;return t&&t.document&&(v=(j=t).document),e&&e.fn&&e.fn.jquery&&(P=e,n=!0),n},w.versionCheck=w.fnVersionCheck=function(t){for(var e,n,a=w.version.split("."),r=t.split("."),o=0,i=r.length;o<i;o++)if((e=parseInt(a[o],10)||0)!==(n=parseInt(r[o],10)||0))return n<e;return!0},w.isDataTable=w.fnIsDataTable=function(t){var r=P(t).get(0),o=!1;return t instanceof w.Api||(P.each(w.settings,function(t,e){var n=e.nScrollHead?P("table",e.nScrollHead)[0]:null,a=e.nScrollFoot?P("table",e.nScrollFoot)[0]:null;e.nTable!==r&&n!==r&&a!==r||(o=!0)}),o)},w.tables=w.fnTables=function(e){var t=!1,n=(P.isPlainObject(e)&&(t=e.api,e=e.visible),P.map(w.settings,function(t){if(!e||P(t.nTable).is(":visible"))return t.nTable}));return t?new B(n):n},w.camelToHungarian=C,e("$()",function(t,e){e=this.rows(e).nodes(),e=P(e);return P([].concat(e.filter(t).toArray(),e.find(t).toArray()))}),P.each(["on","one","off"],function(t,n){e(n+"()",function(){var t=Array.prototype.slice.call(arguments),e=(t[0]=P.map(t[0].split(/\s/),function(t){return t.match(/\.dt\b/)?t:t+".dt"}).join(" "),P(this.tables().nodes()));return e[n].apply(e,t),this})}),e("clear()",function(){return this.iterator("table",function(t){pt(t)})}),e("settings()",function(){return new B(this.context,this.context)}),e("init()",function(){var t=this.context;return t.length?t[0].oInit:null}),e("data()",function(){return this.iterator("table",function(t){return N(t.aoData,"_aData")}).flatten()}),e("destroy()",function(c){return c=c||!1,this.iterator("table",function(e){var n,t=e.oClasses,a=e.nTable,r=e.nTBody,o=e.nTHead,i=e.nTFoot,l=P(a),r=P(r),s=P(e.nTableWrapper),u=P.map(e.aoData,function(t){return t.nTr}),i=(e.bDestroying=!0,R(e,"aoDestroyCallback","destroy",[e]),c||new B(e).columns().visible(!0),s.off(".DT").find(":not(tbody *)").off(".DT"),P(j).off(".DT-"+e.sInstance),a!=o.parentNode&&(l.children("thead").detach(),l.append(o)),i&&a!=i.parentNode&&(l.children("tfoot").detach(),l.append(i)),e.aaSorting=[],e.aaSortingFixed=[],ce(e),P(u).removeClass(e.asStripeClasses.join(" ")),P("th, td",o).removeClass(t.sSortable+" "+t.sSortableAsc+" "+t.sSortableDesc+" "+t.sSortableNone),r.children().detach(),r.append(u),e.nTableWrapper.parentNode),o=c?"remove":"detach",u=(l[o](),s[o](),!c&&i&&(i.insertBefore(a,e.nTableReinsertBefore),l.css("width",e.sDestroyWidth).removeClass(t.sTable),n=e.asDestroyStripes.length)&&r.children().each(function(t){P(this).addClass(e.asDestroyStripes[t%n])}),P.inArray(e,w.settings));-1!==u&&w.settings.splice(u,1)})}),P.each(["column","row","cell"],function(t,s){e(s+"s().every()",function(o){var i=this.selector.opts,l=this;return this.iterator(s,function(t,e,n,a,r){o.call(l[s](e,"cell"===s?n:i,"cell"===s?i:H),e,n,a,r)})})}),e("i18n()",function(t,e,n){var a=this.context[0],t=A(t)(a.oLanguage);return t===H&&(t=e),"string"==typeof(t=n!==H&&P.isPlainObject(t)?t[n]!==H?t[n]:t._:t)?t.replace("%d",n):t}),w.version="1.13.7",w.settings=[],w.models={},w.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0,return:!1},w.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},w.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},w.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,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(t){return t.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(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},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:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:P.extend({},w.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},i(w.defaults),w.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},i(w.defaults.column),w.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,jqXHR:null,json:H,oAjaxData:H,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==E(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==E(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,a=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?!1===o||-1===t?e+a:Math.min(e+t,this._iRecordsDisplay):!o||a<n||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},w.ext=p={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:w.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:w.version},P.extend(p,{afnFiltering:p.search,aTypes:p.type.detect,ofnSearch:p.type.search,oSort:p.type.order,afnSortData:p.order,aoFeatures:p.feature,oApi:p.internal,oStdClasses:p.classes,oPagination:p.pager}),P.extend(w.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_desc_disabled",sSortableDesc:"sorting_asc_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:""}),w.ext.pager);function Oe(t,e){var n=[],a=Ne.numbers_length,r=Math.floor(a/2);return e<=a?n=f(0,e):t<=r?((n=f(0,a-2)).push("ellipsis"),n.push(e-1)):((e-1-r<=t?n=f(e-(a-2),e):((n=f(t-r+2,t+r-1)).push("ellipsis"),n.push(e-1),n)).splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}P.extend(Ne,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Oe(t,e)]},simple_numbers:function(t,e){return["previous",Oe(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Oe(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Oe(t,e),"last"]},_numbers:Oe,numbers_length:7}),P.extend(!0,w.ext.renderer,{pageButton:{_:function(u,t,c,e,f,d){function h(t,e){for(var n,a=b.sPageButtonDisabled,r=function(t){Yt(u,t.data.action,!0)},o=0,i=e.length;o<i;o++)if(n=e[o],Array.isArray(n)){var l=P("<"+(n.DT_el||"div")+"/>").appendTo(t);h(l,n)}else{var s=!1;switch(p=null,g=n){case"ellipsis":t.append('<span class="ellipsis">…</span>');break;case"first":p=m.sFirst,0===f&&(s=!0);break;case"previous":p=m.sPrevious,0===f&&(s=!0);break;case"next":p=m.sNext,0!==d&&f!==d-1||(s=!0);break;case"last":p=m.sLast,0!==d&&f!==d-1||(s=!0);break;default:p=u.fnFormatNumber(n+1),g=f===n?b.sPageButtonActive:""}null!==p&&(l=u.oInit.pagingTag||"a",s&&(g+=" "+a),me(P("<"+l+">",{class:b.sPageButton+" "+g,"aria-controls":u.sTableId,"aria-disabled":s?"true":null,"aria-label":S[n],role:"link","aria-current":g===b.sPageButtonActive?"page":null,"data-dt-idx":n,tabindex:s?-1:u.iTabIndex,id:0===c&&"string"==typeof n?u.sTableId+"_"+n:null}).html(p).appendTo(t),{action:n},r))}}var p,g,n,b=u.oClasses,m=u.oLanguage.oPaginate,S=u.oLanguage.oAria.paginate||{};try{n=P(t).find(v.activeElement).data("dt-idx")}catch(t){}h(P(t).empty(),e),n!==H&&P(t).find("[data-dt-idx="+n+"]").trigger("focus")}}}),P.extend(w.ext.type.detect,[function(t,e){e=e.oLanguage.sDecimal;return l(t,e)?"num"+e:null},function(t,e){var n;return(!t||t instanceof Date||X.test(t))&&(null!==(n=Date.parse(t))&&!isNaN(n)||h(t))?"date":null},function(t,e){e=e.oLanguage.sDecimal;return l(t,e,!0)?"num-fmt"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e)?"html-num"+e:null},function(t,e){e=e.oLanguage.sDecimal;return a(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return h(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),P.extend(w.ext.type.search,{html:function(t){return h(t)?t:"string"==typeof t?t.replace(U," ").replace(V,""):""},string:function(t){return!h(t)&&"string"==typeof t?t.replace(U," "):t}});function ke(t,e,n,a){var r;return 0===t||t&&"-"!==t?"number"==(r=typeof t)||"bigint"==r?t:+(t=(t=e?$(t,e):t).replace&&(n&&(t=t.replace(n,"")),a)?t.replace(a,""):t):-1/0}function Me(n){P.each({num:function(t){return ke(t,n)},"num-fmt":function(t){return ke(t,n,q)},"html-num":function(t){return ke(t,n,V)},"html-num-fmt":function(t){return ke(t,n,V,q)}},function(t,e){p.type.order[t+n+"-pre"]=e,t.match(/^html\-/)&&(p.type.search[t+n]=p.type.search.html)})}P.extend(p.type.order,{"date-pre":function(t){t=Date.parse(t);return isNaN(t)?-1/0:t},"html-pre":function(t){return h(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return h(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:e<t?1:0},"string-desc":function(t,e){return t<e?1:e<t?-1:0}}),Me(""),P.extend(!0,w.ext.renderer,{header:{_:function(r,o,i,l){P(r.nTable).on("order.dt.DT",function(t,e,n,a){r===e&&(e=i.idx,o.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[e]?l.sSortAsc:"desc"==a[e]?l.sSortDesc:i.sSortingClass))})},jqueryui:function(r,o,i,l){P("<div/>").addClass(l.sSortJUIWrapper).append(o.contents()).append(P("<span/>").addClass(l.sSortIcon+" "+i.sSortingClassJUI)).appendTo(o),P(r.nTable).on("order.dt.DT",function(t,e,n,a){r===e&&(e=i.idx,o.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==a[e]?l.sSortAsc:"desc"==a[e]?l.sSortDesc:i.sSortingClass),o.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==a[e]?l.sSortJUIAsc:"desc"==a[e]?l.sSortJUIDesc:i.sSortingClassJUI))})}}});function We(t){return"string"==typeof(t=Array.isArray(t)?t.join(","):t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t}function Ee(t,e,n,a,r){return j.moment?t[e](r):j.luxon?t[n](r):a?t[a](r):t}var Be=!1;function Ue(t,e,n){var a;if(j.moment){if(!(a=j.moment.utc(t,e,n,!0)).isValid())return null}else if(j.luxon){if(!(a=e&&"string"==typeof t?j.luxon.DateTime.fromFormat(t,e):j.luxon.DateTime.fromISO(t)).isValid)return null;a.setLocale(n)}else e?(Be||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Be=!0):a=new Date(t);return a}function Ve(s){return function(a,r,o,i){0===arguments.length?(o="en",a=r=null):1===arguments.length?(o="en",r=a,a=null):2===arguments.length&&(o=r,r=a,a=null);var l="datetime-"+r;return w.ext.type.order[l]||(w.ext.type.detect.unshift(function(t){return t===l&&l}),w.ext.type.order[l+"-asc"]=function(t,e){t=t.valueOf(),e=e.valueOf();return t===e?0:t<e?-1:1},w.ext.type.order[l+"-desc"]=function(t,e){t=t.valueOf(),e=e.valueOf();return t===e?0:e<t?-1:1}),function(t,e){var n;return null!==t&&t!==H||(t="--now"===i?(n=new Date,new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()))):""),"type"===e?l:""===t?"sort"!==e?"":Ue("0000-01-01 00:00:00",null,o):!(null===r||a!==r||"sort"===e||"type"===e||t instanceof Date)||null===(n=Ue(t,a,o))?t:"sort"===e?n:(t=null===r?Ee(n,"toDate","toJSDate","")[s]():Ee(n,"format","toFormat","toISOString",r),"display"===e?We(t):t)}}}var Xe=",",Je=".";if(j.Intl!==H)try{for(var qe=(new Intl.NumberFormat).formatToParts(100000.1),n=0;n<qe.length;n++)"group"===qe[n].type?Xe=qe[n].value:"decimal"===qe[n].type&&(Je=qe[n].value)}catch(t){}function $e(e){return function(){var t=[ge(this[w.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return w.ext.internal[e].apply(this,t)}}return w.datetime=function(n,a){var r="datetime-detect-"+n;a=a||"en",w.ext.type.order[r]||(w.ext.type.detect.unshift(function(t){var e=Ue(t,n,a);return!(""!==t&&!e)&&r}),w.ext.type.order[r+"-pre"]=function(t){return Ue(t,n,a)||0})},w.render={date:Ve("toLocaleDateString"),datetime:Ve("toLocaleString"),time:Ve("toLocaleTimeString"),number:function(a,r,o,i,l){return null!==a&&a!==H||(a=Xe),null!==r&&r!==H||(r=Je),{display:function(t){if("number"!=typeof t&&"string"!=typeof t)return t;if(""===t||null===t)return t;var e=t<0?"-":"",n=parseFloat(t);if(isNaN(n))return We(t);n=n.toFixed(o),t=Math.abs(n);n=parseInt(t,10),t=o?r+(t-n).toFixed(o).substring(2):"";return(e=0===n&&0===parseFloat(t)?"":e)+(i||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+t+(l||"")}}},text:function(){return{display:We,filter:We}}},P.extend(w.ext.internal,{_fnExternApiFunc:$e,_fnBuildAjax:Tt,_fnAjaxUpdate:xt,_fnAjaxParameters:At,_fnAjaxUpdateDraw:It,_fnAjaxDataSrc:Ft,_fnAddColumn:nt,_fnColumnOptions:at,_fnAdjustColumnSizing:O,_fnVisibleToColumnIndex:rt,_fnColumnIndexToVisible:ot,_fnVisbleColumns:T,_fnGetColumns:it,_fnColumnTypes:lt,_fnApplyColumnDefs:st,_fnHungarianMap:i,_fnCamelToHungarian:C,_fnLanguageCompat:Z,_fnBrowserDetect:tt,_fnAddData:x,_fnAddTr:ut,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==H?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,e,n){return P.inArray(n,t.aoData[e].anCells)},_fnGetCellData:S,_fnSetCellData:ct,_fnSplitObjNotation:dt,_fnGetObjectDataFn:A,_fnSetObjectDataFn:b,_fnGetDataMaster:ht,_fnClearTable:pt,_fnDeleteIndex:gt,_fnInvalidate:bt,_fnGetRowElements:mt,_fnCreateTr:St,_fnBuildHead:yt,_fnDrawHead:Dt,_fnDraw:y,_fnReDraw:u,_fnAddOptionsHtml:_t,_fnDetectHeader:wt,_fnGetUniqueThs:Ct,_fnFeatureHtmlFilter:Lt,_fnFilterComplete:Rt,_fnFilterCustom:Pt,_fnFilterColumn:jt,_fnFilter:Ht,_fnFilterCreateSearch:Nt,_fnEscapeRegex:Ot,_fnFilterData:Wt,_fnFeatureHtmlInfo:Ut,_fnUpdateInfo:Vt,_fnInfoMacros:Xt,_fnInitialise:Jt,_fnInitComplete:qt,_fnLengthChange:$t,_fnFeatureHtmlLength:Gt,_fnFeatureHtmlPaginate:zt,_fnPageChange:Yt,_fnFeatureHtmlProcessing:Zt,_fnProcessingDisplay:D,_fnFeatureHtmlTable:Kt,_fnScrollDraw:Qt,_fnApplyToChildren:k,_fnCalculateColumnWidths:ee,_fnThrottle:ne,_fnConvertToWidth:ae,_fnGetWidestNode:re,_fnGetMaxLenString:oe,_fnStringToCss:M,_fnSortFlatten:I,_fnSort:ie,_fnSortAria:le,_fnSortListener:se,_fnSortAttachListener:ue,_fnSortingClasses:ce,_fnSortData:fe,_fnSaveState:de,_fnLoadState:he,_fnImplementState:pe,_fnSettingsFromNode:ge,_fnLog:W,_fnMap:F,_fnBindAction:me,_fnCallbackReg:L,_fnCallbackFire:R,_fnLengthOverflow:Se,_fnRenderer:ve,_fnDataSource:E,_fnRowAttributes:vt,_fnExtend:be,_fnCalculateEnd:function(){}}),((P.fn.dataTable=w).$=P).fn.dataTableSettings=w.settings,P.fn.dataTableExt=w.ext,P.fn.DataTable=function(t){return P(this).dataTable(t).api()},P.each(w,function(t,e){P.fn.DataTable[t]=e}),w});
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(c){var u,d,v,y=Object.prototype.hasOwnProperty;c.plot.plugins.push({init:function(g,t){t=t.Canvas,null==u&&(d=t.prototype.getTextInfo,v=t.prototype.addText,u=t.prototype.render),t.prototype.render=function(){if(!g.getOptions().canvas)return u.call(this);var t,e=this.context,i=this._textCache;for(t in e.save(),e.textBaseline="middle",i)if(y.call(i,t)){var n,o=i[t];for(n in o)if(y.call(o,n)){var s,r=o[n],a=!0;for(s in r)if(y.call(r,s)){var l=r[s],h=l.positions,f=l.lines;a&&(e.fillStyle=l.font.color,e.font=l.font.definition,a=!1);for(var p,c=0;p=h[c];c++)if(p.active)for(var d,v=0;d=p.lines[v];v++)e.fillText(f[v].text,d[0],d[1]);else h.splice(c--,1);0==h.length&&delete r[s]}}}e.restore()},t.prototype.getTextInfo=function(t,e,i,n,o){if(!g.getOptions().canvas)return d.call(this,t,e,i,n,o);var s,r;if(e=""+e,n="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family:i,null==(r=(s=null==(s=(o=null==(o=this._textCache[t])?this._textCache[t]={}:o)[n])?o[n]={}:s)[e])){for(var a=this.context,l=("object"!=typeof i&&((i={lineHeight:(o=c("<div> </div>").css("position","absolute").addClass("string"==typeof i?i:null).appendTo(this.getTextLayer(t))).height(),style:o.css("font-style"),variant:o.css("font-variant"),weight:o.css("font-weight"),family:o.css("font-family"),color:o.css("color")}).size=o.css("line-height",1).height(),o.remove()),n=i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family,r=s[e]={width:0,height:0,positions:[],lines:[],font:{definition:n,color:i.color}},a.save(),a.font=n,(e+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n")),h=0;h<l.length;++h){var f=l[h],p=a.measureText(f);r.width=Math.max(p.width,r.width),r.height+=i.lineHeight,r.lines.push({text:f,width:p.width,height:i.lineHeight})}a.restore()}return r},t.prototype.addText=function(t,e,i,n,o,s,r,a,l){if(!g.getOptions().canvas)return v.call(this,t,e,i,n,o,s,r,a,l);var t=this.getTextInfo(t,n,o,s,r),h=t.positions,f=t.lines;i+=t.height/f.length/2,i="middle"==l?Math.round(i-t.height/2):"bottom"==l?Math.round(i-t.height):Math.round(i),window.opera&&window.opera.version().split(".")[0]<12&&(i-=2);for(var p,c=0;p=h[c];c++)if(p.x==e&&p.y==i)return void(p.active=!0);h.push(p={active:!0,lines:[],x:e,y:i});for(var d,c=0;d=f[c];c++)"center"==a?p.lines.push([Math.round(e-d.width/2),i]):"right"==a?p.lines.push([Math.round(e-d.width),i]):p.lines.push([Math.round(e),i]),i+=d.height}},options:{canvas:!0},name:"canvas",version:"1.0"})}(jQuery);
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(a){a.color={},a.color.make=function(t,e,i,o){var n={};return n.r=t||0,n.g=e||0,n.b=i||0,n.a=null!=o?o:1,n.add=function(t,e){for(var i=0;i<t.length;++i)n[t.charAt(i)]+=e;return n.normalize()},n.scale=function(t,e){for(var i=0;i<t.length;++i)n[t.charAt(i)]*=e;return n.normalize()},n.toString=function(){return 1<=n.a?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"},n.normalize=function(){function t(t,e,i){return e<t?t:i<e?i:e}return n.r=t(0,parseInt(n.r),255),n.g=t(0,parseInt(n.g),255),n.b=t(0,parseInt(n.b),255),n.a=t(0,n.a,1),n},n.clone=function(){return a.color.make(n.r,n.b,n.g,n.a)},n.normalize()},a.color.extract=function(t,e){for(var i;(""==(i=t.css(e).toLowerCase())||"transparent"==i)&&(t=t.parent()).length&&!a.nodeName(t.get(0),"body"););return a.color.parse(i="rgba(0, 0, 0, 0)"==i?"transparent":i)},a.color.parse=function(t){var e,i=a.color.make;return(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))?i(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)):(e=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))?i(parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10),parseFloat(e[4])):(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))?i(2.55*parseFloat(e[1]),2.55*parseFloat(e[2]),2.55*parseFloat(e[3])):(e=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))?i(2.55*parseFloat(e[1]),2.55*parseFloat(e[2]),2.55*parseFloat(e[3]),parseFloat(e[4])):(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))?i(parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)):(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))?i(parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)):"transparent"==(t=a.trim(t).toLowerCase())?i(255,255,255,0):i((e=o[t]||[0,0,0])[0],e[1],e[2])};var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function($){var u=Object.prototype.hasOwnProperty;function K(t,e){var i=e.children("."+t)[0];if(null==i&&((i=document.createElement("canvas")).className=t,$(i).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(e),!i.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");i=window.G_vmlCanvasManager.initElement(i)}this.element=i;t=this.context=i.getContext("2d"),i=window.devicePixelRatio||1,t=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;this.pixelRatio=i/t,this.resize(e.width(),e.height()),this.textContainer=null,this.text={},this._textCache={}}function o(y,W,t,e){var H=[],j={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},C=null,s=null,h=null,k=null,c=null,E=[],B=[],w={left:0,right:0,top:0,bottom:0},M=0,T=0,G={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},S=this;S.setData=f,S.setupGrid=I,S.draw=A,S.getPlaceholder=function(){return y},S.getCanvas=function(){return C.element},S.getPlotOffset=function(){return w},S.width=function(){return M},S.height=function(){return T},S.offset=function(){var t=h.offset();return t.left+=w.left,t.top+=w.top,t},S.getData=function(){return H},S.getAxes=function(){var i={};return $.each(E.concat(B),function(t,e){e&&(i[e.direction+(1!=e.n?e.n:"")+"axis"]=e)}),i},S.getXAxes=function(){return E},S.getYAxes=function(){return B},S.c2p=u,S.p2c=function(t){var e,i,o,n={};for(e=0;e<E.length;++e)if((i=E[e])&&i.used&&(o="x"+i.n,null==t[o]&&1==i.n&&(o="x"),null!=t[o])){n.left=i.p2c(t[o]);break}for(e=0;e<B.length;++e)if((i=B[e])&&i.used&&(o="y"+i.n,null==t[o]&&1==i.n&&(o="y"),null!=t[o])){n.top=i.p2c(t[o]);break}return n},S.getOptions=function(){return j},S.highlight=q,S.unhighlight=Q,S.triggerRedrawOverlay=v,S.pointOffset=function(t){return{left:parseInt(E[V(t,"x")-1].p2c(+t.x)+w.left,10),top:parseInt(B[V(t,"y")-1].p2c(+t.y)+w.top,10)}},S.shutdown=p,S.destroy=function(){p(),y.removeData("plot").empty(),H=[],E=[],B=[],x=[],S=G=c=k=h=s=C=j=null},S.resize=function(){var t=y.width(),e=y.height();C.resize(t,e),s.resize(t,e)},S.hooks=G;for(var z={Canvas:K},i=0;i<e.length;++i){var o=e[i];o.init(S,z),o.options&&$.extend(!0,j,o.options)}$.extend(!0,j,t),t&&t.colors&&(j.colors=t.colors),null==j.xaxis.color&&(j.xaxis.color=$.color.parse(j.grid.color).scale("a",.22).toString()),null==j.yaxis.color&&(j.yaxis.color=$.color.parse(j.grid.color).scale("a",.22).toString()),null==j.xaxis.tickColor&&(j.xaxis.tickColor=j.grid.tickColor||j.xaxis.color),null==j.yaxis.tickColor&&(j.yaxis.tickColor=j.grid.tickColor||j.yaxis.color),null==j.grid.borderColor&&(j.grid.borderColor=j.grid.color),null==j.grid.tickColor&&(j.grid.tickColor=$.color.parse(j.grid.color).scale("a",.22).toString());var n,a,r,l,t=(t=y.css("font-size"))?+t.replace("px",""):13,d={style:y.css("font-style"),size:Math.round(.8*t),variant:y.css("font-variant"),weight:y.css("font-weight"),family:y.css("font-family")};for(r=j.xaxes.length||1,n=0;n<r;++n)(a=j.xaxes[n])&&!a.tickColor&&(a.tickColor=a.color),a=$.extend(!0,{},j.xaxis,a),(j.xaxes[n]=a).font&&(a.font=$.extend({},d,a.font),a.font.color||(a.font.color=a.color),a.font.lineHeight||(a.font.lineHeight=Math.round(1.15*a.font.size)));for(r=j.yaxes.length||1,n=0;n<r;++n)(a=j.yaxes[n])&&!a.tickColor&&(a.tickColor=a.color),a=$.extend(!0,{},j.yaxis,a),(j.yaxes[n]=a).font&&(a.font=$.extend({},d,a.font),a.font.color||(a.font.color=a.color),a.font.lineHeight||(a.font.lineHeight=Math.round(1.15*a.font.size)));for(j.xaxis.noTicks&&null==j.xaxis.ticks&&(j.xaxis.ticks=j.xaxis.noTicks),j.yaxis.noTicks&&null==j.yaxis.ticks&&(j.yaxis.ticks=j.yaxis.noTicks),j.x2axis&&(j.xaxes[1]=$.extend(!0,{},j.xaxis,j.x2axis),j.xaxes[1].position="top",null==j.x2axis.min&&(j.xaxes[1].min=null),null==j.x2axis.max)&&(j.xaxes[1].max=null),j.y2axis&&(j.yaxes[1]=$.extend(!0,{},j.yaxis,j.y2axis),j.yaxes[1].position="right",null==j.y2axis.min&&(j.yaxes[1].min=null),null==j.y2axis.max)&&(j.yaxes[1].max=null),j.grid.coloredAreas&&(j.grid.markings=j.grid.coloredAreas),j.grid.coloredAreasColor&&(j.grid.markingsColor=j.grid.coloredAreasColor),j.lines&&$.extend(!0,j.series.lines,j.lines),j.points&&$.extend(!0,j.series.points,j.points),j.bars&&$.extend(!0,j.series.bars,j.bars),null!=j.shadowSize&&(j.series.shadowSize=j.shadowSize),null!=j.highlightColor&&(j.series.highlightColor=j.highlightColor),n=0;n<j.xaxes.length;++n)Y(E,n+1).options=j.xaxes[n];for(n=0;n<j.yaxes.length;++n)Y(B,n+1).options=j.yaxes[n];for(l in G)j.hooks[l]&&j.hooks[l].length&&(G[l]=G[l].concat(j.hooks[l]));_(G.processOptions,[j]),y.css("padding",0).children().filter(function(){return!$(this).hasClass("flot-overlay")&&!$(this).hasClass("flot-base")}).remove(),"static"==y.css("position")&&y.css("position","relative"),C=new K("flot-base",y),s=new K("flot-overlay",y),k=C.context,c=s.context,h=$(s.element).unbind();t=y.data("plot");function _(t,e){e=[S].concat(e);for(var i=0;i<t.length;++i)t[i].apply(this,e)}function f(O){var t,e=(H=function(t){for(var e=[],i=0;i<t.length;++i){var o=$.extend(!0,{},j.series);null!=t[i].data?(o.data=t[i].data,delete t[i].data,$.extend(!0,o,t[i]),t[i].data=o.data):o.data=t[i],e.push(o)}return e}(O)).length,i=-1;for(t=0;t<H.length;++t){var o=H[t].color;null!=o&&(e--,"number"==typeof o)&&i<o&&(i=o)}e<=i&&(e=i+1);var n,a=[],r=j.colors,l=r.length,s=0;for(t=0;t<e;t++)n=$.color.parse(r[t%l]||"#666"),t%l==0&&t&&(s=0<=s?s<.5?-s-.2:0:-s),a[t]=n.scale("rgb",1+s);var c,h=0;for(t=0;t<H.length;++t){if(null==(c=H[t]).color?(c.color=a[h].toString(),++h):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var d,f=!0;for(d in c)if(c[d]&&c[d].show){f=!1;break}f&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=Y(E,V(c,"x")),c.yaxis=Y(B,V(c,"y"))}var u,p,m,x,g,b,v,k,y,w,M,T,C,S,W=Number.POSITIVE_INFINITY,z=Number.NEGATIVE_INFINITY,I=Number.MAX_VALUE;function A(t,e,i){e<t.datamin&&e!=-I&&(t.datamin=e),i>t.datamax&&i!=I&&(t.datamax=i)}for($.each(X(),function(t,e){e.datamin=W,e.datamax=z,e.used=!1}),u=0;u<H.length;++u)(g=H[u]).datapoints={points:[]},_(G.processRawData,[g,g.data,g.datapoints]);for(u=0;u<H.length;++u)if(g=H[u],M=g.data,(T=g.datapoints.format)||((T=[]).push({x:!0,number:!0,required:!0}),T.push({y:!0,number:!0,required:!0}),(g.bars.show||g.lines.show&&g.lines.fill)&&(S=!!(g.bars.show&&g.bars.zero||g.lines.show&&g.lines.zero),T.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:S}),g.bars.horizontal)&&(delete T[T.length-1].y,T[T.length-1].x=!0),g.datapoints.format=T),null==g.datapoints.pointsize){g.datapoints.pointsize=T.length,v=g.datapoints.pointsize,b=g.datapoints.points;var R=g.lines.show&&g.lines.steps;for(g.xaxis.used=g.yaxis.used=!0,p=m=0;p<M.length;++p,m+=v){var F=null==(w=M[p]);if(!F)for(x=0;x<v;++x)k=w[x],(y=T[x])&&(y.number&&null!=k&&(k=+k,isNaN(k)?k=null:k==1/0?k=I:k==-1/0&&(k=-I)),null==k)&&(y.required&&(F=!0),null!=y.defaultValue)&&(k=y.defaultValue),b[m+x]=k;if(F)for(x=0;x<v;++x)null!=(k=b[m+x])&&!1!==(y=T[x]).autoscale&&(y.x&&A(g.xaxis,k,k),y.y)&&A(g.yaxis,k,k),b[m+x]=null;else if(R&&0<m&&null!=b[m-v]&&b[m-v]!=b[m]&&b[m-v+1]!=b[m+1]){for(x=0;x<v;++x)b[m+v+x]=b[m+x];b[m+1]=b[m-v+1],m+=v}}}for(u=0;u<H.length;++u)g=H[u],_(G.processDatapoints,[g,g.datapoints]);for(u=0;u<H.length;++u){g=H[u],b=g.datapoints.points,v=g.datapoints.pointsize,T=g.datapoints.format;var P=W,N=W,D=z,L=z;for(p=0;p<b.length;p+=v)if(null!=b[p])for(x=0;x<v;++x)k=b[p+x],(y=T[x])&&!1!==y.autoscale&&k!=I&&k!=-I&&(y.x&&(k<P&&(P=k),D<k)&&(D=k),y.y)&&(k<N&&(N=k),L<k)&&(L=k);if(g.bars.show){switch(g.bars.align){case"left":C=0;break;case"right":C=-g.bars.barWidth;break;default:C=-g.bars.barWidth/2}g.bars.horizontal?(N+=C,L+=C+g.bars.barWidth):(P+=C,D+=C+g.bars.barWidth)}A(g.xaxis,P,D),A(g.yaxis,N,L)}$.each(X(),function(t,e){e.datamin==W&&(e.datamin=null),e.datamax==z&&(e.datamax=null)})}function V(t,e){t=t[e+"axis"];return t="number"!=typeof(t="object"==typeof t?t.n:t)?1:t}function X(){return $.grep(E.concat(B),function(t){return t})}function u(t){for(var e,i={},o=0;o<E.length;++o)(e=E[o])&&e.used&&(i["x"+e.n]=e.c2p(t.left));for(o=0;o<B.length;++o)(e=B[o])&&e.used&&(i["y"+e.n]=e.c2p(t.top));return void 0!==i.x1&&(i.x=i.x1),void 0!==i.y1&&(i.y=i.y1),i}function Y(t,e){return t[e-1]||(t[e-1]={n:e,direction:t==E?"x":"y",options:$.extend(!0,{},t==E?j.xaxis:j.yaxis)}),t[e-1]}function p(){g&&clearTimeout(g),h.unbind("mousemove",D),h.unbind("mouseleave",L),h.unbind("click",O),_(G.shutdown,[h])}function I(){var t,e,i=X(),o=j.grid.show;for(e in w){var n=j.grid.margin||0;w[e]="number"==typeof n?n:n[e]||0}for(e in _(G.processOffset,[w]),w)"object"==typeof j.grid.borderWidth?w[e]+=o?j.grid.borderWidth[e]:0:w[e]+=o?j.grid.borderWidth:0;if($.each(i,function(t,e){var i,o=e.options,o=(e.show=null==o.show?e.used:o.show,e.reserveSpace=null==o.reserveSpace?e.show:o.reserveSpace,e),e=o.options,n=+(null!=e.min?e.min:o.datamin),a=+(null!=e.max?e.max:o.datamax),r=a-n;0==r?(i=0==a?1:.01,null==e.min&&(n-=i),null!=e.max&&null==e.min||(a+=i)):null!=(i=e.autoscaleMargin)&&(null==e.min&&(n-=r*i)<0&&null!=o.datamin&&0<=o.datamin&&(n=0),null==e.max)&&0<(a+=r*i)&&null!=o.datamax&&o.datamax<=0&&(a=0),o.min=n,o.max=a}),o){var a=$.grep(i,function(t){return t.show||t.reserveSpace});for($.each(a,function(t,e){var i=e,o=i.options,n=(n="number"==typeof o.ticks&&0<o.ticks?o.ticks:.3*Math.sqrt("x"==i.direction?C.width:C.height),(i.max-i.min)/n),a=-Math.floor(Math.log(n)/Math.LN10),r=o.tickDecimals;null!=r&&r<a&&(a=r);var l,s=Math.pow(10,-a),c=n/s;if(c<1.5?f=1:c<3?(f=2,2.25<c&&(null==r||a+1<=r)&&(f=2.5,++a)):f=c<7.5?5:10,f*=s,null!=o.minTickSize&&f<o.minTickSize&&(f=o.minTickSize),i.delta=n,i.tickDecimals=Math.max(0,null!=r?r:a),i.tickSize=o.tickSize||f,"time"==o.mode&&!i.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");i.tickGenerator||(i.tickGenerator=function(t){for(var e,i,o,n=[],a=(i=t.min,(o=t.tickSize)*Math.floor(i/o)),r=0,l=Number.NaN;e=l,l=a+r*t.tickSize,n.push(l),++r,l<t.max&&l!=e;);return n},i.tickFormatter=function(t,e){var i=e.tickDecimals?Math.pow(10,e.tickDecimals):1,t=""+Math.round(t*i)/i;if(null!=e.tickDecimals){var o=t.indexOf("."),o=-1==o?0:t.length-o-1;if(o<e.tickDecimals)return(o?t:t+".")+(""+i).substr(1,e.tickDecimals-o)}return t}),$.isFunction(o.tickFormatter)&&(i.tickFormatter=function(t,e){return""+o.tickFormatter(t,e)}),null!=o.alignTicksWithAxis&&(l=("x"==i.direction?E:B)[o.alignTicksWithAxis-1])&&l.used&&l!=i&&(0<(c=i.tickGenerator(i)).length&&(null==o.min&&(i.min=Math.min(i.min,c[0])),null==o.max)&&1<c.length&&(i.max=Math.max(i.max,c[c.length-1])),i.tickGenerator=function(t){for(var e,i=[],o=0;o<l.ticks.length;++o)e=(l.ticks[o].v-l.min)/(l.max-l.min),e=t.min+e*(t.max-t.min),i.push(e);return i},i.mode||null!=o.tickDecimals||(s=Math.max(0,1-Math.floor(Math.log(i.delta)/Math.LN10)),1<(n=i.tickGenerator(i)).length&&/\..*0$/.test((n[1]-n[0]).toFixed(s)))||(i.tickDecimals=s));var h,d,f,u=e,r=u.options.ticks,p=[];for(null==r||"number"==typeof r&&0<r?p=u.tickGenerator(u):r&&(p=$.isFunction(r)?r(u):r),u.ticks=[],h=0;h<p.length;++h){var m=null,x=p[h];"object"==typeof x?(d=+x[0],1<x.length&&(m=x[1])):d=+x,null==m&&(m=u.tickFormatter(d,u)),isNaN(d)||u.ticks.push({v:d,label:m})}f=(a=e).ticks,a.options.autoscaleMargin&&0<f.length&&(null==a.options.min&&(a.min=Math.min(a.min,f[0].v)),null==a.options.max)&&1<f.length&&(a.max=Math.max(a.max,f[f.length-1].v));for(var c=e,n=c.options,g=c.ticks||[],b=n.labelWidth||0,v=n.labelHeight||0,k=b||("x"==c.direction?Math.floor(C.width/(g.length||1)):null),i=c.direction+"Axis "+c.direction+c.n+"Axis",y="flot-"+c.direction+"-axis flot-"+c.direction+c.n+"-axis "+i,w=n.font||"flot-tick-label tickLabel",M=0;M<g.length;++M){var T=g[M];T.label&&(T=C.getTextInfo(y,T.label,w,null,k),b=Math.max(b,T.width),v=Math.max(v,T.height))}c.labelWidth=n.labelWidth||b,c.labelHeight=n.labelHeight||v}),t=a.length-1;0<=t;--t)!function(i){var t=i.labelWidth,e=i.labelHeight,o=i.options.position,n="x"===i.direction,a=i.options.tickLength,r=j.grid.axisMargin,l=j.grid.labelMargin,s=!0,c=!0,h=!0,d=!1;$.each(n?E:B,function(t,e){e&&(e.show||e.reserveSpace)&&(e===i?d=!0:e.options.position===o&&(d?c=!1:s=!1),d||(h=!1))}),c&&(r=0),null==a&&(a=h?"full":5),isNaN(+a)||(l+=+a),n?(e+=l,"bottom"==o?(w.bottom+=e+r,i.box={top:C.height-w.bottom,height:e}):(i.box={top:w.top+r,height:e},w.top+=e+r)):(t+=l,"left"==o?(i.box={left:w.left+r,width:t},w.left+=t+r):(w.right+=t+r,i.box={left:C.width-w.right,width:t})),i.position=o,i.tickLength=a,i.box.padding=l,i.innermost=s}(a[t]);var r,l=j.grid.minBorderMargin;if(null==l)for(r=l=0;r<H.length;++r)l=Math.max(l,2*(H[r].points.radius+H[r].points.lineWidth/2));var s={left:l,right:l,top:l,bottom:l};$.each(X(),function(t,e){e.reserveSpace&&e.ticks&&e.ticks.length&&("x"===e.direction?(s.left=Math.max(s.left,e.labelWidth/2),s.right=Math.max(s.right,e.labelWidth/2)):(s.bottom=Math.max(s.bottom,e.labelHeight/2),s.top=Math.max(s.top,e.labelHeight/2)))}),w.left=Math.ceil(Math.max(s.left,w.left)),w.right=Math.ceil(Math.max(s.right,w.right)),w.top=Math.ceil(Math.max(s.top,w.top)),w.bottom=Math.ceil(Math.max(s.bottom,w.bottom)),$.each(a,function(t,e){"x"==(e=e).direction?(e.box.left=w.left-e.labelWidth/2,e.box.width=C.width-w.left-w.right+e.labelWidth):(e.box.top=w.top-e.labelHeight/2,e.box.height=C.height-w.bottom-w.top+e.labelHeight)})}if(M=C.width-w.left-w.right,T=C.height-w.bottom-w.top,$.each(i,function(t,e){function i(t){return t}var o,n,a,r;n=(e=e).options.transform||i,a=e.options.inverseTransform,r="x"==e.direction?(o=e.scale=M/Math.abs(n(e.max)-n(e.min)),Math.min(n(e.max),n(e.min))):(o=-(o=e.scale=T/Math.abs(n(e.max)-n(e.min))),Math.max(n(e.max),n(e.min))),e.p2c=n==i?function(t){return(t-r)*o}:function(t){return(n(t)-r)*o},e.c2p=a?function(t){return a(r+t/o)}:function(t){return r+t/o}}),o&&$.each(X(),function(t,e){var i,o,n,a,r,l=e.box,s=e.direction+"Axis "+e.direction+e.n+"Axis",c="flot-"+e.direction+"-axis flot-"+e.direction+e.n+"-axis "+s,h=e.options.font||"flot-tick-label tickLabel";if(C.removeText(c),e.show&&0!=e.ticks.length)for(var d=0;d<e.ticks.length;++d)!(i=e.ticks[d]).label||i.v<e.min||i.v>e.max||("x"==e.direction?(a="center",o=w.left+e.p2c(i.v),"bottom"==e.position?n=l.top+l.padding:(n=l.top+l.height-l.padding,r="bottom")):(r="middle",n=w.top+e.p2c(i.v),"left"==e.position?(o=l.left+l.width-l.padding,a="right"):o=l.left+l.padding),C.addText(c,o,n,i.label,h,null,null,a,r))}),null!=j.legend.container?$(j.legend.container).html(""):y.find(".legend").remove(),j.legend.show){for(var c,h,d,f=[],u=[],p=!1,m=j.legend.labelFormatter,x=0;x<H.length;++x)(c=H[x]).label&&(h=m?m(c.label,c):c.label)&&u.push({label:h,color:c.color});j.legend.sorted&&($.isFunction(j.legend.sorted)?u.sort(j.legend.sorted):"reverse"==j.legend.sorted?u.reverse():(d="descending"!=j.legend.sorted,u.sort(function(t,e){return t.label==e.label?0:t.label<e.label!=d?1:-1})));for(var g,b,v,x=0;x<u.length;++x){var k=u[x];x%j.legend.noColumns==0&&(p&&f.push("</tr>"),f.push("<tr>"),p=!0),f.push('<td class="legendColorBox"><div style="border:1px solid '+j.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+k.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+k.label+"</td>")}p&&f.push("</tr>"),0!=f.length&&(i='<table style="font-size:smaller;color:'+j.grid.color+'">'+f.join("")+"</table>",null!=j.legend.container?$(j.legend.container).html(i):(g="",b=j.legend.position,null==(v=j.legend.margin)[0]&&(v=[v,v]),"n"==b.charAt(0)?g+="top:"+(v[1]+w.top)+"px;":"s"==b.charAt(0)&&(g+="bottom:"+(v[1]+w.bottom)+"px;"),"e"==b.charAt(1)?g+="right:"+(v[0]+w.right)+"px;":"w"==b.charAt(1)&&(g+="left:"+(v[0]+w.left)+"px;"),b=$('<div class="legend">'+i.replace('style="','style="position:absolute;'+g+";")+"</div>").appendTo(y),0!=j.legend.backgroundOpacity&&(null==(v=j.legend.backgroundColor)&&((v=(v=j.grid.backgroundColor)&&"string"==typeof v?$.color.parse(v):$.color.extract(b,"background-color")).a=1,v=v.toString()),i=b.children(),$('<div style="position:absolute;width:'+i.width()+"px;height:"+i.height()+"px;"+g+"background-color:"+v+';"> </div>').prependTo(b).css("opacity",j.legend.backgroundOpacity))))}}function A(){C.clear(),_(G.drawBackground,[k]);var t=j.grid;t.show&&t.backgroundColor&&(k.save(),k.translate(w.left,w.top),k.fillStyle=J(j.grid.backgroundColor,T,0,"rgba(255, 255, 255, 0)"),k.fillRect(0,0,M,T),k.restore()),t.show&&!t.aboveData&&P();for(var e=0;e<H.length;++e){_(G.drawSeries,[k,H[e]]),i=void 0;var i=H[e];if(i.lines.show){o=void 0;a=void 0;r=void 0;l=void 0;var o=i;var n=function(t,e,i,o,n){var a=t.points,r=t.pointsize,l=null,s=null;k.beginPath();for(var c=r;c<a.length;c+=r){var h=a[c-r],d=a[c-r+1],f=a[c],u=a[c+1];if(null!=h&&null!=f){if(d<=u&&d<n.min){if(u<n.min)continue;h=(n.min-d)/(u-d)*(f-h)+h,d=n.min}else if(u<=d&&u<n.min){if(d<n.min)continue;f=(n.min-d)/(u-d)*(f-h)+h,u=n.min}if(u<=d&&d>n.max){if(u>n.max)continue;h=(n.max-d)/(u-d)*(f-h)+h,d=n.max}else if(d<=u&&u>n.max){if(d>n.max)continue;f=(n.max-d)/(u-d)*(f-h)+h,u=n.max}if(h<=f&&h<o.min){if(f<o.min)continue;d=(o.min-h)/(f-h)*(u-d)+d,h=o.min}else if(f<=h&&f<o.min){if(h<o.min)continue;u=(o.min-h)/(f-h)*(u-d)+d,f=o.min}if(f<=h&&h>o.max){if(f>o.max)continue;d=(o.max-h)/(f-h)*(u-d)+d,h=o.max}else if(h<=f&&f>o.max){if(h>o.max)continue;u=(o.max-h)/(f-h)*(u-d)+d,f=o.max}h==l&&d==s||k.moveTo(o.p2c(h)+e,n.p2c(d)+i),l=f,s=u,k.lineTo(o.p2c(f)+e,n.p2c(u)+i)}}k.stroke()};k.save(),k.translate(w.left,w.top),k.lineJoin="round";var a=o.lines.lineWidth,r=o.shadowSize;0<a&&0<r&&(k.lineWidth=r,k.strokeStyle="rgba(0,0,0,0.1)",l=Math.PI/18,n(o.datapoints,Math.sin(l)*(a/2+r/2),Math.cos(l)*(a/2+r/2),o.xaxis,o.yaxis),k.lineWidth=r/2,n(o.datapoints,Math.sin(l)*(a/2+r/4),Math.cos(l)*(a/2+r/4),o.xaxis,o.yaxis));k.lineWidth=a,k.strokeStyle=o.color;var l=m(o.lines,o.color,0,T);l&&(k.fillStyle=l,function(t,e,i){for(var o=t.points,n=t.pointsize,a=Math.min(Math.max(0,i.min),i.max),r=0,l=!1,s=1,c=0,h=0;!(0<n&&r>o.length+n);){var d,f,u=o[(r+=n)-n],p=o[r-n+s],m=o[r],x=o[r+s];if(l){if(0<n&&null!=u&&null==m){h=r,n=-n,s=2;continue}if(n<0&&r==c+n){k.fill(),l=!1,s=1,r=c=h+(n=-n);continue}}if(null!=u&&null!=m){if(u<=m&&u<e.min){if(m<e.min)continue;p=(e.min-u)/(m-u)*(x-p)+p,u=e.min}else if(m<=u&&m<e.min){if(u<e.min)continue;x=(e.min-u)/(m-u)*(x-p)+p,m=e.min}if(m<=u&&u>e.max){if(m>e.max)continue;p=(e.max-u)/(m-u)*(x-p)+p,u=e.max}else if(u<=m&&m>e.max){if(u>e.max)continue;x=(e.max-u)/(m-u)*(x-p)+p,m=e.max}l||(k.beginPath(),k.moveTo(e.p2c(u),i.p2c(a)),l=!0),p>=i.max&&x>=i.max?(k.lineTo(e.p2c(u),i.p2c(i.max)),k.lineTo(e.p2c(m),i.p2c(i.max))):p<=i.min&&x<=i.min?(k.lineTo(e.p2c(u),i.p2c(i.min)),k.lineTo(e.p2c(m),i.p2c(i.min))):(d=u,f=m,p<=x&&p<i.min&&x>=i.min?(u=(i.min-p)/(x-p)*(m-u)+u,p=i.min):x<=p&&x<i.min&&p>=i.min&&(m=(i.min-p)/(x-p)*(m-u)+u,x=i.min),x<=p&&p>i.max&&x<=i.max?(u=(i.max-p)/(x-p)*(m-u)+u,p=i.max):p<=x&&x>i.max&&p<=i.max&&(m=(i.max-p)/(x-p)*(m-u)+u,x=i.max),u!=d&&k.lineTo(e.p2c(d),i.p2c(p)),k.lineTo(e.p2c(u),i.p2c(p)),k.lineTo(e.p2c(m),i.p2c(x)),m!=f&&(k.lineTo(e.p2c(m),i.p2c(x)),k.lineTo(e.p2c(f),i.p2c(x))))}}}(o.datapoints,o.xaxis,o.yaxis));0<a&&n(o.datapoints,0,0,o.xaxis,o.yaxis);k.restore()}if(i.bars.show&&!function(c){var t;switch(k.save(),k.translate(w.left,w.top),k.lineWidth=c.bars.lineWidth,k.strokeStyle=c.color,c.bars.align){case"left":t=0;break;case"right":t=-c.bars.barWidth;break;default:t=-c.bars.barWidth/2}var e=c.bars.fill?function(t,e){return m(c.bars,c.color,t,e)}:null;(function(t,e,i,o,n,a){for(var r=t.points,l=t.pointsize,s=0;s<r.length;s+=l)null!=r[s]&&N(r[s],r[s+1],r[s+2],e,i,o,n,a,k,c.bars.horizontal,c.bars.lineWidth)})(c.datapoints,t,t+c.bars.barWidth,e,c.xaxis,c.yaxis),k.restore()}(i),i.points.show){r=void 0;l=void 0;a=void 0;n=void 0;o=void 0;r=i;i=function(t,e,i,o,n,a,r,l){for(var s=t.points,c=t.pointsize,h=0;h<s.length;h+=c){var d=s[h],f=s[h+1];null==d||d<a.min||d>a.max||f<r.min||f>r.max||(k.beginPath(),d=a.p2c(d),f=r.p2c(f)+o,"circle"==l?k.arc(d,f,e,0,n?Math.PI:2*Math.PI,!1):l(k,d,f,e,n),k.closePath(),i&&(k.fillStyle=i,k.fill()),k.stroke())}};k.save(),k.translate(w.left,w.top);l=r.points.lineWidth,a=r.shadowSize,n=r.points.radius,o=r.points.symbol;0==l&&(l=1e-4);0<l&&0<a&&(a=a/2,k.lineWidth=a,k.strokeStyle="rgba(0,0,0,0.1)",i(r.datapoints,n,null,a+a/2,!0,r.xaxis,r.yaxis,o),k.strokeStyle="rgba(0,0,0,0.2)",i(r.datapoints,n,null,a/2,!0,r.xaxis,r.yaxis,o));k.lineWidth=l,k.strokeStyle=r.color,i(r.datapoints,n,m(r.points,r.color),0,!1,r.xaxis,r.yaxis,o),k.restore()}}_(G.draw,[k]),t.show&&t.aboveData&&P(),C.render(),v()}function F(t,e){for(var i,o,n,a,r,l=X(),s=0;s<l.length;++s)if((i=l[s]).direction==e&&t[o=t[o=e+i.n+"axis"]||1!=i.n?o:e+"axis"]){a=t[o].from,r=t[o].to;break}return t[o]||(i=("x"==e?E:B)[0],a=t[e+"1"],r=t[e+"2"]),null!=a&&null!=r&&r<a&&(n=a,a=r,r=n),{from:a,to:r,axis:i}}function P(){k.save(),k.translate(w.left,w.top);var t,e,i=j.grid.markings;if(i)for($.isFunction(i)&&((c=S.getAxes()).xmin=c.xaxis.min,c.xmax=c.xaxis.max,c.ymin=c.yaxis.min,c.ymax=c.yaxis.max,i=i(c)),t=0;t<i.length;++t){var o,n,a,r=i[t],l=F(r,"x"),s=F(r,"y");null==l.from&&(l.from=l.axis.min),null==l.to&&(l.to=l.axis.max),null==s.from&&(s.from=s.axis.min),null==s.to&&(s.to=s.axis.max),l.to<l.axis.min||l.from>l.axis.max||s.to<s.axis.min||s.from>s.axis.max||(l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max),s.from=Math.max(s.from,s.axis.min),s.to=Math.min(s.to,s.axis.max),o=l.from===l.to,n=s.from===s.to,o&&n)||(l.from=Math.floor(l.axis.p2c(l.from)),l.to=Math.floor(l.axis.p2c(l.to)),s.from=Math.floor(s.axis.p2c(s.from)),s.to=Math.floor(s.axis.p2c(s.to)),o||n?(a=(n=r.lineWidth||j.grid.markingsLineWidth)%2?.5:0,k.beginPath(),k.strokeStyle=r.color||j.grid.markingsColor,k.lineWidth=n,o?(k.moveTo(l.to+a,s.from),k.lineTo(l.to+a,s.to)):(k.moveTo(l.from,s.to+a),k.lineTo(l.to,s.to+a)),k.stroke()):(k.fillStyle=r.color||j.grid.markingsColor,k.fillRect(l.from,s.to,l.to-l.from,s.from-s.to)))}for(var c=X(),h=j.grid.borderWidth,d=0;d<c.length;++d){var f,u,p,m=c[d],x=m.box,g=m.tickLength;if(m.show&&0!=m.ticks.length){for(k.lineWidth=1,"x"==m.direction?(f=0,u="full"==g?"top"==m.position?0:T:x.top-w.top+("top"==m.position?x.height:0)):(u=0,f="full"==g?"left"==m.position?0:M:x.left-w.left+("left"==m.position?x.width:0)),m.innermost||(k.strokeStyle=m.options.color,k.beginPath(),v=p=0,"x"==m.direction?v=M+1:p=T+1,1==k.lineWidth&&("x"==m.direction?u=Math.floor(u)+.5:f=Math.floor(f)+.5),k.moveTo(f,u),k.lineTo(f+v,u+p),k.stroke()),k.strokeStyle=m.options.tickColor,k.beginPath(),t=0;t<m.ticks.length;++t){var b=m.ticks[t].v,v=p=0;isNaN(b)||b<m.min||b>m.max||"full"==g&&("object"==typeof h&&0<h[m.position]||0<h)&&(b==m.min||b==m.max)||("x"==m.direction?(f=m.p2c(b),p="full"==g?-T:g,"top"==m.position&&(p=-p)):(u=m.p2c(b),v="full"==g?-M:g,"left"==m.position&&(v=-v)),1==k.lineWidth&&("x"==m.direction?f=Math.floor(f)+.5:u=Math.floor(u)+.5),k.moveTo(f,u),k.lineTo(f+v,u+p))}k.stroke()}}h&&(e=j.grid.borderColor,"object"==typeof h||"object"==typeof e?("object"!=typeof e&&(e={top:e,right:e,bottom:e,left:e}),0<(h="object"!=typeof h?{top:h,right:h,bottom:h,left:h}:h).top&&(k.strokeStyle=e.top,k.lineWidth=h.top,k.beginPath(),k.moveTo(0-h.left,0-h.top/2),k.lineTo(M,0-h.top/2),k.stroke()),0<h.right&&(k.strokeStyle=e.right,k.lineWidth=h.right,k.beginPath(),k.moveTo(M+h.right/2,0-h.top),k.lineTo(M+h.right/2,T),k.stroke()),0<h.bottom&&(k.strokeStyle=e.bottom,k.lineWidth=h.bottom,k.beginPath(),k.moveTo(M+h.right,T+h.bottom/2),k.lineTo(0,T+h.bottom/2),k.stroke()),0<h.left&&(k.strokeStyle=e.left,k.lineWidth=h.left,k.beginPath(),k.moveTo(0-h.left/2,T+h.bottom),k.lineTo(0-h.left/2,0),k.stroke())):(k.lineWidth=h,k.strokeStyle=j.grid.borderColor,k.strokeRect(-h/2,-h/2,M+h,T+h))),k.restore()}function N(t,e,i,o,n,a,r,l,s,c,h){var d,f,u,p,m,x,g,b,v;c?(m=!(b=x=g=!0),p=e+o,u=e+n,(f=t)<(d=i)&&(v=f,f=d,d=v,x=!(m=!0))):(b=!(m=x=g=!0),d=t+o,f=t+n,(p=e)<(u=i)&&(v=p,p=u,u=v,g=!(b=!0))),f<r.min||d>r.max||p<l.min||u>l.max||(d<r.min&&(d=r.min,m=!1),f>r.max&&(f=r.max,x=!1),u<l.min&&(u=l.min,b=!1),p>l.max&&(p=l.max,g=!1),d=r.p2c(d),u=l.p2c(u),f=r.p2c(f),p=l.p2c(p),a&&(s.fillStyle=a(u,p),s.fillRect(d,p,f-d,u-p)),0<h&&(m||x||g||b)&&(s.beginPath(),s.moveTo(d,u),m?s.lineTo(d,p):s.moveTo(d,p),g?s.lineTo(f,p):s.moveTo(f,p),x?s.lineTo(f,u):s.moveTo(f,u),b?s.lineTo(d,u):s.moveTo(d,u),s.stroke()))}function m(t,e,i,o){var n=t.fill;return n?t.fillColor?J(t.fillColor,i,o,e):((t=$.color.parse(e)).a="number"==typeof n?n:.4,t.normalize(),t.toString()):null}t&&(t.shutdown(),s.clear()),y.data("plot",S),f(W),I(),A(),j.grid.hoverable&&(h.mousemove(D),h.bind("mouseleave",L)),j.grid.clickable&&h.click(O),_(G.bindEvents,[h]);var x=[],g=null;function D(t){j.grid.hoverable&&b("plothover",t,function(t){return 0!=t.hoverable})}function L(t){j.grid.hoverable&&b("plothover",t,function(t){return!1})}function O(t){b("plotclick",t,function(t){return 0!=t.clickable})}function b(t,e,i){var o=h.offset(),n=e.pageX-o.left-w.left,a=e.pageY-o.top-w.top,r=u({left:n,top:a}),l=(r.pageX=e.pageX,r.pageY=e.pageY,function(t,e,i){for(var o,n=j.grid.mouseActiveRadius,a=n*n+1,r=null,l=H.length-1;0<=l;--l)if(i(H[l])){var s,c,h=H[l],d=h.xaxis,f=h.yaxis,u=h.datapoints.points,p=d.c2p(t),m=f.c2p(e),x=n/d.scale,g=n/f.scale,b=h.datapoints.pointsize;if(d.options.inverseTransform&&(x=Number.MAX_VALUE),f.options.inverseTransform&&(g=Number.MAX_VALUE),h.lines.show||h.points.show)for(o=0;o<u.length;o+=b){var v,k=u[o],y=u[o+1];null==k||x<k-p||k-p<-x||g<y-m||y-m<-g||(v=(v=Math.abs(d.p2c(k)-t))*v+(v=Math.abs(f.p2c(y)-e))*v)<a&&(a=v,r=[l,o/b])}if(h.bars.show&&!r){switch(h.bars.align){case"left":s=0;break;case"right":s=-h.bars.barWidth;break;default:s=-h.bars.barWidth/2}for(c=s+h.bars.barWidth,o=0;o<u.length;o+=b){var k=u[o],y=u[o+1],w=u[o+2];null!=k&&(H[l].bars.horizontal?p<=Math.max(w,k)&&p>=Math.min(w,k)&&y+s<=m&&m<=y+c:k+s<=p&&p<=k+c&&m>=Math.min(w,y)&&m<=Math.max(w,y))&&(r=[l,o/b])}}}return r?(l=r[0],o=r[1],b=H[l].datapoints.pointsize,{datapoint:H[l].datapoints.points.slice(o*b,(o+1)*b),dataIndex:o,series:H[l],seriesIndex:l}):null}(n,a,i));if(l&&(l.pageX=parseInt(l.series.xaxis.p2c(l.datapoint[0])+o.left+w.left,10),l.pageY=parseInt(l.series.yaxis.p2c(l.datapoint[1])+o.top+w.top,10)),j.grid.autoHighlight){for(var s=0;s<x.length;++s){var c=x[s];c.auto!=t||l&&c.series==l.series&&c.point[0]==l.datapoint[0]&&c.point[1]==l.datapoint[1]||Q(c.series,c.point)}l&&q(l.series,l.datapoint,t)}y.trigger(t,[r,l])}function v(){var t=j.interaction.redrawOverlayInterval;-1==t?R():g=g||setTimeout(R,t)}function R(){var t,e,i,o,n,a,r,l;for(g=null,c.save(),s.clear(),c.translate(w.left,w.top),t=0;t<x.length;++t)(i=x[t]).series.bars.show?function(t,e){var i,o="string"==typeof t.highlightColor?t.highlightColor:$.color.parse(t.color).scale("a",.5).toString(),n=o;switch(t.bars.align){case"left":i=0;break;case"right":i=-t.bars.barWidth;break;default:i=-t.bars.barWidth/2}c.lineWidth=t.bars.lineWidth,c.strokeStyle=o,N(e[0],e[1],e[2]||0,i,i+t.bars.barWidth,function(){return n},t.xaxis,t.yaxis,c,t.bars.horizontal,t.bars.lineWidth)}(i.series,i.point):(e=i.series,i=i.point,l=r=a=n=o=void 0,n=i[0],i=i[1],a=e.xaxis,r=e.yaxis,l="string"==typeof e.highlightColor?e.highlightColor:$.color.parse(e.color).scale("a",.5).toString(),n<a.min||n>a.max||i<r.min||i>r.max||(o=e.points.radius+e.points.lineWidth/2,c.lineWidth=o,c.strokeStyle=l,l=1.5*o,n=a.p2c(n),i=r.p2c(i),c.beginPath(),"circle"==e.points.symbol?c.arc(n,i,l,0,2*Math.PI,!1):e.points.symbol(c,n,i,l,!1),c.closePath(),c.stroke()));c.restore(),_(G.drawOverlay,[c])}function q(t,e,i){"number"==typeof t&&(t=H[t]),"number"==typeof e&&(o=t.datapoints.pointsize,e=t.datapoints.points.slice(o*e,o*(e+1)));var o=U(t,e);-1==o?(x.push({series:t,point:e,auto:i}),v()):i||(x[o].auto=!1)}function Q(t,e){var i;null==t&&null==e?(x=[],v()):("number"==typeof t&&(t=H[t]),"number"==typeof e&&(i=t.datapoints.pointsize,e=t.datapoints.points.slice(i*e,i*(e+1))),-1!=(i=U(t,e))&&(x.splice(i,1),v()))}function U(t,e){for(var i=0;i<x.length;++i){var o=x[i];if(o.series==t&&o.point[0]==e[0]&&o.point[1]==e[1])return i}return-1}function J(t,e,i,o){if("string"==typeof t)return t;for(var n=k.createLinearGradient(0,i,0,e),a=0,r=t.colors.length;a<r;++a){var l,s=t.colors[a];"string"!=typeof s&&(l=$.color.parse(o),null!=s.brightness&&(l=l.scale("rgb",s.brightness)),null!=s.opacity&&(l.a*=s.opacity),s=l.toString()),n.addColorStop(a/(r-1),s)}return n}}$.fn.detach||($.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),K.prototype.resize=function(t,e){if(t<=0||e<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+e);var i=this.element,o=this.context,n=this.pixelRatio;this.width!=t&&(i.width=t*n,i.style.width=t+"px",this.width=t),this.height!=e&&(i.height=e*n,i.style.height=e+"px",this.height=e),o.restore(),o.save(),o.scale(n,n)},K.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},K.prototype.render=function(){var t,e=this._textCache;for(t in e)if(u.call(e,t)){var i,o=this.getTextLayer(t),n=e[t];for(i in o.hide(),n)if(u.call(n,i)){var a,r=n[i];for(a in r)if(u.call(r,a)){for(var l,s=r[a].positions,c=0;l=s[c];c++)l.active?l.rendered||(o.append(l.element),l.rendered=!0):(s.splice(c--,1),l.rendered&&l.element.detach());0==s.length&&delete r[a]}}o.show()}},K.prototype.getTextLayer=function(t){var e=this.text[t];return null==e&&(null==this.textContainer&&(this.textContainer=$("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),e=this.text[t]=$("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),e},K.prototype.getTextInfo=function(t,e,i,o,n){var a,r,l;return e=""+e,a="object"==typeof i?i.style+" "+i.variant+" "+i.weight+" "+i.size+"px/"+i.lineHeight+"px "+i.family:i,null==(l=(r=null==(r=(l=null==(l=this._textCache[t])?this._textCache[t]={}:l)[a])?l[a]={}:r)[e])&&(n=$("<div></div>").html(e).css({position:"absolute","max-width":n,top:-9999}).appendTo(this.getTextLayer(t)),"object"==typeof i?n.css({font:a,color:i.color}):"string"==typeof i&&n.addClass(i),l=r[e]={width:n.outerWidth(!0),height:n.outerHeight(!0),element:n,positions:[]},n.detach()),l},K.prototype.addText=function(t,e,i,o,n,a,r,l,s){var t=this.getTextInfo(t,o,n,a,r),c=t.positions;"center"==l?e-=t.width/2:"right"==l&&(e-=t.width),"middle"==s?i-=t.height/2:"bottom"==s&&(i-=t.height);for(var h,d=0;h=c[d];d++)if(h.x==e&&h.y==i)return void(h.active=!0);h={active:!0,rendered:!1,element:c.length?t.element.clone():t.element,x:e,y:i},c.push(h),h.element.css({top:Math.round(i),left:Math.round(e),"text-align":l})},K.prototype.removeText=function(t,e,i,o,n,a){if(null==o){var r=this._textCache[t];if(null!=r)for(var l in r)if(u.call(r,l)){var s,c=r[l];for(s in c)if(u.call(c,s))for(var h=c[s].positions,d=0;f=h[d];d++)f.active=!1}}else for(var f,h=this.getTextInfo(t,o,n,a).positions,d=0;f=h[d];d++)f.x==e&&f.y==i&&(f.active=!1)},$.plot=function(t,e,i){return new o($(t),e,i,$.plot.plugins)},$.plot.version="0.8.3",$.plot.plugins=[],$.fn.plot=function(t,e){return this.each(function(){$.plot(this,t,e)})}}(jQuery);
|